/*
Theme Name: Glanzstück
Theme URI: https://glanzstueck.agency
Author: Glanzstück Werbeagentur
Author URI: https://glanzstueck.agency
Description: Custom-Theme für glanzstueck.agency. Editoriale Tonalität, Serifen-Display + Sans-Body, gold-bronze Akzent. Inhalte werden via Custom Post Types und ACF gepflegt. Webfonts selbst gehostet (DSGVO).
Version: 0.32.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
License URI: https://glanzstueck.agency
Text Domain: glanzstueck
Tags: agency, marketing
*/

/* =============================================================================
   Webfonts (DSGVO-konform selbst gehostet, OFL-Lizenz)
   ============================================================================= */
@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/instrument-serif-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/instrument-serif-400-italic.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("assets/fonts/inter-latin-300.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-300.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/inter-latin-400.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-400.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/inter-latin-500.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-500.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/inter-latin-600.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-600.woff2") format("woff2");
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/jetbrains-mono-500.woff2") format("woff2");
}

/* =============================================================================
   Designtokens (aus dem Mockup-Handoff übernommen, mockup-konforme Variablen)
   ============================================================================= */
:root {
    /* Warm neutral palette — oklch-Werte aus dem Bundle 2026-05-09,
       mit Hex-Fallback davor (zwei Deklarationen, Browser nimmt die letzte
       die er versteht). oklch-Support: Safari 15.4+, Chrome 111+, FF 113+. */
    --bg: #F5F0E8;
    --bg: oklch(0.97 0.008 80);
    --paper: #F5F0E8;
    --paper: oklch(0.97 0.008 80);
    --bg-elev: #FCF8F0;
    --bg-elev: oklch(0.99 0.005 80);
    --bg-card: #EDE6D7;
    --bg-card: oklch(0.94 0.012 80);
    --ink: #14120F;
    --ink: oklch(0.18 0.01 60);
    --ink-soft: #4A453E;
    --ink-soft: oklch(0.42 0.01 60);
    /* 2026-07-07: von 0.62 → 0.54 abgedunkelt. Die Mono-Versalien-Labels
       (JetBrains Mono, ~11px) lagen auf Creme unter WCAG 1.4.3 (4.5:1).
       #6B6455 / oklch(0.54) hält die „gedämpfte" Anmutung, erreicht aber AA. */
    --ink-mute: #6B6455;
    --ink-mute: oklch(0.54 0.008 60);
    --line: #D9D1C2;
    --line: oklch(0.86 0.008 70);
    --line-soft: #E5DECB;
    --line-soft: oklch(0.91 0.008 70);

    /* Akzent — Gold (CD-Farbe) */
    --accent: #C8A24B;
    --accent: oklch(0.74 0.13 85);
    --accent-soft: #ECDFB7;
    --accent-soft: oklch(0.93 0.05 88);
    --accent-ink: #8E6B1F;
    --accent-ink: oklch(0.42 0.09 80);

    /* Status-Farben (Health-Dots, Phase-States) */
    --health-ok:   oklch(0.70 0.14 150);
    --health-warn: var(--accent);
    --health-risk: oklch(0.62 0.18 25);

    /* Type */
    --display: "Instrument Serif", "Times New Roman", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Spacing rhythm */
    --pad-x: clamp(20px, 4vw, 80px);
    --gutter: 32px;

    /* Spacing-Skala (4-px-Grid) — verbindlich für alle Manage-Komponenten.
       Inline-Pixel-Werte sind ab QA-Sprint 2026-05-09 verboten. */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Type-Skala für Manage-Bereich (kompakter als Marketing-Pages) */
    --fs-xs: 11px;   /* Mono-Eyebrow, Status-Pills, Hilfstexte */
    --fs-sm: 12px;   /* Sekundäre Labels, kleine Buttons */
    --fs-md: 13px;   /* Default-Body in Tabellen + Forms */
    --fs-lg: 14px;   /* Standard-Body, Buttons */
    --fs-h3: 22px;   /* Section-Titel im Manage */
    --fs-h2: clamp(28px, 3.5vw, 44px); /* Page-Titel */

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    /* Budget-Status-Farben (Sven 2026-05-11)
       Klassische Ampel — drei semantische Stufen für Restbudget:
         info → grün      (≥ 3.000 € rest, alles im grünen Bereich)
         warn → knallgelb (1.000–2.999 € rest, bald wird's eng)
         risk → rot       (< 1.000 € rest oder negativ, jetzt nachbestellen)
       Iteration 2: warn von Orange auf Knallgelb (Orange zu nah an Rot).
       Iteration 3: info von Gold auf Grün (komplette Ampel-Semantik). */
    --budget-info-line: oklch(0.70 0.18 145);  /* knackiges Grün */
    --budget-info-soft: oklch(0.96 0.06 145);  /* Pastell-Grün BG */
    --budget-info-ink:  oklch(0.40 0.13 145);  /* dunkles Grün für Text */
    --budget-warn-line: oklch(0.88 0.21 100);  /* knalliges Gelb */
    --budget-warn-soft: oklch(0.97 0.10 100);  /* sehr helles Pastell-Gelb */
    --budget-warn-ink:  oklch(0.42 0.13 90);   /* dunkles Gelb-Braun für Text */
    --budget-risk-line: oklch(0.55 0.20 25);
    --budget-risk-soft: oklch(0.985 0.012 25);
    --budget-risk-ink:  oklch(0.45 0.20 25);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark-Theme — Override über data-theme="dark" am <html> oder <body>.
   NICHT automatisch via prefers-color-scheme — Dark-Mode ist noch nicht
   systematisch durchgetestet. Aktivierung später per Toggle-UI oder
   Auto-Detect, wenn Dark visuell sauber ist. Hex-Fallbacks hier weniger
   wichtig, weil Dark-Nutzer sowieso moderne Browser haben. */
[data-theme="dark"] {
    --bg:        oklch(0.16 0.008 60);
    --paper:     oklch(0.96 0.005 80);
    --bg-elev:   oklch(0.20 0.008 60);
    --bg-card:   oklch(0.22 0.010 60);
    --ink:       oklch(0.96 0.005 80);
    --ink-soft:  oklch(0.78 0.008 70);
    --ink-mute:  oklch(0.58 0.008 70);
    --line:      oklch(0.30 0.010 60);
    --line-soft: oklch(0.25 0.010 60);
    --accent-soft: oklch(0.40 0.08 85);
    --accent-ink:  oklch(0.92 0.05 88);
}

/* =============================================================================
   Reset / Base
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
}

body { min-height: 100vh; }

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: white; }

/* =============================================================================
   Type-Utilities
   ============================================================================= */
.display {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.95;
}

.mono {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    background: var(--ink);
    color: var(--bg);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: var(--accent); color: white; }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--ink); color: var(--bg); }

.btn .arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* =============================================================================
   Skip-Link (a11y)
   ============================================================================= */
.gs-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--bg);
    padding: 12px 16px;
    z-index: 9999;
}
.gs-skip:focus { left: 0; }

/* =============================================================================
   Nav / Header
   ============================================================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--pad-x);
    background: rgba(245, 240, 232, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: -0.02em;
}
.nav-logo .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    transform: translateY(-3px);
}
.nav-logo__img {
    height: 44px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-link {
    font-size: 14px;
    color: var(--ink-soft);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent);
}
.nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 720px) {
    .nav-links { display: none; }
}

/* =============================================================================
   Layout-Helper
   ============================================================================= */
.section {
    padding: clamp(60px, 9vw, 140px) var(--pad-x);
    border-top: 1px solid var(--line-soft);
}
.section:first-of-type { border-top: 0; }

.section-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 60px;
}
@media (max-width: 720px) {
    .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* =============================================================================
   Hero — statement-Variante
   ============================================================================= */
.hero {
    padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(60px, 9vw, 120px);
}

.hero-eyebrow {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}
.hero-eyebrow .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(200, 162, 75, 0.7);
    animation: gs-pulse 2.5s var(--ease) infinite;
}
@keyframes gs-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 162, 75, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(200, 162, 75, 0); }
}

.hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(48px, 7vw, 108px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 8px 0 32px;
}
.hero h1 em {
    color: var(--accent);
    font-style: italic;
}
.hero h1 .stroke {
    -webkit-text-stroke: 1px var(--ink);
    color: transparent;
}

.hero-split {
    display: grid;
    /* Sven 2026-05-21: Bild ~25% kleiner — Text bekommt 4 Anteile, Bild 3
       (vorher 1fr/1fr = 50/50, jetzt 4/7 vs 3/7 ≈ 57/43). */
    grid-template-columns: 4fr 3fr;
    gap: 60px;
    align-items: center;
}
.hero-split .hero-text { display: flex; flex-direction: column; }
.hero-split .hero-sub-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 520px;
}
.hero-split .hero-sub-stack p {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}
.hero-photo {
    position: relative;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-photo figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; gap: 32px; }
    .hero-photo { aspect-ratio: 16 / 10; }
}

/* =============================================================================
   Footer
   ============================================================================= */
