/* Ex-Log-Website (ex-log.de) – eigenes Stylesheet, mobil zuerst, ohne Framework.
   Nur fuer templates/exlog-website/**. Nach jeder Aenderung ?v=N in fragments.html hochzaehlen. */

/* ---------- Schriften (selbst gehostet, Latin-Subset) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/oswald-500.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/oswald-700.woff2") format("woff2"); }

/* ---------- Variablen ---------- */
:root {
    --blue: #004E9E;
    --blue-dark: #003B75;
    --blue-tint: #E8F0FA;
    --navy: #0B1F3A;
    --orange: #F39200;          /* Logo-Orange: nur Flaechen (mit dunkler Schrift) und Text auf Dunkel */
    --orange-hover: #FFA41F;
    --orange-text: #B45309;     /* Orange fuer Text auf Weiss (AA) */
    --orange-light: #FFB547;    /* Orange fuer Text auf Blau/Dunkel (AA) */
    --ink: #0F172A;
    --text: #1E293B;
    --muted: #4B5563;
    --line: #E2E8F0;
    --field-border: #6B7785;
    --surface: #F4F6F9;
    --white: #FFFFFF;
    --success-bg: #ECFDF3;
    --success-line: #15803D;
    --success-text: #14532D;
    --error: #B91C1C;
    --error-bg: #FEF2F2;
    --focus: var(--blue);

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 2px 8px rgba(11, 31, 58, .05);
    --shadow: 0 10px 30px rgba(11, 31, 58, .10);
    --shadow-lg: 0 24px 60px rgba(11, 31, 58, .18);

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);
    --header-h: 60px;          /* Hoehe der schwebenden Leiste (mobil) */
    --header-top: .75rem;      /* Abstand der Leiste zum oberen Rand */
    --header-side: .75rem;     /* seitlicher Abstand der Leiste */
    --header-offset: calc(var(--header-top) + env(safe-area-inset-top, 0px) + var(--header-h) + 1rem); /* Platz, den Inhalte oben freihalten */
    --action-h: 72px;          /* Hoehe der mobilen Aktionsleiste (ohne Safe-Area) */
    --cta: #EA580C;
}
@media (min-width: 900px) {
    :root {
        --header-h: 68px;
        --header-top: 1.5rem;
        --header-side: 1.5rem;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: var(--header-offset);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(0, 78, 158, .12); }
/* Seitlich einfahrende Inhalte duerfen nie horizontal scrollen lassen; clip statt hidden (sticky bleibt intakt). */
main { overflow-x: clip; }
img { height: auto; }
figure { margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
strong { font-weight: 600; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus, [tabindex="-1"]:focus { outline: none; }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.12;
    color: var(--ink);
    margin: 0 0 .75rem;
    overflow-wrap: break-word;
    hyphens: manual;
    -webkit-hyphens: manual;
}
/* Keine automatische Silbentrennung (trennte z. B. "UNSE-RES"); lange Woerter brechen per overflow-wrap, gezielt per &shy;. */
.h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.75rem); }
.h2 { font-size: clamp(1.6rem, 1.15rem + 2.2vw, 2.75rem); }
.h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
.h4 { font-size: 1.125rem; font-weight: 500; letter-spacing: .03em; }

.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.text-accent { color: var(--orange-text); }
.text-accent-light { color: var(--orange-light); }
.break-anywhere { overflow-wrap: anywhere; }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-lg { width: 2rem; height: 2rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Skip-Link ---------- */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .7rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn .icon-arrow { transition: transform .2s ease; }
.btn-lg { min-height: 52px; padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }

.btn-accent { background: var(--orange); color: var(--navy); box-shadow: 0 8px 20px rgba(243, 146, 0, .25); }
.btn-accent:hover { background: var(--orange-hover); color: var(--navy); }

.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .75); color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn[disabled] { opacity: .65; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row-center { justify-content: center; }
@media (max-width: 599px) {
    .btn-row > .btn { width: 100%; }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: .4rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: .5rem;
}
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .9rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--orange-text);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; flex-shrink: 0; }
.eyebrow-light { color: var(--orange-light); }

