/* =============================================================================
   Egasoft UG — Design System  ·  BRUTAL PAPER ZINE
   off-white paper · black ink · red highlighter #E63946 · yellow #FFE14D
   hard edges · thick borders · offset shadows (no blur) · sticker tilts
   -----------------------------------------------------------------------------
   This file mirrors the EXACT class/ID structure of egasoft.css and re-skins
   every selector in the Zine look. JS-coupled states (.scrolled, .is-open,
   .is-visible, [data-reveal]) are preserved byte-for-byte in behaviour.
   ============================================================================= */

/* ---------- Fonts (lokal gehostet unter /assets/fonts/ — kein Remote-Load von Google, DSGVO) ---------- */
/* Archivo variable (400-900) — latin-ext */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/fonts/archivo-variable-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;
}
/* Archivo variable (400-900) — latin */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/fonts/archivo-variable-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;
}
/* Archivo Black 400 — latin-ext */
@font-face {
    font-family: 'Archivo Black';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/archivo-black-400-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;
}
/* Archivo Black 400 — latin */
@font-face {
    font-family: 'Archivo Black';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/archivo-black-400-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;
}
/* Space Mono 400 italic — latin-ext */
@font-face {
    font-family: 'Space Mono';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/space-mono-400-italic-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;
}
/* Space Mono 400 italic — latin */
@font-face {
    font-family: 'Space Mono';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/space-mono-400-italic-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;
}
/* Space Mono 400 — latin-ext */
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/space-mono-400-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;
}
/* Space Mono 400 — latin */
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/space-mono-400-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;
}
/* Space Mono 700 — latin-ext */
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/space-mono-700-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;
}
/* Space Mono 700 — latin */
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/space-mono-700-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;
}

/* ---------- CSS Reset (minimal) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Design Tokens — Zine override ---------- */
:root {
    /* Colors — off-white paper base */
    --bg: #F4F1E9;
    --bg-elev: #FFFFFF;
    --bg-mute: #EBE7DB;
    --bg-dark: #111110;
    --bg-darker: #0a0a0a;

    --text: #111110;
    --text-body: #2b2b28;
    --text-muted: #555555;
    --text-faint: #888888;
    --text-on-dark: #F4F1E9;
    --text-on-dark-mute: #bbbbbb;

    --border: #111110;
    --border-strong: #111110;
    --border-dark: #000000;

    /* Brand — signal red, flat (no gradient) */
    --brand: #E63946;
    --brand-bright: #E63946;
    --brand-on: #FFFFFF;
    --brand-grad: #E63946;          /* flat — gradients break the zine look */
    --brand-soft: #FFE14D;          /* yellow highlighter */
    --red-dk: #b51f2c;
    --hi: #FFE14D;
    --ink: #111110;        /* von Datepicker/Modals via var(--ink, …) erwartet — war nie definiert */
    --ink-soft: #2b2b28;

    /* Semantic */
    --success: #1c7c3a;
    --warning: #b45309;
    --error: #b51f2c;

    /* Typography */
    --font-display: 'Archivo Black', system-ui, sans-serif;
    --font-body: 'Archivo', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;

    /* Spacing — unchanged from egasoft.css */
    --max-w: 1240px;
    --max-w-narrow: 880px;
    --max-w-prose: 680px;
    --gutter: clamp(20px, 5vw, 48px);
    --section-y: clamp(72px, 12vh, 128px);

    /* Radius — hard edges */
    --r-sm: 0;
    --r: 2px;
    --r-lg: 2px;
    --r-xl: 2px;

    /* Shadow — offset, no blur */
    --shadow-sm: 2px 2px 0 #111110;
    --shadow: 4px 4px 0 #111110;
    --shadow-lg: 6px 6px 0 #111110;

    /* Transitions */
    --t-fast: 0.12s ease;
    --t: 0.14s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout-Konstanten */
    --header-h: 64px;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

/* paper grain overlay — subtle, multiply blend */
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

::selection { background: var(--brand); color: #fff; }

/* ---------- Typography ---------- */
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.02em; text-transform: uppercase; color: var(--text); }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.5vw, 48px); line-height: 1; letter-spacing: -0.015em; text-transform: uppercase; color: var(--text); }
h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text); }
h4 { font-family: var(--font-body); font-weight: 900; font-size: 18px; line-height: 1.2; text-transform: uppercase; letter-spacing: -0.005em; color: var(--text); }
h5 { font-family: var(--font-mono); font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--text); text-transform: uppercase; letter-spacing: 0.12em; }

