/* ==========================================================================
   Datei: komponenten.css
   Zweck: Bausteine, die auf allen Seiten gleich funktionieren. Aussehen über
          die Farb-Tokens der jeweiligen Seite (--grund, --tinte, --akzent …).
          Varianten verfeinern einzelne Bausteine in ihrer eigenen Datei.
   Inhalt:
     1. Kopfzeile und Logo
     2. Hauptmenü (Desktop und Handy)
     3. Knöpfe
     4. Farbmodus-Knopf
     5. Google-Bewertung (Sterne, Zeile)
     6. Kurz-Abfrage „Datum“
     7. Anfrageformular
     8. Meldungen
     9. Häufige Fragen
    10. Seitenfuß
    11. Aktionsleiste (Handy)
    12. Video-Knopf
    13. Rechtstexte (Impressum, Datenschutz, AGB)
   Typische Änderungen: Höhe der Kopfzeile -> 1. | Knopfform -> 3.
   ========================================================================== */

/* === 1. Kopfzeile und Logo === */
.kopf {
    position: sticky; top: 0; z-index: 50;
    background: var(--kopf-grund, var(--grund));
    border-bottom: 1px solid var(--kopf-linie, transparent);
}
.kopf-innen { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.marke { display: block; color: var(--logo-schrift, var(--tinte)); flex: none; }
.marke-logo { width: 6rem; height: auto; }
.logo-schrift { fill: currentColor; }
.logo-herz { fill: var(--logo-herz, currentColor); }
.kopf-aktionen { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.kopf-telefon {
    display: none; align-items: center; gap: 0.45rem; padding: 0.5rem 0.25rem;
    font-weight: 500; text-decoration: none; color: var(--tinte);
}
.kopf-aktionen .kopf-anfrage { display: none; }
@media (min-width: 62rem) {
    .kopf-innen { min-height: 5.25rem; gap: 2rem; }
    .marke-logo { width: 7.5rem; }
    .kopf-telefon, .kopf-aktionen .kopf-anfrage { display: inline-flex; }
}

/* === 2. Hauptmenü === */
.menue-knopf {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--linie); border-radius: var(--rund-knopf); background: transparent; cursor: pointer;
}
.menue-knopf .symbol { grid-area: 1 / 1; width: 1.35rem; height: 1.35rem; }
.menue-knopf .symbol-schliessen, .menue-offen .menue-knopf .symbol-menue { display: none; }
.menue-offen .menue-knopf .symbol-schliessen { display: block; }
.menue-liste { list-style: none; }
.menue-liste a { text-decoration: none; }
.menue-kontakt { display: none; }

@media (max-width: 61.99rem) {
    /* Offenes Handy-Menü füllt den ganzen Bildschirm unter der Kopfzeile */
    .hauptmenue {
        position: fixed; inset: 4.25rem 0 0; z-index: 40; display: none;
        flex-direction: column; gap: 2rem; padding: 2rem var(--rand) 3rem;
        background: var(--grund); overflow-y: auto;
    }
    .menue-offen .hauptmenue { display: flex; }
    .menue-offen { overflow: hidden; }
    .menue-liste { display: grid; gap: 0.25rem; }
    .menue-liste a { display: block; padding: 0.6rem 0; font-family: var(--schrift-titel); font-size: 1.75rem; }
    .menue-kontakt { display: grid; gap: 0.75rem; }
}
@media (min-width: 62rem) {
    .menue-knopf { display: none; }
    .hauptmenue { margin-left: auto; }
    .menue-liste { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
    .menue-liste a { font-size: 0.975rem; font-weight: 500; padding: 0.5rem 0; color: var(--tinte-leise); transition: color var(--dauer); }
    .menue-liste a:hover { color: var(--tinte); }
    .kopf-aktionen { margin-left: 0; }
}

/* === 3. Knöpfe === */
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    min-height: 3.1rem; padding: 0.75rem 1.5rem;
    border: 1px solid transparent; border-radius: var(--rund-knopf);
    font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color var(--dauer), color var(--dauer), border-color var(--dauer), transform var(--dauer);
}
.knopf:active { transform: translateY(1px); }
.knopf-haupt { background: var(--knopf); color: var(--knopf-tinte); }
.knopf-haupt:hover { background: var(--knopf-hover, var(--knopf)); }
.knopf-rand { border-color: var(--linie-stark, var(--tinte)); color: var(--tinte); background: transparent; }
.knopf-rand:hover { background: var(--flaeche); }
.knopf-klein { min-height: 2.6rem; padding: 0.5rem 1.15rem; font-size: 0.95rem; }

/* === 4. Farbmodus-Knopf === */
/* Zeigt im hellen Design den Mond (zum Abdunkeln), im dunklen die Sonne. */
.farbmodus-knopf {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--linie); border-radius: var(--rund-knopf); background: transparent; color: var(--tinte); cursor: pointer;
}
.farbmodus-knopf .symbol { grid-area: 1 / 1; width: 1.2rem; height: 1.2rem; }
.farbmodus-knopf .symbol-sonne { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-farbmodus="hell"]) .farbmodus-knopf .symbol-sonne { display: block; }
    :root:not([data-farbmodus="hell"]) .farbmodus-knopf .symbol-mond { display: none; }
}
:root[data-farbmodus="dunkel"] .farbmodus-knopf .symbol-sonne { display: block; }
:root[data-farbmodus="dunkel"] .farbmodus-knopf .symbol-mond { display: none; }