/* ---------- Kopfzeile: schwebende Leiste (Vorbild: alte Ex-Log-Website) ---------- */
.site-header {
    position: fixed;
    top: calc(var(--header-top) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding-inline: max(var(--header-side), env(safe-area-inset-left, 0px)) max(var(--header-side), env(safe-area-inset-right, 0px));
    pointer-events: none;
}
.header-bar {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 72rem;
    min-height: var(--header-h);
    padding: .5rem .5rem .5rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .80);
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow: 0 18px 40px rgba(6, 18, 38, .22);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled .header-bar,
.site-header.nav-open .header-bar {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 48px rgba(6, 18, 38, .28);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .header-bar { background: rgba(255, 255, 255, .96); }
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img { height: 28px; width: auto; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .25rem 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    transition: color .2s ease;
}
.nav-link:hover { color: var(--blue); text-decoration: none; }
.nav-link.is-active { color: var(--blue); }
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.is-active::after { transform: scaleX(1); }

/* Orangefarbener Kontakt-Knopf; Schrift >= 18,7 px fett -> AA fuer grosse Schrift (3:1) mit #EA580C */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .6rem 1.6rem;
    border-radius: 999px;
    background: var(--cta);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(234, 88, 12, .30);
    transition: background-color .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { background: var(--blue); color: var(--white); text-decoration: none; box-shadow: 0 10px 22px rgba(0, 78, 158, .30); }
.nav-cta-arrow { width: 1rem; height: 1rem; transition: transform .25s ease; }
.nav-cta:hover .nav-cta-arrow { transform: rotate(45deg); }
.nav-cta-menu { display: none; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: .25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle:hover { color: var(--orange-text); }
.nav-toggle-box { position: relative; display: inline-flex; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; }
.nav-toggle-box span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobil: Leiste mit Burger, Menue klappt als Karte darunter auf */
@media (max-width: 899.98px) {
    .header-bar { padding: .4rem .4rem .4rem 1.1rem; }
    .nav-cta-bar { display: none; }
    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        width: 100%;
        padding: 1.25rem 0 .5rem;
    }
    .nav-list { flex-direction: column; gap: .5rem; text-align: center; }
    .nav-link { font-size: 1.25rem; }
    .nav-cta-menu { display: inline-flex; width: 100%; max-width: 20rem; }
    /* Mit JavaScript: Menue erst auf Knopfdruck */
    .js .nav-toggle { display: inline-flex; }
    .nav-link::after { transform-origin: center; }
    .js .site-nav {
        position: absolute;
        top: calc(100% + .75rem);
        left: 0;
        right: 0;
        padding: 1.75rem 1.5rem;
        border-radius: 24px;
        background: var(--white);
        border: 1px solid var(--line);
        box-shadow: 0 24px 50px rgba(6, 18, 38, .28);
        max-height: calc(100vh - var(--header-offset) - 1rem);
        max-height: calc(100svh - var(--header-offset) - 1rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px) scale(.95);
        transform-origin: top center;
        transition: opacity .22s ease, transform .22s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .22s;
    }
    .js .site-header.nav-open .site-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }
    /* Ohne JavaScript: Leiste wird zur Karte mit allen Links */
    html:not(.js) .header-bar { flex-wrap: wrap; border-radius: 24px; justify-content: center; }
}

@media (min-width: 900px) {
    .header-bar { padding: .6rem .6rem .6rem 1.75rem; }
    .brand img { height: 34px; }
    .site-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
    .nav-list { gap: 1.5rem; }
}
@media (min-width: 1100px) {
    .nav-list { gap: 2.25rem; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(540px, 86vh, 780px);
    min-height: clamp(540px, 86svh, 780px);
    color: var(--white);
    background: var(--navy);
    overflow: hidden;
    --focus: var(--orange);
}
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 18, 38, .94) 0%, rgba(6, 18, 38, .78) 48%, rgba(6, 18, 38, .30) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-block: calc(var(--header-offset) + 2rem) 3.25rem; }
.hero-content { max-width: 40rem; }
.hero-title {
    font-size: clamp(2.05rem, 1.2rem + 4.2vw, 4.5rem);
    line-height: 1.04;
    color: var(--white);
    margin-bottom: 1.1rem;
}
.hero-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: rgba(255, 255, 255, .9); max-width: 34rem; }
.hero-jobs {
    display: inline-flex;
    min-height: 44px;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .65rem;
    margin-top: 1.75rem;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}
