/* ══════════════════════════════════════════════════════════════
   BnK Group — Dark Theme
   Clean. Modern. Apple-like.
   ══════════════════════════════════════════════════════════════ */

/* ── Inter lokal (variable WOFF2, DSGVO-konform selbst gehostet) ────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-surface: #161616;
    --bg-surface-hover: #1c1c1c;
    --bg-elevated: #1a1a1a;

    /* Text */
    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --text-inverse: #0a0a0a;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 10vw, 140px);
    --container-width: 1200px;
    --container-padding: clamp(20px, 5vw, 40px);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    /* Bezugsrahmen für .page-fx — die Effektfläche ist so hoch wie die Seite */
    position: relative;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.7;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-description {
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.section-header {
    margin-bottom: 4rem;
}

/* Keine Sektions-Trennlinie mehr — die Übergänge macht allein die Helligkeit
   des bewegten Hintergrunds (siehe "Sektions-Schleier" weiter unten). */
.section + .section {
    position: relative;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-xl);
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 14px rgba(255, 255, 255, 0.08);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--border-strong);
    background: var(--bg-surface);
}

.btn-arrow::after {
    content: '→';
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ── Scroll Animations ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.site-nav.is-scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text-primary);
}

.nav-cta {
    margin-left: 1rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: clamp(120px, 18vw, 220px);
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: heroFadeIn 1s var(--ease-out) 0.2s forwards;
}

.hero-title {
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroFadeIn 1s var(--ease-out) 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: heroFadeIn 1s var(--ease-out) 0.8s forwards;
}

.hero-cta {
    opacity: 0;
    animation: heroFadeIn 1s var(--ease-out) 1.1s forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: heroFadeIn 1s var(--ease-out) 1.5s forwards;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-tertiary), transparent);
    animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ── Hero "Stripe Gradient Bunt" Effect ──────────────────── */
/* Colorful flowing gradient blobs on dark background         */

.hero-fx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Weicher Übergang: der farbige Hero-Gradient faded unten in die bg-Farbe
   des Bereichs darunter (.fields = --bg-secondary) aus. */
.hero-fx::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0) 0%, var(--bg-secondary) 100%);
}

.stripe-mesh {
    position: absolute;
    inset: -30%;
    filter: blur(80px);
    opacity: 0;
    animation: stripeFadeIn 2s ease-out 0.3s forwards;
}

.stripe-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: normal;
}

/* Purple / Violet */
.stripe-blob--1 {
    width: 55%;
    height: 55%;
    top: -10%;
    right: -15%;
    background: radial-gradient(circle at 50% 50%,
        rgba(112, 56, 255, 0.45) 0%,
        rgba(112, 56, 255, 0.20) 40%,
        transparent 70%
    );
    animation: stripeDrift1 20s ease-in-out infinite;
}

/* Amber / Orange */
.stripe-blob--2 {
    width: 50%;
    height: 60%;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 186, 39, 0.40) 0%,
        rgba(255, 186, 39, 0.18) 40%,
        transparent 70%
    );
    animation: stripeDrift2 25s ease-in-out infinite;
}

/* Teal / Cyan */
.stripe-blob--3 {
    width: 45%;
    height: 45%;
    top: 25%;
    left: 20%;
    background: radial-gradient(circle at 50% 50%,
        rgba(94, 234, 212, 0.35) 0%,
        rgba(94, 234, 212, 0.15) 40%,
        transparent 70%
    );
    animation: stripeDrift3 30s ease-in-out infinite;
}

/* Pink / Magenta */
.stripe-blob--4 {
    width: 40%;
    height: 50%;
    top: -5%;
    left: 5%;
    background: radial-gradient(circle at 50% 50%,
        rgba(232, 121, 249, 0.35) 0%,
        rgba(232, 121, 249, 0.15) 40%,
        transparent 70%
    );
    animation: stripeDrift4 22s ease-in-out infinite;
}

/* Blue */
.stripe-blob--5 {
    width: 35%;
    height: 40%;
    bottom: 5%;
    right: 10%;
    background: radial-gradient(circle at 50% 50%,
        rgba(96, 165, 250, 0.38) 0%,
        rgba(96, 165, 250, 0.16) 40%,
        transparent 70%
    );
    animation: stripeDrift5 28s ease-in-out infinite;
}

/* Deep violet accent */
.stripe-blob--6 {
    width: 30%;
    height: 35%;
    top: 50%;
    right: 30%;
    background: radial-gradient(circle at 50% 50%,
        rgba(139, 92, 246, 0.30) 0%,
        rgba(139, 92, 246, 0.12) 40%,
        transparent 70%
    );
    animation: stripeDrift6 35s ease-in-out infinite;
}

/* Grain removed */

@keyframes stripeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes stripeDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-10%, 15%) scale(1.08); }
    50% { transform: translate(-18%, 8%) scale(0.95); }
    75% { transform: translate(-5%, 18%) scale(1.05); }
}

@keyframes stripeDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(15%, -10%) scale(1.12); }
    50% { transform: translate(10%, -20%) scale(0.90); }
    75% { transform: translate(18%, -8%) scale(1.06); }
}

@keyframes stripeDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-12%, -12%) scale(1.18); }
    66% { transform: translate(10%, 10%) scale(0.85); }
}

@keyframes stripeDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(12%, 18%) scale(0.92); }
    50% { transform: translate(20%, 10%) scale(1.15); }
    75% { transform: translate(8%, 15%) scale(1.02); }
}

@keyframes stripeDrift5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-15%, -12%) scale(1.10); }
    60% { transform: translate(-8%, -20%) scale(0.92); }
}

@keyframes stripeDrift6 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15%, -15%) scale(1.15); }
}

/* grainShift keyframes removed */

/* Separator line between hero and fields */
/* (Harte 1px-Trennlinie entfernt — der weiche hero-fx::after-Fade übernimmt den Übergang.) */

/* ══════════════════════════════════════════════════════════════
   GESCHÄFTSFELDER (Business Fields)
   ══════════════════════════════════════════════════════════════ */
.fields {
    background: var(--bg-secondary);
}

/* ══ "The Index" — editorial numbered list ══ */
.index-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-medium);
}

.index-row {
    border-bottom: 1px solid var(--border-medium);
}

.index-link {
    display: grid;
    /* Startseite listet ohne Nummern; /digital/ nummeriert weiter —
       die Nummernspalte gibt es deshalb nur, wenn eine .index-num da ist */
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    padding: clamp(1.3rem, 2.6vw, 2.2rem) clamp(0.75rem, 1.5vw, 1.25rem);
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out);
}

.index-link:has(.index-num) {
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
}

.index-num {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    transition: color var(--duration-normal) var(--ease-out);
}

.index-head {
    display: flex;
    align-items: baseline;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    min-width: 0;
}

.index-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.6vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.index-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    /* darf umbrechen statt abgeschnitten zu werden — „Web, Software,
       KI-Automatisierung, SEO, SEA & mehr" lief sonst in die Ellipse */
    min-width: 0;
    text-wrap: pretty;
    transition: color var(--duration-normal) var(--ease-out);
}

.index-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--duration-normal) var(--ease-out);
}

