/* =============================================================================
   SEXLINGER CONSULTING ENGINEERING GMBH
   Stylesheet | modular, responsiv, CSS-only Animationen
   Alle Farben, Abstände und Typo als CSS-Variablen – global anpassbar.
   ============================================================================= */

/* ---------- 1. Design-Tokens ------------------------------------------------ */
:root {
    /* Markenfarben */
    --brand-500: #51ba2c;
    --brand-600: #2ea328;
    --brand-700: #00882e;
    --brand-800: #006a24;
    --brand-900: #004a1b;

    /* Neutrale Töne */
    --ink-900: #0f1a14;
    --ink-700: #1e2a22;
    --ink-500: #3a4a42;
    --ink-400: #5a6b63;
    --ink-300: #97a19b;
    --ink-200: #c8d2cc;
    --ink-100: #e8ede9;
    --ink-050: #f4f8f5;
    --white:   #ffffff;

    /* Hintergründe */
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f4faf6 55%, #ecf5ef 100%);
    --brand-gradient: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(0,136,46,0.92) 0%, rgba(81,186,44,0.92) 100%);

    /* Marken-Hintergrund (Header & Footer) – schlichter diagonaler
       Grünverlauf, identisch zum ursprünglichen --brand-gradient. */
    --brand-panel: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);

    /* Layout */
    --container-max: 1280px;
    --container-pad: clamp(1.2rem, 2.5vw, 2.2rem);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Schatten */
    --shadow-sm: 0 2px 10px rgba(0, 60, 25, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 60, 25, 0.10);
    --shadow-lg: 0 20px 50px rgba(0, 60, 25, 0.14);

    /* Typografie */
    --font-sans: 'Mulish', 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --fs-xs:   0.82rem;
    --fs-sm:   0.92rem;
    --fs-base: 1.02rem;
    --fs-lg:   1.18rem;
    --fs-xl:   clamp(1.4rem, 2vw, 1.8rem);
    --fs-2xl:  clamp(1.8rem, 3vw, 2.6rem);
    --fs-3xl:  clamp(2.2rem, 4vw, 3.6rem);
    --fs-4xl:  clamp(2.8rem, 6vw, 5rem);

    /* Animation */
    --ease: cubic-bezier(.23, 1, .32, 1);
    --dur-fast: .2s;
    --dur-med:  .45s;
    --dur-slow: .8s;
}

/* ---------- 2. Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Schutz vor horizontalem Overflow (z.B. durch absolut positionierte
       Dekor-Elemente wie .hero__siegel oder Hover-/Zoom-Transforms).
       'clip' verhindert Scrollen wie 'hidden', ohne aber einen neuen
       Scroll-Container zu erzeugen — dadurch funktioniert position:sticky
       am Header weiterhin (in Browsern ohne 'clip'-Support greift die
       darunter liegende 'hidden'-Regel als Fallback). */
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--ink-700);
    background: var(--bg-gradient) fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Identische Absicherung am Body — gemeinsam mit der Regel auf <html>
       wird so jegliches seitliches Wegscrollen auf allen Seiten unterbunden. */
    overflow-x: hidden;
    overflow-x: clip;
}

main { flex: 1 0 auto; }

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

a {
    color: var(--brand-700);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}
a:hover, a:focus { color: var(--brand-500); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-sans);
    color: var(--ink-900);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 800;
    letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-3xl); font-weight: 900; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-lg); font-weight: 700; }

p { margin: 0 0 1.2em; }

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

/* Hilfsklasse: optisch versteckt, aber für Screenreader/SEO erreichbar */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Tastatur-Fokus (nur für Tastatur sichtbar) */
:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -200px; top: 0;
    background: var(--brand-700); color: #fff;
    padding: .7rem 1rem; z-index: 1000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Header ------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background:
        linear-gradient(135deg,
            #00882e 0%, #0c902f 15%,
            #048b2e 15%, #23a233 45%,
            #1b9e32 45%, #2aa934 68%,
            #29a332 68%, #40b433 85%,
            #37ad32 85%, #42b334 100%
        );
    /* ===== ALTERNATIVE VARIANTE (zum spaeteren Wechsel) =====================
       Hellerer/leicht gruenerer Verlauf mit metallischen Kanten.
       Zum Aktivieren: den aktuellen 'background:'-Block oben auskommentieren
       und den unten stehenden Block (ohne die umschliessenden Kommentar-
       zeichen) einsetzen. Footer (.site-footer) sollte parallel umgestellt
       werden, damit Header und Footer optisch identisch bleiben.

    background:
        linear-gradient(135deg,
            #00882e 0%, #139632 15%,
            #068c2f 15%, #29a733 55%,
            #1c9e33 55%, #40b333 68%,
            #29a735 68%, #4ab634 85%,
            #2eaa33 85%, #56bc35 100%
        );
       ====================================================================== */
    box-shadow: var(--shadow-md);
    color: #fff;
    overflow: hidden;
}
.site-header::before {
    /* subtiler Highlight-Streifen am unteren Rand */
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.35) 50%,
        rgba(255,255,255,0) 100%);
}
.site-header::after {
    /* folded-v4 Shimmer-Overlay */
    content: "";
    position: absolute;
    inset: -30%;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(135deg,
            rgba(85,187,52,.10) 0%, rgba(0,136,46,.16) 15%,
            rgba(20,150,50,.02) 55%, rgba(85,187,52,.14) 68%,
            rgba(0,136,46,.08) 85%, rgba(85,187,52,.18) 100%
        );
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: clamp(.9rem, 1.6vw, 1.4rem);
    flex-wrap: nowrap;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    order: 1;
    text-decoration: none;
}

