/* KI-Dunkelziffer – Erweiterungen: Landingpage, Befragung, Diagramme */

:root {
    /* Diagramm-Palette (validiert: Kategorien, Ordinal, Divergierend) */
    --viz-1: #8b2635;        /* Markenrot – Serie 1 / Sequenziell */
    --viz-2: #2a78d6;
    --viz-3: #eda100;
    --viz-4: #1baf7a;
    --viz-5: #4a3aa7;
    --viz-6: #eb6834;
    --viz-deemph: #d9d9de;   /* De-Emphasis-Grau */
    --viz-grid: #ececef;
    --viz-axis: #c9c9cf;
    --viz-div-2n: #8b2635;   /* starke Ablehnung */
    --viz-div-1n: #cf8391;
    --viz-div-0:  #e5e7eb;   /* neutral */
    --viz-div-1p: #86b6ef;
    --viz-div-2p: #2a78d6;   /* starke Zustimmung */
    --ord-1: #d18c99; --ord-2: #b8606f; --ord-3: #9d3f51; --ord-4: #7f2534; --ord-5: #5a1520;
}

/* Sidebar-Logo (Backend) größer als Stralys-Vorgabe */
.sidebar-logo img { height: 48px; max-width: 100%; }

/* ---------- Öffentliches Layout ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header-inner {
    max-width: 1140px; margin: 0 auto; padding: 0.75rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--foreground); font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand img, .brand svg { height: 48px; width: auto; }
.brand:hover { color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { padding: 0.5rem 0.75rem; border-radius: var(--radius); color: var(--muted-foreground); font-size: 0.9rem; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { background: var(--accent); color: var(--accent-foreground); }
.site-nav .btn { margin-left: 0.5rem; }
/* Link-Regeln der Navigation dürfen Buttons nicht überschreiben (grau auf rot) */
.site-nav a.btn-primary { color: var(--primary-foreground); background: var(--primary); }
.site-nav a.btn-primary:hover { color: var(--primary-foreground); background: oklch(35% .15 25); }
.site-nav a.btn-secondary { color: var(--secondary-foreground); }

.btn-primary, a.btn-primary, a.btn-primary:visited, .btn-primary:hover, a.btn-primary:hover { color: var(--primary-foreground); }
/* Dunkle CTA-Box: weißer Button mit dunkler Schrift – steht bewusst NACH der generischen Regel und deckt :visited ab */
.cta a.btn-primary, .cta a.btn-primary:visited, .cta a.btn-primary:hover, .cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta a.btn-primary:hover { background: #f3f4f6; }
.nav-toggle { display: none; }
.site-main { max-width: 1140px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.site-main.narrow { max-width: 820px; }
.site-footer { border-top: 1px solid var(--border); background: var(--card); }
.site-footer-inner { max-width: 1140px; margin: 0 auto; padding: 2rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; font-size: 0.85rem; color: var(--muted-foreground); }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--foreground); margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; }
.site-footer a { color: var(--muted-foreground); display: block; padding: 0.15rem 0; }
.site-footer a:hover { color: var(--primary); }
.site-footer-bottom { max-width: 1140px; margin: 0 auto; padding: 1rem 1.5rem 1.5rem; font-size: 0.75rem; color: var(--muted-foreground); border-top: 1px solid var(--border); }

@media (max-width: 860px) {
    .brand img, .brand svg { height: 34px; }
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--border); padding: 0.75rem 1rem; box-shadow: 0 8px 24px -12px rgba(16,24,40,0.2); }
    .site-nav.open { display: flex; }
    .site-nav .btn { margin: 0.5rem 0 0; }
    .site-main { padding: 1.5rem 1rem 3rem; }
}

