/* Generated by tools/critical-css/run.sh from main, nav, consent.css — do not edit, edit the sources. */
/* ── main.css ── */
/* ══════════════════════════════════════════════════════════════
   BnK Group — Dark Theme
   Clean. Modern. Apple-like.
   ══════════════════════════════════════════════════════════════ */

/* ── Inter lokal: @font-face steht seit 2026-12-01 inline in inc/header.php ──
   Grund: das kritische CSS im <head> und dieses Stylesheet am Ende von <body>
   hätten die Schrift zweimal deklariert. Eine zweite Deklaration ist eine
   eigene Schriftfläche, die der Browser erneut auflöst — der Text kann dabei
   kurz in die Ersatzschrift springen. */

/* ── 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;
    /* #666666 ergab auf #0a0a0a nur 3,45:1 — WCAG AA verlangt 4,5:1.
       #7d7d7d reichte zwar auf #0a0a0a (4,81:1), kippte aber auf den
       Kartenflaechen der Ganzseiten-Canvas (#16161a) auf 4,38:1.
       #8a8a8a haelt 4,5:1 mit Reserve bis #161620 (5,16:1) und liegt auf
       #0a0a0a bei 5,69:1. Flaechen darueber (Device-Bar, Consent-Karten)
       brauchen weiterhin einen eigenen Wert. */
    --text-tertiary: #8a8a8a;
    --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', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Inter Fallback', -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;
}

/* Nicht umbrechbare Zeichenketten (E-Mail-Adressen, URLs, Tabellenwerte)
   schoben auf schmalen Geraeten die ganze Seite seitlich heraus. break-word
   greift nur, wenn so ein Wort allein nicht in die Zeile passt.
   Bewusst NICHT auf p/h1-h6: dort wuerde ein deutsches Kompositum mitten im
   Wort brechen. Die wenigen Stellen, an denen das vorkommt, tragen gezielt
   hyphens: auto (Rechtstexte, .contact-info h2, .dg-hero-title,
   .dg-principle p). */
a, code, kbd, samp, td, th {
    overflow-wrap: break-word;
}

/* ── 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 "Stripe Gradient Bunt" Effect ──────────────────── */

/* Grain removed */

/* 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-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-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);
}

@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;
}

/* :focus-within haelt das Band auch bei Tastaturbedienung an, sobald ein
   Element im Band den Fokus bekommt (WCAG 2.2.2) */
.logo-marquee-track:hover,
.logo-marquee-track:focus-within {
    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);
}

/* 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);
}

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

.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-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-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);
}

/* Kein opacity: das dimmt auch den Fokusring mit und "Vorherige Referenz" war
   damit der einzige schwache Fokusring im ganzen Tab-Durchlauf. Stattdessen
   nur Farbe und Rand daempfen — optisch derselbe Ruhezustand, der Outline
   bleibt voll deckend. */
.slider-btn:disabled,
.slider-btn[aria-disabled="true"] {
    color: rgba(153, 153, 153, 0.34);
    border-color: rgba(255, 255, 255, 0.045);
    cursor: default;
}

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

/* ══════════════════════════════════════════════════════════════
   ÜBER UNS (About)
   ══════════════════════════════════════════════════════════════ */

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

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

