/* ============================================
   TESTPROFIL – UNIFIED STYLES
   Design: Warm Swiss · Outfit Font · Brand Teal
   Enthält: Website/Landingpage + App-Styles
   ============================================ */

/* ---- FONT-FACE: Outfit lokal ---- */
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-ExtraBold.ttf') format('truetype');
    font-weight: 800; font-style: normal; font-display: swap;
}

/* ---- VARIABLES ---- */
:root {
    /* Brand */
    --brand: #1a5f7a;
    --brand-light: #e8f4f8;
    --brand-dark: #0d3b4d;
    --brand-hover: #154e65;
    /* Accent / Sage */
    --accent: #e8913a;
    --accent-light: #fef3e6;
    --sage: #5a7a64;
    --sage-light: #eef4f0;
    /* Status */
    --success: #3a8f6a;
    --success-light: #e6f5ed;
    --success-bg: #d4edda;
    --danger: #c0392b;
    --danger-hover: #a93226;
    --warning: #f39c12;
    /* Semantische Farben */
    --color-inverse-symbol: #7b1fa2;   /* ↔ Symbol für inverse Skalen */
    /* Text */
    --text: #1e1e1e;
    --text-muted: #6b6b6b;
    --text-light: #999;
    /* Backgrounds */
    --bg: #ffffff;
    --bg-soft: #f8f8f7;
    --bg-warm: #fafaf9;
    /* Borders */
    --border: #e8e4df;
    --border-light: #f0ece7;
    /* Sidebar (App) */
    --sidebar-bg: var(--brand-dark);
    --sidebar-hover: #163d4f;
    --sidebar-active: var(--brand);
    --sidebar-submenu: #0a2e3d;
    /* Radii */
    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 18px;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.08);
    /* Demo/Visualization Farben (anpassbar) */
    --demo-band-1: rgb(255,195,160);
    --demo-band-2: rgb(255,225,200);
    --demo-band-3: rgb(220,235,250);
    --demo-band-4: rgb(170,205,245);
    --demo-band-5: rgb(120,175,235);
    --demo-gauss-1: rgb(200,220,240);
    --demo-gauss-2: rgb(150,190,230);
    --demo-gauss-3: rgb(70,130,180);
    --demo-gauss-4: rgb(150,190,230);
    --demo-gauss-5: rgb(200,220,240);
    /* ---- Admin-Bereich (D2) ---- */
    --admin-primary: #0d3b4d;
    --admin-secondary: #1a5f7a;
    --admin-danger: #c0392b;
    --admin-danger-hover: #a93226;
    --admin-warning: #ffc107;
    --admin-success: #28a745;
    --admin-success-light: #27ae60;
    --admin-text-muted: #666;
    --admin-text-hint: #888;
    --admin-bg-readonly: #f5f5f5;
    --admin-bg-attachment: #f0f8ff;
    --admin-required: #e74c3c;
    --admin-border-light: #ddd;
    --admin-term-bg: #1e1e2e;
    --admin-term-text: #cdd6f4;
    --admin-term-muted: #6c7086;
    --admin-term-border: #313244;
    --admin-term-info: #89b4fa;
    --admin-term-success: #a6e3a1;
    --admin-term-error: #f38ba8;
    --admin-term-warning: #f9e2af;
    --admin-term-skip: #6c7086;
    --admin-badge-inactive-bg: #fdd;
    --admin-badge-inactive-text: #c00;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Number input: Pfeile entfernen */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ################################################################
   WEBSITE / LANDINGPAGE STYLES
   ################################################################ */

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.site-nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.site-nav-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-logo-icon { width: 38px; height: 38px; flex-shrink: 0; }
.site-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
}
.site-nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.site-nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.site-nav-links a:hover { color: var(--brand); }
.site-nav-links a:not(.site-btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--brand);
    transition: width 0.3s;
}
.site-nav-links a:not(.site-btn-nav):hover::after { width: 100%; }
.site-btn-nav {
    background: var(--brand) !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}
.site-btn-nav:hover {
    background: var(--brand-dark) !important;
    transform: translateY(-1px);
}
.site-btn-nav::after { display: none !important; }
.site-btn-nav-outline {
    border: 2px solid var(--brand) !important;
    color: var(--brand) !important;
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    background: transparent !important;
}
.site-btn-nav-outline:hover {
    background: var(--brand-light) !important;
    transform: translateY(-1px);
}
.site-btn-nav-outline::after { display: none !important; }
.site-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px; height: 20px;
    position: relative;
}
.site-mobile-toggle span {
    display: block;
    width: 100%; height: 2px;
    background: var(--text);
    position: absolute; left: 0;
    transition: all 0.3s;
}
.site-mobile-toggle span:nth-child(1) { top: 0; }
.site-mobile-toggle span:nth-child(2) { top: 9px; }
.site-mobile-toggle span:nth-child(3) { top: 18px; }

/* ============================================
   WEBSITE BUTTONS
   ============================================ */
.site-btn-primary {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 15px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(26,95,122,0.2);
}
.site-btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,95,122,0.3);
}
.site-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}
.site-btn-text:hover { color: var(--brand); gap: 10px; }

/* ============================================
   HERO
   ============================================ */
.site-hero {
    padding: 150px 40px 100px;
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
    align-items: center;
}
.site-hero-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-hero-eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--accent);
}
.site-hero h1 {
    font-size: 52px;
    line-height: 1.12;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}