p { line-height: 1.65; color: var(--text-body); }
p + p { margin-top: 1em; }
strong { color: var(--text); font-weight: 900; }
em { font-style: italic; }
code, kbd {
    font-family: var(--font-mono); font-size: 0.9em;
    background: var(--bg-dark); color: var(--text-on-dark);
    padding: 2px 6px; border-radius: 0;
}

/* Eyebrow — Space Mono uppercase label with red bar */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--text);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: ""; width: 26px; height: 4px; background: var(--brand);
}
.eyebrow-num {
    color: var(--brand-on);
    background: var(--brand);
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
    padding: 2px 8px;
    display: inline-block;
    transform: rotate(-3deg);
}

/* Lead paragraph */
.lead {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.6;
    color: var(--text-body);
    max-width: 60ch;
    border-left: 5px solid var(--brand);
    padding-left: 16px;
}

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

section { padding: var(--section-y) 0; }
section + section { padding-top: 0; }
/* Nach dem Hero/Page-Hero (mit Trennstrich) braucht die folgende Sektion oben Luft,
   sonst klebt sie direkt am Strich. */
.hero + section,
.page-hero + section { padding-top: clamp(48px, 7vw, 88px); }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Editorial section header */
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { color: var(--text-body); }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px;
    font-family: var(--font-mono); font-size: 14px; font-weight: 700;
    line-height: 1; letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 0;
    border: 3px solid var(--ink, #111110);
    background: var(--bg-dark);
    color: var(--text-on-dark);
    box-shadow: var(--shadow);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}
.btn svg { width: 16px; height: 16px; stroke-width: 2.5; }
.btn:hover { transform: translate(2px, 2px); box-shadow: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }

.btn-primary {
    background: var(--brand);
    color: var(--text-on-dark);
    border-color: var(--border);
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: var(--red-dk);
    color: #fff;
    transform: translate(2px, 2px);
    box-shadow: none;
}
.btn-primary:active { transform: translate(4px, 4px); box-shadow: none; }
.btn-primary:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.btn-ghost {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow);
}
.btn-ghost:hover { background: var(--brand-soft); color: var(--text); transform: translate(2px, 2px); box-shadow: none; }
.btn-ghost:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.btn-link {
    padding: 0;
    background: transparent;
    color: var(--text);
    border: none;
    border-bottom: 3px solid var(--brand);
    border-radius: 0;
    padding-bottom: 2px;
    box-shadow: none;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
}
.btn-link:hover { color: var(--brand); transform: translateX(4px); box-shadow: none; }

/* ---------- Cards ---------- */
.card {
    background: var(--bg-elev);
    border: 3px solid var(--border);
    border-radius: 0;
    padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow);
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--brand); }

/* ---------- Forms ---------- */
.form-row { display: grid; gap: 8px; margin-bottom: 24px; }
.form-row label {
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700; color: var(--text);
    text-transform: uppercase; letter-spacing: 0.1em;
    display: inline-flex; align-items: center; gap: 6px;
}
.form-row label .req { color: var(--brand); font-weight: 700; }
.form-row .hint { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; padding: 12px 14px;
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 15px; color: var(--text);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--shadow);
}
.form-row textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field-error {
    color: var(--error); font-size: 13px; font-weight: 700;
    font-family: var(--font-mono); margin-top: 6px; display: block;
}
.form-row input.field-error, .form-row textarea.field-error, .form-row select.field-error {
    border-color: var(--error); color: var(--text);
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-body); line-height: 1.5; }
.form-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; border-radius: 0; }