.footer {
    padding: 80px var(--pad-x) 40px;
    background: var(--ink);
    color: var(--bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.15);
}
.footer-cta {
    font-family: var(--display);
    font-size: clamp(40px, 6vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.02em;
}
.footer-cta .eyebrow {
    display: block;
    margin-bottom: 28px;
    color: rgba(245, 240, 232, 0.6);
}
.footer-cta a {
    border-bottom: 1px solid rgba(245, 240, 232, 0.3);
    transition: border-color 0.2s var(--ease);
}
.footer-cta a:hover { border-color: var(--accent); }
.footer-cta em { color: var(--accent); font-style: italic; }

.footer-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    margin: 0 0 16px;
    font-weight: 500;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col li {
    font-size: 14px;
    color: rgba(245, 240, 232, 0.75);
}
.footer-col a:hover { color: var(--bg); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.5);
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-cta { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* =============================================================================
   PHASE 2 — Marketing-Sektionen
   ============================================================================= */

/* ─── Surface (geteilte Card-Basis für Approach + Jobs-Teaser) ──────────── */
.surface {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 18px;
}

/* ─── Services Preview — 4 Disziplinen-Rows ─────────────────────────────── */
.svc-row {
    display: grid;
    grid-template-columns: 80px 1.2fr 2fr auto;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    align-items: start;
    transition: padding 0.3s var(--ease);
    color: inherit;
}
.svc-row:hover { padding-left: 14px; }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-mute);
}
.svc-row h3 {
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1;
}
.svc-row p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    max-width: 480px;
}
.svc-row .plus {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.svc-row:hover .plus {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
@media (max-width: 720px) {
    .svc-row { grid-template-columns: 1fr auto; gap: 8px; }
    .svc-row .num,
    .svc-row p { display: none; }
}

/* ─── Logo Wall — 12 Kunden ──────────────────────────────────────────────── */
.section-clients {
    padding-top: 56px;
    padding-bottom: 56px;
}
.clients-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.clients-head .display {
    font-size: clamp(24px, 2.6vw, 38px);
    margin: 0;
    letter-spacing: -0.02em;
    font-weight: 400;
}
.clients-head .display em { color: var(--accent); font-style: italic; }

.logo-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* Sven 2026-05-21: Row-Gap fix auf 40px (vorher clamp 20–40px). */
    gap: 40px clamp(28px, 4vw, 64px);
    align-items: center;
    justify-items: center;
    margin-top: 8px;
}
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

.logo-cell {
    display: grid;
    place-items: center;
    width: 100%;
    /* Sven 2026-05-21: Cell-Höhe von 64px → 48px (~75%). */
    height: 48px;
    transition: transform 0.25s var(--ease);
}
.logo-cell:hover { transform: translateY(-2px); }
.cust-logo {
    /* Sven 2026-05-21: Einheitliche visuelle Größe — height fix + max-width
       deckelt breite Logos, sodass alle ungefähr gleich groß wirken,
       unabhängig vom Seitenverhältnis der Original-PNGs. */
    height: 32px;
    width: auto;
    max-width: 75%;
    object-fit: contain;
    opacity: 0.65;
    filter: grayscale(1);
    transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.logo-cell:hover .cust-logo {
    opacity: 1;
    filter: grayscale(0);
}

/* ─── Approach / Werte ───────────────────────────────────────────────────── */
.approach-section { background: var(--bg-elev); }
.approach-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; gap: 40px; } }
.approach-text .display {
    font-size: clamp(40px, 5.5vw, 80px);
    margin-top: 24px;
    margin-bottom: 32px;
}
.approach-text .display em { color: var(--accent); font-style: italic; }
.approach-text p {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 560px;
    margin: 0 0 32px;
}
.approach-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.approach-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 18px;
    align-items: start;
}
.approach-card .num {
    font-family: var(--mono);
    color: var(--accent-ink);
    font-size: 14px;
    letter-spacing: 0.04em;
}
.approach-card h4 {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
}
.approach-card p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

/* ─── Stats ──────────────────────────────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat {
    padding: 32px var(--gutter);
    border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat .v {
    font-family: var(--display);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat .l {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 12px;
}
@media (max-width: 720px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
}

/* ─── Jobs-Teaser-Cards (auf Home) ───────────────────────────────────────── */
.section-jobs-teaser .jobs-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.section-jobs-teaser .job-row {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 4px;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 18px;
    padding: 22px;
    align-items: center;
    color: inherit;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.section-jobs-teaser .job-row:hover {
    background: var(--bg-card);
    border-color: var(--ink-mute);
    transform: translateX(2px);
}
.section-jobs-teaser .job-num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent-ink);
    letter-spacing: 0.04em;
}
.section-jobs-teaser .job-body h3 {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0;
}
.section-jobs-teaser .job-body p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
    max-width: 520px;
}
.section-jobs-teaser .job-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.section-jobs-teaser .jobs-foot {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
    font-size: 14px;
}
@media (max-width: 760px) {
    .section-jobs-teaser .job-row { grid-template-columns: 44px 1fr; }
    .section-jobs-teaser .job-meta { grid-column: 2; }
}

/* ─── Testimonial mit rotierendem Siegel ─────────────────────────────────── */
.testimonial-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 800px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-quote {
    font-family: var(--display);
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 900px;
    font-weight: 400;
}
.testimonial-quote em { color: var(--accent); font-style: italic; }
.testimonial-author {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    align-items: center;
    color: var(--ink-soft);
}
.testimonial-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
}
.testimonial-author .name {
    font-weight: 500;
    color: var(--ink);
}
.testimonial-author .role {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seal {
    width: 140px;
    height: 140px;
    position: relative;
    color: var(--ink);
}
.seal svg { animation: gs-spin 24s linear infinite; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

/* =============================================================================
   PHASE 2.3 — Subpages
   ============================================================================= */

/* ─── Lede-Helper ────────────────────────────────────────────────────────── */
.lede {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 600px;
    margin: 32px 0 0;
}

.btn-lg { padding: 16px 28px; font-size: 14px; }

/* ─── Breadcrumb (Job-Detail) ────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--ink-mute);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--ink); }

/* ─── Tag-Chips (Leistungen) ─────────────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--bg-elev);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; padding-top: 12px; }

/* ─── Disziplin-Row (Leistungen) ─────────────────────────────────────────── */
.discipline-row {
    border-top: 1px solid var(--line);
    padding: 60px 0;
    display: grid;
    grid-template-columns: 100px 1.4fr 1.6fr;
    gap: 32px;
}
@media (max-width: 800px) {
    .discipline-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── CTA-Block (dunkel) ─────────────────────────────────────────────────── */
.cta-block {
    background: var(--ink);
    color: var(--bg);
    border-top: 0;
}
.cta-block .display { color: var(--bg); }
.cta-block .display em { color: var(--accent); font-style: italic; }
.cta-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: end;
}
@media (max-width: 800px) {
    .cta-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Karriere-Hero ──────────────────────────────────────────────────────── */
.careers-hero {
    padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(40px, 5vw, 60px);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
}
.careers-hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(48px, 7vw, 108px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 16px 0;
}
.careers-hero h1 em { color: var(--accent); font-style: italic; }
.careers-hero-meta {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.careers-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
}
.careers-meta-row:last-child { border-bottom: 0; }
.careers-meta-row .mono { color: var(--ink-mute); }
.careers-meta-row a { border-bottom: 1px solid var(--accent); color: var(--ink); }
@media (max-width: 900px) {
    .careers-hero { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Werte-Cards (Karriere) ─────────────────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}
.value-num { display: block; color: var(--accent-ink); margin-bottom: 12px; font-size: 11px; letter-spacing: 0.12em; }
.value-card h3 {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.value-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { margin: 0; padding: 0; }
.faq-item {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 8px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
    font-family: var(--display);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 400;
    letter-spacing: -0.01em;
}
.faq-toggle {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 24px;
    transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 800px;
}

/* ─── Job-Detail Hero ────────────────────────────────────────────────────── */
.job-hero { padding: clamp(40px, 5vw, 60px) var(--pad-x); }
.job-hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 16px 0 0;
}
.job-hero h1 em { color: var(--accent); font-style: italic; }
.job-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 900px) { .job-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.job-meta-card {
    padding: 8px 24px;
    border-radius: 8px;
}
.job-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
}
.job-meta-row:last-child { border-bottom: 0; }
.job-meta-row .mono { color: var(--ink-mute); font-size: 11px; }

/* ─── Job-Body (Gutenberg-Inhalt sauber rendern) ────────────────────────── */
.job-body {
    max-width: 720px;
    margin: 0 auto;
}
.job-body h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 44px);
    letter-spacing: -0.02em;
    margin: 60px 0 24px;
}
.job-body h2 em { color: var(--accent); font-style: italic; }
.job-body h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 24px;
    margin: 40px 0 12px;
}
.job-body p { color: var(--ink-soft); line-height: 1.6; }
.job-body ul, .job-body ol { padding-left: 0; list-style-position: inside; color: var(--ink-soft); }
.job-body li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }

/* ─── Page-Prose (generische Seiten — Impressum/Datenschutz) ─────────────── */
.page-prose {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ink-soft);
    line-height: 1.7;
}
.page-prose h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--ink);
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
}
.page-prose h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 22px;
    color: var(--ink);
    margin: 32px 0 12px;
}
.page-prose p { margin: 0 0 16px; }
.page-prose a { border-bottom: 1px solid var(--accent); color: var(--ink); }