/* Wrapper direkt ums Logo – Ankerpunkt für das Siegel */
.site-header__logo-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.site-header__logo {
    height: 72px;              /* feste Größe – schrumpft erst wenn nav-compact greift */
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    max-width: min(70vw, 520px);
    display: block;
}

/* Siegel: absolut über „ENGINEERING" – immer relativ zur Logo-Bildhöhe */
.site-header__siegel {
    position: absolute;
    right: 0;                     /* rechtsbündig am Logo-Rand */
    top: 30%;                     /* ENGINEERING-Zeile beginnt bei ~33% der Logo-Höhe */
    transform: translateY(-100%); /* Siegel sitzt knapp darüber */
    height: clamp(23px, 2.5vw, 32px);
    width: auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.28));
    pointer-events: none;
}

/* Navigation (rechtsbündig, gleiche Zeile wie das Logo) */
.site-nav {
    order: 2;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}
.site-nav__list {
    display: flex;
    flex-wrap: nowrap;   /* Menüpunkte bleiben IMMER in einer Zeile */
    gap: .2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav__link {
    display: inline-block;
    padding: .7rem 1.15rem;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 1.15rem; right: 1.15rem; bottom: .45rem;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-med) var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__link.is-active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.site-nav__link:hover::after,
.site-nav__link:focus::after,
.site-nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    width: 48px; height: 44px;
    cursor: pointer;
    padding: 0;
    order: 1;
}
.nav-toggle__bar {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    margin: 5px auto;
    transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 4. Hero / Slideshow (Startseite) -------------------------------- */
.hero {
    position: relative;
    width: 100%;
    /* max-width: 100vw verhindert, dass der Hero durch innenliegende
       absolut positionierte Elemente (Siegel, Slides mit Ken-Burns-Zoom)
       einen Pixel ueber den Viewport hinaus rechnen kann. */
    max-width: 100vw;
    aspect-ratio: 4 / 1;
    min-height: 280px;
    max-height: 680px;
    overflow: hidden;
    /* Erzwingt, dass die Render-Pipeline an der Hero-Kante hart abschneidet
       — dadurch entsteht auf iOS Safari beim Wischen kein "leerer" Scroll-
       Bereich rechts neben der Slideshow. */
    contain: paint;
    /* Neutraler dunkler Hintergrund: waehrend des kurzen Cross-Fades
       zwischen den Slides wird so kein gruener Markenverlauf sichtbar. */
    background: #0d0d0d;
}

.hero__slides {
    position: absolute; inset: 0;
    /* Zusaetzlicher dunkler Backstop hinter den Slides. */
    background: #0d0d0d;
}

/* Slideshow mit JavaScript-gesteuertem Cross-Fade (siehe main.js).
   - Alle Slides liegen deckungsgleich uebereinander.
   - .is-current   -> sichtbar (Basis-Layer, z-index 1) und zoomt langsam
                      leicht heraus (Ken-Burns-Effekt, Zoom-Out).
   - .is-fading-in -> blendet darueber ein (z-index 2, opacity 0 -> 1).
   Da der aktive Slide waehrend des Wechsels darunter sichtbar bleibt,
   gibt es keinen Schwarz-Moment zwischen den Bildern. */
.hero__slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Basis-z-index: 0. Das gerade ausblendende Slide faellt damit beim
       Klassen-Tausch sofort hinter das neue, das jetzt is-current traegt.
       Andernfalls kommt es beim Wrap-Around (3 -> 1) zu einem Doppel-Fade,
       weil bei gleichem z-index die DOM-Reihenfolge entscheidet und das
       alte Slide dann VOR dem neuen liegen wuerde. */
    z-index: 0;
    transform: scale(1.0);
    transition: opacity 1.5s ease-in-out;
    will-change: opacity, transform;
}
.hero__slide.is-current { opacity: 1; z-index: 1; }
.hero__slide.is-fading-in {
    opacity: 1;
    z-index: 2;
}
/* Sanfter Ken-Burns-Zoom waehrend der gesamten Sichtbarkeit:
   Beide Klassen treffen denselben Selektor, damit die Animation beim
   Klassenwechsel (is-fading-in -> is-current) NICHT zurueckspringt.
   Geschwindigkeit (Skalenaenderung pro Sekunde) und Easing sind
   identisch mit dem Header-Zoom auf den Unterseiten (.page-hero__image:
   18s fuer 0.08 Skalenaenderung -> 0.00444/s, var(--ease)).
   Bei 11.5s Sichtbarkeit (10s Standzeit + 1.5s Fade) ergibt das einen
   Skalenhub von ca. 0.051. */
.hero__slide.is-current,
.hero__slide.is-fading-in {
    animation: heroSlideZoom 5s ease-out forwards;
}
@keyframes heroSlideZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1.00); }
}

.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 60, 25, 0.55) 0%, rgba(0, 60, 25, 0.10) 70%);
    pointer-events: none;
    z-index: 3;
}

.hero__content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-inline: var(--container-pad);
    color: #fff;
    max-width: var(--container-max);
    margin-inline: auto;
    left: 0; right: 0;
    pointer-events: none;
}
.hero__eyebrow {
    font-size: .7rem;                              /* -20% */
    text-transform: uppercase;
    letter-spacing: .3em;
    color: rgba(255,255,255,0.85);
    margin-bottom: .9rem;
    font-weight: 600;
}
.hero__title {
    color: #fff;
    font-size: clamp(1.44rem, 4vw, 3.2rem);         /* -20% */
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 4px 24px rgba(0,0,0,0.35);
    margin: 0 0 1rem;
    max-width: 820px;
}
.hero__subtitle {
    color: rgba(255,255,255,0.92);
    font-size: clamp(.8rem, 1.2vw, 1.04rem);        /* -20% */
    max-width: 680px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    pointer-events: none;
}
.hero__cta {
    margin-top: 1.8rem;
    pointer-events: auto;
}

