/* ==========================================================================
   das-playback.de  -  Stylesheet
   Farben aus dem Logo: warmes Gold auf hellem Grund, dunkles Anthrazit.
   Keine externen Schriften oder CDNs (DSGVO: es wird nichts nachgeladen).
   ========================================================================== */

:root {
    --gold:        #bb9457;   /* Gold aus dem Logo */
    --gold-licht:  #d4b378;   /* Lichtkante oben auf den Schaltflächen */
    --gold-dunkel: #8a6a34;   /* dunkler, für Text mit ausreichendem Kontrast */
    --gold-tief:   #6f5426;   /* Schattenkante unter den Schaltflächen */
    --gold-hell:   #f3ead9;   /* zarte Fläche */
    --anthrazit:   #262626;   /* Kopfhörer im Logo */
    --text:        #1f1f1f;
    --text-leise:  #5c5852;
    --grund:       #faf8f5;   /* heller, leicht warmer Hintergrund */
    --karte:       #ffffff;
    --linie:       #e4ded4;
    --warnung-bg:  #fdf3e3;
    --warnung-rand:#c98a1e;
    --fehler:      #a3271f;
    --erfolg-bg:   #eef5ec;
    --erfolg-rand: #4a7a48;
    --radius:      10px;
    --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 17px;
    line-height: 1.65;
}

/* --- Sprungmarke für Tastatur/Screenreader ------------------------------ */
.skiplink {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--anthrazit);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 100;
}
.skiplink:focus { left: 0; }

/* --- Kopf ---------------------------------------------------------------- */
.kopf {
    text-align: center;
    padding: 2.5rem 1.25rem 1rem;
}

.kopf--gross { padding: 3.5rem 1.25rem 1.5rem; }

.logo { height: auto; display: block; margin: 0 auto; }

.logo--gross { width: min(430px, 82vw); }

.logo--klein { width: 160px; }

.logo-link { display: inline-block; }

.claim {
    margin: 1.25rem auto 0;
    max-width: 34rem;
    color: var(--text-leise);
    font-size: 1.05rem;
}

.kopf--klein {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 54rem;
    margin: 0 auto;
    padding: 1.25rem 1.25rem .75rem;
    text-align: left;
    border-bottom: 1px solid var(--linie);
}

.hauptnav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.hauptnav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
}
.hauptnav a:hover { border-bottom-color: var(--gold); }
.hauptnav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold-dunkel); }

/* --- Inhalt -------------------------------------------------------------- */
.inhalt {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.startseite .inhalt { max-width: 42rem; }

h1, h2, h3 { line-height: 1.25; color: var(--anthrazit); }
h1 { font-size: 1.9rem; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }

p { margin: 0 0 1rem; }

a { color: var(--gold-dunkel); }
a:hover { color: var(--anthrazit); }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5rem 0; }

.vorspann {
    font-size: 1.12rem;
    color: var(--text);
}

.leise { color: var(--text-leise); font-size: .93rem; }

/* --- Leistungs-Kacheln auf der Startseite -------------------------------- */
.leistungen {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.leistungen li {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    margin: 0;
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(38, 38, 38, .05);
}

.leistungen .pikto { margin-top: .15rem; }
.leistungen strong { display: block; color: var(--anthrazit); }
.leistungen span { color: var(--text-leise); font-size: .93rem; }

/* --- Piktogramme --------------------------------------------------------- */
/* Aus der Formensprache des Logos abgeleitet: dünne dunkle Kontur, ein
   gefülltes Element in Gold. Erzeugt werden sie in _piktogramme.php.        */

.pikto {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    color: var(--anthrazit);
}

.pikto-gold      { fill: var(--gold); stroke: var(--anthrazit); }
.pikto-goldlinie { stroke: var(--gold); }

/* Symbol neben der Seitenüberschrift */
.titelzeile {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 1rem;
}
.titelzeile h1 { margin: 0; }
.titelzeile .pikto { width: 3rem; height: 3rem; }

/* Ruhige Symbolreihe als Trenner zwischen zwei Abschnitten */
.pikto-band {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    margin: 2.75rem 0 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--linie);
    opacity: .55;
}
.pikto-band .pikto { width: 2rem; height: 2rem; }

/* Kleines Symbol in der FAQ-Zeile */
.faq-eintrag .pikto { width: 1.6rem; height: 1.6rem; margin-top: .1rem; }