/* ---------- Landingpage ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; padding: 2rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 1.15rem; color: var(--muted-foreground); margin-bottom: 1.75rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-actions .btn { padding: 0.8rem 1.4rem; font-size: 0.95rem; }
.hero-trust { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted-foreground); }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--success); }
.hero-visual .card { margin: 0; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.section { padding: 3rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--muted-foreground); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.feature .stat-icon { margin-bottom: 1rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted-foreground); font-size: 0.9rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: oklch(95% .02 25); color: var(--primary); font-weight: 700; font-family: 'Poppins', sans-serif; margin-bottom: 0.75rem; }
.step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--muted-foreground); }
.promise { background: linear-gradient(135deg, oklch(97% .01 25), oklch(96% .01 260)); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.promise ul { list-style: none; display: grid; gap: 0.6rem; }
.promise li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.promise li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--success); margin-top: 2px; }
.dimension-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.75rem; }
.dimension { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.875rem; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 16px -10px rgba(16, 24, 40, 0.18); }
.dimension strong { display: block; font-size: 0.8rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; color: var(--muted-foreground); font-weight: 400; font-size: 1.2rem; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 0.6rem; color: var(--muted-foreground); font-size: 0.9rem; }
.cta { text-align: center; padding: 3rem 1.5rem; background: var(--brand-dark); color: #fff; border-radius: calc(var(--radius) + 8px); }
.cta h2 { color: #fff; margin-bottom: 0.75rem; }
.cta p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: #f3f4f6; color: var(--brand-dark); }
.prose { max-width: 760px; }
.prose h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--foreground); font-size: 0.95rem; line-height: 1.65; }
.prose p { margin-bottom: 0.9rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose .lead { color: var(--muted-foreground); font-size: 1.1rem; }
.prose table td, .prose table th { font-size: 0.85rem; }
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 0.5rem; }
    .promise { grid-template-columns: 1fr; padding: 1.5rem; }
}

/* ---------- Trust-Elemente ---------- */
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.75rem; }
.trust { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.trust > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--success); margin-top: 1px; }
.trust strong { display: block; font-size: 0.85rem; }
.trust span { display: block; font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.15rem; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer-trust { display: inline-flex; align-items: center; gap: 0.3rem; }
.footer-made { display: inline-flex; align-items: center; gap: 0.3rem; }
.footer-made .heart { color: var(--primary); font-style: normal; }
.footer-trust svg { width: 13px; height: 13px; color: var(--success); }

/* ---------- Befragung ---------- */
.survey-wrap { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.survey-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0 1.25rem; }
.survey-header .badge { font-size: 0.65rem; }
.company-logo-hero { display: flex; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.company-logo-hero img { max-height: 96px; max-width: min(100%, 360px); width: auto; height: auto; }
@media (max-width: 640px) { .company-logo-hero img { max-height: 72px; } }
.progress { height: 6px; background: var(--secondary); border-radius: 999px; overflow: hidden; margin-bottom: 1.5rem; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.3s ease; }
.survey-step { display: none; }
.survey-step.active { display: block; animation: fadeIn 0.25s ease; }
.survey-step h2 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.survey-step .step-intro { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1.5rem; }
.q { margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.q:last-of-type { border-bottom: 0; }
.q-title { font-weight: 600; font-size: 0.975rem; margin-bottom: 0.25rem; display: flex; gap: 0.5rem; }
.q-title .q-num { color: var(--muted-foreground); font-weight: 500; }
.survey-step { counter-reset: q var(--q-offset, 0); }
.survey-step .q[data-q] { counter-increment: q; }
.survey-step .q[data-q] .q-num::before { content: counter(q) '.'; }
.q-hint { color: var(--muted-foreground); font-size: 0.8rem; margin-bottom: 0.75rem; }
.q-error { color: var(--destructive); font-size: 0.8rem; margin-top: 0.4rem; display: none; }
.q.has-error .q-error { display: block; }
.q.has-error .choice { border-color: oklch(85% .08 25); }
.choices { display: grid; gap: 0.5rem; }
.choices.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.choice { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); cursor: pointer; transition: all 0.15s ease; font-size: 0.9rem; }
.choice:hover { border-color: oklch(80% .05 25); background: oklch(99% .005 25); }
.choice input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--primary); background: oklch(97% .02 25); box-shadow: 0 0 0 2px oklch(45% .18 25 / 0.12); }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.likert label { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.6rem 0.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); cursor: pointer; text-align: center; font-size: 0.72rem; color: var(--muted-foreground); transition: all 0.15s ease; }
.likert label:hover { border-color: oklch(80% .05 25); }
.likert label:has(input:checked) { border-color: var(--primary); background: oklch(97% .02 25); color: var(--foreground); }
.likert input { accent-color: var(--primary); }
.likert-statement { font-weight: 500; font-size: 0.925rem; margin-bottom: 0.6rem; }
.survey-nav { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; }
.survey-note { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; color: var(--muted-foreground); background: var(--secondary); border-radius: var(--radius); padding: 0.75rem 0.9rem; margin-top: 1.5rem; }
.survey-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--success); }
.intro-list { list-style: none; display: grid; gap: 0.75rem; margin: 1.25rem 0; }
.intro-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.925rem; }
.intro-list svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
@media (max-width: 640px) {
    .likert { grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
    .likert label { font-size: 0.6rem; padding: 0.5rem 0.1rem; }
    .survey-nav { flex-direction: column-reverse; }
    .survey-nav .btn { width: 100%; }
}

/* ---------- Diagramme ---------- */
.viz { margin: 0 0 0.5rem; }
.viz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.viz-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; }
.viz-sub { font-size: 0.78rem; color: var(--muted-foreground); margin-top: 0.1rem; }
.viz-toggle { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--muted-foreground); background: none; border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.6rem; cursor: pointer; white-space: nowrap; }
.viz-toggle svg { width: 13px; height: 13px; }
.viz-toggle:hover, .viz-toggle[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); }
.viz-svg { display: block; font-family: 'Inter', sans-serif; }
.viz-label { font-size: 12px; fill: var(--foreground); }
.viz-value { font-size: 12px; font-weight: 600; fill: var(--foreground); font-variant-numeric: tabular-nums; }
.viz-muted { font-size: 11px; fill: var(--muted-foreground); }
.viz-row { cursor: default; }
.viz-row:hover path, .viz-row:hover rect:not(:first-child) { opacity: 0.85; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.viz-key { display: inline-flex; align-items: center; gap: 0.35rem; }
.viz-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.viz-key-note { margin-left: auto; }
.viz-note { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.viz-empty { padding: 2rem; text-align: center; color: var(--muted-foreground); font-size: 0.875rem; border: 1px dashed var(--border); border-radius: var(--radius); }
.viz-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.viz-tooltip { position: fixed; z-index: 500; pointer-events: none; background: var(--brand-dark); color: #fff; font-size: 0.75rem; padding: 0.4rem 0.6rem; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); max-width: 260px; display: none; }
.meter { height: 8px; background: oklch(93% .02 25); border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.meter > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.meter-blue { background: oklch(93% .03 250); } .meter-blue > span { background: var(--info); }
.meter-green { background: oklch(93% .03 145); } .meter-green > span { background: var(--success); }
.meter-orange { background: oklch(93% .03 85); } .meter-orange > span { background: var(--warning); }
.stat-value.hero-figure { font-size: 2.6rem; font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }
.stat-delta { font-size: 0.75rem; margin-top: 0.25rem; color: var(--muted-foreground); }
.stat-delta.up { color: var(--destructive); } .stat-delta.down { color: var(--success); }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); }
.filter-row .form-group { margin: 0; min-width: 180px; flex: 1; }
.filter-row .btn { align-self: flex-end; }
.k-note { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--muted-foreground); background: var(--secondary); padding: 0.35rem 0.7rem; border-radius: 999px; }
.k-note svg { width: 13px; height: 13px; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1rem; }
.compare-item { padding: 1rem; background: var(--secondary); border-radius: var(--radius); }
.compare-item .lbl { font-size: 0.75rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; }
.compare-item .val { font-size: 1.5rem; font-weight: 700; font-family: 'Poppins', sans-serif; }
.compare-item .ref { font-size: 0.8rem; color: var(--muted-foreground); }

/* ---------- Mobile Sidebar: Seitenleiste muss über der grauen Überlagerung liegen ---------- */
@media (max-width: 1024px) {
    .sidebar-overlay { z-index: 150; }
    .sidebar { z-index: 260; }
    .sidebar.open { pointer-events: auto; }
}

/* ---------- Abmelden ---------- */
.nav-item-btn { width: 100%; background: none; border: none; cursor: pointer; font: inherit; font-size: 0.875rem; font-weight: 500; text-align: left; }
.nav-item-btn:hover { background: var(--accent); color: var(--accent-foreground); }
.logout-btn svg { width: 18px; height: 18px; }
.logout-btn { flex-shrink: 0; }
.site-nav .nav-logout { display: inline-flex; margin-left: 0.5rem; }
@media (max-width: 860px) { .site-nav .nav-logout { margin: 0.5rem 0 0; } .site-nav .nav-logout .btn { width: 100%; } }

/* ---------- Bestätigungsdialog ---------- */
.consent-dialog { margin: auto; border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: 1.75rem; max-width: 480px; width: calc(100% - 2rem); background: var(--card); color: var(--foreground); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.consent-dialog::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); }
.consent-dialog h2 { font-family: 'Poppins', sans-serif; }