/* ─── Kontakt-Formular ───────────────────────────────────────────────────── */
.contact-form { max-width: 720px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* Sven 2026-05-21: 2-Spalten-Layout für /kontakt/ — Intro (Headline + Lead)
   links, Formular rechts. Bei < 900px: gestackt untereinander. */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.contact-intro { position: sticky; top: 100px; }
.contact-intro .contact-headline {
    font-size: clamp(48px, 7vw, 120px);
    margin-top: 24px;
    line-height: 1;
    letter-spacing: -0.02em;
}
.contact-intro .contact-headline em { color: var(--accent); font-style: italic; }
.contact-intro .contact-lead {
    max-width: 480px;
    font-size: 18px;
    color: var(--ink-soft);
    margin-top: 32px;
    line-height: 1.55;
}
.contact-formwrap .contact-form { max-width: none; width: 100%; }
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-intro { position: static; }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.field label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.field input,
.field select,
.field textarea {
    font-family: var(--sans);
    font-size: 15px;
    padding: 14px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 140px; }

.gs-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =============================================================================
   PHASE 3.1 — Portal: Login + Dashboard
   ============================================================================= */

/* ─── Login zwei-spaltig ─────────────────────────────────────────────────── */
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--bg);
}
@media (max-width: 900px) { .login-shell { grid-template-columns: 1fr; } }

.login-visual {
    background: var(--ink);
    color: var(--bg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 280px;
}
.login-visual__logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: white;
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--display);
    font-size: 22px;
}
.login-visual__logo .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-3px);
    display: inline-block;
}
.login-visual .mono { color: rgba(245, 240, 232, 0.6); }
.login-glyph {
    font-family: var(--display);
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 24px 0;
}
.login-glyph .accent {
    display: block;
    color: var(--accent);
    font-style: italic;
}
.login-visual__lede {
    color: rgba(245, 240, 232, 0.75);
    line-height: 1.55;
    max-width: 440px;
    margin: 0;
}
.login-visual__bottom .mono { font-size: 11px; }

.login-form-side {
    padding: clamp(40px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
}
.login-form-side h2 em { color: var(--accent); font-style: italic; }

.login-message {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}
.login-message--error {
    background: #FEEFE8;
    color: #8E2A2A;
    border: 1px solid #E5BBB1;
}
.login-message--info {
    background: var(--bg-elev);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

/* OTP-Code-Eingabe — gross, monospaced, gut sichtbar */
.otp-code-input {
    font-family: var(--mono);
    font-size: 26px !important;
    letter-spacing: 0.4em !important;
    text-align: center;
    padding: 18px 16px !important;
}

/* Step-2-Reveal-Animation: Fade-in + Slide-down */
.js-otp-field-code {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease), margin 0.35s var(--ease);
    margin: 0;
}
.js-otp-field-code.is-revealed,
.js-otp-field-code:not([hidden]) {
    max-height: 200px;
    opacity: 1;
}
.js-otp-field-code[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
}

/* =============================================================================
   PHASE 4.0 — Manage-Dashboard (Mitarbeiter-Übersicht)
   ============================================================================= */

.manage-shell {
    --portal-primary: var(--accent);
}

.manage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 48px;
}
.manage-stat {
    padding: 24px 20px;
    border-left: 1px solid var(--line);
}
.manage-stat:first-child { border-left: 0; }
.manage-stat__v {
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.02em;
}
.manage-stat__l {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 8px;
}

.manage-section { margin-bottom: 48px; }
.manage-section__head em { color: var(--accent); font-style: italic; }

.manage-customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.manage-customer-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.manage-customer-card:hover {
    transform: translateY(-2px);
    border-color: var(--portal-primary);
}
.manage-customer-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.manage-customer-card__logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-card);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.manage-customer-card__logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.manage-customer-card__placeholder {
    font-family: var(--display);
    font-size: 20px;
    color: var(--ink);
    text-transform: uppercase;
}
.manage-customer-card h3 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.manage-customer-card__counts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.manage-customer-card__counts .v {
    display: block;
    font-family: var(--display);
    font-size: 24px;
    line-height: 1;
}
.manage-customer-card__counts .l {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 4px;
}

.manage-customer-card__modules {
    margin: 0;
    color: var(--ink-mute);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.manage-customer-card__foot {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}
.manage-customer-card__cta {
    color: var(--portal-primary);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =============================================================================
   PHASE 4.A — Manage-Sidebar (Mockup-Schema) + Konsole + Freigaben-Liste
   ============================================================================= */

/* Sidebar-Erweiterungen */
.manage-side {
    width: 240px;
}
.manage-side__mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--ink-soft);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    margin: 0;
    width: max-content;
}
.manage-side__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(200, 162, 75, 0.7);
    animation: gs-pulse 2.5s var(--ease) infinite;
}
.manage-nav__group {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 16px 0 6px;
    padding: 0 12px;
}
.manage-nav__group:first-of-type { margin-top: 0; }
.manage-nav__badge {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10px;
    background: var(--bg);
    color: var(--ink-mute);
    padding: 2px 8px;
    border-radius: 999px;
}
.dash-nav__item.is-active .manage-nav__badge {
    background: rgba(245, 240, 232, 0.2);
    color: var(--bg);
}

/* Page-Head mit Action-Buttons rechts */
.manage-page-head {
    position: relative;
}
.manage-page-head__actions {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 12px;
}
.manage-page-head__actions .btn {
    padding: 12px 20px;
    font-size: 13px;
}
@media (max-width: 720px) {
    .manage-page-head__actions {
        position: static;
        margin-top: 16px;
        flex-wrap: wrap;
    }
}

/* Konsole — Stats-Karten */
.manage-konsole-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 48px 0;
}
.manage-stat-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.manage-stat-card--accent { border-color: var(--accent); }
.manage-stat-card__label {
    font-size: 10px;
    color: var(--ink-mute);
    letter-spacing: 0.12em;
}
.manage-stat-card--accent .manage-stat-card__label { color: var(--accent-ink); }
.manage-stat-card__v {
    font-family: var(--display);
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 400;
}
.manage-stat-card--accent .manage-stat-card__v { color: var(--accent); }
/* Status-Modifier für Zahlen in Stat-Kacheln (2026-07-21).
   Anlass: Die Offline-Services-Kachel färbte ihre Null grün, obwohl alle
   Checks auf „unbekannt" standen — grün ohne Datenlage ist eine Falschaussage.
   --unknown ist deshalb bewusst KEIN Grün, sondern der Warnton. */
.manage-stat-card__v--danger  { color: #8E2A2A; }
.manage-stat-card__v--unknown { color: #8E6B1F; }
.manage-stat-card__v--ok      { color: #2A6C2A; }
.manage-stat-card__hint {
    font-size: 12px;
    color: var(--ink-mute);
}

/* Letzte-Aktivitäten-Liste */
.manage-activity {
    padding: 24px;
}
.manage-activity__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.manage-activity__live {
    color: var(--ink-mute);
    font-size: 10px;
    letter-spacing: 0.12em;
}
.manage-activity__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.manage-activity__item {
    display: grid;
    grid-template-columns: 100px 28px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 14px;
}
.manage-activity__item:first-child { border-top: 0; }
.manage-activity__time {
    font-size: 10px;
    color: var(--ink-mute);
    letter-spacing: 0.08em;
}
.manage-activity__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: var(--bg-card);
    color: var(--ink);
}
.manage-activity__icon--info { background: #FBF3DD; color: #8E6B1F; }
.manage-activity__icon--ok   { background: #E5F1E5; color: #2A6C2A; }
.manage-activity__icon--err  { background: #FEEFE8; color: #8E2A2A; }
.manage-activity__status {
    color: var(--ink-mute);
    font-size: 10px;
    letter-spacing: 0.12em;
}

/* Filter-Pills auf der Freigaben-Liste */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink-soft);
    font-size: 14px;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-pill:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.filter-pill.is-active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.filter-pill__count {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-mute);
    padding: 1px 8px;
    background: var(--bg-elev);
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}
.filter-pill.is-active .filter-pill__count {
    background: rgba(245, 240, 232, 0.2);
    color: var(--bg);
}

/* Approval-Liste */
.approval-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.approval-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto auto;
    gap: 4px 24px;
    padding: 24px 32px 24px 24px;
    border-top: 1px solid var(--line-soft);
    transition: background 0.2s var(--ease);
}
.approval-row:first-child { border-top: 0; }
.approval-row:hover { background: var(--bg); }
.approval-row__top {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.approval-row__title {
    grid-column: 1 / 2;
    font-family: var(--display);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
}
.approval-row__meta {
    grid-column: 1 / 2;
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    text-transform: none;
    margin: 4px 0 0;
}
.approval-row__reactions {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: right;
    margin-right: 12px;
}
.approval-row__reactions-v {
    font-family: var(--display);
    font-size: 22px;
    line-height: 1;
}
.approval-row__reactions-l {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    margin-top: 4px;
}
.approval-row__cta {
    grid-column: 3 / 4;
    grid-row: 1 / 4;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    align-self: center;
    color: var(--ink-soft);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.approval-row:hover .approval-row__cta {
    color: var(--ink);
    transform: translateX(4px);
}
@media (max-width: 760px) {
    .approval-row {
        grid-template-columns: 1fr auto;
        padding: 20px;
    }
    .approval-row__reactions {
        grid-column: 2 / 3;
        align-items: flex-end;
        text-align: right;
    }
    .approval-row__cta {
        position: absolute;
        right: 16px;
        top: 16px;
    }
}

/* Status-Pill — analog Mockup */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--ink);
}
.status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}
.status-pill--waiting    { background: #FBF3DD; color: #8E6B1F; }
.status-pill--correction { background: #FBE8DD; color: #8E4B1F; }
.status-pill--approved   { background: #E5F1E5; color: #2A6C2A; }
.status-pill--rejected   { background: #FEEFE8; color: #8E2A2A; }
.status-pill--draft      { background: var(--bg-card); color: var(--ink-mute); }

/* Priority-Pill */
.priority-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--ink-soft);
}
.priority-pill--high   { background: #FBF3DD; color: #8E6B1F; }
.priority-pill--urgent { background: #FEEFE8; color: #8E2A2A; }

/* Customer-Tag */
.customer-tag {
    color: var(--ink-mute);
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-left: 4px;
}

/* =============================================================================
   PHASE 4.B — Approval-Wizard
   ============================================================================= */

.wizard-main { padding-bottom: 80px; }

.wizard-head {
    position: relative;
    margin-bottom: 32px;
}
.wizard-back {
    color: var(--ink-mute);
    font-size: 12px;
    letter-spacing: 0.06em;
}
.wizard-back:hover { color: var(--ink); }
.wizard-head__actions {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 12px;
}
.wizard-head__actions .btn {
    padding: 12px 22px;
    font-size: 13px;
}
.wizard-head__actions .btn-primary {
    background: var(--ink);
    color: var(--bg);
}
.wizard-head__actions .btn-primary:hover {
    background: var(--accent);
    color: white;
}
@media (max-width: 760px) {
    .wizard-head__actions { position: static; margin-top: 16px; flex-wrap: wrap; }
}

/* Stepper */
.wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}
.wizard-step {
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--ink-mute);
    font-size: 14px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.wizard-step:first-child { border-left: 0; }
.wizard-step:hover { background: var(--bg-elev); }
.wizard-step__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-elev);
    color: var(--ink-mute);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.wizard-step.is-active {
    color: var(--ink);
    background: var(--bg-elev);
}
.wizard-step.is-active .wizard-step__num {
    background: var(--ink);
    color: var(--bg);
}

.wizard-message {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--line);
}
.wizard-message--info { background: var(--bg-elev); color: var(--ink-soft); }
.wizard-message--error { background: #FEEFE8; color: #8E2A2A; border-color: #E5BBB1; }

.wizard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) { .wizard-grid { grid-template-columns: 1fr; } }
.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }
.wizard-panel__left, .wizard-panel__right {
    padding: 24px 28px;
}
.wizard-panel__left .field + .field { margin-top: 20px; }
.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--ink-mute);
    font-size: 12px;
    line-height: 1.4;
}