.hero-jobs:hover { color: var(--white); text-decoration: underline; }
.hero-jobs-badge {
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--orange);
    color: var(--navy);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
@media (min-width: 900px) {
    .hero { align-items: center; }
    .hero-shade { background: linear-gradient(90deg, rgba(6, 18, 38, .92) 0%, rgba(6, 18, 38, .74) 38%, rgba(6, 18, 38, .12) 72%, rgba(6, 18, 38, 0) 100%); }
    .hero-inner { padding-block: calc(var(--header-offset) + 3rem) 5rem; }
}

/* ---------- Kennzahlen ---------- */
.stats-band { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.stats { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; text-align: center; }
.stat { min-width: 0; padding-inline: .5rem; }
.stat p { margin: 0; }
.stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem);
    line-height: 1;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}
.stat-prefix { font-size: .45em; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.stat-label {
    margin-top: .6rem !important;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--orange-text);
}
.stat-desc { margin-top: .5rem !important; font-size: .925rem; color: var(--muted); max-width: 18rem; margin-inline: auto !important; }
@media (min-width: 600px) {
    .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-3 .stat + .stat { border-left: 1px solid #D5DCE5; }
}
@media (min-width: 900px) {
    .stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stats-4 .stat + .stat { border-left: 1px solid #D5DCE5; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section-y); }
.section-muted { background: var(--surface); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .82); --focus: var(--orange); }
.section-dark .h2, .section-dark .h3, .section-dark .h4 { color: var(--white); }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-foot { margin-top: 2.5rem; text-align: center; }

/* Bild-Text */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.split > * { min-width: 0; }
figure.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
figure.split-media img { box-shadow: none; }
.split-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.split-media-tall img { aspect-ratio: 3 / 4; }
.split-hero .split-media img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
    .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 5vw, 5rem); }
    .split-reverse .split-media { order: -1; }
    .split-hero .split-media img { aspect-ratio: 4 / 5; max-height: 620px; }
}

.mini-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-block: 2rem; }
.mini { min-width: 0; }
.mini .h4 { margin: .9rem 0 .35rem; }
.mini p { color: var(--muted); font-size: .975rem; }
@media (min-width: 600px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--blue-tint);
    border: 1px solid rgba(0, 78, 158, .18);
    color: var(--blue);
}
.icon-badge .icon { width: 22px; height: 22px; }

.point-list { list-style: none; display: grid; gap: 1.5rem; margin-top: 2rem; }
.point-list li { display: flex; gap: 1rem; align-items: flex-start; }
.point-list li > div { min-width: 0; }
.point-list .h4 { margin: .2rem 0 .3rem; }
.point-list p { color: var(--muted); font-size: .975rem; }

/* Karten */
.card-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section:not(.section-muted) .card { background: var(--surface); }
.card:hover { box-shadow: var(--shadow); border-color: rgba(0, 78, 158, .35); }
.card p { color: var(--muted); font-size: .975rem; }
.card .h3, .card .h4 { margin: 0 0 .5rem; }
.card-lg { padding: 2rem; }
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--blue);
    color: var(--white);
}
.card-icon .icon { width: 28px; height: 28px; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Karriere-Hinweis auf der Startseite */
.jobs-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.75rem, 1rem + 4vw, 3.5rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
    --focus: var(--orange);
}
.jobs-teaser > * { min-width: 0; }
.jobs-teaser .h2 { color: var(--white); }
.jobs-teaser-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.jobs-teaser-facts li { line-height: 1.3; }
.jobs-teaser-facts strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
    line-height: 1.05;
    color: var(--orange-light);
}
@media (min-width: 1000px) {
    .jobs-teaser { grid-template-columns: minmax(0, 1.5fr) auto auto; gap: 2.5rem; }
}

