/* ==========================================================================
   Tokens & Bausteine — CI-Variablen in tokens.css, wiederverwendbare
   Inhaltskomponenten (Kartenraster, Argumentkarten) in components.css.
   @import muss vor allen anderen Regeln stehen.
   ========================================================================== */
@import url("tokens.css");
@import url("components.css");

/* ==========================================================================
   Reset & base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* dvh statt % / vh: die feste "Hülle" (Banner + Header + Snap-Bereich)
       richtet sich nach dem dynamischen Viewport. Sonst ist die Hülle auf
       iOS Safari höher als der sichtbare Bereich, und weil body
       overflow:hidden ist, wird oben Banner + Logo unter die Adressleiste
       geschoben und abgeschnitten. % bleibt als Fallback für sehr alte Browser. */
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    font-size: 140%;
}

/* overflow:hidden here (and on html above) keeps .snap-container the ONLY
   scrollable element on the page. Without it, once .site-footer grows
   taller than one viewport (see height:auto below), html/body themselves
   become a second, outer scroll context — and scrollIntoView() on a nav
   click can then scroll that outer context too. That outer scroll has no
   idea .site-header occupies space above .snap-container, so it can slide
   a section (e.g. #kontakt) up underneath the header, hiding its content. */
body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* Page-level flex column: banner + header sit at their natural height,
   the scroll-snap main fills whatever space is left. No JS height
   measurement needed — the browser lays this out on its own. */
.page {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100dvh;
}

img {
    max-width: 100%;
    display: block;
}

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

button, input, textarea {
    font-family: inherit;
}

h1, h2 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    font-size: 160%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
@keyframes btn-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.18), 0 0 5px rgba(255, 255, 255, 0.14);
    }
    50% {
        box-shadow: 0 0 3px rgba(255, 255, 255, 0.24), 0 0 9px rgba(255, 255, 255, 0.2);
    }
}

.btn {
    display: inline-block;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.18), 0 0 5px rgba(255, 255, 255, 0.14);
    animation: btn-glow-pulse 2.6s ease-in-out infinite;
    transition: transform var(--transition-base), background-color 0.6s ease, color 0.6s ease, box-shadow var(--transition-base);
}

.btn:hover {
    animation-play-state: paused;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.26), 0 0 15px rgba(255, 255, 255, 0.22);
}

.btn:active {
    transform: scale(0.97);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn--accent:hover {
    background-color: var(--color-accent-light);
}

/* Sonnengelb: gezielte Hervorhebung des primären "Kostenloses Angebot
   anfordern"-CTA gegenüber den sonst petrolfarbenen Buttons/Flächen. */
.btn--sun {
    background-color: var(--color-sun);
    color: var(--color-black);
}

.btn--sun:hover {
    background-color: var(--color-sun-dark);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-grey);
}

.btn--ghost:hover {
    color: var(--color-dark);
}

/* ==========================================================================
   Top info banner — normal document flow, above the header. Shown at all
   widths: below 1024px it's abbreviated (shorter text, no email, smaller
   font) to save space; from 1024px up it shows the full text. No
   collapse-on-scroll (removed — it never played nicely with scroll-snap
   nav: any layout-affecting collapse changes .snap-container's height,
   which changes what "100%" resolves to for each section, so nav clicks
   would land at a different y-position depending on banner state).
   ========================================================================== */
.top-banner {
    display: block;
    background-color: var(--color-black);
    color: var(--color-white);
    flex-shrink: 0;
}

.top-banner__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem 1.5rem;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.top-banner__icon {
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.3em;
    vertical-align: -0.12em;
}

