/* ==========================================================================
   Reifen u. Auto-Service Balkhausen, Lohmar – Stylesheet

   Inhalt
     1. Schriften
     2. Farben und Maße (Variablen)
     3. Grundlagen
     4. Hilfsklassen
     5. Knöpfe und Links
     6. Infoleiste, Kopfzeile und Navigation
     7. Bühne (Einstieg der Startseite)
     8. Schnellinfos und Öffnungszeiten
     9. Abschnitte, Überschriften, Raster
    10. Kacheln und Karten (Leistungen, Reifen, Aktionen)
    11. Galerie und Großansicht
    12. Seitenkopf der Unterseiten und Brotkrümel
    13. Fließtext und Seitenleiste
    14. Formulare (Kontakt und Terminbuchung)
    15. Termin-Aufruf und Seitenfuß
    16. Deko und Animationen
    17. Weniger Bewegung, Druck

   Schreibweise: Klassennamen sind deutsch und beschreiben den Inhalt
   (.leistungskachel, .bildkarte, .terminkarte). Gestaltet wird zuerst für
   das Handy, größere Bildschirme kommen über @media (min-width: …) dazu.
   Farbwelt: Werkstatt-Blau der Fassade, Nachtblau und Signalgelb.
   ========================================================================== */


/* 1. Schriften ============================================================ */
/* Alle Schriften liegen auf dem eigenen Server (kein Abruf bei Google). */

@font-face {
    font-family: "Barlow Condensed";
    src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/fonts/source-sans-3.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}


/* 2. Farben und Maße ====================================================== */

:root {
    /* Farben */
    --nacht: #0b1a36;          /* Nachtblau: Kopf der Startseite, Seitenfuß */
    --nacht-hell: #152b55;
    --blau: #1e5fd0;           /* Werkstatt-Blau der Fassade */
    --blau-dunkel: #1749a8;
    --blau-hell: #e6eefc;
    --gelb: #ffd200;           /* Signalgelb: wichtigste Knöpfe */
    --gelb-dunkel: #f0c000;
    --grund: #f3f5f9;          /* hellgrauer Hintergrund getönter Abschnitte */
    --weiss: #ffffff;
    --tinte: #141b2b;          /* Textfarbe */
    --tinte-hell: #4a5468;
    --linie: #dbe1eb;
    --gruen: #1d9a52;
    --fehler: #b3261e;
    --erfolg: #1f7a4d;

    /* Schriften */
    --schrift-titel: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    --schrift-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Maße */
    --breite: 76rem;
    --rand: clamp(1rem, 4vw, 2.5rem);
    --abstand-abschnitt: clamp(3.5rem, 8vw, 6rem);
    --rundung: 1rem;
    --rundung-klein: 0.6rem;
    --schatten: 0 1px 2px rgba(11, 26, 54, 0.06), 0 10px 28px -14px rgba(11, 26, 54, 0.25);
    --schatten-stark: 0 2px 4px rgba(11, 26, 54, 0.08), 0 24px 48px -18px rgba(11, 26, 54, 0.35);
    --kopf-hoehe: 4.25rem;
}


/* 3. Grundlagen =========================================================== */

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

html {
    scroll-behavior: smooth;
    /* Sprungziele (#anker) nicht unter der festen Kopfzeile verstecken */
    scroll-padding-top: calc(var(--kopf-hoehe) + 1.5rem);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--schrift-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--tinte);
    background: var(--weiss);
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    font-family: var(--schrift-titel);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.005em;
    margin: 0 0 0.55em;
    color: var(--nacht);
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p,
ul,
ol,
dl,
address {
    margin: 0 0 1em;
}

address {
    font-style: normal;
}

a {
    color: var(--blau-dunkel);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--blau);
    text-decoration-thickness: 2px;
}

img,
video,
svg {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
}

:focus-visible {
    outline: 3px solid var(--blau);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--gelb);
    color: var(--nacht);
}


/* 4. Hilfsklassen ========================================================= */

.breite {
    width: 100%;
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: var(--rand);
}

.breite-schmal {
    max-width: 48rem;
}

.mittig {
    text-align: center;
}

.nur-vorlesen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.nur-gross {
    display: none;
}

.sprunglink {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--gelb);
    color: var(--nacht);
    font-weight: 700;
    border-radius: var(--rundung-klein);
}

.sprunglink:focus {
    top: 1rem;
}

/* Symbole aus bilder/icons.svg */
.symbol {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    vertical-align: -0.22em;
}

@media (min-width: 40em) {
    .nur-gross { display: inline; }
}


/* 5. Knöpfe und Links ===================================================== */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.7rem 1.4rem;
    border: 2px solid var(--blau);
    border-radius: 999px;
    background: var(--blau);
    color: var(--weiss);
    font-family: var(--schrift-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.knopf:hover {
    background: var(--blau-dunkel);
    border-color: var(--blau-dunkel);
    color: var(--weiss);
    transform: translateY(-1px);
    box-shadow: var(--schatten);
}

.knopf:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* Signalgelb: der wichtigste Knopf (Termin buchen) */
.knopf-gelb {
    background: var(--gelb);
    border-color: var(--gelb);
    color: var(--nacht);
}

.knopf-gelb:hover {
    background: var(--gelb-dunkel);
    border-color: var(--gelb-dunkel);
    color: var(--nacht);
}

/* Weiß auf dunklem Grund */
.knopf-hell {
    background: var(--weiss);
    border-color: var(--weiss);
    color: var(--nacht);
}

.knopf-hell:hover {
    background: var(--blau-hell);
    border-color: var(--blau-hell);
    color: var(--nacht);
}

/* Nur Rahmen, auf dunklem Grund */
.knopf-umriss-hell {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--weiss);
}