.index-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-out);
}

/* Hover: invert the whole row */
.index-row:not(.is-coming-soon) .index-link:hover {
    background: var(--text-primary);
    color: var(--text-inverse);
}

.index-row:not(.is-coming-soon) .index-link:hover .index-num,
.index-row:not(.is-coming-soon) .index-link:hover .index-desc,
.index-row:not(.is-coming-soon) .index-link:hover .index-meta {
    color: var(--text-inverse);
}

.index-row:not(.is-coming-soon) .index-link:hover .index-arrow {
    transform: translateX(7px);
}

/* Coming Soon row */
.index-row.is-coming-soon .index-link {
    cursor: default;
    opacity: 0.45;
}

.index-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
}

@media (max-width: 760px) {
    /* Ohne Nummernspalte (Startseite): eine Spalte, Titel oben, Meta darunter.
       Die 2rem-Spalte gibt es nur, wenn wirklich eine .index-num da ist
       (/digital/) — sonst rutschte der Titel in die schmale Nummernspalte
       und „Mehr erfahren" lag auf dem Beschreibungstext. */
    .index-link {
        grid-template-columns: 1fr;
        gap: 0.4rem 0.9rem;
        padding: 1.15rem 0.25rem;
    }
    .index-link:has(.index-num) {
        grid-template-columns: 2rem 1fr;
    }
    .index-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .index-name {
        white-space: normal;
        font-size: clamp(1.4rem, 6.5vw, 1.9rem);
    }
    .index-desc { white-space: normal; }
    .index-meta {
        grid-column: -2;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}


/* ══════════════════════════════════════════════════════════════
   LOGO MARQUEE — Auto-scrolling client logos
   ══════════════════════════════════════════════════════════════ */

.logo-marquee {
    position: relative;
    overflow: hidden;
    /* kompaktes, OPAKES Band mit dezent gestrichelten Trennlinien dicht an
       den Namen — hebt sich klar vom bewegten Hintergrund ab (JK 2026-08-01) */
    padding: 0.8rem 0;
    /* dezente Schraegschraffur auf opakem Grund, durchgezogene Trennlinien */
    background: #101014 repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.022) 0 1px,
        transparent 1px 9px
    );
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Seitliches Ausblenden der Logos per Maske statt Farbverlauf — ein Verlauf
   würde die Bandfläche an den Rändern mit abdunkeln. Die Maske sitzt auf dem
   statischen Wrapper, nicht auf dem laufenden Track. */
.logo-marquee-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* (Frühere Farbverlauf-Kanten entfallen — siehe .logo-marquee-mask) */

.logo-marquee-track {
    display: flex;
    align-items: center;
    /* KEIN flex-gap: das fehlende End-Gap machte die Haelfte != 50% und
       liess den Loop am Ende springen — jedes Item traegt seinen Abstand
       selbst, dadurch ist translateX(-50%) exakt nahtlos */
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
}

.logo-marquee-track:hover {
    animation-play-state: paused;
}

.logo-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 2rem;
}

.logo-marquee-item span {
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    white-space: nowrap;
    transition: color 0.3s ease;
    user-select: none;
}