/* Upload Drop-Zone */
.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 24px;
    border: 2px dashed var(--line);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
    margin-top: 12px;
}
.upload-dropzone:hover, .upload-dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--bg-elev);
}
.upload-dropzone__icon {
    font-size: 28px;
    color: var(--ink-mute);
}
.upload-dropzone__title {
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
}
.upload-dropzone__hint {
    font-size: 11px;
    color: var(--ink-mute);
    text-align: center;
    text-transform: none;
    letter-spacing: 0.04em;
    max-width: 380px;
}

.upload-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.upload-list__item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
}
.upload-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list__size { color: var(--ink-mute); font-size: 11px; }
.upload-list__remove {
    background: transparent;
    border: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--ink-mute);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.upload-list__remove:hover { background: #FEEFE8; color: #8E2A2A; }

/* Recipient-Picker (Step 2) */
.recipient-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    min-height: 80px;
}
.recipient-list__placeholder {
    padding: 16px;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 6px;
    color: var(--ink-mute);
    font-size: 12px;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.04em;
}
.recipient-item {
    display: grid;
    grid-template-columns: 24px 36px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.recipient-item:hover { background: var(--bg-elev); }
.recipient-item.is-selected {
    background: rgba(200, 162, 75, 0.08);
    border-color: var(--accent);
}
.recipient-item input { accent-color: var(--accent); }
.recipient-item__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
}
.recipient-item__body { display: flex; flex-direction: column; gap: 2px; }
.recipient-item__body strong { font-weight: 500; font-size: 14px; }
.recipient-item__body small { color: var(--ink-mute); font-size: 12px; }

/* External Email Add */
.external-add {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-top: 12px;
}
@media (max-width: 720px) { .external-add { grid-template-columns: 1fr; } }
.external-add input {
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ink);
}
.external-add .btn { padding: 10px 18px; font-size: 13px; }
.external-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.external-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
}
.external-item__email { font-weight: 500; }
.external-item__note { color: var(--ink-mute); font-size: 11px; }
.external-item__remove {
    background: transparent;
    border: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--ink-mute);
    cursor: pointer;
    font-size: 14px;
}
.external-item__remove:hover { background: #FEEFE8; color: #8E2A2A; }

.wizard-meta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}
@media (max-width: 720px) { .wizard-meta-grid { grid-template-columns: 1fr; } }

/* Priority-Toggle (Radio-Pills) */
.priority-toggle {
    display: flex;
    gap: 6px;
    border: 0;
    padding: 0;
    margin: 16px 0 0;
    flex-wrap: wrap;
}
.priority-toggle legend {
    width: 100%;
    margin: 0 0 10px;
}
.priority-toggle__opt {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
}
.priority-toggle__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.priority-toggle__opt span {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    font-size: 13px;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.priority-toggle__opt input:checked + span {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

/* Step 3 — Summary + Email-Preview */
.wizard-summary {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 18px;
    font-size: 14px;
}
.wizard-summary dt { color: var(--ink-mute); font-size: 11px; letter-spacing: 0.08em; padding-top: 2px; }
.wizard-summary dd { margin: 0; color: var(--ink); }

.wizard-info {
    margin-top: 32px;
    padding: 20px;
    background: #FBF3DD;
    color: #8E6B1F;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
}
.wizard-info p { margin: 0 0 10px; font-weight: 500; }
.wizard-info ul { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.55; color: #5A4A1F; }
.wizard-info li { margin-bottom: 4px; }

.email-preview { padding: 24px; background: var(--bg); }
.email-preview__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-elev);
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}
.email-preview__head .mono { color: var(--ink-mute); font-size: 10px; }
.email-preview__body {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px 32px;
    font-size: 14px;
    line-height: 1.55;
}
.email-preview__brand {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--display);
    font-size: 18px;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.email-preview__brand span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; }

.email-preview__file-block {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.email-preview__title-line {
    margin: 0 0 12px;
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 0.08em;
}
.email-preview__file-block ul { list-style: none; margin: 0; padding: 0; }
.email-preview__file-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
}
.email-preview__file-row:first-child { border-top: 0; }
.email-preview__file-row .mono { color: var(--ink-mute); font-size: 10px; }
.email-preview__file-empty {
    font-size: 11px;
    color: var(--ink-mute);
    padding: 4px 0;
    text-transform: none;
}

.email-preview__buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.email-preview__btn {
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}
.email-preview__btn--ok { background: var(--accent); color: white; }
.email-preview__btn--correction { background: white; border: 1px solid var(--line); color: var(--ink); }
.email-preview__btn--reject { background: white; border: 1px solid var(--line); color: var(--ink); }

.email-preview__footer {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 10px;
    color: var(--ink-mute);
    line-height: 1.6;
    text-align: center;
}

/* ─── Dashboard mit Sidebar ──────────────────────────────────────────────── */
.dash-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    background: var(--bg);
}
@media (max-width: 900px) { .dash-shell { grid-template-columns: 1fr; } }

.dash-side {
    background: var(--bg-elev);
    border-right: 1px solid var(--line);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
@media (max-width: 900px) {
    .dash-side { position: static; height: auto; padding: 24px 20px; }
}
.dash-side__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--display);
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.dash-side__brand .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--portal-primary, var(--accent));
    transform: translateY(-3px);
    display: inline-block;
}
.dash-side__brand-img {
    height: 56px;
    width: auto;
    display: block;
}
.dash-side__customer {
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dash-side__customer .mono {
    font-size: 10px;
    color: var(--ink-mute);
}
.dash-side__customer strong {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 400;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dash-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink-soft);
    font-size: 14px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dash-nav__item:hover {
    background: var(--bg);
    color: var(--ink);
}
.dash-nav__item.is-active {
    background: var(--ink);
    color: var(--bg);
}
.dash-nav__icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dash-side__bottom {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-main {
    padding: clamp(32px, 5vw, 60px);
    overflow-x: hidden;
}
.dash-main__head {
    margin-bottom: 48px;
}
.dash-main__head h1 em { color: var(--portal-primary, var(--accent)); font-style: italic; }

.dash-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}
.dash-widget {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.dash-widget:hover {
    transform: translateY(-2px);
    border-color: var(--portal-primary, var(--accent));
}
.dash-widget__icon { font-size: 28px; }
.dash-widget h3 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
}
.dash-widget p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}
.dash-widget__cta {
    margin-top: auto;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--portal-primary, var(--accent));
}