.contact-grid {
    display: grid;
    /* minmax(0, …) statt 1fr: sonst zieht die Mindestbreite des laengsten
       Wortes in der Ueberschrift ("zusammenarbeiten") die Spalte auf und die
       Seite scrollt seitlich. Ab 769px identisch zu 1fr. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
}

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

/* "zusammenarbeiten." passt bei 320px in keine Zeile — mit Trennstrich statt
   hartem Bruch mitten im Wort. */
@media (max-width: 480px) {
    .contact-info h2 {
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

.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);
    /* nicht --border-subtle (6% Weiss = 1,2:1 gegen die Feldflaeche): WCAG
       1.4.11 verlangt 3:1 fuer die Begrenzung eines Bedienelements, und die
       Feldflaeche selbst hebt sich mit 1,06:1 nicht vom Grund ab */
    border: 1px solid rgba(255, 255, 255, 0.36);
    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 {
    /* eigener Wert statt --text-tertiary: die Feldflaeche #161616 ist heller
       als der Seitengrund, dort reicht #7d7d7d nicht fuer 4,5:1 */
    color: #858585;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    /* --border-strong (15%) waere schwaecher als der Ruhezustand (36%) */
    border-color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    border-color: rgba(255, 255, 255, 0.45);
    /* gleicher Ring wie global (main.css, Abschnitt ACCESSIBILITY) */
    outline: 2px solid rgba(255, 255, 255, 0.7);
    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;
    /* minmax(0, …): sonst haelt die Mindestbreite der Brand-Zeile (Logo +
       Text) die Spalten auf und der Footer schob die Seite seitlich heraus. */
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand,
.footer-col {
    min-width: 0;
}

/* 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;
}

/* Der Textblock neben dem Logo muss schrumpfen duerfen — ohne min-width: 0
   bleibt ein Flex-Item so breit wie sein laengstes Wort. */
.footer-brand-row > * {
    min-width: 0;
}

.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;
    gap: 1rem 2rem;
    /* Ohne Umbruch schob die Linkzeile auf schmalen Geräten die ganze Seite
       seitlich heraus, sobald ein Link dazukam. */
    flex-wrap: wrap;
    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;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    min-width: 0;
}

/* phone numbers never break mid-number — the line wraps before them */
.footer-tel {
    white-space: nowrap;
}

.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;
}

/* Rechtstexte duerfen inhaltlich nicht angefasst werden — die langen
   Komposita ("Geschaeftsbedingungen", "Datenschutzerklaerung") schoben die
   Seite unter 400px seitlich heraus. Trennung per CSS statt per Text.
   html lang="de-DE" liefert die Trennstellen. */
@media (max-width: 480px) {
    .legal-page .legal-container {
        hyphens: auto;
        -webkit-hyphens: auto;
        overflow-wrap: anywhere;
    }
}

.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) {

    .contact-grid {
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem;
    }
}

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

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .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: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem 1.5rem;
    }

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

    .footer-bottom {
        /* legal links above, copyright as the very last line (JK) */
        flex-direction: column-reverse;
        gap: 1rem;
        text-align: center;
    }
}

/* Sehr schmale Phones: zwei Footer-Spalten sind hier nur noch 128px breit —
   "GESCHAEFTSFELDER" und "info@bnkgroup.de" wuerden mitten im Wort brechen.
   Ab 360px bleibt es beim zweispaltigen Footer. */
@media (max-width: 359px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   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;
    }

    /* Der globale 0.01ms-Block friert nicht ein, er laesst die Animation
       einmal bis zum Endzustand durchlaufen. Fuer das Laufband heisst das:
       nur explizites animation: none haelt es wirklich still. */
    .logo-marquee-track {
        animation: none;
    }
}

/* ════════════════════════════════════════════════════════════
   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; }

@media (prefers-reduced-motion: reduce) {
    .scroll-progress { transition: none; }
    #gradient-canvas { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   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 .container { position: relative; }

.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;
}

/* ── 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). */
.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); }
}
.ab-n1 { animation: bnk-as-node 4.5s ease-in-out infinite; }
.ab-n2 { animation: bnk-as-node 4.5s ease-in-out infinite; animation-delay: -1.5s; }
.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); }
}

/* ══════════════════════════════════════════════════════════════
   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;
        /* Mobil sitzt die Bildunterschrift direkt oben in der Kachel (kein
           3,25rem-Vorlauf wie am Desktop). Dort ist der Desktop-Verlauf noch
           fast durchsichtig — auf hellen Motiven lag die weisse Schrift bei
           2,8:1. Deshalb hier frueher und kraeftiger. */
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.62) 14%,
            rgba(0, 0, 0, 0.82) 60%,
            rgba(0, 0, 0, 0.9) 100%);
    }

    .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;
    /* 0,45 ergab 4,22:1 und liegt mit 23,76px knapp unter der Large-Text-
       Grenze (24px), gilt also der 4,5:1-Schwelle */
    color: rgba(245, 245, 245, 0.5);
    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-header--split .section-description strong {
    font-weight: 600;
    color: var(--text-primary);
}

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

/* 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;
    /* minmax(0, …) statt 1fr: sonst bestimmt die Eigenbreite der Eingabefelder
       die Spaltenbreite, und bei 844–1024 px liefen die Felder auf /events/
       rechts aus der Seite (Seitenbreite 930 statt 844). */
    grid-template-columns: repeat(2, minmax(0, 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; }
}

/* ── nav.css ── */
/**
 * Freistehende Pillen-Navigation.
 *
 * Liegt bewusst in einer eigenen Datei statt in main.css: die Regeln
 * überschreiben die dortigen .site-nav-Vorgaben und werden nach ihr geladen.
 *
 * Verhalten: beim Laden unsichtbar — erst nach dem ersten Scrollen fährt die
 * Pille ein, genau dann, wenn das große Hero-Logo an seine Position wandert
 * (siehe hero-flow.js). Die Einblendung hat deshalb eine kleine Verzögerung,
 * damit das Logo zuerst ankommt.
 */