.logo-marquee-item:hover span {
    color: var(--text-secondary);
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Personen- und Referenzmedien: kein Drag&Drop / Auswahl — die
   niedrig aufgeloesten Web-Versionen sind ohnehin die einzigen auf dem
   Server, das hier erschwert zusaetzlich das beilaeufige Speichern */
.hf-owner-photo img,
.refs-slide img,
.refs-slide video {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* ══════════════════════════════════════════════════════════════
   PROJEKTE (Projects) — Showcase with Device Mockups
   ══════════════════════════════════════════════════════════════ */

/* Category layout */
.projects-category {
    margin-bottom: 4rem;
}

.projects-category:last-child {
    margin-bottom: 0;
}

.projects-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.projects-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Events-Referenzen — carousel styles live at the end of this file
   (section "EVENT-REFERENZEN CAROUSEL") */

/* Showcase grid (internal — side by side) */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Showcase slider (horizontal scroll) — full-bleed wie das Event-Carousel:
   bricht aus dem .container aus und ragt rechts aus dem Sichtfeld, die erste
   Karte startet aber an der Container-Kante */
.showcase-slider {
    --refs-edge: max(calc((100vw - var(--container-width)) / 2 + var(--container-padding)), var(--container-padding));
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 var(--refs-edge) 0.5rem;
    scroll-padding-inline: var(--refs-edge);
}

.showcase-slider::-webkit-scrollbar {
    display: none;
}

.showcase-slider .showcase-card {
    scroll-snap-align: start;
    flex: 0 0 min(480px, 82vw);
}

/* Showcase card */
.showcase-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.showcase-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Device mockup container */
.showcase-devices {
    position: relative;
    padding: 1.5rem 1.5rem 0;
    overflow: hidden;
}

/* Desktop browser frame */
.device-desktop {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.device-desktop-bar {
    height: 28px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
}

.device-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.device-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.device-dots span:first-child { background: #ff5f57; }
.device-dots span:nth-child(2) { background: #febc2e; }
.device-dots span:last-child { background: #28c840; }

.device-url {
    flex: 1;
    text-align: center;
    font-size: 0.625rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-desktop-screen {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0a0a;
}

.device-desktop-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    animation: scrollPreview 28s ease-in-out infinite;
}

/* Mobile phone frame */
.device-mobile {
    position: absolute;
    right: 0.75rem;
    bottom: 0;
    width: 20%;
    background: #111;
    border-radius: 12px;
    padding: 4px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.device-mobile-notch {
    width: 35%;
    height: 3px;
    background: #222;
    border-radius: 3px;
    margin: 2px auto 3px;
}

.device-mobile-screen {
    aspect-ratio: 9 / 19.5;
    border-radius: 9px;
    overflow: hidden;
    background: #0a0a0a;
}

.device-mobile-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    animation: scrollPreview 28s ease-in-out infinite;
}

/* Scroll animation for device previews */
@keyframes scrollPreview {
    0%, 5%   { object-position: center top; }
    45%, 50% { object-position: center bottom; }
    95%, 100% { object-position: center top; }
}

/* Stagger desktop delays per card */
.showcase-card:nth-child(1) .device-desktop-screen img { animation-delay: 0s; }
.showcase-card:nth-child(2) .device-desktop-screen img { animation-delay: 4s; }
.showcase-card:nth-child(3) .device-desktop-screen img { animation-delay: 8s; }
.showcase-card:nth-child(4) .device-desktop-screen img { animation-delay: 2s; }
.showcase-card:nth-child(5) .device-desktop-screen img { animation-delay: 6s; }
.showcase-card:nth-child(6) .device-desktop-screen img { animation-delay: 10s; }

/* Stagger mobile delays (offset from desktop) */
.showcase-card:nth-child(1) .device-mobile-screen img { animation-delay: 3s; }
.showcase-card:nth-child(2) .device-mobile-screen img { animation-delay: 7s; }
.showcase-card:nth-child(3) .device-mobile-screen img { animation-delay: 11s; }
.showcase-card:nth-child(4) .device-mobile-screen img { animation-delay: 5s; }
.showcase-card:nth-child(5) .device-mobile-screen img { animation-delay: 9s; }
.showcase-card:nth-child(6) .device-mobile-screen img { animation-delay: 13s; }

/* Showcase info */
.showcase-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.showcase-info h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.showcase-info p {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
}

.showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.showcase-link:hover {
    color: var(--text-primary);
}

.showcase-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.showcase-link:hover svg {
    transform: translateX(3px);
}

/* Slider navigation */
.slider-nav {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    transition: all var(--duration-fast) var(--ease-out);
    color: var(--text-secondary);
}

.slider-btn:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--bg-surface-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.slider-btn:disabled,
.slider-btn[aria-disabled="true"] {
    opacity: 0.3;
    cursor: default;
}

.slider-btn svg {
    width: 18px;
    height: 18px;
}

/* ══════════════════════════════════════════════════════════════
   PARTNER
   ══════════════════════════════════════════════════════════════ */
.partners {
    background: var(--bg-secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--bg-surface);
    transition: background var(--duration-fast) var(--ease-out);
}

.partner-item:hover {
    background: var(--bg-surface-hover);
}

.partner-item img {
    max-width: 100px;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.6);
    opacity: 0.5;
    transition: all var(--duration-normal) var(--ease-out);
}

.partner-item:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* Placeholder logo */
.partner-placeholder {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.4;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.partner-item:hover .partner-placeholder {
    opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════
   ÜBER UNS (About)
   ══════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder-text {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text .lead {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 1.25rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

.about-stat-number {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.375rem;
}

.about-stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════════════════════
   KONTAKT (Contact)
   ══════════════════════════════════════════════════════════════ */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 1.5;
}

.contact-detail-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.contact-detail-text strong {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.125rem;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: border-color var(--duration-fast) var(--ease-out);
    outline: none;
}

/* Select erbt Input-Optik + dunkles native Dropdown + eigener Pfeil */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-color: var(--bg-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--border-strong);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 1px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.form-message {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.is-success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.is-error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Logo deutlich groesser, Text rechts daneben auf Logo-Hoehe; darunter
   eine kleine Google-Bewertungszeile (JK 2026-08-02) */
.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.site-footer .gr-badge { margin-top: 1.1rem; }
.site-footer .gr-stars svg { width: 15px; height: 15px; }
.site-footer .gr-rating { font-size: 0.88rem; margin-right: 0.6rem; }
.site-footer .gr-count { font-size: 0.78rem; }

.footer-logo {
    height: 104px;
    width: auto;
    flex: 0 0 auto;
}

.footer-brand p {
    font-size: 0.875rem;
    margin: 0;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 0.625rem;
}

.footer-col ul li a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-col ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES (Impressum, Datenschutz)
   ══════════════════════════════════════════════════════════════ */
.legal-page {
    /* deutlich unter der Nav-Pille beginnen (JK 2026-08-02) */
    padding-top: clamp(11rem, 20vh, 15rem);
    min-height: 100vh;
}

/* Inhalt buendig mit der linken Kante der Nav-Pille (max-width 880px,
   zentriert) — Breite = Pille + eigenes Containerpadding */
.legal-page .legal-container {
    max-width: calc(880px + 2 * var(--container-padding));
    text-align: left;
}

.legal-page h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-size: 1.375rem;
    margin: 2.5rem 0 1rem;
}

.legal-page h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-page p {
    margin-bottom: 1rem;
}

.legal-page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.legal-page a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page a:hover {
    color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fields-grid .field-card:nth-child(1),
    .fields-grid .field-card:nth-child(2),
    .fields-grid .field-card:nth-child(3),
    .fields-grid .field-card:nth-child(4) {
        grid-column: span 1;
    }

    .fields-grid .field-card:nth-child(5) {
        grid-column: span 2;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-grid {
        gap: 3rem;
    }

    .contact-grid {
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .fields-grid {
        grid-template-columns: 1fr;
    }

    .fields-grid .field-card {
        grid-column: span 1 !important;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        aspect-ratio: 16 / 9;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stripe-blob {
        filter: blur(60px);
    }
    .stripe-blob--6 {
        display: none;
    }

    .logo-marquee {
        padding: 0.65rem 0;
    }

    .logo-marquee-item {
        padding: 0 1.3rem;
    }

    .logo-marquee-item span {
        font-size: 0.6875rem;
    }

    .logo-marquee-mask {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    }

    /* Mobil: Brand voll breit, darunter Geschaeftsfelder + Kontakt
       nebeneinander; Unternehmen entfaellt (JK 2026-08-02) */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-logo {
        width: 100px;
    }
}

/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════════════════════════ */

/* Focus-visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-logo,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-scroll-indicator {
        opacity: 1;
        transform: none;
    }

    .stripe-blob {
        animation: none;
    }
    .stripe-mesh {
        opacity: 1;
    }
}

/* ════════════════════════════════════════════════════════════
   Landing Page — Events & Personalstellung (page-events.php)
   ════════════════════════════════════════════════════════════ */
.le-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 8rem 0 4rem;
}
.le-hero-media { position: absolute; inset: 0; z-index: 0; }
.le-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.le-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.72) 55%, rgba(10, 10, 10, 0.97) 100%);
}
.le-hero-content { position: relative; z-index: 2; }
.le-hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 1.25rem;
    color: var(--text-primary);
}
.le-hero-sub {
    max-width: 620px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.le-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Leistungen grid */
.le-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.le-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}
.le-card:hover { border-color: var(--border-medium); transform: translateY(-4px); }
.le-card-icon { width: 44px; height: 44px; color: var(--text-primary); margin-bottom: 1.25rem; }
.le-card-icon svg { width: 100%; height: 100%; }
.le-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--text-primary); }
.le-card p { font-size: 0.95rem; line-height: 1.65; color: var(--text-secondary); }

/* Event-Typen chips */
.le-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}
.le-types li {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    transition: border-color var(--duration-normal) var(--ease-out);
}
.le-types li:hover { border-color: var(--border-strong); }

/* Ablauf steps */
.le-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.le-step { border-top: 1px solid var(--border-medium); padding-top: 1.5rem; }
.le-step-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}
.le-step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--text-primary); }
.le-step p { font-size: 0.95rem; line-height: 1.65; color: var(--text-secondary); }

/* CTA band */
.le-cta-section { text-align: center; }
.le-cta h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.le-cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 auto 2rem;
    max-width: 560px;
}
.le-cta .le-hero-cta { justify-content: center; }

@media (max-width: 1024px) {
    .le-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .le-grid, .le-steps { grid-template-columns: 1fr; }
    .le-hero { min-height: 68vh; padding-top: 6rem; }
}

/* ════════════════════════════════════════════════════════════
   Interaktions-Enhancements (Counter / Scroll-Progress / Magnetic / Tilt / WebGL-Hero)
   ════════════════════════════════════════════════════════════ */