/* Großes Symbol, z. B. auf der Dankeseite */
.pikto--gross { width: 5rem; height: 5rem; }

@media (prefers-reduced-motion: no-preference) {
    .leistungen li { transition: transform .15s ease, box-shadow .15s ease; }
    .leistungen li:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(38, 38, 38, .1);
    }
}

/* --- Schaltflächen ------------------------------------------------------ */
/* Plastisch durch drei Mittel: ein Verlauf von hell nach dunkel, eine helle
   Innenkante oben, und eine feste Schattenkante unten, die beim Klicken
   verschwindet - dadurch wirkt der Knopf, als würde er eingedrückt.        */

.cta-bereich { text-align: center; margin: 2.5rem 0 1rem; }

.knopf {
    display: inline-block;
    position: relative;
    background: linear-gradient(180deg, var(--gold-licht) 0%, var(--gold) 55%, #a9834a 100%);
    color: #241c0c;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    text-decoration: none;
    padding: .85rem 2rem;
    border: 1px solid var(--gold-tief);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .55),
        inset 0 -1px 0 rgba(0, 0, 0, .12),
        0 4px 0 var(--gold-tief),
        0 7px 14px rgba(38, 38, 38, .22);
    transform: translateY(0);
    transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}

.knopf:hover {
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .6),
        inset 0 -1px 0 rgba(0, 0, 0, .12),
        0 5px 0 var(--gold-tief),
        0 9px 18px rgba(38, 38, 38, .26);
    transform: translateY(-1px);
}

/* Eingedrückt: der Knopf rutscht auf seine Schattenkante herunter. */
.knopf:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, .28),
        0 0 0 var(--gold-tief),
        0 1px 3px rgba(38, 38, 38, .2);
    filter: brightness(.97);
}

.knopf--sekundaer {
    background: linear-gradient(180deg, #ffffff 0%, var(--gold-hell) 100%);
    color: var(--gold-dunkel);
    border-color: #c9b48c;
    text-shadow: none;
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 3px 0 #c9b48c,
        0 6px 12px rgba(38, 38, 38, .14);
}

.knopf--sekundaer:hover { color: var(--anthrazit); filter: brightness(1.01); }

.knopf--sekundaer:active {
    transform: translateY(3px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, .16),
        0 0 0 #c9b48c,
        0 1px 3px rgba(38, 38, 38, .14);
}

/* Wer Bewegung im Betriebssystem abgeschaltet hat, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
    .knopf, .leistungen li { transition: none; }
    .knopf:hover, .knopf:active { transform: none; }
}

/* --- Formular ------------------------------------------------------------ */
.formular { margin-top: 1.5rem; }

.feld { margin-bottom: 1.75rem; }

/* Fieldsets tragen ebenfalls die Klasse .feld - Standardrahmen entfernen. */
fieldset.feld {
    border: 0;
    padding: 0;
    margin-inline: 0;
    min-width: 0;
}

fieldset.feld > legend { padding: 0; }

.feld > label,
.feld > .feldtitel {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--anthrazit);
}

.hinweistext {
    display: block;
    font-weight: 400;
    font-size: .9rem;
    color: var(--text-leise);
    margin: -.2rem 0 .5rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--karte);
    border: 1px solid #cfc7ba;
    border-radius: var(--radius);
    padding: .65rem .8rem;
}

textarea { min-height: 9rem; resize: vertical; }

input:focus, textarea:focus, .knopf:focus, a:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.feld--fehler input,
.feld--fehler textarea { border-color: var(--fehler); }

.feldfehler {
    display: block;
    color: var(--fehler);
    font-size: .92rem;
    margin-top: .35rem;
    font-weight: 600;
}

/* Radio-Gruppe */
.radiogruppe { display: flex; gap: 1.5rem; margin-top: .3rem; }

.radiogruppe label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    font-weight: 400;
}

.radiogruppe input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--gold-dunkel); }

.pflichtstern { color: var(--fehler); }