.knopf-umriss-hell:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--weiss);
}

/* Nur Rahmen, auf hellem Grund */
.knopf-umriss {
    background: transparent;
    color: var(--blau-dunkel);
}

.knopf-umriss:hover {
    background: var(--blau-hell);
    border-color: var(--blau-dunkel);
    color: var(--blau-dunkel);
}

.knopf-klein {
    min-height: 2.6rem;
    padding: 0.45rem 1rem;
    font-size: 0.98rem;
}

.knopf-gross {
    min-height: 3.4rem;
    padding: 0.8rem 1.6rem;
    font-size: 1.1rem;
}

.knopf-breit {
    width: 100%;
}

.knopfreihe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Textlink mit Pfeil */
.pfeillink {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    text-decoration: none;
}

.pfeillink::after {
    content: "→";
    transition: transform 0.2s;
}

.pfeillink:hover::after {
    transform: translateX(4px);
}


/* 6. Infoleiste, Kopfzeile und Navigation ================================= */

/* Schmale dunkle Leiste ganz oben – erst ab Tablet-Breite */
.infoleiste {
    display: none;
    background: var(--nacht);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
}

.infoleiste-innen {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-height: 2.4rem;
}

.infoleiste p {
    margin: 0;
}

.infoleiste a {
    color: inherit;
    text-decoration: none;
}

.infoleiste a:hover {
    color: var(--gelb);
}

.infoleiste .symbol {
    color: var(--gelb);
    margin-right: 0.3rem;
}

.infoleiste-bewertung {
    margin-left: auto;
}

/* Öffnungsstatus mit farbigem Punkt (grün = geöffnet) */
.oeffnungsstatus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.status-punkt {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #9aa3b5;
    flex: none;
}

.ist-offen .status-punkt {
    background: #35c46f;
    box-shadow: 0 0 0 4px rgba(53, 196, 111, 0.22);
}

/* Kopfzeile: bleibt beim Scrollen oben stehen */
.kopf {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--linie);
    backdrop-filter: saturate(1.4) blur(8px);
}

.kopf-innen {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--kopf-hoehe);
}

/* Logo: Bildmarke + Schriftzug als echter Text */
.marke {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--nacht);
    text-decoration: none;
    margin-right: auto;
}

.marke:hover {
    color: var(--nacht);
}

.marke-zeichen {
    width: 2.6rem;
    height: 2.6rem;
}

.marke-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.marke-name {
    font-family: var(--schrift-titel);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.marke-unten {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blau-dunkel);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.kopf-aktionen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Runder Telefon-Knopf (auf breiten Bildschirmen mit Nummer) */
.knopf-rund {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: var(--blau-hell);
    color: var(--blau-dunkel);
    font-weight: 700;
    text-decoration: none;
}

.knopf-rund:hover {
    background: var(--blau);
    color: var(--weiss);
}

.kopf-telefon {
    display: none;
}

/* Menü-Knopf (drei Striche, wird zum X) */
.menue-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--rundung-klein);
    background: transparent;
    color: var(--nacht);
    cursor: pointer;
}

.menue-knopf-striche,
.menue-knopf-striche::before,
.menue-knopf-striche::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.menue-knopf-striche {
    position: relative;
}

.menue-knopf-striche::before,
.menue-knopf-striche::after {
    content: "";
    position: absolute;
    left: 0;
}

.menue-knopf-striche::before { top: -7px; }
.menue-knopf-striche::after { top: 7px; }

.menue-knopf[aria-expanded="true"] .menue-knopf-striche { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-knopf-striche::before { transform: translateY(7px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-knopf-striche::after { transform: translateY(-7px) rotate(-45deg); }

/* Hauptmenü auf dem Handy: klappt unter der Kopfzeile auf */
.hauptmenue {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--kopf-hoehe));
    max-height: calc(100dvh - var(--kopf-hoehe));
    overflow-y: auto;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten-stark);
    padding: 0.5rem var(--rand) 1.5rem;
}

/* Ohne JavaScript ist das Menü immer sichtbar (siehe js/start.js) */
html:not(.js) .hauptmenue,
.hauptmenue.offen {
    display: block;
}

html:not(.js) .hauptmenue {
    position: static;
    box-shadow: none;
}

html:not(.js) .menue-knopf {
    display: none;
}

.menue-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menue-punkt {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--linie);
}

.menue-punkt > a {
    flex: 1;
    padding: 0.85rem 0;
    font-family: var(--schrift-titel);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--nacht);
    text-decoration: none;
}

.menue-punkt > a[aria-current="page"] {
    color: var(--blau);
}

.untermenue-knopf {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: var(--rundung-klein);
    background: var(--grund);
    color: var(--nacht);
    cursor: pointer;
}

.untermenue-knopf span {
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    margin: 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s;
}

.untermenue-knopf[aria-expanded="true"] span {
    transform: translateY(2px) rotate(-135deg);
}

