/*
Theme Name: Robben Wulfsdorf
Author: David Lampe
Description: Child theme for Twenty Twenty-Two
Version: 1.0
Template: twentytwentytwo

This is the child theme for Twenty Twenty-Two theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

:target {
	scroll-margin-top: 200px;
}

h2 strong span, .current-menu-item a, h1 strong span, ul.arrows li span {
	position: relative;
	text-decoration: none !important;
	z-index: 1;
}

.remove-top-margin {
	margin-top: 0px !important;
}


h2 strong span::before, h1 strong span::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 12px;
	width: 100%;
	height: 12px;
	transform: translateX(-50%);
	background: white;
	z-index: -1;
	border-radius: 10px;
}

h2.white strong span::before, h1.white strong span::before {
	background: color(srgb 0.9893 0.7818 0.317);
}

.wp-block-navigation .wp-block-navigation-item {
	position: relative;
	z-index:1;
}

.wp-block-post-featured-image img {
	border-radius: 10px;
}

.wp-block-cover {
	margin-top: 0px !important;
}

.has-custom-blauverlauf-gradient-background, .add-button-style, .wp-block-post-excerpt__more-text {transition: all ease .5s;}

.has-custom-blauverlauf-gradient-background:not(.sub-nav):hover, .add-button-style:hover, .wp-block-post-excerpt__more-text:hover {
	transform: scale(1.01);
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.14);
}

.current-menu-item a {
	font-weight: 700;
}

.wp-block-navigation .wp-block-navigation-item.current-menu-item::before, .wp-block-navigation .wp-block-navigation-item:hover:before, .wp-block-navigation .wp-block-navigation-item:focus:before {
	opacity: 1;
	width: 100%;
}

.wp-block-navigation .wp-block-navigation-item:before {
	content: "";
	position: absolute;
	left: 0px;
	bottom: 2px;
	width: 0%;
	height: 5px;
	background: var(--wp--preset--gradient--custom-blauverlauf);
	z-index: -1;
	opacity: 0;
	transition: all ease .5s;
	border-radius: 10px;
}


ul.arrows li span::before {
	content: "";
	position: absolute;
	left: 0%;
	bottom: -1px;
	width: 100%;
	height: 4px;
	background: var(--wp--preset--gradient--custom-blauverlauf);
	z-index: -1;
	transition: all ease .5s;
	border-radius: 10px;
}

a {
	text-decoration: none !important;
}

.align-flex-end.wp-block-group {
	align-items: flex-end;
}

.add-button-style, .wp-block-post-excerpt__more-text, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close {
	border-radius: 100px;
	background: var(--wp--preset--gradient--custom-blauverlauf) !important;
	color: var(--wp--preset--color--primary) !important;
	font-size: var(--wp--preset--font-size--medium) !important;
	cursor: pointer;
	display: inline-block;
	padding: calc(.667em + 2px) calc(1.333em + 2px);
	text-align: center;
	word-break: break-word;
	box-sizing: border-box;
}

.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close {
	padding: calc(.367em + 2px) calc(1.033em + 2px);
}

.custom-single-post-content {
	margin-top: -80px !important;
	padding-top: 50px;
	position: relative;
	z-index: 2;
	border-radius: 10px;
	background: white;
}

.sticky-header:not(.block-editor-block-list__block):not(.sub-nav) {
	position: sticky;
	top: 0px;
	border-bottom: 0px solid rgba(0, 0, 0, 0.1);
	z-index:3;
}

.sub-nav .wp-block-navigation__responsive-container.is-menu-open.has-modal-open {
	z-index: 4;
}


.sticky-header.sub-nav:not(.block-editor-block-list__block)  {
	top: 130px;
	position: sticky;
	z-index:3;
}

.sticky-header.scroll:not(.sub-nav) > div {border-bottom: 1px solid rgba(0, 0, 0, 0.1);}
//.sticky-header.sub-nav {border-bottom: 1px solid rgba(0, 0, 0, 0.1);}

/*
.sticky-header.scroll .wp-container-5 {
	padding-top: 1rem !important;
}

.sticky-header .hide, .sticky-header img.custom-logo  {
	transition: all ease .5s;
	opacity: 1;
}

.sticky-header.scroll .hide {
	opacity: 0;
	display:none;
}

.sticky-header.scroll img.custom-logo {
	width: 30px;
	aspect-ratio: auto 30 / 30;
	height: 30px;
}
*/