/* Page-Hero (Unterseiten, statisches Bild) */
.page-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
    min-height: 220px;
    max-height: 460px;
    overflow: hidden;
    background: var(--brand-gradient);
}
.page-hero__image {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    animation: heroZoom 18s var(--ease) both;
}
@keyframes heroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1.0); }
}
.page-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 50, 20, 0.35), rgba(0, 50, 20, 0.55));
}
.page-hero__content {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding-inline: var(--container-pad);
    max-width: var(--container-max);
    margin-inline: auto;
    left: 0; right: 0;
    color: #fff;
}
.page-hero__title {
    color: #fff;
    font-size: clamp(1.44rem, 4vw, 3.2rem);          /* gleich wie .hero__title */
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    font-weight: 900;
    letter-spacing: -0.01em;
}
.page-hero__crumb {
    font-size: .7rem;                                /* gleich wie .hero__eyebrow */
    text-transform: uppercase;
    letter-spacing: .3em;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin-bottom: .9rem;
}

/* Siegel-Overlay (Slideshow + Unterseiten-Header) --------------------------- */
.hero__siegel,
.page-hero__siegel {
    position: absolute;
    /* etwas weiter links als die rechte Container-Kante */
    right: calc(max(var(--container-pad), (100% - var(--container-max)) / 2)
                + clamp(1rem, 3vw, 2.8rem));
    bottom: clamp(1rem, 3vw, 2.2rem);
    /* Slideshow + Unterseiten gleich groß */
    width: clamp(144px, 19.2vw, 272px);
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 10px 28px rgba(0,0,0,0.45));
    pointer-events: none;
    user-select: none;
}

/* ---------- 5. Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .9em 1.8em;
    font-weight: 700;
    font-size: .98rem;
    border-radius: 999px;
    cursor: pointer;
    border: 0;
    transition: transform var(--dur-fast) var(--ease),
                box-shadow var(--dur-med) var(--ease),
                background var(--dur-med) var(--ease);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.02em;
}
.btn--primary {
    background: #fff;
    color: var(--brand-700);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.22);
    color: var(--brand-800);
}
.btn--dark {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,136,46,0.25);
}
.btn--dark:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0,136,46,0.35);
}
.btn--ghost {
    background: transparent;
    color: var(--brand-700);
    border: 2px solid var(--brand-700);
}
.btn--ghost:hover {
    background: var(--brand-700);
    color: #fff;
}

/* ---------- 6. Sections ----------------------------------------------------- */
main { padding-top: 0; padding-bottom: 0; }

.section {
    padding-block: clamp(2.4rem, 5vw, 5rem);
}
/* Erste Section direkt unter Hero / Page-Hero rückt näher heran */
.hero + main > .section:first-child,
.page-hero + main > .section:first-child {
    padding-top: clamp(1.2rem, 2.4vw, 2.4rem);
}
.section--muted {
    background: linear-gradient(180deg, #f4faf6 0%, #eaf4ec 100%);
    border-block: 1px solid rgba(0,136,46,0.08);
}
.section--dark {
    background: var(--brand-gradient);
    color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.section-header {
    max-width: 780px;
    margin: 0 auto clamp(1.8rem, 3vw, 3rem);
    text-align: center;
}
.section-header--left { text-align: left; margin-inline: 0; }
.section-eyebrow {
    display: inline-block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .35em;
    color: var(--brand-700);
    font-weight: 700;
    margin-bottom: .9rem;
    position: relative;
    padding-left: 2.2rem;
    padding-right: 2.2rem;     /* Platz für Strich nach dem Text */
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 1.6rem; height: 2px;
    /* Strich uebernimmt automatisch die Farbe der Eyebrow-Schrift
       (currentColor), damit Strich und Text immer einheitlich sind. */
    background: currentColor;
    transform: translateY(-50%);
}
.section-eyebrow::before { left: 0; }
.section-eyebrow::after  { right: 0; }
.section--dark .section-eyebrow { color: #d4f5c6; }

/* ---------- 7. Grids & Cards ----------------------------------------------- */
.grid {
    display: grid;
    gap: clamp(1rem, 2vw, 2rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 500px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.4rem, 2vw, 2rem);
    transition: transform var(--dur-med) var(--ease),
                box-shadow var(--dur-med) var(--ease);
    border: 1px solid rgba(0,136,46,0.06);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,136,46,0.2);
}
.card__icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #fff; font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(0,136,46,0.25);
    font-variant-emoji: text;
    padding: 0;
    overflow: hidden;
}
/* LP-Badge: passt sich dem Text an und hat rundum gleichen Abstand */
.card__icon--lp {
    width: auto;
    height: auto;
    padding: .85rem 1.1rem;
    font-size: 1.1rem;
    justify-self: start;
    letter-spacing: .03em;
}
.card__title {
    font-size: 1.15rem;
    margin: 0 0 .55rem;
    color: var(--ink-900);
}
.card__text {
    color: var(--ink-500);
    font-size: .97rem;
    margin: 0;
}

/* Leistungs-Karten in der Startseiten-Vorschau */
.service-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    color: #fff;
    min-height: 260px;
    border-radius: var(--radius-lg);
    background: var(--brand-gradient);
    isolation: isolate;
}
.service-card__inner {
    padding: clamp(1.4rem, 2vw, 2.2rem);
    display: flex; flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
    min-height: 260px;
}
.service-card__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: rgba(255,255,255,0.8);
    margin-bottom: .4rem;
}
.service-card__title {
    color: #fff;
    font-size: 1.4rem;
    margin-top: auto;
    font-weight: 800;
}
.service-card::after {
    content: "→";
    position: absolute;
    right: 1.4rem; top: 1.4rem;
    background: rgba(255,255,255,0.15);
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 1.2rem;
    transition: transform var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
    z-index: 2;
}
.service-card:hover::after {
    transform: translate(4px, -4px) rotate(-45deg);
    background: #fff;
    color: var(--brand-700);
}