/* ---------- Betreiber-Karte im Impressum ---------- */
.operator-card { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.25rem 1.5rem; margin: 1rem 0 1.5rem; box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 8px 24px -12px rgba(16,24,40,0.18); font-size: 0.95rem; line-height: 1.6; }
.operator-logo img { display: block; width: 240px; max-width: 100%; height: auto; }

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Diverses ---------- */
code { overflow-wrap: anywhere; word-break: break-word; font-size: 0.85em; }
.intro-list li, .intro-list li span, .promise li span, .feature p, .step p { min-width: 0; overflow-wrap: anywhere; }
.card, .stat-card, .feature, .step, .compare-item, .license-card { overflow-wrap: anywhere; }
th, td, .badge, .btn, .nav-item, .stat-value { overflow-wrap: normal; word-break: normal; }
th { white-space: nowrap; }
td code { white-space: nowrap; }
.badge { white-space: nowrap; }
.license-header { gap: 0.75rem; }
.code-box { font-family: ui-monospace, 'SF Mono', Monaco, monospace; background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.85rem; word-break: break-all; display: flex; align-items: center; gap: 0.75rem; }
.code-box span { flex: 1; }
.qr-box { text-align: center; padding: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.qr-box img, .qr-box svg { width: 200px; height: 200px; }
.mail-template { white-space: pre-wrap; font-size: 0.85rem; background: var(--secondary); border-radius: var(--radius); padding: 1rem; line-height: 1.55; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.4rem; }
.status-dot.active { background: var(--success); } .status-dot.draft { background: var(--warning); } .status-dot.closed { background: var(--muted-foreground); }
.checkbox-inline { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.875rem; }
.checkbox-inline input { margin-top: 3px; accent-color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.poster { max-width: 720px; margin: 2rem auto; padding: 3rem; background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); text-align: center; }
.poster h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.poster .qr-box { display: inline-block; margin: 1.5rem 0; }
.poster .qr-box svg { width: 280px; height: 280px; }
@media print { .poster { border: 0; box-shadow: none; margin: 0; } .no-print { display: none !important; } }

/* ---------- Ablaufseite „So funktioniert es“ ---------- */
.flow-phases { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; counter-reset: none; }
.flow-phases li { position: relative; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1.1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); border-top: 3px solid var(--primary); }
.flow-phases small { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.flow-phases b { font-family: 'Poppins', 'Inter', sans-serif; font-size: 1rem; }
.flow-phases span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--muted-foreground); }
.flow-phases span svg { width: 14px; height: 14px; }