header h1 a {text-decoration:none;}
.remove-margin-top {
	margin-top:0px !important;
}

body.page .sticky-subnav {
	position: sticky;
	top: 130px;
}

.wp-block-post-template.grid .post {
	margin-bottom: 20px;
}

.wp-block-post-template.grid .wp-block-post-terms {
	display: inline-block;
	padding: 10px;
	border-radius: 9px;
	z-index: 2;
	position: absolute;
	margin: 5px;
}

.wp-block-post-template.grid .post:not(.has-post-thumbnail) h2 {
	margin-top: 60px;
}

.wp-block-post-template.grid .post:not(.has-post-thumbnail) .wp-block-post-terms {
	margin: 0px;
}

.wp-block-post-template.grid .post .wp-block-post-excerpt__more-text {
	margin:0px;
}

ul.arrows  {list-style:none;}
ul.arrows li {
	  padding-left: 1.3em;
	 position: relative;

}
ul.arrows li:before {
  content: "➜"; 
  display: inline-block;
  color: color(srgb 0.9893 0.7818 0.317);
  position: absolute;
	left: -1.3em;
	top: -0.11em;
	font-size: 1.4rem;
}



.wp-block-column.floatleft > * {
	margin-left: 0px !important;
}

.hyphens {
	-webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-before: 3; /* For Safari */
  -webkit-hyphenate-limit-after: 4; /* For Safari */
  -ms-hyphenate-limit-chars: 10 3 4;
  hyphenate-limit-chars: 10 3 4;
}

.toggle p {
	transition: all .5s ease;
}

.toggle:not(.block-editor-block-list__layout) > div + div {
	display:none;
}

.toggle .rotate {
	transform: rotate(180deg);
}

.menu-item-home.wp-block-navigation-item {
	display: none;
}

.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container), .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	border-radius: 20px;
	top: 36px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	transform: translateX(-50%);
	left: 50%;
	right: auto;
	border: 0px solid black;
}

.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) li {
	border-radius: 20px;
}

.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) li a {
	justify-content: center;
}

//nav.wp-block-navigation {margin-top: -5px;}

.wp-block-media-text img {
	border-radius: 20px;
}

.grid-item img {
	object-fit: cover;
}

.category-kursangebot > div, .category-spenden > div {
	background-color: #ffceac !important;
}

.taxonomy-category.wp-block-post-terms {
	background-color: #ffeb94d6;
	display: inline-block;
	padding: 5px 10px;
	border-radius: 9px;
	margin: 5px 5px -10px 0px;

}

.wp-block-post-template.grid .post .wp-block-post-excerpt__more-text {
	margin-top: 10px;	
}