/* === 5. Google-Bewertung === */
.sterne { display: inline-flex; gap: 0.1rem; color: var(--stern, #e5a50a); }
.stern .symbol { width: 1rem; height: 1rem; fill: none; }
.stern-voll .symbol { fill: currentColor; }
.google-zeile {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem;
    color: var(--tinte); text-decoration: none; font-size: var(--groesse-klein);
}
.google-zeile strong { font-weight: 700; }
.google-zeile:hover .google-zeile-text { text-decoration: underline; }

/* === 6. Kurz-Abfrage „Datum“ === */
.kurzabfrage { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem; }
.kurzabfrage label { display: block; width: 100%; font-size: var(--groesse-klein); font-weight: 500; color: var(--tinte-leise); }
.kurzabfrage input[type="date"] {
    flex: 1 1 10rem; min-height: 3.1rem; padding: 0.6rem 0.9rem; min-width: 0;
    border: 1px solid var(--linie-stark, var(--linie)); border-radius: var(--rund-knopf);
    background: var(--feld-grund, var(--flaeche)); color: var(--tinte);
}
.kurzabfrage .knopf { flex: 1 1 auto; }

/* === 7. Anfrageformular === */
.anfrage-kopf { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.anfrage-titel { font-family: var(--schrift-titel); font-size: var(--groesse-h2); }
.anfrage-text { color: var(--tinte-leise); max-width: 38em; }
.anfrage-formular { display: grid; gap: 1.1rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .anfrage-formular { grid-template-columns: 1fr 1fr; } .feld-breit { grid-column: 1 / -1; } }
.feld { display: grid; gap: 0.35rem; }
.feld label { font-size: var(--groesse-klein); font-weight: 600; }
.feld-optional { font-weight: 400; color: var(--tinte-leise); }
.feld input, .feld select, .feld textarea {
    width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
    border: 1px solid var(--linie-stark, var(--linie)); border-radius: var(--rund-feld);
    background: var(--feld-grund, var(--flaeche)); color: var(--tinte);
}
.feld textarea { resize: vertical; min-height: 7rem; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: transparent; }
.feld-hinweis { margin-top: -0.4rem; font-size: var(--groesse-klein); color: var(--tinte-leise); }
.einwilligung { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; font-size: 0.875rem; line-height: 1.5; color: var(--tinte-leise); }
.einwilligung input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--akzent); }
.anfrage-senden { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.anfrage-oder { font-size: var(--groesse-klein); color: var(--tinte-leise); }
.anfrage-recht { margin-top: 1.5rem; font-size: 0.8125rem; line-height: 1.5; color: var(--tinte-leise); }
/* Honigtopf: für Menschen unsichtbar, für Bots ein normales Feld. NICHT ÄNDERN. */
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* === 8. Meldungen === */
.meldung { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--rund-feld); border: 1px solid var(--linie); background: var(--flaeche); }
.meldung-fehler { border-color: var(--fehler, #b3261e); }
.meldung-demo { border-color: var(--akzent); }
.meldung-erfolg:focus { outline: none; }
.meldung-titel { font-weight: 700; margin-bottom: 0.25rem; }

/* === 9. Häufige Fragen === */
.fragen-liste { display: grid; border-top: 1px solid var(--linie); }
.frage { border-bottom: 1px solid var(--linie); }
.frage summary {
    display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
    padding: 1.15rem 0; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--groesse-gross);
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.5em; line-height: 0.8; color: var(--akzent); transition: transform var(--dauer); }
.frage[open] summary::after { transform: rotate(45deg); }
.frage p { padding: 0 0 1.4rem; max-width: 42em; color: var(--tinte-leise); }

/* === 10. Seitenfuß === */
.fuss { padding: clamp(3rem, 7vw, 5rem) 0 6.5rem; background: var(--fuss-grund, var(--flaeche)); color: var(--tinte); }
.fuss-raster { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .fuss-raster { grid-template-columns: 1.3fr 1fr 1fr; } .fuss { padding-bottom: 3rem; } }
.fuss-logo { width: 6rem; color: var(--logo-schrift, var(--tinte)); margin-bottom: 1rem; }
.fuss-marke p, .fuss-orte { color: var(--tinte-leise); font-size: var(--groesse-klein); max-width: 26em; }
.fuss-titel { font-family: var(--schrift-text); font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.9rem; }
.fuss-liste { list-style: none; display: grid; gap: 0.6rem; font-size: var(--groesse-klein); }
.fuss-liste li, .fuss-liste a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.fuss-liste a:hover { text-decoration: underline; }
.fuss-social { list-style: none; display: flex; gap: 0.5rem; margin-top: 1.2rem; }
.fuss-social a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--linie); border-radius: var(--rund-knopf); color: var(--tinte); }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); font-size: 0.875rem; color: var(--tinte-leise); }
.fuss-recht { list-style: none; display: flex; gap: 1.25rem; }