/* Scroll-Fortschrittsbalken (über der Nav) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    z-index: 1001;
    pointer-events: none;
    will-change: width;
    transition: width 80ms linear;
}

/* WebGL-Gradient — dunkle, markenkonforme Farben (kein greller Akzent).
   Die Fläche ist so hoch wie die gesamte Seite und scrollt mit: ein
   durchgehender Wellenhintergrund von oben bis unten, nicht eine im Viewport
   stehende Ebene, über die der Inhalt hinwegscrollt. */
.page-fx {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Einziger Abdunkler der Seite: oben (Hero) offen, danach durchgehend
   deutlich dunkler. Läuft über die Sektionsgrenzen hinweg — dadurch kann es
   gar keine Übergangskanten geben. */
.page-fx-veil {
    position: absolute;
    inset: 0;
    /* 0.68 statt 0.9: unterhalb des Heros blieb vom Wellenmuster sonst
       praktisch nichts übrig — es wirkte einfach schwarz (JK 2026-08-01) */
    background: linear-gradient(to bottom,
        rgba(8, 8, 10, 0) 0,
        rgba(8, 8, 10, 0) 160vh,
        rgba(8, 8, 10, 0.68) 250vh,
        rgba(8, 8, 10, 0.68) 100%);
}

#gradient-canvas {
    --gradient-color-1: #0a0a0a;
    --gradient-color-2: #232336;
    --gradient-color-3: #161622;
    --gradient-color-4: #2e2440;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.2s ease;
}
#gradient-canvas.isLoaded { opacity: 1; }

/* Sektionen haben bewusst KEINE eigene Fläche mehr — jede Fläche wäre eine
   Kante. Abgedunkelt wird ausschließlich über .page-fx-veil. */
.fields,
.projects,
.contact,
.site-footer {
    background: none;
}

/* Magnetic-Buttons: CSS-Hover-Transform abschalten, damit JS alleinige Transform-Quelle ist */
.btn-primary.magnetic:hover { transform: none; }

/* About-Stats als subtile Karten (Träger für den 3D-Tilt) */
.about-stats .stat-card {
    padding: 1.25rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: transform 0.15s var(--ease-out), border-color var(--duration-normal) var(--ease-out);
    will-change: transform;
}
.about-stats .stat-card:hover { border-color: var(--border-medium); }

@media (prefers-reduced-motion: reduce) {
    .scroll-progress { transition: none; }
    #gradient-canvas { display: none; }
    .about-stats .stat-card { transition: border-color var(--duration-normal) var(--ease-out); }
}

/* ═══════════════════════════════════════════════════════════════════
   Front-page additions 2026-07-29: automation section,
   reworked about ("Die Menschen hinter BnK")
   (Marken-Kacheln leben seit 2026-08-01 im Hero — hero-flow.css)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Automation section ────────────────────────────────────────────── */
.automation {
    position: relative;
    /* keine eigene Fläche — Abdunklung kommt seitenweit aus .page-fx-veil */
    overflow: hidden;
}

.automation-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.automation-fx canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.55;
}

.automation .container { position: relative; }

/* Karteikarten-Deck (JK 2026-08-01): Karten liegen gestapelt, nur die
   aktive ist voll sichtbar, die folgenden ragen rechts versetzt hervor.
   Transforms und Hoehe setzt initAutomationDeck() in main.js. */
.automation-slider-head {
    display: flex;
    /* linksbuendig ueber dem (linksbuendigen) Deck — rechts wirkte die
       Bedienung verloren (JK 2026-08-02) */
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.automation-deck-counter {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    color: var(--text-tertiary);
}

.automation-deck-counter .automation-deck-current {
    color: var(--text-primary);
}

.automation-deck {
    position: relative;
    /* linksbuendig mit Ueberschrift und Text, breiter — der Faecher der
       Folgekarten ragt rechts heraus (JK 2026-08-01) */
    max-width: 760px;
    margin: 0;
}

.automation-deck .automation-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    will-change: transform, opacity;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, border-color 0.3s ease;
}

.automation-card--foundation {
    background: rgba(21, 18, 15, 0.96);
}

.automation-card--foundation h4 {
    font-size: 1.2rem;
}

.automation-card {
    /* fast opak (max. 5% Durchlaessigkeit, JK 2026-08-01) */
    background: rgba(18, 18, 22, 0.96);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(245, 245, 245, 0.09);
    border-radius: 18px;
    padding: 1.7rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.automation-card:hover {
    border-color: rgba(245, 245, 245, 0.24);
}

.automation-card-anim {
    border: 1px solid rgba(245, 245, 245, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.55rem;
    overflow: hidden;
}

.automation-card-anim svg {
    display: block;
    width: 100%;
    /* feste Höhe statt auto: im Slider sind die Karten deutlich breiter als im
       alten 4er-Grid — frei skaliert würde die Vignette die halbe Karte füllen */
    height: 112px;
}

/* Foundation-Diagramm (600x160) darf seine natürliche Höhe behalten */
.automation-card-anim--foundation svg {
    height: auto;
}

.automation-card h4 {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.automation-card p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(245, 245, 245, 0.55);
    flex: 1;
}

.automation-card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
}

.automation-card-tags li {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.5);
    border: 1px solid rgba(245, 245, 245, 0.12);
    border-radius: 100px;
    padding: 0.18rem 0.6rem;
}

.automation-card .automation-card-use {
    flex: none;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(245, 245, 245, 0.42);
}

.automation-card .automation-card-use span {
    display: block;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.35);
    margin-bottom: 0.15rem;
}

/* ── Foundation card (backend / servers / n8n / MCP) — opens the grid ── */
.automation-foundation {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
    background: rgba(21, 18, 15, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(245, 245, 245, 0.09);
    border-radius: 18px;
    padding: 2.2rem 2.4rem;
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out),
                border-color 0.3s ease;
}

.automation-foundation:hover {
    border-color: rgba(245, 245, 245, 0.24);
}

.automation-foundation-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.4);
    margin-bottom: 0.7rem;
}

