/* ==========================================================================
   ScherStudio — Designsystem
   Farben aus dem Logo: Tinte (Schwarz) + Markenblau, dazu Schiefergrau.
   Hell ist Standard, Dunkel folgt dem System oder dem Umschalter
   (<html data-theme="light|dark">, gespeichert in localStorage).

   Aufbau
   1. Tokens          6. Karten & Raster       11. Formulare
   2. Basis           7. Startseite            12. Karriere & News
   3. Layout          8. Projekte & Produkte   13. Rechtliches
   4. Kopfzeile/Menü  9. Team & Profile        14. Fusszeile & Cookie
   5. Buttons & Tags 10. Preise                15. Animation & Hilfen
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
    --bg: #ffffff;
    --bg-alt: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #f1f3f6;
    --ink: #0b0d12;
    --text: #1d2330;
    --muted: #5d6779;
    --line: #e3e6ec;
    --line-strong: #cfd4dd;
    --brand: #1668f2;
    --brand-hover: #0d55d4;
    --brand-soft: #e9f0fe;
    --brand-ink: #ffffff;
    --success: #12865a;
    --danger: #c9372c;
    --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.06);
    --shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 8px 24px rgba(11, 13, 18, 0.06);
    --shadow-lg: 0 2px 4px rgba(11, 13, 18, 0.04), 0 24px 48px rgba(11, 13, 18, 0.10);
    
    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 68px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Alte Variablennamen — werden noch von Admin-Bereich und Sperrseite genutzt */
    --bg-color: var(--bg);
    --text-color: var(--text);
    --text-color-rgb: 29, 35, 48;
    --accent-color: var(--brand);
    --accent-color-hover: var(--brand-hover);
    --muted-color: var(--muted);
    --card-shadow: rgba(11, 13, 18, 0.10);
    --card-border-hover: var(--line-strong);
    --pill-bg: var(--surface-2);
    --font-main: var(--font);

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a0c10;
        --bg-alt: #0f1217;
        --surface: #12151b;
        --surface-2: #191d25;
        --ink: #f4f6f9;
        --text: #dfe3ea;
        --muted: #8e97a8;
        --line: #232833;
        --line-strong: #323946;
        --brand: #4b8dff;
        --brand-hover: #6aa1ff;
        --brand-soft: rgba(75, 141, 255, 0.12);
        --brand-ink: #ffffff;
        --success: #3ecf8e;
        --danger: #ff7a6e;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
        --text-color-rgb: 223, 227, 234;
        --card-shadow: rgba(0, 0, 0, 0.45);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0a0c10;
    --bg-alt: #0f1217;
    --surface: #12151b;
    --surface-2: #191d25;
    --ink: #f4f6f9;
    --text: #dfe3ea;
    --muted: #8e97a8;
    --line: #232833;
    --line-strong: #323946;
    --brand: #4b8dff;
    --brand-hover: #6aa1ff;
    --brand-soft: rgba(75, 141, 255, 0.12);
    --brand-ink: #ffffff;
    --success: #3ecf8e;
    --danger: #ff7a6e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --text-color-rgb: 223, 227, 234;
    --card-shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

/* 2. Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
p a, .prose li a, .legal-block li a, .link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, .prose li a:hover, .legal-block li a:hover, .link:hover { color: var(--brand-hover); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.022em;
    font-weight: 700;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.012em; }
h4 { font-size: 1rem; letter-spacing: -0.005em; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* 3. Layout --------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section + .section:not(.section--alt) { padding-top: 0; }
.section--alt + .section { padding-top: clamp(4rem, 9vw, 7rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
    max-width: none;
    display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.section-head h2 + p, .section-head .lead { margin-top: 1rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Seitenkopf für Unterseiten */
.page-hero {
    position: relative;
    padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: 1.25rem; }
.page-hero .btn-row { margin-top: 2rem; }