.top-banner__side {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* -20% Schriftgröße und abgekürzte Labels ("T:" statt "Telefon:", "7–18"
   statt "7:00–18:00") unter 1024px; die kürzbaren Fragmente stecken als
   .top-banner__hide-mobile im Markup. */
.top-banner__hide-mobile {
    display: none;
}

@media (max-width: 1023.98px) {
    .top-banner__inner {
        font-size: 0.64rem;
    }
}

@media (min-width: 1024px) {
    .top-banner__hide-mobile {
        display: inline;
    }
}

/* ── Progressive Angaben im Info-Balken ──────────────────────────────────
   Damit nichts umbricht, werden von klein nach groß nacheinander mehr
   Angaben eingeblendet. Reihenfolge des Einblendens:
   Telefon (immer) → E-Mail → Öffnungszeiten → Standort. */
.top-banner__item--location,
.top-banner__item--hours,
.top-banner__item--email {
    display: none;
}

@media (min-width: 480px) {
    .top-banner__item--email {
        display: block;
    }
}

@media (min-width: 680px) {
    .top-banner__item--hours {
        display: block;
    }
}

@media (min-width: 900px) {
    .top-banner__item--location {
        display: block;
    }
}

/* Solange Standort UND Öffnungszeiten fehlen, ist die linke Seite leer –
   ausblenden und die verbleibenden Angaben zentrieren. */
@media (max-width: 679.98px) {
    .top-banner__side:not(.top-banner__side--contact) {
        display: none;
    }

    .top-banner__inner {
        justify-content: center;
    }
}

/* ==========================================================================
   Header — normal document flow. Ab 1024px stehen Logo, Hauptmenü und
   "Kostenloses Angebot anfordern" nebeneinander in einer Zeile. Unter
   1024px: Hamburger links, Logo zentriert, Menü als Fullscreen-Overlay.
   ========================================================================== */
.site-header {
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    background-color: var(--color-white);
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
}

.site-header__bar {
    display: flex;
    /* Logo, Menü und CTA sitzen mit ihrer Unterkante auf einer Linie. */
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.site-header__logo {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.site-header__logo-img {
    height: 2.5rem;
    width: auto;
}

.site-header__cta {
    flex-shrink: 0;
    font-size: 1rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

/* "Kostenloses " im Header-Button erst ab ~1000px zeigen (darunter nur
   "Angebot anfordern", damit der Button auch im Mobil-Kopf Platz hat). */
.site-header__cta-word {
    display: none;
}

@media (min-width: 1000px) {
    .site-header__cta-word {
        display: inline;
    }
}

.nav-toggle {
    flex-shrink: 0;
    background: none;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle__bar {
    width: 22px;
    height: 2px;
    background-color: var(--color-dark);
    border-radius: 2px;
}

/* Hauptmenü unter 1024px versteckt (erreichbar über das Fullscreen-Overlay). */
.site-header__nav {
    display: none;
}

@media (max-width: 1023.98px) {
    .site-header__bar {
        position: relative;
        align-items: center;
        min-height: var(--header-height);
        justify-content: space-between;
    }

    .site-header__logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/* CTA-Button bleibt bis ~720px im Header; erst darunter komplett aus. */
@media (max-width: 719.98px) {
    .site-header__cta {
        display: none;
    }
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    /* Menü zwischen Logo und CTA, rechtsbündig (orientiert sich am
       "Kostenloses Angebot"-Button, nicht am Logo). align-items:flex-end
       -> Link-Text sitzt auf einer Linie mit der Logo-Unterkante. */
    .site-header__nav {
        display: flex;
        flex: 1;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 0.1rem;
        padding-bottom: 0.1rem;
        /* visible statt overflow:auto – das Leistungen-Untermenue muss nach
           unten aus der Leiste ragen koennen. Bei nur vier Punkten passt
           die Zeile ohnehin. */
        overflow: visible;
    }

    .site-header__nav-link {
        font-size: 0.92rem;
        font-weight: 600;
        white-space: nowrap;
        color: var(--color-black);
        padding: 0.35rem 0.7rem;
        border-radius: var(--radius-pill);
        transition: background-color var(--transition-base), color var(--transition-base);
    }

    .site-header__nav-link:hover {
        color: var(--color-white);
        background-color: var(--color-accent);
    }

    /* --- Untermenue "Leistungen" (Desktop-Dropdown) --- */
    .site-header__nav-group {
        position: relative;
        display: inline-flex;
        align-items: flex-end;
    }

    .site-header__submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 50;
        min-width: 16rem;
        margin-top: 0.35rem;
        padding: 0.4rem;
        list-style: none;
        background-color: var(--color-white);
        border-radius: var(--radius-lg);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.35rem);
        transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    }

    .site-header__nav-group:hover .site-header__submenu,
    .site-header__nav-group:focus-within .site-header__submenu,
    .site-header__nav-group.is-open .site-header__submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-header__submenu-link {
        display: block;
        padding: 0.5rem 0.8rem;
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        color: var(--color-black);
        transition: background-color var(--transition-base), color var(--transition-base);
    }

    .site-header__submenu-link:hover {
        color: var(--color-white);
        background-color: var(--color-accent);
    }
}

/* ==========================================================================
   Fullscreen nav modal (mobile-first: always fullscreen when open)
   ========================================================================== */
.nav-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: var(--color-accent);
    display: flex;
    justify-content: center;
    /* Scrolls internally instead of clipping/overflowing when the viewport
       is too short for the full link list (see the same overflow issue
       fixed on .snap-section). margin:auto on the list (instead of
       align-items:center here) keeps it centered when it fits, but still
       lets it scroll from the top instead of clipping at the top when it
       doesn't — align-items:center would clip a too-tall flex child at
       both ends with no way to reach the clipped-off top part. */
    overflow-y: auto;
    padding: 1.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base);
}

.nav-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-modal__list {
    list-style: none;
    text-align: center;
    margin: auto;
}

.nav-modal__link {
    display: block;
    color: var(--color-white);
    font-size: 1.75rem;
    font-weight: 600;
    padding: 0.75rem 0;
}

.nav-modal__link--logo {
    padding: 0.75rem 0 1.5rem;
}

.nav-modal__logo-img {
    width: min(60vw, 14rem);
}

/* --- Untermenue "Leistungen" im Mobilmenue (natives <details>) --- */
.nav-modal__group details {
    text-align: center;
}

.nav-modal__summary {
    cursor: pointer;
    list-style: none;
}

.nav-modal__summary::-webkit-details-marker {
    display: none;
}

.nav-modal__summary::after {
    content: " ▾";
    font-size: 0.7em;
    opacity: 0.8;
}

.nav-modal__group details[open] .nav-modal__summary::after {
    content: " ▴";
}

.nav-modal__sublist {
    list-style: none;
    padding: 0.25rem 0 0.75rem;
}

.nav-modal__sublink {
    display: block;
    color: var(--color-white);
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.5rem 0;
    opacity: 0.92;
}

/* ==========================================================================
   Quote modal — fullscreen on mobile, centered card from tablet up
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(18, 24, 29, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__panel {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
}

.modal__close,
.nav-modal .modal__close {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-dark);
}

.nav-modal .modal__close {
    color: var(--color-white);
}

.modal__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal__lead {
    color: var(--color-grey);
    margin-bottom: 1.5rem;
}

.legal-text {
    color: var(--color-dark);
    text-align: left;
    line-height: 1.6;
}

.legal-text h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.legal-text h3:first-child {
    margin-top: 0;
}

.legal-text p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.legal-text a {
    text-decoration: underline;
}

/* ==========================================================================
   Contact form (shared: modal + footer)
   ========================================================================== */
.contact-form__field {
    margin-bottom: 0.75rem;
}

.contact-form__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-form__optional {
    font-weight: 400;
    opacity: 0.7;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d8dde1;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    resize: vertical;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--color-grey);
    opacity: 1;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: 2px solid var(--color-accent-light);
    outline-offset: 1px;
}

.contact-form__field--honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__status {
    min-height: 1.2em;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.contact-form__status:empty {
    min-height: 0;
    margin-bottom: 0;
}

.contact-form__status.is-success {
    color: #1a7a4c;
}

.contact-form__status.is-error {
    color: #b3261e;
}

/* Ruleset L: positive actions float right, negative actions float left */
.contact-form__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.contact-form__actions--single {
    justify-content: flex-end;
}

.contact-form__cancel {
    order: 1;
}

.contact-form__submit {
    order: 2;
    margin-left: auto;
}

/* ==========================================================================
   Scroll-snap sections
   ========================================================================== */
.snap-container {
    /* Nur vertikal scrollen. overflow-x:hidden verhindert, dass minimal zu
       breiter Sektionsinhalt (z. B. der Telefon-Footer im 3-Spalten-Layout
       zwischen ~768 und ~810px) eine horizontale UND damit eine sichtbare
       vertikale Scrollleiste erzeugt. */
    overflow: hidden auto;
    flex: 1;
    min-height: 0;
}

/* Modular snap toggle: snapping is opt-in via this class.
   `proximity` (nicht `mandatory`): Sektionen "rasten ein", aber Inhalte, die
   hoeher als der sichtbare Bereich sind (Kartenraster auf normalen Laptop-
   Hoehen, gestapelte Inhalte auf dem Handy), bleiben frei scrollbar –
   `mandatory` wuerde davor wegschnappen. initSnapOverflowGuard (main.js)
   schaltet Snapping nur noch bei EXTREM hohen Sektionen ganz ab. */
.snap-container--snap-enabled {
    scroll-snap-type: y proximity;
}

/* Each section is AT LEAST as tall as the scroll viewport (min-height:100%
   of .snap-container) but grows taller when its own content needs more room
   — note min-height only, NOT height:100%. A fixed height:100% forces the
   box to exactly the viewport height regardless of content, so anything
   taller overflows the box and (with justify-content:center) bleeds into
   the neighbouring section. With min-height the box expands to fit instead,
   so content is never clipped or displaced; on short viewports the sections
   simply stack taller than one screen and initSnapOverflowGuard turns off
   mandatory snapping so the whole page scrolls freely to reach everything. */
.snap-section {
    scroll-snap-align: start;
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Kein horizontales Padding hier – der seitliche Abstand sitzt auf den
       Inhalts-Wrappern (.section__panel etc.), damit alle Sektionen, Header
       und Footer exakt dieselbe 1400px-Spalte + denselben Rand haben. */
    padding: 2rem 0 4rem;
    text-align: center;
}

.snap-section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

/* Hero photo has faces near the top — anchor there instead of the
   default center crop so "cover" sizing doesn't cut them off. */
.hero[style*="background-image"] {
    background-position: center top;
}

.hero__overlay,
.section__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--color-accent-rgb), 0.58) 0%, rgba(var(--color-accent-rgb), 0.4) 50%, rgba(var(--color-accent-rgb), 0.72) 100%);
    z-index: 0;
}