.automation-foundation h3 {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.automation-foundation-text > p:not(.automation-foundation-label) {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(245, 245, 245, 0.55);
    margin-bottom: 1.1rem;
}

.automation-foundation-anim svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Card vignette animations ──────────────────────────────────────────
   Shared monochrome stroke/fill palette; per-scene keyframes. Story
   scenes share one duration with %-based phases so each loop resets in
   sync. Continuous scenes (sync, monitor, LEDs) run free. The global
   prefers-reduced-motion override stops animations at their BASE styles,
   so the dedicated block below turns each vignette into a static tableau
   (hide travelling dots, show end states). */
.aa-line  { stroke: rgba(245, 245, 245, 0.32); stroke-width: 1.5; }
.aa-faint { stroke: rgba(245, 245, 245, 0.14); stroke-width: 1.5; }
.aa-dash  { stroke: rgba(245, 245, 245, 0.2); stroke-width: 1.5; stroke-dasharray: 3 5; }
.aa-faintfill { fill: rgba(245, 245, 245, 0.25); }
/* subtle warm copper accent on the "living" elements only — structure stays neutral */
.aa-dotfill   { fill: rgba(224, 168, 98, 0.9); }
.aa-barfill   { fill: rgba(245, 245, 245, 0.13); }
.aa-glyph { fill: rgba(224, 168, 98, 0.75); font-size: 15px; font-weight: 600; text-anchor: middle; font-family: inherit; }
.aa-hublabel { fill: rgba(224, 168, 98, 0.8); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-anchor: middle; dominant-baseline: middle; font-family: inherit; }
.aa-check { stroke: rgba(245, 245, 245, 0.95); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.aa-check-bg { fill: #101014; stroke: rgba(245, 245, 245, 0.5); stroke-width: 1.5; }

/* 1 — payment matching */
.am-dot { animation: bnk-am-dot 4.8s ease-in-out infinite; }
@keyframes bnk-am-dot {
    0% { transform: translateX(0); opacity: 0; }
    6% { opacity: 1; }
    40% { transform: translateX(78px); opacity: 1; }
    47%, 100% { transform: translateX(78px); opacity: 0; }
}
.am-check { transform-box: fill-box; transform-origin: center; animation: bnk-am-check 4.8s ease-in-out infinite; }
@keyframes bnk-am-check {
    0%, 40% { transform: scale(0); opacity: 0; }
    48% { transform: scale(1.08); opacity: 1; }
    53% { transform: scale(1); }
    94% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* 2 — document scan + classification pills */
.al-scan { stroke: rgba(224, 168, 98, 0.8); stroke-width: 2; stroke-linecap: round; animation: bnk-al-scan 5.6s ease-in-out infinite; }
@keyframes bnk-al-scan {
    0% { transform: translateY(0); opacity: 0; }
    4% { opacity: 0.9; }
    26% { transform: translateY(54px); opacity: 0.9; }
    31%, 100% { transform: translateY(54px); opacity: 0; }
}
.al-pill { opacity: 0; }
.al-p1 { animation: bnk-al-p1 5.6s ease infinite; }
@keyframes bnk-al-p1 {
    0%, 30% { opacity: 0; transform: translateX(-6px); }
    36%, 92% { opacity: 1; transform: translateX(0); }
    98%, 100% { opacity: 0; transform: translateX(0); }
}
.al-p2 { animation: bnk-al-p2 5.6s ease infinite; }
@keyframes bnk-al-p2 {
    0%, 38% { opacity: 0; transform: translateX(-6px); }
    44%, 92% { opacity: 1; transform: translateX(0); }
    98%, 100% { opacity: 0; transform: translateX(0); }
}
.al-p3 { animation: bnk-al-p3 5.6s ease infinite; }
@keyframes bnk-al-p3 {
    0%, 46% { opacity: 0; transform: translateX(-6px); }
    52%, 92% { opacity: 1; transform: translateX(0); }
    98%, 100% { opacity: 0; transform: translateX(0); }
}

/* 3 — invoice pipeline with deadline clock */
.ap-dot { animation: bnk-ap-dot 6s ease-in-out infinite; }
@keyframes bnk-ap-dot {
    0% { transform: translate(0, 0); opacity: 0; }
    5% { opacity: 1; }
    10% { transform: translate(0, 0); }
    26% { transform: translate(75px, 0); }
    40% { transform: translate(75px, 0); }
    56% { transform: translate(150px, 0); }
    62% { transform: translate(150px, 0); opacity: 1; }
    70%, 100% { transform: translate(150px, 0); opacity: 0; }
}
.ap-s1 { animation: bnk-ap-s1 6s ease infinite; }
@keyframes bnk-ap-s1 {
    0%, 3% { stroke: rgba(245, 245, 245, 0.32); }
    8% { stroke: rgba(245, 245, 245, 0.8); }
    16%, 100% { stroke: rgba(245, 245, 245, 0.32); }
}
.ap-s2 { animation: bnk-ap-s2 6s ease infinite; }
@keyframes bnk-ap-s2 {
    0%, 24% { stroke: rgba(245, 245, 245, 0.32); }
    30% { stroke: rgba(245, 245, 245, 0.8); }
    38%, 100% { stroke: rgba(245, 245, 245, 0.32); }
}
.ap-s3 { animation: bnk-ap-s3 6s ease infinite; }
@keyframes bnk-ap-s3 {
    0%, 54% { stroke: rgba(245, 245, 245, 0.32); }
    60% { stroke: rgba(245, 245, 245, 0.8); }
    68%, 100% { stroke: rgba(245, 245, 245, 0.32); }
}
.ap-hand { transform-origin: 110px 16px; animation: bnk-ap-hand 6s linear infinite; }
@keyframes bnk-ap-hand { to { transform: rotate(360deg); } }
.ap-check { transform-box: fill-box; transform-origin: center; animation: bnk-ap-check 6s ease infinite; }
@keyframes bnk-ap-check {
    0%, 58% { opacity: 0; transform: scale(0); }
    66% { opacity: 1; transform: scale(1.1); }
    70% { transform: scale(1); }
    90% { opacity: 1; transform: scale(1); }
    98%, 100% { opacity: 0; transform: scale(1); }
}

/* 4 — platform onboarding checklist */
.ah-c1, .ah-c2, .ah-c3 { transform-box: fill-box; transform-origin: center; }
.ah-c1 { animation: bnk-ah-c1 6s ease infinite; }
@keyframes bnk-ah-c1 {
    0%, 18% { opacity: 0; transform: scale(0); }
    26% { opacity: 1; transform: scale(1.15); }
    30% { transform: scale(1); }
    88% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; transform: scale(1); }
}
.ah-c2 { animation: bnk-ah-c2 6s ease infinite; }
@keyframes bnk-ah-c2 {
    0%, 38% { opacity: 0; transform: scale(0); }
    46% { opacity: 1; transform: scale(1.15); }
    50% { transform: scale(1); }
    88% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; transform: scale(1); }
}
.ah-c3 { animation: bnk-ah-c3 6s ease infinite; }
@keyframes bnk-ah-c3 {
    0%, 58% { opacity: 0; transform: scale(0); }
    66% { opacity: 1; transform: scale(1.15); }
    70% { transform: scale(1); }
    88% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; transform: scale(1); }
}

/* 5 — KPI chart: bars stay static (no empty reset frame), trend redraws */
.ak-trend { stroke-dasharray: 100; stroke-dashoffset: 100; animation: bnk-ak-trend 6.5s ease infinite; }
@keyframes bnk-ak-trend {
    0%, 8% { stroke-dashoffset: 100; opacity: 1; }
    46% { stroke-dashoffset: 0; }
    92% { stroke-dashoffset: 0; opacity: 1; }
    98%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
.ak-tip { transform-box: fill-box; transform-origin: center; animation: bnk-ak-tip 6.5s ease infinite; }
@keyframes bnk-ak-tip {
    0%, 42% { opacity: 0; transform: scale(0); }
    48% { opacity: 1; transform: scale(1.3); }
    54% { transform: scale(1); }
    92% { opacity: 1; transform: scale(1); }
    98%, 100% { opacity: 0; transform: scale(1); }
}

/* 6 — content sync triangle (continuous) */
.as-d1 { animation: bnk-as-d1 4.5s linear infinite; }
@keyframes bnk-as-d1 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(110px, 0); opacity: 0; }
}
.as-d2 { animation: bnk-as-d2 4.5s linear infinite; animation-delay: -1.5s; }
@keyframes bnk-as-d2 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-55px, 42px); opacity: 0; }
}
.as-d3 { animation: bnk-as-d3 4.5s linear infinite; animation-delay: -3s; }
@keyframes bnk-as-d3 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-55px, -42px); opacity: 0; }
}
.as-n1, .ab-n1 { animation: bnk-as-node 4.5s ease-in-out infinite; }
.as-n2, .ab-n2 { animation: bnk-as-node 4.5s ease-in-out infinite; animation-delay: -1.5s; }
.as-n3, .ab-n3 { animation: bnk-as-node 4.5s ease-in-out infinite; animation-delay: -3s; }
.ab-n4 { animation: bnk-as-node 4.5s ease-in-out infinite; animation-delay: -2.2s; }
@keyframes bnk-as-node {
    0%, 100% { stroke: rgba(245, 245, 245, 0.32); }
    50% { stroke: rgba(245, 245, 245, 0.6); }
}

