/* ==========================================================================
   MHF – gemeinsame Website-Bausteine
   Kopfzeile der Unterseiten, vollständige Fußleiste, FAQ, Stimmen,
   Brücke zum alten Tailwind-Markup der Unterseiten (Farben, Schriften)
   ========================================================================== */

/* --- Kopfzeile: Textlinks und Sprachwahl (Startseite) ----------------------- */
.bug__links { display: none; align-items: center; gap: 2px; }
.bug__links a { padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--ink-2); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.bug__links a:hover { background: var(--green-l); color: var(--green-d); }
@media (min-width: 1100px) { .bug__links { display: flex; } }
.lang { display: inline-grid; place-items: center; height: 42px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; transition: transform .2s ease, color .2s ease; }
.lang:hover { transform: scale(1.06); color: var(--ink); }
.lang[hidden], .tgl[hidden] { display: none; }
@media (max-width: 640px) { .lang { height: 36px; padding: 0 9px; } }

/* --- FAQ --------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5E23' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; }
.faq summary:hover { color: var(--green); }

/* --- Stimmen aus der Kurve ---------------------------------------------------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; margin: 0; padding: 26px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.voice blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.voice blockquote::before { content: "„"; display: block; height: .5em; margin-bottom: .4em; font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--green); }
.voice figcaption { display: flex; align-items: center; gap: 12px; }
.voice figcaption b { display: block; }
.voice figcaption span { font-size: .85rem; color: var(--ink-3); }
.voice__av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 800; font-size: .9rem; }
.trust { margin: 0 0 40px; text-align: center; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 960px) { .voices { grid-template-columns: 1fr; } }

/* --- Fußleiste (alle Seiten) ------------------------------------------------- */
.site-foot { padding: 70px 0 34px; background: #143B1B; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.dark .site-foot { background: #0A1A10; }
.site-foot a { color: inherit; text-decoration: none; transition: color .2s ease; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.site-foot__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; }
.site-foot__brand img { width: 44px; height: 44px; border-radius: 12px; }
.site-foot__brand b { font-family: var(--display); font-weight: normal; font-size: 1.5rem; letter-spacing: .02em; }
.site-foot p { max-width: 380px; line-height: 1.6; }
.site-foot h4 { margin: 0 0 14px; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-foot ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.site-foot .stores { margin-top: 4px; }
.site-foot .store img { height: 44px; }
.site-foot__qr { display: flex; gap: 10px; margin-top: 14px; }
.site-foot__qr img { width: 76px; height: 76px; padding: 5px; border-radius: 10px; background: #fff; }
.site-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; }
.site-foot__social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot__lang { display: inline-flex; gap: 8px; font-weight: 800; }
.site-foot__lang [aria-current] { color: #fff; text-decoration: underline; }
@media (max-width: 960px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* --- Kopfzeile der Unterseiten ------------------------------------------------ */
.subhead { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subhead__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1200px, 100% - 32px); height: 68px; margin-inline: auto; }
.subhead__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.subhead__logo img { width: 38px; height: 38px; border-radius: 11px; }
.subhead__logo span { font-family: var(--display); font-size: 1.5rem; color: var(--green); white-space: nowrap; }
.subhead__links { display: none; gap: 2px; }
.subhead__links a { padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.subhead__links a:hover { background: var(--green-l); color: var(--green-d); }
.subhead__right { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .subhead__links { display: flex; } }
@media (max-width: 560px) { .subhead__logo span { display: none; } }

/* --- Brücke für das alte Tailwind-Markup der Unterseiten ---------------------- */
.legacy { background: var(--bg); color: var(--ink); font-family: var(--font); }
.legacy .bg-sbCanvas, .dark .legacy .bg-sbCanvas { background-color: var(--bg); }
.legacy .bg-sbWhite, .dark .legacy .bg-sbWhite, .legacy .bg-white, .dark .legacy .bg-white { background-color: var(--surface); }
.legacy .bg-sbHouse { background-color: #1E5E23; }
.legacy .bg-sbAccent, .legacy .hover\:bg-sbAccent:hover { background-color: var(--green); }
.legacy .bg-sbGreen { background-color: var(--green-d); }
.legacy .bg-sbLightGreen\/20 { background-color: var(--mint); }
.legacy .text-sbGreen, .dark .legacy .text-sbGreen, .legacy .text-sbAccent { color: var(--green); }
.legacy .text-sbTextBlack, .dark .legacy .text-sbTextBlack { color: var(--ink); }
.legacy .text-sbTextBlackSoft, .dark .legacy .text-sbTextBlackSoft { color: var(--ink-2); }
.legacy .border-sbCeramic, .dark .legacy .border-sbCeramic { border-color: var(--line); }
.legacy .border-sbAccent\/20 { border-color: var(--green-l); }
.legacy h1, .legacy h2, .legacy .display-campaign { font-family: var(--display); font-weight: normal; letter-spacing: .01em; }
.legacy ::selection { background: var(--green); color: var(--on-green); }
.legacy .selection\:bg-sbAccent ::selection { background: var(--green); }
.legacy .rounded-xl, .legacy .rounded-2xl { border-radius: 20px; }
/* Dunkle Variante für Karten, die im alten Markup hell kodiert waren */
.dark .legacy .bg-sbLightGreen\/20, .dark .legacy .bg-sbLightGreen\/30 { background-color: var(--mint); }
.dark .legacy .bg-sbCanvas\/50 { background-color: var(--surface-2); }
.dark .legacy input, .dark .legacy textarea, .dark .legacy select { color: var(--ink); background-color: var(--surface-2); }

/* --- Übersteuerungen des alten Tailwind-Stylesheets -------------------------- */
html { background-color: var(--bg); }
.dark h1, .dark h2 { color: var(--ink); }

/* --- Kapitelleiste der Anleitung ------------------------------------------- */
.chapters { position: sticky; top: 68px; z-index: 40; display: flex; align-items: center; gap: 6px; padding: 10px max(16px, calc((100vw - 1200px) / 2)); overflow-x: auto; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chapters::-webkit-scrollbar { display: none; }
.chapters b { flex: none; margin-right: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.chapters a { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.chapters a:hover { background: var(--green-l); color: var(--green-d); }
.legacy .chapters + main { padding-top: 32px !important; }
.legacy [id] { scroll-margin-top: 130px; }