.site-hero h1 em {
    color: var(--brand);
    font-style: normal;
    font-weight: 800;
}
.site-hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 460px;
    line-height: 1.75;
}
.site-hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Hero Visual Card */
.site-hero-visual { position: relative; }
.site-hero-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px 28px 20px;
    border: 1px solid var(--border);
}
.site-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.site-hero-card-title { font-size: 16px; font-weight: 700; color: #2c3e50; }
.site-hero-card-badge {
    background: var(--brand-light);
    color: var(--brand);
    font-size: 10px; font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.site-hero-card-meta {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin-bottom: 8px;
}
.site-hero-gauss { margin-bottom: 4px; margin-left: 42%; }
.site-hero-gauss svg { width: 100%; height: 48px; display: block; }
.site-hero-labels {
    width: 42%; min-width: 42%;
    display: flex; align-items: center;
    overflow: hidden;
}
.site-hero-group-header {
    font-size: 10px;
    font-weight: 700;
    color: #3498db;
    padding: 4px 0 2px;
    border-bottom: 1.5px solid #3498db;
    margin-bottom: 2px;
}
.site-hero-bars { display: flex; flex-direction: column; gap: 0; }
.site-hero-row {
    display: flex;
    align-items: stretch;
    height: 18px;
    margin-bottom: 1px;
}
.site-hero-lbl-test {
    font-size: 7px; font-weight: 700;
    font-family: 'Consolas','Monaco',monospace;
    min-width: 36px; text-align: right;
    display: flex; align-items: center; justify-content: flex-end;
    padding-right: 4px;
}
.site-hero-lbl-abk {
    font-size: 7px; font-weight: 600; color: #333;
    min-width: 22px;
    display: flex; align-items: center;
    padding-right: 3px;
}
.site-hero-lbl-name {
    font-size: 7px; color: #888;
    display: flex; align-items: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; max-width: 130px;
    padding-right: 4px;
}
.site-hero-bar-wrap {
    flex: 1;
    position: relative;
    border: 0.5px solid #b0bec5;
    min-width: 0;
}
.site-hero-bar-bg {
    position: absolute; top: 0; height: 100%;
}
.site-hero-bar-bg.s1 { left: 0; width: 16.667%; background: var(--demo-band-1); }
.site-hero-bar-bg.s2 { left: 16.667%; width: 16.667%; background: var(--demo-band-2); }
.site-hero-bar-bg.s3 { left: 33.334%; width: 33.333%; background: var(--demo-band-3); }
.site-hero-bar-bg.s4 { left: 66.667%; width: 16.667%; background: var(--demo-band-4); }
.site-hero-bar-bg.s5 { left: 83.334%; width: 16.666%; background: var(--demo-band-5); }
.site-hero-dot {
    position: absolute; top: 50%;
    width: 9px; height: 9px;
    border-radius: 50%; z-index: 2;
    transform: translate(-50%, -50%);
    opacity: 0.95;
}
.site-hero-float {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    font-size: 13px; font-weight: 600;
    animation: siteFloat 5s ease-in-out infinite;
    color: var(--text);
}
@keyframes siteFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.site-hero-float-1 { top: -16px; right: -24px; }
.site-hero-float-2 { bottom: -16px; left: -16px; animation-delay: 2.5s; }

/* ============================================
   SECTIONS
   ============================================ */
.site-section {
    padding: 110px 40px;
    max-width: 1360px;
    margin: 0 auto;
}
.site-section-alt {
    position: relative;
}
.site-section-alt::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    top: 0;
    background: var(--bg-soft);
    z-index: 0;
}
.site-section-alt > * {
    position: relative;
    z-index: 1;
}
.site-tests-section.site-section-white {
    background: #fff;
    border: none;
}
.site-section-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-section-label::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--accent);
}
.site-section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.site-section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: none;
    margin-bottom: 56px;
    line-height: 1.75;
}

/* ============================================
   FEATURES
   ============================================ */
.site-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.site-feature {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.site-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-light);
}
.site-feature-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.site-feature-icon.teal { background: var(--brand-light); }
.site-feature-icon.orange { background: var(--accent-light); }
.site-feature-icon.sage { background: var(--sage-light); }
.site-feature h3 { font-size: 19px; margin-bottom: 8px; font-weight: 700; }
.site-feature p { font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   TESTS SECTION
   ============================================ */
.site-tests-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 110px 0;
}
.site-tests-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
}
.site-test-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.site-test-cat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}
.site-test-cat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--brand-light);
}
.site-test-cat-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}
.site-test-cat-icon { font-size: 24px; }
.site-test-cat-title { font-weight: 600; font-size: 16px; }
.site-test-cat-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--brand);
    font-weight: 700;
    background: var(--brand-light);
    padding: 3px 10px;
    border-radius: 20px;
}
.site-test-cat-body { padding: 14px 22px; }
.site-test-cat-body p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   PRICING
   ============================================ */