/* 7 — monitoring heartbeat (continuous) */
.ao-trace { stroke: rgba(245, 245, 245, 0.85); stroke-width: 1.8; stroke-linecap: round; fill: none; stroke-dasharray: 26 74; animation: bnk-ao-trace 3.4s linear infinite; }
@keyframes bnk-ao-trace {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}
.ao-ring { fill: none; stroke: rgba(224, 168, 98, 0.65); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: bnk-ao-ring 2.4s ease-out infinite; }
@keyframes bnk-ao-ring {
    0% { transform: scale(0.5); opacity: 0.8; }
    70%, 100% { transform: scale(2.4); opacity: 0; }
}

/* 8 — marketing funnel */
.af-d1 { animation: bnk-af-d1 5.2s ease-in infinite; }
@keyframes bnk-af-d1 {
    0% { transform: translate(0, 0); opacity: 0; }
    5% { opacity: 1; }
    30% { transform: translate(23px, 40px); opacity: 1; }
    36%, 100% { transform: translate(23px, 40px); opacity: 0; }
}
.af-d2 { animation: bnk-af-d2 5.2s ease-in infinite; }
@keyframes bnk-af-d2 {
    0%, 20% { transform: translate(0, 0); opacity: 0; }
    26% { opacity: 1; }
    50% { transform: translate(0, 42px); opacity: 1; }
    56%, 100% { transform: translate(0, 42px); opacity: 0; }
}
.af-d3 { animation: bnk-af-d3 5.2s ease-in infinite; }
@keyframes bnk-af-d3 {
    0%, 40% { transform: translate(0, 0); opacity: 0; }
    46% { opacity: 1; }
    70% { transform: translate(-25px, 40px); opacity: 1; }
    76%, 100% { transform: translate(-25px, 40px); opacity: 0; }
}
.af-ring { fill: none; stroke: rgba(224, 168, 98, 0.6); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: bnk-af-ring 5.2s ease-out infinite; }
@keyframes bnk-af-ring {
    0%, 74% { transform: scale(0.6); opacity: 0; }
    80% { opacity: 0.7; transform: scale(1); }
    96%, 100% { transform: scale(2); opacity: 0; }
}

/* 9 — foundation: rack LEDs + n8n-style flow pulses */
.ab-led1 { animation: bnk-ab-led 2.1s steps(1) infinite; }
.ab-led2 { animation: bnk-ab-led 2.1s steps(1) infinite; animation-delay: -0.7s; }
.ab-led3 { animation: bnk-ab-led 2.1s steps(1) infinite; animation-delay: -1.4s; }
@keyframes bnk-ab-led {
    0% { opacity: 0.9; }
    55% { opacity: 0.25; }
    80% { opacity: 0.9; }
    100% { opacity: 0.9; }
}
/* p1: rack → bus → n8n chain (top) → end node */
.ab-p1 { animation: bnk-ab-p1 6s linear infinite; }
@keyframes bnk-ab-p1 {
    0% { transform: translate(0, 0); opacity: 0; }
    4% { opacity: 1; }
    15% { transform: translate(75px, 0); }
    30% { transform: translate(150px, -32px); }
    45% { transform: translate(230px, -32px); }
    62% { transform: translate(345px, 0); opacity: 1; }
    67%, 100% { transform: translate(345px, 0); opacity: 0; }
}
/* p2: rack → bus → MCP hub (handover to the exchange shuttles) */
.ab-p2 { animation: bnk-ab-p2 6s linear infinite; animation-delay: -3s; }
@keyframes bnk-ab-p2 {
    0% { transform: translate(0, 0); opacity: 0; }
    4% { opacity: 1; }
    15% { transform: translate(75px, 0); }
    35% { transform: translate(155px, 38px); opacity: 1; }
    41%, 100% { transform: translate(155px, 38px); opacity: 0; }
}
/* MCP ↔ client shuttles: continuous back-and-forth = data exchange */
.ab-x1 { animation: bnk-ab-x1 2.6s ease-in-out infinite alternate; }
@keyframes bnk-ab-x1 {
    0% { transform: translate(0, 0); opacity: 0.55; }
    100% { transform: translate(90px, -18px); opacity: 0.95; }
}
.ab-x2 { animation: bnk-ab-x2 2.6s ease-in-out infinite alternate; animation-delay: -1.3s; }
@keyframes bnk-ab-x2 {
    0% { transform: translate(0, 0); opacity: 0.55; }
    100% { transform: translate(90px, 20px); opacity: 0.95; }
}
/* output rows light up one after another once the end node fires */
.ab-o1 { opacity: 0.35; animation: bnk-ab-o1 6s ease infinite; }
@keyframes bnk-ab-o1 {
    0%, 62% { opacity: 0.35; }
    68%, 88% { opacity: 0.95; }
    96%, 100% { opacity: 0.35; }
}
.ab-o2 { opacity: 0.35; animation: bnk-ab-o2 6s ease infinite; }
@keyframes bnk-ab-o2 {
    0%, 70% { opacity: 0.35; }
    76%, 88% { opacity: 0.95; }
    96%, 100% { opacity: 0.35; }
}
.ab-o3 { opacity: 0.35; animation: bnk-ab-o3 6s ease infinite; }
@keyframes bnk-ab-o3 {
    0%, 78% { opacity: 0.35; }
    84%, 90% { opacity: 0.95; }
    98%, 100% { opacity: 0.35; }
}
.ab-endring { fill: none; stroke: rgba(224, 168, 98, 0.6); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: bnk-ab-endring 6s ease-out infinite; }
@keyframes bnk-ab-endring {
    0%, 60% { transform: scale(0.7); opacity: 0; }
    65% { opacity: 0.7; transform: scale(1); }
    82%, 100% { transform: scale(1.9); opacity: 0; }
}

/* Static tableau for reduced motion: hide movers/rings, show end states */
@media (prefers-reduced-motion: reduce) {
    .am-dot, .ap-dot, .as-d1, .as-d2, .as-d3, .af-d1, .af-d2, .af-d3,
    .ab-p1, .ab-p2, .ab-x1, .ab-x2, .al-scan, .ao-trace, .ao-ring, .af-ring, .ab-endring { opacity: 0; }
    .al-pill { opacity: 1; }
    .ak-trend { stroke-dashoffset: 0; }
}