/* Kennzahlen */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    text-align: center;
}
.stat__number {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, #d4f5c6 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    margin-bottom: .4rem;
}
.section:not(.section--dark) .stat__number {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.stat__label {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 600;
    opacity: .9;
}

/* Zwei-Spalten Text+Bild */
.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.6rem, 4vw, 4rem);
    align-items: center;
}
.split--flip .split__text { order: 2; }
.split__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}
.split__media img, .split__media {
    background-size: cover;
    background-position: center;
}
.split__media::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,60,25,0.25));
    pointer-events: none;
}

/* Leistungs-Detailliste */
.services-detailed {
    display: grid;
    gap: clamp(1.2rem, 2vw, 1.8rem);
    grid-template-columns: 1fr;
}
@media (min-width: 500px)  { .services-detailed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-detailed { grid-template-columns: repeat(4, 1fr); } }
.service-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--brand-500);
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-item__title {
    color: var(--brand-700);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: .6rem;
}
.service-item__list {
    list-style: none;
    padding: 0; margin: 0;
    font-size: .95rem;
    color: var(--ink-500);
}
.service-item__list li {
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: .35em;
}
.service-item__list li::before {
    content: "";
    position: absolute;
    left: 0; top: .55em;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--brand-700);
    transform: rotate(45deg);
}

/* ---------- 8. Prozess Timeline -------------------------------------------- */

@keyframes prozess-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(0,136,46,.50), 0 4px 16px rgba(0,136,46,.28); }
    65%  { box-shadow: 0 0 0 14px rgba(0,136,46,0),  0 4px 16px rgba(0,136,46,.28); }
    100% { box-shadow: 0 0 0 0   rgba(0,136,46,0),   0 4px 16px rgba(0,136,46,.28); }
}

/* ---- Mobile / Tablet: vertikale Timeline ---- */
.prozess-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 3rem;
    gap: 0;
}

/* Vertikale Linie */
.prozess-timeline::before {
    content: "";
    position: absolute;
    left: 1.6rem;          /* = timeline padding-left(3rem) − dot left(-3rem) + dot-width/2(1.6rem) → Linie mittig am Dot */
    top: 1.5rem;
    bottom: 1.5rem;
    width: 3px;
    transform: translateX(-50%);   /* exakte Zentrierung unabhängig von Liniendicke */
    background: linear-gradient(to bottom, var(--brand-700), var(--brand-500));
    border-radius: 99px;
}

.prozess-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 0 0 2.4rem 1.8rem;
}
.prozess-step:last-child { padding-bottom: 0; }

/* Dot */
.prozess-step__dot {
    position: absolute;
    left: -3rem;
    top: -.1rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--brand-gradient);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    animation: prozess-pulse 2.8s ease-out infinite;
}
.prozess-step:nth-of-type(2) .prozess-step__dot { animation-delay:  .56s; }
.prozess-step:nth-of-type(3) .prozess-step__dot { animation-delay: 1.12s; }
.prozess-step:nth-of-type(4) .prozess-step__dot { animation-delay: 1.68s; }
.prozess-step:nth-of-type(5) .prozess-step__dot { animation-delay: 2.24s; }
.prozess-step:nth-of-type(6) .prozess-step__dot { animation-delay: 2.80s; }

.prozess-step__dot span {
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1;
}

/* Card */
.prozess-step__card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,136,46,.08);
    border-left: 4px solid var(--brand-500);
    padding: 1.3rem 1.5rem calc(1.3rem + 30px);
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: transform var(--dur-med) var(--ease),
                box-shadow var(--dur-med) var(--ease);
}

/* Wasserzeichen-Nummer */
.prozess-step__card::before {
    position: absolute;
    right: .3rem;
    bottom: calc(-.6rem + 7px);
    top: auto;
    transform: none;
    font-size: 4.8rem;
    font-weight: 900;
    color: rgba(0,136,46,.07);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    font-family: inherit;
}
.prozess-step:nth-of-type(1) .prozess-step__card::before { content: "1"; }
.prozess-step:nth-of-type(2) .prozess-step__card::before { content: "2"; }
.prozess-step:nth-of-type(3) .prozess-step__card::before { content: "3"; }
.prozess-step:nth-of-type(4) .prozess-step__card::before { content: "4"; }
.prozess-step:nth-of-type(5) .prozess-step__card::before { content: "5"; }
.prozess-step:nth-of-type(6) .prozess-step__card::before { content: "6"; }

/* Geschichte Timeline – Jahreszahl im Dot */
.geschichte-timeline .prozess-step__dot span {
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: -.02em;
}
@media (min-width: 1080px) {
    .geschichte-timeline .prozess-step__dot span { font-size: .72rem; }
}

/* Geschichte Timeline – Karten im service-item-Stil */
.geschichte-timeline .prozess-step__card {
    border: none;
    border-top: 4px solid var(--brand-500);
    padding: 1.8rem;
    overflow: visible;
}
.geschichte-timeline .prozess-step__card { overflow: hidden; }
.geschichte-timeline .prozess-step:hover .prozess-step__card {
    transform: translateX(0) translateY(-4px);
    box-shadow: var(--shadow-md);
}
.geschichte-timeline .prozess-step__title {
    font-size: 1.15rem;
    margin-bottom: .6rem;
}
@media (min-width: 1080px) {
    .geschichte-timeline .prozess-step__card {
        aspect-ratio: 3 / 4;
    }
}
@media (min-width: 1200px) {
    .geschichte-timeline .prozess-step:nth-of-type(odd):hover  .prozess-step__card { transform: translateY(-4px); }
    .geschichte-timeline .prozess-step:nth-of-type(even):hover .prozess-step__card { transform: translateY(4px); }
}