.untermenue {
    display: none;
    width: 100%;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0.25rem 0 0.25rem 0.75rem;
    border-left: 3px solid var(--gelb);
}

html:not(.js) .untermenue,
.menue-punkt.offen .untermenue {
    display: block;
}

.untermenue a {
    display: block;
    padding: 0.45rem 0;
    color: var(--tinte);
    text-decoration: none;
}

.untermenue a:hover {
    color: var(--blau);
}

.menue-kontakt {
    padding-top: 1rem;
    color: var(--tinte-hell);
}

.menue-kontakt p {
    margin: 0 0 0.3rem;
}

.menue-kontakt a {
    font-size: 1.3rem;
    font-weight: 700;
}

@media (min-width: 40em) {
    .infoleiste { display: block; }
    .marke-zeichen { width: 3rem; height: 3rem; }
    .marke-name { font-size: 1.85rem; }
}

/* Ab Laptop-Breite: Menü in der Kopfzeile, Untermenüs als Aufklapp-Fenster */
@media (min-width: 70em) {
    :root { --kopf-hoehe: 5rem; }

    .kopf-innen { gap: 1.5rem; }
    .marke { margin-right: 0; }

    .hauptmenue,
    html:not(.js) .hauptmenue {
        display: flex;
        position: static;
        margin-right: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .menue-liste {
        display: flex;
        align-items: center;
        gap: 0.1rem;
    }

    .menue-punkt {
        border: 0;
        flex-wrap: nowrap;
    }

    .menue-punkt > a {
        padding: 0.5rem 0.8rem;
        font-size: 1.25rem;
        border-radius: var(--rundung-klein);
    }

    .menue-punkt > a:hover,
    .menue-punkt:focus-within > a {
        background: var(--grund);
        color: var(--blau-dunkel);
    }

    .menue-punkt > a[aria-current="page"] {
        box-shadow: inset 0 -3px 0 var(--gelb);
        border-radius: 0;
    }

    .untermenue-knopf,
    .menue-kontakt,
    .menue-knopf,
    html:not(.js) .untermenue {
        display: none;
    }

    .untermenue {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 15rem;
        margin: 0;
        padding: 0.6rem;
        border: 1px solid var(--linie);
        border-top: 3px solid var(--gelb);
        border-radius: 0 0 var(--rundung-klein) var(--rundung-klein);
        background: var(--weiss);
        box-shadow: var(--schatten-stark);
    }

    .untermenue-breit {
        columns: 2;
        column-gap: 0.5rem;
        min-width: 30rem;
    }

    .untermenue li {
        break-inside: avoid;
    }

    .untermenue a {
        padding: 0.45rem 0.7rem;
        border-radius: 0.4rem;
    }

    .untermenue a:hover {
        background: var(--blau-hell);
    }

    /* Aufklappen bei Mauszeiger oder Tastatur-Fokus */
    .hat-untermenue:hover .untermenue,
    .hat-untermenue:focus-within .untermenue {
        display: block;
    }
}

@media (min-width: 82em) {
    .kopf-telefon { display: inline; }
    .knopf-rund { padding: 0 1rem; }
}


/* 7. Bühne (Einstieg der Startseite) ====================================== */

.buehne {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 85% 0%, rgba(30, 95, 208, 0.45), transparent 60%),
        linear-gradient(160deg, var(--nacht) 0%, var(--nacht-hell) 100%);
    color: var(--weiss);
    padding: 2.5rem 0 4.5rem;
}

.buehne-innen {
    position: relative;
    display: grid;
    gap: 2rem;
    align-items: center;
}

.buehne h1 {
    color: var(--weiss);
    font-size: clamp(2.6rem, 9vw, 4.6rem);
    margin-bottom: 0.35em;
}

.buehne-name {
    display: block;
    color: var(--gelb);
}

.buehne-einleitung {
    font-size: 1.2rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.75rem;
}

.buehne .knopfreihe {
    margin-bottom: 1.75rem;
}

.buehne-bild {
    position: relative;
    margin: 0;
}

.buehne-bild > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--rundung);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

/* Google-Bewertung als Plakette auf dem Foto */
.bewertungs-plakette {
    position: absolute;
    left: 1rem;
    bottom: -1.5rem;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: var(--rundung-klein);
    background: var(--weiss);
    color: var(--nacht);
    text-decoration: none;
    box-shadow: var(--schatten-stark);
}

.bewertungs-plakette:hover {
    color: var(--nacht);
    transform: translateY(-2px);
}

.plakette-google {
    grid-row: span 2;
    width: 2rem;
    height: 2rem;
}

.plakette-wert {
    font-family: var(--schrift-titel);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.plakette-text {
    grid-column: 2 / 4;
    font-size: 0.85rem;
    color: var(--tinte-hell);
}

.sterne {
    display: inline-flex;
    gap: 0.1rem;
    color: #f5b301;
}

.sterne .symbol {
    width: 1.05rem;
    height: 1.05rem;
}

/* Halber Stern: nur die linke Hälfte gefärbt */
.stern-halb {
    clip-path: inset(0 45% 0 0);
}

.hakenliste {
    list-style: none;
    padding: 0;
}

.hakenliste li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.45rem;
}

.hakenliste li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--blau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