@media (max-width: 1100px) {
    .automation-foundation { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.8rem 1.6rem; }
}

/* ── About rework: founders + principles ───────────────────────────── */
.about-intro {
    max-width: 820px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-intro-line {
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.about-initial {
    display: inline-block;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, rgba(245, 245, 245, 0.55));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-amp { color: rgba(245, 245, 245, 0.4); }

.about-intro-sub {
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(245, 245, 245, 0.6);
    max-width: 640px;
    margin: 0 auto;
}

.founders-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.founder-card {
    width: min(320px, 100%);
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background: #121216;
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out),
                border-color 0.3s ease;
}

.founder-card.reveal-delay-1 { transition-delay: 0.1s, 0.1s, 0s; }
.founder-card.reveal-delay-2 { transition-delay: 0.2s, 0.2s, 0s; }
.founder-card.reveal-delay-3 { transition-delay: 0.3s, 0.3s, 0s; }

.founder-card:hover {
    border-color: rgba(245, 245, 245, 0.24);
    transform: translateY(-4px);
}

.founder-photo {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.07), transparent 60%),
        linear-gradient(160deg, #1a1a20, #101014);
    position: relative;
}

.founder-photo[data-photo-pending]::after {
    content: 'Foto folgt';
    position: absolute;
    bottom: 0.8rem;
    right: 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.28);
}

.founder-monogram {
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(245, 245, 245, 0.22);
}

.founder-body {
    padding: 1.4rem 1.5rem 1.6rem;
    text-align: center;
}

.founder-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.founder-role {
    font-size: 0.82rem;
    color: rgba(245, 245, 245, 0.5);
    margin-bottom: 0.7rem;
}

.founder-contact {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 245, 245, 0.2);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.founder-contact:hover { color: #fff; border-color: #fff; }

.founders-joint {
    display: flex;
    align-items: center;
    justify-content: center;
}

.founders-joint-mark {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: rgba(245, 245, 245, 0.16);
}

.about-principles {
    list-style: none;
    max-width: 860px;
    margin: 0 auto 4rem;
    padding: 0;
    border-top: 1px solid rgba(245, 245, 245, 0.08);
}

.about-principle {
    display: grid;
    grid-template-columns: 3.2rem minmax(180px, 0.8fr) 1.4fr;
    gap: 1rem;
    align-items: baseline;
    padding: 1.4rem 0.4rem;
    border-bottom: 1px solid rgba(245, 245, 245, 0.08);
}

.about-principle-num {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(245, 245, 245, 0.3);
    font-variant-numeric: tabular-nums;
}

.about-principle-title {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.about-principle-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(245, 245, 245, 0.55);
}

@media (max-width: 640px) {
    .about-principle { grid-template-columns: 2.4rem 1fr; }
    .about-principle-text { grid-column: 2; }
    .founders-joint { display: none; }
}

.about .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   EVENT-REFERENZEN CAROUSEL (front-page #projects, Kategorie "Events")
   Full-bleed Medien-Slider: Fotos & Videos, Snap-Scroll, Drag,
   Ken-Burns auf aktiver Slide, Progress + Counter.
   ══════════════════════════════════════════════════════════════ */

/* Header: Titel + Subline links, Counter + Pfeile rechts */
.refs-header {
    align-items: flex-end;
    gap: 1.5rem;
}

.refs-subline {
    margin-top: 0.35rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-tertiary);
    max-width: 560px;
}

.refs-nav {
    align-items: center;
    flex-shrink: 0;
}

.refs-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-right: 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    color: var(--text-tertiary);
}

.refs-counter-current {
    color: var(--text-primary);
}

/* Full-bleed: bricht aus dem .container aus, Slides starten aber an der
   Container-Kante (padding/scroll-padding = Container-Offset) */
.refs-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.refs-track {
    --refs-edge: max(calc((100vw - var(--container-width)) / 2 + var(--container-padding)), var(--container-padding));
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    /* nie vertikal scrollbar — ein paar Ueberhang-Pixel liessen iOS am
       Seiten-Scroll haengen (JK 2026-08-01) */
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem var(--refs-edge) 1rem;
    scroll-padding-inline: var(--refs-edge);
}

.refs-track::-webkit-scrollbar {
    display: none;
}

@media (pointer: fine) {
    .refs-track { cursor: grab; }
    .refs-track.is-dragging { cursor: grabbing; }
}

/* While dragging: snap off, so the track follows the pointer 1:1 */
.refs-track.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.refs-slide {
    position: relative;
    flex: 0 0 min(560px, 82vw);
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transform: translateZ(0);   /* own compositing layer → clean clip on rounded corners */
    transition: border-color var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.refs-slide:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

/* Staggered entrance once the carousel scrolls into view (JS adds .is-inview) */
.refs-carousel.is-enhanced:not(.is-inview) .refs-slide {
    opacity: 0;
}

/* fill-mode backwards (not both): forwards would pin the keyframe transform
   after the animation ends and permanently block the :hover lift */
.refs-carousel.is-inview .refs-slide {
    animation: refsSlideIn 0.7s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes refsSlideIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}

.refs-slide-link {
    position: absolute;
    inset: 0;
    z-index: 6;
}

/* Keyboard focus: outline must sit inside — .refs-slide clips via overflow:hidden */
.refs-slide-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: -3px;
    border-radius: var(--radius-lg);
}

.refs-slide-media {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
}

.refs-img,
.refs-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* leicht abgedunkelt + weichgezeichnet (JK): der Titel traegt die Kachel,
   das Video ist Stimmung. scale kaschiert den Blur-Randsaum. */
.refs-video--dim {
    /* nur Abdunklung — Blur traegt allein die Kochschule-Kachel */
    filter: brightness(0.7);
}

.refs-video--blur {
    filter: brightness(0.7) blur(0.7px);
    transform: scale(1.03);
}

/* Ken-Burns nur auf der aktiven Slide — langsam, subtil, alternierend.
   Nicht auf Stack-Bildern: dort bewegt der Bildwechsel selbst (transform-Konflikt). */
.refs-slide.is-active .refs-img:not(.refs-stack-img) {
    animation: refsKenBurns 16s ease-in-out infinite alternate;
}

/* ── In-Kachel-Bildslider: mehrere Aufnahmen eines Events, vertikal ──
   Ein- und ausgehendes Bild liegen übereinander (z-index), damit nie der
   Kachel-Hintergrund durchscheint. */
.refs-stack {
    position: absolute;
    inset: 0;
}

.refs-stack-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transform: translateY(6%);
    transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-out);
}

.refs-stack-img.is-active {
    opacity: 1;
    z-index: 3;
    transform: translateY(0);
}

/* das weichende Bild bleibt deckend liegen, bis der Crossfade durch ist */
.refs-stack-img.is-leaving {
    opacity: 1;
    z-index: 2;
    transform: translateY(-6%);
}

.refs-stack-dots {
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    pointer-events: none;
}

.refs-stack-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: background var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.refs-stack-dots i.is-active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.35);
}

@keyframes refsKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