.site-nav {
    position: fixed;
    top: clamp(0.55rem, 1.5vh, 1rem);
    left: 50%;
    right: auto;
    /* schmaler als der Seiteninhalt — die leeren Zonen neben Logo und
       Kontakt wirkten auf Desktop zu gross (JK 2026-08-01) */
    width: calc(100% - 2 * var(--container-padding));
    max-width: 880px;
    padding: 0;
    z-index: 1000;
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
    transition:
        opacity 0.35s var(--ease-out),
        transform 0.35s var(--ease-out);
}

/* Nur auf der Startseite versteckt, bis gescrollt wird — dort uebernimmt
   zunaechst das grosse Hero-Logo. Auf Unterseiten gibt es kein Hero-Logo, die
   Navigation muss also von Anfang an da sein. */
.home .site-nav {
    opacity: 0;
    transform: translate3d(-50%, -14px, 0);
    pointer-events: none;
}

/* Startseite: die Pille erscheint erst, wenn das Logo hochfliegt (Stufe 2,
   hero-flow.js setzt has-logo) — nicht schon beim ersten Scrollpixel. */
.home .site-nav.has-logo {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
    pointer-events: auto;
    /* Fläche trägt die Pille selbst, nicht die Leiste */
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
    transition:
        opacity 0.4s var(--ease-out) 0.28s,
        transform 0.5s var(--ease-out) 0.28s;
}

.site-nav.is-scrolled {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
}

/* ── Die Pille ───────────────────────────────────────────────────────── */
.site-nav .nav-inner {
    display: flex;
    align-items: center;
    gap: clamp(0.45rem, 1.4vw, 1.1rem);
    width: auto;
    max-width: none;
    margin: 0;
    /* etwas mehr Höhe, damit das BnK-Logo größer stehen kann (JK 2026-08-01) */
    padding: 0.55rem 0.5rem 0.55rem 0.95rem;
    border-radius: 100px;
    border: 1px solid rgba(245, 245, 245, 0.12);
    background: rgba(13, 13, 17, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.site-nav .nav-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    /* ein Stück von der Pillenkante weg (JK 2026-08-01) */
    margin-left: 0.6rem;
    margin-right: 0.15rem;
}

.site-nav .nav-logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* Startseite: das Header-Logo erscheint erst, wenn das Hero-Logo seinen Flug
   antritt (hero-flow.js setzt has-logo) — sonst stuende es doppelt im Bild,
   solange das grosse Logo noch mittig kreist. */
.home .site-nav .nav-logo img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home .site-nav.has-logo .nav-logo img {
    opacity: 1;
    transition: opacity 0.3s ease 0.4s;
}

/* ── Links ───────────────────────────────────────────────────────────── */
.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.45rem, 1.4vw, 1.1rem);
    /* mittig zwischen Logo und Kontakt-Button */
    margin-inline: auto;
    position: static;
    height: auto;
    width: auto;
    background: none;
    flex-direction: row;
    transform: none;
    opacity: 1;
    visibility: visible;
}

.site-nav .nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: rgba(245, 245, 245, 0.72);
    /* luftiger — die aktive/hover-Pille wirkte gequetscht (JK 2026-08-02) */
    padding: calc(0.4rem + 0.7px) 0.85rem calc(0.4rem - 0.7px);
    border-radius: 100px;
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ── Kontakt — der einzige Sprungziel-Link ───────────────────────────── */
.site-nav .nav-cta-btn {
    flex: 0 0 auto;
    padding: calc(0.5rem + 0.7px) 1.05rem calc(0.5rem - 0.7px);
    border-radius: 100px;
    border: 1px solid rgba(245, 245, 245, 0.22);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.site-nav .nav-cta-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(245, 245, 245, 0.38);
}

/* Burger wird nicht mehr gebraucht — die Pille trägt alle Ziele */
.site-nav .nav-toggle { display: none; }

/* ── Fuenf Links (seit 2026-09-07): unterhalb ~820px passt die Reihe nicht
   mehr neben Logo und Kontakt — die Linkzeile scrollt dann horizontal in
   der Pille (ohne Scrollbar, rechte Kante ausgeblendet als Hinweis). ── */
@media (max-width: 820px) {
    .site-nav .nav-links {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-right: 1.25rem;
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.5rem), transparent);
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.5rem), transparent);
    }
    .site-nav .nav-links::-webkit-scrollbar { display: none; }
    .site-nav .nav-links a { flex: 0 0 auto; }
}

