/*
Theme Name: Schloss Hämelschenburg
Author: App- & Webentwicklung Stephan Zerner
Author URI: https://zerner.app
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
Description: Child Theme von Twenty Twenty-Five für Schloss Hämelschenburg.
Text Domain: haemelschenburg
Template: twentytwentyfive
*/

:root {
	--background-yellow: #F9F8EB;
}

@font-face {
  font-family: fontAwesomeSolid;
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("./assets/fonts/fontawesome/fa-solid-900.woff2") format("woff2"), url("./assets/fonts/fontawesome/fa-solid-900.ttf") format("truetype"); }
  
/* @font-face { */
  /* font-family: fontAwesomeRegular; */
  /* font-style: normal; */
  /* font-weight: 400; */
  /* font-display: block; */
  /* src: url("./assets/fonts/fontawesome/fa-regular-400.woff2") format("woff2"), url("./assets/fonts/fontawesome/fa-regular-400.ttf") format("truetype"); } */

/* a[href*="//"]:not([href*="//haemelschenburg"]):after, a[href*="mailto"]:after, a[href*="tel"]:after { */
a[href*="//"]:not([href*="//www.schloss-haemelschenburg"]):after {
  margin-right: 2px;
  margin-left: 4px;
  vertical-align: middle;
  text-decoration: none;
  display: inline-block;
}
a[href*="//"]:not([href*="//www.schloss-haemelschenburg"], .wp-block-social-link-anchor, :has(img)):after {
	font-family: fontAwesomeSolid;
	content: '\f08e';
	font-size: 0.6em;
	padding-bottom: 0.2em;
}
/* a[href*="mailto"]:after { */
	/* font-family: fontAwesomeSolid; */
	/* content: '\f0e0'; */
	/* font-size: 0.8em; */
	/* padding-bottom: 0.1em; */
/* } */
/* a[href*="tel"]:after { */
	/* font-family: fontAwesomeSolid; */
	/* content: '\f095'; */
	/* font-size: 0.8em; */
	/* padding-bottom: 0.1em; */
/* } */

.polylang-langswitcher {
	padding-left: 0;
	list-style: none;
	text-transform: uppercase;
	color: rgba(0,0,0,0.5);
}
.polylang-langswitcher a {
	text-decoration: none;
}
.polylang-langswitcher a::before {
	font-family: fontAwesomeSolid;
	  content: '\f0ac';
	  margin-right: 4px;
}

.polylang-langswitcher a::before {
	font-family: fontAwesomeSolid;
	  content: '\f0ac';
	  margin-right: 4px;
}

.wp-block-site-title {
	word-spacing: 0.4rem;
}

/* .cover-title { */
	/* background-image:  linear-gradient(#00000000, #000000cc); */
/* } */

@media (min-width: 601px) {
	.main-navigation .wp-block-navigation-submenu .wp-block-navigation-submenu {
		font-size: 0.9em;
		line-height: 1.2;
		padding: 0.6rem 0.2rem;
	}
	.main-navigation .wp-block-social-links {
		margin-top: 3px;
	}

}

@media (max-width: 600px) {
	header .wp-block-navigation-item a[href="#"] {
		color: #777!important;
		text-decoration: none;
		pointer-events: none;
		text-transform: uppercase;
	}

	header .wp-block-navigation-item.current-menu-item a {
		text-decoration: underline;
	}
	header .wp-block-navigation-item a {
		text-align: center;
	}
/* 	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item a {
	color: var(--brand)!important; */
	header .wp-block-navigation__responsive-container.is-menu-open {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}



a {
	outline: none!important;
}

.wp-block-button a:hover {
	background-color: black!important;
	color: var(--background-yellow);
}
.wp-block-post-title {
	font-weight: 300;
}
h1.wp-block-post-title {
	color: rgba(0, 0, 0, 0.8);
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	padding-bottom: 1rem;
	margin-bottom: 3rem;
}
.cover-title p {
	text-shadow: 0.1vw 0.1vw 0.1vw #000;
	line-height: 1.2;
}
.cover-title p:nth-child(1) {
	font-size: clamp(1.2rem, 2vw, 4rem)!important;
}
.cover-title p:nth-child(2) {
	font-size: clamp(1rem, 1.5vw, 2rem)!important;
}
.cover-title p:nth-child(3) {
	font-size: clamp(1.4rem, 3vw, 6rem)!important;
}
.cover-title p:nth-child(4) {
	font-size: clamp(0.8rem, 1.1vw, 1.3rem)!important;
}

/* .top-event .wp-block-post-title { */
	/* background-color: var(--background-yellow); */
	/* padding-left: 0.5rem; */
	/* padding-right: 0.5rem; */
/* } */

/* .top-event .wp-block-post-title:after { */
	/* font-family: fontAwesomeSolid; */
	/* content: '  \f5a2'; */
	/* font-size: 0.5em; */
	  /* vertical-align: middle; */
/* } */

.wp-block-image.alignright, .wp-block-image.alignleft {
	max-width: 50%;
}

.has-drop-cap:not(:focus)::first-letter {
	font-size: 3.55em;
}

.compact-event-list li, .link-entry  {
	position: relative;
}
.compact-event-list a:after {
	display:block!important;
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	content:''!important;
}

.partner .wp-element-caption {
	display: block!important;
}
.partner-entry p {
	margin-block-start: 0.6rem;
}

/* Bildlink in Galerien nicht durch Bildtitel blockieren */
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before,  .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	pointer-events: none;
}

/* Hide figcaptions on smaller screens */
 @media (max-width: 782px) {
	 .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
		 backdrop-filter: none;
	 }
	 .wp-block-gallery.has-nested-images figcaption {
		 /* display: none; */
		 position: relative!important;
		 text-shadow: none!important;
		 background: var(--background-yellow)!important;
		 padding: 0.5rem!important;
		 color: black!important;
	 }
 }
 
 /* Reverse column order on smaller screens */
 @media (max-width: 782px) {
	.reverse-mobile-column-direction .wp-block-column:first-child {
		order: 2;
	}
	
	.feature-cover h2, .feature-cover h3, .feature-cover p {
		text-align: left!important;
	}

	/* .reverse-mobile-column-direction .wp-block-cover { */
		/* height: 100vw; */
	/* } */
}

.baguetteBox-button:hover g, .baguetteBox-button:hover polyline {
stroke: white;
}

