/* =====================================================================
   03 – BAUSTEINE  (wiederkehrende Elemente der Webseite)
   Inhalt:  1 Buttons · 2 Header & Menü · 3 Bilder/Videos/Platzhalter
            4 Karten & Kacheln · 5 Seitenbereiche · 6 Häufige Fragen
            7 Formulare · 8 Footer · 9 Mobile Leiste
   ===================================================================== */

/* ---------- 1 · Buttons & Links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 500 16px/1 var(--schrift-text); text-decoration: none; border: 2px solid transparent; cursor: pointer; background: none; }
.btn .icon { flex: none; }
.btn-y { background: var(--gelb); color: var(--nacht); }                     /* gelb – Hauptaktion */
.btn-y:hover { background: var(--gelb-hover); color: var(--nacht); }
.btn-d { background: var(--braun); color: var(--weiss); }                     /* braun */
.btn-d:hover { background: var(--dunkel); color: var(--weiss); }
.btn-o { border-color: rgba(255,255,255,.55); color: var(--weiss); }          /* Rahmen auf dunkel */
.btn-o:hover { border-color: var(--weiss); color: var(--weiss); }
.btn-l { border-color: var(--nacht); color: var(--nacht); }                   /* Rahmen auf hell */
.btn-l:hover { background: var(--nacht); color: var(--weiss); }
.dark a.btn-o, .dark a.btn-o:hover { color: var(--weiss); }
.more { font-weight: 500; color: var(--braun); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.tel-gross { text-align: center; font-size: 18px; font-weight: 500; text-decoration: none; }
.tel-gross.dunkel { text-align: left; color: var(--braun); }

/* ---------- 2 · Header & Menü ---------- */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linie); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--kopf-hoehe); }
.logo { color: var(--dunkel); display: flex; }
.logo svg { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a, .navbtn { color: var(--nacht); text-decoration: none; font: 500 15px/1 var(--schrift-text); display: flex; align-items: center; gap: 6px; min-height: 44px; }
.nav > a:hover, .navbtn:hover { color: var(--braun); }
.nav > a[aria-current="page"], .navbtn[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.tel { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--nacht); text-decoration: none; white-space: nowrap; }
.tel .icon { color: var(--braun); }

/* Mega-Menü „Leistungen“ (öffnet bei Maus darüber oder Tastatur) */
.has-mega { height: var(--kopf-hoehe); display: flex; align-items: center; }
.navbtn .icon { transition: transform .2s; }
.has-mega:hover .navbtn .icon, .has-mega:focus-within .navbtn .icon { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: var(--kopf-hoehe); background: var(--weiss); border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); display: none; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.mega-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 4px; padding: 20px 0 26px; }
.mega a { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); text-decoration: none; color: var(--nacht); font-size: 15px; line-height: 1.45; }
.mega a:hover { background: var(--grau); color: var(--nacht); }
.mega a .icon { flex: none; color: var(--braun); }
.mega a strong { font-family: var(--schrift-titel); font-size: 17px; display: block; line-height: 1.25; margin-bottom: 2px; }
.mega a span span { font-size: 14px; color: var(--text-3); }
.mega-alle { background: var(--grau); }

/* Mobiles Menü (Burger) – funktioniert ohne JavaScript */
.burger { display: none; width: 48px; height: 48px; cursor: pointer; color: var(--nacht); align-items: center; justify-content: center; }
.drawer { display: none; position: fixed; inset: var(--kopf-hoehe) 0 0 0; background: var(--weiss); overflow: auto; z-index: 49; padding: 20px 0 40px; }
#menu-schalter:checked ~ .top .drawer { display: block; }
#menu-schalter:focus-visible ~ .top .burger { outline: 3px solid var(--gelb); outline-offset: 3px; }
.drawer a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--nacht); font-size: 18px; }
.drawer .sub a { font-size: 16px; padding: 10px 0 10px 16px; color: var(--text-2); }
.drawer .label { font: 700 13px/1 var(--schrift-text); letter-spacing: .12em; text-transform: uppercase; color: var(--braun); padding: 22px 0 6px; }
.drawer-cta { padding-top: 24px; }
.drawer a.btn { display: flex; border-bottom: 2px solid transparent; font-size: 16px; padding: 0 22px; }
.drawer a.btn-d { color: var(--weiss); }
.drawer a.btn-l { border: 2px solid var(--nacht); }
@media (max-width: 1080px) { .nav, .tel { display: none; } .burger { display: flex; } }
@media (max-width: 520px) { .kopf-cta { display: none; } }