.hakenliste-hell li::before {
    background-color: var(--gelb);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1a36' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.hakenliste-hell {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

@media (min-width: 60em) {
    .buehne {
        padding: 4.5rem 0 6rem;
    }

    .buehne-innen {
        grid-template-columns: 1.05fr 1fr;
        gap: 3.5rem;
    }

    .bewertungs-plakette {
        left: -1.5rem;
        bottom: 2rem;
    }
}


/* 8. Schnellinfos und Öffnungszeiten ====================================== */

/* Drei Karten, die auf die Bühne hineinragen */
.schnellinfo {
    position: relative;
    z-index: 2;
    margin-top: -2rem;
}

.schnellinfo-raster {
    display: grid;
    gap: 1rem;
}

.infokarte {
    display: flex;
    gap: 1rem;
    padding: 1.4rem 1.4rem 1.1rem;
    border-radius: var(--rundung);
    background: var(--weiss);
    box-shadow: var(--schatten-stark);
}

.infokarte h2 {
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
}

.infokarte p,
.infokarte address {
    margin-bottom: 0.5rem;
}

.infokarte-symbol {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0.6rem;
    border-radius: 50%;
    background: var(--blau-hell);
    color: var(--blau);
}

.infokarte-gross a {
    font-family: var(--schrift-titel);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

/* Tabelle der Öffnungszeiten (dl mit Zeilen) */
.zeitenliste {
    margin: 0;
}

.zeitenliste div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--linie);
}

.zeitenliste div:last-child {
    border-bottom: 0;
}

.zeitenliste dt {
    font-weight: 600;
}

.zeitenliste dd {
    margin: 0;
}

.zeitenliste-klein {
    font-size: 0.95rem;
}

@media (min-width: 50em) {
    .schnellinfo-raster { grid-template-columns: repeat(3, 1fr); }
    .schnellinfo { margin-top: -3rem; }
}


/* 9. Abschnitte, Überschriften, Raster ==================================== */

.abschnitt {
    padding: var(--abstand-abschnitt) 0;
}

.abschnitt-getoent {
    background: var(--grund);
}

.abschnitt-dunkel {
    background: var(--nacht);
    color: rgba(255, 255, 255, 0.88);
}

.abschnitt-dunkel h2,
.abschnitt-dunkel h3 {
    color: var(--weiss);
}

.abschnitt-kopf {
    max-width: 46rem;
    margin-bottom: 2.25rem;
}

.abschnitt-kopf p:last-child {
    margin-bottom: 0;
    font-size: 1.12rem;
    color: var(--tinte-hell);
}

.abschnitt-dunkel .abschnitt-kopf p:last-child {
    color: rgba(255, 255, 255, 0.8);
}

/* Kleine Zeile über einer Überschrift */
.dachzeile {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blau-dunkel);
}

.dachzeile::before {
    content: "";
    width: 1.75rem;
    height: 0.6rem;
    background: url("/bilder/deko/reifenprofil.svg") left center / auto 100% repeat-x;
}

.abschnitt-kopf p.dachzeile {
    font-size: 0.86rem;
    color: var(--blau-dunkel);
    margin-bottom: 0.6rem;
}

.dachzeile-hell,
.abschnitt-kopf p.dachzeile-hell {
    color: var(--gelb);
}

.zweispaltig {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.drei-spalten {
    display: grid;
    gap: 1.25rem;
}

.bild-gerundet {
    width: 100%;
    border-radius: var(--rundung);
    box-shadow: var(--schatten);
}

/* Spalten oben bündig statt mittig */
.zweispaltig-oben {
    align-items: start;
}

.knopfreihe-mittig {
    justify-content: center;
}

/* Links auf dunklem Grund */
.abschnitt-dunkel a,
.link-hell {
    color: var(--gelb);
}

.abschnitt-dunkel a:hover {
    color: var(--weiss);
}

/* Kundenliste (Firmenwagen) in zwei Spalten */
.kundenliste {
    columns: 2;
    column-gap: 1.5rem;
    padding-left: 1.2rem;
    margin: 0;
}

.kundenliste li {
    margin-bottom: 0.3rem;
}

@media (min-width: 50em) {
    .zweispaltig { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
    .drei-spalten { grid-template-columns: repeat(3, 1fr); }

    .abschnitt-kopf-zweispaltig {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 2.5rem;
        align-items: end;
        max-width: none;
    }

    .abschnitt-kopf-zweispaltig h2 {
        margin-bottom: 0;
    }
}


/* 10. Kacheln und Karten ================================================== */

/* Leistungen als Kacheln mit Symbol */
.kachel-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.leistungskachel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: center;
    height: 100%;
    padding: 1.15rem 2.6rem 1.15rem 1.15rem;
    border: 1px solid var(--linie);
    border-radius: var(--rundung);
    background: var(--weiss);
    color: var(--tinte);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.leistungskachel::after {
    content: "→";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blau);
    font-weight: 700;
    transition: transform 0.2s;
}

.leistungskachel:hover {
    color: var(--tinte);
    border-color: var(--blau);
    box-shadow: var(--schatten);
    transform: translateY(-2px);
}

.leistungskachel:hover::after {
    transform: translate(4px, -50%);
}

.leistungskachel-symbol {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.9rem;
    background: var(--blau-hell);
    color: var(--blau);
    transition: background-color 0.2s, color 0.2s;
}

.leistungskachel-symbol .symbol {
    width: 2rem;
    height: 2rem;
}

.leistungskachel:hover .leistungskachel-symbol {
    background: var(--blau);
    color: var(--gelb);
}

.leistungskachel-titel {
    font-family: var(--schrift-titel);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--nacht);
}