.dash-info {
    padding: 24px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.dash-info .mono { font-size: 11px; color: var(--ink-mute); margin: 0 0 8px; }
.dash-info p:last-child { margin: 0; }

/* Quick-Stats im Dashboard-Widget */
.dash-widget__metric {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}
.dash-widget__count {
    font-family: var(--display);
    font-size: 32px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.dash-widget__next {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

/* =============================================================================
   PHASE 3.2 — Modul-Listen-Pages (SSL, Domain, Uptime)
   ============================================================================= */

.module-page__head {
    margin-bottom: 32px;
}
.module-page__head em { color: var(--portal-primary, var(--accent)); font-style: italic; }

.module-empty {
    padding: 32px;
}
.module-empty p {
    margin: 0;
    color: var(--ink-soft);
}

/* Empty-State v2 — Nutzenversprechen + CTA statt toter „keine Daten"-Zeile.
   Reusable Part template-parts/portal-module-empty.php (Review 2026-07-07). */
.module-empty-v2 {
    padding: var(--space-8) var(--space-7);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elev);
    max-width: 640px;
}
.module-empty-v2__eyebrow {
    font-family: var(--mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-ink);
}
.module-empty-v2__title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.05;
    margin: var(--space-3) 0 0;
}
.module-empty-v2__title .dot { color: var(--accent); }
.module-empty-v2__lede {
    margin: var(--space-4) 0 0;
    color: var(--ink-soft);
    max-width: 52ch;
    line-height: 1.6;
}
.module-empty-v2__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: var(--fs-lg);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s var(--ease), opacity 0.15s var(--ease);
}
.module-empty-v2__cta:hover { transform: translateY(-1px); opacity: 0.92; }

.module-list {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}
.module-list thead th {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 500;
}
.module-list tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}
.module-list tbody tr:last-child td {
    border-bottom: 0;
}
.module-list tbody tr:hover {
    background: rgba(200, 162, 75, 0.04);
}
.module-list strong {
    font-weight: 500;
}

.module-foot {
    margin-top: 16px;
    color: var(--ink-mute);
    font-size: 11px;
}

/* Responsive: Tabelle auf Mobile zu Cards umbrechen */
@media (max-width: 720px) {
    .module-list, .module-list thead, .module-list tbody, .module-list tr, .module-list th, .module-list td {
        display: block;
    }
    .module-list thead { display: none; }
    .module-list tr {
        border-bottom: 1px solid var(--line);
        padding: 12px 16px;
    }
    .module-list tbody td {
        padding: 4px 0;
        border-bottom: 0;
    }
    .module-list tbody td:first-child { padding-top: 8px; padding-bottom: 8px; }
}

/* Status-Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}
.status-badge--valid {
    background: #E5F1E5;
    color: #2A6C2A;
    border: 1px solid #C7DEC7;
}
.status-badge--warn {
    background: #FBF3DD;
    color: #8E6B1F;
    border: 1px solid #E5D9B1;
}
.status-badge--error {
    background: #FEEFE8;
    color: #8E2A2A;
    border: 1px solid #E5BBB1;
}
.status-badge--unknown {
    background: var(--bg-elev);
    color: var(--ink-mute);
    border: 1px solid var(--line);
}

/* =============================================================================
   Mobile-Anpassung der manage-list-Tabellen — bei <800px wird das Table
   zu einem horizontal-scrollbaren Container. Auf <520px Card-Layout.
   ============================================================================= */
@media (max-width: 800px) {
    .manage-list-table { min-width: 0 !important; font-size: 13px; }
    .manage-list-table th,
    .manage-list-table td { padding: 10px 12px !important; }
    .surface > .manage-list-table { display: block; }
}
@media (max-width: 520px) {
    .manage-list-table thead { display: none; }
    .manage-list-table tr {
        display: block;
        border-bottom: 1px solid var(--line) !important;
        padding: 12px 16px;
    }
    .manage-list-table td {
        display: block;
        padding: 4px 0 !important;
        border: 0 !important;
        text-align: left !important;
    }
    .manage-list-table td:first-child { font-size: 14px; }
    /* Aktion-Spalte breiter, Buttons untereinander */
    .manage-list-table td form { display: flex !important; flex-wrap: wrap; gap: 6px; justify-content: flex-start !important; }
    /* Filter-Bar untereinander */
    .filter-pills { gap: 6px !important; }
    .filter-pill { font-size: 11px !important; padding: 5px 9px !important; }
}

/* =============================================================================
   Approval-Action-Page (Magic-Link · /freigabe/<token>/) — Phase 4.C
   ============================================================================= */
.approval-action-shell {
    min-height: calc(100vh - 80px);
    background: var(--bg);
    padding: 56px 24px 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.approval-action-card {
    width: 100%;
    max-width: 720px;
    padding: 48px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 32px rgba(20, 14, 5, 0.04);
}
@media (max-width: 640px) {
    .approval-action-card {
        padding: 28px 20px;
    }
}

.approval-action-eyebrow {
    margin: 0 0 18px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.approval-action-title {
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.05;
    margin: 0 0 18px;
}

.approval-action-lede {
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink);
    margin: 0 0 28px;
}

.approval-action-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 24px;
}

.approval-action-context {
    font-size: 13px;
    color: var(--ink-mute);
    margin: 0 0 18px;
}

.approval-action-meta {
    margin: 24px 0 0;
    font-size: 12px;
    color: var(--ink-mute);
    letter-spacing: 0.06em;
}

/* ─── Meta-Block (Projekt / Frist / Priorität) ──────────────────────── */
.approval-action-meta-block {
    margin: 0 0 28px;
    padding: 20px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.approval-action-doc-title {
    font-family: var(--serif, "Instrument Serif", serif);
    font-size: 28px;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--ink);
}
.approval-action-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 22px 36px;
}
.approval-action-meta-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.approval-action-meta-list .mono {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.approval-action-meta-list strong {
    font-size: 15px;
    color: var(--ink);
    font-weight: 600;
}
.approval-action-priority--high   { color: #8E6B1F; }
.approval-action-priority--urgent { color: #8E2A2A; }

/* ─── Beschreibung ──────────────────────────────────────────────────── */
.approval-action-section-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 0 14px;
}
.approval-action-description {
    margin: 0 0 28px;
}
.approval-action-description__body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
}
.approval-action-description__body p { margin: 0 0 12px; }
.approval-action-description__body p:last-child { margin-bottom: 0; }

/* ─── Files-Liste ───────────────────────────────────────────────────── */
.approval-action-files {
    margin: 0 0 32px;
}
.approval-action-files__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.approval-action-files__row {
    margin: 0;
}
.approval-action-files__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.approval-action-files__link:hover {
    border-color: var(--accent);
    background: #FBF7EB;
}
.approval-action-files__name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.approval-action-files__size {
    font-size: 11px;
    color: var(--ink-mute);
    flex-shrink: 0;
}

/* ─── Action-Buttons ────────────────────────────────────────────────── */
.approval-action-buttons {
    margin: 32px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
}
.approval-action-buttons__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0 18px;
}
@media (max-width: 640px) {
    .approval-action-buttons__row {
        grid-template-columns: 1fr;
    }
}

.approval-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 22px;
    font-family: var(--sans, "Inter", sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.1s, filter 0.15s;
}
.approval-action-btn:hover    { filter: brightness(1.05); }
.approval-action-btn:active   { transform: translateY(1px); }
.approval-action-btn .arrow   { font-size: 16px; }

.approval-action-btn--ok {
    background: #2A6C2A;
    color: #fff;
    border-color: #2A6C2A;
}
.approval-action-btn--correction {
    background: #C39327;
    color: #fff;
    border-color: #C39327;
}
.approval-action-btn--reject {
    background: #8E2A2A;
    color: #fff;
    border-color: #8E2A2A;
}

.approval-action-note {
    text-align: center;
    color: var(--ink-mute);
    font-size: 11px;
    letter-spacing: 0.12em;
    margin: 0;
}

.approval-action-error {
    margin: 0 0 18px;
    padding: 12px 16px;
    background: #FEEFE8;
    color: #8E2A2A;
    border: 1px solid #E5BBB1;
    border-radius: 4px;
    font-size: 14px;
}

/* ─── Confirm-State (zweiter Schritt vor POST) ──────────────────────── */
.approval-action-confirm {
    margin: 32px 0 0;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    border-radius: 6px;
}
.approval-action-confirm--ok         { border-color: #C7DEC7; background: #F2F8F2; }
.approval-action-confirm--correction { border-color: #E5D9B1; background: #FBF7EB; }
.approval-action-confirm--reject     { border-color: #E5BBB1; background: #FCF4F1; }

.approval-action-confirm__title {
    font-family: var(--serif, "Instrument Serif", serif);
    font-size: 28px;
    line-height: 1.15;
    margin: 8px 0 12px;
    text-align: center;
}
.approval-action-confirm__lede {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    text-align: center;
    margin: 0 0 22px;
}

.approval-action-confirm .field {
    margin: 0 0 20px;
}
.approval-action-confirm .field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--ink);
}
.approval-action-confirm .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    resize: vertical;
    min-height: 120px;
}
.approval-action-confirm .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(195, 147, 39, 0.18);
}

.approval-action-confirm__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.approval-action-confirm__actions .btn-ghost {
    flex-shrink: 0;
}
.approval-action-confirm__actions .approval-action-btn {
    flex: 1;
    min-width: 180px;
}