/* Formular-Status — zentral für kontakt/termin/bewerbung (vorher 3x als Inline-Style kopiert) */
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea { border-color: var(--error); }
input.error, select.error, textarea.error { border-color: var(--error); }
.form-row .field-error { color: var(--error); font-size: 13px; margin-top: 4px; }
.field-error:empty { display: none; }
.form-section { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-section:first-of-type { margin-top: 0; }
.hp-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Site Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    border-bottom: 3px solid var(--border);
    transition: border-color var(--t-fast);
    /* WICHTIG: KEIN backdrop-filter hier — sonst werden fixed-children (Mobile-Nav)
       relativ zum Header positioniert statt zum Viewport. */
}
.site-header.scrolled {
    background: var(--bg);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 0 var(--brand);
}
.site-header-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--gutter);
    height: var(--header-h);
}
.site-logo {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text);
    font-family: var(--font-display); font-weight: 400; font-size: 16px;
    letter-spacing: -0.01em; text-transform: uppercase;
}
.site-logo img { height: 38px; width: auto; display: block; }
.footer-brand .site-logo img { height: 44px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text);
    border: 2px solid transparent;
    border-radius: 0;
    transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.site-nav a:not(.btn):hover { color: var(--text-on-dark); background: var(--bg-dark); transform: rotate(-2deg); }
.site-nav a.is-active:not(.btn) { color: var(--text-on-dark); background: var(--bg-dark); }

/* Button im Header */
.site-nav a.btn { margin-left: 8px; padding: 10px 18px; font-size: 13px; box-shadow: 3px 3px 0 var(--border); }
.site-nav a.btn:hover { transform: translate(2px, 2px); box-shadow: none; }
.site-nav a.btn-primary { color: var(--text-on-dark); background: var(--brand); border-color: var(--border); }
.site-nav a.btn-primary:hover { background: var(--bg-dark); color: var(--text-on-dark); }

.mobile-toggle {
    display: none;
    padding: 8px; border-radius: 0;
    color: var(--text);
    border: 2px solid var(--border);
    background: var(--brand-soft);
    position: relative; z-index: 101;
}
.mobile-toggle:hover { background: var(--brand); color: var(--text-on-dark); }
.mobile-toggle svg { display: block; }

@media (max-width: 900px) {
    .site-nav { display: none; }
    .mobile-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px;
    }
    .site-nav.is-open {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        background: var(--bg);
        padding: 32px var(--gutter) 48px;
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 99;
        border-top: 3px solid var(--border);
        animation: navSlideDown 0.2s ease;
    }
    .site-nav.is-open a {
        padding: 18px 4px;
        font-family: var(--font-mono);
        font-size: 17px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text);
        border: none;
        border-bottom: 2px solid var(--border);
        border-radius: 0;
        background: transparent !important;
        transform: none !important;
    }
    .site-nav.is-open a.btn {
        margin-top: 28px;
        align-self: flex-start;
        padding: 14px 26px;
        font-size: 14px;
        border: 3px solid var(--border);
        box-shadow: var(--shadow);
    }
    .site-nav.is-open a.btn-primary {
        background: var(--brand) !important;
        color: var(--text-on-dark) !important;
        border-color: var(--border);
    }
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(72px, 14vh, 160px) 0 clamp(72px, 12vh, 128px);
    background: var(--bg);
    position: relative; overflow: hidden;
    border-bottom: 3px solid var(--border);
}
.hero-grid {
    display: grid; grid-template-columns: 1.55fr 0.9fr;
    gap: clamp(40px, 8vw, 96px); align-items: start;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }
.hero h1 { margin-bottom: 24px; }
/* .accent = red highlighter box (NOT gradient-clip) */
.hero h1 .accent {
    display: inline-block;
    background: var(--brand);
    color: var(--text-on-dark);
    padding: 0.04em 0.16em 0.1em;
    box-shadow: 4px 4px 0 var(--border);
    transform: rotate(-2deg);
    line-height: 1.05;
    font-style: normal;
    font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
/* hero-side as bordered sticker cards */
.hero-side {
    border-left: none;
    padding-left: 0;
}
@media (max-width: 900px) { .hero-side { border-left: none; padding-left: 0; border-top: none; padding-top: 8px; margin-top: 16px; } }
.hero-side dl { display: grid; gap: 18px; }
.hero-side dt {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--brand);
    margin-bottom: 6px; /* pair dt above its dd: pull dt onto the card */
}
.hero-side dd {
    font-family: var(--font-body); font-weight: 700;
    font-size: 15px; color: var(--text); line-height: 1.25;
    border: 3px solid var(--border);
    background: var(--bg-elev);
    padding: 16px 18px 12px;
    box-shadow: 5px 5px 0 var(--border);
}
.hero-side dd:nth-of-type(odd) { transform: rotate(1deg); }
.hero-side dd:nth-of-type(even) { transform: rotate(-1.5deg); }