/* ================================================================
   Leistung-Timeline (leistungen.html) – eigene Styles hier pflegen
   Modifier-Klasse: .leistung-timeline
   Alle Regeln überschreiben nur Styles für die Leistungs-Timeline,
   ohne die Geschichte-Timeline auf unternehmen.html zu beeinflussen.
   ================================================================ */
/* Beispiel – einfach auskommentieren und anpassen:
.leistung-timeline .prozess-step__dot {
    background: var(--brand-500);
}
.leistung-timeline .prozess-step__card {
    border-top-color: var(--brand-700);
}
*/

/* Textgrößen = Fachbereiche (service-item) */
.leistung-timeline .prozess-step__title {
    font-size: 1.15rem;
}
.leistung-timeline .prozess-step__text {
    font-size: .95rem;
}

.prozess-step:hover .prozess-step__card {
    transform: translateX(5px);
    box-shadow: 0 6px 24px rgba(0,136,46,.16);
}

.prozess-step__title {
    color: var(--brand-700);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: .38rem;
    position: relative;
}
.prozess-step__text {
    color: var(--ink-500);
    font-size: .93rem;
    line-height: 1.56;
    margin: 0;
    position: relative;
}

/* Spacer – immer unsichtbar (Layout über flex: 1 auf Steps) */
.prozess-spacer { display: none; }

/* ---- Desktop: Zickzack-Timeline ---- */
@media (min-width: 1080px) {
    .prozess-timeline {
        flex-direction: row;
        padding-left: 0;
        min-height: 680px;
        align-items: stretch;
        gap: 0;
    }

    /* Horizontale Mittellinie */
    .prozess-timeline::before {
        left: 0; right: 0;
        top: 50%; bottom: auto;
        width: auto; height: 4px;
        transform: translateY(-50%);
        background: linear-gradient(90deg, var(--brand-700) 0%, var(--brand-500) 100%);
    }

    .prozess-step {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: .5rem .4rem;
        position: relative;
    }

    /* Dot auf Mittellinie */
    .prozess-step__dot {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 3.4rem;
        height: 3.4rem;
        z-index: 2;
    }
    .prozess-step__dot span { font-size: 1.15rem; }

    /* Karte: absolut in ihrer Hälfte */
    .prozess-step__card {
        position: absolute;
        left: .35rem;
        right: .35rem;
        border-left: none;
        border-top: 4px solid var(--brand-500);
        text-align: center;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        aspect-ratio: 1;
        z-index: 1;
    }

    /* Ungerade Schritte → Karte OBEN: von unten verankert, wächst nach oben */
    .prozess-step:nth-of-type(odd) .prozess-step__card {
        bottom: calc(50% + 4rem);
        top: auto;
    }
    /* Gerade Schritte → Karte UNTEN: von oben verankert, wächst nach unten */
    .prozess-step:nth-of-type(even) .prozess-step__card {
        top: calc(50% + 4rem);
        bottom: auto;
    }

    /* Kurzer vertikaler Verbinder Dot↔Karte */
    .prozess-step::after {
        content: "";
        position: absolute;
        left: 50%;
        width: 2px;
        background: rgba(0,136,46,.22);
        transform: translateX(-50%);
        z-index: 0;
        border-radius: 1px;
    }
    /* Dot-Mittelpunkt bei 50%, Radius 1.7rem → Kanten bei 50% ± 1.7rem
       Karte: bottom/top bei calc(50% + 4rem) → Lücke exakt 2.3rem */
    .prozess-step:nth-of-type(odd)::after {
        bottom: calc(50% + 1.7rem);
        height: calc(2.3rem + 12px);
    }
    .prozess-step:nth-of-type(even)::after {
        top: calc(50% + 1.7rem);
        height: calc(2.3rem + 12px);
    }

    /* Wasserzeichen kleiner für schmale Spalten */
    .prozess-step__card::before { font-size: 3.6rem; }

    /* Hover-Effekte */
    .prozess-step:hover .prozess-step__card {
        transform: none;
        box-shadow: 0 8px 28px rgba(0,136,46,.18);
    }
    .prozess-step:nth-of-type(odd):hover .prozess-step__card  { transform: translateY(-5px); }
    .prozess-step:nth-of-type(even):hover .prozess-step__card { transform: translateY(5px); }
    .prozess-step:hover .prozess-step__dot {
        transform: translate(-50%, -50%) scale(1.12);
    }
}

/* ---------- 10. Referenzen Galerie ----------------------------------------- */
.references {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}
@media (max-width: 720px) {
    .references { grid-template-columns: 1fr; }
}
.reference {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-med) var(--ease),
                box-shadow var(--dur-med) var(--ease);
}
.reference:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.reference__image {
    aspect-ratio: 480 / 270;
    background-color: var(--ink-100);
    position: relative;
    overflow: hidden;          /* clippt das ::before an allen 4 Seiten */
}
.reference__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit; /* übernimmt das inline style="background-image:…" */
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform var(--dur-med) var(--ease);
    will-change: transform;
}
.reference:hover .reference__image::before {
    transform: scale(1.06);
}
.reference__body {
    padding: 1.2rem 1.4rem 1.4rem;
}
.reference__title {
    font-size: 1.05rem;
    color: var(--ink-900);
    margin: 0 0 .3rem;
    font-weight: 800;
}
.reference__credit {
    font-size: .8rem;
    color: var(--ink-400);
    font-style: italic;
    margin: 0;
}