/* ─── Done- / Error-Card-Modifier ───────────────────────────────────── */
.approval-action-card--done {
    text-align: left;
}
.approval-action-card--approved   { border-top: 4px solid #2A6C2A; }
.approval-action-card--correction { border-top: 4px solid #C39327; }
.approval-action-card--rejected   { border-top: 4px solid #8E2A2A; }
.approval-action-card--error      { border-top: 4px solid var(--ink-mute); }

/* ─── Footer ────────────────────────────────────────────────────────── */
.approval-action-footer {
    margin: 32px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.5;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    text-align: center;
}

/* ─── Shared Component: Progress-Bar (.gs-progress) ─────────────────── */
/* Verwendung: gs_project_progress_html($post_id) im Plugin liefert das Markup. */

.gs-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}
.gs-progress--compact {
    min-width: 90px;
}
.gs-progress__track {
    height: 8px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.gs-progress--compact .gs-progress__track {
    height: 6px;
}
.gs-progress__bar {
    height: 100%;
    background: var(--ink-mute);
    transition: width 0.4s ease;
}
.gs-progress__bar.is-high {
    background: #B97000;
}
.gs-progress__bar.is-done {
    background: #1F7A3A;
}
.gs-progress__label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.gs-progress--compact .gs-progress__label {
    font-size: 10px;
}

/* ─── Domain-Hierarchie (expandable Subdomains) ────────────────────── */

.gs-domain-group {
    /* Container, kein eigenes Styling — Tabellen + List behalten ihr Layout. */
}

.gs-domain-toggle {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-mute);
    cursor: pointer;
    padding: 3px 9px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    border-radius: 3px;
    margin-left: 8px;
    white-space: nowrap;
    vertical-align: middle;
    transition: background 0.12s ease, color 0.12s ease;
}
.gs-domain-toggle:hover {
    background: var(--bg-elev);
    color: var(--ink);
}
.gs-domain-toggle::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s ease;
    margin-right: 2px;
}
.gs-domain-group.is-expanded .gs-domain-toggle::before {
    content: '▾ ';
}

/* Sub-Rows (Tabelle, Mitarbeiter-Sicht) */
tr.gs-domain-sub {
    display: none;
    background: var(--bg-elev);
}
.gs-domain-group.is-expanded tr.gs-domain-sub {
    display: table-row;
}
tr.gs-domain-sub td:first-child {
    padding-left: 44px !important;
    position: relative;
}
tr.gs-domain-sub td:first-child::before {
    content: '└';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-mute);
    font-family: var(--mono);
    font-size: 14px;
}

/* Sub-Cards-Wrapper (Liste, Kunden-Sicht) — nested innerhalb der
   Hauptdomain-Card, default versteckt, per Toggle einblenden. */
.gs-domain-subs-wrap {
    display: none;
}
.gs-domain-group.is-expanded .gs-domain-subs-wrap {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   Portal v4 (Sven 2026-05-24) — Sidebar + Dashboard
   ═══════════════════════════════════════════════════════════════════
   Überschreibt v3-Sidebar/Dashboard mit moderner Card-Style-Optik:
   warmer Cream-Hintergrund, Brand-Gold-Akzente, Inter-Sans, Lucide-Icons,
   12-16px Radii, weiche Borders + subtle Shadows.
   Kommt am ENDE von style.css damit Specificity-gleiche v3-Regeln
   überschrieben werden. */

/* ─── Shell-Layout ──────────────────────────────────────────────── */
.dash-shell {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
    background: var(--bg);
}

/* ─── Sidebar v4 ───────────────────────────────────────────────── */
.dash-side {
    background: var(--paper);
    border-right: 1px solid var(--line-soft);
    padding: 28px 20px 20px;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-side__brand {
    display: flex;
    align-items: center;
    padding: 4px 12px 28px;
    text-decoration: none;
}
.dash-side__brand-img {
    max-width: 160px;
    max-height: 44px;
    height: auto;
    width: auto;
    display: block;
}
.dash-side__brand-text {
    font-family: var(--display);
    font-size: 28px;
    color: var(--ink);
    line-height: 1;
    font-weight: 400;
}
.dash-side__brand-dot {
    color: var(--accent);
}

/* Mail-Lock-Banner (Stage-Notice) */
.dash-side__mail-lock {
    margin: 0 0 20px;
    padding: 10px 12px;
    background: #FBF1EE;
    border: 1px solid #E8C0BB;
    border-radius: var(--radius-md);
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.4;
    color: #8E2A2A;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.dash-side__mail-lock svg {
    flex-shrink: 0;
    margin-top: 1px;
    stroke: #8E2A2A;
}

/* Navigation */
.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.dash-nav__group {}
.dash-nav__label {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    font-weight: 500;
    padding: 0 12px 8px;
}
.dash-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
    line-height: 1.3;
}
.dash-nav__item:hover {
    background: var(--bg);
    color: var(--ink);
}
.dash-nav__item.is-active {
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 500;
}
.dash-nav__item.is-active .dash-nav__icon svg {
    stroke: var(--accent-ink);
}
.dash-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.dash-nav__icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--ink-mute);
    transition: stroke 120ms ease;
}
.dash-nav__item:hover .dash-nav__icon svg {
    stroke: var(--ink);
}
.dash-nav__text {
    flex: 1;
    min-width: 0;
}
.dash-nav__badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.4;
    font-family: var(--sans);
    letter-spacing: 0;
    text-transform: none;
}
.dash-nav__lock {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    color: var(--ink-mute);
}
.dash-nav__lock svg {
    stroke: var(--ink-mute);
    width: 14px;
    height: 14px;
}
.dash-nav__item.is-locked {
    opacity: 0.55;
}
.dash-nav__item.is-locked:hover {
    opacity: 0.85;
}
.dash-nav__item--compact {
    padding: 7px 12px;
    font-size: 13px;
}
.dash-nav__item--compact .dash-nav__icon {
    width: 16px;
    height: 16px;
}
.dash-nav__item--compact .dash-nav__icon svg {
    width: 16px;
    height: 16px;
}

/* Bottom (User-Block + Mein Konto/Logout) */
.dash-side__bottom {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dash-side__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 4px;
}
.dash-side__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-style: italic;
    color: var(--accent-ink);
    font-size: 16px;
    flex-shrink: 0;
}
.dash-side__user-info {
    flex: 1;
    min-width: 0;
}
.dash-side__user-name {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-side__user-mail {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-mute);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-side__bottom-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Customer-Anzeige (alt, kann weg wenn neue Sidebar live) */
.dash-side__customer {
    display: none;
}

/* ─── Main Layout v4 ──────────────────────────────────────────── */
.dash-main {
    padding: 32px 48px;
    max-width: 1280px;
}

/* Topbar (Search + Bell + Settings) */
.fp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 24px;
}
.fp-topbar__search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 8px 16px;
    width: 100%;
    max-width: 380px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-mute);
    cursor: pointer;
    transition: border-color 120ms;
}
.fp-topbar__search:hover { border-color: var(--line); }
.fp-topbar__search svg { stroke: var(--ink-mute); flex-shrink: 0; }
.fp-topbar__actions { display: flex; gap: 8px; }
.fp-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 120ms, background 120ms;
}
.fp-icon-btn:hover { border-color: var(--accent); background: var(--paper); }
.fp-icon-btn svg { stroke: var(--ink-soft); }
.fp-icon-btn .fp-badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

/* Hero v4 */
.fp-hero-v4 { margin-bottom: 32px; }
.fp-hero-v4__edition {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.fp-hero-v4__edition .dot { color: var(--accent); margin: 0 6px; }
.fp-hero-v4__greeting {
    font-family: var(--display);
    font-style: italic;
    font-size: 42px;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    font-weight: 400;
}
.fp-hero-v4__sub {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink-mute);
    margin: 0;
}