/* ---------- Services ---------- */
.service {
    position: relative;
    padding: 32px 0;
    border-top: 3px solid var(--border);
    display: grid; grid-template-columns: 80px 1fr 1fr; gap: 32px; align-items: start;
    transition: padding var(--t-fast), background var(--t-fast);
}
.service:last-child { border-bottom: 3px solid var(--border); }
.service:hover { padding-left: 16px; background: var(--bg-mute); }
.service-num {
    font-family: var(--font-display); font-size: 36px; line-height: 0.8;
    color: var(--bg);
    -webkit-text-stroke: 2px var(--border);
    letter-spacing: 0; padding-top: 2px;
}
.service:hover .service-num { color: var(--brand); -webkit-text-stroke: 2px var(--brand); }
.service h3 { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 32px); margin: 0; text-transform: uppercase; }
.service p { margin: 0; color: var(--text-body); }
@media (max-width: 700px) {
    .service { grid-template-columns: 1fr; gap: 8px; }
    .service-num { font-size: 28px; }
}

/* ---------- Stats / Trust ---------- */
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    border: 3px solid var(--border);
    background: var(--border);
}
.stat { padding: 32px 24px; border-right: 3px solid var(--border); background: var(--bg-elev); text-align: center; }
.stat:last-child { border-right: none; }
.stat:nth-child(2) { background: var(--brand); color: var(--text-on-dark); }
.stat-num {
    font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 400;
    color: var(--text); line-height: 0.9; letter-spacing: -0.03em;
}
.stat:nth-child(1) .stat-num { color: var(--brand); }
.stat:nth-child(2) .stat-num { color: var(--text-on-dark); }
.stat-label {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-body); margin-top: 12px; line-height: 1.4;
}
.stat:nth-child(2) .stat-label { color: var(--text-on-dark); }
@media (max-width: 700px) {
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 3px solid var(--border); }
    .stat:last-child { border-bottom: none; }
}

/* ---------- Process Steps ---------- */
.steps { display: grid; gap: 16px; }
.step {
    display: grid; grid-template-columns: 64px 1fr; gap: 24px;
    padding: 28px 0; border-bottom: 3px solid var(--border);
    align-items: start;
    transition: background var(--t-fast);
}
.step:last-child { border-bottom: none; }
.step:hover { background: var(--brand-soft); }
.step-num {
    font-family: var(--font-display);
    font-size: 30px; font-weight: 400;
    background: var(--bg-dark); color: var(--text-on-dark);
    line-height: 1;
    letter-spacing: -0.02em;
    padding: 6px 10px;
    display: inline-block;
    transform: rotate(-3deg);
    align-self: start;
    width: fit-content;
}
.step:nth-child(even) .step-num { background: var(--brand); transform: rotate(3deg); }
.step h4 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-bottom: 8px; color: var(--text); text-transform: uppercase; }
.step p { color: var(--text-body); font-size: 15px; }

/* ---------- CTA Block ---------- */
.cta-block {
    background: var(--brand);
    color: var(--text-on-dark);
    border: 3px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 64px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-block h2 { color: var(--text-on-dark); margin-bottom: 16px; }
.cta-block h2 mark { background: var(--bg-dark); color: var(--text-on-dark); padding: 0 0.1em; }
.cta-block p { color: var(--text-on-dark); max-width: 56ch; margin: 0 auto 32px; }
.cta-block .btn-primary {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    border-color: var(--border);
    box-shadow: 6px 6px 0 var(--bg);
}
.cta-block .btn-primary:hover { background: var(--bg); color: var(--text); transform: translate(2px, 2px); box-shadow: none; }
.cta-block .btn-ghost {
    color: var(--text-on-dark);
    border-color: var(--text-on-dark);
    background: transparent;
    box-shadow: 6px 6px 0 var(--bg);
}
.cta-block .btn-ghost:hover { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--text-on-dark); transform: translate(2px, 2px); box-shadow: none; }

/* ---------- Team-Profile (mit Akkordeons) ---------- */
.team-profile {
    max-width: 760px;
    margin: 0 auto;
}
.team-profile + .team-profile { margin-top: clamp(56px, 8vw, 96px); }