/* ── Schmale Viewports: kompakter, damit die Pille einzeilig bleibt ────
   Bei ~390px teilen sich Logo, drei Links und der Kontakt-Button die
   Breite — ohne diese Werte ragt der Button aus der Pille heraus. */
@media (max-width: 620px) {
    .site-nav .nav-inner {
        gap: 0.3rem;
        /* hohe Pille, ohne Kontakt-Button: Links duerfen atmen
           (JK 2026-08-02) */
        padding: 0.9rem 0.6rem;
    }

    .site-nav .nav-logo { margin-left: 0.55rem; margin-right: 0.3rem; }
    .site-nav .nav-logo img { height: 36px; }
    .site-nav .nav-links { gap: 0.45rem; }
    .site-nav .nav-links a { font-size: 0.78rem; padding: calc(0.5rem + 0.7px) 0.65rem calc(0.5rem - 0.7px); letter-spacing: -0.01em; }
    /* Kontakt-Pille entfaellt mobil — Ziel ist ueber Footer/Sektionen erreichbar */
    .site-nav .nav-cta-btn { display: none; }
}

/* Sehr schmale Phones: kompaktere Links, sonst laeuft die Pille ueber */
@media (max-width: 400px) {
    .site-nav .nav-logo { margin-left: 0.35rem; }
    .site-nav .nav-logo img { height: 33px; }
    .site-nav .nav-links { gap: 0.3rem; }
    .site-nav .nav-links a { font-size: 0.74rem; padding: calc(0.5rem + 0.7px) 0.45rem calc(0.5rem - 0.7px); }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav,
    .site-nav.is-scrolled { transition: opacity 0.2s linear; transform: translate3d(-50%, 0, 0); }
}

/* Ohne JS: Logo und Pille zeigt der <noscript><style>-Block in inc/header.php. */

/* ── consent.css ── */
/* ==========================================================================
   Cookie-Consent — BnK Group
   Dark Theme auf den Tokens aus main.css. Ohne eigene Farbwerte, damit ein
   Design-Wechsel hier nichts nachzieht.
   ========================================================================== */

.bnk-consent,
.bnk-consent * {
    box-sizing: border-box;
}

.bnk-consent[hidden],
.bnk-consent-modal[hidden] {
    display: none !important;
}

/* 🔴 Ohne das gewinnt jede eigene display-Regel (z. B. inline-flex am
   Schliessen-Knopf) gegen [hidden] — der Zurueck-Knopf war dadurch in Stufe 1
   unsichtbar, aber per Tab erreichbar. Gilt fuer alles im Consent-Bereich. */
.bnk-consent [hidden],
.bnk-consent-modal [hidden] {
    display: none !important;
}

/* Ohne JavaScript laedt kein Messdienst (consent.js/gtag fehlen), es gibt also
   nichts einzuwilligen — und die Knoepfe des Banners braechten JS, er waere
   nicht schliessbar. Der Server rendert ihn seit 2026-12-01 sichtbar, daher
   hier ausblenden. Das Modal steht ohnehin auf [hidden]; der Link
   „Cookie-Einstellungen“ fuehrt ohne JS zu /datenschutz/#cookies. */
@media (scripting: none) {
    #bnk-consent { display: none !important; }
}

/* --- Erste Ebene: Leiste unten ----------------------------------------- */

.bnk-consent {
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: clamp(12px, 3vw, 28px);
    transform: translateX(-50%) translateY(0);
    width: min(760px, calc(100vw - 24px));
    padding: clamp(20px, 3vw, 28px);
    background: rgba(22, 22, 22, 0.94);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    animation: bnk-consent-in var(--duration-normal) var(--ease-out) both;
}

@keyframes bnk-consent-in {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bnk-consent-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}

.bnk-consent-text {
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
}

.bnk-consent-text a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 1px;
    transition: border-color var(--duration-fast) var(--ease-out);
}

.bnk-consent-text a:hover,
.bnk-consent-text a:focus-visible {
    border-bottom-color: #fff;
}

/* Buttons gleichrangig: Annehmen und Ablehnen sehen gleich aus und stehen
   nebeneinander. Eine hervorgehobene Zustimmung waere nach den EDPB-Leitlinien
   03/2022 keine freie Entscheidung mehr. */
.bnk-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.bnk-consent-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.bnk-consent-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.bnk-consent-btn:focus-visible,
.bnk-consent-link:focus-visible,
.bnk-consent-switch input:focus-visible + .bnk-consent-slider {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.bnk-consent-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
}

.bnk-consent-link {
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
}

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

.bnk-consent-sep {
    color: var(--text-tertiary);
}