/* Scrim: unten dunkel für Caption-Lesbarkeit, oben minimal für den Chip */
.refs-slide-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.7) 78%, rgba(0, 0, 0, 0.78) 100%);
}

.refs-chip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
    padding: 0.3rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Eigener Verlauf hinter der Bildunterschrift: hält den Text auch auf sehr
   hellen Motiven lesbar (weiße Tafel, weißer Teller), ohne das ganze Bild
   abzudunkeln. */
.refs-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 3.25rem 1.5rem 1.25rem;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.45) 42%,
        rgba(0, 0, 0, 0.72) 72%,
        rgba(0, 0, 0, 0.82) 100%);
}

.refs-caption h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.refs-caption p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 44ch;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Hover-Pfeil oben rechts — erscheint sanft */
.refs-hover-arrow {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.refs-hover-arrow svg {
    width: 16px;
    height: 16px;
}

.refs-slide:hover .refs-hover-arrow,
.refs-slide:focus-within .refs-hover-arrow {
    opacity: 1;
    transform: none;
}

/* CTA-Slide (letzte Karte) */
.refs-slide--cta {
    background:
        radial-gradient(120% 140% at 85% -20%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 55%),
        var(--bg-surface);
    border-color: var(--border-medium);
    display: flex;
    align-items: flex-end;
}

.refs-cta-inner {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.refs-chip--static {
    position: static;
    margin-bottom: 0.5rem;
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.refs-slide--cta h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    max-width: 16ch;
}

.refs-slide--cta p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 38ch;
}

.refs-cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 0.75rem;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    transition: background var(--duration-fast) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.refs-cta-arrow svg {
    width: 18px;
    height: 18px;
}

.refs-slide--cta:hover .refs-cta-arrow,
.refs-slide--cta:focus-within .refs-cta-arrow {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

/* Motion-Toggle (WCAG 2.2.2): pausiert Videos + Ken-Burns */
.refs-motion-toggle svg {
    width: 16px;
    height: 16px;
}

.refs-motion-toggle .refs-icon-play {
    display: none;
}

.refs-motion-toggle[aria-pressed="true"] .refs-icon-pause {
    display: none;
}

.refs-motion-toggle[aria-pressed="true"] .refs-icon-play {
    display: block;
}

.refs-carousel.is-motion-paused .refs-slide.is-active .refs-img {
    animation-play-state: paused;
}

/* Screen-reader-only live status for slide changes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Unterzeile: Progress links, Direktlinks rechts */
.refs-below {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    margin-top: 0.5rem;
}

.refs-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .refs-slide {
        flex-basis: min(480px, 78vw);
    }
}

@media (max-width: 768px) {
    .refs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .refs-slide {
        flex-basis: 82vw;
    }

    /* CTA content is taller than 16/10 on phones — release the ratio, keep the
       16/10 height as minimum; other slides stretch to match (flex default) */
    .refs-slide--cta {
        aspect-ratio: auto;
        min-height: 51.25vw; /* = 82vw * 10/16 */
    }

    .refs-caption {
        padding: 1rem 1.1rem;
    }

    .refs-caption h4 {
        font-size: 1rem;
    }

    .refs-below {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }

    .refs-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Reduced motion: keine Entrance-/Ken-Burns-Animationen, Slides sofort sichtbar
   (globale reduced-motion-Regel kürzt Animationen bereits auf 0.01ms — das hier
   ist der explizite Fallback, falls sich die globale Regel ändert) */
@media (prefers-reduced-motion: reduce) {
    .refs-carousel.is-enhanced:not(.is-inview) .refs-slide {
        opacity: 1;
    }

    .refs-carousel.is-inview .refs-slide,
    .refs-slide.is-active .refs-img:not(.refs-stack-img) {
        animation: none;
    }

    /* Stack: kein Slide-Versatz, nur harter Wechsel */
    .refs-stack-img {
        transform: none !important;
        transition: opacity 0.01ms;
    }
}

/* ── Editorial split section header (Geschäftsbereiche) ───── */
.section-header--split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3.5rem;
    align-items: start;
}

.section-header--split .section-title {
    margin-bottom: 0;
    text-wrap: balance;
}

.section-header--split .section-description {
    max-width: 62ch;
    margin-bottom: 0;
}

/* Zwischenüberschrift direkt unter dem Haupttitel — kleiner, eine Zeile */
.section-subtitle {
    margin-top: 0.45rem;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.65vw, 1.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: rgba(245, 245, 245, 0.45);
    white-space: nowrap;
}

/* Google-Bewertungen der Kochschule — dezent, Live-Zahl aus kwiekochkunst.de */
.gr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.9rem;
    text-decoration: none;
}

.gr-stars {
    display: inline-flex;
    gap: 2.5px;
    color: #fff;
}

.gr-stars svg {
    width: 19px;
    height: 19px;
    display: block;
}

.gr-rating {
    font-size: 1.02rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    /* danach bewusst mehr Luft bis zum Zaehler */
    margin-right: 0.9rem;
}

.gr-meta {
    display: grid;
    gap: 0.1rem;
}

.gr-count {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.8);
    transition: color var(--duration-fast) var(--ease-out);
}

/* (Quellenzeile im Bewertungs-Badge entfernt — JK 2026-08-01) */

.gr-badge:hover .gr-count { color: #fff; }

/* Lead sentence — brighter and larger than the body copy */
.section-lead {
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: rgba(245, 245, 245, 0.6);
    max-width: 56ch;
    margin-bottom: 1.5rem;
    text-wrap: pretty;
}

.section-lead-accent {
    color: var(--text-primary);
    font-weight: 600;
}

.section-header--split .section-description strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Founder pairing under the headline — the "two worlds" idea, visualised */
.founder-worlds-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin: 2.25rem 0 0.85rem;
}

.founder-worlds {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.founder-worlds li {
    display: grid;
    gap: 0.15rem;
}

.founder-worlds-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.founder-worlds-role {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.founder-worlds-plus {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(245, 245, 245, 0.28);
    align-self: center;
}

@media (max-width: 1024px) {
    .section-header--split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .founder-worlds-label {
        margin-top: 1.75rem;
    }
}

@media (max-width: 480px) {
    .founder-worlds {
        gap: 0.9rem;
    }
}

/* Carousel ohne eigenen Textblock (Events-LP: Ueberschrift steht darueber) */
.refs-header--nav-only { justify-content: flex-end; }

/* ══ Formular: zweispaltige Zeile + Honeypot ══ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Honeypot: unsichtbar, aber nicht display:none — Bots ueberspringen
   display:none-Felder haeufiger als absolut positionierte. */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 600px) {
    /* gap wie zwischen normalen .form-group-Bloecken — mit 0 klebte das
       zweite Label direkt am Input darueber */
    .form-row { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Abbinder unter dem Automations-Kartendeck — führt von der Startseite in den
   Digital-Bereich. Auf /digital/ selbst wird er nicht gerendert. */
.automation-cta {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.automation-cta p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 60ch;
    margin: 0;
}

@media (max-width: 640px) {
    .automation-cta { flex-direction: column; align-items: flex-start; }
    .automation-cta .btn { width: 100%; text-align: center; justify-content: center; }
}