.leistungskachel-text {
    font-size: 0.93rem;
    color: var(--tinte-hell);
    line-height: 1.35;
}

.weitere-leistungen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    color: var(--tinte-hell);
}

.marke-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--grund);
    color: var(--nacht);
    font-weight: 600;
}

.marke-chip .symbol {
    color: var(--blau);
}

/* Karten mit Bild (Reifen-Themen) */
.bildkarten-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bildkarte {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--rundung);
    background: var(--weiss);
    color: var(--tinte);
    text-decoration: none;
    box-shadow: var(--schatten);
    transition: box-shadow 0.2s, transform 0.2s;
}

.bildkarte:hover {
    color: var(--tinte);
    box-shadow: var(--schatten-stark);
    transform: translateY(-3px);
}

.bildkarte img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    transition: transform 0.4s;
}

.bildkarte:hover img {
    transform: scale(1.04);
}

.bildkarte-text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.25rem 1.3rem;
    background: var(--weiss);
    color: var(--tinte-hell);
    font-size: 0.98rem;
}

.bildkarte-titel {
    font-family: var(--schrift-titel);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nacht);
}

.bildkarte-titel::after {
    content: " →";
    color: var(--blau);
}

/* Übersicht mit längerem Text (Leistungen-Seite) */
.bildkarte-lang .bildkarte-text {
    flex: 1;
}

/* Hersteller-Aktionen */
.aktionen-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.aktionskarte {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--linie);
    border-radius: var(--rundung);
    background: var(--weiss);
}

.aktionskarte img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.aktionskarte-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.2rem 1.25rem;
}

.aktionskarte h3 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.aktionskarte p {
    flex: 1;
    color: var(--tinte-hell);
    font-size: 0.98rem;
}

/* Hinweis auf den Handzettel */
.handzettel-hinweis {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem 1rem 1rem;
    border-radius: var(--rundung);
    background: var(--blau-hell);
    color: var(--nacht);
    text-decoration: none;
    transition: background-color 0.2s;
}

.handzettel-hinweis:hover {
    background: #d7e4fb;
    color: var(--nacht);
}

.handzettel-hinweis img {
    width: 4.5rem;
    border-radius: 0.35rem;
    box-shadow: var(--schatten);
    transform: rotate(-4deg);
}

.handzettel-hinweis > span {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.handzettel-titel {
    font-family: var(--schrift-titel);
    font-size: 1.45rem;
    font-weight: 700;
}

.handzettel-hinweis .symbol {
    color: var(--blau);
    width: 1.6rem;
    height: 1.6rem;
}

/* Einfache Karte (Bewertung, Neuigkeiten, Auszeichnungen) */
.karte {
    padding: 1.6rem;
    border-radius: var(--rundung);
    background: var(--weiss);
    box-shadow: var(--schatten);
}

.karte h2 {
    font-size: 1.6rem;
}

.bewertung-gross {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.bewertung-zahl {
    font-family: var(--schrift-titel);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--nacht);
}

.bewertung-gross .sterne .symbol {
    width: 1.5rem;
    height: 1.5rem;
}

.meldung-kurz {
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--linie);
}

.meldung-kurz h3 {
    font-size: 1.3rem;
    margin: 0;
}

.meldung-datum {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blau-dunkel);
}

.auszeichnungen {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auszeichnungen li {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    align-items: center;
    gap: 0.9rem;
    padding: 0.45rem 0;
}

.auszeichnungen img {
    max-height: 3.2rem;
    width: auto;
    justify-self: center;
}

.auszeichnungen .symbol {
    width: 2.2rem;
    height: 2.2rem;
    justify-self: center;
    color: var(--blau);
}

/* Meldungen auf /neuigkeiten */
.meldungsliste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.meldungsliste li {
    padding: 1.4rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--gelb);
    border-radius: var(--rundung-klein);
    background: var(--weiss);
    box-shadow: var(--schatten);
}

.meldungsliste h2 {
    font-size: 1.6rem;
    margin: 0;
}


/* 11. Galerie und Großansicht ============================================= */

.galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.galerie a {
    display: block;
    overflow: hidden;
    border-radius: var(--rundung-klein);
}

.galerie img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s;
}

.galerie a:hover img {
    transform: scale(1.05);
}

.galerie-gross {
    grid-column: 1 / -1;
}

.galerie-gross img {
    aspect-ratio: 16 / 9;
}

/* Handzettel-Seiten (hochkant) */
.galerie-hochkant {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
}

.galerie-hochkant img {
    aspect-ratio: 700 / 990;
    object-fit: contain;
    background: var(--weiss);
    box-shadow: var(--schatten);
}