/* ---------- 9. Kontakt ------------------------------------------------------ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.6rem, 4vw, 3rem);
    align-items: start;
}
.contact-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: clamp(1.6rem, 2.5vw, 2.4rem);
    box-shadow: var(--shadow-md);
}
.contact-card h3 { margin-top: 0; }
.contact-list {
    list-style: none; padding: 0; margin: 0;
}
.contact-list li {
    display: flex; align-items: flex-start;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px dashed var(--ink-100);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(0, 136, 46, 0.10);
    color: var(--brand-700);
    display: grid; place-items: center;
    font-weight: 400;
    line-height: 1;
}
.contact-list__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}
.contact-list__icon--linkedin svg {
    width: 24px;
    height: 24px;
}
.contact-list__icon--whatsapp svg {
    width: 24px;
    height: 24px;
}
.contact-list__label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--ink-400);
    font-weight: 600;
    margin-bottom: .15rem;
}
.contact-list__value {
    font-weight: 600;
    color: var(--ink-900);
}

/* Bürozeiten – Tabellarische Liste */
.hours {
    list-style: none;
    padding: 0;
    margin: .2rem 0 0;
    display: grid;
    gap: .25rem;
}
.hours li {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: .8rem;
    padding: .28rem 0;
    font-size: .95rem;
    border-bottom: 1px dashed var(--ink-100);
}
.hours li:last-child { border-bottom: 0; }
.hours__day {
    font-weight: 600;
    color: var(--ink-900);
}
.hours__time {
    color: var(--ink-700);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

/* Formular */
.contact-form { display: grid; gap: 1rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-700);
    letter-spacing: .03em;
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: .97rem;
    background: #fff;
    color: var(--ink-900);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(81,186,44,0.18);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-consent {
    font-size: .82rem;
    color: var(--ink-500);
    display: flex; align-items: flex-start; gap: .6rem;
}
.form-consent input { margin-top: .25rem; }

/* Karten-Embed */
.map-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
}
/* etwas flacher: Höhe -10 % ggü. 16:9 */
.map-frame--compact {
    aspect-ratio: 16 / 8.1;
}

/* Wrapper für die Leaflet-Karte: rundet die Ecken und sorgt für Schatten.
   Mausrad-Zoom, Doppelklick-Zoom etc. sind direkt in der Leaflet-Initialisierung
   (kontakt.html) deaktiviert; Pan und +/-‑Buttons bleiben aktiv. */
.map-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.map-wrap .map-frame {
    border-radius: 0;
    box-shadow: none;
}

/* Eigener Standort-Marker (Sexlinger-Grün mit S-Logo). Leaflet vergibt
   .divIcon-Markern standardmäßig einen weißen Hintergrund + 1px-Rand –
   den setzen wir hier zurück, damit nur das SVG sichtbar ist. */
.leaflet-marker-icon.sexlinger-pin {
    background: transparent;
    border: 0;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* ---------- Partners / Mitgliedschaften ------------------------------------ */
.partners {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    align-items: stretch;
}
.partners__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .7rem;
    padding: 1.2rem .8rem;
    background: #fff;
    border: 1px solid rgba(0, 136, 46, 0.10);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform var(--dur-fast) var(--ease),
                box-shadow var(--dur-med) var(--ease),
                border-color var(--dur-fast) var(--ease);
}
.partners__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 136, 46, 0.12);
    border-color: rgba(0, 136, 46, 0.25);
}
.partners__logo {
    width: 100%;
    max-width: 140px;
    height: 72px;
    display: grid;
    place-items: center;
    color: var(--brand-700);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: pre-line;
    line-height: 1.05;
    text-align: center;
}
.partners__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: grayscale(15%);
    transition: filter var(--dur-fast) var(--ease);
}
.partners__item:hover .partners__logo img { filter: grayscale(0); }
.partners__logo--placeholder {
    background: linear-gradient(135deg, #f4faf6 0%, #eaf4ec 100%);
    border: 1px dashed rgba(0, 136, 46, 0.35);
    border-radius: var(--radius-sm, 8px);
}
.partners__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
}
.partners__label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-700);
    line-height: 1.3;
    letter-spacing: .01em;
    margin: 0;
    transition: color var(--dur-fast) var(--ease);
}
.partners__item:hover .partners__label {
    color: var(--brand-700);
}
@media (max-width: 1024px) {
    .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
    .partners { grid-template-columns: 1fr; }
}

