/*
 * MeinTicketbot – Designsystem
 * Dunkles Navy als Grundlage, Markenverlauf Blau zu Cyan, ruhige Glows.
 * Alle Farben stehen als Tokens oben. Das helle Theme ueberschreibt nur die Tokens.
 */

/* ---------- Schrift: Inter (SIL Open Font License 1.1, Lizenz in assets/fonts/Inter-OFL.txt), selbst gehostet ---------- */
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    --bg: #0b1220;
    --bg-soft: #0e1627;
    --surface: #111c2e;
    --surface-2: #16233a;
    --surface-3: #1c2c48;
    --border: rgba(148, 170, 210, .14);
    --border-strong: rgba(148, 170, 210, .26);
    --text: #f4f7fb;
    --text-muted: #9fb0c7;
    --text-faint: #6f819b;
    --accent: #4f7cff;
    --accent-strong: #6b91ff;
    --accent-2: #20c5d8;
    --accent-soft: rgba(79, 124, 255, .14);
    --on-accent: #ffffff;
    --gradient: linear-gradient(135deg, #4f7cff 0%, #3aa0f0 55%, #20c5d8 100%);
    --gradient-text: linear-gradient(120deg, #7aa0ff 0%, #20c5d8 100%);
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, .14);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, .14);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, .14);
    --radius-lg: 18px;
    --radius-card: 14px;
    --radius-button: 10px;
    --radius-pill: 999px;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 50px rgba(0, 0, 0, .45);
    --glow: 0 0 0 1px rgba(79, 124, 255, .35), 0 8px 30px rgba(79, 124, 255, .35);
    --focus: 0 0 0 3px rgba(32, 197, 216, .45);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
    --sidebar-width: 256px;
    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f3f6fb;
        --bg-soft: #eaf0f8;
        --surface: #ffffff;
        --surface-2: #f1f5fb;
        --surface-3: #e6edf7;
        --border: rgba(15, 30, 60, .1);
        --border-strong: rgba(15, 30, 60, .2);
        --text: #0b1220;
        --text-muted: #4f5f78;
        --text-faint: #7a889e;
        --accent: #2f5fe8;
        --accent-strong: #2450cf;
        --accent-2: #0c8797;
        --accent-soft: rgba(47, 95, 232, .1);
        --gradient-text: linear-gradient(120deg, #2f5fe8 0%, #0c8797 100%);
        --success: #15803d;
        --success-soft: rgba(21, 128, 61, .1);
        --warning: #b45309;
        --warning-soft: rgba(180, 83, 9, .1);
        --danger: #c81e1e;
        --danger-soft: rgba(200, 30, 30, .1);
        --shadow: 0 1px 2px rgba(15, 30, 60, .05), 0 8px 24px rgba(15, 30, 60, .07);
        --shadow-lift: 0 2px 4px rgba(15, 30, 60, .06), 0 16px 40px rgba(15, 30, 60, .12);
        --glow: 0 0 0 1px rgba(47, 95, 232, .3), 0 8px 24px rgba(47, 95, 232, .22);
        --focus: 0 0 0 3px rgba(12, 135, 151, .35);
        color-scheme: light;
    }
}