@media (min-width: 50em) {
    .galerie-werkstatt {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 11rem;
    }

    .galerie-werkstatt img {
        aspect-ratio: auto;
    }

    /* Großes Foto links (2 × 2 Felder), vier kleine rechts */
    .galerie-werkstatt .galerie-gross {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Großansicht: <dialog>, gebaut in js/main.js */
.grossansicht {
    max-width: min(94vw, 80rem);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--rundung-klein);
    background: transparent;
    overflow: visible;
}

.grossansicht::backdrop {
    background: rgba(5, 12, 26, 0.88);
}

.grossansicht img {
    max-width: 100%;
    max-height: 88vh;
    margin: auto;
    border-radius: var(--rundung-klein);
}

.grossansicht-schliessen {
    position: absolute;
    top: -0.9rem;
    right: -0.6rem;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 50%;
    background: var(--gelb);
    color: var(--nacht);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* Video (Firmenwagen) */
.video-rahmen {
    overflow: hidden;
    border-radius: var(--rundung);
    background: var(--nacht);
    box-shadow: var(--schatten);
}

.video-rahmen {
    margin: 0;
}

.video-rahmen video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}


/* 12. Seitenkopf der Unterseiten und Brotkrümel =========================== */

.seitenkopf {
    position: relative;
    padding: 2.5rem 0 2.25rem;
    background: var(--nacht);
    color: var(--weiss);
}

.seitenkopf h1 {
    color: var(--weiss);
    font-size: clamp(2.3rem, 7vw, 3.8rem);
    margin: 0;
}

.seitenkopf-einleitung {
    max-width: 44rem;
    margin: 0.9rem 0 0;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Mit Foto: Bild im Hintergrund, dunkler Verlauf für lesbare Schrift */
.seitenkopf-bild {
    display: flex;
    align-items: flex-end;
    min-height: 16rem;
    overflow: hidden;
}

.seitenkopf-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seitenkopf-bild::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(11, 26, 54, 0.92) 0%, rgba(11, 26, 54, 0.55) 55%, rgba(11, 26, 54, 0.25) 100%);
}

.seitenkopf-text {
    position: relative;
    z-index: 2;
}

/* Flache Banner-Bilder: Text daneben statt darüber auf großen Bildschirmen */
.seitenkopf-banner .seitenkopf-foto {
    object-position: center;
}

/* Profilband unter jedem Seitenkopf */
.seitenkopf::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 0.5rem;
    background: url("/bilder/deko/reifenprofil.svg") left center / auto 100% repeat-x;
}

.brotkrumen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.brotkrumen a {
    color: rgba(255, 255, 255, 0.92);
}

.brotkrumen a:hover {
    color: var(--gelb);
}

@media (min-width: 50em) {
    .seitenkopf { padding: 3.5rem 0 3rem; }
    .seitenkopf-bild { min-height: 22rem; }
}


/* 13. Fließtext und Seitenleiste ========================================== */

.artikel-raster {
    display: grid;
    gap: 2.5rem;
}

.fliesstext {
    max-width: 46rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.fliesstext h2 {
    margin-top: 1.6em;
}

.fliesstext h3 {
    margin-top: 1.5em;
    color: var(--blau-dunkel);
}

.fliesstext > :first-child {
    margin-top: 0;
}

.fliesstext ul,
.fliesstext ol {
    padding-left: 1.3rem;
}

.fliesstext li {
    margin-bottom: 0.35rem;
}

.fliesstext .hakenliste {
    padding-left: 0;
}

.fliesstext li::marker {
    color: var(--blau);
}

.fliesstext ul ul {
    margin: 0.4rem 0;
}

.fliesstext table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.fliesstext th,
.fliesstext td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--linie);
    text-align: left;
    vertical-align: top;
}

.fliesstext th {
    background: var(--grund);
}

.bild-rechts {
    margin: 0 0 1.5rem;
}

.bild-rechts figcaption {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--tinte-hell);
}

/* Rechtstexte etwas ruhiger */
.rechtstext {
    font-size: 1.02rem;
}

.rechtstext h2 {
    font-size: 1.7rem;
}

.rechtstext h3 {
    font-size: 1.3rem;
    color: var(--nacht);
}

/* Seitenleiste: Termin-Karte und Themenliste */
.seitenleiste {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.terminkarte {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--rundung);
    background:
        url("/bilder/deko/reifen-deko.svg") right -4rem bottom -4rem / 12rem no-repeat,
        linear-gradient(160deg, var(--nacht), var(--nacht-hell));
    color: var(--weiss);
}

.terminkarte h2 {
    color: var(--weiss);
    font-size: 1.7rem;
    margin: 0;
}

.terminkarte p {
    margin: 0;
}

.terminkarte-mail {
    font-size: 0.95rem;
}

.terminkarte-mail a {
    color: var(--weiss);
}

.terminkarte-mail .symbol {
    color: var(--gelb);
    margin-right: 0.3rem;
}

.themenliste {
    padding: 1.25rem 1.25rem 0.75rem;
    border: 1px solid var(--linie);
    border-radius: var(--rundung);
}

.themenliste h2 {
    font-size: 1.4rem;
}

.themenliste ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.themenliste a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.45rem;
    color: var(--tinte);
    text-decoration: none;
}

.themenliste a:hover {
    background: var(--grund);
    color: var(--blau-dunkel);
}

.themenliste a[aria-current="page"] {
    background: var(--blau-hell);
    color: var(--blau-dunkel);
    font-weight: 700;
}

.themenliste .symbol {
    color: var(--blau);
}