/* Hero-Bild etwas kraeftiger abgedunkelt als die uebrigen Bild-Overlays
   (+0.1 je Gradient-Stop), damit der weisse Text oben mehr Kontrast hat. */
.hero__overlay {
    background: linear-gradient(180deg, rgba(var(--color-accent-rgb), 0.78) 0%, rgba(var(--color-accent-rgb), 0.6) 50%, rgba(var(--color-accent-rgb), 0.92) 100%);
}

/* Einheitliche Inhaltsbreite (1400px) für alle Sektionen; width:100%, weil
   .snap-section ein Flex-Container mit align-items:center ist und das Kind
   sonst nur so breit wie sein Inhalt würde. */
.hero__content,
.section__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* .hero__content sitzt auf dem 1400px-Raster (linke Kante = Logo/Leistungen).
   Der eigentliche Textblock darin ist linksbündig und schmal (560px). */
.hero__content {
    text-align: left;
    /* Der Container spannt das volle 1400px-Raster und liegt damit über der
       rechten Kundenlogo-Spalte (widget-slider--vertical). Ohne dies fängt er
       den Hover auf den Logos ab. pointer-events wird nur für den eigentlichen
       Textblock (.hero__inner, enthält den CTA-Button) wieder aktiviert – der
       schmale, linksbündige Block überlappt den Slider nie. */
    pointer-events: none;
}