/* KPI-Stats */
.fp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.fp-stat {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
}
.fp-stat__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-mute);
    margin-bottom: 14px;
}
.fp-stat__label svg { stroke: var(--accent-ink); flex-shrink: 0; }
.fp-stat__value {
    font-family: var(--display);
    font-size: 36px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 6px;
    font-weight: 400;
}
.fp-stat__delta {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--success, #5C8A52);
}
.fp-stat__delta.is-warn { color: var(--warn, #C25555); }
.fp-stat__delta.is-mute { color: var(--ink-mute); }

/* Attention-Card */
.fp-attention-v4 {
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 28px;
}
.fp-attention-v4__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fp-attention-v4__head h2 {
    margin: 0;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.fp-pill-soft {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-radius: 999px;
    padding: 4px 12px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
}
.fp-attention-v4__list { list-style: none; padding: 0; margin: 0; }
.fp-attention-v4__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
}
.fp-attention-v4__list li:first-child { border-top: 0; }
.fp-attention-v4__icon {
    width: 34px;
    height: 34px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-attention-v4__icon svg { stroke: var(--accent-ink); }
.fp-attention-v4__icon.is-warn { background: #FBF1EE; }
.fp-attention-v4__icon.is-warn svg { stroke: var(--warn); }
.fp-attention-v4__content { flex: 1; min-width: 0; }
.fp-attention-v4__title {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 2px;
}
.fp-attention-v4__meta {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-mute);
}
.fp-attention-v4__action {
    align-self: center;
    background: var(--ink);
    color: var(--bg-elev);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 120ms;
}
.fp-attention-v4__action:hover { background: #2a2520; color: var(--bg-elev); }

/* Snapshots 2-Spalter */
.fp-snap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.fp-snap-v4 {
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
.fp-snap-v4__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.fp-snap-v4__title {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.fp-snap-v4__link {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--accent-ink);
    border-bottom: 1px solid var(--accent);
    text-decoration: none;
}
.fp-snap-v4__big {
    font-family: var(--display);
    font-size: 44px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 4px;
    font-weight: 400;
}
.fp-snap-v4__big.is-warn { color: var(--warn); }
.fp-snap-v4__caption {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.fp-snap-v4__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.fp-snap-v4__grid.is-2col { grid-template-columns: 1fr 1fr; }
.fp-snap-v4__cell {
    background: var(--bg);
    border-radius: 10px;
    padding: 10px 12px;
}
.fp-snap-v4__cell-label {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-mute);
}
.fp-snap-v4__cell-value {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

/* 3-Spalten Activity/Deadlines/Projects */
.fp-cols-v4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.fp-col-v4 {
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
.fp-col-v4__head {
    margin-bottom: 14px;
}
.fp-col-v4__head h3 {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.fp-col-v4__head em {
    font-family: var(--display);
    font-style: italic;
    color: var(--accent-ink);
    font-weight: 400;
}
.fp-col-v4__list { list-style: none; padding: 0; margin: 0; }
.fp-col-v4__list li {
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
    font-family: var(--sans);
    font-size: 13px;
}
.fp-col-v4__list li:first-child { border-top: 0; }
.fp-col-v4__item-title {
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 2px;
    line-height: 1.4;
}
.fp-col-v4__item-meta {
    color: var(--ink-mute);
    font-size: 12px;
    line-height: 1.4;
}
.fp-col-v4__item-tag {
    display: inline-block;
    background: var(--bg);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    margin-left: 6px;
}
.fp-col-v4__item-tag.is-warn { background: #FBF1EE; color: var(--warn); }
.fp-col-v4__item-tag.is-success { background: #F0F6EE; color: var(--success, #5C8A52); }

/* Quick-Cards 4er-Grid */
.fp-quick-v4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.fp-quick-v4__card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 22px 22px;
    text-decoration: none;
    color: var(--ink);
    display: block;
    transition: border-color 150ms, background 150ms, transform 150ms;
}
.fp-quick-v4__card:hover {
    border-color: var(--accent);
    background: var(--bg-elev);
    transform: translateY(-1px);
}
.fp-quick-v4__icon {
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.fp-quick-v4__icon svg { stroke: var(--accent-ink); }
.fp-quick-v4__title {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}
.fp-quick-v4__sub {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-mute);
}

/* Footer */
.fp-foot-v4 {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-mute);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
    .fp-stats { grid-template-columns: 1fr 1fr; }
    .fp-quick-v4 { grid-template-columns: 1fr 1fr; }
    .fp-snap-row, .fp-cols-v4 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .dash-shell { grid-template-columns: 1fr; }
    .dash-side { position: relative; height: auto; }
    .dash-main { padding: 24px 20px; }
    .fp-stats { grid-template-columns: 1fr; }
    .fp-quick-v4 { grid-template-columns: 1fr 1fr; }
}

/* ─── Portal-Pages v4: Hero-Header-Override ────────────────────────
 * Alle portal-*.php-Templates nutzen <header class="module-page__head|
 * dash-main__head"><h1 class="display">. Wir überschreiben den klassi-
 * schen Editorial-Display-Stil mit dem v4-Greeting-Look (Instrument
 * Serif italic) — analog zum Dashboard-Hero. Inline-Styles in den
 * Templates haben höhere Specificity → !important nötig. */

.dash-main .module-page__head,
.dash-main .dash-main__head {
    margin-bottom: 24px;
}
.dash-main .module-page__head .eyebrow,
.dash-main .dash-main__head .eyebrow {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-mute) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    text-decoration: none !important;
}
.dash-main .module-page__head .display,
.dash-main .dash-main__head .display {
    font-family: var(--display) !important;
    font-style: italic !important;
    font-size: clamp(32px, 4vw, 44px) !important;
    color: var(--ink) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
    margin: 12px 0 6px !important;
}
.dash-main .module-page__head .lede,
.dash-main .dash-main__head .lede {
    font-family: var(--sans) !important;
    font-style: normal !important;
    font-size: 15px !important;
    color: var(--ink-mute) !important;
    line-height: 1.55 !important;
    max-width: 640px;
}

/* Surface = Card. Auf Portal-Pages weicher/wärmer als V3. */
.dash-main .surface {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(20,18,15,0.04);
}

/* Buttons im Portal: rounded statt eckig */
.dash-main .btn,
.dash-main .btn-accent,
.dash-main .btn-ghost {
    border-radius: var(--radius-md) !important;
    font-family: var(--sans) !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 10px 18px !important;
}
.dash-main .btn-accent {
    background: var(--ink) !important;
    color: var(--paper) !important;
}
.dash-main .btn-ghost {
    background: var(--paper) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
}
.dash-main .btn-ghost:hover {
    border-color: var(--accent) !important;
    background: var(--bg) !important;
}

/* Reorder-Button im Snapshot-Header (var: Anchor-Style nur visuell) */
.fp-snap-v4__link--btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--accent-ink);
    border-bottom: 1px solid var(--accent);
    line-height: 1.2;
}
.fp-snap-v4__link--btn:hover { color: var(--ink); }

/* ─── List-Toolbar v4 — Suche + Filter-Pills für Portal-Listen ───
 * Wiederverwendbar für SSL/Domain/Uptime/Files etc.
 * HTML-Pattern:
 *   <div class="gs-list-toolbar" data-list-target=".module-list tbody tr">
 *     <div class="gs-list-toolbar__search">
 *       <svg>…</svg> <input type="text" placeholder="Suchen…">
 *     </div>
 *     <div class="gs-list-toolbar__filters">
 *       <button data-filter="all" class="is-active">Alle</button>
 *       <button data-filter="ok">Gültig</button>
 *       ...
 *     </div>
 *   </div>
 * Items brauchen data-name + data-filter (z.B. data-filter="ok warn risk")
 * JS: gs-list-toolbar.js (vanilla, inline pro Page).
 */
.gs-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 16px;
    flex-wrap: wrap;
}
.gs-list-toolbar__search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 8px 16px;
    width: 320px;
    max-width: 100%;
    transition: border-color 120ms;
}
.gs-list-toolbar__search:focus-within {
    border-color: var(--accent);
}
.gs-list-toolbar__search svg {
    stroke: var(--ink-mute);
    flex-shrink: 0;
}
.gs-list-toolbar__search input {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    outline: 0;
    padding: 0;
    min-width: 0;
}
.gs-list-toolbar__search input::placeholder { color: var(--ink-mute); }
.gs-list-toolbar__filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.gs-list-toolbar__filter-btn {
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 120ms, border-color 120ms, color 120ms;
}
.gs-list-toolbar__filter-btn:hover {
    background: var(--bg);
    color: var(--ink);
}
.gs-list-toolbar__filter-btn.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--ink);
    font-weight: 500;
}
.gs-list-toolbar__filter-count {
    margin-left: 6px;
    opacity: 0.5;
    font-size: 12px;
}
.gs-list-toolbar__empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--ink-mute);
    font-style: italic;
    font-size: 14px;
    font-family: var(--sans);
}

/* ─── eTracker v4-Konsistenz-Override (Sven 2026-05-24, #4) ──────
 * eTracker-Page hat eigenes Editorial-Layout (Newspaper-Treatment,
 * 88px-Serif-Headlines, Dark-Hero-Block). Sven: „eingestaubt".
 * Wir überschreiben gezielt damit der Stil mit Dashboard/Mails konsistent ist.
 * !important nötig weil portal-etracker.css nach style.css geladen wird
 * (eigene Datei, höhere Specificity-Reihenfolge). */

/* Hero: kompakter, italic, Pastell-Gold-Pill statt Mono-Rule */
.dash-main .et-mast {
    padding-bottom: 24px !important;
    border-bottom: 1px solid var(--line-soft) !important;
    align-items: end;
}
.dash-main .et-mast .eyebrow {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em !important;
    color: var(--ink-mute) !important;
}
.dash-main .et-mast .eyebrow .rule { display: none !important; }
.dash-main .et-mast h1 {
    font-family: var(--display) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    color: var(--ink) !important;
    margin: 8px 0 4px !important;
    max-width: 720px;
}
.dash-main .et-mast h1 em {
    font-style: italic !important;
    color: var(--ink) !important;  /* kein gold-Akzent mehr, ganze Zeile italic */
}
.dash-main .et-mast .sub {
    font-family: var(--sans) !important;
    font-style: normal !important;
    font-size: 15px !important;
    color: var(--ink-mute) !important;
    line-height: 1.5 !important;
    max-width: 640px;
}

/* Period-Switcher Buttons rounded */
.dash-main .et-period {
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    background: var(--paper) !important;
    overflow: hidden;
}
.dash-main .et-period select {
    font-family: var(--sans) !important;
    font-size: 14px !important;
    font-weight: 500;
    padding: 8px 16px !important;
    min-width: 160px !important;
}

/* Total-Row: war Dark-Block, jetzt Cream-Card analog Dashboard-Stats */
.dash-main .et-totalrow {
    background: var(--paper) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line-soft) !important;
    border-radius: var(--radius-lg) !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 1px 2px rgba(20,18,15,0.04);
    margin: 24px 0 0 !important;
    overflow: hidden;
}
.dash-main .et-totalrow .et-total {
    background: var(--paper) !important;
    color: var(--ink) !important;
    border-right: 1px solid var(--line-soft) !important;
    border-bottom: 0 !important;
    padding: 24px 28px !important;
}
.dash-main .et-totalrow .et-total:last-child { border-right: 0 !important; }
.dash-main .et-totalrow .et-total .eyebrow,
.dash-main .et-totalrow .et-total .label {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-mute) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em !important;
    margin-bottom: 8px !important;
}
.dash-main .et-totalrow .et-total .value,
.dash-main .et-totalrow .et-total .num {
    font-family: var(--display) !important;
    font-style: italic !important;
    font-size: clamp(32px, 4vw, 48px) !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    line-height: 1 !important;
}
.dash-main .et-totalrow .et-total .meta {
    font-family: var(--sans) !important;
    font-size: 13px !important;
    color: var(--ink-mute) !important;
    margin-top: 6px;
}