@media (min-width: 40em) {
    .bild-rechts {
        float: right;
        max-width: 16rem;
        margin: 0.3rem 0 1rem 1.75rem;
    }
}

@media (min-width: 62em) {
    .artikel-raster {
        grid-template-columns: minmax(0, 1fr) 21rem;
        gap: 4rem;
        align-items: start;
    }

    .seitenleiste {
        position: sticky;
        top: calc(var(--kopf-hoehe) + 1.5rem);
    }
}


/* 14. Formulare (Kontakt und Terminbuchung) =============================== */

.formular-karte {
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border-radius: var(--rundung);
    background: var(--weiss);
    box-shadow: var(--schatten-stark);
}

.feld {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
}

.feld label,
.feld-titel {
    font-weight: 600;
}

.feld-hinweis {
    margin: 0;
    font-size: 0.9rem;
    color: var(--tinte-hell);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #c3cbd9;
    border-radius: var(--rundung-klein);
    background: var(--weiss);
    color: var(--tinte);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blau);
    box-shadow: 0 0 0 3px rgba(30, 95, 208, 0.22);
}

input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    border: 1.5px dashed #a9b4c7;
    border-radius: var(--rundung-klein);
    background: var(--grund);
    font: inherit;
    font-size: 0.95rem;
}

.feld-reihe {
    display: grid;
    gap: 0 1rem;
}

.feld-haken {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
}

.feld-haken input {
    width: 1.3rem;
    height: 1.3rem;
    margin-top: 0.15rem;
    flex: none;
    accent-color: var(--blau);
}

.feld-haken label {
    font-weight: 400;
}

/* Falle für Spam-Programme: für Menschen unsichtbar */
.feld-falle {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Meldungen über und unter Formularen */
.meldung {
    padding: 1rem 1.2rem;
    border-radius: var(--rundung-klein);
    margin-bottom: 1.25rem;
}

.meldung p:last-child {
    margin-bottom: 0;
}

.meldung-fehler {
    border-left: 4px solid var(--fehler);
    background: #fdecea;
    color: #7d1a14;
}

.meldung-erfolg {
    border-left: 4px solid var(--erfolg);
    background: #e7f6ee;
    color: #145236;
}

/* Demo-Hinweis der Vorschau: freundlich, nicht rot */
.meldung-info {
    border-left: 4px solid var(--blau);
    background: var(--blau-hell);
    color: var(--nacht);
}

.meldung-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Terminbuchung: nummerierte Schritte */
.schritt {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
    border: 0;
    border-bottom: 1px solid var(--linie);
    min-width: 0;
}

.schritt legend {
    float: left;
    width: 100%;
    margin-bottom: 0.9rem;
    padding: 0.1rem 0 0 3.1rem;
    font-family: var(--schrift-titel);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--nacht);
}

.schritt legend + * {
    clear: both;
}

.schritt-nummer {
    position: absolute;
    left: 0;
    top: -0.1rem;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: var(--gelb);
    color: var(--nacht);
    font-family: var(--schrift-titel);
    font-size: 1.3rem;
    font-weight: 700;
}

.filiale-info {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--rundung-klein);
    background: var(--grund);
}

.filiale-info .symbol {
    color: var(--blau);
    width: 1.6rem;
    height: 1.6rem;
}

.filiale-info p {
    margin: 0;
}

/* Auswahl als Karten (Leistung) und Chips (Uhrzeit) */
.wahlkarten,
.zeitwahl {
    display: grid;
    gap: 0.6rem;
}

.wahlkarten {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.zeitwahl {
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
}

.wahl {
    position: relative;
}

.wahl input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.wahl span {
    display: flex;
    align-items: center;
    min-height: 3.2rem;
    height: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid #c3cbd9;
    border-radius: var(--rundung-klein);
    background: var(--weiss);
    line-height: 1.3;
    transition: border-color 0.15s, background-color 0.15s;
}

.zeitwahl .wahl span {
    justify-content: center;
    min-height: 2.8rem;
    font-weight: 600;
}

.wahl input:hover + span {
    border-color: var(--blau);
}

.wahl input:checked + span {
    border-color: var(--blau);
    background: var(--blau-hell);
    color: var(--nacht);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--blau);
}

.wahl input:focus-visible + span {
    outline: 3px solid var(--blau);
    outline-offset: 2px;
}

.zeitwahl-hinweis {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: var(--rundung-klein);
    background: var(--grund);
    color: var(--tinte-hell);
}

.zeitwahl-gruppe {
    grid-column: 1 / -1;
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tinte-hell);
}

.sonstige-leistung[hidden] {
    display: none;
}

.zeichen-zaehler {
    align-self: flex-end;
    font-size: 0.85rem;
    color: var(--tinte-hell);
}

