/*
Theme Name: Sternhaus
Template: twentytwentyfive
Description: Child-Theme für die Demo-Seite Sternhaus Massivbau (Empfehlungsprogramm).
Version: 0.1.0
Author: Daniel Neubauer
Text Domain: sternhaus
License: GPL-2.0-or-later
*/

/* Demo-Hinweis oben */
.sh-demo-bar {
	background: var(--wp--preset--color--accent-6);
	color: #fff;
	font-size: .82rem;
	text-align: center;
	padding: .45rem 1rem;
	letter-spacing: .01em;
}
.sh-demo-bar strong { color: var(--wp--preset--color--accent-2); }

/* Kopfbereich */
.sh-header { border-bottom: 1px solid var(--wp--preset--color--accent-5); background: var(--wp--preset--color--base); }
.sh-logo { font-family: var(--wp--preset--font-family--literata); font-weight: 600; font-size: 1.45rem; text-decoration: none !important; color: var(--wp--preset--color--accent-6) !important; display: inline-flex; align-items: center; gap: .45rem; }
.sh-logo { gap: .65rem !important; }
.sh-logo__icon { flex: none; display: block; width: 42px; height: 42px; }
.sh-logo__icon svg { display: block; width: 100%; height: 100%; border-radius: 9px; }
.sh-footer .sh-logo__icon svg { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.sh-logo small { display: block; font-family: var(--wp--preset--font-family--manrope); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); margin-top: -.15rem; }
.sh-header .wp-block-navigation a { text-decoration: none; font-weight: 500; }
.sh-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-1); }

/* Hero */
.sh-hero.wp-block-cover { border-radius: 0; }
.sh-hero .wp-block-cover__inner-container { max-width: 1240px; }
.sh-hero .wp-block-cover__inner-container > p:not(.sh-eyebrow) { max-width: 60ch; }
.sh-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }
.sh-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem !important; font-weight: 700; color: var(--wp--preset--color--accent-2); }

/* Karten */
.sh-card { background: #fff; border: 1px solid var(--wp--preset--color--accent-5); border-radius: 14px; box-sizing: border-box; }
.sh-card h3.has-large-font-size { font-size: 1.3rem !important; }
.sh-card .wp-block-image img { border-radius: 10px; }
.sh-icon { font-size: 1.6rem; color: var(--wp--preset--color--accent-2); line-height: 1; margin-bottom: .4rem !important; }

/* Schritte */
.sh-step-num { font-family: var(--wp--preset--font-family--literata); font-size: 2.6rem !important; color: var(--wp--preset--color--accent-2); line-height: 1; margin: 0 !important; }

/* Zitate */
.sh-quote { border-left: 3px solid var(--wp--preset--color--accent-2); padding-left: 1.2rem; }

/* Empfehlungs-Banner */
.sh-referral { background: linear-gradient(135deg, var(--wp--preset--color--accent-6), var(--wp--preset--color--accent-1)); color: #fff; border-radius: 18px; }
.sh-referral h2, .sh-referral h3 { color: #fff; }
.sh-referral .sh-big { font-family: var(--wp--preset--font-family--literata); font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--wp--preset--color--accent-2); line-height: 1; margin: 0; }
.sh-referral .wp-block-button__link { background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--accent-6); }
.sh-referral .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--accent-6); }