/* Abschluss mit Bild */
.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 3rem + 6vw, 8rem);
    background: var(--navy);
    color: rgba(255, 255, 255, .88);
    --focus: var(--orange);
}
.cta-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 18, 38, .92) 0%, rgba(6, 18, 38, .72) 60%, rgba(6, 18, 38, .55) 100%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner .h2 { color: var(--white); max-width: 40rem; }
.cta-inner p { max-width: 36rem; font-size: 1.1rem; }

.cta-solid {
    padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem);
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: rgba(255, 255, 255, .9);
    text-align: center;
    --focus: var(--orange);
}
.cta-solid .h2 { color: var(--white); }
.cta-solid-inner { max-width: 48rem; }
.cta-solid p { font-size: 1.1rem; max-width: 38rem; margin-inline: auto; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero {
    padding-block: calc(var(--header-offset) + clamp(1.5rem, 1rem + 2.5vw, 3rem)) clamp(2.5rem, 1.5rem + 4vw, 5rem);
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}
.page-hero .h1 { margin-bottom: 1rem; }
.page-hero-text { max-width: 50rem; margin-inline: auto; text-align: center; }
.page-hero-text .eyebrow { justify-content: center; }
.page-hero-text .lead { margin-inline: auto; }
.banner { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.banner img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 62% center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
@media (min-width: 900px) { .banner img { aspect-ratio: 1920 / 815; } }
.page-hero-dark {
    background: radial-gradient(120% 120% at 0% 0%, #12305A 0%, var(--navy) 60%);
    color: rgba(255, 255, 255, .88);
    --focus: var(--orange);
}
.page-hero-dark .h1 { color: var(--white); }
.page-hero-dark .lead { color: rgba(255, 255, 255, .86); }

.image-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(var(--header-offset) + clamp(300px, 46vh, 420px));
    min-height: calc(var(--header-offset) + clamp(300px, 46svh, 420px));
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    --focus: var(--orange);
}
.image-hero-short { min-height: calc(var(--header-offset) + clamp(260px, 36vh, 340px)); min-height: calc(var(--header-offset) + clamp(260px, 36svh, 340px)); }
.image-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 18, 38, .94) 0%, rgba(6, 18, 38, .70) 55%, rgba(6, 18, 38, .45) 100%);
}
.image-hero-inner { position: relative; z-index: 1; padding-block: calc(var(--header-offset) + 1.5rem) 3rem; }
.image-hero .h1 { color: var(--white); max-width: 46rem; }
.image-hero .lead { color: rgba(255, 255, 255, .88); }