/* ---------- 3 · Bilder, Videos, Platzhalter ---------- */
.media { border-radius: var(--radius); overflow: hidden; background: var(--grau); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.r169 { aspect-ratio: 16/9; } .r1610 { aspect-ratio: 16/10; } .r43 { aspect-ratio: 4/3; } .r45 { aspect-ratio: 4/5; } .r34 { aspect-ratio: 3/4; }
.portrait-klein { width: 96px; height: 96px; flex: none; }
/* Platzhalter: erscheint automatisch, wenn eine Bild-/Videodatei fehlt */
.ph { background: var(--grau); color: var(--text-3); border-radius: var(--radius); display: flex; align-items: flex-end; padding: 12px; font-size: 12px; letter-spacing: .04em; position: relative; overflow: hidden; }
.ph.d { background: var(--braun); color: var(--text-hell); }
.ph.center { align-items: center; justify-content: center; }
.ph.hell { background: var(--weiss); }
.ph .cap { position: absolute; left: 12px; top: 10px; right: 12px; display: flex; flex-direction: column; gap: 2px; }
.ph-datei { opacity: .75; font-size: 11px; }
.ph .play { color: var(--gelb); }
.portrait-klein.ph .cap { font-size: 9px; }

/* ---------- 4 · Karten & Kacheln ---------- */
.card { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--braun); transform: translateY(-2px); color: var(--text); }
a.card .more { margin-top: auto; padding-top: 6px; }
.icon-gross { color: var(--braun); }
.card-gelb { background: var(--gelb); border-color: var(--gelb); }
.card-gelb .p, .card-gelb .small, .card-gelb .more, .card-gelb .icon-gross { color: var(--nacht); }
.card blockquote { font-size: 17px; line-height: 1.6; }
.tile { background: var(--weiss); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
a.tile:hover { outline: 2px solid var(--braun); color: var(--text); }
.tile-kopf { display: flex; justify-content: space-between; gap: 12px; }
.tile-kopf .icon { flex: none; color: var(--braun); }
.tile-titel { font-size: 19px; }
.tile-braun { background: var(--braun); color: var(--weiss); }
.tile-braun .small { color: var(--text-hell); }
.bewertung { font-size: 40px; color: var(--gelb); }
.topline { border-top: 4px solid var(--braun); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.num { font-family: var(--schrift-titel); font-weight: 900; font-size: 56px; line-height: 1; color: var(--gelb); }
.team-name { font-size: 16px; }
.team-name.gross { font-size: 19px; }
.ergebnis { border-left: 2px solid var(--gelb); padding-left: 10px; }
.stars { display: flex; gap: 2px; color: var(--gelb); }
.badge { position: absolute; left: -16px; bottom: -16px; background: var(--gelb); color: var(--nacht); padding: 14px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; max-width: 230px; line-height: 1.4; }

/* ---------- 5 · Seitenbereiche ---------- */
.hero .c2 { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero .lead { max-width: 580px; }
.hero-media { position: relative; }
.hero-trust { font-size: 15px; color: var(--text-hell); }
.hero-trust strong { color: var(--weiss); }
.seitenkopf { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.breadcrumb { font-size: 14px; color: var(--text-hell-2); }
.dark .breadcrumb a, .yellow .breadcrumb a { color: inherit; }
.kundenleiste .row { gap: 18px 40px; padding-top: 28px; padding-bottom: 28px; }
.logos { display: flex; flex-wrap: wrap; gap: 14px 36px; font: 700 18px/1.2 var(--schrift-titel); color: var(--braun); }
.fazit { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; color: var(--braun); max-width: 760px; }
.kalender-teaser { padding-top: var(--abschnitt-eng); padding-bottom: var(--abschnitt-eng); }
.kalender-cover > :nth-child(2) { margin-top: 28px; }
.kontaktliste a, .kontaktliste p { display: flex; gap: 12px; align-items: center; font-size: 17px; text-decoration: none; }
.icon.gelb { color: var(--gelb); flex: none; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.textseite .p { max-width: 70ch; }
.dunkeltext { color: var(--text-2); }

/* ---------- 6 · Häufige Fragen (aufklappbar) ---------- */
.faq { border-top: 1px solid var(--linie-2); }
.faq-item { border-bottom: 1px solid var(--linie-2); }
.faq-q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font: 700 20px/1.3 var(--schrift-titel); color: var(--nacht); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .pm { flex: none; width: 32px; height: 32px; border-radius: var(--radius); background: var(--grau); display: flex; align-items: center; justify-content: center; font: 400 22px/1 var(--schrift-text); color: var(--braun); }
.faq-q .pm::before { content: "+"; }
.faq-item[open] .pm::before { content: "−"; }
.grey .faq-q .pm { background: var(--weiss); }
.faq-a { padding: 0 48px 24px 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }

/* ---------- 7 · Formulare ---------- */
form.box { background: var(--weiss); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
form.box .small { color: var(--text-3); }
form.box a { color: var(--braun); }
fieldset { border: 0; padding: 0; }
legend { font: 700 20px/1.2 var(--schrift-titel); color: var(--nacht); padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: var(--radius); font: 15px/1 var(--schrift-text); cursor: pointer; border: 1.5px solid var(--feld-rand); background: var(--weiss); color: var(--nacht); display: inline-flex; align-items: center; text-decoration: none; position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked), .chip[aria-current="true"] { background: var(--braun); border-color: var(--braun); color: var(--weiss); }
.chip:has(input:focus-visible) { outline: 3px solid var(--gelb); outline-offset: 3px; }
a.chip:hover { border-color: var(--braun); color: var(--nacht); }
a.chip[aria-current="true"]:hover { color: var(--weiss); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--nacht); }
.field input, .field textarea, .field select { font: 400 16px/1.4 var(--schrift-text); padding: 12px 14px; border: 1.5px solid var(--feld-rand); border-radius: var(--radius); background: var(--weiss); color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--braun); outline: 2px solid var(--gelb); outline-offset: 0; }
.field input:user-invalid { border-color: var(--fehler); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--braun); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formfehler { background: #fbeae6; color: var(--fehler); border-radius: var(--radius); padding: 12px 14px; font-size: 15px; }
.success { background: var(--weiss); color: var(--text); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--gelb); }
.success .eyebrow { color: var(--braun); }
.success .p { color: var(--text-2); }
.success .small { color: var(--text-3); }
.success a { color: var(--braun) !important; }

/* ---------- 8 · Footer ---------- */
footer.foot { background: var(--nacht); color: var(--text-hell); }
footer.foot a { color: var(--text-hell); text-decoration: none; }
footer.foot a:hover { color: var(--gelb); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; padding: 64px 0 40px; font-size: 15px; line-height: 1.9; }
.foot-logo { color: var(--weiss); }
.foot-logo svg { width: 150px; height: auto; }
.foot-text { line-height: 1.6; color: var(--text-hell-2); }
.foot-h { font: 700 16px/1.2 var(--schrift-titel); color: var(--weiss); margin: 0 0 10px; }
.social { padding-top: 8px; }
.fbottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid var(--braun); font-size: 13px; color: var(--text-hell-2); }

/* ---------- 9 · Mobile Schnellkontakt-Leiste ---------- */
.mcta { display: none; }
@media (max-width: 720px) {
  .mcta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--weiss); border-top: 1px solid var(--linie); padding: 10px 14px; gap: 10px; }
  .mcta a { flex: 1; }
  body { padding-bottom: 72px; }
  .badge { position: static; margin-top: 12px; max-width: none; }
}

/* Formulare und Bestätigung innerhalb dunkler Bereiche: Links in Braun */
.dark form.box a, .dark .success a { color: var(--braun); }
.portrait-klein.ph .ph-datei { display: none; }