:root[data-theme="light"] {
    --bg: #f3f6fb;
    --bg-soft: #eaf0f8;
    --surface: #ffffff;
    --surface-2: #f1f5fb;
    --surface-3: #e6edf7;
    --border: rgba(15, 30, 60, .1);
    --border-strong: rgba(15, 30, 60, .2);
    --text: #0b1220;
    --text-muted: #4f5f78;
    --text-faint: #7a889e;
    --accent: #2f5fe8;
    --accent-strong: #2450cf;
    --accent-2: #0c8797;
    --accent-soft: rgba(47, 95, 232, .1);
    --gradient-text: linear-gradient(120deg, #2f5fe8 0%, #0c8797 100%);
    --success: #15803d;
    --success-soft: rgba(21, 128, 61, .1);
    --warning: #b45309;
    --warning-soft: rgba(180, 83, 9, .1);
    --danger: #c81e1e;
    --danger-soft: rgba(200, 30, 30, .1);
    --shadow: 0 1px 2px rgba(15, 30, 60, .05), 0 8px 24px rgba(15, 30, 60, .07);
    --shadow-lift: 0 2px 4px rgba(15, 30, 60, .06), 0 16px 40px rgba(15, 30, 60, .12);
    --glow: 0 0 0 1px rgba(47, 95, 232, .3), 0 8px 24px rgba(47, 95, 232, .22);
    --focus: 0 0 0 3px rgba(12, 135, 151, .35);
    color-scheme: light;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.1rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
code { font-family: var(--font-mono); font-size: .9em; padding: .1rem .35rem; border-radius: 6px; background: var(--surface-2); overflow-wrap: anywhere; }
img { max-width: 100%; }
ul, ol { padding-left: 1.25rem; }
::selection { background: rgba(79, 124, 255, .35); }

.muted { color: var(--text-muted); font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js [data-hide-with-js] { display: none; }
.section-title { margin-top: 2rem; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- Icons und Marke ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    font-size: 1.15rem;
    letter-spacing: -.01em;
    text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand strong { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.6rem;
    padding: .55rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--gradient); color: var(--on-accent); box-shadow: var(--glow); }
.button-primary:hover { color: var(--on-accent); box-shadow: 0 0 0 1px rgba(79, 124, 255, .5), 0 12px 34px rgba(79, 124, 255, .45); }
.button-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.button-secondary:hover { color: var(--text); border-color: var(--accent); }
.button-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.button-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.button-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.button-danger:hover { color: #fff; box-shadow: 0 8px 24px rgba(239, 68, 68, .35); }
.button-lg { min-height: 3.1rem; padding: .75rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.icon-button { width: 2.6rem; padding: 0; }
.icon-button .icon { width: 1.25rem; height: 1.25rem; }

/* Sonne im dunklen, Mond im hellen Theme */
.theme-icon-light { display: none; }
:root[data-theme="light"] .theme-icon-light { display: inline; }
:root[data-theme="light"] .theme-icon-dark { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-icon-light { display: inline; }
    :root:not([data-theme="dark"]) .theme-icon-dark { display: none; }
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.actions form { margin: 0; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 1.1rem; flex: 1 1 200px; min-width: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.field-narrow { flex: 0 1 180px; }
.field label, fieldset.field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea,
.switcher select, .locale-form select, .filter-bar select, .filter-bar input {
    width: 100%;
    min-height: 2.6rem;
    padding: .55rem .8rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-button);
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus,
.switcher select:focus, .locale-form select:focus, .filter-bar select:focus, .filter-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-color input[type="color"] { height: 2.6rem; padding: .25rem; cursor: pointer; }
.field-help { color: var(--text-muted); font-size: .84rem; margin: .35rem 0 0; }
.field-error { color: var(--danger); font-size: .84rem; margin: .35rem 0 0; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
fieldset.field legend { padding: 0; }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .4rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.field .checkbox { display: flex; font-weight: 400; font-size: .95rem; }
/* Nicht schrumpfen bei langem, mehrzeiligem Text; mittig zur ersten Zeile (1.5em Zeilenhoehe) */
.checkbox input { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; min-height: 0; margin: calc((1.5em - 1.05rem) / 2) 0 0; accent-color: var(--accent); }
.inline-create { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.inline-create .field { flex: 1 1 260px; margin-bottom: 0; }
.inline-create .field-help { margin-bottom: 0; }
.inline-form { margin-bottom: 1.25rem; }

/* ---------- Karten, Hinweise, Badges ---------- */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.card > h2:first-child { margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 2.5rem 1.5rem; }
.empty-state h2 { font-size: 1.15rem; }
.empty-state p { color: var(--text-muted); margin: 0 auto; max-width: 46ch; }

.alert {
    display: block;
    padding: .8rem 1rem;
    margin: 0 0 1.25rem;
    border-radius: var(--radius-button);
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .95rem;
}
.alert-success { border-color: rgba(34, 197, 94, .35); background: var(--success-soft); }
.alert-warning { border-color: rgba(245, 158, 11, .35); background: var(--warning-soft); }
.alert-error { border-color: rgba(239, 68, 68, .4); background: var(--danger-soft); }

.badge, .pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .65rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--success); background: var(--success-soft); border-color: rgba(34, 197, 94, .35); }
.badge-warning { color: var(--warning); background: var(--warning-soft); border-color: rgba(245, 158, 11, .35); }
.badge-muted { color: var(--text-muted); background: var(--bg-soft); border-color: var(--border-strong); }
.badge-failed { color: var(--danger); background: var(--danger-soft); border-color: rgba(239, 68, 68, .4); }
.pill-status-new, .pill-priority-high, .pill-panel-draft { color: var(--accent-strong); background: var(--accent-soft); border-color: rgba(79, 124, 255, .4); }
.pill-status-open, .pill-status-in_progress { color: var(--accent-2); background: rgba(32, 197, 216, .12); border-color: rgba(32, 197, 216, .4); }
.pill-status-waiting_user, .pill-status-waiting_internal, .pill-panel-disabled { color: var(--warning); background: var(--warning-soft); border-color: rgba(245, 158, 11, .35); }
.pill-status-resolved, .pill-panel-published { color: var(--success); background: var(--success-soft); border-color: rgba(34, 197, 94, .35); }
.pill-priority-urgent { color: #fff; background: var(--danger); border-color: var(--danger); }

.summary { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .5rem 1.25rem; margin: 0 0 1.25rem; font-size: .95rem; }
.summary dt { color: var(--text-muted); }
.summary dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; padding: 0; }
.card.table-wrap { padding: .35rem 0; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--text-faint); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.table tbody tr { transition: background-color .12s ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; color: var(--text); text-decoration: none; }
.table a:hover { color: var(--accent-strong); }
.row-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.row-actions form { margin: 0; }
.row-actions .button { min-height: 2rem; padding: .3rem .6rem; font-size: .82rem; }
.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1rem; }

/* ---------- Oeffentliche Seiten ---------- */
.public-page { overflow-x: hidden; }
.public-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 900px;
    z-index: -1;
    background:
        radial-gradient(600px 380px at 15% 10%, rgba(79, 124, 255, .22), transparent 70%),
        radial-gradient(520px 360px at 85% 25%, rgba(32, 197, 216, .16), transparent 70%);
    pointer-events: none;
}
.public-page::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 760px;
    z-index: -1;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: .5;
    pointer-events: none;
}
.public-page main { position: relative; }
.section, .hero { scroll-margin-top: 5rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header-inner { display: flex; align-items: center; gap: 1.5rem; max-width: 1160px; margin: 0 auto; padding: .9rem 1.25rem; }
.site-nav { display: flex; gap: .25rem; margin-left: auto; }
.site-nav a { padding: .45rem .75rem; border-radius: 8px; color: var(--text-muted); font-size: .93rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-header-actions { display: flex; gap: .5rem; align-items: center; }
/* Sprachumschalter DE/EN */
.locale-switch { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.locale-switch a { padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--text-faint); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.locale-switch a:hover { color: var(--text); }
.locale-switch a[aria-current] { background: var(--accent-soft); color: var(--accent-strong); }
.centered-footer .locale-switch a { color: var(--text-faint); }
.centered-footer .locale-switch a[aria-current] { color: var(--accent-strong); }

.site-main { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 4.5rem 0 4rem; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .8rem .3rem .4rem;
    margin-bottom: 1.4rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 500;
}
.hero-badge span { padding: .1rem .55rem; border-radius: var(--radius-pill); background: var(--gradient); color: #fff; font-size: .75rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.07; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { color: var(--text-muted); font-size: 1.15rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-size: .9rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .icon { color: var(--success); }
.hero-media { position: relative; margin: 0; }
.hero-media::before { content: ""; position: absolute; inset: 8% 6%; background: var(--gradient); filter: blur(70px); opacity: .35; z-index: -1; border-radius: 40px; }
.hero-media img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lift); }

.section { padding: 4.5rem 0; }
.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: .75rem; color: var(--accent-2); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tile {
    position: relative;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
.tile h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.tile p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px solid rgba(79, 124, 255, .3);
    color: var(--accent-strong);
}
.tile-icon .icon { width: 1.4rem; height: 1.4rem; }
.tile-tag { position: absolute; top: 1.25rem; right: 1.25rem; padding: .15rem .55rem; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-muted); font-size: .72rem; font-weight: 600; }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps-grid li { position: relative; padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface) 0%, transparent 140%); }
.steps-grid li::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
}
.steps-grid h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.steps-grid p { color: var(--text-muted); margin: 0; font-size: .95rem; }

.cta-band {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 4.5rem;
    padding: 3.5rem 2rem;
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(79, 124, 255, .35);
    background:
        radial-gradient(500px 220px at 20% 0%, rgba(79, 124, 255, .35), transparent 70%),
        radial-gradient(500px 220px at 80% 100%, rgba(32, 197, 216, .28), transparent 70%),
        var(--surface);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.cta-band p { color: var(--text-muted); max-width: 36rem; margin: 0 auto 1.75rem; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 2.5rem; max-width: 1160px; margin: 0 auto; padding: 3.5rem 1.25rem 2.5rem; }
.site-footer p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; max-width: 24rem; margin: .9rem 0 1.25rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; min-width: 0; }
.footer-column h2 { margin: .35rem 0 .4rem; color: var(--text); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-column a { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; color: var(--text-muted); font-size: .92rem; text-decoration: none; overflow-wrap: break-word; }
.footer-column a:hover { color: var(--text); }
.footer-column .icon { flex: 0 0 auto; width: 1rem; height: 1rem; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; max-width: 1160px; margin: 0 auto; padding: 1.25rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .85rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-meta a { color: var(--text-faint); text-decoration: none; }
.footer-meta a:hover { color: var(--text-muted); }

.legal { max-width: 760px; margin: 0 auto; padding: 3.5rem 0 4rem; overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.legal h2 { margin-top: 2rem; font-size: 1.15rem; }
.legal p, .legal li { color: var(--text-muted); }

/* ---------- Zentrierte Seiten: Anmeldung, Installer, Fehler ---------- */
.centered-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background:
        radial-gradient(600px 400px at 50% -10%, rgba(79, 124, 255, .25), transparent 70%),
        radial-gradient(500px 300px at 100% 100%, rgba(32, 197, 216, .12), transparent 70%),
        var(--bg);
}
.centered-main { width: 100%; max-width: 560px; margin: 0 auto; padding: 4rem 1.25rem 3rem; }
.centered-main > .brand { display: flex; justify-content: center; margin-bottom: 1.75rem; font-size: 1.3rem; }
.centered-main > .card { padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.centered-main h1 { font-size: 1.5rem; }
.centered-main > .card > .button-primary, .centered-main form > .button-primary { width: 100%; margin-top: .25rem; }
.centered-main > .card > .button-primary { margin-bottom: 1rem; }
.centered-main form + p { margin: 1.1rem 0 0; text-align: center; font-size: .92rem; }
.centered-footer { display: flex; justify-content: center; gap: 1.25rem; margin-top: 1.5rem; font-size: .85rem; }
.centered-footer a { color: var(--text-faint); text-decoration: none; }
.centered-footer a:hover { color: var(--text-muted); }

.steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; justify-content: center; }
.steps li { display: flex; align-items: center; gap: .4rem; color: var(--text-muted); font-size: .8rem; }
.steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--border-strong); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); }
.steps .is-current { color: var(--text); font-weight: 600; }
.steps .is-current .step-number { background: var(--gradient); border-color: transparent; color: #fff; }
.steps .is-done .step-number { border-color: var(--success); color: var(--success); }
.steps li:not(.is-current) .step-label { display: none; }

.checklist { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.checklist li { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .93rem; }

/* ---------- App-Rahmen: Dashboard und Administration ---------- */
.admin-page { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    padding: 1.25rem 1rem;
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
}
.sidebar > .brand { padding: .25rem .5rem; }
.sidebar nav { display: flex; flex-direction: column; gap: .2rem; margin-top: 1.5rem; }
.sidebar nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .75rem;
    border-radius: var(--radius-button);
    color: var(--text-muted);
    font-size: .93rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .12s ease, color .12s ease;
}
.sidebar nav a .icon { width: 20px; height: 20px; opacity: .85; transform: translateY(-1px); }
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.sidebar nav a[aria-current="page"] .icon { color: var(--accent-strong); opacity: 1; }
.sidebar nav a[aria-current="page"]::before { content: ""; position: absolute; left: -1rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--gradient); }
.nav-label { margin: 1.5rem .75rem .4rem; color: var(--text-faint); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.switcher { display: grid; gap: .4rem; margin-top: 1.5rem; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.switcher label { color: var(--text-faint); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-footer { margin-top: auto; padding-top: 1.5rem; color: var(--text-faint); font-size: .8rem; }

.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    padding: .7rem 2rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.topbar form { margin: 0; }
.topbar-user { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; color: var(--text); font-size: .93rem; font-weight: 600; }
.avatar { border-radius: 50%; border: 1px solid var(--border-strong); }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: .8rem; font-weight: 700; }
.locale-form { display: flex; gap: .4rem; align-items: center; }
.locale-form select { width: auto; min-height: 2.6rem; padding-right: 2rem; }
.menu-toggle { display: none; }

.admin-main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 2rem; }
.admin-main > h1 { font-size: 1.65rem; margin-bottom: 1.25rem; }
.admin-main:has(.ticket-layout), .admin-main:has(.editor-layout) { max-width: 1240px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin: 0; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gradient); opacity: .6; }
.stat-value { font-size: 2rem; font-weight: 750; line-height: 1; letter-spacing: -.03em; }
.stat-link { color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.stat-link:hover { color: inherit; transform: translateY(-2px); border-color: var(--border-strong); }

.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; }
.server-card { display: flex; align-items: center; gap: .85rem; height: 100%; margin: 0; padding: .8rem 1rem; color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.server-card:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(79, 124, 255, .45); box-shadow: var(--shadow-lift); }
.server-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; }
.server-icon-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--gradient); color: #fff; font-size: 1rem; font-weight: 700; }
.server-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; }
.server-name { max-width: 100%; overflow-wrap: anywhere; line-height: 1.3; font-weight: 650; font-size: .98rem; }
.server-card .badge { padding-block: .1rem; font-size: .72rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.filter-bar .field { flex: 1 1 160px; margin-bottom: 0; }
.filter-actions { display: flex; gap: .5rem; }

.panel-summary { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.panel-summary li { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-button); background: var(--surface-2); }
.panel-summary a { font-weight: 600; color: var(--text); text-decoration: none; }

/* Ticketdetail */
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.25rem; align-items: start; }
.ticket-side .card, .ticket-main .card { margin-bottom: 1.25rem; }
.close-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.messages { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; max-height: 60vh; overflow-y: auto; }
.message { padding: .75rem .9rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.message-bot { border-left: 3px solid var(--accent); }
.message-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin-bottom: .25rem; }
.message-text, .message-embed { margin: .25rem 0 0; overflow-wrap: anywhere; }
.message-embed { padding-left: .65rem; border-left: 2px solid var(--border-strong); color: var(--text-muted); }
.attachments { margin: .4rem 0 0; padding-left: 1.1rem; }
.reply-box textarea { min-height: 6.5rem; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.event-list li { display: grid; gap: .1rem; padding: 0 0 .65rem .9rem; border-bottom: 1px solid var(--border); border-left: 2px solid var(--border-strong); }
.event-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.answers { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .5rem 1.25rem; margin: 0; }
.answers dt { color: var(--text-muted); }
.answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Panel-Editor und Discord-Vorschau. Die Vorschau ahmt Discord nach und bleibt deshalb in beiden Themes dunkel. */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 1.25rem; align-items: start; }
.editor-side { position: sticky; top: 5rem; }
.editor-main .card { margin-bottom: 1.25rem; }
.field-row .field-color { flex: 0 1 140px; }
.discord-preview { background: #313338; color: #dbdee1; border-radius: 10px; padding: 1rem; font-size: .95rem; border: 1px solid rgba(0, 0, 0, .25); }
.preview-embed { display: flex; gap: 1rem; justify-content: space-between; background: #2b2d31; border-left: 4px solid #5865f2; border-radius: 4px; padding: .75rem 1rem; }
.preview-embed-body { min-width: 0; }
.preview-title { display: block; color: #f2f3f5; margin-bottom: .4rem; overflow-wrap: anywhere; }
.preview-description { white-space: pre-wrap; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.preview-footer { font-size: .8rem; color: #b5bac1; margin: .5rem 0 0; overflow-wrap: anywhere; }
.preview-image { font-size: .8rem; margin: .5rem 0 0; padding: .6rem; border: 1px dashed #4e5058; border-radius: 4px; overflow-wrap: anywhere; color: #b5bac1; }
.preview-thumbnail { flex: 0 0 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: .7rem; border: 1px dashed #4e5058; border-radius: 4px; color: #b5bac1; }
.preview-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.preview-button { padding: .35rem .9rem; border-radius: 4px; color: #fff; font-size: .875rem; font-weight: 500; }
.preview-button-primary { background: #5865f2; }
.preview-button-secondary { background: #4e5058; }
.preview-button-success { background: #248046; }
.preview-button-danger { background: #da373c; }
.preview-select { margin-top: .75rem; }
.preview-select-box { display: block; padding: .5rem .75rem; background: #1e1f22; border-radius: 4px; color: #949ba4; }
.preview-select-list { list-style: none; margin: .25rem 0 0; padding: .25rem; background: #2b2d31; border-radius: 4px; display: grid; gap: .1rem; }
.preview-select-list li { display: grid; padding: .35rem .5rem; }
.preview-select-list .muted { font-size: .8rem; color: #b5bac1; }
.preview-empty { margin: .75rem 0 0; color: #b5bac1; font-size: .85rem; }

/* Phase 5: Team, Notizen, Transkripte, Auditlog */
.quick-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.quick-filters a { padding: .35rem .85rem; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-muted); font-size: .88rem; font-weight: 500; text-decoration: none; }
.quick-filters a:hover { color: var(--text); border-color: var(--accent); }
.quick-filters a[aria-current="true"] { background: var(--accent-soft); border-color: rgba(79, 124, 255, .45); color: var(--text); font-weight: 600; }
.notes-card { border-color: rgba(245, 158, 11, .35); background: linear-gradient(180deg, var(--warning-soft), transparent 60%), var(--surface); }
.pill-internal { color: var(--warning); background: var(--warning-soft); border-color: rgba(245, 158, 11, .4); vertical-align: middle; }
.notes { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.note { padding: .7rem .9rem; border-radius: 10px; border: 1px dashed rgba(245, 158, 11, .45); background: var(--surface-2); }
.note p { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript-head h2 { font-size: 1.2rem; }
.transcript-section { margin-top: 1.75rem; }
.transcript-section h3 { margin-bottom: .75rem; }
.transcript-messages { max-height: none; overflow: visible; }
.transcript-main { max-width: 900px; }
.transcript-main > .alert { margin-bottom: 1rem; }
.audit-list { list-style: none; margin: 0; padding: 0; }
.audit-entry { padding: 1rem 1.25rem; margin-bottom: .75rem; }
.audit-head { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; justify-content: space-between; }
.audit-entry details { margin-top: .6rem; }
.audit-entry summary { cursor: pointer; color: var(--accent-strong); font-size: .9rem; }
.audit-changes td { white-space: normal; overflow-wrap: anywhere; max-width: 320px; }

/* Phase 6: Automationen */
.action-row { margin: 0 0 1rem; padding: 1rem 1.1rem .25rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-2); }
.action-row > legend { padding: 0 .4rem; font-weight: 600; font-size: .9rem; color: var(--text-muted); }
.pill-job-done { color: var(--success); background: var(--success-soft); border-color: rgba(34, 197, 94, .35); }
.pill-job-pending, .pill-job-running { color: var(--accent-2); background: rgba(32, 197, 216, .12); border-color: rgba(32, 197, 216, .4); }
.pill-job-failed { color: var(--danger); background: var(--danger-soft); border-color: rgba(239, 68, 68, .4); }

/* Phase 7: Tarife */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; margin: 0; padding: 1.75rem; border-radius: var(--radius-lg); }
.plan-card h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.plan-card-featured { border-color: rgba(79, 124, 255, .55); box-shadow: var(--glow); }
.plan-card-current { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.plan-price { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; margin: .5rem 0; }
.plan-features { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.plan-features li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.plan-features li.is-off { color: var(--text-faint); }
.plan-note { max-width: 46rem; margin: 2rem auto 0; text-align: center; }
.section-compact { margin: 2rem 0; }
.section-compact > h2 { margin-bottom: 1rem; }
.section-title-lg { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.meter { display: block; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gradient); }
.meter-high { background: var(--warning); }
.meter-full { background: var(--danger); }
.pill-plan-pro { color: var(--accent-strong); background: var(--accent-soft); border-color: rgba(79, 124, 255, .4); }
.pill-plan-business { color: var(--accent-2); background: rgba(32, 197, 216, .12); border-color: rgba(32, 197, 216, .4); }
@media (max-width: 960px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* Phase 8: Statistiken */
.stat-value-sm { font-size: 1.35rem; }
.chart { margin: 0 0 1rem; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-fill { fill: var(--accent); }
.chart-bar:hover .chart-fill { fill: var(--accent-2); }
.chart-hit { fill: transparent; }
.chart-baseline { stroke: var(--border-strong); stroke-width: 1; }
.chart-axis { fill: var(--text-faint); font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hbars li { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 3ch; gap: .75rem; align-items: center; font-size: .9rem; }
.hbars-compact li { font-size: .82rem; gap: .5rem; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.hbar-track { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--surface-2); overflow: hidden; }
.hbar-fill { display: block; height: 100%; width: 0; border-radius: 0 4px 4px 0; background: var(--accent); }
.hbar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
@media (max-width: 960px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }

/* Startseite: Bildstreifen */
.showcase { display: grid; gap: 4.5rem; }
.showcase-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.showcase-row-reverse .showcase-media { order: 2; }
.showcase-media { margin: 0; }
.showcase-media img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); }
.showcase-text h2 { margin: .35rem 0 .75rem; }
.showcase-text p { color: var(--text-muted); }
.showcase-points { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .55rem; }
.showcase-points li { display: flex; gap: .55rem; align-items: center; }
.showcase-points .icon { color: var(--accent); flex: none; }
@media (max-width: 900px) {
    .showcase { gap: 3rem; }
    .showcase-row { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .showcase-row-reverse .showcase-media { order: 0; }
}

/* ---------- Textbausteine ---------- */
.placeholder-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-button); background: var(--surface-2); font-size: .9rem; }
.placeholder-list dt { margin: 0; }
.placeholder-list dd { margin: 0; color: var(--text-muted); }
/* Vorschau in einer Zeile, abgeschnitten mit …, damit sie die naechste Spalte nicht ueberdeckt */
.snippet-preview { display: block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snippet-picker { max-width: 360px; }

/* ---------- Kontakt ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; align-items: start; max-width: 1080px; margin: 0 auto; padding: 3.5rem 1.25rem 4.5rem; }
.contact-intro h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.contact-intro p { color: var(--text-muted); line-height: 1.65; }
.contact-hints { display: grid; gap: .9rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.contact-hints li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-muted); font-size: .95rem; }
.contact-hints .icon { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--accent-2); }
.contact-card { padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.contact-card .button-lg { margin-top: .5rem; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-message-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.contact-message-head h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.contact-message-head p { margin: 0; overflow-wrap: anywhere; }
.contact-message-state { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.contact-message-state form { margin: 0; }
.contact-message-body { margin: 1rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Erledigte Nachrichten abschwaechen: nur den Inhalt, weil die Karte selbst von der Seitenanimation auf volle Deckkraft gesetzt wird */
.contact-message.is-handled > * { opacity: .7; }
@media (max-width: 900px) {
    .contact-page { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2.5rem; }
}
@media (max-width: 480px) {
    .contact-card { padding: 1.25rem; }
    .contact-card .button-lg { width: 100%; }
}

/* ---------- Bestaetigungsdialog ---------- */
.confirm-dialog {
    width: min(440px, calc(100% - 2rem));
    max-width: none;
    padding: 0;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
}
.confirm-dialog[open] { animation: confirm-in .18s ease-out; }
.confirm-dialog::backdrop { background: rgba(4, 8, 16, .62); backdrop-filter: blur(4px); }
.confirm-dialog-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.1rem; padding: 1.5rem; margin: 0; }
.confirm-dialog-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius-pill);
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, .4);
    color: var(--danger);
    font-weight: 800;
    font-size: 1.15rem;
}
.confirm-dialog-text h2 { margin: .2rem 0 .4rem; font-size: 1.1rem; }
.confirm-dialog-text p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.confirm-dialog-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin-top: .5rem; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
    .confirm-dialog-body { grid-template-columns: minmax(0, 1fr); }
    .confirm-dialog-actions .button { flex: 1 1 auto; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
    .editor-layout { grid-template-columns: minmax(0, 1fr); }
    .editor-side { position: static; order: -1; }
}

@media (max-width: 960px) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 3rem; }
    .tiles, .steps-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ticket-layout { grid-template-columns: minmax(0, 1fr); }
    .site-nav { display: none; }
    .site-header-actions { margin-left: auto; }
    .site-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    h1 { font-size: 1.5rem; }
    .admin-page { display: block; }
    .sidebar { position: static; display: none; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
    .sidebar.is-open { display: flex; }
    .menu-toggle { display: inline-flex; }
    .topbar { flex-wrap: nowrap; padding: .6rem 1rem; }
    .topbar-user { display: none; }
    .menu-toggle { margin-right: auto; }
    .topbar .button-label { display: none; }
    .topbar .button-ghost:has(.button-label) { width: 2.6rem; padding: 0; }
    .locale-form select { max-width: 7.5rem; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .stat-value { font-size: 1.6rem; }
    .admin-main { padding: 1.25rem 1rem; }
    .tiles, .steps-grid { grid-template-columns: minmax(0, 1fr); }
    .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; padding-top: 2.5rem; }
    .checklist li { grid-template-columns: 4.5rem 1fr; }
    .checklist li .muted { grid-column: 2; }
    .card { padding: 1.15rem; }
    .centered-main { padding-top: 2.5rem; }
    .centered-main > .card { padding: 1.4rem; }
    .cta-band { padding: 2.5rem 1.25rem; }
    .hero-actions .button { flex: 1 1 auto; }
    .site-header-actions .button-primary { display: none; }
}

/* ---------- Admin-Uebersicht: Live-Besucher und Besucherzahlen ---------- */
.admin-overview-top { display: grid; grid-template-columns: minmax(250px, 1fr) 2fr; gap: 1rem; margin-bottom: 1.25rem; }
.admin-overview-top .stat-grid { margin-bottom: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-overview-top .card { margin-bottom: 0; }
.live-card { display: flex; flex-direction: column; gap: .35rem; overflow: hidden; }
.live-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--success); opacity: .7; }
.live-head { display: flex; align-items: center; gap: .55rem; }
.live-head h2 { margin: 0; font-size: 1rem; }
.live-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--text-faint); flex: 0 0 auto; }
.live-card.is-active .live-dot { background: var(--success); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live-pulse 1.8s ease-out infinite; }
.live-count { margin: .2rem 0 0; font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.live-card.is-active .live-count { color: var(--success); }
.live-pages { list-style: none; margin: .5rem 0 0; padding: .6rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .35rem; font-size: .88rem; }
.live-pages li { display: flex; justify-content: space-between; gap: 1rem; }
.live-pages strong { font-variant-numeric: tabular-nums; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 .55rem rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.admin-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.admin-overview-grid .card { margin-bottom: 0; }
.admin-overview-grid .hbars li { grid-template-columns: minmax(70px, 42%) 1fr 4ch; }
.visitor-returning { margin: 1rem 0 0; font-size: .85rem; }
.business-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .business-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.system-badges { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.system-badges li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-button); background: var(--surface-2); font-size: .88rem; }
@media (max-width: 1100px) { .admin-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .admin-overview-top, .admin-overview-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner { position: fixed; z-index: 60; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(760px, calc(100% - 2rem)); display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); animation: cookie-in .35s cubic-bezier(.22, .8, .24, 1); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 .25rem; font-size: 1rem; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.cookie-banner-actions { display: flex; gap: .5rem; flex: 0 0 auto; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
@media (max-width: 640px) {
    .cookie-banner { flex-direction: column; align-items: stretch; bottom: .75rem; }
    .cookie-banner-actions .button { flex: 1 1 0; }
}

/* ---------- Seitenanimation (Dashboard und Administration) ---------- */
/* Bloecke erscheinen gestaffelt aus Unschaerfe, Kennzahlkarten einzeln. Nur "backwards", damit Hover-Effekte danach greifen. */
.admin-main > :not(.stat-grid),
.admin-main > .stat-grid > * { animation: motion-in .6s cubic-bezier(.22, .8, .24, 1) backwards; animation-delay: calc(var(--motion-i, 0) * 70ms); }
.admin-main > :nth-child(2) { --motion-i: 1; }
.admin-main > :nth-child(3) { --motion-i: 2; }
.admin-main > :nth-child(4) { --motion-i: 4; }
.admin-main > :nth-child(5) { --motion-i: 5; }
.admin-main > :nth-child(6) { --motion-i: 6; }
.admin-main > :nth-child(n+7) { --motion-i: 7; }
.admin-main > .stat-grid > :nth-child(1) { --motion-i: 1; }
.admin-main > .stat-grid > :nth-child(2) { --motion-i: 2; }
.admin-main > .stat-grid > :nth-child(3) { --motion-i: 3; }
.admin-main > .stat-grid > :nth-child(4) { --motion-i: 4; }
.admin-main > .stat-grid > :nth-child(5) { --motion-i: 5; }
.admin-main > .stat-grid > :nth-child(n+6) { --motion-i: 6; }
.admin-main.motion-leave > * { animation: motion-out .18s ease-in forwards; }
/* Balken wachsen von der Grundlinie, Fuellstaende gleiten auf ihre Breite */
.admin-page .chart-fill { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow .7s cubic-bezier(.22, .8, .24, 1) backwards; animation-delay: calc(250ms + var(--motion-b, 0) * 18ms); }
.admin-page .meter-fill, .admin-page .hbar-fill { transition: width .9s cubic-bezier(.22, .8, .24, 1) .2s; }
/* Karten heben sich beim Ueberfahren leicht an */
.admin-page .card.stat { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.admin-page .card.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
@keyframes motion-in { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes motion-out { to { opacity: 0; transform: translateY(-6px); filter: blur(6px); } }
@keyframes bar-grow { from { transform: scaleY(0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Testrunde 08.11.: Ausrichtung ---------- */
/* Platz fuer den Scrollbalken immer reservieren, damit Kopfzeile und Buttons beim Seitenwechsel nicht springen. */
html { scrollbar-gutter: stable; }
/* Einzeilige Felder gleich hoch wie Buttons (Datumsfelder waren durch die Zeilenhoehe 4px hoeher). */
.field input, .field select, .switcher select, .locale-form select, .filter-bar select, .filter-bar input { line-height: 1.25; }
/* Steht unter dem Feld ein Hilfetext, sitzt der Button auf Hoehe des Feldes statt am unteren Rand des Hilfetextes. */
.inline-create:has(> .field .field-help) > .button { align-self: flex-start; margin-top: calc(.9rem * 1.6 + .35rem); }
/* Abstand zwischen Tabelle und folgendem Button */
.table-wrap + p, .table-wrap + .button, .table-wrap + form { margin-top: 1rem; }
/* Kurze Auswahl mit Button direkt daneben (z. B. Sprache des Bots) */
.control-with-button { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.control-with-button select { width: auto; flex: 0 1 16rem; min-width: 10rem; }
/* Hinweis auf den eigenen Support-Server in der Serverliste */
.support-invite { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .75rem 1rem; margin-bottom: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-button); background: var(--bg-soft); }
/* Achsenbeschriftung als normaler Text, damit sie nicht mit der Diagrammbreite waechst */
.chart-labels { display: flex; justify-content: space-between; margin-top: .35rem; font-size: .78rem; color: var(--text-faint); }
.chart-peak { margin: 0 0 .35rem; font-size: .78rem; color: var(--text-faint); }

/* ---------- Zwei-Faktor-Anmeldung ---------- */
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem !important; letter-spacing: .2em; max-width: 16rem; }
.two-factor-steps { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--text-muted); }
.two-factor-steps li { margin-bottom: .25rem; }
.two-factor-setup { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.qr-box { width: 200px; padding: .5rem; background: #fff; border-radius: var(--radius-button); line-height: 0; }
.qr-box svg { width: 100%; height: auto; }
.secret-code { display: inline-block; padding: .4rem .6rem; border-radius: var(--radius-button); background: var(--bg-soft); border: 1px solid var(--border); font-size: .95rem; letter-spacing: .08em; word-break: break-all; }
.recovery-card { border-color: var(--warning); }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.recovery-codes code { display: block; padding: .45rem .6rem; text-align: center; border-radius: var(--radius-button); background: var(--bg-soft); border: 1px solid var(--border); font-size: 1rem; letter-spacing: .06em; }
@media (max-width: 640px) {
    .two-factor-setup { grid-template-columns: 1fr; }
    .qr-box { width: 180px; }
}

/* Versionsnummer und Admin-Zugang im Footer */
.app-version { margin-left: .35rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.footer-meta { align-items: center; }
.footer-admin { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: var(--radius-button); }
.footer-admin .icon { width: 1rem; height: 1rem; }
.footer-admin:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.sidebar-version { margin: auto 0 0; padding: 1rem .75rem 0; font-size: .75rem; color: var(--text-faint); }

/* ---------- Scrollbalken: schmal, ohne Pfeile, in den Farben der Seite (hell und dunkel) ---------- */
/* Standard-Eigenschaften nur fuer Firefox: Chrome wuerde sonst die Gestaltung unten ignorieren und Pfeile zeigen. */
@supports (-moz-appearance: none) {
    * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
    *:hover { scrollbar-color: var(--text-faint) transparent; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-faint); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

/* Kompakte Symbol-Buttons in Tabellenzeilen (Beschriftung als Tooltip und fuer Screenreader) */
.row-actions .icon-action { width: 2rem; min-height: 2rem; padding: 0; justify-content: center; }
.row-actions .icon-action .icon { width: 1rem; height: 1rem; }
.row-actions .icon-action:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.row-actions form[data-confirm] .icon-action:hover { color: var(--danger); border-color: rgba(239, 68, 68, .4); }
.icon-action-spacer { display: inline-block; width: 2rem; flex: 0 0 2rem; }
.table td.row-actions { padding-left: .5rem; padding-right: .5rem; }
/* Aktionsspalte bleibt eine echte Tabellenzelle, damit Trennlinien und Hoehe zur Zeile passen */
td.row-actions { display: table-cell; white-space: nowrap; text-align: right; vertical-align: middle; }
td.row-actions > form, td.row-actions > .icon-action-spacer { display: inline-block; vertical-align: middle; margin-left: .3rem; }
td.row-actions > :first-child { margin-left: 0; }

/* Antworten auf Kontaktanfragen */
.contact-replies { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.contact-reply { margin-left: 1.25rem; padding: .75rem 1rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-button) var(--radius-button) 0; background: var(--bg-soft); }
.contact-reply.is-failed { border-left-color: var(--danger); }
.contact-reply-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .85rem; color: var(--text-muted); }
.contact-reply-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-reply form { margin-top: .6rem; }
.contact-reply-form { margin-top: 1rem; }
.contact-reply-form summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.contact-reply-form form { margin-top: .75rem; }
.contact-reply-off { margin: 1rem 0 0; }

/* ---------- Startseite: Sicherheit ---------- */
.tiles-security .tile { position: relative; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tiles-security .tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), #20c5d8, transparent); opacity: .55; transition: opacity .2s ease; }
.tiles-security .tile::after { content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 124, 255, .14), transparent 70%); pointer-events: none; }
.tiles-security .tile:hover { transform: translateY(-3px); border-color: rgba(79, 124, 255, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .28), 0 0 0 1px rgba(79, 124, 255, .12); }
.tiles-security .tile:hover::before { opacity: 1; }
.tiles-security .tile-icon { background: linear-gradient(135deg, rgba(79, 124, 255, .28), rgba(32, 197, 216, .22)); border-color: rgba(79, 124, 255, .45); box-shadow: 0 0 18px rgba(79, 124, 255, .25); color: #9fd8ff; }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.trust-strip li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--text-muted); font-size: .88rem; }
.trust-strip .icon { width: 1rem; height: 1rem; color: var(--success); }
@media (prefers-reduced-motion: reduce) { .tiles-security .tile, .tiles-security .tile::before { transition: none; } .tiles-security .tile:hover { transform: none; } }
/* Helles Design: Symbole in kraeftiger Akzentfarbe statt Hellblau */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .tiles-security .tile-icon { color: var(--accent); box-shadow: 0 0 14px rgba(79, 124, 255, .16); } }
:root[data-theme="light"] .tiles-security .tile-icon { color: var(--accent); box-shadow: 0 0 14px rgba(79, 124, 255, .16); }

/* ---------- Startseite: Tarif-Vorschau ---------- */
.plan-teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan-teaser-card { position: relative; display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.plan-teaser-card:hover { transform: translateY(-3px); border-color: rgba(79, 124, 255, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.plan-teaser-card.is-featured { border-color: rgba(79, 124, 255, .6); background: linear-gradient(180deg, rgba(79, 124, 255, .14), transparent 55%), var(--surface); box-shadow: 0 0 0 1px rgba(79, 124, 255, .25), 0 18px 40px rgba(79, 124, 255, .12); }
.plan-teaser-badge { position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%); padding: .2rem .75rem; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #20c5d8); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.plan-teaser-card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.plan-teaser-price { margin: 0 0 .35rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; }
.plan-teaser-tagline { margin: 0 0 1rem; color: var(--text-muted); font-size: .92rem; }
.plan-teaser-card ul { display: grid; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; flex: 1; }
.plan-teaser-card li { display: flex; gap: .5rem; align-items: flex-start; color: var(--text-muted); font-size: .92rem; }
.plan-teaser-card li .icon { flex: 0 0 auto; width: 1rem; height: 1rem; margin-top: .2rem; color: var(--success); }
.plan-teaser-card .button { justify-content: center; }
.plan-teaser-more { margin: 1.5rem 0 0; text-align: center; }
.plan-teaser-more a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.plan-teaser-more .icon { width: 1rem; height: 1rem; }
@media (max-width: 860px) { .plan-teaser { grid-template-columns: 1fr; max-width: 28rem; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .plan-teaser-card { transition: none; } .plan-teaser-card:hover { transform: none; } }
.plan-teaser-tagline { min-height: 2.9em; }

/* ---------- Preisseite: Fragen als Akkordeon ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; max-width: 1000px; margin: 0 auto; }
.faq-column { display: grid; gap: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: rgba(79, 124, 255, .45); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 650; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--text-muted); font-size: .95rem; }
.faq-toggle { position: relative; flex: 0 0 1.6rem; width: 1.6rem; height: 1.6rem; border: 1px solid var(--border-strong); border-radius: 50%; transition: transform .25s ease, background-color .2s ease, border-color .2s ease; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: .65rem; height: 2px; margin: -1px 0 0 -.325rem; border-radius: 2px; background: currentColor; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: rgba(79, 124, 255, .18); border-color: rgba(79, 124, 255, .5); color: var(--accent); }
.faq-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1rem; margin: 2rem 0 .5rem; color: var(--text-muted); }
.faq-more a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); text-decoration: none; font-weight: 600; font-size: .9rem; }
.faq-more a:hover { border-color: rgba(79, 124, 255, .45); }
.faq-more .icon { width: 1rem; height: 1rem; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq-toggle { transition: none; } }

/* ---------- Startseite: Funktionen als laufende Kachelreihen ---------- */
.marquee { display: grid; gap: 1.25rem; padding: .5rem 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { overflow: hidden; padding: 6px 0 10px; }
.marquee-track { display: flex; width: max-content; animation: marquee-left 70s linear infinite; }
.marquee-row-reverse .marquee-track { animation-name: marquee-right; animation-duration: 60s; }
.marquee-row:hover .marquee-track, .marquee-row:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 1.25rem; padding-right: 1.25rem; }
.marquee .tile { flex: 0 0 20rem; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.marquee .tile:hover { transform: translateY(-3px); border-color: rgba(79, 124, 255, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 640px) { .marquee .tile { flex-basis: 16rem; } }
/* Weniger Bewegung gewuenscht: normales Raster ohne Laufband und ohne doppelte Kacheln */
@media (prefers-reduced-motion: reduce) {
    .marquee { margin: 0; -webkit-mask-image: none; mask-image: none; }
    .marquee-track { animation: none; width: auto; }
    .marquee-group[aria-hidden="true"] { display: none; }
    .marquee-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); width: 100%; padding: 0; }
    .marquee .tile { flex: none; }
}

/* Cloudflare Turnstile: Platz fuer das Pruef-Feld, damit nichts springt */
.turnstile-field { min-height: 70px; margin: 0 0 1rem; }

/* Gespeicherte Geheimnisse (Secret, Token, Passwort) deutlich kennzeichnen */
.stored-badge { display: inline-flex; align-items: center; gap: .3rem; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 600; vertical-align: middle; color: var(--success); background: var(--success-soft); border: 1px solid rgba(34, 197, 94, .35); }
.stored-badge .icon { width: .8rem; height: .8rem; }
.field.field-stored input { border-color: rgba(34, 197, 94, .45); background-color: color-mix(in srgb, var(--success-soft) 45%, transparent); }
.field.field-stored input::placeholder { color: var(--success); opacity: .85; letter-spacing: .02em; }
.field.field-stored .field-help { color: var(--success); }

/* Kurzmeldungen oben rechts (Toasts) */
.toast-stack { position: fixed; top: 4.75rem; right: 1.25rem; z-index: 1000; display: flex; flex-direction: column; gap: .6rem; width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
.toast { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: .65rem; padding: .75rem .6rem .8rem .9rem; border-radius: 12px; border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); color: var(--text); font-size: .9rem; line-height: 1.45; pointer-events: auto; animation: toast-in .35s cubic-bezier(.2, .8, .2, 1) both; transition: opacity .3s ease, transform .3s ease; }
.toast.is-leaving { opacity: 0; transform: translateX(1.25rem); }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-icon { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .1rem; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-message { flex: 1; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.toast-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin: -.15rem 0 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
.toast-close:hover, .toast-close:focus-visible { background: var(--bg-soft); color: var(--text); }
.toast-close .icon { width: .95rem; height: .95rem; }
.toast-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; opacity: .7; }
.toast-success .toast-progress { background: var(--success); }
.toast-error .toast-progress { background: var(--danger); }
.toast.is-timed .toast-progress { animation: toast-timer 5s linear forwards; }
.toast-error.is-timed .toast-progress { animation-duration: 9s; }
.toast:hover .toast-progress, .toast:focus-within .toast-progress { animation-play-state: paused; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-.5rem) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) { .toast-stack { top: auto; bottom: 1rem; right: 1rem; left: 1rem; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; transition: opacity .2s ease; } .toast.is-leaving { transform: none; } }

/* Umschalter Neu / Archiv (Kontaktanfragen) */
.view-tabs { display: inline-flex; gap: .35rem; padding: .3rem; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.view-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 9px; color: var(--text-muted); font-weight: 600; font-size: .92rem; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.view-tab .icon { width: 1rem; height: 1rem; }
.view-tab:hover { color: var(--text); background: var(--bg-soft); }
.view-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), #2bb5d8); box-shadow: 0 4px 14px rgba(79, 124, 255, .3); }
.view-tab-count { min-width: 1.4rem; padding: .05rem .4rem; border-radius: 999px; font-size: .76rem; text-align: center; background: var(--bg-soft); color: var(--text-muted); }
.view-tab.is-active .view-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Admin-Postfach ---------- */
.admin-main:has(.mailbox), .admin-main:has(.compose) { max-width: 1400px; }
.nav-badge { margin-left: auto; min-width: 1.35rem; padding: .05rem .4rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.4; }
.mailbox { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.mailbox-folders { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.mailbox-compose-button { justify-content: center; margin-bottom: .75rem; }
.mailbox-folders nav { display: flex; flex-direction: column; gap: .15rem; }
.mailbox-folder { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 9px; color: var(--text-muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.mailbox-folder .icon { width: 1.05rem; height: 1.05rem; }
.mailbox-folder:hover { background: var(--surface-2); color: var(--text); }
.mailbox-folder.is-active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); font-weight: 600; }
.mailbox-folder.is-disabled { opacity: .6; cursor: default; }
.mailbox-folder.depth-1 { padding-left: 1.6rem; } .mailbox-folder.depth-2 { padding-left: 2.5rem; } .mailbox-folder.depth-3 { padding-left: 3.4rem; }
.mailbox-folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-count { min-width: 1.4rem; padding: .05rem .45rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; text-align: center; }
.mailbox-count.is-muted { background: var(--bg-soft); color: var(--text-muted); }
.mailbox-settings-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem; padding: .5rem .7rem; color: var(--text-muted); font-size: .85rem; text-decoration: none; }
.mailbox-settings-link:hover { color: var(--text); }
.mailbox-main { padding: 0; overflow: hidden; margin-bottom: 0; }
.mailbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1.1rem 1.25rem .9rem; border-bottom: 1px solid var(--border); }
.mailbox-head h2 { margin: 0; font-size: 1.2rem; }
.mailbox-head p { margin: .15rem 0 0; }
.mailbox-search { position: relative; flex: 0 1 320px; }
.mailbox-search .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.mailbox-search input { width: 100%; padding: .55rem .8rem .55rem 2.3rem; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text); font: inherit; font-size: .9rem; }
.mailbox-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.mailbox-toolbar, .mail-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding: .5rem 1rem; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.mailbox-toolbar-spacer { flex: 1; }
.mailbox-check-all { display: inline-flex; align-items: center; padding: 0 .55rem 0 .3rem; }
.mailbox-move { display: inline-flex; gap: .35rem; margin-left: .5rem; }
.mailbox-move select { max-width: 170px; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text); font: inherit; font-size: .85rem; }
.mailbox-move .button { padding: .35rem .75rem; font-size: .85rem; }
.icon-action.is-danger:hover { color: var(--danger); }
.icon-action.is-on .icon { fill: var(--warning); stroke: var(--warning); }
.mailbox-filter { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); font-size: .82rem; font-weight: 600; text-decoration: none; }
.mailbox-filter:hover { color: var(--text); }
.mailbox-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.mailbox-list { list-style: none; margin: 0; padding: 0; }
.mailbox-row { display: flex; align-items: center; border-bottom: 1px solid var(--border); transition: background-color .12s ease; }
.mailbox-row:last-child { border-bottom: 0; }
.mailbox-row:hover { background: var(--surface-2); }
.mailbox-row:has(input:checked) { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.mailbox-row-check { display: inline-flex; align-items: center; padding: .8rem .4rem .8rem 1.3rem; cursor: pointer; }
.mailbox-row-star { width: 1.4rem; display: inline-flex; justify-content: center; }
.mailbox-row-star .icon { width: .95rem; height: .95rem; fill: var(--warning); stroke: var(--warning); }
.mailbox-row-link { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .75rem 1.25rem .75rem .4rem; color: var(--text-muted); text-decoration: none; font-size: .92rem; }
.mailbox-row-from, .mailbox-row-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-row-subject { color: var(--text-muted); }
.mailbox-row-flag { width: .9rem; height: .9rem; margin-right: .25rem; color: var(--accent); }
.mailbox-row-meta { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; white-space: nowrap; }
.mailbox-row.is-unread .mailbox-row-from, .mailbox-row.is-unread .mailbox-row-subject { color: var(--text); font-weight: 700; }
.mailbox-row.is-unread .mailbox-row-check { box-shadow: inset 3px 0 0 var(--accent); }
.mailbox-empty { padding: 3rem 1rem; }
.mailbox-empty > .icon, .mailbox-error > .icon { width: 2.4rem; height: 2.4rem; color: var(--text-faint); margin-bottom: .5rem; }
.mailbox-main + .pagination, .mailbox-main .pagination { padding: .9rem; margin: 0; border-top: 1px solid var(--border); }
.mailbox-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.25rem !important; }
.mail-view { padding-bottom: 1.25rem; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); }
.mail-header { padding: 1.25rem 1.25rem .5rem; }
.mail-subject { margin: 0 0 1rem; font-size: 1.35rem; line-height: 1.35; overflow-wrap: anywhere; }
.mail-from { display: flex; gap: .85rem; align-items: flex-start; }
.mail-from .avatar-fallback { width: 40px; height: 40px; font-size: 1rem; flex: none; }
.mail-from strong { margin-right: .35rem; }
.mail-meta { display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; margin: .4rem 0 0; font-size: .85rem; color: var(--text-muted); }
.mail-meta dt { font-weight: 600; }
.mail-meta dd { margin: 0; overflow-wrap: anywhere; }
.mail-note { margin: .75rem 1.25rem 0; padding: .5rem .8rem; border-radius: 8px; background: var(--bg-soft); color: var(--text-muted); font-size: .82rem; }
.mail-body { margin: 1rem 1.25rem 0; padding: 1.1rem 1.25rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.6; }
.mail-quote { display: block; color: var(--text-muted); border-left: 3px solid var(--border-strong); padding-left: .75rem; margin: .25rem 0; }
.mail-attachments { margin: 1.25rem 1.25rem 0; }
.mail-attachments h3 { display: flex; align-items: center; gap: .4rem; font-size: .95rem; margin: 0 0 .6rem; }
.mail-attachments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mail-attachments a { display: inline-flex; align-items: center; gap: .5rem; max-width: 320px; padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); text-decoration: none; font-size: .88rem; }
.mail-attachments a:hover { border-color: var(--accent); }
.mail-attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose { max-width: 960px; margin: 0 auto; padding: 0; overflow: hidden; }
.compose-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: .75rem; padding: .35rem 1.25rem; border-bottom: 1px solid var(--border); }
.compose-row label, .compose-label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.compose-input input { width: 100%; padding: .55rem 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .95rem; }
.compose-input input:focus { outline: none; }
.compose-row:focus-within { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.compose-row.has-error { background: var(--danger-soft); }
.compose-from { display: inline-block; padding: .55rem 0; color: var(--text-muted); font-size: .92rem; }
.compose-copies > summary { padding: .45rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--accent); font-size: .85rem; font-weight: 600; cursor: pointer; }
.compose-body textarea { display: block; width: 100%; min-height: 340px; padding: 1.1rem 1.25rem; border: 0; resize: vertical; background: transparent; color: var(--text); font: inherit; font-size: .95rem; line-height: 1.6; }
.compose-body textarea:focus { outline: none; }
.compose-body .field-error, .compose-attachments .field-error, .compose-input .field-error { margin: 0 0 .4rem; }
.compose-body .field-error { padding: 0 1.25rem; }
.compose-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .85rem 1.25rem; border-top: 1px solid var(--border); }
.compose-carry { flex: 1 0 100%; margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.compose-carry legend { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; }
.compose-carry .checkbox span { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; }
.compose-upload { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 10px; border: 1px dashed var(--border-strong); color: var(--text); font-size: .88rem; font-weight: 600; cursor: pointer; }
.compose-upload:hover, .compose-upload:focus-within { border-color: var(--accent); }
.compose-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.compose-files { font-size: .82rem; }
.compose-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
@media (max-width: 900px) {
    .mailbox { grid-template-columns: 1fr; }
    .mailbox-folders { position: static; }
    .mailbox-folders nav { flex-direction: row; flex-wrap: wrap; }
    .mailbox-folder.depth-1, .mailbox-folder.depth-2, .mailbox-folder.depth-3 { padding-left: .7rem; }
    .mailbox-row-link { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .75rem; }
    .mailbox-row-from { grid-column: 1; }
    .mailbox-row-subject { grid-column: 1 / -1; grid-row: 2; }
    .mailbox-row-meta { grid-column: 2; grid-row: 1; }
    .compose-row { grid-template-columns: 1fr; gap: 0; padding-top: .5rem; }
}

/* Schreibfenster neben der Ordnerleiste */
.mailbox .compose { max-width: none; margin: 0; }

/* Postfach ohne Einblend-Animation, Inhalte stehen sofort da */
.admin-main:has(.mailbox) > *, .admin-main:has(.mailbox) > .stat-grid > * { animation: none !important; }

/* ---------- Support-Vorlagen ---------- */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.template-card { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 0; }
.template-card h2 { margin: 0; font-size: 1.2rem; }
.template-card p { margin: 0; }
.template-card .button { align-self: flex-start; margin-top: auto; }
.template-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gradient); color: #fff; }
.template-card-icon .icon { width: 1.35rem; height: 1.35rem; }
.template-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; font-size: .88rem; color: var(--text-muted); }
.template-facts li { display: flex; align-items: center; gap: .45rem; }
.template-facts .icon { color: var(--accent); }
.template-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.template-chip { padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: .8rem; }
.template-summary { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1rem; color: var(--text-muted); }
.template-summary strong { color: var(--text); font-size: 1.15rem; }
.template-summary .is-warning strong { color: var(--warning); }
.template-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.template-plan-group h3 { font-size: .9rem; margin: 0 0 .5rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.template-plan-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.template-plan-group li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem .7rem; border-radius: 9px; background: var(--surface-2); font-size: .9rem; }
.template-plan-name { min-width: 0; overflow-wrap: anywhere; }
.template-plan-group .badge { flex: none; }
.template-promises { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--text-muted); }
.template-promises li { display: flex; align-items: center; gap: .5rem; }
.template-promises .icon { color: var(--success); }
.template-errors { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---------- Release-Countdown ---------- */
.launch-countdown { margin: 1.5rem 0 1.25rem; padding: 1.1rem 1.25rem 1rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, #2bb5d8 10%, transparent)); box-shadow: 0 12px 34px rgba(79, 124, 255, .18); max-width: 560px; scroll-margin-top: 6rem; }
.launch-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font-weight: 700; font-size: 1rem; }
.launch-title .icon { color: var(--accent); }
.launch-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.launch-unit { display: flex; flex-direction: column; align-items: center; padding: .65rem .3rem .55rem; border-radius: 12px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); }
.launch-unit strong { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.1; font-variant-numeric: tabular-nums; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.launch-unit small { margin-top: .2rem; font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.launch-note { margin: .8rem 0 0; font-size: .86rem; color: var(--text-muted); }

/* ---------- Aktionen und Gutscheine ---------- */
.promo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .75rem; padding: .55rem 1rem; background: var(--gradient); color: #fff; font-size: .9rem; font-weight: 600; text-align: center; }
.promo-bar .icon { width: 1rem; height: 1rem; }
.promo-bar-timer { padding: .1rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .2); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.promo-bar-timer:empty { display: none; }
.coupon-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 520px; }
.coupon-form input { flex: 1 1 220px; padding: .6rem .8rem; border-radius: var(--radius-button); border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text); font: inherit; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.coupon-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
input.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Einrichtungs-Assistent ---------- */
.setup-guide { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.setup-guide-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: .75rem; }
.setup-guide-head h2 { margin: 0; }
.setup-guide-head p { margin: .2rem 0 0; }
.setup-guide .meter { display: block; margin-bottom: 1rem; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.setup-step { display: flex; align-items: center; gap: .85rem; padding: .65rem .8rem; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; }
.setup-step.is-next { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.setup-step.is-done { opacity: .75; }
.setup-step-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--border-strong); }
.setup-step.is-done .setup-step-mark { border-color: var(--success); background: var(--success); color: #fff; }
.setup-step-mark .icon { width: .9rem; height: .9rem; stroke-width: 2.6; }
.setup-step-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.setup-step-text .muted { font-size: .84rem; }
.setup-step .button, .setup-step .badge { flex: none; }
@media (max-width: 640px) { .setup-step { flex-wrap: wrap; } .setup-step .button { margin-left: 2.45rem; } }

/* Postfach: Textbausteine und Absender-Verlauf */
.compose-snippets { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .5rem 1.25rem; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 40%, transparent); font-size: .88rem; }
.compose-snippets label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--text-muted); }
.compose-snippets select { max-width: 280px; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text); font: inherit; }
.compose-snippets-manage { margin-left: auto; font-size: .82rem; }
.mail-snippet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.mail-snippet-list li { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: 10px; background: var(--surface-2); }
.mail-snippet-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mail-snippet-text .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.mail-snippet-list form { margin: 0; }
.mail-sender-history { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: .5rem 1.25rem 0; padding: .55rem .85rem; border-radius: 10px; border: 1px solid var(--border); font-size: .86rem; }
.mail-sender-history .icon { color: var(--accent); }

/* ---------- Ueberwachung ---------- */
.monitor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.monitor-head h2 { margin: 0; }
.monitor-head form { margin: 0; }
.monitor-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.monitor-list li { display: grid; grid-template-columns: auto 160px 1fr; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 10px; background: var(--surface-2); font-size: .92rem; }
.monitor-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.monitor-list li.is-fail .monitor-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.monitor-list li.is-fail { border: 1px solid rgba(239, 68, 68, .35); }
@media (max-width: 640px) { .monitor-list li { grid-template-columns: auto 1fr; } .monitor-list li .muted { grid-column: 2; } }

/* ---------- Statusseite ---------- */
.status-page { max-width: 760px; margin: 0 auto; }
.status-overall { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; }
.status-overall > div { display: flex; flex-direction: column; gap: .15rem; }
.status-overall .muted { font-size: .85rem; }
.status-dot { flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px var(--success-soft); }
.status-degraded .status-dot { background: var(--warning); box-shadow: 0 0 0 6px var(--warning-soft); }
.status-down .status-dot { background: var(--danger); box-shadow: 0 0 0 6px var(--danger-soft); }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .2rem; border-bottom: 1px solid var(--border); }
.status-list li:last-child { border-bottom: 0; }
.status-help { text-align: center; }

/* Admin-Rollen */
.inline-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.inline-form select, .inline-form .button { height: 2.1rem; padding: 0 .7rem; border-radius: 8px; font-size: .86rem; line-height: 1; box-sizing: border-box; }
.inline-form select { border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text); font-family: inherit; }

/* Empfehlungsprogramm */
.referral-code { display: inline-flex; align-items: center; gap: .75rem; margin: .25rem 0 .75rem; padding: .6rem .9rem; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.referral-code code { font-size: 1.2rem; font-weight: 700; letter-spacing: .08em; background: transparent; padding: 0; user-select: all; }

/* Vertrauenshinweise bei der Anmeldung */
.login-safety { display: flex; align-items: flex-start; gap: .5rem; margin: 1rem 0 0; padding: .65rem .8rem; border-radius: 10px; background: var(--success-soft); color: var(--text); font-size: .88rem; }
.login-safety .icon { color: var(--success); flex: none; margin-top: .1rem; }
.admin-login-note { font-size: .86rem; }

/* ---------- Neuigkeiten (Changelog) ---------- */
.changelog-page { max-width: 820px; margin: 0 auto; }
.changelog-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.changelog-entry { margin: 0; scroll-margin-top: 6rem; }
.changelog-entry.is-latest { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 12px 34px rgba(79, 124, 255, .15); }
.changelog-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .35rem; }
.changelog-version { font-family: var(--font-mono); font-weight: 700; font-size: .9rem; padding: .15rem .55rem; border-radius: 999px; background: var(--gradient); color: #fff; }
.changelog-head time { margin-left: auto; font-size: .85rem; }
.changelog-entry h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.changelog-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.changelog-item { display: grid; grid-template-columns: 7.2rem 1fr; gap: .75rem; align-items: start; font-size: .94rem; line-height: 1.55; }
.changelog-tag { display: inline-flex; align-items: center; gap: .3rem; justify-self: start; padding: .12rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.changelog-tag .icon { width: .8rem; height: .8rem; }
.changelog-item.is-new .changelog-tag { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.changelog-item.is-improved .changelog-tag { color: var(--warning); background: var(--warning-soft); }
.changelog-item.is-fixed .changelog-tag { color: var(--success); background: var(--success-soft); }
@media (max-width: 560px) { .changelog-item { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- API & Webhooks ---------- */
.api-secret { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.api-secret h2, .api-locked h2 { display: flex; align-items: center; gap: .5rem; }
.copy-field { display: flex; gap: .5rem; flex-wrap: wrap; }
.copy-field input { flex: 1 1 18rem; min-width: 0; font-family: var(--font-mono); font-size: .88rem; }
.api-key-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-top: 1rem; }
.api-key-form .field { flex: 1 1 16rem; margin: 0; }
.api-example { margin-top: 1rem; }
.api-example summary, .help-page summary { cursor: pointer; font-weight: 600; }
.api-example pre, .help-page pre { overflow-x: auto; padding: .85rem 1rem; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); font-size: .85rem; line-height: 1.5; }
.webhook-item { padding: .9rem 0; border-top: 1px solid var(--border); }
.webhook-item:first-of-type { border-top: 0; }
.webhook-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.webhook-url { word-break: break-all; font-size: .9rem; }
.webhook-events { font-size: .85rem; margin: .35rem 0; }
.webhook-item .actions { margin-top: .5rem; }
.webhook-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .6rem; }
.event-option { margin: 0; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); transition: border-color .15s ease, background .15s ease; }
.event-option:hover { border-color: var(--border-strong); }
.event-option:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--bg-soft)); }
.event-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.event-text code { font-size: .74rem; color: var(--text-muted); background: none; padding: 0; overflow-wrap: anywhere; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset.field legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }

/* ---------- Hilfe ---------- */

/* ---------- Startseite: Positionierung, Zielgruppen, Vorteile, Einblick ---------- */
.hero-slogan { margin: -.25rem 0 .9rem; font-size: 1.15rem; font-weight: 600; color: var(--accent-2); letter-spacing: .01em; }
.hero-screen { margin: 0; }
.hero-screen img { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), var(--glow); }
.hero-screen figcaption, .gallery-item figcaption { margin-top: .6rem; font-size: .82rem; color: var(--text-muted); text-align: center; }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.audience-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.audience-card h3 { margin: .5rem 0 .25rem; font-size: 1.2rem; }
.audience-problem { margin: 0 0 .5rem; color: var(--text-muted); font-size: .95rem; line-height: 1.55; }
.audience-label { margin: .5rem 0 .1rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); }
.audience-flow { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; font-size: .93rem; line-height: 1.5; }
.audience-tools { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.audience-tools li { padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.audience-template { margin: auto 0 0; padding-top: .9rem; display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.usp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.usp-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border-radius: var(--radius-card); }
.usp-item h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.usp-item p { margin: 0; color: var(--text-muted); font-size: .93rem; line-height: 1.55; }
.usp-item .tile-icon { flex: 0 0 auto; }
.screen-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.gallery-item { margin: 0; grid-column: span 2; }
.gallery-item:nth-child(1), .gallery-item:nth-child(2) { grid-column: span 3; }
.gallery-item a { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: transform .2s ease, border-color .2s ease; }
.gallery-item a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item figcaption { text-align: left; }
.gallery-item figcaption strong { display: block; color: var(--text); font-size: .95rem; margin-bottom: .15rem; }
.steps-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-cta, .section-more { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 960px) {
    .audience-grid, .usp-grid { grid-template-columns: minmax(0, 1fr); }
    .steps-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .screen-gallery { grid-template-columns: minmax(0, 1fr); }
    .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(2) { grid-column: auto; }
}
@media (max-width: 560px) { .steps-grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tarifvergleich ---------- */
.plan-card { position: relative; }
.plan-badge { position: absolute; top: -.7rem; right: 1.25rem; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; background: var(--gradient); box-shadow: var(--glow); }
.plan-highlights { list-style: none; margin: .9rem 0 .25rem; padding: 0; display: grid; gap: .4rem; font-size: .93rem; }
.plan-highlights li { display: flex; gap: .5rem; align-items: flex-start; }
.plan-highlights .icon { color: var(--accent-2); flex: 0 0 auto; margin-top: .15rem; }
.plan-features li.is-better strong { color: var(--accent-2); }

/* ---------- Sicherheit ---------- */
.security-page { max-width: 1040px; margin: 0 auto; }
.security-note { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; margin: 0 0 2rem; border-radius: var(--radius-card); border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--border)); background: var(--warning-soft); }
.security-note p { margin: 0; line-height: 1.55; }
.security-note .icon { color: var(--warning); flex: 0 0 auto; margin-top: .2rem; }
.security-heading { margin: 2.25rem 0 1rem; scroll-margin-top: 6rem; }
.security-subheading { margin: 1.5rem 0 .5rem; }
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.security-card { margin: 0; }
.security-card h3 { margin: .6rem 0 .35rem; font-size: 1.05rem; }
.security-card p { margin: 0; color: var(--text-muted); font-size: .93rem; line-height: 1.55; }
.security-list { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.data-table td:first-child { font-weight: 600; }
@media (max-width: 960px) { .security-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bildfenster (Galerie) ---------- */
html.lightbox-open { overflow: hidden; }
.lightbox { width: min(1500px, calc(100vw - 9rem)); max-width: none; max-height: 94vh; margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(3, 6, 14, .86); backdrop-filter: blur(6px); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lightbox-in .18s ease-out; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; max-width: 100%; }
.lightbox-figure img { display: block; max-width: 100%; max-height: calc(94vh - 5.5rem); width: auto; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); background: var(--surface); }
.lightbox-figure figcaption { max-width: 60rem; text-align: center; font-size: .93rem; color: var(--text-muted); line-height: 1.5; }
.lightbox-figure figcaption strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: .15rem; }
.lightbox-button { position: fixed; display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(17, 28, 46, .88); color: #fff; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.lightbox-button:hover, .lightbox-button:focus-visible { background: var(--accent); border-color: var(--accent); outline: none; }
.lightbox-button .icon { width: 1.2rem; height: 1.2rem; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: fixed; top: 1.6rem; left: 50%; transform: translateX(-50%); margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.gallery-item a { cursor: zoom-in; }
@media (max-width: 700px) {
    .lightbox { width: 94vw; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
    .lightbox-figure img { max-height: calc(94vh - 9rem); }
}
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* Funktionsseiten */
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.feature-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
a.feature-link:hover { transform: translateY(-3px); border-color: rgba(79, 124, 255, .45); }
a.feature-link h2, a.feature-link h3 { font-size: 1.1rem; margin-bottom: .5rem; }
a.feature-link p { flex: 1; }
.feature-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--accent); font-size: .92rem; font-weight: 600; }
.feature-more .icon { width: 1rem; height: 1rem; }
.feature-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; color: var(--text-muted); font-size: .92rem; }
.feature-crumbs a { color: var(--text-muted); }
.feature-crumbs a:hover { color: var(--accent); }
.feature-hero .showcase-text h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.15; margin: .35rem 0 .9rem; }
.feature-hero .hero-actions { margin-top: 1.5rem; }
.showcase-media figcaption { margin-top: .6rem; color: var(--text-muted); font-size: .82rem; text-align: center; }
.feature-wide { max-width: 900px; margin: 2.5rem auto 0; }
.feature-steps li p { color: var(--text); font-weight: 500; }
.feature-center { display: flex; justify-content: center; margin: 2rem 0 0; }
@media (max-width: 960px) { .tiles-2 { grid-template-columns: minmax(0, 1fr); } }

/* Tarif Enterprise und Branding */
.pill-plan-enterprise { color: var(--warning); background: var(--warning-soft); border-color: rgba(245, 158, 11, .4); }
@media (min-width: 961px) and (max-width: 1240px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 861px) and (max-width: 1240px) { .plan-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.transcript-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; font-size: 1.1rem; font-weight: 700; }
.transcript-brand img { object-fit: contain; border-radius: 10px; }
.branding-preview { margin: 0 0 1rem; }
.branding-preview img { object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); padding: .4rem; }
.branding-remove { margin-top: .75rem; }
.plan-grid .plan-card { container-type: inline-size; }
.plan-grid .plan-price { font-size: clamp(1rem, 10cqi, 1.5rem); white-space: nowrap; }
.plan-grid .plan-features strong { white-space: nowrap; }
.plan-grid .plan-features li { font-size: clamp(.82rem, 7.4cqi, .95rem); }
.plan-grid .plan-features li span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.plan-grid .plan-features li { gap: .5rem; }
@media (min-width: 1241px) { .public-page .plan-grid { position: relative; left: 50%; width: min(1360px, calc(100vw - 64px)); transform: translateX(-50%); } }

/* Creator-Benachrichtigungen */
.notify-item { padding: 1rem 0; border-top: 1px solid var(--border); }
.notify-item:first-of-type { border-top: 0; padding-top: 0; }
.notify-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; }
.notify-head .row-actions { display: flex; flex-wrap: wrap; gap: .25rem; }
.notify-head .row-actions form { margin: 0; }
.notify-meta { margin: .35rem 0 0; font-size: .88rem; }
.notify-edit { margin-top: .5rem; }
.notify-edit summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
.notify-edit form { margin-top: .75rem; }

/* Datei-Auswahl passend zu den Knoepfen */
input[type="file"] { padding: .45rem .55rem; color: var(--text-muted); cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: .85rem; padding: .5rem .95rem; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
input[type="file"]::file-selector-button:hover { border-color: rgba(79, 124, 255, .55); background: var(--surface-3); }
.branding-apply { margin-top: 1.1rem; }

/* Systemkacheln: gleich hoch, zwei volle Reihen */
.system-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.system-badges li > span:first-child { white-space: nowrap; }
.system-badges .badge { flex: 0 0 auto; }
@media (max-width: 1000px) { .system-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .system-badges { grid-template-columns: minmax(0, 1fr); } }
.showcase-text a.feature-more { text-decoration: none; }
.hero-screen a[data-lightbox], .showcase-media a[data-lightbox] { display: block; border-radius: var(--radius-lg); cursor: zoom-in; transition: transform .2s ease; }
.hero-screen a[data-lightbox]:hover, .showcase-media a[data-lightbox]:hover { transform: translateY(-3px); }
.billing-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: fit-content; max-width: 100%; margin: 0 auto 2rem; padding: .3rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); }
.billing-toggle::before { content: ""; position: absolute; top: .3rem; bottom: .3rem; left: .3rem; width: calc(50% - .3rem); border-radius: 999px; background: var(--accent); box-shadow: 0 6px 18px rgba(79, 124, 255, .35); transition: transform .22s ease; }
#billing-year:checked ~ .billing-toggle::before { transform: translateX(100%); }
.billing-toggle label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 0; padding: .55rem 1.15rem; border-radius: 999px; color: var(--text-muted); font-size: .95rem; font-weight: 650; white-space: nowrap; cursor: pointer; transition: color .2s ease; }
#billing-month:checked ~ .billing-toggle label[for="billing-month"], #billing-year:checked ~ .billing-toggle label[for="billing-year"] { color: #fff; }
#billing-month:focus-visible ~ .billing-toggle label[for="billing-month"], #billing-year:focus-visible ~ .billing-toggle label[for="billing-year"] { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.billing-badge { padding: .1rem .45rem; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .72rem; font-weight: 700; }
#billing-year:checked ~ .billing-toggle .billing-badge { background: rgba(255, 255, 255, .22); color: #fff; }
.price-year { display: none; }
#billing-year:checked ~ .plan-grid .price-year { display: inline; }
#billing-year:checked ~ .plan-grid .price-month { display: none; }
.plan-year-line { min-height: 1.4em; margin: -.2rem 0 .5rem; color: var(--text-muted); font-size: .875rem; }
.plan-saving { color: var(--success); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .billing-toggle::before, .billing-toggle label { transition: none; } }
@media (max-width: 520px) {
    .billing-toggle { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .billing-toggle label { flex-wrap: wrap; row-gap: .15rem; padding: .55rem .5rem; font-size: .92rem; line-height: 1.2; text-align: center; white-space: normal; }
    .billing-badge { font-size: .68rem; white-space: nowrap; }
}
.early-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; max-width: 56rem; margin: 0 auto 1.5rem; padding: .85rem 1.25rem; border: 1px solid rgba(34, 197, 94, .35); border-radius: var(--radius-lg); background: var(--success-soft); }
.early-banner p { flex: 1 1 20rem; margin: 0; }
.early-tag { display: inline-block; padding: .12rem .6rem; border-radius: 999px; background: var(--success); color: #06210f; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.early-left { font-weight: 650; white-space: nowrap; }

/* ===== Hilfe-Center (/hilfe) ===== */
.help-hero { position: relative; padding: 4.5rem 0 2.5rem; text-align: center; overflow: hidden; }
.help-hero::before { content: ""; position: absolute; inset: -40% 10% auto; height: 120%; background: radial-gradient(closest-side, rgba(79, 124, 255, .22), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(32, 197, 216, .14), transparent 70%); pointer-events: none; z-index: -1; }
.help-hero-inner { max-width: 44rem; margin: 0 auto; }
.help-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 1rem; }
.help-hero-inner > p { color: var(--text-muted); font-size: 1.08rem; margin: 0 auto; max-width: 36rem; }
.help-search { position: relative; max-width: 34rem; margin: 2rem auto 0; }
.help-search[hidden] { display: none; }
.help-search .icon { position: absolute; left: 1.1rem; top: 50%; width: 1.2rem; height: 1.2rem; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.help-search input { width: 100%; padding: 1rem 1.2rem 1rem 3.1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; box-shadow: var(--shadow); transition: border-color .2s ease, box-shadow .2s ease; }
.help-search input::placeholder { color: var(--text-faint); }
.help-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.help-search-status { min-height: 1.4em; margin: .75rem 0 0; color: var(--text-muted); font-size: .9rem; }

.help-page { max-width: 1120px; margin: 0 auto; padding-top: 0; }
.help-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 3.5rem; }
.help-topic { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.help-topic:hover { transform: translateY(-2px); border-color: rgba(79, 124, 255, .45); box-shadow: var(--shadow-lift); }
.help-topic-icon, .help-block-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.help-topic-icon .icon, .help-block-icon .icon { width: 1.25rem; height: 1.25rem; }
.help-topic-text { display: flex; flex-direction: column; gap: .2rem; }
.help-topic-text span { color: var(--text-muted); font-size: .9rem; line-height: 1.45; }

.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.help-nav { position: sticky; top: 6rem; }
.help-nav-title { margin: 0 0 .6rem; color: var(--text-faint); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.help-nav ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
.help-nav a { display: flex; align-items: center; gap: .55rem; margin-left: -1px; padding: .45rem .8rem; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; font-size: .93rem; transition: color .2s ease, border-color .2s ease; }
.help-nav a .icon { width: 1rem; height: 1rem; }
.help-nav a:hover { color: var(--text); }
.help-nav a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.help-content { display: flex; flex-direction: column; gap: 3rem; min-width: 0; }
.help-block { scroll-margin-top: 6rem; }
.help-block[hidden] { display: none; }
.help-block-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.help-block-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .25rem; font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -.02em; }
.help-block-head p { margin: 0; color: var(--text-muted); }
.help-block-icon-warn { background: var(--warning-soft); color: var(--warning); }

.help-timeline { margin: 0; padding: 0; list-style: none; }
.help-timeline li { position: relative; padding: 0 0 1.5rem 3.4rem; }
.help-timeline li::before { content: attr(data-step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gradient); color: var(--on-accent); font-weight: 700; box-shadow: 0 6px 18px rgba(79, 124, 255, .35); }
.help-timeline li::after { content: ""; position: absolute; left: calc(1.1rem - 1px); top: 2.5rem; bottom: .3rem; width: 2px; background: linear-gradient(var(--border-strong), transparent); }
.help-timeline li:last-child { padding-bottom: .5rem; }
.help-timeline li:last-child::after { display: none; }
.help-timeline li[hidden] { display: none; }
.help-timeline h3 { margin: .25rem 0 .35rem; font-size: 1.05rem; }
.help-timeline p { margin: 0; color: var(--text-muted); line-height: 1.6; }

.help-note { display: flex; align-items: flex-start; gap: .7rem; margin: 1rem 0 0; padding: .9rem 1.1rem; border: 1px solid rgba(79, 124, 255, .3); border-radius: var(--radius-card); background: var(--accent-soft); line-height: 1.55; }
.help-note .icon { flex: 0 0 1.1rem; width: 1.1rem; height: 1.1rem; margin-top: .2rem; color: var(--accent); }
.help-note-warn { border-color: rgba(245, 158, 11, .35); background: var(--warning-soft); }
.help-note-warn .icon { color: var(--warning); }

.help-perms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.help-perms li { display: flex; align-items: flex-start; gap: .8rem; padding: .95rem 1.05rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.help-perms li[hidden] { display: none; }
.help-perms .icon { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--accent-2); }
.help-perms div { display: flex; flex-direction: column; gap: .15rem; }
.help-perms span { color: var(--text-muted); font-size: .9rem; line-height: 1.45; }

.help-accordion { display: grid; gap: .75rem; }
.help-accordion .faq-item[hidden] { display: none; }
.help-accordion .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.help-accordion .faq-body p { margin: 0; padding: 0; }
.help-accordion .faq-body ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.help-accordion .faq-body a { color: var(--accent); }

.help-api { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.help-api[hidden] { display: none; }
.help-api > p:first-child { margin-top: 0; }
.help-api h3 { margin: 1.8rem 0 .6rem; font-size: 1.08rem; }
.help-api p { line-height: 1.6; }
.help-small { color: var(--text-muted); font-size: .9rem; }
.help-code { margin: .9rem 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); overflow: hidden; }
.help-code figcaption { padding: .45rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-faint); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.help-page .help-code pre { margin: 0; border: 0; border-radius: 0; background: transparent; }
.help-endpoints { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.help-endpoints li { display: grid; grid-template-columns: auto minmax(0, 15rem) minmax(0, 1fr); gap: .5rem 1rem; align-items: baseline; padding: .8rem 1rem; border-top: 1px solid var(--border); font-size: .92rem; }
.help-endpoints li:first-child { border-top: 0; }
.help-endpoints li > span:last-child { color: var(--text-muted); line-height: 1.5; }
.help-endpoints li > code { overflow-wrap: anywhere; }
.help-method { display: inline-block; padding: .1rem .45rem; border-radius: 6px; background: var(--success-soft); color: var(--success); font-family: var(--font-mono); font-size: .75rem; font-weight: 700; }
.help-events { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .9rem; }
.help-events code { padding: .2rem .55rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-soft); font-size: .8rem; }

.help-empty { margin: 0; padding: 2rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-card); color: var(--text-muted); text-align: center; }
.help-empty[hidden] { display: none; }
.help-content.is-searching .help-note { display: none; }

.help-contact { scroll-margin-top: 6rem; padding: 2.2rem; border: 1px solid rgba(79, 124, 255, .3); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(79, 124, 255, .14), rgba(32, 197, 216, .08)); text-align: center; }
.help-contact h2 { margin: 0 0 .4rem; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.help-contact > p { margin: 0 0 1.5rem; color: var(--text-muted); }
.help-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.help-contact-card { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.2rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.help-contact-card:hover { transform: translateY(-2px); border-color: rgba(79, 124, 255, .45); }
.help-contact-card .icon { width: 1.5rem; height: 1.5rem; margin-bottom: .2rem; color: var(--accent); }
.help-contact-card span { color: var(--text-muted); font-size: .88rem; }

@media (max-width: 960px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-nav { display: none; }
    .help-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .help-hero { padding-top: 3rem; }
    .help-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 2.5rem; }
    .help-topic { align-items: center; gap: .6rem; padding: .75rem .8rem; }
    .help-topic-icon { flex-basis: 2.1rem; width: 2.1rem; height: 2.1rem; border-radius: 10px; }
    .help-topic-text strong { font-size: .92rem; }
    .help-topic-text span { display: none; }
    .help-perms { grid-template-columns: 1fr; }
    .help-api, .help-contact { padding: 1.2rem; }
    .help-endpoints li { grid-template-columns: auto minmax(0, 1fr); }
    .help-endpoints li > span:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .help-topic, .help-contact-card { transition: none; }
    .help-topic:hover, .help-contact-card:hover { transform: none; }
}

/* ===== Ratgeber (/ratgeber) ===== */
.guide-index { max-width: 1120px; margin: 0 auto; padding-top: 0; }
.guide-more { padding-top: 1rem; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.guide-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.guide-card:hover { transform: translateY(-3px); border-color: rgba(79, 124, 255, .45); box-shadow: var(--shadow-lift); }
.guide-card h2, .guide-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.35; letter-spacing: -.01em; }
.guide-card p { margin: 0; color: var(--text-muted); font-size: .93rem; line-height: 1.55; }
.guide-card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.guide-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .85rem; }
.guide-pill { display: inline-block; padding: .2rem .65rem; border: 1px solid rgba(32, 197, 216, .35); border-radius: var(--radius-pill); background: rgba(32, 197, 216, .1); color: var(--accent-2); font-size: .78rem; font-weight: 600; white-space: nowrap; }