/* Footer */
.sh-footer { background: var(--wp--preset--color--accent-6); color: #d9e3e5; }
.sh-footer h2, .sh-footer h3, .sh-footer h4 { color: #fff; }
.sh-footer a { color: #fff; }
.sh-footer .sh-logo { color: #fff !important; }
.sh-footer .sh-logo small { color: #b9c7ca; }

/* Mobil: Kopfbereich entlasten, nichts darf seitlich überstehen */
html, body { overflow-x: clip; }
@media (max-width: 781px) {
	.sh-header .wp-block-buttons { display: none; }
	.sh-logo__icon { width: 36px; height: 36px; }
	.sh-logo { font-size: 1.25rem; }
}

/* Sprachumschalter: Knopf mit Fahne, aufklappbare Liste */
.sh-lang { position: relative; }
.sh-header p:has(> .sh-lang) { margin: 0; }
.sh-lang__menu > summary {
	list-style: none; display: flex; align-items: center; gap: .45rem; cursor: pointer; user-select: none;
	padding: .42rem .7rem .42rem .55rem; border: 1.5px solid var(--wp--preset--color--accent-5); border-radius: 999px;
	background: #fff; color: var(--wp--preset--color--accent-6); font-size: .85rem; font-weight: 700; letter-spacing: .04em;
	box-shadow: 0 2px 8px -4px rgba(20, 53, 61, .35); transition: border-color .15s ease, box-shadow .15s ease;
}
.sh-lang__menu > summary::-webkit-details-marker { display: none; }
.sh-lang__menu > summary:hover, .sh-lang__menu[open] > summary { border-color: var(--wp--preset--color--accent-1); box-shadow: 0 4px 14px -6px rgba(20, 53, 61, .5); }
.sh-lang__menu > summary:focus-visible { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 2px; }
.sh-lang__chev { width: 11px; height: 8px; transition: transform .15s ease; }
.sh-lang__menu[open] .sh-lang__chev { transform: rotate(180deg); }
.sh-flag { display: inline-block; flex: none; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.sh-flag svg { display: block; width: 100%; height: 100%; }
.sh-lang__menu > ul {
	position: absolute; right: 0; top: calc(100% + .45rem); z-index: 1000; margin: 0; padding: .35rem; list-style: none; min-width: 190px;
	background: #fff; border: 1px solid var(--wp--preset--color--accent-5); border-radius: 12px; box-shadow: 0 18px 40px -14px rgba(20, 53, 61, .45);
}
.sh-lang__menu > ul a { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 8px; text-decoration: none !important; color: var(--wp--preset--color--contrast); font-weight: 500; font-size: .95rem; }
.sh-lang__menu > ul a:hover, .sh-lang__menu > ul a:focus-visible { background: var(--wp--preset--color--accent-3); }
.sh-lang__menu > ul a[aria-current] { font-weight: 700; background: var(--wp--preset--color--accent-3); }
.sh-lang__short { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--wp--preset--color--accent-4); letter-spacing: .05em; }
.sh-lang .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Russisch: längere Wörter, Überschrift breiter und etwas kleiner */
.lang-ru .sh-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.2vw, 3.2rem); }

/* Effekt-Vorschau: Umschalter unten links (Stufen siehe assets/efekt.css) */
.sh-efekt-sec {
	position: fixed; left: 16px; bottom: 16px; z-index: 75;
	display: flex; align-items: center; gap: .25rem; padding: .3rem;
	background: rgba(20, 53, 61, .94); border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	font: 600 .78rem/1 var(--wp--preset--font-family--manrope), sans-serif;
}
.sh-efekt-sec span { color: var(--wp--preset--color--accent-2); padding: 0 .5rem 0 .6rem; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.sh-efekt-sec a { color: #fff; text-decoration: none; padding: .45rem .7rem; border-radius: 999px; white-space: nowrap; }
.sh-efekt-sec a:hover { background: rgba(255, 255, 255, .12); }
.sh-efekt-sec a[aria-current] { background: #fff; color: var(--wp--preset--color--accent-6); }
@media (max-width: 782px) { .sh-efekt-sec { left: 8px; right: 8px; bottom: 8px; justify-content: center; } .sh-efekt-sec span { display: none; } }
/* Solange der Empfehlungs-Hinweis offen ist, hat er Vorrang */
body:has(#she-consent:not([hidden])) .sh-efekt-sec { display: none; }

/* Anfahrt [sh_anfahrt]: Karte (Zwei-Klick) + Wegbeschreibung */
.sh-anfahrt { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: stretch; margin-block: 1rem 0; }
@media (max-width: 860px) { .sh-anfahrt { grid-template-columns: 1fr; } }
.sh-karte { position: relative; height: 100%; min-height: 380px; border-radius: 18px; overflow: hidden; background: var(--wp--preset--color--accent-6); box-shadow: 0 18px 40px -22px rgba(20, 53, 61, .6); }
.sh-karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s ease; }
.sh-karte--bereit iframe { opacity: 1; }
.sh-karte__platzhalter { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; color: #fff; transition: opacity .4s ease; }
.sh-karte--bereit .sh-karte__platzhalter { opacity: 0; pointer-events: none; }
/* Stilisierte Kartenfläche: Straßenraster, zwei Hauptstraßen, Altstadtring */
.sh-karte__muster {
	position: absolute; inset: 0; opacity: .55;
	background:
		radial-gradient(circle at 58% 46%, transparent 0 92px, rgba(201, 162, 75, .35) 93px 96px, transparent 97px),
		linear-gradient(28deg, transparent 0 49.2%, rgba(255, 255, 255, .22) 49.4% 50.6%, transparent 50.8%),
		linear-gradient(-62deg, transparent 0 49.4%, rgba(255, 255, 255, .16) 49.6% 50.4%, transparent 50.6%),
		repeating-linear-gradient(0deg, transparent 0 37px, rgba(255, 255, 255, .06) 37px 38px),
		repeating-linear-gradient(90deg, transparent 0 37px, rgba(255, 255, 255, .06) 37px 38px),
		linear-gradient(160deg, var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-6));
}
.sh-karte__pin { position: absolute; left: 58%; top: 46%; width: 54px; height: 54px; margin: -50px 0 0 -27px; color: var(--wp--preset--color--accent-2); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.sh-karte__pin svg { width: 100%; height: 100%; fill: var(--wp--preset--color--accent-6); stroke-width: 1.6; }
.sh-karte__pin::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 26px; height: 8px; margin-left: -13px; border-radius: 50%; background: rgba(0, 0, 0, .3); z-index: -1; }
.sh-karte__text { position: relative; max-width: 26rem; margin-top: 7rem; background: rgba(20, 53, 61, .82); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 1.1rem 1.3rem; font-size: .88rem; line-height: 1.5; }
.sh-karte__text p { margin: 0 0 .8rem; color: #d9e3e5; }
.sh-karte__text a { color: #fff; }
@media (max-width: 600px) { .sh-karte__pin { top: 20%; margin-top: -27px; width: 46px; height: 46px; } .sh-karte__text { margin-top: 4.5rem; } }
.sh-karte__titel { font-family: var(--wp--preset--font-family--literata); font-size: 1.2rem !important; color: #fff !important; margin-bottom: .35rem !important; }
.sh-karte__laden { cursor: pointer; border: 0; border-radius: 999px; padding: .75rem 1.5rem; font: inherit; font-weight: 700; background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--accent-6); transition: background .15s ease, transform .15s ease; }
.sh-karte__laden:hover, .sh-karte__laden:focus-visible { background: #fff; transform: translateY(-1px); }

.sh-anfahrt__info { background: #fff; border: 1px solid var(--wp--preset--color--accent-5); border-radius: 18px; padding: clamp(1.25rem, 3vw, 1.9rem); display: flex; flex-direction: column; gap: .2rem; }
.sh-anfahrt__adresse, .sh-anfahrt__liste li { display: grid; grid-template-columns: 40px 1fr; gap: .85rem; align-items: start; margin: 0; font-size: .95rem; line-height: 1.55; }
.sh-anfahrt__adresse { padding-bottom: 1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--wp--preset--color--accent-5); }
.sh-anfahrt__adresse strong { font-family: var(--wp--preset--font-family--literata); font-size: 1.1rem; color: var(--wp--preset--color--accent-6); }
.sh-anfahrt__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sh-anfahrt__liste strong { color: var(--wp--preset--color--accent-6); }
.sh-anfahrt__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--accent-1); }
.sh-anfahrt__icon svg { width: 22px; height: 22px; }
.sh-anfahrt__aktion { margin: 1.3rem 0 .4rem; }
.sh-anfahrt__route { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; background: var(--wp--preset--color--accent-1); color: #fff !important; text-decoration: none !important; font-weight: 600; transition: background .15s ease; }
.sh-anfahrt__route:hover { background: var(--wp--preset--color--accent-6); }
.sh-anfahrt__hinweis { margin: .4rem 0 0; font-size: .78rem; color: var(--wp--preset--color--accent-4); }
/* Fuß: Link zur Anfahrt */
.sh-footer .sh-footer__anfahrt { margin-top: 1rem; font-size: var(--wp--preset--font-size--small); }
.sh-footer .sh-footer__anfahrt a { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem .5rem .6rem; border: 1px solid rgba(201, 162, 75, .45); border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.sh-footer .sh-footer__anfahrt a:hover, .sh-footer .sh-footer__anfahrt a:focus-visible { background: rgba(201, 162, 75, .14); border-color: var(--wp--preset--color--accent-2, #C9A24B); }
.sh-footer__pin { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(201, 162, 75, .18); color: #C9A24B; }
.sh-footer__pin svg { width: 1rem; height: 1rem; }
#anfahrt { scroll-margin-top: 110px; }