.hero__inner {
    max-width: 580px;
    pointer-events: auto;
    /* 10px zusaetzlich zum geerbten .hero__content-Padding – nur fuer den
       Hero-Textblock (H1, Lead, Button, Bewertungen), nicht sitéweit. */
    padding-left: 10px;
    
}

.hero__inner_no-headline {
    padding: 1rem 2rem;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hero__content h1 {
    font-size: clamp(2.25rem, 8vw, 4rem);
    margin-top: 35px;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* Responsive Varianten: weniger Padding-Left auf schmalen Screens, sonst
   wirkt der Glass-Pillow-Block bzw. die Headline auf dem Handy unnoetig
   eingerueckt. Gleiche Breakpoints wie beim vertikalen Logo-Slider (700px
   Hero-Layoutwechsel, 1024px Header-Wechsel). */
@media (max-width: 699.98px) {
    .hero__inner_no-headline {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero__content h1 {
        padding-left: 0.75rem;
    }
}

@media (min-width: 700px) and (max-width: 1023.98px) {
    .hero__inner_no-headline {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero__content h1 {
        padding-left: 1.25rem;
    }
}

.section__logo-img {
    width: min(70vw, 16rem);
    margin: 0 auto 1.5rem;
}

.section__panel h2 {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    margin-bottom: 1rem;
}

.section__lead {
    font-size: clamp(1.4rem, 3vw, 1.65rem);
    line-height: 1.4;
    opacity: 0.95;
}

.section__cta {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    font-size: 1.2rem;
}

/* Winzige Schirme (< 360px, z. B. sehr schmale/alte Handys oder gefaltete
   Displays im zugeklappten Zustand): der vw-Anteil der obigen clamp()-Werte
   läuft hier gegen die feste Mindestgröße, die für normale Handybreiten
   (>= 360px) gedacht ist. Auf noch schmaleren Screens wird dieser Mindestwert
   breiter als der verfügbare Platz, und einzelne Wörter (z. B. "Sauberkeit,")
   werden vom umgebenden overflow:hidden abgeschnitten statt umzubrechen.
   Eigene, kleinere clamp()-Werte mit stärkerem vw-Anteil lassen die Schrift
   hier weiter mitschrumpfen statt hart an der Kante abzuschneiden. */
@media (max-width: 359.98px) {
    .hero__content h1 {
        font-size: clamp(1.5rem, 11vw, 2.25rem);
    }

    .section__panel h2 {
        font-size: clamp(1.3rem, 8.5vw, 1.75rem);
    }

    .section__lead {
        font-size: clamp(1rem, 5.5vw, 1.4rem);
    }
}

/* ==========================================================================
   "So geht's" — 3 Schritte, horizontal mit Icon (Vorbild: "Ihre Fensterputzer"
   "3 Schritte zu Ihrer Fensterreinigung"). Kreise durch eine Linie verbunden;
   die Nummer sitzt als kleines Badge oben rechts am Icon-Kreis.
   ========================================================================== */
.steps-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 46rem;
    margin: 2rem auto 0;
    padding: 0;
    list-style: none;
}

.steps-bar__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 0;
    padding: 0 0.5rem;
}

/* Verbindungslinie: läuft mittig durch die Icon-Kreise, liegt hinter ihnen. */
.steps-bar__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: calc(50% + 1.75rem);
    width: calc(100% - 3.5rem);
    height: 2px;
    background-color: rgba(var(--color-accent-rgb), 0.3);
}

.steps-bar__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-white);
    flex-shrink: 0;
}