.guide-page { padding-top: 2.5rem; }
.guide-page .feature-crumbs { margin-bottom: 1.5rem; }
.guide-head { max-width: 50rem; margin: 0 0 2.5rem; }
.guide-head h1 { margin: .8rem 0 1rem; font-size: clamp(1.8rem, 4.2vw, 2.7rem); letter-spacing: -.03em; line-height: 1.15; }
.guide-lead { margin: 0 0 1rem; color: var(--text-muted); font-size: 1.12rem; line-height: 1.6; }
.guide-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; color: var(--text-faint); font-size: .88rem; }
.guide-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.guide-meta .icon { width: 1rem; height: 1rem; }

.guide-article { display: flex; flex-direction: column; gap: 2.6rem; min-width: 0; max-width: 46rem; }
.guide-section { scroll-margin-top: 6rem; }
.guide-section h2 { margin: 0 0 1rem; font-size: clamp(1.3rem, 2.5vw, 1.6rem); letter-spacing: -.02em; }
.guide-section > p { margin: 0 0 1rem; color: var(--text-muted); font-size: 1.02rem; line-height: 1.75; }
.guide-section > p a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.guide-section > p a .icon { width: 1rem; height: 1rem; }
.guide-section .help-timeline { margin-bottom: 1rem; }
.guide-list { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.guide-list li { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); line-height: 1.55; }
.guide-list .icon { flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; margin-top: .22rem; color: var(--success); }
.guide-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }

@media (max-width: 960px) {
    .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-article { max-width: none; }
}
@media (max-width: 640px) {
    .guide-cards { grid-template-columns: 1fr; }
    .guide-page { padding-top: 1.5rem; }
    .guide-features .help-topic-text span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .guide-card { transition: none; }
    .guide-card:hover { transform: none; }
}

/* ===== Optionale Bilder: Hilfe-Center, Ratgeber ===== */
.help-hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .38; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
:root[data-theme="light"] .help-hero-art { opacity: .22; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .help-hero-art { opacity: .22; } }
.guide-card .guide-cover { display: block; width: calc(100% + 2.8rem); max-width: none; height: auto; aspect-ratio: 3 / 2; margin: -1.4rem -1.4rem .2rem; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid var(--border); }
.guide-hero-image { margin: -1rem 0 2.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.guide-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }

/* ===== Admin: Trichter ===== */
.funnel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.funnel-head h2 { margin: 0; }
.funnel-periods { display: inline-flex; gap: .25rem; padding: .2rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-soft); }
.funnel-periods a { padding: .25rem .7rem; border-radius: var(--radius-pill); color: var(--text-muted); font-size: .85rem; text-decoration: none; }
.funnel-periods a[aria-current="true"] { background: var(--accent); color: #fff; }
.funnel { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .7rem; counter-reset: funnel; }
.funnel li { counter-increment: funnel; display: grid; grid-template-columns: minmax(150px, 30%) 1fr minmax(9.5rem, auto); gap: .9rem; align-items: center; }
.funnel-label { color: var(--text-muted); font-size: .92rem; }
.funnel-label::before { content: counter(funnel) ". "; color: var(--text-faint); }
.funnel .hbar-track { height: 12px; }
.funnel-value { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.funnel-value strong { font-variant-numeric: tabular-nums; }
.funnel-value small { color: var(--text-faint); font-size: .75rem; }
.funnel-note { font-size: .82rem; margin: 0; }
@media (max-width: 640px) {
    .funnel li { grid-template-columns: 1fr auto; }
    .funnel .hbar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== Kuendigungsgrund ===== */
.cancel-reason { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-soft); }
.cancel-reason summary { cursor: pointer; font-weight: 600; color: var(--text-muted); }
.cancel-reason[open] summary { margin-bottom: .6rem; color: var(--text); }
.cancel-reason .field:last-child { margin-bottom: 0; }
.cancel-comments { margin: 0 0 .8rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.cancel-comments li { padding: .6rem .8rem; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 8px 8px 0; font-size: .92rem; }
.cancel-comments .muted { display: block; margin-top: .2rem; font-size: .8rem; }

/* ===== Top.gg-Abstimmungen ===== */
.topgg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.topgg-actions form { margin: 0; }
.topgg-steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .4rem; color: var(--text-muted); }
.topgg-steps code { overflow-wrap: anywhere; }

/* ===== Geschaeftszeiten ===== */
.hours-grid { display: grid; grid-template-columns: minmax(8rem, auto) auto auto auto; gap: .5rem .6rem; align-items: center; justify-content: start; margin: .5rem 0 1rem; }
.hours-grid .hours-day { margin: 0; }
.hours-grid input[type="time"] { width: auto; min-width: 7rem; }
@media (max-width: 520px) { .hours-grid { grid-template-columns: 1fr auto auto auto; } .hours-grid input[type="time"] { min-width: 0; } }

/* ===== Push-Benachrichtigungen ===== */
.push-status { margin: .5rem 0; }
.push-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.push-devices { margin: 0 0 .8rem; padding-left: 1.1rem; display: grid; gap: .3rem; }
.push-devices .muted { font-size: .85rem; }

/* ===== Demo ===== */
.demo-banner { margin: 0 0 1rem; padding: .7rem 1rem; border: 1px solid rgba(245, 158, 11, .4); border-radius: var(--radius-card); background: var(--warning-soft); font-size: .92rem; }
.demo-banner a { font-weight: 600; white-space: nowrap; }
.demo-start { margin: 1.8rem 0 .8rem; }
.demo-note { font-size: .9rem; }

.inline-form + .support-invite { margin-top: 1rem; }