/* Kontaktdaten neben dem Formular */
.kontaktdaten {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.kontaktzeile {
    display: flex;
    gap: 1rem;
}

.kontaktzeile h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.kontaktzeile p,
.kontaktzeile address {
    margin: 0;
}

.kontaktzeile .infokarte-symbol {
    flex: none;
}

.kontakt-raster {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 40em) {
    /* Ab Tablet: Inhalt der Schritte unter der Überschrift eingerückt */
    .schritt { padding-left: 3.25rem; }
    .schritt legend { padding-left: 0; }
    .schritt-nummer { left: 0; }
    .feld-reihe { grid-template-columns: 1fr 1fr; }
    .feld-reihe-plz { grid-template-columns: 9rem 1fr; }
}

@media (min-width: 60em) {
    .kontakt-raster {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 3.5rem;
        align-items: start;
    }
}


/* 15. Termin-Aufruf und Seitenfuß ========================================= */

.terminband {
    position: relative;
    overflow: hidden;
    padding: 2.75rem 0;
    background: var(--blau);
    color: var(--weiss);
}

.terminband::before {
    content: "";
    position: absolute;
    right: -6rem;
    top: 50%;
    width: 22rem;
    height: 22rem;
    transform: translateY(-50%);
    background: url("/bilder/deko/reifen-deko.svg") center / contain no-repeat;
    opacity: 0.8;
}

.terminband-innen {
    position: relative;
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.terminband h2 {
    color: var(--weiss);
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    margin-bottom: 0.3rem;
}

.terminband p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 56em) {
    .terminband-innen { grid-template-columns: 1fr auto; gap: 2.5rem; }
}

.fuss {
    background: var(--nacht);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.98rem;
}

/* Marken- und Partnerlogos auf hellem Streifen */
.fuss-marken {
    background: var(--grund);
    color: var(--tinte);
    border-top: 1px solid var(--linie);
}

.fuss-marken-innen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2.5rem;
    padding-block: 1.5rem;
}

.markenleiste,
.partnerleiste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.markenleiste img {
    height: 1.6rem;
    width: auto;
}

.partnerleiste img {
    height: 2.8rem;
    width: auto;
}

.brv-link {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    font-family: var(--schrift-titel);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nacht);
    text-decoration: none;
}

.brv-link span {
    font-family: var(--schrift-text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tinte-hell);
}

.fuss-innen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 2rem;
    padding-block: 3rem 2.5rem;
}

.fuss h2 {
    color: var(--weiss);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.fuss a {
    color: var(--weiss);
    text-decoration: none;
}

.fuss a:hover {
    color: var(--gelb);
    text-decoration: underline;
}

.fuss .zeitenliste div {
    border-color: rgba(255, 255, 255, 0.12);
}

.fuss-kontaktliste,
.fuss-links,
.sozial-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fuss-kontaktliste li,
.sozial-links li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.fuss .symbol {
    color: var(--gelb);
}

.sozial-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.fuss-links li {
    margin-bottom: 0.4rem;
}

.fuss-unten {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.fuss-unten-innen {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-block: 1.25rem;
}

.fuss-unten p {
    margin: 0;
}

.fuss-unten nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

/* Platz für die Leiste des Willkommens-Popups (nur Vorschau) */
.wr-leiste-da .fuss-unten {
    padding-bottom: 2.5rem;
}


/* 16. Deko und Animationen ================================================ */

/* Reifenprofil als Trennband zwischen Abschnitten */
.profilband {
    height: 1.25rem;
    background: var(--nacht) url("/bilder/deko/reifenprofil.svg") left center / auto 0.75rem repeat-x;
}

/* Großer Reifen in der Bühne – dreht sich sehr langsam */
.buehne-reifen {
    position: absolute;
    right: -9rem;
    top: -7rem;
    width: 28rem;
    height: 28rem;
    pointer-events: none;
    animation: reifen-dreht 80s linear infinite;
}

@media (min-width: 60em) {
    .buehne-reifen {
        right: auto;
        left: -12rem;
        top: auto;
        bottom: -14rem;
        width: 36rem;
        height: 36rem;
    }
}

@keyframes reifen-dreht {
    to { transform: rotate(360deg); }
}

/* Inhalte beim Scrollen sanft einblenden (nur mit JavaScript, siehe js/main.js) */
.js .einblenden {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .einblenden.sichtbar {
    opacity: 1;
    transform: none;
}

/* Kalender-Symbol im Termin-Knopf wackelt beim Darüberfahren */
.knopf-gelb:hover .symbol {
    animation: wackeln 0.5s ease;
}

@keyframes wackeln {
    0%, 100% { transform: rotate(0); }
    30% { transform: rotate(-12deg); }
    60% { transform: rotate(10deg); }
}

/* Fehlerseite */
.fehlerseite {
    text-align: center;
}

.fehlerseite-reifen {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 1.5rem;
    color: var(--blau);
    animation: reifen-rollt 3s ease-in-out infinite alternate;
}

@keyframes reifen-rollt {
    from { transform: translateX(-2.5rem) rotate(-180deg); }
    to { transform: translateX(2.5rem) rotate(180deg); }
}


/* 17. Weniger Bewegung, Druck ============================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .einblenden {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .infoleiste,
    .kopf-aktionen,
    .hauptmenue,
    .terminband,
    .seitenleiste,
    .buehne-reifen,
    .profilband,
    .fuss-marken,
    .wr-leiste,
    .wr-schleier {
        display: none !important;
    }

    .kopf {
        position: static;
    }

    .seitenkopf,
    .buehne,
    .fuss,
    .abschnitt-dunkel {
        background: none;
        color: #000;
    }

    .seitenkopf h1,
    .buehne h1,
    .fuss h2,
    .fuss a {
        color: #000;
    }

    .seitenkopf-bild::before,
    .seitenkopf-foto {
        display: none;
    }
}