.wp-block-post.category-podcast audio::-webkit-media-controls-current-time-display,
.wp-block-post.category-podcast audio::-webkit-media-controls-time-remaining-display {
    display: none;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-panel {
     background-color: #c8e3f6;
     color: #000;
}


.wp-block-post.category-podcast audio {
	width: 100%;
}

.wp-block-site-title a {
	font-style: italic;
}

.wp-block-media-text.alignwide .wp-block-media-text__content {
	padding: 0 8% 0 0;	
}

.wp-block-media-text.alignwide {
	padding: 0 30px;
}

.wp-block-gallery.alignfull {
	padding: 0 30px;
}

@media only screen and (min-width: 1000px) {
	.wp-block-media-text.alignwide.has-media-on-the-right.outofframe figure {
		position:relative;
	}

	.wp-block-media-text.alignwide.has-media-on-the-right.outofframe figure img {
		position:absolute;
		width: 50vw;
		max-width: 660px;
	}
	
	.wp-block-media-text.alignwide.has-media-on-the-right.outofframe {
		padding-bottom: 40px;	
	}
}


@media only screen and (max-width: 600px) {
	.sticky-header.sub-nav:not(.block-editor-block-list__block) {
		top: 80px;
	}

	h2 strong span::before, h1 strong span::before {
		bottom: 8px;
	}
	.small-on-mobile {
		font-size: 3rem !important;
	}
	.wp-block-site-title {
		font-size: 0.95em !important;
	}
	.wp-block-site-tagline {
		font-size: 0.85em !important;
		margin-bottom: 2px;
	}
	img.custom-logo {
		max-width: 200px;
	}
	.wp-block-site-tagline {
		margin-top: 0px !important;
	}
	header > div > div {
		padding-top: 0.8rem !important;
		padding-bottom: 0.8rem !important;
		gap: 0.7rem !important;
	}
	header > div > div > div { gap: 0.9rem !important; }
	.wp-block-media-text .wp-block-media-text__media {
		margin-bottom: 30px;	
	}
	.opener {
		padding: 30px 20px !important;
	}
	.wp-block-navigation__responsive-dialog .wp-block-navigation-item {
		font-size: 1.8rem !important;
	}
}


.wp-block-navigation__responsive-container-open:before {
	content: "Menü";
	font-family: var(--wp--preset--font-family--fire-sans);
	font-weight: bold;
	font-size: 1.125rem;
}

.sub-nav .wp-block-navigation__responsive-container-open:before {
	content: "Anzeigen";
}

.wp-block-navigation__responsive-container-open svg {
	display: none;	
}

.wp-block-post-excerpt p {
	margin-top: 0px;
}

.wp-block-video video {
	border-radius: 20px;
}

/*Formular*/

.wpcf7-form {
	background: #c8e3f6;
	padding: 20px 40px;
	border-radius: 20px;
}

.wpcf7-form label {
	font-size: 1rem;
	line-height: 1rem;
	margin-bottom: 10px;
}

.wpcf7-form input.wpcf7-text {
	all: unset;
	font-size: 1.5rem;
	max-width: 100%;
	margin-bottom: 25px;
	background: transparent;
	//border: 4px solid #ffeb94d6;
}

.wpcf7-form .wpcf7-select {
	all: unset;
	padding: 2px 8px;
	border-radius: 9px;
	background: #ffeb94d6;
	text-align: center;
}

.wpcf7-form .wpcf7-submit.add-button-style {
	all: unset;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	border-radius: 100px;
	font-weight: bold;
	margin-top: 25px;
	cursor: pointer;
}

.wpcf7-form .wpcf7-submit.add-button-style:disabled {
	background: rgb(187, 187, 187) !important;
	color: #656565 !important;
	cursor: no-drop;

}

.wpcf7-form-control-wrap {position:relative}
.wpcf7-form-control-wrap:has(.wpcf7-text):before {
	content: "";
	position: absolute;
	bottom: -8px;
	width:100%;
	height: 4px;
	background: #272729;
	border-radius: 9px;
}

.wpcf7-list-item {
	margin: 0px;
}

.wpcf7-form.sent p {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-radius: 9px;
}

@media only screen and (max-width: 1000px) {
	.wpcf7-form { padding: 10px 30px;}
}

.herz a span:before {
	content: "❤️ ";
}

audio {
	zoom: 1.5;
}

@media only screen and (min-width: 1100px) {
	.grid .wp-block-post.category-podcast:first-child {
		width: calc(67% - 0.83333em) !important;
	}

	.grid .wp-block-post.category-podcast:first-child figure,
	.grid .wp-block-post.category-podcast:first-child img {
		min-height: 258px !important;
	}
}

.wp-block-image {
    margin: 1em 0;
}

body.single .wp-block-post-title {
	padding-right: 20px; 
}