.team-profile-card {
    background: var(--bg-elev);
    border: 3px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 48px);
    text-align: center;
    position: relative;
    /* overflow: visible — Avatar-Badge nicht abschneiden */
}
/* topbar — red bar instead of gradient */
.team-profile-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: var(--brand);
    border-radius: 0;
}

.team-photo-circle {
    width: 140px; height: 140px;
    border-radius: 50%;
    margin: 0 auto 36px;
    background: var(--brand);
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 44px;
    text-transform: uppercase;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--border);
    box-shadow: 5px 5px 0 var(--border);
    position: relative;
    /* KEIN overflow:hidden — Badge nicht abschneiden */
}
/* Versatz-Schatten nur bei Initialen-Platzhaltern — bei echten Fotos wirkt er verschoben */
.team-photo-circle.has-photo { box-shadow: none; }
.team-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.team-photo-circle:not(.has-photo)::after {
    content: "Foto folgt";
    position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text); background: var(--brand-soft);
    padding: 4px 10px; border-radius: 0;
    border: 2px solid var(--border);
    white-space: nowrap;
}

.profile-badge {
    display: inline-block;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text);
    background: var(--brand-soft);
    border: 2px solid var(--border);
    padding: 6px 14px; border-radius: 0;
    margin-bottom: 16px;
    transform: rotate(-2deg);
}

.team-profile-name {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 400;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.team-profile-intro {
    color: var(--text-body);
    font-size: 16px; line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 24px;
}

.profile-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-bottom: 28px;
}
.profile-meta-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700; color: var(--text);
    text-transform: uppercase; letter-spacing: 0.04em;
    background: var(--bg-mute);
    border: 2px solid var(--border);
    padding: 6px 12px; border-radius: 0;
}
.profile-meta-tag svg { width: 13px; height: 13px; color: var(--brand); }

.profile-contact-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text);
    background: var(--bg);
    border: 3px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.profile-contact-btn:hover { background: var(--brand-soft); transform: translate(2px, 2px); box-shadow: none; }

.team-profile-expanded {
    margin-top: 36px;
}
.team-profile-expanded-head {
    text-align: center; margin-bottom: 20px;
}
.team-profile-expanded-head .eyebrow {
    justify-content: center;
    margin-bottom: 6px;
}
.team-profile-expanded-head .eyebrow::before { display: none; }
.team-profile-expanded-head h4 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.team-profile .faq details summary {
    font-size: clamp(15px, 1.8vw, 17px);
    font-family: var(--font-body);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
}
.team-profile .faq .faq-body {
    font-size: 15px;
    color: var(--text-body);
    max-width: none;
}
.team-profile .faq .faq-body p + p { margin-top: 12px; }
.team-profile .faq .faq-body ul { margin: 0; padding-left: 20px; line-height: 1.7; }
.team-profile .faq .faq-body ul li + li { margin-top: 8px; }

/* ---------- Job-Liste (Karriere) ---------- */
.jobs { display: grid; gap: 0; border-top: 3px solid var(--border); }
.job {
    display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center;
    padding: 28px 0; border-bottom: 3px solid var(--border);
    transition: padding var(--t-fast), background var(--t-fast);
}
.job:hover { padding-left: 16px; background: var(--bg-mute); }
.job h3 { font-family: var(--font-display); font-size: 22px; margin: 0; text-transform: uppercase; }
.job-meta {
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    color: var(--text-body); text-transform: uppercase; letter-spacing: 0.08em;
}
.job a.btn { padding: 9px 18px; font-size: 12px; box-shadow: 3px 3px 0 var(--border); }
.job a.btn:hover { transform: translate(2px, 2px); box-shadow: none; }
@media (max-width: 700px) {
    .job { grid-template-columns: 1fr; gap: 8px; }
    .job a.btn { justify-self: start; margin-top: 12px; }
}

/* ---------- FAQ / Accordion (Zine) ---------- */
.faq details {
    border: 3px solid var(--border);
    background: var(--bg-elev);
    box-shadow: var(--shadow);
    padding: 0;
    margin-bottom: 16px;
    transition: box-shadow var(--t), transform var(--t);
}
.faq details[open] { box-shadow: 6px 6px 0 var(--brand); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    cursor: pointer; list-style: none;
    padding: 20px 22px;
    font-family: var(--font-display); font-size: clamp(16px, 2vw, 20px);
    text-transform: uppercase; letter-spacing: -0.01em;
    color: var(--text); transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
    content: "+";
    flex: 0 0 auto;
    font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-dark); color: var(--text-on-dark);
    transition: transform var(--t), background var(--t);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); }