/* ---------- Footprint-Block (Unternehmen) ---------------------------------- */
.footprint {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.6rem, 3.2vw, 3.2rem);
    align-items: center;
    max-width: 980px;
    margin-inline: auto;
}
.footprint__badge {
    width: clamp(110px, 16vw, 180px);
    aspect-ratio: 1 / 1;
    /* Kreis-Huelle entfernt: Im Badge stehen jetzt zwei weisse
       Fussabdruecke direkt auf dem dunklen Hintergrund. */
    display: grid;
    place-items: center;
    padding: 0;
}
.footprint__badge svg {
    width: 100%;
    height: 100%;
}
.footprint__content h2 { margin: .2rem 0 .8rem; }
.footprint__content p {
    color: rgba(255,255,255,0.92);
    line-height: 1.55;
    margin: 0 0 .9rem;
    max-width: 60ch;
}
.footprint__lead {
    font-size: 1.06rem;
    font-weight: 600;
    color: #fff !important;
    border-left: 3px solid #ffffff;
    padding-left: 1rem;
    margin-top: 1.2rem !important;
}
@media (max-width: 720px) {
    .footprint {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .footprint__content p { margin-inline: auto; }
    .footprint__lead {
        border-left: 0;
        border-top: 2px solid #ffffff;
        padding-left: 0;
        padding-top: .8rem;
        text-align: center;
    }
}

/* ---------- 10. Rechtliche Seiten ------------------------------------------ */
.legal {
    max-width: 820px;
    margin-inline: auto;
}
.legal h2 { margin-top: 2em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.5em; font-size: 1.15rem; color: var(--brand-700); }
.legal p, .legal li { font-size: .97rem; color: var(--ink-500); }
.legal ul { padding-left: 1.3rem; }

/* ---------- 11. Footer ------------------------------------------------------ */
.site-footer {
    background:
        linear-gradient(135deg,
            #00882e 0%, #0c902f 15%,
            #048b2e 15%, #23a233 45%,
            #1b9e32 45%, #2aa934 68%,
            #29a332 68%, #40b433 85%,
            #37ad32 85%, #42b334 100%
        );
    /* ===== ALTERNATIVE VARIANTE (zum spaeteren Wechsel) =====================
       Identische Alternative wie im Header (.site-header). Bei Wechsel bitte
       beide Stellen gleichzeitig umstellen, damit Header und Footer optisch
       zusammenpassen. Den aktuellen 'background:'-Block oben auskommentieren
       und den folgenden Block (ohne die umschliessenden Kommentarzeichen)
       einsetzen.

    background:
        linear-gradient(135deg,
            #00882e 0%, #139632 15%,
            #068c2f 15%, #29a733 55%,
            #1c9e33 55%, #40b333 68%,
            #29a735 68%, #4ab634 85%,
            #2eaa33 85%, #56bc35 100%
        );
       ====================================================================== */
    color: rgba(255,255,255,0.92);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.35) 50%,
        rgba(255,255,255,0) 100%) 1;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.site-footer::after {
    /* folded-v4 Shimmer-Overlay */
    content: "";
    position: absolute;
    inset: -30%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg,
            rgba(85,187,52,.10) 0%, rgba(0,136,46,.16) 15%,
            rgba(20,150,50,.02) 55%, rgba(85,187,52,.14) 68%,
            rgba(0,136,46,.08) 85%, rgba(85,187,52,.18) 100%
        );
}
.site-footer__top {
    display: grid;
    grid-template-columns: 280px 346px max-content max-content;
    gap: 0;
    justify-content: space-between;
    /* Oben zusaetzliche 10px Gruenflaeche ueber dem Footer-Inhalt;
       unten knapp wie zur ©-Zeile. */
    padding-block: calc(.75rem + 10px) .1rem;
    position: relative;
    z-index: 2;
    line-height: 1.45;
    align-items: start;
}
.site-footer__col--map {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    text-align: center;
    gap: .45rem;
    padding-top: .2rem;
    padding-bottom: calc(1.4rem + 2px);
}
.austria-map-wrap {
    position: relative;
    width: 100%;
}
#austria-map {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.25));
}
.state-path {
    fill: transparent;
    stroke: rgba(255,255,255,0.5);
    stroke-width: 1;
    stroke-linejoin: round;
    cursor: default;
}
.austria-outline {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1;
    stroke-linejoin: round;
    stroke-linecap: round;
    pointer-events: none;
}
.aigen-dot {
    fill: #ff2a2a;
    stroke: #ffffff;
    stroke-width: 1;
    filter: drop-shadow(0 0 4px rgba(200,0,0,0.45));
    cursor: default;
}
.map-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s;
    letter-spacing: .03em;
    z-index: 10;
}
.site-footer__location {
    font-size: .82rem;
    line-height: 1.35;
    margin: 0;
    transform: translateY(-2px);
    color: rgba(255,255,255,0.95);
    letter-spacing: .01em;
    font-weight: 600;
}
.site-footer__location-word,
.site-footer__location-sep {
    display: inline;
}
.site-footer__logo-link {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    border: 0;
}
.site-footer__logo {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
    display: block;
}
.site-footer__tagline {
    font-size: .9rem;
    max-width: 320px;
    margin: 0 0 .7rem;
    opacity: .9;
}
.site-footer__heading {
    color: #fff;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: .6rem;
    font-weight: 700;
}
.site-footer__address {
    font-style: normal;
    font-size: .9rem;
    line-height: 1.45;
    margin: 0;
}
.site-footer__address a {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.site-footer__address a:hover {
    border-bottom-color: #fff;
    color: #fff;
}
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: .28rem; line-height: 1.35; }
.site-footer__links li:last-child { margin-bottom: 0; }
.site-footer__links a {
    color: rgba(255,255,255,0.88);
    font-size: .9rem;
    transition: color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}
.site-footer__links a:hover { color: #fff; padding-left: 6px; }

/* Navigation / Rechtliches deutlich nach rechts verschieben,
   damit sie mit dem Menü oben in einer Flucht stehen */
.site-footer__col--nav,
.site-footer__col--legal {
    padding-left: .4rem;
}
.site-footer__col--nav  { padding-right: 30px; }
.site-footer__col--legal { padding-right: 10px; }
.site-footer__col--legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* LinkedIn-Link im Footer (mittig in der unteren Footer-Zeile) */
.site-footer__social {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,0.88);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease);
}
.site-footer__social svg { flex-shrink: 0; }
.site-footer__socials {
    display: flex;
    align-items: center;
}
.site-footer__socials > * + * {
    margin-left: 15px;
}
@supports (gap: 15px) {
    .site-footer__socials {
        gap: 15px;
    }
    .site-footer__socials > * + * {
        margin-left: 0;
    }
}
.site-footer__social:hover {
    color: #fff;
    transform: translateY(-1px);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-block: .75rem;
    display: flex; justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem 1.6rem;
    font-size: .82rem;
    opacity: .85;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}
.site-footer__bottom > * { margin: 0; }