.site-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.site-price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.35s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.site-price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.site-price-name { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.site-price-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.site-price-amount { font-size: 44px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.site-price-chf { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.site-price-eur { font-size: 12px; color: var(--text-muted); margin-top: 2px; margin-bottom: -4px; opacity: .75; }
.site-price-period { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.site-price-footnote { font-size: 12px; color: var(--text-muted); text-align: center; max-width: 680px; margin: 20px auto 0; line-height: 1.6; }
.site-price-features { list-style: none; text-align: left; margin-bottom: 24px; flex-grow: 1; }
.site-price-features li {
    font-size: 15px; color: var(--text-muted);
    padding: 5px 0;
    display: flex; gap: 8px;
}
.site-price-features li::before {
    content: '✓'; color: var(--success);
    font-weight: 700; flex-shrink: 0;
}
.site-btn-price {
    display: block; width: 100%;
    padding: 11px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600; font-size: 16px;
    text-align: center;
    border: 2px solid var(--border);
    color: var(--text);
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
}
.site-btn-price:hover { border-color: var(--brand); color: var(--brand); }

/* Trial-Hint-Box */
.site-trial-hint {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3e6 100%);
    border: 1px solid #f5d5a0;
    border-radius: var(--radius);
    padding: 14px 24px;
    text-align: center;
    font-size: 15px;
    color: #92400e;
    margin-bottom: 28px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.site-trial-hint a { color: #e8913a; font-weight: 700; text-decoration: underline; }
.site-trial-hint a:hover { color: #d17e2e; }

/* XL-Card (Auf Anfrage) – dashed border */
.site-price-card-contact {
    border-style: dashed;
    border-color: var(--text-muted);
}

/* "Auf Anfrage" Text statt Preis */
.site-price-amount-text {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* ============================================
   EXAMPLE / DEMO
   ============================================ */
.site-example-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}
.site-example-tab {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    transition: all 0.25s;
}
.site-example-tab:hover { border-color: var(--brand); color: var(--brand); }
.site-example-tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.site-demo-wrap { max-width: 1060px; margin: 0 auto; }
.site-demo {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.10), 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    padding: 28px 32px 20px;
    overflow: hidden;
    animation: siteExFadeIn 0.35s ease;
}
@keyframes siteExFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Demo PDF-style */
/* Demo header */
.demo-header { text-align: center; margin-bottom: 4px; }
.demo-title { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 4px; }
.demo-meta { font-size: 10px; color: #555; }

/* Gauss curve row - same 47/40/13 proportions */
.demo-gauss-row { display: flex; margin-bottom: 0; }
.demo-gauss-label { width: 47%; min-width: 47%; }
.demo-gauss-bar { width: 40%; position: relative; height: 60px; }
.demo-gauss-dates { width: 13%; }

/* Groups */
.demo-group { margin-bottom: 0; }
.demo-group-header {
    font-size: 10px; font-weight: 700; color: #1565c0;
    padding: 6px 0 2px 4px;
    border-bottom: 1.5px solid #bbdefb;
    margin-bottom: 1px;
}

/* Row: label 47% | bar 40% | dates 13% */
.demo-row { display: flex; align-items: stretch; min-height: 20px; }
.demo-label {
    width: 47%; min-width: 47%;
    display: flex; align-items: center; gap: 5px;
    padding: 0 4px; overflow: hidden;
}
.demo-test {
    font-size: 8px; font-weight: 700;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    min-width: 75px; text-align: left; white-space: nowrap;
}
.demo-abk { font-size: 8px; font-weight: 600; color: #333; min-width: 42px; white-space: nowrap; }
.demo-name { font-size: 8px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-icf-kat { padding: 2px 8px; margin: 1px 0; font-size: 8px; color: #555; }
.demo-icf-code { font-family: monospace; font-weight: 600; color: #888; }
.demo-icf-name { font-weight: 500; }

/* Color bar - fixed 40% */
.demo-bar-wrap { width: 40%; min-width: 40%; position: relative; border: 0.5px solid #b0bec5; }
.demo-seg { position: absolute; top: 0; height: 100%; }
.demo-vline { position: absolute; top: 0; width: 0; height: 100%; border-left: 0.5px solid rgba(100,120,140,0.25); z-index: 1; }
.demo-vline-center { border-left: 1px dashed rgba(80,80,80,0.3); }

/* Data dot */
.demo-dot {
    position: absolute; top: 50%;
    border-radius: 50%; z-index: 3;
    transform: translate(-50%, -50%);
}

/* CI line */
.demo-ci {
    position: absolute; top: 50%; height: 3px; z-index: 2;
    transform: translateY(-50%); opacity: 0.8;
}

/* Date labels - tiny */
.demo-dates { width: 13%; min-width: 13%; display: flex; flex-direction: column; justify-content: center; padding-left: 6px; }
.demo-date { font-size: 7.5px; color: #999; line-height: 1.2; white-space: nowrap; }
.demo-kuerzel { font-weight: 700; color: #555; }
.demo-footer { text-align: center; font-size: 10px; color: #999; margin-top: 12px; padding-top: 8px; border-top: 0.5px solid #ddd; }

/* ============================================
   CTA STRIP
   ============================================ */
.site-cta-strip {
    background: var(--brand-dark);
    color: #fff;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.site-cta-strip::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,145,58,0.1), transparent 70%);
    pointer-events: none;
}
.site-cta-strip h2 { font-size: 38px; margin-bottom: 14px; font-weight: 700; position: relative; }
.site-cta-strip p { font-size: 18px; opacity: 0.7; margin-bottom: 32px; position: relative; }
.site-cta-strip .site-btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.site-cta-strip .site-btn-primary:hover { background: var(--bg-soft); }
.site-cta-strip .site-btn-text { color: rgba(255,255,255,0.7); }
.site-cta-strip .site-btn-text:hover { color: #fff; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.45);
    padding: 52px 40px 24px;
}
.site-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: start;
}
.site-footer-brand { font-size: 18px; color: #fff; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.site-footer-desc { font-size: 15px; max-width: 260px; line-height: 1.7; }
.site-footer-cols { display: flex; gap: 52px; }
.site-footer-col h4 {
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    font-weight: 700;
}
.site-footer-col a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 15px;
    display: block;
    margin-bottom: 9px;
    transition: color 0.2s;
}
.site-footer-col a:hover { color: #fff; }
.site-footer-bottom {
    max-width: 1360px;
    margin: 36px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-container { max-width: 800px; margin: 0; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
}
.faq-question:hover { color: var(--brand); }
.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--brand);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 0 24px 0; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; margin: 0 0 12px 0; text-align: left; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Inverse-Skalen Symbol */
.inverse-symbol { color: var(--color-inverse-symbol); }

/* ============================================
   ANIMATIONS
   ============================================ */
.site-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.7s cubic-bezier(0.16,1,0.3,1);
}
.site-fade-up.visible { opacity: 1; transform: translateY(0); }

/* ################################################################
   APP STYLES (Testerfassung)
   ################################################################ */

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 600px;
    margin: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
    border: 1px solid var(--border-light);
}
.modal-content h2 { color: var(--brand-dark); margin-bottom: 16px; font-size: 22px; }
.modal-content h3 { color: var(--brand); margin: 20px 0 10px; font-size: 17px; }
.modal-body { margin-bottom: 25px; line-height: 1.7; font-size: 15px; color: var(--text-muted); }
.modal-body p { margin-bottom: 12px; }

/* ============================================
   CUSTOM DIALOG (ersetzt browser alert/confirm/prompt)
   ============================================ */
#tp-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
#tp-dialog-overlay.visible { display: flex; }
#tp-dialog-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    border: 1px solid var(--border-light);
    text-align: center;
    font-family: Outfit, system-ui, sans-serif;
    animation: tp-dlg-in 0.15s ease-out;
}
@keyframes tp-dlg-in {
    from { opacity: 0; transform: scale(0.95) translateY(-8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
#tp-dialog-icon { font-size: 32px; margin-bottom: 8px; }
#tp-dialog-title { font-size: 16px; font-weight: 700; color: var(--brand-dark); margin-bottom: 6px; }
#tp-dialog-msg { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
#tp-dialog-input-wrap { margin-bottom: 16px; }
#tp-dialog-input {
    width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: inherit;
    outline: none; transition: border-color 0.15s;
}
#tp-dialog-input:focus { border-color: var(--brand); }
#tp-dialog-buttons { display: flex; gap: 8px; justify-content: center; }
.tp-dlg-btn {
    padding: 9px 22px; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.tp-dlg-ok { background: var(--brand); color: #fff; }
.tp-dlg-ok:hover { background: var(--brand-hover); }
.tp-dlg-warn { background: var(--accent); color: #fff; }
.tp-dlg-warn:hover { opacity: 0.9; }
.tp-dlg-cancel { background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.tp-dlg-cancel:hover { background: var(--border-light); }

/* ============================================
   CONTAINER / LAYOUT
   ============================================ */
.container { display: flex; min-height: 100vh; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 1001;
}
.sidebar-header {
    padding: 20px 15px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 100%;
}
.view-toggle button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}
.view-toggle button.active { background: var(--brand); color: white; }
.view-toggle button:hover:not(.active) { background: var(--sidebar-hover); color: rgba(255,255,255,0.7); }

.sidebar-content { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-content::-webkit-scrollbar { width: 5px; }
.sidebar-content::-webkit-scrollbar-track { background: transparent; }
.sidebar-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.sidebar-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* Category (Testarten) */
.sidebar-category { border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar-category.has-values > .category-header { background: rgba(58,143,106,0.15); }
.sidebar-category.has-values > .category-header .sidebar-count { background: var(--success); display: inline; }
.category-header {
    padding: 13px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    color: white;
}
.category-header:hover { background: var(--sidebar-hover); }
.category-icon { font-size: 18px; }
.category-name { flex: 1; font-size: 13px; font-weight: 500; }
.category-toggle { color: rgba(255,255,255,0.35); transition: transform 0.2s; font-size: 11px; }
.sidebar-category.open .category-toggle { transform: rotate(180deg); }
.category-tests { display: none; padding-left: 15px; background: var(--sidebar-submenu); }
.sidebar-category.open .category-tests { display: block; }

.sidebar-test {
    padding: 9px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 12px;
    transition: background 0.2s;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,0.6);
}
.sidebar-test:hover { background: var(--sidebar-hover); color: rgba(255,255,255,0.85); }
.sidebar-test.active { background: var(--brand); border-left-color: var(--accent); color: white; }
.sidebar-test.has-values { background: rgba(58,143,106,0.2); border-left-color: var(--success); color: rgba(255,255,255,0.85); }
.sidebar-test.has-values:hover { background: rgba(58,143,106,0.3); }
.sidebar-test .test-name { flex: 1; }
.sidebar-test .test-count {
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: auto;
}
.sidebar-test.has-values .test-count { background: var(--success); color: white; }

/* Sidebar Test-Gruppen (HSP, DERET, etc.) */
.sidebar-group { border-bottom: 1px solid rgba(255,255,255,0.03); }
.sidebar-group-header {
    padding: 9px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    transition: background 0.2s;
    user-select: none;
    border-left: 3px solid transparent;
}
.sidebar-group-header:hover { background: var(--sidebar-hover); color: rgba(255,255,255,0.65); }
.sidebar-group.has-values > .sidebar-group-header { background: rgba(58,143,106,0.2); color: rgba(255,255,255,0.85); border-left-color: var(--success); }
.sidebar-group.has-values > .sidebar-group-header:hover { background: rgba(58,143,106,0.3); }
.sidebar-group.has-values > .sidebar-group-header .group-count { background: var(--success); color: white; }
.sidebar-group-header .group-name { flex: 1; font-weight: 600; }
.sidebar-group-header .group-count { font-size: 10px; background: rgba(255,255,255,0.1); padding: 1px 6px; border-radius: 8px; margin-right: 6px; }
.sidebar-group-header .group-toggle { font-size: 9px; transition: transform 0.2s; }
.sidebar-group.open > .sidebar-group-header .group-toggle { transform: rotate(90deg); }
.sidebar-group-tests { display: none; }
.sidebar-group.open > .sidebar-group-tests { display: block; }
.sidebar-test.sidebar-test-grouped { padding-left: 28px; }

/* ICF Kategorien in Sidebar */
.sidebar-kat {
    padding: 9px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 12px;
    transition: background 0.2s;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,0.6);
}
.sidebar-kat:hover { background: var(--sidebar-hover); }
.sidebar-kat.active { background: var(--brand); border-left-color: var(--accent); color: white; }
.sidebar-kat.has-values { background: rgba(58,143,106,0.2); border-left-color: var(--success); }
.sidebar-kat.has-values:hover { background: rgba(58,143,106,0.3); }
.sidebar-kat .kat-code { margin-right: 10px; }
.sidebar-kat .kat-name { flex: 1; }
.sidebar-kat.active .kat-code,
.sidebar-kat.active .kat-name { color: #fff; }

/* ICF Category in Sidebar */
.icf-category { border-bottom: 1px solid rgba(255,255,255,0.06); }
.icf-category .icf-kategorien { display: none; }
.icf-category.open .icf-kategorien { display: block; }

/* ICF Items */
.sidebar-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}
.sidebar-item:hover { background: var(--sidebar-hover); }
.sidebar-item.active { background: var(--brand); }
.sidebar-item.has-values { background: rgba(58,143,106,0.2); border-left-color: var(--success); }
.sidebar-item.has-values:hover { background: rgba(58,143,106,0.3); }
.sidebar-count {
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    display: none;
}
.sidebar-item.has-values .sidebar-count { background: var(--success); display: inline; }

/* ============================================
   MAIN AREA
   ============================================ */
.main-area {
    flex: 1;
    margin-left: 320px;
    padding: 20px;
    padding-top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-warm);
}

/* ============================================
   HEADER BOX
   ============================================ */
.header-box {
    position: fixed;
    top: 0;
    left: 320px;
    right: 0;
    background: var(--bg);
    padding: 10px 20px 0 40px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    overflow: visible;
}
.header-row-1 { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; flex-wrap: wrap; }
.header-row-2 {
    display: flex;
    align-items: center;
    background: var(--brand-light);
    margin: 0 -20px 0 -40px;
    padding: 8px 20px 8px 40px;
    border-top: 1px solid var(--border-light);
}

/* Kind-Info */
.header-box .kind-info { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.header-box .kind-info .input-group { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.header-box .kind-info .input-group label { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.header-box .kind-info .input-group input {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: white;
    color: var(--text);
    width: 100px;
    transition: border-color 0.2s;
    font-family: 'Outfit', sans-serif;
}
.header-box .kind-info .input-group input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,95,122,0.1); }
.header-box .kind-info .input-group input[readonly] { background: var(--bg-soft); font-weight: 600; width: 50px; }
.header-box .kind-info .input-group input[type="date"] { width: 130px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; flex-wrap: wrap; }
.header-actions .btn { padding: 6px 12px !important; font-size: 12px !important; border-radius: var(--radius-sm); white-space: nowrap; }
.header-actions .file-input { display: none; }
.user-menu { display: flex; align-items: center; gap: 10px; margin-left: 15px; flex-shrink: 0; }
.user-name { font-size: 12px; color: var(--text-muted); }
.btn-logout {
    background: var(--danger);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}
.btn-logout:hover { background: var(--danger-hover); }

/* Zeitpunkt-Bar */
.header-row-2 .zeitpunkt-bar { display: flex; align-items: center; gap: 10px; width: 100%; }
.zeitpunkt-label { color: var(--text-muted); font-size: 12px; white-space: nowrap; font-weight: 500; }
.header-row-2 .zeitpunkt-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.header-row-2 .zeitpunkt-tab {
    background: white;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}
.header-row-2 .zeitpunkt-tab:hover { background: var(--bg-soft); border-color: var(--brand); }
.header-row-2 .zeitpunkt-tab.active { background: var(--brand); color: white; border-color: var(--brand); }
.header-row-2 .zeitpunkt-actions { display: flex; gap: 4px; margin-left: auto; }
.header-row-2 .btn-icon {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}
.header-row-2 .btn-icon:hover { background: var(--bg-soft); border-color: var(--brand); }

/* Zeitpunkt generic */
.zeitpunkt-tabs { display: flex; gap: 4px; }
.zeitpunkt-actions { display: flex; gap: 4px; }
.btn-icon {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.btn-icon:hover { background: var(--border-light); }

/* Font size controls */
.font-size-controls { display: flex; gap: 2px; margin-right: 4px; }
.btn-font {
    font-weight: 700;
    font-size: 13px !important;
    padding: 4px 8px !important;
    min-width: 32px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.btn-font-reset { font-size: 12px !important; min-width: 28px; opacity: 0.6; }
.btn-font-reset:hover { opacity: 1; }

/* ============================================
   BUTTONS (App)
   ============================================ */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--text-light); color: white; }
.btn-secondary:hover { background: var(--text-muted); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #2e7a58; }
.btn-info { background: #2980b9; color: white; }
.btn-info:hover { background: #2471a3; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); }
.file-input { display: none; }

/* ============================================
   CONTENT AREA
   ============================================ */
.content-split { display: flex; gap: 20px; flex: 1; min-height: 0; }
.content-box {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow-y: auto;
}
.content-box.full-width { max-width: 100%; }
.content-title {
    font-size: 18px;
    color: var(--brand-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand);
    display: flex;
    align-items: center;
    gap: 8px;
}
.title-sub { font-size: 12px; color: var(--text-light); font-weight: normal; margin-left: auto; }

/* ============================================
   TEST ITEMS
   ============================================ */
.test-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.test-item:hover { box-shadow: var(--shadow-sm); }
.test-header {
    padding: 12px 15px;
    background: var(--bg-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}
.test-header:hover { background: var(--brand-light); }
.test-header.has-values { background: var(--success-light); border-left: 4px solid var(--success); }
.test-header.has-values:hover { background: #d0eadb; }
.test-header.has-values.open { background: #d0eadb; }
.test-header.has-values .test-badge { background: var(--success); }
.test-header .test-name { font-weight: 600; color: var(--brand-dark); font-size: 16px; }
.test-header .test-full-name {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 10px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Outfit', sans-serif;
}
.test-badge {
    font-size: 12px;
    background: var(--brand);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}
.test-toggle { margin-left: auto; color: rgba(255, 255, 255, 0.7); transition: transform 0.2s; }
.test-header.open .test-toggle { transform: rotate(180deg); }
.test-content { display: none; padding: 15px; background: var(--bg-warm); border-top: 1px solid var(--border-light); }
.test-content.open { display: block; }

/* Sammeltests / Test-Gruppen im Content-Bereich */
.test-group { margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.test-group-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: var(--brand-light);
    cursor: pointer; transition: background 0.2s;
    border-left: 4px solid var(--brand);
}
.test-group-header:hover { background: #d4eaf2; }
.test-group-header.has-values { background: var(--success-light); border-left-color: var(--success); }
.test-group-header .test-name { font-weight: 700; color: var(--brand-dark); font-size: 16px; }
.test-group-header .test-full-name { flex: 1; color: #666; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.test-group-header .test-badge { background: var(--brand); color: white; padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.test-group-header.has-values .test-badge { background: var(--success); }
.test-group > .test-content { padding: 10px; background: #fafbfc; }
.test-group > .test-content .test-item { margin-bottom: 6px; }
.sammeltest-desc { padding: 8px 14px; margin-bottom: 8px; background: #f0f8ff; border-radius: var(--radius); font-size: 14px; color: #555; line-height: 1.5; border-left: 3px solid var(--brand); }

/* ============================================
   SKALA ROW
   ============================================ */
.skala-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 15px;
    transition: background 0.2s;
    font-family: 'Outfit', sans-serif;
}
.skala-row:last-child { border-bottom: none; }
.skala-row.has-value {
    background: rgba(58,143,106,0.06);
    border-left: 3px solid var(--success);
    padding-left: 10px;
    margin-left: -10px;
}

/* PDF Checkbox */
.pdf-checkbox-label { display: flex; align-items: center; gap: 2px; cursor: pointer; flex-shrink: 0; padding: 2px; border-radius: 4px; transition: background 0.2s; }
.pdf-checkbox-label:hover { background: rgba(21, 101, 192, 0.1); }
.pdf-checkbox { width: 14px; height: 14px; cursor: pointer; accent-color: #1565c0; margin: 0; }
.pdf-icon { font-size: 12px; opacity: 0.5; transition: opacity 0.2s; }
.pdf-checkbox:checked + .pdf-icon { opacity: 1; }
.skala-row.is-subtest .pdf-checkbox-label { margin-left: 15px; }
.skala-row.is-subtest .pdf-checkbox { width: 12px; height: 12px; }
.skala-row.is-subtest .pdf-icon { font-size: 10px; }

/* Skala-Felder: flexible Breite für vollständige Skalennamen */
.skala-abk {
    min-width: 60px;
    max-width: 160px;
    font-weight: 600;
    color: var(--brand);
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    text-align: right;
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.skala-name {
    flex: 1;
    color: var(--text-muted);
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    min-width: 0;
}
.skala-inputs { display: flex; gap: 6px; flex-shrink: 0; }
.skala-inputs input {
    min-width: 50px;
    width: 65px;
    max-width: 80px;
    padding: 8px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    -moz-appearance: textfield;
}
/* Number spinner entfernen */
.skala-inputs input::-webkit-outer-spin-button,
.skala-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.skala-inputs input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,95,122,0.1); }
.skala-inputs input.has-value { background: var(--success-bg); border-color: var(--success); font-weight: 600; }
.skala-inputs input:disabled { background: var(--bg-soft); color: #aaa; cursor: not-allowed; }
.skala-inputs select {
    min-width: 50px;
    width: 65px;
    max-width: 80px;
    padding: 6px 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    background: white;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.skala-inputs select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,95,122,0.1); }
.skala-inputs select.has-value { background: var(--success-bg); border-color: var(--success); font-weight: 600; }
.skala-inputs select:disabled { background: var(--bg-soft); color: #aaa; cursor: not-allowed; }

/* NWT-spezifische Farben (C4 dynamische Normwerttyp-Felder) */
.nwt-input { border-color: var(--border) !important; }
.nwt-pr  { border-color: var(--brand) !important; }
.nwt-iq  { border-color: var(--accent) !important; }
.nwt-t   { border-color: #7c5cbf !important; }
.nwt-wp  { border-color: #e67e22 !important; }
.nwt-sw  { border-color: #2980b9 !important; }
.nwt-sta { border-color: #9c27b0 !important; }
.nwt-rw  { border-color: #7f8c8d !important; }
.nwt-z   { border-color: #16a085 !important; }
.nwt-c   { border-color: #d35400 !important; }
.nwt-ob  { border-color: #95a5a6 !important; }
.nwt-q   { border-color: #8e44ad !important; }
select.nwt-q { width: 65px !important; min-width: 65px; max-width: 80px; background: #fff !important; cursor: pointer; padding: 8px 6px; font-size: 16px; text-align: center; }

.nwt-pr.has-value  { background: var(--brand-light) !important; border-color: var(--brand) !important; }
.nwt-iq.has-value  { background: var(--accent-light) !important; border-color: var(--accent) !important; }
.nwt-t.has-value   { background: #f0ebf8 !important; border-color: #7c5cbf !important; }
.nwt-wp.has-value  { background: #fdf2e9 !important; border-color: #e67e22 !important; }
.nwt-sw.has-value  { background: #ebf5fb !important; border-color: #2980b9 !important; }
.nwt-sta.has-value { background: #f3e5f5 !important; border-color: #9c27b0 !important; }
.nwt-rw.has-value  { background: #f2f3f4 !important; border-color: #7f8c8d !important; }
.nwt-z.has-value   { background: #e8f6f3 !important; border-color: #16a085 !important; }
.nwt-c.has-value   { background: #fbeee6 !important; border-color: #d35400 !important; }
.nwt-ob.has-value  { background: #eaecee !important; border-color: #95a5a6 !important; }
.nwt-q.has-value   { background: #fff !important; border-color: #8e44ad !important; font-weight: 600; }

/* Legacy: alte Klassen behalten für Kompatibilität */
.input-pr { border-color: var(--brand) !important; }
.input-t { border-color: #7c5cbf !important; }
.input-iq { border-color: var(--accent) !important; }
.input-pr.has-value { background: var(--brand-light) !important; }
.input-t.has-value { background: #f0ebf8 !important; }
.input-iq.has-value { background: var(--accent-light) !important; }

/* ============================================
   ICF-KATEGORIEN IM HAUPTBEREICH
   ============================================ */
.icf-kategorie {
    margin-bottom: 10px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.icf-kategorie-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-soft);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    gap: 10px;
    border-left: 4px solid var(--brand);
}
.icf-kategorie-header:hover { background: var(--brand-light); }
.icf-kategorie-header.has-values { background: var(--success-light); border-left-color: var(--success); }
.icf-kategorie-header.open { background: var(--brand-light); }
.icf-kategorie-header.has-values.open { background: #d0eadb; }
.icf-code {
    font-weight: 700;
    color: var(--brand);
    font-size: 14px;
    min-width: 55px;
    font-family: 'Consolas', 'Monaco', monospace;
}
.icf-name { flex: 1; font-weight: 500; color: var(--brand-dark); font-size: 13px; }
.icf-badge {
    background: var(--border);
    color: var(--brand-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.icf-kategorie-header.has-values .icf-badge { background: var(--success); color: white; }
.icf-toggle { color: var(--text-light); font-size: 12px; transition: transform 0.2s; }
.icf-kategorie-header.open .icf-toggle { transform: rotate(180deg); }
.icf-kategorie-content {
    display: none;
    padding: 10px 15px 15px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-warm);
}
.icf-kategorie-content.open { display: block; }
.icf-kategorie-content .test-item { margin-bottom: 5px; }
.icf-kategorie-content .test-header { background: var(--bg-soft); padding: 8px 12px; }
.icf-kategorie-content .test-header:hover { background: var(--brand-light); }

/* ============================================
   WELCOME
   ============================================ */
.welcome { text-align: center; padding: 80px 40px; color: var(--text-muted); }
.welcome-icon { font-size: 100px; margin-bottom: 24px; }
.welcome h2 { color: var(--brand-dark); margin-bottom: 16px; font-size: 32px; font-weight: 700; }
.welcome p { font-size: 18px; line-height: 1.7; margin-bottom: 15px; }
.welcome .stats-info { font-size: 16px; color: var(--text-muted); margin: 30px 0; }
.welcome .stats-info span {
    display: inline-block;
    padding: 8px 18px;
    background: var(--brand-light);
    color: var(--brand-dark);
    border-radius: 24px;
    margin: 5px;
    font-weight: 500;
}

/* Feedback Hint */
.feedback-hint {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--brand-light);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    border-left: 3px solid var(--brand);
}
.feedback-hint a { color: var(--brand); text-decoration: none; font-weight: 600; }
.feedback-hint a:hover { text-decoration: underline; }

/* ============================================
   ZEITPUNKT-VERWALTUNG
   ============================================ */
.zeitpunkt-tab .tab-date { font-size: 0.75rem; opacity: 0.8; }
.zeitpunkt-tab .tab-count { background: rgba(255,255,255,0.3); padding: 1px 6px; border-radius: 10px; font-size: 0.7rem; }
.zeitpunkt-tab.active .tab-count { background: rgba(255,255,255,0.3); }

/* Verlaufs-Modal */
.verlauf-option { padding: 12px; margin: 8px 0; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; }
.verlauf-option:hover { border-color: var(--brand); background: var(--brand-light); }
.verlauf-option.selected { border-color: var(--brand); background: var(--brand-light); }
.verlauf-option input[type="checkbox"] { margin-right: 10px; }

/* ============================================
   HIERARCHISCHE STRUKTUR (Index → Subtests)
   ============================================ */
.index-section { margin-bottom: 4px; }
.index-header {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--sidebar-bg);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    color: white;
}
.index-header:hover { background: var(--sidebar-hover); }
.index-header.has-values { background: var(--success); }
.index-header.has-values:hover { background: #2d7a57; }
.index-header.open { border-radius: var(--radius) var(--radius) 0 0; }
.index-name { flex: 1; font-weight: 600; font-size: 16px; color: white; font-family: 'Outfit', sans-serif; }
.index-header.has-values .index-name { color: white; }
.nwt-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 10px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}
.index-header.has-values .nwt-badge { background: rgba(255, 255, 255, 0.25); color: white; }
.index-content {
    display: none;
    padding: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.index-content.open,
.index-header.open + .index-content { display: block; }

/* Subtest-Zeilen */
.skala-row.is-subtest,
.skala-row.subtest-skala {
    margin-left: 20px;
    padding: 8px 12px;
    border-left: 2px solid var(--brand);
    background: var(--bg-soft);
    font-size: 14px;
}
.skala-row.is-subtest .skala-abk,
.skala-row.subtest-skala .skala-abk { font-size: 13px; min-width: 45px; }
.skala-row.is-subtest .skala-name,
.skala-row.subtest-skala .skala-name { font-size: 13px; }
.skala-row.is-subtest .skala-inputs input,
.skala-row.subtest-skala .skala-inputs input { padding: 6px 8px; font-size: 14px; }

.skala-row.index-skala { background: transparent; font-weight: 500; padding: 10px 12px; font-size: 16px; }

/* Sub-Index (Ebene 2, z.B. DS/HS in SON-R, ZV/RE in TEDI-MATH) */
.sub-index-section { margin: 4px 0 4px 12px; }
.sub-index-header {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    background: var(--brand);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    color: white;
}
.sub-index-header:hover { background: var(--brand-hover); }
.sub-index-header.has-values { background: var(--success); }
.sub-index-header.has-values:hover { background: #2d7a57; }
.sub-index-header.open { border-radius: var(--radius) var(--radius) 0 0; }
.sub-index-header .index-name { flex: 1; font-weight: 600; font-size: 14px; color: white; font-family: 'Outfit', sans-serif; }
.sub-index-header .nwt-badge { background: rgba(255, 255, 255, 0.2); color: white; padding: 2px 6px; border-radius: 4px; font-size: 12px; margin-right: 8px; font-weight: 500; }
.sub-index-header.has-values .nwt-badge { background: rgba(255, 255, 255, 0.25); color: white; }
.sub-index-content {
    display: none;
    padding: 6px 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.sub-index-content.open,
.sub-index-header.open + .sub-index-content { display: block; }
.skala-row.sub-index-skala { background: transparent; font-weight: 500; padding: 8px 10px; font-size: 15px; margin-left: 0; border-left: none; }

/* Beurteiler-Sektion */
.beurteiler-section { margin-bottom: 4px; }
.beurteiler-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f0f4f8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}
.beurteiler-header:hover { background: var(--bg); border-color: var(--brand); }
.beurteiler-header.has-values { background: #e8f5e9; border-color: #4caf50; }
.beurteiler-header.open { border-radius: var(--radius) var(--radius) 0 0; border-bottom-color: transparent; }
.beurteiler-name { flex: 1; font-weight: 500; color: var(--text); }
.beurteiler-content {
    display: none;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.beurteiler-header.open + .beurteiler-content { display: block; }

/* Spezielle Input-Typen */
.input-wp, .input-c, .input-z, .input-rw { width: 55px !important; }
.input-stanine { width: 85px !important; }
.single-input { padding-left: 0 !important; }
.input-stanine { border-color: #9c27b0 !important; }
.input-stanine.has-value { background: #f3e5f5 !important; border-color: #9c27b0 !important; }
.stanine-inputs { padding-left: 0 !important; }

/* Mobile Menu Toggle - default hidden on desktop */
.mobile-menu-toggle { display: none; }
.sidebar-overlay { display: none; }

/* ============================================
   RESPONSIVE - WEBSITE (Landing Page)
   ============================================ */
@media (max-width: 1024px) {
    .site-hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 120px 32px 60px;
    }
    .site-hero h1 { font-size: 38px; }
    .site-features { grid-template-columns: repeat(2, 1fr); }
    .site-test-categories { grid-template-columns: 1fr 1fr; }
    .site-pricing-cards { grid-template-columns: repeat(2, 1fr); }
    .site-footer-inner { flex-direction: column; gap: 32px; }
    .site-section { padding: 80px 32px; }
}

@media (max-width: 768px) {
    /* Website Navigation */
    .site-nav-links { display: none; }
    .site-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: #fff;
        padding: 24px 40px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
        box-shadow: var(--shadow-md);
    }
    .site-mobile-toggle { display: block; }

    /* Website Hero */
    .site-hero { padding: 110px 20px 40px; }
    .site-hero h1 { font-size: 30px; }
    .site-hero-float { display: none; }
    .site-hero-actions { flex-direction: column; align-items: flex-start; }
    .site-hero-lbl-name { display: none; }
    .site-hero-labels { width: 35%; min-width: 35%; }
    .site-hero-card { padding: 16px 18px 14px; }
    .site-hero-card-title { font-size: 13px; }
    .site-hero-gauss { margin-left: 35%; }

    /* Website Grids */
    .site-features, .site-test-categories, .site-pricing-cards { grid-template-columns: 1fr; }

    /* Website Sections */
    .site-section { padding: 64px 20px; }
    .site-section-title { font-size: 28px; }

    /* Website CTA */
    .site-cta-strip { padding: 60px 20px; }
    .site-cta-strip h2 { font-size: 26px; }

    /* Website Footer */
    .site-footer-cols { flex-direction: column; gap: 24px; }
    .site-footer-bottom { flex-direction: column; gap: 8px; }

    /* Website Demo */
    .site-demo { padding: 16px 12px 12px; }
    .demo-gauss-label { width: 35%; min-width: 35%; }
    .demo-gauss-bar { width: 52%; }
    .demo-gauss-dates { width: 13%; }
    .demo-label { width: 35%; min-width: 35%; }
    .demo-bar-wrap { width: 52%; min-width: 52%; }
    .demo-test { min-width: 50px; font-size: 7px; }
    .demo-abk { font-size: 7px; min-width: 22px; }
    .demo-name { display: none; }
    .demo-icf-kat { font-size: 7px; padding: 2px 6px; }
    .demo-title { font-size: 14px; }
    .demo-meta { font-size: 9px; }
    .demo-group-header { font-size: 9px; }
    .demo-row { min-height: 14px; }
    .demo-bar-wrap { width: 52%; min-width: 52%; }
}

/* ============================================
   RESPONSIVE - APP
   ============================================ */
@media (max-width: 1200px) {
    .preview-box { width: 250px; min-width: 250px; }
    .kind-info { grid-template-columns: repeat(3, 1fr); }
    /* App Header: Button-Labels ausblenden → nur Icons */
    .header-actions .btn-label { display: none; }
    .header-actions .btn { padding: 5px 10px !important; font-size: 13px !important; }
    .font-size-controls { display: none; }
    .user-menu .btn-label { display: none; }
    .user-name-text { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
}

@media (max-width: 1024px) {
    .sidebar { width: 280px; min-width: 280px; }
    .main-area { margin-left: 280px; padding: 15px; }
    .header-box { left: 280px; padding-left: 35px; }
    .preview-box { display: none; }
    .content-split { flex-direction: column; }
    .kind-info { grid-template-columns: repeat(3, 1fr); }
    .skala-inputs input { width: 55px; }
    .skala-abk { width: 80px; font-size: 11px; }
    /* Header-Actions auf eigene Zeile */
    .header-actions { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; }
    .user-menu { order: 2; margin-left: auto; }
}

@media (max-width: 768px) {
    /* App Sidebar */
    .sidebar {
        position: fixed;
        left: 0; top: 0;
        width: 280px; min-width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-left: 0 !important; padding: 15px; width: 100%; }

    /* App Header – Mobile Portrait */
    .header-box { left: 0; padding: 8px 15px; padding-left: 55px; }
    .header-row-1 { flex-wrap: wrap; gap: 6px; margin-bottom: 0; }

    /* Kind-Info: kompaktes Grid statt display:none */
    .header-box .kind-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 8px;
        width: 100%;
        order: 10;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid var(--border-light);
    }
    .header-box .kind-info .input-group { gap: 4px; }
    .header-box .kind-info .input-group label { font-size: 10px; min-width: 32px; }
    .header-box .kind-info .input-group input { padding: 4px 6px; font-size: 12px; width: 100% !important; }
    .header-box .kind-info .input-group input[type="date"] { width: 100% !important; }
    .header-box .kind-info .input-group input[readonly] { width: 100% !important; }

    /* Actions: kompakte Leiste */
    .header-actions {
        display: flex;
        gap: 4px;
        margin-left: auto;
        order: 2;
    }
    .header-actions .btn { padding: 5px 8px !important; font-size: 11px !important; }
    /* Auf Mobile nur Icon-Buttons: Text ausblenden */
    .header-actions .btn { overflow: hidden; max-width: 36px; white-space: nowrap; }
    .header-actions label.btn { max-width: 36px; }
    .font-size-controls { display: none; }

    .user-menu { margin-left: auto; order: 3; }
    .user-name { display: none; }
    .btn-logout { padding: 5px 10px; font-size: 11px; }

    /* Zeitpunkt-Leiste kompakt */
    .header-row-2 {
        margin: 0 -15px 0 -55px;
        padding: 4px 15px 4px 55px;
    }
    .zeitpunkt-bar { flex-wrap: wrap; width: 100%; }
    .zeitpunkt-tabs { flex-wrap: wrap; }
    .zeitpunkt-tab { padding: 3px 6px; font-size: 10px; }
    .zeitpunkt-label { font-size: 10px; }
    .zeitpunkt-actions .btn-icon { font-size: 12px; padding: 2px 4px; }

    .main-area { padding-top: 60px; }
    .content-box { padding: 15px; }

    /* App Mobile Menu */
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed;
        top: 10px; left: 10px;
        z-index: 1002;
        background: var(--brand);
        color: white;
        border: none;
        border-radius: var(--radius-sm);
        padding: 10px 12px;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 2px 12px rgba(26,95,122,0.3);
        font-family: 'Outfit', sans-serif;
    }
    .mobile-menu-toggle:hover { background: var(--brand-hover); }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.active { display: block; }

    /* App Skala Rows */
    .skala-row { flex-wrap: wrap; gap: 8px; }
    .skala-abk { width: 70px; font-size: 11px; }
    .skala-name { flex: 1 1 calc(100% - 90px); font-size: 11px; }
    .skala-inputs { width: 100%; justify-content: flex-start; padding-left: 80px; }
    .skala-inputs input { width: 60px; }

    /* App Zeitpunkt */
    .zeitpunkt-bar { flex-wrap: wrap; width: 100%; }
    .zeitpunkt-tabs { flex-wrap: wrap; }
    .zeitpunkt-tab { padding: 4px 8px; font-size: 11px; }

    /* App Hierarchical */
    .index-header, .beurteiler-header { padding: 8px 10px; }
    .sub-index-header { padding: 6px 8px; }
    .index-name, .beurteiler-name { font-size: 12px; }
    .sub-index-header .index-name { font-size: 12px; }
    .sub-index-section { margin-left: 8px; }
    .skala-row.is-subtest, .skala-row.subtest-skala { margin-left: 15px; }
}

@media (max-width: 600px) {
    .sidebar { width: 85vw; min-width: 85vw; transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-area { padding: 10px; padding-top: 50px; margin-left: 0 !important; }
    .header-box { padding: 6px 10px 6px 50px; }
    .header-row-1 { gap: 4px; margin-bottom: 0; }

    /* Kind-Info: einspaltiges Grid auf kleinen Phones */
    .header-box .kind-info {
        grid-template-columns: 1fr 1fr;
        gap: 3px 6px;
    }
    .header-box .kind-info .input-group label { font-size: 9px; }
    .header-box .kind-info .input-group input { padding: 3px 5px; font-size: 11px; }

    /* Actions noch kompakter */
    .header-actions .btn { padding: 4px 6px !important; font-size: 10px !important; max-width: 32px; }

    .content-title { font-size: 15px; }
    .test-header .test-full-name { display: none; }
    .skala-abk { width: 60px; font-size: 10px; }
    .skala-name { font-size: 10px; }
    .skala-inputs { padding-left: 70px; }
    .skala-inputs input { width: 50px; padding: 5px; font-size: 11px; }
    .icf-kategorie-header { padding: 10px 12px; }
    .icf-code { font-size: 12px; min-width: 45px; }
    .icf-name { font-size: 12px; }
    .modal-content { margin: 10px; padding: 20px; max-height: 90vh; overflow-y: auto; }
}

/* ============================================
   LEGAL PAGES (AGB, Datenschutz, Impressum)
   ============================================ */
.legal-content { max-width: 820px; margin: 0 auto; padding: 140px 40px 80px; }
.legal-content h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.legal-content .legal-date { font-size: 15px; color: var(--text-muted); margin-bottom: 48px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin-top: 40px; margin-bottom: 12px; }
.legal-content h3 { font-size: 18px; font-weight: 600; margin-top: 28px; margin-bottom: 8px; }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: 16px; }
.legal-content a { color: var(--brand); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content .highlight-box {
    background: var(--accent-light, #fef9e7);
    border-left: 4px solid var(--accent, #f39c12);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}
.legal-content .highlight-box p { color: var(--text); margin-bottom: 0; }