/* ---------- Ueber uns ---------- */
.feature-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.feature {
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
}
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-body { padding: 1.5rem; }
.feature-no { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--orange-light); margin-bottom: .6rem; }
.feature .h4 { margin-bottom: .5rem; }
.feature p { font-size: .975rem; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.duo { position: relative; padding-bottom: 16%; }
.duo-large {
    width: 82%;
    margin-left: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.duo-small {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 6px solid var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}
.next-steps .h3 { margin: 0; }
.next-steps .btn-row { margin-top: 0; }
@media (min-width: 900px) {
    .next-steps { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Karriere ---------- */
.pay-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.pay-facts li {
    min-width: 0;
    padding: .8rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    line-height: 1.25;
}
.pay-facts strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    line-height: 1.05;
    color: var(--orange-light);
}
.pay-facts span { font-size: .9rem; color: rgba(255, 255, 255, .88); }

.job-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.job {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.job .h3 { margin-bottom: .75rem; }
.job > p { color: var(--muted); flex-grow: 1; }
.job .link-arrow { margin-top: 1rem; }
.job-meta { list-style: none; display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .95rem; color: var(--text); }
.job-meta li { display: flex; gap: .5rem; align-items: flex-start; }
.job-meta .icon { color: var(--blue); margin-top: .2rem; width: 1.1em; height: 1.1em; }
@media (min-width: 900px) { .job-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.terms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.terms > * { min-width: 0; }
.terms-box, .terms-steps {
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.check-list { list-style: none; display: grid; gap: .85rem; margin-top: 1.5rem; }
.check-list li { position: relative; padding-left: 2.25rem; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--orange);
}
.check-list li::after {
    content: "";
    position: absolute;
    left: .48rem;
    top: .45rem;
    width: .42rem;
    height: .72rem;
    border: solid var(--navy);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.steps { list-style: none; counter-reset: step; display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.steps li { position: relative; padding-left: 3.5rem; counter-increment: step; min-height: 2.5rem; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}
.steps .h4 { margin: .35rem 0 .25rem; }
.steps p { color: var(--muted); }

/* ---------- Formulare ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.form-layout > * { min-width: 0; }
@media (min-width: 960px) {
    .form-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 3.5rem; }
    .form-intro { position: sticky; top: calc(var(--header-offset) + .5rem); }
}

.form-card {
    min-width: 0;
    padding: clamp(1.25rem, .75rem + 3vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-card > .muted { margin-bottom: 1.5rem; }
.form-note { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
@media (min-width: 600px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field label, .field .label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.req { color: var(--orange-text); }
.optional { font-weight: 400; color: var(--muted); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: .7rem .9rem;
    border: 1.5px solid var(--field-border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 8.5rem; resize: vertical; }
.form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004E9E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 1.1rem;
    text-overflow: ellipsis;
}
.form input::placeholder, .form textarea::placeholder { color: #6B7280; }
.form input:focus, .form select:focus, .form textarea:focus {
    outline: 2px solid transparent;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 78, 158, .25);
}
.has-error input, .has-error select, .has-error textarea { border-color: var(--error) !important; }
.field-error { margin: .4rem 0 0; color: var(--error); font-size: .9rem; font-weight: 500; }

.field-check { margin-top: 1.25rem; }
.check { display: flex !important; gap: .75rem; align-items: flex-start; font-weight: 400 !important; font-size: .95rem !important; line-height: 1.5; cursor: pointer; }
.check input[type="checkbox"] { width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.check span { min-width: 0; }
.has-error .check input[type="checkbox"] { outline: 2px solid var(--error); outline-offset: 2px; }

.form > .btn { margin-top: 1.5rem; }

/* Upload */
.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}
.upload {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    margin: 0 !important;
    padding: 1.5rem 1rem;
    border: 2px dashed var(--field-border);
    border-radius: 14px;
    background: var(--surface);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.upload .icon { color: var(--blue); }
.upload:hover { border-color: var(--blue); background: var(--blue-tint); }
.upload-input:focus-visible + .upload { outline: 3px solid var(--focus); outline-offset: 3px; }
.upload-title { font-weight: 600; color: var(--blue); }
.upload-hint { font-weight: 400; font-size: .875rem; color: var(--muted); }
.upload-name { font-weight: 600; font-size: .9rem; color: var(--ink); overflow-wrap: anywhere; max-width: 100%; }
.upload.has-file { border-style: solid; border-color: var(--blue); background: var(--blue-tint); }
.upload.is-invalid { border-color: var(--error); background: var(--error-bg); }
.upload.is-invalid .upload-name { color: var(--error); }

/* Honeypot: fuer Menschen unsichtbar */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Meldungen */
.alert {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid;
    font-size: .975rem;
}
.alert .icon { margin-top: .15rem; }
.alert > * { min-width: 0; }
.alert p { margin: 0; }
.alert-title { font-weight: 600; margin-bottom: .2rem !important; }
.alert-success { background: var(--success-bg); border-color: var(--success-line); color: var(--success-text); }
.alert-error { background: var(--error-bg); border-color: var(--error); color: #7F1D1D; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.contact-layout > * { min-width: 0; }
@media (min-width: 960px) {
    .contact-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 3rem; }
    .contact-card { position: sticky; top: calc(var(--header-offset) + .5rem); }
}
.contact-card {
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
    --focus: var(--orange);
}
.contact-card .h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-card a { color: var(--white); }
.contact-card .icon-badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: var(--orange-light); }
.contact-list { list-style: none; display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list li > div { min-width: 0; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1.05rem; }
.contact-label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.contact-jobs { margin-top: 1.5rem; font-size: .95rem; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 52rem; padding-block: calc(var(--header-offset) + clamp(1.5rem, 1rem + 2.5vw, 3rem)) clamp(2.5rem, 2rem + 3vw, 5rem); }
.legal section { margin-top: 2.25rem; }
.legal section .h3 { color: var(--blue); }
.legal-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; }
.legal-cards .legal-card { margin-top: 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.legal-list { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal-list li { margin-bottom: .3rem; }
.legal-more { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .legal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Fusszeile ---------- */
.site-footer {
    margin-top: 0;
    padding-top: clamp(3rem, 2rem + 4vw, 5rem);
    background: var(--surface);
    border-top: 4px solid var(--blue);
    color: var(--muted);
    font-size: .95rem;
}
.footer-claim {
    margin: 0 0 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--ink);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer-col { min-width: 0; }
.footer-col .brand img { height: 46px; }
.footer-text { margin: 1rem 0 1.25rem; max-width: 18rem; }
.footer-title {
    margin: 0 0 .85rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .12em;
    color: var(--ink);
}
.footer-list + .footer-title { margin-top: 1.5rem; }
.footer-list { list-style: none; display: grid; gap: 0; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col a:not(.btn):not(.brand) { color: #334155; text-decoration: none; }
.footer-col a:not(.btn):not(.brand):hover { color: var(--blue); text-decoration: underline; }
.footer-address { color: #334155; margin-bottom: .6rem; }
.footer-col a.footer-route { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; text-decoration: underline; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1.5rem;
    margin-top: 2.75rem;
    padding-block: 1.5rem;
    border-top: 1px solid #D5DCE5;
    font-size: .875rem;
}
.footer-bottom p { margin: 0; }
.footer-login { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(75, 85, 99, .4); }
.footer-login:hover { color: var(--blue); }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---------- Mobile Aktionsleiste (< 900 px, nur mit JavaScript) ---------- */
.action-bar { display: none; }
@media (max-width: 899.98px) {
    .js .action-bar {
        position: fixed;
        z-index: 45;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        gap: .5rem;
        padding: .6rem max(.75rem, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(.75rem, env(safe-area-inset-left, 0px));
        background: rgba(255, 255, 255, .95);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 30px rgba(6, 18, 38, .12);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        backdrop-filter: blur(12px) saturate(140%);
        /* Grundzustand versteckt; site.js blendet sie ein (is-visible). */
        visibility: hidden;
        opacity: 0;
        transform: translateY(110%);
        transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s ease, visibility 0s linear .35s;
    }
    .js .action-bar.is-visible {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }
    /* Fokussierte Felder nicht hinter der Leiste verstecken; Safe-Area unter dem Footer freihalten. */
    html.js { scroll-padding-bottom: calc(var(--action-h) + env(safe-area-inset-bottom, 0px)); }
    .js .site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-width: 0;
    min-height: 48px;
    padding: .6rem 1rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
    line-height: 1.15;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}
.action-btn:hover { text-decoration: none; }
.action-btn-call { flex: 0 0 auto; border-color: var(--blue); background: var(--white); color: var(--blue); }
.action-btn-main { flex: 1 1 auto; background: var(--orange); color: var(--navy); }
.action-btn .icon { width: 1.1rem; height: 1.1rem; }

/* Menue offen: Seite dahinter nicht scrollen */
html.nav-locked, html.nav-locked body { overflow: hidden; }

/* ---------- Bewegung (nur ohne prefers-reduced-motion; nur transform/opacity) ---------- */
@keyframes xl-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes xl-media { from { transform: scale(.97); } to { transform: none; } }
@keyframes xl-ken-burns { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }

    /* Hero Startseite: dezenter Ken-Burns, einmalig */
    .hero-media { transform-origin: 62% center; animation: xl-ken-burns 8s cubic-bezier(.2, .6, .2, 1) both; }

    /* Seitenkoepfe: gestaffeltes Einblenden (reines CSS, Endzustand sichtbar) */
    :is(.hero-content, .page-hero .split-text, .page-hero-text, .image-hero-inner) > *,
    .legal > :nth-child(-n+3) {
        animation: xl-rise .7s cubic-bezier(.2, .7, .2, 1) both;
        animation-delay: .1s;
    }
    :is(.hero-content, .page-hero .split-text, .page-hero-text, .image-hero-inner) > :nth-child(2),
    .legal > :nth-child(2) { animation-delay: .2s; }
    :is(.hero-content, .page-hero .split-text, .page-hero-text, .image-hero-inner) > :nth-child(3),
    .legal > :nth-child(3) { animation-delay: .3s; }
    :is(.hero-content, .page-hero .split-text, .page-hero-text, .image-hero-inner) > :nth-child(4) { animation-delay: .4s; }
    :is(.hero-content, .page-hero .split-text, .page-hero-text, .image-hero-inner) > :nth-child(n+5) { animation-delay: .5s; }
    .page-hero .split-media, .page-hero .banner { animation: xl-media .9s cubic-bezier(.2, .7, .2, 1) .3s both; }

    /* Knoepfe: kurzes Eindruecken */
    .btn, .action-btn, .nav-cta { transition-property: background-color, color, border-color, box-shadow, transform; }
    .btn:active, .action-btn:active, .nav-cta:active { transform: scale(.97); }

    /* Hover nur mit Maus/Trackpad: Karten heben sich, Bilder zoomen im Rahmen, Pfeile stupsen */
    @media (hover: hover) and (pointer: fine) {
        .card, .job, .feature { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
        .card:hover, .job:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
        .feature:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
        .feature img, figure.split-media img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
        .feature:hover img, figure.split-media:hover img { transform: scale(1.05); }
        .btn:hover .icon-arrow { transform: translateX(4px); }
    }

    /* Scroll-Reveal: site.js setzt is-pending nur unterhalb des Falzes und entfernt .reveal nach dem Einblenden. */
    .reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
    .reveal.is-pending { opacity: 0; transform: translateY(28px); }
    /* Bild/Text-Abschnitte ab Desktop von links/rechts (mobil nur vertikal: kein seitlicher Ueberstand) */
    @media (min-width: 900px) {
        .split > .reveal.is-pending:first-child { transform: translateX(-40px); }
        .split > .reveal.is-pending:last-child { transform: translateX(40px); }
        .split-reverse > .reveal.is-pending:first-child { transform: translateX(40px); }
        .split-reverse > .reveal.is-pending:last-child { transform: translateX(-40px); }
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Windows-Kontrastmodus: Rahmen statt Schatten */
@media (forced-colors: active) {
    .btn, .card, .job, .form-card, .alert { border: 1px solid CanvasText; }
    .hero-shade, .cta-band::after, .image-hero::after { display: none; }
}

@media print {
    .site-header, .site-footer, .hero-media, .cta-band, .nav-toggle, .action-bar { display: none !important; }
    .hero { min-height: 0; color: var(--ink); background: none; }
    .hero-title { color: var(--ink); }
}