.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* 4. Kopfzeile & Menü ------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    isolation: isolate;
}
/* Unschärfe auf einer eigenen Ebene: backdrop-filter direkt am Header würde das mobile Menü (position: fixed) einsperren */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark .m-ink { stroke: var(--ink); }
.brand-mark .m-blue { stroke: var(--brand); }
.brand-word { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1; }
.brand-word b { font-weight: 750; }
.brand-word span { font-weight: 450; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.main-nav a, .nav-sub-trigger {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.925rem; font-weight: 500;
    color: var(--muted);
    background: none; border: 0; font-family: inherit; cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav a:hover, .nav-sub-trigger:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a.active, .main-nav a[aria-current="page"], .nav-sub-trigger.is-current { color: var(--ink); }
.nav-sub-trigger svg { transition: transform 0.2s ease; }

.nav-has-sub { position: relative; }
.nav-sublist {
    list-style: none;
    position: absolute; top: calc(100% + 8px); left: 50%;
    min-width: 260px;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translate(-50%, -4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-sublist::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-has-sub:hover .nav-sublist,
.nav-has-sub:focus-within .nav-sublist,
.nav-has-sub.open .nav-sublist { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-has-sub:hover .nav-sub-trigger svg, .nav-has-sub.open .nav-sub-trigger svg { transform: rotate(180deg); }
.nav-sublist a {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
    border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; color: var(--ink);
}
.nav-sublist a small { font-size: 0.8rem; color: var(--muted); font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.main-nav + .header-actions { margin-left: 0.5rem; }

.icon-btn, .theme-toggle, .menu-toggle {
    width: 40px; height: 40px;
    display: inline-grid; place-items: center;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover, .theme-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-sun { display: none; }
    :root:not([data-theme="light"]) .theme-icon-moon { display: block; }
}

.menu-toggle { display: none; }
.menu-toggle-bars { display: block; width: 16px; }
.menu-toggle-bars > span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle-bars > span + span { margin-top: 4px; }

.header-cta { white-space: nowrap; }

/* Nur im mobilen Menü sichtbar */
.nav-mobile-cta { display: none; }

@media (max-width: 1020px) {
    .header-actions .header-cta { display: none; }
    .menu-toggle { display: inline-grid; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0;
        margin: 0;
        background: var(--bg);
        padding: 1rem var(--gutter) 2rem;
        overflow-y: auto;
        opacity: 0; visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul > li { border-bottom: 1px solid var(--line); }
    .main-nav a, .nav-sub-trigger {
        width: 100%; justify-content: space-between;
        padding: 1rem 0.25rem; border-radius: 0;
        font-size: 1.15rem; color: var(--ink);
    }
    .main-nav a:hover, .nav-sub-trigger:hover { background: none; color: var(--brand); }
    .nav-sublist {
        position: static; transform: none; opacity: 1; visibility: visible;
        min-width: 0; box-shadow: none; border: 0; padding: 0 0 0.75rem 0.75rem; background: none;
        display: none;
    }
    .nav-has-sub:hover .nav-sublist { transform: none; }
    .nav-has-sub.open .nav-sublist { display: block; transform: none; }
    .nav-sublist a { padding: 0.6rem 0.25rem; font-size: 1rem; }
    .main-nav > ul > li.nav-mobile-cta { display: block; padding-top: 1.5rem; border: 0; }
    .main-nav .nav-mobile-cta .btn { width: 100%; justify-content: center; padding: 0.95rem; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); font-size: 1rem; }
    .main-nav .nav-mobile-cta .btn:hover { color: var(--brand-ink); background: var(--brand-hover); }
    .nav-open .menu-toggle-bars > span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .nav-open .menu-toggle-bars > span:nth-child(2) { opacity: 0; }
    .nav-open .menu-toggle-bars > span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* 5. Buttons & Tags ------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: var(--brand);
    color: var(--brand-ink);
    font-family: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--text); color: var(--bg); }
.btn--ghost, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.35rem; border-radius: var(--radius);
    font-size: 0.95rem; font-weight: 600; line-height: 1.2;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.btn--ghost:hover, .btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.text-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-weight: 600; font-size: 0.95rem; color: var(--brand);
}
.text-link .arrow { transition: transform 0.2s var(--ease); }
.text-link:hover .arrow, a:hover .text-link .arrow { transform: translateX(3px); }

.tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 600; line-height: 1.3;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--line);
}
.tag--brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* 6. Karten & Raster ------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
    position: relative;
    display: flex; flex-direction: column;
    padding: clamp(1.4rem, 2.5vw, 1.9rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
a.card:hover, .card--hover:hover { border-color: var(--ink); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .text-link { margin-top: auto; padding-top: 1.25rem; }

.card-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    color: var(--ink);
    margin-bottom: 1rem;
    place-items: center start;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon--emoji { font-size: 1.3rem; background: var(--surface-2); }

.card-num { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 1.5rem; }

/* 7. Startseite ------------------------------------------------------------ */
.hero {
    position: relative;
    padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); max-width: 16ch; }
.hero .lead { margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.25rem; }

/* Leistungen */
.service-card .card-icon { margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.3rem; }
.service-card .tag-list { margin-top: 1.25rem; }

/* Werte */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.value { padding-top: 1rem; border-top: 1px solid var(--ink); }
.value h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.value p { font-size: 0.925rem; color: var(--muted); }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Zeilen-Liste (Leistungen, Zielgruppen, Produkte) */
.rows { border-top: 1px solid var(--line); }
.row {
    display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.5fr) 11rem;
    gap: 0.5rem 2rem; align-items: baseline;
    padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.row-num { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row h3 { font-size: 1.3rem; }
.row p { color: var(--muted); }
.row .row-meta { font-size: 0.875rem; color: var(--muted); }
.row .row-link { font-size: 0.925rem; font-weight: 600; color: var(--brand); justify-self: end; }
.row--plain { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.5fr); }
a.row:hover h3 { color: var(--brand); }
a.row:hover .row-link { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
    .row { grid-template-columns: 2rem minmax(0, 1fr); }
    .row p, .row .row-link, .row .row-meta { grid-column: 2; justify-self: start; }
}

/* Eckdaten unter dem Hero */
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; text-align: center; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: 0.85rem; color: var(--muted); }
.hero-facts dd { font-weight: 600; color: var(--ink); margin-top: 0.15rem; }
@media (max-width: 760px) { .hero-facts { grid-template-columns: 1fr; gap: 1rem; } }

/* CTA-Band */
.cta-band {
    display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end;
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 2px solid var(--ink);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin-top: 0.6rem; max-width: 52ch; color: var(--muted); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; align-items: start; } }

/* 8. Projekte & Produkte --------------------------------------------------- */
.project-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
a.project-card:hover { border-color: var(--ink); }
.project-card-media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card-media--logo { background: #fff; }
.project-card-media--logo img { object-fit: contain; padding: 1.25rem; }
/* für helle Logos (z. B. ViXion) */
.project-card-media--dark { background: #0b0d12; }
.project-card-media--dark img { padding: 3.5rem; }
.project-card-media--icon { display: grid; place-items: center; color: var(--brand); background: var(--surface-2); }
.project-card-media--icon svg { width: 72px; height: 72px; }
.project-card-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.project-card-body .tag { align-self: flex-start; margin-bottom: 1rem; }
.project-card-body h3 { font-size: 1.35rem; }
.project-card-body .kicker { font-size: 0.9rem; color: var(--muted); margin: 0.2rem 0 0.75rem; }
.project-card-body p { color: var(--muted); font-size: 0.95rem; }
.project-card-body .text-link { margin-top: auto; padding-top: 1.25rem; }

/* Projekt-Detail */
.browser-frame {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.browser-frame-bar { display: flex; align-items: center; gap: 6px; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-frame-bar span { margin-left: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding: 0.15rem 0.75rem; background: var(--surface); border-radius: 6px; border: 1px solid var(--line); }
.browser-frame img { width: 100%; max-height: 640px; object-fit: cover; object-position: top; background: #000; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.media-frame img { width: auto; max-width: 100%; max-height: 480px; object-fit: contain; }
.media-frame--dark { background: #0d0e10; border-color: #0d0e10; }
.media-frame--dark img { width: 100%; max-height: none; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.detail-grid h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.prose p { color: var(--text); margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose--muted p { color: var(--muted); }
.meta-list {
    list-style: none;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
    position: sticky; top: calc(var(--header-h) + 1.5rem);
}
.meta-list li { padding: 1rem 1.25rem; font-size: 0.925rem; }
.meta-list li + li { border-top: 1px solid var(--line); }
.meta-list .label, .meta-label {
    display: block;
    font-size: 0.8rem; color: var(--muted); margin-bottom: 0.15rem;
}
.meta-list a { color: var(--brand); }
@media (max-width: 860px) {
    .detail-grid { grid-template-columns: 1fr; }
    .meta-list { position: static; }
}

.highlights { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.highlight {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 1rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--surface);
    font-size: 0.9rem; font-weight: 500;
}

/* Produkte */
.product {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.product + .product { margin-top: 1.5rem; }
.product-head { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0 0.4rem; }
.product-head .card-icon { margin: 0; }
.product-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.product .kicker { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.25rem; }
.product-body p { color: var(--muted); }
.product-body .btn-row { margin-top: 1.75rem; }
.product dl { border: 1px solid var(--line); border-radius: var(--radius); align-self: start; background: var(--bg-alt); }
.product dl > div { padding: 0.9rem 1.1rem; }
.product dl > div + div { border-top: 1px solid var(--line); }
.product dt { font-size: 0.8rem; color: var(--muted); }
.product dd { font-size: 0.925rem; color: var(--ink); margin-top: 0.15rem; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }

.tiers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 0.5rem; }
.tier {
    position: relative;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-alt);
}
.tier--featured { border-color: var(--brand); background: var(--brand-soft); }
.tier-name { font-weight: 600; color: var(--ink); }
.tier-price { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 0.4rem; }
.tier-price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier .tag { position: absolute; top: -0.75rem; right: 1rem; background: var(--brand); color: #fff; border-color: transparent; }
@media (max-width: 700px) { .tiers { grid-template-columns: 1fr; } }

/* 9. Team & Profile -------------------------------------------------------- */
.team-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface); overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
a.team-card:hover { border-color: var(--ink); }
.team-card-photo { aspect-ratio: 4 / 4.8;background: var(--surface-2); overflow: hidden; }
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(0.15); transition: transform 0.6s var(--ease), filter 0.3s ease; }
a.team-card:hover .team-card-photo img { filter: none; }
.team-card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.team-card-body .role { font-size: 0.8rem; font-weight: 600; color: var(--brand); }
.team-card-body h3 { font-size: 1.2rem; }
.team-card-body p { font-size: 0.9rem; color: var(--muted); }

.photo-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center; align-content: center; gap: 0.75rem;
    color: var(--muted); font-size: 0.85rem;
    background: var(--surface-2);
}
.photo-placeholder svg { width: 64px; height: 64px; opacity: 0.6; }

.grid--2 > .team-card { flex-direction: row; }
.grid--2 > .team-card .team-card-photo { width: 38%; flex-shrink: 0; aspect-ratio: auto; min-height: 220px; }
.grid--2 > .team-card .team-card-body { justify-content: center; padding: 1.5rem; }
@media (max-width: 480px) { .grid--2 > .team-card { flex-direction: column; } .grid--2 > .team-card .team-card-photo { width: 100%; aspect-ratio: 4 / 3; } }

.team-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* Projektteam-Block: eigener Bereich mit Rahmen und Akzentlinie */
.project-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.project-block .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.project-block .section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.project-block-link { margin: 1.75rem 0 2.25rem; font-weight: 600; }
.project-block[open] > .team-grid, .project-block[open] > .project-block-link { animation: teamReveal 0.45s ease both; }
@keyframes teamReveal { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
/* Weiches Auf- und Zuklappen (Chrome/Edge): Höhe wird animiert */
html { interpolate-size: allow-keywords; }
.project-block::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.5s cubic-bezier(0.22, 1, 0.36, 1), content-visibility 0.5s allow-discrete;
}
.project-block[open]::details-content { block-size: auto; overflow: visible; }
/* Team-Karten im Projektkasten passen sich der Breite an, ohne über den Rand zu laufen */
.project-block .team-grid { width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.project-block .team-card { min-width: 0; }
.project-block[open] > .team-grid, .project-block[open] > .project-block-link { animation-duration: 0.6s; }
@media (prefers-reduced-motion: reduce) { .project-block[open] > .team-grid, .project-block[open] > .project-block-link { animation: none; } }

/* Produkt-Seite (ScherCenturo) */
.centuro-hero .lead { max-width: 640px; }
.centuro-status { margin-top: 1.5rem; }
.centuro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.centuro-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.centuro-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08); transform: translateY(-2px); }
.centuro-card h3 { font-size: 1.15rem; margin: 1rem 0 0.5rem; }
.centuro-card p { color: var(--muted); font-size: 0.95rem; }
.footer-tagline { font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.home-card { display: flex; flex-direction: column; color: inherit; }
.home-card:hover { color: inherit; }
.home-card .text-link { margin-top: auto; padding-top: 1rem; }

/* Karriere-Seite */
.career-jobs { display: flex; flex-direction: column; gap: 1rem; }
.career-jobs .job-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.career-jobs .job-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08); }
.career-jobs .job-card[open] { border-color: var(--brand); }
.career-jobs .job-card summary { padding: 1.4rem 1.5rem; gap: 1rem; }
.career-jobs .job-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--brand-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.career-jobs .job-card h2 { font-size: 1.25rem; }
.career-jobs .job-card-body { padding: 0 1.5rem 1.5rem; }
.career-jobs .job-summary-actions {
    border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 0.45rem 0.95rem; font-size: 0.85rem; font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.career-jobs .job-card[open] .job-summary-actions { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.career-ambassadors .team-card { border-radius: 14px; }

/* Live-Vorschau im Browser-Rahmen */
.live-preview { width: 100%; height: min(72vh, 680px); min-height: 360px; border: 0; display: block; background: #fff; }

/* News-Seite */
.news-follow { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.news-follow-card {
    display: flex; align-items: center; gap: 0.9rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 0.9rem 1.2rem 0.9rem 0.9rem; min-width: 220px;
    color: var(--ink); text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.news-follow-card:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08); transform: translateY(-2px); color: var(--ink); }
.news-follow-card strong { display: block; font-size: 0.95rem; }
.news-follow-card small { color: var(--muted); font-size: 0.8rem; }
.news-filter { margin-bottom: 2rem; }
.news-grid { gap: 1.25rem; }
.news-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08); transform: translateY(-2px); }
.news-media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.news-media img, .news-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-more { margin-top: 0.25rem; }
.news-more summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 0.9rem; list-style: none; }
.news-more summary::-webkit-details-marker { display: none; }
.news-more summary::after { content: " +"; }
.news-more[open] summary::after { content: " –"; }
.news-more[open] p { margin-top: 0.5rem; }
.news-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.news-body h3 { font-size: 1.1rem; margin-top: 0.4rem; }
.news-body p { color: var(--muted); font-size: 0.93rem; }
.news-empty {
    text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface);
}
.news-empty .card-icon { margin: 0 auto 1rem; }
.news-empty h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.news-empty p { color: var(--muted); }

/* Team-Filter im Seitenkopf */
.team-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.team-filter button {
    padding: 0.55rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.team-filter button:hover { border-color: var(--brand); color: var(--brand); }
.team-filter button.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.project-summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.project-summary::-webkit-details-marker { display: none; }
.project-summary::after { content: "+"; font-size: 2rem; font-weight: 300; line-height: 1; color: var(--brand); flex-shrink: 0; }
.project-block[open] > .project-summary::after { content: "–"; }
.project-block[open] > .project-summary .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.project-block:not([open]) > .project-summary .section-head { margin-bottom: 0; }

.callout {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    padding: 1.5rem 1.75rem; margin-top: 2.5rem;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--brand-soft);
}
.callout h3 { font-size: 1.15rem; }
.callout p { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fact { background: var(--surface); padding: 1.5rem 1.75rem; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.fact span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.story { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); max-width: 30ch; }
.story-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .story-wrap { grid-template-columns: 1fr; } }

/* Profil */
.profile {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.profile .role-line { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--brand); }
.profile .lead { margin-top: 1.25rem; color: var(--text); }
.profile .btn-row { margin-top: 2rem; }
.portrait {
    position: relative;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line); background: var(--surface-2);
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption {
    position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
    padding: 0.8rem 1rem;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 0.8rem; color: var(--muted);
}
.portrait figcaption strong { display: block; font-size: 0.95rem; }
@media (max-width: 860px) {
    .profile { grid-template-columns: 1fr; }
    .portrait { max-width: 360px; }
}

.link-card { gap: 0.25rem; }
.link-card .card-icon { width: 40px; height: 40px; margin-bottom: 1rem; }
.link-card .card-icon svg { width: 18px; height: 18px; }
.link-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 1.05rem; margin-bottom: 0.25rem; }
.link-card h3 .arrow { color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s; }
.link-card:hover h3 .arrow { transform: translate(2px, -2px); color: var(--brand); }

.note-box { border-left: 2px solid var(--brand); padding: 0.25rem 0 0.25rem 1.5rem; }
.note-box h3 { margin-bottom: 0.9rem; font-size: 1.25rem; }
.note-box p { color: var(--text); margin-bottom: 1rem; }
.note-box p:last-child { margin-bottom: 0; }

/* 10. Preise --------------------------------------------------------------- */
.price-list { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.price-list-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.price-list-head span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.5rem; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-label { font-weight: 600; color: var(--ink); }
.price-note { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); margin-top: 0.15rem; }
.price-value { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }

.currency-toggle { display: inline-flex; padding: 3px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-family: inherit; }
.currency-toggle-option { padding: 0.25rem 0.7rem; border-radius: var(--radius); font-size: 0.78rem; font-weight: 600; color: var(--muted); transition: background-color 0.15s, color 0.15s; }
.currency-toggle-option.active { background: var(--ink); color: var(--bg); }

/* 11. Formulare ------------------------------------------------------------ */
.contact-form, .form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-field label .opt { font-weight: 400; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea,
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font: inherit; font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e97a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.85rem center; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status:empty { display: none; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-aside { display: grid; gap: 1rem; }
.contact-aside .card { padding: 1.4rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; font-size: 0.925rem; color: var(--muted); }
.steps li::before { content: counter(step); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.85rem; }
.steps strong { display: block; color: var(--ink); font-size: 0.95rem; }

/* 12. Karriere & News ------------------------------------------------------ */
.job-list { display: grid; gap: 1rem; }
.job-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.job-card:hover { border-color: var(--line-strong); }
.job-card[open] { box-shadow: var(--shadow); border-color: var(--line-strong); }
.job-card summary { list-style: none; cursor: pointer; padding: 1.4rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.job-card summary::-webkit-details-marker { display: none; }
.job-card summary h2 { font-size: 1.2rem; }
.job-summary-main { display: flex; align-items: center; gap: 1rem; }
.job-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--surface-2); flex-shrink: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.job-summary-actions { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--brand); }
.job-chevron { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.job-card[open] .job-chevron { transform: rotate(180deg); }
.job-card-body { padding: 0 1.6rem 1.6rem; border-top: 1px solid var(--line); }
.job-section { padding-top: 1.4rem; }
.job-section h4 { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 0.5rem; }
.job-section p { color: var(--text); }
.apply-toggle-row { padding-top: 1.5rem; }
.apply-form { display: none; margin-top: 1.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.apply-form.is-open { display: block; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn {
    padding: 0.45rem 0.9rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--surface); color: var(--muted);
    font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
    transition: all 0.15s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.post-media { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.post-media img { width: 100%; max-height: 420px; object-fit: contain; background: #fff; }
.post-media video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.post-body { padding: 1.35rem 1.5rem 1.6rem; }
.post-body .tag { margin-bottom: 0.85rem; }
.post-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.post-body p { font-size: 0.95rem; color: var(--muted); }

.empty-state { padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }
.empty-state strong { display: block; font-size: 1.1rem; margin-bottom: 0.4rem; }

/* 13. Rechtliches ---------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 0.25rem; }
.legal-toc a { padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--muted); border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--ink); background: var(--surface-2); }
.legal-body { max-width: 760px; }
.legal-body > h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); padding-top: 3rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.legal-body > h2:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.legal-body > p { color: var(--muted); margin-top: 1rem; }
.legal-block { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.legal-block:last-child { border-bottom: 0; }
.legal-block h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.legal-block p, .legal-block li { color: var(--text); font-size: 0.97rem; }
.legal-block p + p { margin-top: 0.85rem; }
.legal-block ul, .legal-block ol { padding-left: 1.25rem; display: grid; gap: 0.35rem; margin-top: 0.75rem; }
.legal-label { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-bottom: 0.2rem; }
.legal-block .contact-form { margin-top: 1.25rem; }
@media (max-width: 860px) {
    .legal { grid-template-columns: 1fr; }
    .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .legal-toc a { border: 1px solid var(--line); border-radius: var(--radius); }
}

/* 14. Fusszeile & Cookie --------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-about p { color: var(--muted); font-size: 0.925rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.925rem; color: var(--text); }
.footer-col a:hover { color: var(--brand); }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color 0.15s, color 0.15s; }
.footer-social a:hover { border-color: var(--brand); color: var(--brand); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom .swiss { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom .swiss svg { width: 14px; height: 14px; }
@media (max-width: 860px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

.cookie-banner {
    position: fixed; z-index: 200;
    left: 1rem; bottom: 1rem;
    width: min(420px, calc(100% - 2rem));
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem; color: var(--muted);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
}
.cookie-banner.visible { opacity: 1; visibility: visible; transform: none; }
.cookie-banner strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 0.35rem; }
.cookie-banner a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.cookie-banner-actions .btn, .cookie-banner-actions .btn--ghost { flex: 1; padding: 0.6rem 1rem; font-size: 0.85rem; }

/* 15. Animation & Hilfen --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }

/* Alte Klassen (Admin-Bereich / Sperrseite) ------------------------------- */
.accent-text { color: var(--muted); font-size: 0.9rem; }
.admin-page { padding-block: 3rem; }