/* === 11. Aktionsleiste (Handy) === */
.aktionsleiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 1px;
    background: var(--linie); border-top: 1px solid var(--linie);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform 240ms ease;
}
.aktionsleiste.sichtbar { transform: none; }
.aktionsleiste a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
    min-height: 3.6rem; padding: 0.4rem; background: var(--grund); color: var(--tinte);
    font-size: 0.8125rem; font-weight: 600; text-decoration: none;
}
.aktionsleiste .aktionsleiste-haupt { background: var(--knopf); color: var(--knopf-tinte); }
.menue-offen .aktionsleiste { transform: translateY(110%); }
@media (min-width: 62rem) { .aktionsleiste { display: none; } }

/* === 12. Video-Knopf === */
.video-knopf {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border: 0; border-radius: var(--rund-knopf); cursor: pointer;
    background: rgb(0 0 0 / 0.45); color: #fff;
}
.video-knopf .symbol { grid-area: 1 / 1; width: 1.1rem; height: 1.1rem; fill: currentColor; stroke-width: 2.2; }
.video-knopf .symbol-pause, .video-knopf.laeuft .symbol-abspielen { display: none; }
.video-knopf.laeuft .symbol-pause { display: block; }

/* === 13. Rechtstexte === */
.recht { padding: clamp(3rem, 7vw, 5rem) 0 var(--abschnitt); }
.recht-inhalt { max-width: 46rem; }
.recht-inhalt h1 { font-family: var(--schrift-titel); font-size: var(--groesse-h2); margin-bottom: 2rem; }
.recht-inhalt h2 { font-size: var(--groesse-h3); margin: 2.25rem 0 0.75rem; }
.recht-inhalt h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.recht-inhalt p, .recht-inhalt li { color: var(--tinte-leise); margin-bottom: 0.75rem; overflow-wrap: anywhere; }
.recht-inhalt ul { padding-left: 1.25rem; }