/* Als Kind von .steps-bar__icon positioniert, damit das Badge exakt an der
   Kreisecke sitzt statt (relativ zur ganzen, breiten Flex-Spalte) irgendwo
   rechts oben in der Verbindungslinie zu landen. */
.steps-bar__number {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--color-sun);
    color: var(--color-black);
    font-size: 0.8rem;
    font-weight: 700;
}

.steps-bar__label {
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 639.98px) {
    .steps-bar {
        flex-direction: column;
        gap: 2rem;
        max-width: 20rem;
    }

    .steps-bar__step:not(:last-child)::after {
        top: calc(100% + 0.25rem);
        left: 50%;
        width: 2px;
        height: 1.5rem;
        transform: translateX(-50%);
    }
}

/* Der Kundenlogo-Slider im Hero ist ein eigenstaendiges Widget:
   Markup widgets/logo-slider.php, Styles assets/widgets/logo-slider/. */

/* Services-Kachelraster, Leistungsübersicht-Karten und die Über-uns-
   Argumentkarten liegen in components.css (per @import oben eingebunden). */

/* ==========================================================================
   Footer
   ========================================================================== */
/* The footer's stacked cards + contact form are routinely taller than the
   viewport, so (like all .snap-section now) it grows past 100% via
   min-height rather than being pinned to it. It additionally opts OUT of
   being a single snap point (scroll-snap-align:none) and instead lets each
   .site-footer__col be its own snap point (see below) — scrolling steps
   through Anschrift, Kontakt aufnehmen and Telefon one card at a time
   rather than trying (and failing) to snap the whole tall section at once. */