/* --- Zweite Ebene: Einstellungen --------------------------------------- */

.bnk-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 4vw, 32px);
}

.bnk-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.bnk-consent-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    font-family: var(--font-body);
    animation: bnk-consent-modal-in var(--duration-normal) var(--ease-out) both;
}

@keyframes bnk-consent-modal-in {
    from { opacity: 0; transform: scale(0.97) translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.bnk-consent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(20px, 3vw, 28px);
    border-bottom: 1px solid var(--border-subtle);
}

.bnk-consent-head h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}

.bnk-consent-close {
    appearance: none;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.bnk-consent-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.bnk-consent-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.bnk-consent-body {
    padding: clamp(16px, 3vw, 24px) clamp(20px, 3vw, 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bnk-consent-cat + .bnk-consent-cat {
    margin-top: 0.75rem;
}

.bnk-consent-cat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.bnk-consent-cat-title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bnk-consent-cat-desc {
    margin: 0;
    font-size: 0.8437rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.bnk-consent-cat-cookies {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    /* eigener Wert statt --text-tertiary: die Kategoriekarte im Dialog ist
       mit #1b1b1b deutlich heller als der Seitengrund */
    color: #888888;
}

/* Schalter */
.bnk-consent-switch {
    flex: 0 0 auto;
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    margin-top: 2px;
}

.bnk-consent-switch input {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.bnk-consent-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border-medium);
    transition: background var(--duration-fast) var(--ease-out);
    pointer-events: none;
}

.bnk-consent-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: transform var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.bnk-consent-switch input:checked + .bnk-consent-slider {
    background: rgba(255, 255, 255, 0.9);
}

.bnk-consent-switch input:checked + .bnk-consent-slider::before {
    transform: translateX(20px);
    background: var(--bg-primary);
}

.bnk-consent-switch input:disabled {
    cursor: not-allowed;
}

.bnk-consent-switch input:disabled + .bnk-consent-slider {
    opacity: 0.55;
}

.bnk-consent-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    padding: clamp(16px, 3vw, 24px) clamp(20px, 3vw, 28px);
    border-top: 1px solid var(--border-subtle);
}

.bnk-consent-foot .bnk-consent-btn-wide {
    grid-column: 1 / -1;
}

/* --- Schmale Bildschirme ----------------------------------------------- */

@media (max-width: 520px) {
    .bnk-consent {
        bottom: 8px;
        width: calc(100vw - 16px);
    }

    .bnk-consent-actions,
    .bnk-consent-foot {
        grid-template-columns: 1fr;
    }

    .bnk-consent-cat {
        flex-direction: row;
        gap: 0.85rem;
    }
}

/* --- Bewegung aus ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .bnk-consent,
    .bnk-consent-dialog {
        animation: none;
    }

    .bnk-consent-btn,
    .bnk-consent-link,
    .bnk-consent-close,
    .bnk-consent-slider,
    .bnk-consent-slider::before {
        transition: none;
    }
}

/* --- Zwei-Stufen-Ablauf im Dialog (Aufbau wie kwiekochkunst.de) --------- */

/* Der Banner traegt jetzt eine einzelne Sammel-Zustimmung; sie darf sich
   deutlich abheben, die Feinauswahl liegt eine Ebene tiefer. */
.bnk-consent-btn-primary {
    background: #f5f5f5;
    border-color: #f5f5f5;
    color: var(--bg-primary);
    font-weight: 600;
}

.bnk-consent-btn-primary:hover {
    background: #fff;
    border-color: #fff;
    color: var(--bg-primary);
}

.bnk-consent-actions {
    /* nur noch ein Knopf — die Zwei-Spalten-Aufteilung entfaellt */
    grid-template-columns: 1fr;
}

.bnk-consent-head-btns {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bnk-consent-foot {
    /* Stufe 1 und 2 stehen untereinander statt nebeneinander */
    grid-template-columns: 1fr;
}

.bnk-consent-picks {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.bnk-consent-pick {
    appearance: none;
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8437rem;
    text-align: left;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.bnk-consent-pick:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.bnk-consent-pick:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.bnk-consent-foot .bnk-consent-links {
    justify-content: center;
    margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .bnk-consent-pick { transition: none; }
}

/* X am Banner — traegt dieselbe Bedeutung wie der Sammelknopf (KwK-Verhalten). */
.bnk-consent { position: fixed; }
.bnk-consent-x {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 30px;
    height: 30px;
    font-size: 1.05rem;
    /* sits 0.85rem inside the banner corner: concentric, not a circle (JK 2026-11-30) */
    border-radius: calc(var(--radius-lg) / 2);
}