/* ---------- 12. Scroll-in-Animation (CSS-only) ------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- 13. Responsive Breakpoints ------------------------------------- */
@media (max-width: 960px) {
    .split, .split--flip { grid-template-columns: 1fr; }
    .split--flip .split__text { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .site-footer__top {
        grid-template-columns: 280px 346px;
        justify-content: space-between;
        gap: 1.6rem 0;
        padding-bottom: .75rem;
    }
    /* Karte: vertikal (Map über Text), zentriert in der Spalte */
    .site-footer__col--map {
        grid-column: unset;
        flex-direction: column;
        justify-content: space-between;
        align-self: stretch;
        gap: .45rem;
        text-align: center;
    }
    .site-footer__col--map .site-footer__location-word { display: inline; }
    .site-footer__col--map .site-footer__location-sep  { display: inline; }
    .site-footer__col--map .site-footer__location { margin-left: 0; transform: translateY(-2px); }
    /* Nav und Legal: nebeneinander in zweiter Zeile */
    .site-footer__col--nav,
    .site-footer__col--legal {
        padding-left: .4rem;
    }
    .austria-map-wrap { width: 346px; flex-shrink: 0; }
}

/* ---------- Adaptive Navigation (kein fixer Breakpoint – per JS ResizeObserver) ---------- */
.site-header.nav-compact .site-header__inner {
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
}
.site-header.nav-compact .site-header__brand {
    margin-left: 0;
    margin-right: auto;
    order: 1;
    flex: 1;
    align-items: center;
    gap: .5rem;
}
/* Compact-Modus: Logo so groß wie möglich, aber nie verzerrt.
   max-height begrenzt auf 72px, max-width auf verfügbare Breite
   (Viewport - 2×Padding - Hamburger-Button - Mindestabstand).
   height:auto hält das Seitenverhältnis bei jeder Breite korrekt. */
.site-header.nav-compact .site-header__logo {
    height: auto;
    max-height: 72px;
    max-width: calc(100vw - 2 * var(--container-pad) - 68px - 20px);
    width: auto;
}
.site-header.nav-compact .nav-toggle { display: block; order: 2; margin-left: 0; }
.site-header.nav-compact .site-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    margin-left: 0;
    padding-top: .8rem;
}
.site-header.nav-compact .site-nav.is-open { display: flex; }
.site-header.nav-compact .site-nav__list {
    flex-direction: column;
    width: 100%;
    gap: 0;
}
.site-header.nav-compact .site-nav__item { width: 100%; }
.site-header.nav-compact .site-nav__link {
    display: block;
    padding: .9rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}
.site-header.nav-compact .site-nav__link::after { display: none; }
.site-header.nav-compact .site-nav__link.is-active { background: rgba(255,255,255,0.18); }

@media (max-width: 760px) {
    /* No-JS-Fallback: greift nur wenn JS die .nav-compact-Klasse noch nicht gesetzt hat */
    .site-header:not(.nav-compact) .site-header__inner { flex-wrap: wrap; gap: .8rem; align-items: center; }
    .site-header:not(.nav-compact) .site-header__brand { margin-left: 0; margin-right: auto; order: 1; flex: 1; align-items: center; gap: .5rem; }
    .site-header:not(.nav-compact) .site-header__logo { height: auto; max-height: 72px; max-width: calc(100vw - 2 * var(--container-pad) - 68px - 20px); width: auto; }
    .site-header:not(.nav-compact) .nav-toggle { display: block; order: 2; margin-left: 0; }
    .site-header:not(.nav-compact) .site-nav { display: none; flex-basis: 100%; order: 3; margin-left: 0; padding-top: .8rem; }
    .site-header:not(.nav-compact) .site-nav.is-open { display: flex; }
    .site-header:not(.nav-compact) .site-nav__list { flex-direction: column; width: 100%; gap: 0; }
    .site-header:not(.nav-compact) .site-nav__item { width: 100%; }
    .site-header:not(.nav-compact) .site-nav__link { display: block; padding: .9rem 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
    .site-header:not(.nav-compact) .site-nav__link::after { display: none; }
    .site-header:not(.nav-compact) .site-nav__link.is-active { background: rgba(255,255,255,0.18); }

    .site-footer__top { grid-template-columns: 1fr 1fr; padding-bottom: .75rem; }
    .site-footer__col--brand { grid-column: 1 / -1; }
    .site-footer__col--map   { grid-column: 1 / -1; }
    .site-footer__bottom { justify-content: center; text-align: center; }

    /* Alle Segmente mittelbündig */
    .site-footer__col--brand {
        align-items: center;
        text-align: center;
    }
    .site-footer__col--map {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        gap: .45rem;
    }
    .site-footer__col--map .site-footer__location { margin-left: 0; transform: translateY(-2px); }
    .site-footer__col--map .site-footer__location-word { display: inline; }
    .site-footer__col--map .site-footer__location-sep  { display: inline; }
    .site-footer__col--nav,
    .site-footer__col--legal {
        padding-left: 0;
        padding-right: 0;
        align-items: center;
        text-align: center;
    }
    .site-footer__col--nav .site-footer__heading,
    .site-footer__col--legal .site-footer__heading {
        padding-left: .14em;
    }
    .site-footer__col--nav .site-footer__links,
    .site-footer__col--legal .site-footer__links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root { --container-pad: 1rem; }
    .hero { min-height: 360px; aspect-ratio: auto; height: 55vh; }
    .page-hero { min-height: 240px; aspect-ratio: auto; height: 30vh; }
    /* Auf sehr kleinen Phones: max-width enger setzen damit Logo proportional schrumpft */
    .site-header.nav-compact .site-header__logo,
    .site-header:not(.nav-compact) .site-header__logo {
        max-width: calc(100vw - 2 * var(--container-pad) - 68px - 20px);
    }
}

/* ---------- 14. Print ------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .hero__overlay, .nav-toggle { display: none !important; }
    body { background: #fff; }
}
;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

/* ---------- 12. Scroll-Reveal ---------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