/* Matrix: weichere Borders + Card-Wrap */
.dash-main .et-matrix {
    border: 1px solid var(--line-soft) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    margin: 24px 0 0 !important;
    background: var(--paper) !important;
}
.dash-main .et-matrix .col-h,
.dash-main .et-matrix .row-h,
.dash-main .et-matrix .cell,
.dash-main .et-matrix .corner {
    border-right: 1px solid var(--line-soft) !important;
    border-bottom: 1px solid var(--line-soft) !important;
}
.dash-main .et-matrix .col-h {
    background: var(--bg) !important;
    font-family: var(--sans) !important;
    font-size: 13px !important;
    padding: 14px 16px !important;
}
.dash-main .et-matrix .row-h {
    font-family: var(--sans) !important;
    font-size: 13px !important;
    padding: 14px 16px !important;
    color: var(--ink) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.dash-main .et-matrix .cell {
    padding: 14px 16px !important;
}

/* Drill-Section: Card-Wrap, weichere Headlines */
.dash-main .et-drill {
    margin-top: 24px !important;
}
.dash-main .et-drill h2 {
    font-family: var(--sans) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    letter-spacing: -0.005em !important;
}

/* Top-Tabelle (Top-Seiten Drilldown) */
.dash-main .et-top {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}
.dash-main .et-top-head {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-mute) !important;
    background: var(--bg) !important;
    padding: 10px 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em !important;
}
.dash-main .et-top-row {
    font-family: var(--sans) !important;
    font-size: 13px !important;
    border-bottom: 1px solid var(--line-soft) !important;
    padding: 12px 12px !important;
}

/* Foot-Note */
.dash-main .et-foot-note {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-mute) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-top: 32px !important;
}

/* Mini-Grid (3 Mini-Stats unter Total-Row, falls vorhanden) */
.dash-main .et-mini-grid {
    margin-top: 16px !important;
    gap: 12px !important;
}
.dash-main .et-mini {
    background: var(--paper) !important;
    border: 1px solid var(--line-soft) !important;
    border-radius: var(--radius-md) !important;
    padding: 16px 18px !important;
}
.dash-main .et-mini .label {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-mute) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dash-main .et-mini .v {
    font-family: var(--display) !important;
    font-style: italic !important;
    font-size: 28px !important;
    color: var(--ink) !important;
}

/* ─── Portal-Projekte v4-Konsistenz (Sven 2026-05-24) ───────────────
 * Page hat eigene .fp-headline (220px Riesen-Display) und .pj-spot-*
 * (Editorial-Spotlight-Block mit großem Cover). Bringen wir auf v4-Stil
 * analog Dashboard + eTracker.
 * !important nötig weil portal-dashboard.css und manage.css nach style.css
 * geladen werden. */

/* Page-Headline */
.pj-h1 {
    font-family: var(--display) !important;
    font-style: italic !important;
    font-size: clamp(28px, 4vw, 44px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    margin: 8px 0 4px !important;
    max-width: 720px;
}
.pj-h1 .ital,
.pj-h1 .muted,
.pj-h1 .trail {
    color: var(--ink) !important;  /* ganze Zeile durchgängig italic Ink */
    font-style: italic !important;
}

/* Projekte-Spotlight: kompakter */
.pj-spot {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--line-soft) !important;
    background: var(--paper) !important;
    box-shadow: 0 1px 2px rgba(20,18,15,0.04);
    overflow: hidden;
    margin: 16px 0 28px !important;
}
.pj-spot-cover {
    /* width:100% verhindert dass aspect-ratio aus Container-Höhe eine
       intrinsische Breite ableitet — sonst sprengt das Cover die Grid-
       Spalte (bei Body-Höhe 480px wären 1200px intrinsic). Sven QS. */
    width: 100% !important;
    aspect-ratio: 5 / 2 !important;
    background: var(--bg) !important;
    background-size: cover !important;
    background-position: center !important;
}
.pj-spot-cover::after { display: none !important; }
.pj-spot-tag {
    font-family: var(--sans) !important;
    font-size: 11px !important;
    background: var(--accent-soft) !important;
    color: var(--accent-ink) !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}
.pj-spot-code {
    font-family: var(--mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    color: var(--ink-mute) !important;
}
.pj-spot-body {
    padding: 24px 28px !important;
}
.pj-spot-eyebrow {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-mute) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em !important;
}
.pj-spot-title {
    font-family: var(--display) !important;
    font-style: italic !important;
    font-size: clamp(24px, 3vw, 36px) !important;
    color: var(--ink) !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
    margin: 6px 0 8px !important;
}
.pj-spot-sub {
    font-family: var(--sans) !important;
    font-size: 15px !important;
    color: var(--ink-mute) !important;
    line-height: 1.5 !important;
}
.pj-spot-meta {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-mute) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em !important;
}

/* Projekt-Liste: kompakter, Card-Style */
.pj-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pj-row {
    background: var(--paper) !important;
    border: 1px solid var(--line-soft) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) 140px minmax(0, 1.6fr) 80px !important;
    gap: 16px !important;
    align-items: center !important;
}
.pj-row:hover {
    border-color: var(--accent) !important;
    background: var(--bg-elev) !important;
}
.pj-row-proj { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pj-row-cover {
    width: 40px !important;
    height: 40px !important;
    background: var(--accent-soft) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--accent-ink) !important;
    font-family: var(--display) !important;
    font-style: italic !important;
    font-size: 16px !important;
    flex-shrink: 0;
}
.pj-row-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pj-row-meta .name {
    font-family: var(--sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ink) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pj-row-meta .sub {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-mute) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pj-row-status {
    font-family: var(--sans) !important;
    font-size: 12px !important;
}
.pj-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg);
    color: var(--ink-soft);
}
.pj-row-phases {
    overflow: hidden;
}
.pj-row-overall {
    font-family: var(--sans) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: right !important;
}

@media (max-width: 900px) {
    .pj-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* ─── Login-Page v4-Override (Sven 2026-05-24) ───────────────
 * .login-form-side ist eigener Container — mein dash-main-Override
 * greift nicht. Login bekommt das gleiche v4-Hero (italic, kompakter). */
.login-form-side .display {
    font-family: var(--display) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: clamp(28px, 4vw, 44px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    color: var(--ink) !important;
    margin: 12px 0 6px !important;
}
.login-form-side .lede {
    font-family: var(--sans) !important;
    font-size: 15px !important;
    color: var(--ink-mute) !important;
    line-height: 1.55 !important;
}
.login-form-side .btn,
.login-form-side .btn-accent,
.login-form-side .btn-ghost {
    border-radius: var(--radius-md) !important;
    font-family: var(--sans) !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 10px 18px !important;
}
.login-form-side .btn-accent {
    background: var(--ink) !important;
    color: var(--paper) !important;
}

/* ─── Portal-Dateien: 2-Spalten-Layout (Sven 2026-05-24) ───────────
 * Inbox + Outbox nebeneinander, damit lange Listen nicht erst scrollen
 * brauchen um den nächsten Bereich zu finden.
 * Bei <900px: 1-Spalter (Stacking). */
.gs-files-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    align-items: start;
}
.gs-files-col {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 20px 22px 16px;
    box-shadow: 0 1px 2px rgba(20,18,15,0.04);
}
.gs-files-col__title {
    font-family: var(--display);
    font-style: italic;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 14px;
    letter-spacing: -0.005em;
}
.gs-files-col__empty {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-mute);
    margin: 0;
    padding: 18px 0;
    font-style: italic;
}
.gs-files-col__table-wrap {
    /* Sticky-Header: Table-Header bleibt sichtbar beim Scrollen,
       max-height limitiert wenn die Liste lang wird */
    max-height: 60vh;
    overflow: auto;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--paper);
}
.gs-files-col__table-wrap thead th {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
    border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 900px) {
    .gs-files-grid { grid-template-columns: 1fr; }
    .gs-files-col__table-wrap { max-height: none; }
}

/* ─── Portal Locked-Module-Modal (Sven QS 2026-05-24, P2.1) ──────────
   Click auf locked Sidebar-Item öffnet diesen Dialog statt zur Page
   zu navigieren. Markup in template-parts/portal-sidebar.php. */
.gs-locked-dialog {
    width: min(480px, 92vw);
    max-width: 480px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 32px 80px -24px rgba(20, 18, 15, 0.32);
}
.gs-locked-dialog::backdrop {
    background: rgba(20, 18, 15, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.gs-locked-head {
    padding: 26px 28px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gs-locked-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0;
}
.gs-locked-title {
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
}
.gs-locked-sub {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 4px 0 0;
}
.gs-locked-foot {
    padding: 14px 28px 22px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}
.gs-locked-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s var(--ease);
    border: 1px solid transparent;
    text-decoration: none;
}
.gs-locked-btn--ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--line);
}
.gs-locked-btn--ghost:hover { color: var(--ink); border-color: var(--ink-soft); }
.gs-locked-btn--primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.gs-locked-btn--primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--paper); }