.site-footer {
    min-height: 100%;
    scroll-snap-align: none;
    background-color: var(--color-accent);
    color: var(--color-white);
    justify-content: space-between;
    /* Kein Bottom-Padding: die schwarze Legal-Leiste schließt die Seite
       bündig ab – wie der schwarze Info-Balken ganz oben. */
    padding-bottom: 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: left;
    /* über dem Bild-Overlay (.section__overlay, z-index:0) */
    position: relative;
    z-index: 1;
}

.site-footer__col {
    scroll-snap-align: start;
    background-color: var(--color-white);
    color: var(--color-dark);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-top: 2rem;
    min-width: 0; /* Grid-Spalte darf schrumpfen -> Inhalt umbricht statt zu ueberlaufen */
}

.site-footer__heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.site-footer__logo-img {
    height: 1.75rem;
    width: auto;
    margin-bottom: 0.75rem;
}

.site-footer .contact-form__field input,
.site-footer .contact-form__field textarea {
    background-color: var(--color-grey-light);
    border-color: rgba(18, 24, 29, 0.15);
    color: var(--color-dark);
}

.site-footer .contact-form__field label {
    color: var(--color-grey);
}

.site-footer__address {
    font-style: normal;
    line-height: 1.7;
}

.site-footer__address a {
    text-decoration: underline;
}

.site-footer__col--phone {
    display: flex;
    flex-direction: column;
}

.site-footer__phone {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

/* Schwarze Abschlussleiste über die volle Breite – spiegelt den schwarzen
   Info-Balken ganz oben. */
.site-footer__legal-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 3rem;
    background-color: var(--color-black);
    color: var(--color-white);
}

.site-footer__legal {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.site-footer__legal-links {
    display: flex;
    gap: 1.25rem;
}

.site-footer__legal-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Platzhalter fuer einen kommenden Glass-Pillow-Hintergrund (Frosted-Glass-
   Chip) hinter Labels auf Bild-Hintergruenden. Noch ohne Deklarationen –
   aktuell an widget-slider__head/__foot (logo-slider) angehaengt. */
.glass-pillow {
}

/* ==========================================================================
   Scroll-reveal animation
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
    .modal__panel {
        width: min(28rem, 90vw);
        height: auto;
        max-height: 85vh;
        border-radius: var(--radius-sm);
        padding: 2.5rem;
    }

    .modal__panel--text {
        width: min(40rem, 90vw);
    }
}

/* Footer erst ab 900px dreispaltig – darunter wird die grosse Telefonnummer
   in drei schmalen Spalten sonst mehrzeilig umgebrochen. */
@media (min-width: 900px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Enger werdende Spalten-Luecke, damit die drei Bloecke (Anschrift /
   Kontaktformular / Telefon) mehr Breite bekommen. Nur column-gap -> der
   vertikale Abstand im 1-spaltigen Layout unter 900px bleibt unberuehrt. */
@media (min-width: 900px) and (max-width: 1199.98px) {
    .site-footer__grid {
        column-gap: 1.25rem;
    }
}

@media (max-width: 959.98px) {
    .site-footer__grid {
        column-gap: 0.5rem;
    }
}