.flow { position: relative; --flow-node: 48px; --flow-gap: 1.5rem; }
.flow::before { content: ''; position: absolute; left: calc(var(--flow-node) / 2 - 1px); top: 1rem; bottom: 2rem; width: 2px; background: linear-gradient(to bottom, var(--border) 0 88%, transparent); }
.flow-phase { position: relative; display: grid; grid-template-columns: var(--flow-node) 1fr; gap: var(--flow-gap); align-items: center; margin: 0 0 1rem; }
.flow-phase::before { content: ''; width: 12px; height: 12px; margin: 0 auto; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--background), 0 0 0 6px oklch(90% .05 25); }
.flow-phase span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.flow-step + .flow-phase { margin-top: 2rem; }
.flow-step { position: relative; display: grid; grid-template-columns: var(--flow-node) 1fr; gap: var(--flow-gap); margin-bottom: 1.25rem; }
.flow-node { position: relative; width: var(--flow-node); height: var(--flow-node); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); border: 2px solid var(--primary); color: var(--primary); font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 5px var(--background); }
.flow-node svg { width: 20px; height: 20px; }
.flow-card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.35rem 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: box-shadow .2s, transform .2s; }
.flow-step:hover .flow-card { box-shadow: 0 10px 28px -14px rgba(16,24,40,0.25); transform: translateY(-1px); }
.flow-head { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.75rem; }
.flow-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: oklch(95% .02 25); color: var(--primary); }
.flow-icon svg { width: 22px; height: 22px; }
.flow-head h3 { font-size: 1.1rem; margin: 0.15rem 0 0.35rem; }
.flow-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.flow-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 500; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); }
.flow-tag svg { width: 12px; height: 12px; }
.flow-tag-you { background: oklch(95% .02 25); color: var(--primary); font-weight: 600; }
.flow-tag-staff { background: oklch(94% .04 240); color: oklch(40% .12 240); font-weight: 600; }
.flow-card p { color: var(--muted-foreground); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.flow-out { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--border); }
.flow-out > span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); margin-right: 0.25rem; }
.flow-out em { font-style: normal; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 500; padding: 0.3rem 0.65rem; border-radius: 8px; background: var(--muted); color: var(--foreground); }
.flow-out em svg { width: 14px; height: 14px; color: var(--primary); }
.flow-out-privacy em { background: oklch(96% .03 150); color: oklch(35% .1 150); }
.flow-out-privacy em svg { color: var(--success); }
.flow-step-loop .flow-node { border-style: dashed; color: var(--muted-foreground); border-color: var(--muted-foreground); }
.flow-step-loop .flow-card { background: transparent; border-style: dashed; box-shadow: none; }
.flow-step-loop h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.flow-step-loop:hover .flow-card { transform: none; box-shadow: none; }
@media (max-width: 640px) {
    .flow-phases { grid-template-columns: 1fr; }
    .flow { --flow-node: 36px; --flow-gap: 0.9rem; }
    .flow-node { font-size: 0.95rem; box-shadow: 0 0 0 3px var(--background); }
    .flow-node svg { width: 16px; height: 16px; }
    .flow-card { padding: 1.1rem 1.1rem; }
    .flow-icon { width: 36px; height: 36px; }
    .flow-icon svg { width: 18px; height: 18px; }
}