.faq details summary:hover { color: var(--brand); }
.faq .faq-body {
    padding: 0 22px 22px;
    color: var(--text-body); max-width: 60ch;
    border-top: 3px solid var(--border);
    padding-top: 18px;
}

/* ---------- Slot Picker (Termin) ---------- */
.slot-day { margin-bottom: 32px; }
.slot-day-label {
    font-family: var(--font-display); font-size: 20px; margin-bottom: 12px;
    color: var(--text); text-transform: uppercase;
}
.slot-list { display: flex; flex-wrap: wrap; gap: 10px; }
.slot {
    padding: 10px 18px; font-family: var(--font-mono); font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    border: 2px solid var(--border); border-radius: 0;
    background: var(--bg-elev); color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.slot:hover { background: var(--brand-soft); color: var(--text); transform: translate(2px, 2px); box-shadow: none; }

/* ---------- Alert ---------- */
.alert {
    padding: 14px 18px; border-radius: 0;
    font-size: 14px; font-weight: 700;
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    font-family: var(--font-body);
}
.alert-success { background: var(--success); border-color: var(--border); color: #fff; }
.alert-error { background: var(--error); border-color: var(--border); color: #fff; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    padding: clamp(72px, 14vh, 128px) 0 clamp(40px, 6vw, 64px);
    border-bottom: 3px solid var(--border);
}
.page-hero .eyebrow { color: var(--text); }
.page-hero h1 { max-width: 18ch; margin-bottom: 20px; }
.page-hero .lead { max-width: 56ch; }

/* ---------- Site Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: clamp(64px, 8vw, 96px) 0 32px;
    margin-top: clamp(80px, 12vw, 160px);
    border-top: 3px solid var(--border);
}
.site-footer a { color: var(--text-on-dark); transition: color var(--t-fast), transform var(--t-fast); }
.site-footer a:hover { color: var(--brand-soft); }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 56px; border-bottom: 2px solid #3a3a36;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .site-logo { color: var(--text-on-dark); margin-bottom: 16px; }
.footer-brand p { color: var(--text-on-dark-mute); font-size: 14px; max-width: 36ch; line-height: 1.55; }
.footer-col h5 {
    color: var(--brand);
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.16em;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-family: var(--font-mono); font-size: 13px; color: var(--text-on-dark-mute); display: inline-block; }
.footer-col a:hover { color: var(--brand-soft); transform: translateX(4px); }
.footer-bottom {
    margin-top: 32px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-family: var(--font-mono); font-size: 12px; color: var(--text-on-dark-mute);
    letter-spacing: 0.04em; flex-wrap: wrap;
}

/* ---------- Legal (Fließtext: Impressum / Datenschutz) ---------- */
.legal { max-width: var(--max-w-prose); color: var(--text-body); line-height: 1.7; }
.legal h2 {
    font-family: var(--font-display); text-transform: uppercase;
    font-size: clamp(22px, 3vw, 30px); line-height: 1.05;
    margin: 40px 0 16px; color: var(--text);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
    font-family: var(--font-display); text-transform: uppercase;
    font-size: clamp(18px, 2.2vw, 22px); line-height: 1.1;
    margin: 28px 0 12px; color: var(--text);
}
.legal h4 {
    font-family: var(--font-body); font-weight: 900; text-transform: uppercase;
    font-size: 16px; margin: 22px 0 10px; color: var(--text);
}
.legal p { margin-bottom: 14px; color: var(--text-body); }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 24px; }
.legal ul { list-style: square; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 8px; line-height: 1.65; }
.legal li::marker { color: var(--brand); }
.legal a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--brand);
    text-underline-offset: 2px;
    font-weight: 700;
}
.legal a:hover { color: var(--brand); }
.legal strong { color: var(--text); font-weight: 900; }

/* ---------- Skip link / a11y ---------- */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand); color: #fff;
    font-family: var(--font-mono); font-weight: 700; text-transform: uppercase;
    padding: 12px 18px; z-index: 200; border: 3px solid var(--border); border-radius: 0;
}
.skip-link:focus { left: 0; }