/* Honeypot: für Menschen unsichtbar, für Bots verlockend */
.hp-feld {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Hinweiskasten bei "nein" */
.warnkasten {
    background: var(--warnung-bg);
    border: 1px solid var(--warnung-rand);
    border-left: 4px solid var(--warnung-rand);
    border-radius: var(--radius);
    padding: .85rem 1.1rem;
    margin: 1rem 0 1.5rem;
    color: #6b4a05;
}
.warnkasten[hidden] { display: none; }

/* Meldungen */
.meldung {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}
.meldung--fehler  { background: #fbeeed; border: 1px solid var(--fehler); }
.meldung--fehler h2 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--fehler); }
.meldung--fehler ul { margin: 0; }
.meldung--erfolg  { background: var(--erfolg-bg); border: 1px solid var(--erfolg-rand); }

/* --- Hinweisfenster bei fehlenden Pflichtangaben -------------------------- */
/* Das <dialog>-Element bringt Verdunkelung, Tastaturfalle und Esc von Haus
   aus mit. Geöffnet wird es allein aus assets/formular.js.                  */

.hinweis-dialog {
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 0;
    max-width: 34rem;
    width: calc(100% - 2rem);
    background: var(--karte);
    color: var(--text);
    box-shadow: 0 20px 45px rgba(38, 38, 38, .32);
}

.hinweis-dialog::backdrop { background: rgba(31, 31, 31, .55); }

.dialog-kopf {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.3rem;
    background: var(--gold-hell);
    border-bottom: 1px solid var(--linie);
    border-radius: var(--radius) var(--radius) 0 0;
}

.dialog-kopf h2 { margin: 0; font-size: 1.2rem; }
.dialog-kopf .pikto { width: 2.2rem; height: 2.2rem; }

.dialog-koerper { padding: 1.15rem 1.3rem .4rem; }
.dialog-koerper p { margin-bottom: .8rem; }

.dialog-koerper ul {
    margin: 0;
    padding-left: 1.3rem;
}

.dialog-koerper li {
    margin-bottom: .9rem;
    line-height: 1.55;
}

.dialog-koerper li::marker { color: var(--gold-dunkel); }

.dialog-fuss {
    padding: .6rem 1.3rem 1.3rem;
    text-align: right;
}

.dialog-fuss .knopf { font-size: 1rem; padding: .7rem 1.5rem; }

/* Seiteninhalt nicht scrollen, solange das Fenster offen ist */
body:has(dialog[open]) { overflow: hidden; }

/* --- FAQ ----------------------------------------------------------------- */
.faq-liste { margin-top: 1.5rem; }

.faq-eintrag {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    margin-bottom: .7rem;
    scroll-margin-top: 1rem;
}

.faq-eintrag > summary {
    cursor: pointer;
    padding: .9rem 1.1rem;
    font-weight: 600;
    color: var(--anthrazit);
    list-style: none;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.faq-eintrag > summary::-webkit-details-marker { display: none; }

.faq-eintrag > summary::before {
    content: "+";
    color: var(--gold-dunkel);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
    flex: 0 0 auto;
}
.faq-eintrag[open] > summary::before { content: "\2013"; }
.faq-eintrag[open] > summary { border-bottom: 1px solid var(--linie); }

.faq-antwort { padding: 1rem 1.1rem .3rem 2.6rem; }
.faq-antwort p:last-child { margin-bottom: 1rem; }

/* --- Fuß ---------------------------------------------------------------- */
.fuss {
    border-top: 1px solid var(--linie);
    padding: 1.5rem 1.25rem 2.5rem;
    text-align: center;
    background: var(--gold-hell);
}

.rechtsnav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    justify-content: center;
    margin-bottom: .6rem;
}

.rechtsnav a { color: var(--anthrazit); text-decoration: none; font-size: .93rem; }
.rechtsnav a:hover { text-decoration: underline; }

.copyright { margin: 0; color: var(--text-leise); font-size: .85rem; }

/* --- Rechtstexte --------------------------------------------------------- */
.platzhalter {
    background: var(--gold-hell);
    border-bottom: 1px dashed var(--gold-dunkel);
    padding: 0 .2rem;
    font-style: italic;
}

.redaktionshinweis {
    background: var(--warnung-bg);
    border: 1px dashed var(--warnung-rand);
    border-radius: var(--radius);
    padding: .8rem 1.1rem;
    font-size: .92rem;
    color: #6b4a05;
}

.rechtstext h2 { font-size: 1.15rem; }
.rechtstext { font-size: .97rem; }

@media (max-width: 34rem) {
    body { font-size: 16px; }
    .kopf--klein { justify-content: center; text-align: center; }
    .radiogruppe { gap: 1.1rem; }
}