/* ---------- Reveal-on-scroll (JS-coupled — DO NOT change behaviour) ---------- */
[data-reveal] {
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============ DATE-PICKER (application.js, Bewerbung "Verfügbar ab") — Zine-Stil ============ */
/* JS hängt .date-picker-popover an <body> und togglet .open; braucht position:absolute + default hidden. */
.date-picker-popover{
  position:absolute; z-index:1000; display:none;
  background:var(--bg-elev); color:var(--text);
  border:3px solid var(--ink, #111110);
  border-radius:0; box-shadow:6px 6px 0 var(--ink, #111110);
  padding:14px; width:300px; max-width:calc(100vw - 24px);
  font-family:var(--font-body);
}
.date-picker-popover.open{ display:block; }
.date-picker-header{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.date-picker-nav{
  flex:0 0 auto; width:34px; height:34px; cursor:pointer;
  background:var(--bg); color:var(--text);
  border:2px solid var(--ink, #111110); border-radius:0;
  font-size:18px; font-weight:700; line-height:1;
  display:flex; align-items:center; justify-content:center;
  transition:transform .1s, box-shadow .1s;
}
.date-picker-nav:hover{ background:var(--brand); color:var(--brand-on); }
.date-picker-current{ flex:1 1 auto; display:flex; gap:6px; }
.date-picker-month-select,
.date-picker-year-select{
  flex:1 1 auto; padding:7px 8px;
  background:var(--bg); color:var(--text);
  border:2px solid var(--ink, #111110); border-radius:0;
  font-family:var(--font-mono); font-size:13px; font-weight:700;
  text-transform:uppercase; cursor:pointer;
}
.date-picker-month-select:focus,
.date-picker-year-select:focus{ outline:none; border-color:var(--brand); }
.date-picker-weekdays{
  display:grid; grid-template-columns:repeat(7,1fr); gap:2px; margin-bottom:4px;
}
.date-picker-weekdays span{
  text-align:center; font-family:var(--font-mono); font-size:11px;
  font-weight:700; text-transform:uppercase; color:var(--text-muted); padding:4px 0;
}
.date-picker-grid{
  display:grid; grid-template-columns:repeat(7,1fr); gap:2px;
}
.date-picker-day{
  aspect-ratio:1/1; min-height:34px; cursor:pointer;
  background:var(--bg); color:var(--text);
  border:1.5px solid var(--ink, #111110); border-radius:0;
  font-family:var(--font-mono); font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  transition:background .1s, color .1s;
}
.date-picker-day:hover{ background:var(--brand-soft, #FFE14D); }
.date-picker-day.is-selected,
.date-picker-day[aria-selected="true"]{ background:var(--brand); color:var(--brand-on); }
.date-picker-day.is-today{ outline:2px solid var(--brand); outline-offset:-3px; }
.date-picker-day:disabled,
.date-picker-day.is-outside{ background:transparent; border-color:transparent; cursor:default; color:var(--text-faint); }

/* Date-Input mit Kalender-Button (Bewerbung) */
.date-input-wrap{ position:relative; display:flex; align-items:stretch; }
.date-input-wrap input{ flex:1 1 auto; }
.date-trigger-btn{
  flex:0 0 auto; margin-left:-2px;
  width:48px;
  background:var(--brand); color:var(--brand-on);
  border:2px solid var(--ink, #111110); border-radius:0;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:filter .12s;
}
.date-trigger-btn:hover{ filter:brightness(.92); }
.date-trigger-btn svg{ width:20px; height:20px; }

/* ============ MOBILE OVERFLOW FIXES (schmale Phones bis 320px) ============ */
/* 1) Lange deutsche Wörter / URLs umbrechen statt Box sprengen (impressum, datenschutz, team) */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, p, a, li, dd, dt, .lead, .job h3, .service h3, .team-profile-name { overflow-wrap: anywhere; }
/* 2) Grid-Items dürfen unter ihre Inhaltsbreite schrumpfen (sonst sprengen Cards das Grid) */
.grid > *, .grid-2 > *,
.jobs > *, .service, .card, .step, .split > *, .stats > * { min-width: 0; }
/* 3) Buttons auf sehr schmalen Screens umbrechen lassen statt nowrap-Overflow */
@media (max-width: 380px) {
  .btn { white-space: normal; }
}
/* 4) Letzte Sicherung: nichts ragt horizontal über den Viewport */
html, body { max-width: 100%; }
