/* ===========================
   UrlaubBro Creator Platform
   Corporate Design System
   =========================== */

:root {
    /* Layout Variables */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 64px;

    /* Z-Index System */
    --z-sidebar: 1000;
    --z-topbar: 999;
    --z-modal: 1050;
    --z-dropdown: 1040;

    /* Creator Brand Colors — Notova (Ink + Spark). Canonical, use everywhere. */
    --creator-primary: #16233D;        /* Notova Ink */
    --creator-primary-hover: #11203B;
    --creator-accent: #F0A500;         /* Notova Spark */
    --creator-success: #1F8A5B;
    --creator-warning: #f59e0b;
    --creator-danger: #C0392B;

    /* Platform Colors — Notova-aligned */
    --color-primary: #16233D;
    --color-primary-dark: #0C1424;
    --color-primary-gradient: linear-gradient(150deg, #213354 0%, #16233D 60%, #0C1424 100%);
    --color-secondary: #243653;
    --color-accent-orange: #F0A500;
    --color-accent-orange-dark: #D08E00;
    --color-premium: #6f42c1;
    --color-premium-dark: #5a32a3;
    --color-success: #1F8A5B;
    --color-danger: #C0392B;
    --color-warning: #F0A500;

    /* Background & Text Colors */
    --color-bg-light: #f7f7f7;
    --color-bg-white: #ffffff;
    --color-border: #e0e0e0;
    --color-text-primary: #2c3e50;
    --color-text-secondary: #6c757d;
    --color-text-muted: #495057;

    /* Animations */
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Aliases for page-level styles */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --primary-500: #16233D;
    --primary-600: #0C1424;
    --success-500: #26b050;
    --success-600: #22a046;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --error-500: #dc3545;
    --error-600: #b91c1c;
    --accent-500: #6f42c1;
    --accent-600: #5a32a3;
    --radius-xl: 12px;
    --radius-full: 9999px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --font-semibold: 600;
    --font-bold: 700;
}

/* ===========================
   Global Styles
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Filled-button anchors must keep their text color on hover.
   Without this, Bootstrap's `a:hover { color: ... }` wins over `.xxx-btn-primary { color: #fff }`
   and the white text turns blue on the blue background. */
a.btn-primary:hover,
a[class*="btn-primary"]:hover,
a[class*="-btn-primary"]:hover,
a[class*="-btn-blue"]:hover,
a[class*="-btn-cta"]:hover {
    color: #fff;
}

/* FocusOnNavigate wurde aus Routes.razor entfernt — kein Element wird mehr nach
   Navigation programmatisch fokussiert, also kein Browser-Focus-Outline mehr.
   Defence-in-Depth: falls irgendwo manuell tabindex gesetzt wird, blenden wir
   alle Focus-Indikatoren weg. */
h1:focus, h1:focus-visible,
h2:focus, h2:focus-visible,
h3:focus, h3:focus-visible,
h4:focus, h4:focus-visible,
h5:focus, h5:focus-visible,
h6:focus, h6:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: 0 none transparent !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
    background: #F9FAFB;
    height: 100%;
    /* NO overflow-x:hidden on html — breaks position:fixed children (SortableJS clone) */
}
body {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: inherit;
    height: 100%;
    overflow-x: hidden;
}

/* ===========================
   Layout Structure
   =========================== */

.creator-layout {
    display: flex;
    height: 100dvh;
    /* overflow:hidden removed — clips position:fixed SortableJS drag clone */
}

/* R114c35bq: Studio-Mode = Vollbild-Editor.
   - Sidebar weg
   - Topbar weg (Page rendert eigene slim "Studio"-Topbar)
   - Content full-width, full-height fuer Editor + grosse Preview */
.creator-layout.studio-mode .creator-sidebar,
.creator-layout.studio-mode .creator-sidebar-backdrop {
    display: none !important;
}
.creator-layout.studio-mode .creator-main {
    margin-left: 0 !important;
    width: 100%;
}
.creator-layout.studio-mode .creator-topbar {
    display: none !important;
}
.creator-layout.studio-mode .creator-content {
    padding: 0 !important;
}
.creator-layout.studio-mode .creator-content-inner {
    padding: 0 !important;
    max-width: 100% !important;
}
/* Studio's eigene Top-Bar bekommt eine 1px-Linie zum Content-Trennen — schlank */
.studio-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    height: 52px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
/* R114c35by: Wix/Jimdo-Style Dark-Topbar im Studio. Differenziert visuell
   vom normalen creator.*-Layout — fuehlt sich an wie ein Pro-Tool. */
.studio-topbar-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    height: 56px;
}
.studio-topbar-dark .studio-back-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: #e2e8f0;
}
.studio-topbar-dark .studio-back-btn:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.24);
    color: #fff;
}
.studio-topbar-dark .studio-title { color: #f1f5f9; }
.studio-topbar-dark .studio-title i { color: #16233D; }
/* R114c35cb: Brand-Mark — kleines UB-Square mit Cyan-Gradient als Pro-Tool-Identitaet */
.studio-brandmark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #16233D 0%, #16233D 100%);
    color: #0a0f1c;
    border-radius: 7px;
    font-size: 0.7rem; font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: 0 1px 4px rgba(22,35,61,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    flex-shrink: 0;
}
.studio-divider {
    width: 1px; height: 20px;
    background: rgba(255,255,255,0.15);
    margin: 0 0.25rem;
}
.studio-topbar-center {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    min-width: 0;
}
.studio-tab-indicator {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(22,35,61,0.12);
    border: 1px solid rgba(22,35,61,0.25);
    border-radius: 999px;
    color: #C7D0E0;
    font-size: 0.82rem; font-weight: 600;
}
.studio-tab-indicator i { font-size: 0.95rem; }
.studio-saved-indicator {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: #34d399;
    font-size: 0.8rem; font-weight: 600;
    padding: 0.35rem 0.65rem;
}
/* R114c35ce: InfoTooltip — (?)-Icon mit Popover-Erklärung neben Form-Labels */
.info-tooltip-wrap {
    display: inline-flex; align-items: center;
    position: relative; cursor: help;
    margin-left: 0.35rem;
    vertical-align: middle;
}
.info-tooltip-icon {
    color: #94a3b8; font-size: 0.85rem;
    transition: color .12s;
}
.info-tooltip-wrap:hover .info-tooltip-icon { color: #16233D; }
.info-tooltip-popover {
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%);
    width: 240px; max-width: 90vw;
    padding: 0.625rem 0.75rem;
    background: #0f172a; color: #e2e8f0;
    border-radius: 8px;
    font-size: 0.78rem; line-height: 1.45; font-weight: 400;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 100;
    pointer-events: none;
}
.info-tooltip-popover::after {
    content: ""; position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0f172a;
}

/* R114c35ce: Mobile <640px — Studio-Topbar-Right kompakter, Labels weg */
@media (max-width: 640px) {
    .studio-topbar-right .studio-back-btn { padding: 0.35rem 0.5rem; }
    .studio-topbar-right .studio-back-btn .d-none-mobile { display: none !important; }
    .studio-topbar-center { display: none; }
    .studio-brandmark { width: 24px; height: 24px; font-size: 0.6rem; }
}
.studio-saved-indicator i { font-size: 0.95rem; }
.cz-publish-go-studio {
    background: linear-gradient(135deg, #16233D 0%, #16233D 100%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 12px rgba(22,35,61,0.35);
}
.cz-publish-go-studio:hover { box-shadow: 0 6px 16px rgba(22,35,61,0.5); }

/* ══════════════════════════════════════════════════════════════════
   R114c35cb: STUDIO DESIGN SYSTEM — eine einheitliche Token-Sprache
   damit alle Komponenten (Topbar, Tabs, Cards, Inputs, Buttons,
   Modals, Preview) aus einem Guss wirken. Wix/Webflow/Figma-Vibe.
   ══════════════════════════════════════════════════════════════════ */
.creator-layout.studio-mode {
    /* Canvas-Layer (dark) */
    --st-canvas: #0a0f1c;
    --st-canvas-soft: rgba(15,23,42,0.6);
    --st-canvas-border: rgba(255,255,255,0.06);

    /* Surface-Layer (light, das im Editor sichtbar ist) */
    --st-surface: #ffffff;
    --st-surface-2: #f8fafc;
    --st-surface-3: #f1f5f9;
    --st-border: #e2e8f0;
    --st-border-strong: #cbd5e1;
    --st-divider: #f1f5f9;

    /* Text */
    --st-text: #0f172a;
    --st-text-secondary: #475569;
    --st-text-muted: #94a3b8;

    /* Brand-Akzent (Studio-Cyan statt Creator-Blue, signalisiert "Pro-Tool") */
    --st-accent: #16233D;
    --st-accent-hover: #11203B;
    --st-accent-soft: rgba(22,35,61,0.12);
    --st-accent-ring: rgba(22,35,61,0.25);

    /* Status */
    --st-success: #10b981;
    --st-warning: #f59e0b;
    --st-danger:  #ef4444;

    /* Radius */
    --st-r-xs: 6px;
    --st-r-sm: 8px;
    --st-r-md: 10px;
    --st-r-lg: 14px;
    --st-r-xl: 16px;

    /* Shadow */
    --st-sh-xs: 0 1px 2px rgba(15,23,42,0.05);
    --st-sh-sm: 0 2px 8px rgba(15,23,42,0.08);
    --st-sh-md: 0 4px 16px rgba(15,23,42,0.12);
    --st-sh-lg: 0 10px 32px rgba(0,0,0,0.4);
    --st-sh-card: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.04);
    --st-sh-glow: 0 0 0 3px var(--st-accent-ring);

    /* Spacing-Grid (8px base) */
    --st-sp-1: 4px;
    --st-sp-2: 8px;
    --st-sp-3: 12px;
    --st-sp-4: 16px;
    --st-sp-5: 20px;
    --st-sp-6: 24px;
    --st-sp-8: 32px;

    background: var(--st-canvas);
}
.creator-layout.studio-mode .creator-content,
.creator-layout.studio-mode .creator-content-inner,
.creator-layout.studio-mode .creator-page-wide { background: var(--st-canvas); padding: 0 !important; }

/* Subtiler Dot-Pattern auf dem dark Canvas — wie Figma-Background. */
.creator-layout.studio-mode .ws-split::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(148,163,184,0.08) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ────────── LAYOUT: 2-Saeulen-Split (Edit-Panel mit Left-Rail + Preview) ────────── */
.creator-layout.studio-mode .ws-split {
    background: var(--st-canvas);
    padding: var(--st-sp-4);
    gap: var(--st-sp-4);
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    min-height: calc(100dvh - 56px);
    border-radius: 0;
    position: relative;
}

/* Edit-Panel = grosse weiße Karte mit Left-Icon-Rail. */
.creator-layout.studio-mode .ws-edit-panel {
    background: var(--st-surface);
    border-radius: var(--st-r-xl);
    border-right: none;
    box-shadow: var(--st-sh-lg), inset 0 1px 0 rgba(255,255,255,0.6);
    height: calc(100dvh - 56px - 32px);
    top: calc(56px + var(--st-sp-4));
    overflow-y: auto;
    position: sticky;
    padding-left: 72px;
    z-index: 2;
}
.creator-layout.studio-mode .ws-edit-panel::-webkit-scrollbar { width: 8px; }
.creator-layout.studio-mode .ws-edit-panel::-webkit-scrollbar-thumb { background: #d4dbe5; border-radius: 4px; }
.creator-layout.studio-mode .ws-edit-panel::-webkit-scrollbar-thumb:hover { background: #9aa6b8; }

/* ────────── LEFT-ICON-RAIL (Wix-Style) ────────── */
.creator-layout.studio-mode .ws-tab-nav {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 72px;
    flex-direction: column;
    background: linear-gradient(180deg, var(--st-surface-2) 0%, var(--st-surface-3) 100%);
    border-right: 1px solid var(--st-border);
    border-bottom: none;
    border-radius: var(--st-r-xl) 0 0 var(--st-r-xl);
    padding: var(--st-sp-3) var(--st-sp-2);
    gap: var(--st-sp-1);
    overflow-y: auto;
    z-index: 3;
}
.creator-layout.studio-mode .ws-tab {
    flex-direction: column;
    width: 100%;
    min-height: 62px;
    padding: var(--st-sp-2) var(--st-sp-1);
    font-size: 0.62rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--st-r-md);
    line-height: 1.15;
    gap: var(--st-sp-1);
    background: transparent;
    color: var(--st-text-secondary);
    border: none;
    margin: 0;
    letter-spacing: 0.02em;
    transition: background .15s, color .15s, transform .12s;
    position: relative;
}
.creator-layout.studio-mode .ws-tab i {
    font-size: 1.3rem;
    margin: 0;
    color: var(--st-text-muted);
    transition: color .15s;
}
.creator-layout.studio-mode .ws-tab:hover {
    background: rgba(15,23,42,0.04);
    color: var(--st-text);
}
.creator-layout.studio-mode .ws-tab:hover i { color: var(--st-text); }
.creator-layout.studio-mode .ws-tab:active { transform: scale(0.96); }
.creator-layout.studio-mode .ws-tab.active {
    background: var(--st-surface);
    color: var(--st-accent);
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(22,35,61,0.18), 0 0 0 1px var(--st-accent-ring);
}
.creator-layout.studio-mode .ws-tab.active i { color: var(--st-accent); }
.creator-layout.studio-mode .ws-tab.active::before {
    content: ""; position: absolute; left: -8px; top: 14px; bottom: 14px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--st-accent);
}

/* ────────── PREVIEW-COL + glasmorphic Device-Bar ────────── */
.creator-layout.studio-mode .ws-preview-col {
    background: transparent;
    padding: 0;
    height: calc(100dvh - 56px - 32px);
    top: calc(56px + var(--st-sp-4));
    position: sticky;
    z-index: 2;
}
.creator-layout.studio-mode .ws-preview-area {
    height: 100%;
    background: linear-gradient(180deg, rgba(15,23,42,0.4) 0%, rgba(10,15,28,0.6) 100%);
    border-radius: var(--st-r-xl);
    padding: var(--st-sp-3);
    border: 1px solid var(--st-canvas-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.creator-layout.studio-mode .ws-device-bar {
    background: var(--st-canvas-soft);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--st-r-md);
    padding: 6px 10px;
}
.creator-layout.studio-mode .ws-device-bar .ws-device-btn {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #cbd5e1;
    border-radius: var(--st-r-sm);
    font-weight: 600;
}
.creator-layout.studio-mode .ws-device-bar .ws-device-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}
.creator-layout.studio-mode .ws-device-bar .ws-device-btn.active {
    background: linear-gradient(135deg, #16233D 0%, var(--st-accent) 100%);
    border-color: var(--st-accent);
    color: var(--st-text);
    box-shadow: 0 2px 8px rgba(22,35,61,0.4);
}
.creator-layout.studio-mode .ws-device-resolution {
    background: var(--st-accent-soft);
    color: #C7D0E0;
    font-weight: 600;
}
.creator-layout.studio-mode .ws-preview-frame-wrap {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    overflow: visible;
}
.creator-layout.studio-mode .ws-preview-frame-wrap--desktop {
    background: #fff;
    border-radius: var(--st-r-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 8px 16px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ────────── DISTRACTION-FREE: Header/Status/Checklist verstecken ────────── */
.creator-layout.studio-mode > .creator-main > .creator-content > .creator-content-inner > .creator-page-wide > .content-header,
.creator-layout.studio-mode .ws-status-strip,
.creator-layout.studio-mode .ws-checklist,
.creator-layout.studio-mode .ws-mobile-preview-banner,
.creator-layout.studio-mode .ws-mobile-mode-toggle { display: none; }

/* ────────── SECTION-DIVIDER + SECTION-CARDS (Pro-Look) ────────── */
.creator-layout.studio-mode .ws-section-divider {
    color: var(--st-text-secondary);
    border-top-color: var(--st-border);
    background: linear-gradient(180deg, var(--st-surface-2) 0%, var(--st-surface-3) 100%);
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: var(--st-sp-3) var(--st-sp-5) var(--st-sp-2);
    text-transform: uppercase;
    font-size: 0.7rem;
}
.creator-layout.studio-mode .ws-section-divider i { color: var(--st-accent); }

.creator-layout.studio-mode .cust-section {
    border-color: var(--st-border);
    border-radius: var(--st-r-lg);
    margin: 0 var(--st-sp-4) var(--st-sp-3);
    background: var(--st-surface);
    box-shadow: var(--st-sh-card);
    overflow: hidden;
}
.creator-layout.studio-mode .cust-section-header {
    background: var(--st-surface-2);
    border-radius: var(--st-r-lg) var(--st-r-lg) 0 0;
    border-bottom: 1px solid var(--st-divider);
    padding: var(--st-sp-3) var(--st-sp-4);
}
.creator-layout.studio-mode .cust-section-title {
    color: var(--st-text);
    font-weight: 700;
    font-size: 0.9rem;
}
.creator-layout.studio-mode .cust-section-hint {
    color: var(--st-text-secondary);
    font-size: 0.8rem;
}
.creator-layout.studio-mode .cust-section-body { padding: var(--st-sp-4); }
.creator-layout.studio-mode .cust-section-badge {
    background: var(--st-accent-soft);
    color: var(--st-accent);
    font-weight: 700;
    padding: 2px 8px; border-radius: 99px;
    font-size: 0.65rem; letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ────────── FORMS (Inputs / Textareas / Selects / Color-Pickers) ────────── */
.creator-layout.studio-mode .form-input,
.creator-layout.studio-mode input[type="text"]:not([type="color"]):not([type="range"]),
.creator-layout.studio-mode input[type="url"],
.creator-layout.studio-mode input[type="email"],
.creator-layout.studio-mode input[type="number"],
.creator-layout.studio-mode select,
.creator-layout.studio-mode textarea {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-r-sm);
    color: var(--st-text);
    font-size: 0.86rem;
    padding: 8px 12px;
    min-height: 38px;
    transition: border-color .12s, box-shadow .12s;
}
.creator-layout.studio-mode .form-input:focus,
.creator-layout.studio-mode input:focus:not([type="color"]),
.creator-layout.studio-mode select:focus,
.creator-layout.studio-mode textarea:focus {
    outline: none;
    border-color: var(--st-accent);
    box-shadow: var(--st-sh-glow);
}
.creator-layout.studio-mode .form-label {
    color: var(--st-text);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.creator-layout.studio-mode .form-field { margin-bottom: var(--st-sp-3); }

/* Color-Picker: native + custom hex-Input nebeneinander */
.creator-layout.studio-mode input[type="color"] {
    width: 38px; height: 38px;
    padding: 2px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-r-sm);
    background: var(--st-surface);
    cursor: pointer;
}
.creator-layout.studio-mode input[type="color"]:focus {
    outline: none; border-color: var(--st-accent); box-shadow: var(--st-sh-glow);
}

/* ────────── BUTTONS (Studio-Variants) ────────── */
.creator-layout.studio-mode .btn-primary,
.creator-layout.studio-mode .vis-btn-primary {
    background: linear-gradient(135deg, var(--st-accent) 0%, #11203B 100%);
    border: none;
    color: #fff;
    border-radius: var(--st-r-sm);
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(22,35,61,0.3);
    transition: transform .12s, box-shadow .12s, filter .12s;
}
.creator-layout.studio-mode .btn-primary:hover:not(:disabled),
.creator-layout.studio-mode .vis-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22,35,61,0.4);
    filter: brightness(1.05);
}
.creator-layout.studio-mode .btn-secondary,
.creator-layout.studio-mode .vis-btn-outline {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    color: var(--st-text);
    border-radius: var(--st-r-sm);
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.85rem;
}
.creator-layout.studio-mode .btn-secondary:hover,
.creator-layout.studio-mode .vis-btn-outline:hover {
    background: var(--st-surface-2);
    border-color: var(--st-border-strong);
}

/* ────────── MODALS (Sichtbarkeit + Domain etc.) ────────── */
.creator-layout.studio-mode .vis-modal-bg {
    background: rgba(10,15,28,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.creator-layout.studio-mode .vis-modal {
    background: var(--st-surface);
    border-radius: var(--st-r-xl);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    border: 1px solid var(--st-border);
}
.creator-layout.studio-mode .vis-modal-hdr {
    background: var(--st-surface-2);
    border-bottom: 1px solid var(--st-divider);
    border-radius: var(--st-r-xl) var(--st-r-xl) 0 0;
}
.creator-layout.studio-mode .vis-modal-hdr h3 {
    color: var(--st-text);
    font-weight: 700;
}
.creator-layout.studio-mode .vis-modal-ftr {
    background: var(--st-surface-2);
    border-top: 1px solid var(--st-divider);
    border-radius: 0 0 var(--st-r-xl) var(--st-r-xl);
}

/* ────────── TOPBAR-POLISH (Brand-Logo Dot + Tab-Indikator-Pill) ────────── */
.creator-layout.studio-mode + .studio-topbar-dark,
.studio-topbar-dark {
    /* Brand-Dot links neben Hub-Back */
}
.studio-topbar-dark .studio-back-btn:hover { transform: none; /* kein wackel */ }

/* ────────── MOBILE (<900px): Left-Rail → Top-Tabs ────────── */
@media (max-width: 900px) {
    .creator-layout.studio-mode .ws-split {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    .creator-layout.studio-mode .ws-edit-panel,
    .creator-layout.studio-mode .ws-preview-col {
        position: static;
        height: auto;
        top: auto;
        padding-left: 0;
    }
    .creator-layout.studio-mode .ws-tab-nav {
        position: static;
        width: 100%; height: auto;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--st-border);
        border-radius: var(--st-r-xl) var(--st-r-xl) 0 0;
        gap: 4px;
        overflow-x: auto;
    }
    .creator-layout.studio-mode .ws-tab {
        flex: 0 0 auto;
        flex-direction: row;
        min-height: 40px; padding: 8px 12px;
        font-size: 0.78rem;
    }
    .creator-layout.studio-mode .ws-tab i { font-size: 1rem; }
    .creator-layout.studio-mode .ws-tab.active::before { display: none; }
}
.studio-topbar-left,
.studio-topbar-right {
    display: flex; align-items: center; gap: 0.5rem;
    min-width: 0;
}
.studio-back-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all .12s;
}
.studio-back-btn:hover { background: #f3f4f6; border-color: #d1d5db; color: #111827; }
.studio-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.studio-title i { color: var(--nv-spark-700, #B97F08); margin-right: 4px; }
.studio-status-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #94a3b8;
    flex-shrink: 0;
}
.studio-status-dot.live { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.studio-status-dot.unpublished { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.studio-status-dot.private { background: #16233D; box-shadow: 0 0 0 3px rgba(22,35,61,0.18); }

/* Mobile: kompakter */
@media (max-width: 640px) {
    .studio-topbar { padding: 0.4rem 0.6rem; height: 48px; gap: 0.4rem; }
    .studio-back-btn { padding: 0.35rem 0.55rem; font-size: 0.75rem; }
    .studio-title { font-size: 0.82rem; }
}

/* "Vollbild-Editor"-CTA auf /website (sichtbar nur wenn NICHT im Studio) */
.studio-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.875rem 1.125rem;
    background: var(--nv-ink, #16233D);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(22,35,61,0.18);
}
.studio-cta-text {
    display: flex; align-items: center; gap: 0.625rem;
    min-width: 0;
}
.studio-cta-icon { font-size: 1.4rem; flex-shrink: 0; }
.studio-cta-body { line-height: 1.3; }
.studio-cta-title { font-size: 0.95rem; font-weight: 700; }
.studio-cta-sub { font-size: 0.78rem; opacity: 0.9; margin-top: 1px; }
.studio-cta-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: #fff;
    color: var(--nv-spark-700, #B97F08);
    border: none; border-radius: 8px;
    font-size: 0.85rem; font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
    font-family: inherit;
    flex-shrink: 0;
    white-space: nowrap;
}
.studio-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); color: var(--nv-spark-700, #B97F08); }
@media (max-width: 640px) {
    .studio-cta-banner { flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 0.75rem; }
    .studio-cta-btn { justify-content: center; }
}

/* Sidebar */
.creator-sidebar {
    width: var(--sidebar-width);
    height: 100dvh;
    /* Notova db-side: dunkle Ink-900-Sidebar (Design sec-dashboard) */
    background: var(--nv-ink-900, #0C1424);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: var(--z-sidebar);
    transition: transform var(--transition-base);
}

.creator-sidebar.collapsed {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--nv-on-dark, #F6F3EC);
}
.sidebar-header-logo {
    padding: 0.75rem 1rem;
    justify-content: center;
}
/* Sidebar-Header als Blog-Switcher-Container (Round 15) */
.sidebar-header-switcher {
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header-switcher .bs-wrap { padding: 0; width: 100%; }
.sidebar-header-switcher .bs-current {
    width: 100%; height: 64px;
    padding: 0 1rem; gap: 0.625rem;
    background: transparent; border: none;
    border-radius: 0;
    box-sizing: border-box;
}
.sidebar-header-switcher .bs-current:hover { background: rgba(255,255,255,0.06); }
/* Notova db-side: heller Text auf dunkler Switcher-Karte */
.sidebar-header-switcher .bs-name { color: var(--nv-on-dark, #F6F3EC); }
.sidebar-header-switcher .bs-role,
.sidebar-header-switcher .bs-chevron { color: var(--nv-on-dark-2, #AEB8CC); }
.sidebar-header-switcher .bs-avatar {
    /* Round 39: background-Override entfernt — die Component-inline-Regel
       .bs-avatar:has(img) { background: #fff } in CreatorSwitcher.razor
       wurde sonst hier wieder überschrieben (siehe Round 36-Doku).
       Hier wird nur noch Sizing (34 statt 32px) gesteuert, der Rest kommt
       von der Component-Inline-Style (passt sich automatisch an :has(img)). */
    width: 34px; height: 34px;
    font-size: 0.85rem;
}
.sidebar-header-switcher .bs-name { font-size: 0.875rem; font-weight: 700; }
.sidebar-header-switcher .bs-role { font-size: 0.72rem; }
.sidebar-header-switcher .bs-dropdown {
    left: 0; right: 0; top: 100%;
    border-radius: 0 0 12px 12px;
    border-top: none; width: var(--sidebar-width);
}
/* Collapsed-Sidebar: Switcher-Dropdown klappt seitlich auf */
.creator-sidebar.collapsed .sidebar-header-switcher .bs-dropdown {
    left: calc(100% + 4px); top: 8px; width: 240px; border-radius: 12px;
}

.sidebar-logo-img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
}
.creator-sidebar.collapsed .sidebar-logo-img {
    max-height: 40px;
    max-width: 56px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
    padding: 1rem 0;
}
.sidebar-content::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Navigation — Round 40: spacing getightened (Linear/Notion-Style),
   nav-section margin halbiert, nav-item padding und icon kompakter. */
.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #5A6580;
    padding: 0 1rem;
    margin: 0.875rem 0 0.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 1px 0.5rem;
    border-radius: 8px;
    color: var(--nv-on-dark-2, #AEB8CC);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--nv-on-dark, #F6F3EC);
}

/* Notova db-side: aktiver Eintrag = Spark-Fill + Ink-Text */
.nav-item.active {
    background: var(--nv-spark, #F0A500);
    color: var(--nv-ink-900, #0C1424);
    font-weight: 600;
}
.nav-item.active i { color: var(--nv-ink-900, #0C1424); }

/* Round 40: linker Akzent-Stripe entfernt — nav-item hat jetzt
   border-radius:8px + Margin-Inset, der active-Background reicht visuell.
   Sonst kollidiert das 3px-stripe-pseudo mit dem inset. */
.nav-item.active::before { display: none; }

.nav-item i {
    font-size: 1.05rem;
    margin-right: 0.625rem;
    width: 1.25rem;
}

.nav-badge {
    margin-left: auto;
    background: #EF4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* Main Content */
.creator-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    transition: margin-left var(--transition-base);
}

.creator-main.sidebar-collapsed {
    margin-left: 0;
}

/* Guest Layout - No Sidebar */
.creator-main.guest-layout {
    margin-left: 0 !important;
}

.guest-layout .creator-topbar {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    transition: top .2s;
}

.guest-layout .creator-content {
    padding-top: var(--topbar-height);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}
.guest-layout .creator-content.content-with-banner {
    padding-top: calc(var(--topbar-height) + 38px);
}

/* Top Bar — 3-Spalten-Grid (Linear/Notion-Pattern):
   [Hamburger]  [           Suche zentriert            ]  [Notif/Help]
   topbar-left | topbar-center (flex:1, suche max-width) | topbar-right
   Branding ist im Sidebar-Header (CreatorSwitcher), nicht in der Topbar. */
.creator-topbar {
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    background: var(--nv-paper, #FAF8F4);
    border-bottom: 1px solid var(--nv-border, #E7E2D8);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: var(--z-topbar);
    overflow: hidden;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.topbar-brand-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-right: 0.5rem;
}
.topbar-brand-logo {
    height: 28px; max-height: 28px; object-fit: contain;
}

/* Legacy .topbar-logo — kept for guest-layout (PublicLayout) compat */
.topbar-logo {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.topbar-logo:hover {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .topbar-logo { height: 26px; max-width: 140px; }
    .creator-topbar { padding: 0 1rem; gap: 0.5rem; }
}

@media (max-width: 576px) {
    .topbar-logo { height: 22px; max-width: 110px; }
}

/* R114c35ba/bb: Guest-Topbar Mobile-Fix — Logo + Buttons drueckten sich
   gegenseitig vom Bildschirm. Lieber: Topbar als 3-Spalten-Grid mit
   explizitem space-between so Logo links + Buttons rechts garantiert
   nebeneinander bleiben (auch wenn beide schmaler werden muessen). */
@media (max-width: 480px) {
    .guest-layout .creator-topbar {
        padding: 0 0.5rem;
        gap: 0.35rem;
        justify-content: space-between;
    }
    .guest-layout .topbar-left { flex-shrink: 1; min-width: 0; }
    .guest-layout .topbar-logo { height: 20px; max-width: 95px; }
    .guest-layout .topbar-right {
        gap: 0.35rem;
        flex-shrink: 0;
        margin-left: 0;
    }
    .guest-layout .topbar-right .btn-creator {
        padding: 0.4rem 0.6rem;
        font-size: 0.72rem;
        white-space: nowrap;
        line-height: 1;
    }
}
@media (max-width: 380px) {
    /* Sehr kleine Screens (iPhone SE alte Generation): Login ausblenden,
       nur primary-CTA bleibt. User kann sich via /login-Link im Footer einloggen. */
    .guest-layout .topbar-right .btn-creator-outline { display: none; }
    .guest-layout .topbar-logo { max-width: 130px; height: 22px; }
}

.topbar-search {
    width: 100%;
    max-width: 520px;
    height: 38px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.875rem;
    border: 1.5px solid var(--nv-border, #E7E2D8);
    border-radius: 0.5rem;
    background: var(--nv-surface-2, #F3F0EA);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    color: var(--nv-ink-400, #8A91A1);
    font-size: 0.875rem;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}
.topbar-search:hover {
    border-color: var(--nv-spark, #F0A500);
    background: #fff;
}
.topbar-search i { font-size: 0.875rem; flex-shrink: 0; }
.topbar-search-placeholder {
    flex: 1; text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.topbar-search-kbd {
    background: #fff; border: 1px solid var(--nv-border, #E7E2D8); border-radius: 5px;
    padding: 2px 7px; font-size: 0.7rem; color: var(--nv-ink-400, #8A91A1);
    font-family: inherit; white-space: nowrap; flex-shrink: 0;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #6B7280;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.topbar-icon:hover {
    background: #F3F4F6;
    color: #16233D;
}

.topbar-icon .notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid white;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.topbar-user:hover {
    background: #F3F4F6;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.user-role {
    font-size: 0.75rem;
    color: #6B7280;
}

/* Content Area */
.creator-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.creator-content-inner {
    flex: 1;
    padding: 2rem;
}

.content-header {
    margin-bottom: 2rem;
}

.content-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    font-size: 1rem;
    color: #6B7280;
}

/* ===========================
   Components
   =========================== */

/* === Round 74: Canonical Page-Wrapper + Card + Button classes ===
   Vorher: jede Page definierte ihr eigenes .mb-page / .tip-page / .nl-page mit
   leicht unterschiedlichem max-width + Padding + Card-Border. Konsistenz auf
   visueller Ebene war Glückssache. Diese Klassen sind ab jetzt die SoT.
   Bestehende seiten-spezifische Klassen (.mb-page, .tip-page, .nl-page, .cm-page)
   bleiben aliased via Selektoren weiter unten. */

.creator-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Round 78: Bump 1100px → 1400px. Auf 1920px-Display + 280px-Sidebar bleiben
   sonst 540px ungenutzt — User merkte das auf vielen Pages. 1400 gibt noch
   3 KPI-Cols mit Luft, Tables haben Platz, fühlt sich nicht mehr cramped an.
   Auf 1366px-Laptop wird automatisch auf verfügbare Breite (1086px) gefallt. */
.creator-page-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Für Daten-Heavy Pages die ALLE Pixel brauchen (Analytics-Charts, breite Tables).
   Kein Max-Cap, nur Padding-Insets. */
.creator-page-full {
    max-width: none;
    margin: 0;
    padding: 2rem 1.5rem;
}

.creator-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.creator-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.95rem;
    transition: background 0.15s;
    text-decoration: none;
}
.creator-btn:disabled { opacity: .55; cursor: wait; }

.creator-btn-primary {
    background: var(--creator-primary, #16233D);
    color: #fff;
}
.creator-btn-primary:hover:not(:disabled) {
    background: var(--creator-primary-hover, var(--nv-ink-800, #11203B));
    color: #fff;
}

.creator-btn-ghost {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}
.creator-btn-ghost:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Round 69: Stripe-Platform-Activation-Notice — orange Warning-Banner
   wenn UrlaubBro Stripe-Connect noch nicht freigeschaltet hat */
.creator-platform-notice {
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: 12px;
    display: flex;
    gap: 0.85rem;
}
.creator-platform-notice > i {
    color: #f97316;
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1.2;
}
.creator-platform-notice strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #9a3412;
    font-size: 0.95rem;
}
.creator-platform-notice p {
    margin: 0 0 0.85rem;
    color: #7c2d12;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Round 74: Aliases — bestehende Page-Wrapper-Klassen verhalten sich jetzt
   identisch zu .creator-page (720px Forms) oder .creator-page-wide (1100px
   Dashboards). Damit funktioniert bestehender Markup unverändert weiter,
   aber alle Seiten teilen die EINE Definition. */
.mb-page,
.tip-page,
.nl-page,
.cm-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Page-content war historisch ein Wrapper-div mit NULL CSS — bekommt jetzt
   die wide-Variante (Comments-List braucht Platz, würde mit 720px clippen).
   Round 78: 1100→1400 analog .creator-page-wide. */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Stat Card */
.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E5E7EB;
    transition: all var(--transition-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card-icon.primary {
    background: rgba(22, 35, 61, 0.1);
    color: var(--color-primary);
}

.stat-card-icon.success {
    background: #D1FAE5;
    color: #10B981;
}

.stat-card-icon.warning {
    background: rgba(255, 153, 51, 0.1);
    color: var(--color-accent-orange);
}

.stat-card-icon.purple {
    background: rgba(111, 66, 193, 0.1);
    color: var(--color-premium);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.stat-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.stat-trend.up {
    color: #10B981;
}

.stat-trend.down {
    color: #EF4444;
}

.stat-trend-label {
    color: #6B7280;
}

/* Cards */
.creator-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E5E7EB;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Buttons */
.btn-creator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-creator-primary {
    background: var(--color-primary);
    color: white;
}

.btn-creator-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-creator-secondary {
    background: #F3F4F6;
    color: #374151;
}

.btn-creator-secondary:hover {
    background: #E5E7EB;
}

.btn-creator-success {
    background: #10B981;
    color: white;
}

.btn-creator-success:hover {
    background: #059669;
}

.btn-creator-outline {
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-creator-outline:hover {
    background: rgba(22, 35, 61, 0.05);
}

.btn-creator-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* Badges */
.creator-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #EAEEF5;
    color: #16233D;
}

.badge-primary {
    background: rgba(22, 35, 61, 0.1);
    color: var(--color-primary-dark);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 1024px) {
    /* QA-Review (Round 14): die alte `.creator-sidebar.open`-Klasse wurde
       von Blazor nie gesetzt — MainLayout togglet ausschliesslich `.collapsed`.
       Result: auf Tablets war die Sidebar permanent verschoben, Hamburger
       nutzlos. Logik invertiert: default-state matcht jetzt das tatsächliche
       Blazor-Verhalten (NICHT-collapsed = sichtbar). */
    .creator-sidebar.collapsed {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }
    .creator-sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    .creator-main {
        margin-left: 0;
    }
    /* Mobile: Search wird zum Icon-Button (kompakt, single-line) */
    .topbar-search {
        max-width: none;
        width: 38px;
        height: 38px;
        padding: 0;
        gap: 0;
        background: transparent;
        border-color: transparent;
        justify-content: center;
    }
    .topbar-search:hover { background: #f3f4f6; border-color: transparent; }
    .topbar-search i { font-size: 1.1rem; color: #6b7280; }
    .topbar-search-placeholder, .topbar-search-kbd { display: none; }
    .topbar-center { justify-content: flex-end; }
}

@media (max-width: 640px) {
    .content-title {
        font-size: 1.5rem;
    }

    .topbar-right {
        gap: 0.5rem;
    }

    .user-info {
        display: none;
    }
}

/* ===========================
   Animations & Keyframes
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Stagger animations for lists */
.stagger-animation > * {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Loading States */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loading-bounce {
    animation: bounce 1s infinite;
}

/* ===========================
   Utilities
   =========================== */

.text-muted {
    color: #6B7280;
}

.text-primary {
    color: var(--color-primary);
}

.text-success {
    color: #10B981;
}

.text-danger {
    color: #EF4444;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Gradient Text Effect */
.gradient-text {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* === Topbar Dropdowns (Notifications + Help) === */

/* wrapper gives us the relative anchor */
.tb-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* the dropdown box itself — fixed so it escapes all overflow:hidden ancestors */
.tb-dropdown {
    position: fixed;
    top: calc(var(--topbar-height) + 6px);
    right: 1.5rem;
    width: 380px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1060;
    overflow: hidden;
    animation: tbDropIn 0.18s cubic-bezier(0.16,1,0.3,1);
}
.tb-dropdown-sm { width: 300px; }

@keyframes tbDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* header row */
.tb-dd-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1rem 1.25rem 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}
.tb-dd-title { font-size: 0.9375rem; font-weight: 700; color: #111827; }
.tb-dd-sub   { font-size: 0.75rem; color: #16233D; font-weight: 500; margin-top: 2px; }
.tb-dd-action {
    font-size: 0.78rem; color: #6b7280; background: none; border: none;
    cursor: pointer; font-family: inherit; font-weight: 500;
    padding: 3px 8px; border-radius: 6px; transition: all 0.15s; white-space: nowrap;
}
.tb-dd-action:hover { background: #f3f4f6; color: #111827; }

/* notification list */
.tb-dd-list { max-height: 320px; overflow-y: auto; }
.tb-dd-item {
    display: flex; align-items: flex-start; gap: 0.875rem;
    padding: 0.875rem 1.25rem; border-bottom: 1px solid #f9fafb;
    transition: background 0.12s; cursor: pointer; position: relative;
}
.tb-dd-item:last-child { border-bottom: none; }
.tb-dd-item:hover { background: #f9fafb; }
.tb-dd-item.unread { background: rgba(22,35,61,0.04); }
.tb-dd-item.unread:hover { background: rgba(22,35,61,0.08); }

.tb-dd-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.tb-dd-icon-success { background: #dcfce7; color: #16a34a; }
.tb-dd-icon-info    { background: #EAEEF5; color: #11203B; }
.tb-dd-icon-warning { background: #fef9c3; color: #ca8a04; }
.tb-dd-icon-error   { background: #fee2e2; color: #dc2626; }

.tb-dd-body { flex: 1; min-width: 0; }
.tb-dd-item-title { font-size: 0.875rem; font-weight: 600; color: #111827; margin-bottom: 2px; }
.tb-dd-item-desc  { font-size: 0.8rem; color: #6b7280; line-height: 1.4; margin-bottom: 3px; }
.tb-dd-item-time  { font-size: 0.72rem; color: #9ca3af; }
.tb-dd-dot { width: 7px; height: 7px; border-radius: 50%; background: #16233D; flex-shrink: 0; margin-top: 6px; }

/* footer */
.tb-dd-foot { padding: 0.75rem 1.25rem; border-top: 1px solid #f3f4f6; text-align: center; }
.tb-dd-foot a { font-size: 0.85rem; color: #16233D; font-weight: 600; text-decoration: none; }
.tb-dd-foot a:hover { color: #16233D; }

/* help list */
.tb-help-list { padding: 0.625rem 0.75rem; }
.tb-help-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 0.625rem; border-radius: 10px;
    text-decoration: none; transition: background 0.12s;
}
.tb-help-item:hover { background: #f9fafb; }
.tb-help-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.tb-help-item-title { font-size: 0.875rem; font-weight: 600; color: #111827; }
.tb-help-item-desc  { font-size: 0.75rem; color: #9ca3af; margin-top: 1px; }
.tb-help-footer {
    display: flex; align-items: center; gap: 6px;
    padding: 0.75rem 1.25rem; border-top: 1px solid #f3f4f6;
    font-size: 0.78rem; color: #9ca3af;
}

/* ===========================
   Upgrade Gate (shared)
   =========================== */
.upgrade-gate {
    max-width: 520px; margin: 2rem auto;
    text-align: center; padding: 3rem 2rem;
    animation: ugFadeUp .5s ease-out;
}
@keyframes ugFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.upgrade-gate-visual {
    position: relative; display: inline-block; margin-bottom: 1.5rem;
}
.upgrade-gate-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #FDF1D6, #FBE3AD);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: #16233D;
    margin: 0 auto;
}
.upgrade-gate-badge {
    position: absolute; top: -4px; right: -4px;
    background: linear-gradient(135deg, #F0A500, #D08E00);
    color: #0C1424; font-size: .65rem; font-weight: 700;
    padding: .2rem .5rem; border-radius: 99px;
}
.upgrade-gate h2 {
    font-size: 1.35rem; font-weight: 800; color: #1a1a2e; margin-bottom: .5rem;
}
.upgrade-gate p { color: #6b7280; line-height: 1.6; margin-bottom: 1.25rem; font-size: .9rem; }
.upgrade-gate-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem;
    text-align: left; margin-bottom: 1.75rem;
    max-width: 360px; margin-left: auto; margin-right: auto;
}
.upgrade-gate-feat {
    display: flex; align-items: center; gap: .45rem;
    font-size: .85rem; color: #374151;
}
.upgrade-gate-feat i { color: #16a34a; }
.upgrade-gate-price {
    margin-bottom: 1.25rem;
}
.upgrade-gate-price-amount { font-size: 2rem; font-weight: 800; color: #16233D; }
.upgrade-gate-price-period { font-size: .9rem; color: #9ca3af; font-weight: 400; }
.upgrade-gate-price-vat { display: block; font-size: .7rem; color: #9ca3af; margin-top: .15rem; }
.upgrade-gate-price-hint { display: block; font-size: .8rem; color: #9ca3af; margin-top: .25rem; }
.upgrade-gate-actions {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.upgrade-gate-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .75rem 2rem; font-size: .95rem; font-weight: 600;
    background: linear-gradient(135deg, #F0A500, #D08E00); color: #0C1424;
    border-radius: 12px; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(240,165,0,.35);
}
.upgrade-gate-btn:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,165,0,.45); color: #0C1424;
}
.upgrade-gate-link {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .85rem; font-weight: 600; color: #6b7280;
    text-decoration: none;
}
.upgrade-gate-link:hover { color: #16233D; }

/* Inline lock (for sections within a page) */
.upgrade-section-locked { opacity: .65; }
.upgrade-lock-overlay {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2.5rem 2rem; color: #9ca3af; font-size: .85rem;
}
.upgrade-lock-overlay i { font-size: 1.5rem; margin-bottom: .5rem; }
.upgrade-lock-overlay a { color: #16233D; font-weight: 600; }
.upgrade-lock-inline {
    display: flex; align-items: center; gap: .35rem;
    color: #9ca3af; font-size: .85rem; font-weight: 600;
}
.upgrade-badge-sm {
    font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    background: linear-gradient(135deg, #F0A500, #D08E00); color: #0C1424;
    padding: .15rem .45rem; border-radius: 99px; vertical-align: middle; margin-left: .3rem;
}
.upgrade-badge-outline {
    font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    border: 1.5px solid #16233D; color: #16233D;
    padding: .15rem .5rem; border-radius: 99px;
}

@media (max-width: 640px) {
    .upgrade-gate { padding: 2rem 1.25rem; }
    .upgrade-gate h2 { font-size: 1.15rem; }
    .upgrade-gate-features { grid-template-columns: 1fr; }
}

/* ===========================
   Skeleton Loaders (shared)
   =========================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text  { height: 14px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-card  { height: 120px; margin-bottom: 12px; border-radius: 12px; }
.skeleton-chart { height: 200px; border-radius: 12px; }

/* Skeleton wrapper for page loading blocks */
.skeleton-section {
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

/* ===========================
   User Menu Dropdown (topbar)
   =========================== */

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    padding: 6px 0;
    z-index: var(--z-dropdown);
    animation: tbDropIn 0.18s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.12s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.user-menu-item:hover {
    background: #f9fafb;
    color: #111827;
}

.user-menu-item i {
    font-size: 1rem;
    width: 18px;
    color: #6b7280;
    flex-shrink: 0;
}

.user-menu-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 4px 0;
}

.user-menu-item-danger {
    color: #ef4444;
}

.user-menu-item-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-menu-item-danger i {
    color: #ef4444;
}

/* User menu wrapper needs relative positioning */
.topbar-user-wrap {
    position: relative;
}

/* ===========================
   Error Toast — Mobile Fix
   =========================== */

@media (max-width: 768px) {
    .toast-error,
    .error-toast,
    .cm-error-toast {
        bottom: 80px !important;
        left: 16px !important;
        right: 16px !important;
        transform: none !important;
        max-width: none !important;
    }
}

/* ===========================
   Domain-Panel (was Domain.razor inline-style)
   =========================== */
.domain-alert { display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; border-radius:10px; font-size:.875rem; margin-bottom:1.25rem; }
.domain-alert-success { background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }
.domain-alert-error { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.domain-status-header { display:flex; align-items:center; gap:.5rem; font-size:.9rem; color:#6b7280; margin-bottom:1rem; }
.domain-status-body { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.domain-badge { display:inline-flex; align-items:center; gap:.3rem; font-size:.75rem; font-weight:700; padding:.3rem .75rem; border-radius:99px; }
.domain-badge-ok { background:#dcfce7; color:#15803d; }
.domain-badge-pending { background:#fef3c7; color:#92400e; }
.domain-current { display:flex; align-items:center; gap:.4rem; font-size:.95rem; flex:1; min-width:0; }
.domain-status-empty { display:flex; align-items:center; gap:.5rem; font-size:.875rem; }
@keyframes domSpin { to { transform: rotate(360deg); } }
.domain-status-body .spin { display:inline-block; animation: domSpin .8s linear infinite; }
.domain-input-group { display:flex; align-items:center; border:1.5px solid #e5e7eb; border-radius:10px; overflow:hidden; }
.domain-input-group:focus-within { border-color: var(--color-primary, #f97316); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.domain-input-prefix { padding:.6rem .75rem; background:#f9fafb; font-size:.85rem; color:#9ca3af; border-right:1px solid #e5e7eb; white-space:nowrap; }
.domain-input { border: none !important; box-shadow: none !important; border-radius: 0 !important; flex:1; }
.domain-input:focus { outline: none; box-shadow: none !important; }
.dns-steps { display:flex; flex-direction:column; gap:1.25rem; margin-bottom:1.5rem; }
.dns-step { display:flex; gap:1rem; align-items:flex-start; }
.dns-step-number { width:28px; height:28px; border-radius:50%; background:#f1f5f9; color:#475569; font-weight:700; font-size:.8rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:.1rem; }
.dns-step-content { flex:1; }
.dns-step-title { font-weight:700; font-size:.9rem; margin-bottom:.35rem; color:#1a1a2e; }
.dns-step-desc { font-size:.85rem; color:#6b7280; line-height:1.5; }
.dns-code-block { background:#0f172a; border-radius:10px; padding:.875rem 1rem; display:flex; flex-direction:column; gap:.4rem; font-family:monospace; font-size:.82rem; }
.dns-code-row { display:flex; gap:1rem; align-items:baseline; }
.dns-key { color:#94a3b8; min-width:100px; flex-shrink:0; }
.dns-val { color:#e2e8f0; }
.dns-hint { color:#64748b; font-size:.75rem; }
.dns-highlight { color:#34d399; font-weight:700; word-break:break-all; }
.dns-copy-btn { background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.15); border-radius:6px; padding:.2rem .4rem; cursor:pointer; color:#94a3b8; font-size:.75rem; flex-shrink:0; transition: all .15s; margin-left:auto; }
.dns-copy-btn:hover { background:rgba(255,255,255,.2); color:#e2e8f0; }
.dns-required-badge { display:inline-block; font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; background:var(--nv-spark-100, #FDF1D6); color:#16233D; border:1px solid #bfdbfe; padding:.15rem .5rem; border-radius:99px; margin-left:.4rem; vertical-align:middle; }
.dns-tip { display:flex; align-items:flex-start; gap:.5rem; background:#fffbeb; border:1px solid #fde68a; border-radius:10px; padding:.75rem 1rem; font-size:.82rem; color:#78350f; line-height:1.5; }
.dns-tip i { color:#d97706; flex-shrink:0; margin-top:.1rem; }
.domain-btn-primary { display:inline-flex; align-items:center; gap:.45rem; padding:.65rem 1.5rem; background:var(--nv-ink, #16233D); color:#fff; border:none; border-radius:10px; font-size:.9rem; font-weight:600; cursor:pointer; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 2px 8px rgba(22,35,61,0.18); }
.domain-btn-primary:hover:not(:disabled) { background:var(--nv-ink-800, #11203B); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(22,35,61,.35); }
.domain-btn-primary:disabled { opacity:.6; cursor:not-allowed; }
.domain-btn-secondary { display:inline-flex; align-items:center; gap:.45rem; padding:.5rem 1.25rem; background:#fff; color:#374151; border:1.5px solid #e5e7eb; border-radius:10px; font-size:.875rem; font-weight:600; cursor:pointer; transition: all .15s; }
.domain-btn-secondary:hover:not(:disabled) { border-color:var(--nv-spark-700, #B97F08); color:var(--nv-spark-700, #B97F08); background:var(--nv-spark-100, #FDF1D6); }
.domain-btn-secondary:disabled { opacity:.6; cursor:not-allowed; }
.dom-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:1.5rem; }
.dom-skel { height:14px; background:#e5e7eb; border-radius:4px; width:30%; }

/* ===========================
   Multichannel-Panel (war nur in Multichannel.razor scoped — fehlt in /settings-Embed)
   =========================== */
/* Round 37: Visuell an .st-card angeglichen (Konto/Blog-Profil/Impressum) — sonst
   fielen die Multichannel-Cards optisch raus (anderer Radius, kein Shadow, dunklere Border). */
.mc-card { background: #fff; border: 1px solid #f3f4f6; border-radius: 14px; padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }

/* Round 37: .st-card-hdr war ungestylt (BlogProfilePanel rendert <div class="st-card-hdr"><h3>...</h3></div>).
   Vereinheitlicht mit .mc-card-head/.mc-card-title für gleiche Visual-Rhythmik in den Settings-Sub-Pages. */
.st-card-hdr { padding: 1.25rem 1.25rem 0; }
.st-card-hdr h3 { font-size: 1.05rem; font-weight: 600; color: #111827; margin: 0; }
.st-card-hdr + .st-card-body { padding-top: 1rem; }
.mc-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mc-card-title { font-size: 1.05rem; font-weight: 600; color: #111827; }
.mc-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.mc-badge-green { background: #d1fae5; color: #065f46; }
.mc-badge-yellow { background: #fef3c7; color: #92400e; }
.mc-badge-gray { background: #f3f4f6; color: #6b7280; }
.mc-badge-red { background: #fee2e2; color: #991b1b; }
.mc-channels-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.mc-channel-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; transition: all 0.15s; }
.mc-channel-card:hover { border-color: #d1d5db; }
.mc-channel-soon { opacity: 0.45; }
.mc-channel-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.mc-channel-info { flex: 1; min-width: 0; }
.mc-channel-name { font-size: 0.9rem; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 6px; }
.mc-channel-desc { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }
.mc-channel-user { font-size: 0.75rem; color: var(--nv-spark-700, #B97F08); font-weight: 500; }
.mc-channel-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.mc-btn { padding: 7px 14px; border: none; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.mc-btn-primary { background: var(--nv-ink, #16233D); color: white; }
.mc-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,35,61,0.22); }
.mc-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.mc-btn-outline { background: transparent; color: #374151; border: 1.5px solid #e5e7eb; }
.mc-btn-outline:hover:not(:disabled) { border-color: var(--nv-spark-700, #B97F08); color: var(--nv-spark-700, #B97F08); }
.mc-btn-sm { padding: 5px 10px; font-size: 0.75rem; }

/* Round 98: Calendar-Feed-URL Controls */
.mc-feed-url-row { display: flex; gap: 6px; margin-top: 8px; align-items: stretch; }
.mc-feed-url-input { flex: 1; padding: 6px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; border: 1px solid #d1d5db; border-radius: 6px; background: #f9fafb; color: #374151; }
.mc-feed-btn { padding: 6px 12px; font-size: 0.78rem; font-weight: 600; background: var(--nv-ink, #16233D); color: white; border: none; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.mc-feed-btn:hover { background: var(--nv-ink-800, #11203B); }
.mc-feed-actions { display: flex; gap: 12px; margin-top: 8px; }
.mc-feed-btn-link { background: none; border: none; color: var(--nv-spark-700, #B97F08); cursor: pointer; font-size: 0.78rem; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.mc-feed-btn-link:hover { text-decoration: underline; }
.mc-feed-btn-link:disabled { opacity: 0.5; cursor: not-allowed; }
.mc-feed-btn-danger { color: #dc2626; }
.mc-btn-danger { background: transparent; color: #dc2626; border: 1.5px solid #fecaca; }
.mc-btn-danger:hover:not(:disabled) { background: #fee2e2; }

/* Round 53: Toggle-Switch für Discover-Syndication (an/aus für Verified-Blogs) */
.mc-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.mc-toggle input { opacity: 0; width: 0; height: 0; }
.mc-toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #d1d5db; border-radius: 999px; transition: 0.2s; }
.mc-toggle-slider::before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.mc-toggle input:checked + .mc-toggle-slider { background: #16a34a; }
.mc-toggle input:checked + .mc-toggle-slider::before { transform: translateX(18px); }
.mc-toggle input:disabled + .mc-toggle-slider { opacity: 0.5; cursor: not-allowed; }

.mc-discover-status-hint {
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin-top: 0.5rem; padding: 0.625rem 0.875rem;
    background: #f9fafb; border-left: 3px solid #e5e7eb; border-radius: 0 8px 8px 0;
    font-size: 0.82rem; color: #4b5563; line-height: 1.5;
}
.mc-discover-status-hint i { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }
.mc-discover-status-hint strong { color: #111827; }

/* R114c35ar: Info-Modal-Variant — kompakter als der Beantragen-Modal. */
.mc-info-modal { max-width: 460px; }

/* R114c35aq: Verifiziert-Badge ist jetzt ein Button mit Info-Icon der ein Popup oeffnet. */
.mc-badge-btn {
    border: none; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 4px;
    transition: filter 0.15s;
}
.mc-badge-btn:hover { filter: brightness(0.95); }
.mc-badge-info-icon { font-size: 0.78rem; opacity: 0.65; margin-left: 2px; }
.mc-badge-btn:hover .mc-badge-info-icon { opacity: 1; }

.mc-info-popup {
    position: relative;
    margin-top: 0.5rem; padding: 1rem 1.125rem 1rem 1.125rem;
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
    font-size: 0.85rem; color: #374151; line-height: 1.55;
    animation: mcFadeIn 0.15s ease-out;
}
.mc-info-popup-close {
    position: absolute; top: 8px; right: 8px;
    background: transparent; border: none; cursor: pointer;
    width: 26px; height: 26px; border-radius: 6px;
    color: #6b7280; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.mc-info-popup-close:hover { background: rgba(0,0,0,0.06); color: #111827; }
.mc-info-popup-title {
    font-weight: 700; color: #111827; font-size: 0.92rem;
    margin-bottom: 0.5rem; padding-right: 28px;
    display: flex; align-items: center; gap: 6px;
}
.mc-info-popup-body { margin: 0 0 0.5rem; color: #4b5563; }
.mc-info-popup-body:last-child { margin-bottom: 0; }
.mc-info-popup-body i { margin-right: 4px; }
.mc-info-popup-body strong { color: #111827; }
.mc-soon-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.68rem; font-weight: 700; background: #f3f4f6; color: #9ca3af; }

/* R114c35an — Pinterest/X live: Connected-Badge + Active-Card-Highlight */
.mc-channel-connected { border-color: #16a34a; background: #f0fdf4; }
.mc-connected-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; margin-left: 6px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; background: #dcfce7; color: #15803d; }
.mc-connected-badge i { font-size: 0.75rem; }
.mc-channel-action { flex-shrink: 0; margin-left: auto; }
.mc-spin { animation: mc-spin 1s linear infinite; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
.mc-discover-info { margin-top: 0.75rem; padding: 0.75rem 1rem; background: #f9fafb; border-radius: 8px; font-size: 0.82rem; color: #6b7280; line-height: 1.5; }

/* Multichannel Discover-Modal */
.mc-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; animation: mcFadeIn 0.15s ease-out; }
.mc-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 16px; max-width: 480px; width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; z-index: 9999; box-shadow: 0 20px 60px rgba(0,0,0,0.25); animation: mcSlideUp 0.2s ease-out; }
.mc-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem 0.75rem; border-bottom: 1px solid #f3f4f6; }
.mc-modal-title { font-size: 1.125rem; font-weight: 700; color: #111827; }
.mc-modal-sub { font-size: 0.82rem; color: #6b7280; margin-top: 0.2rem; }
.mc-modal-close { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 4px 8px; font-size: 1.1rem; transition: color 0.15s; }
.mc-modal-close:hover { color: #111827; }
.mc-modal-body { padding: 1rem 1.5rem; }
.mc-modal-foot { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.75rem 1.5rem 1.25rem; border-top: 1px solid #f3f4f6; }
.mc-spin { display: inline-block; animation: mcSpin 1s linear infinite; }
@keyframes mcSpin { to { transform: rotate(360deg); } }
@keyframes mcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mcSlideUp { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (max-width: 480px) {
    .mc-modal { border-radius: 12px; }
    .mc-modal-head, .mc-modal-body, .mc-modal-foot { padding-left: 1rem; padding-right: 1rem; }
}
.mc-req-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.mc-req-list li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: #374151; padding: 0.15rem 0; }
.mc-req-ok { color: #16a34a; }
.mc-req-fail { color: #ef4444; }
.mc-req-fix { color: var(--nv-spark-700, #B97F08); font-weight: 600; text-decoration: none; font-size: 0.78rem; margin-left: 0.4rem; white-space: nowrap; }
.mc-req-fix:hover { text-decoration: underline; }
.mc-alert { padding: 0.6rem 0.875rem; border-radius: 8px; font-size: 0.85rem; margin-top: 0.75rem; }
.mc-alert-error { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }
.mc-alert-success { background: #d1fae5; border: 1px solid #a7f3d0; color: #065f46; }
.mc-skel { height: 14px; background: #e5e7eb; border-radius: 4px; animation: mcPulse 1.5s infinite; }
@keyframes mcPulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
@media (max-width: 640px) {
    .mc-channel-card { flex-wrap: wrap; }
    .mc-channel-actions { width: 100%; justify-content: flex-end; }
}

/* ===========================
   Settings-Section (Erweitert → Importieren)
   Pre-existing-Bug: Klasse wurde verwendet, CSS fehlte überall.
   =========================== */
.st-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #f3f4f6; }
.st-section-title { font-size: 0.85rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.75rem; }
.st-section-hdr { margin-bottom: 0.6rem; }
.st-section-hdr h3 { font-size: 0.9rem; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.2rem; }
.st-section-hdr p { font-size: 0.82rem; color: #6b7280; margin: 0; }
.st-nav-banner { display: flex; flex-direction: column; gap: 0.5rem; }
.st-nav-banner-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; text-decoration: none; color: #111827; transition: all 0.15s; }
.st-nav-banner-item:hover { border-color: var(--nv-spark-700, #B97F08); background: var(--nv-spark-100, #FDF1D6); }
.st-nav-banner-item > i:first-child { font-size: 1.25rem; color: #6b7280; flex-shrink: 0; }
.st-nav-banner-item:hover > i:first-child { color: var(--nv-spark-700, #B97F08); }
.st-nav-banner-text { flex: 1; min-width: 0; }
.st-nav-banner-title { font-size: 0.9rem; font-weight: 600; color: #111827; }
.st-nav-banner-desc { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }
.st-nav-banner-arrow { color: #9ca3af; flex-shrink: 0; transition: transform 0.15s; }
.st-nav-banner-item:hover .st-nav-banner-arrow { transform: translateX(3px); color: var(--nv-spark-700, #B97F08); }

/* ===========================
   Generic .btn / .btn-secondary / .btn-primary fallback
   Wird von Notifications, Customization (Upload-Buttons) verwendet —
   waren undefined und hatten keinen Border/Background.
   =========================== */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: 8px;
    font-size: .85rem; font-weight: 600; cursor: pointer;
    font-family: inherit; border: 1.5px solid transparent;
    transition: border-color .15s, background .15s, transform .1s, color .15s;
    text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--nv-ink, #16233D); color: #fff; border-color: transparent; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,35,61,.3); }
.btn-secondary { background: #fff; color: #374151; border-color: #e5e7eb; }
.btn-secondary:hover:not(:disabled) { border-color: var(--nv-spark-700, #B97F08); color: var(--nv-spark-700, #B97F08); background: var(--nv-spark-100, #FDF1D6); }

/* CreatorSwitcher-Topbar-Overrides 2026-04-30 entfernt — Switcher zog wieder
   in Sidebar-Header (Round 15, Designer-Empfehlung: Linear/Notion-Pattern). */

/* ===========================
   Sidebar-Footer User-Block (Round 11+12)
   Identity-Info "wer bin ich?" — Notion/Linear-Pattern.
   Round 12: Popup-Menu komplett raus (Settings ist eh in Sidebar-Nav, war Doppelung).
   User-Block ist jetzt static identity strip + kleiner Logout-Icon-Btn rechts.
   =========================== */
.sf-user-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}
.sf-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75rem; font-weight: 700;
}
.sf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sf-info { flex: 1; min-width: 0; }
.sf-name {
    font-size: 0.82rem; font-weight: 600; color: var(--nv-on-dark, #F6F3EC);
    line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sf-email {
    font-size: 0.7rem; color: var(--nv-on-dark-2, #AEB8CC);
    line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
}
.sf-logout {
    flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer;
    color: var(--nv-on-dark-2, #AEB8CC); font-size: 1rem;
    transition: background 0.12s, color 0.12s;
}
.sf-logout:hover { background: rgba(220,38,38,0.18); color: #fca5a5; }

/* ─── Account/Logout-Footer-Popup (Design-Bundle #2) ─── */
.sf-acct { position: relative; }
.sf-acct-btn {
    display: flex; align-items: center; gap: 0.5rem; width: 100%;
    padding: 0.4rem 0.5rem; cursor: pointer; font-family: inherit; text-align: left;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; transition: background 0.12s;
}
.sf-acct-btn:hover { background: rgba(255,255,255,0.09); }
.sf-acct-chev { margin-left: auto; flex-shrink: 0; font-size: 0.8rem; color: var(--nv-on-dark-2, #AEB8CC); }
.sf-acct-backdrop { position: fixed; inset: 0; z-index: 60; background: transparent; }
.sf-acct-pop {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 61;
    background: var(--nv-ink-800, #11203B); border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px; padding: 0.4rem; box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    display: flex; flex-direction: column; gap: 1px;
}
.sf-acct-i {
    display: flex; align-items: center; gap: 0.6rem; width: 100%;
    padding: 0.55rem 0.65rem; border-radius: 8px; text-decoration: none;
    font-size: 0.85rem; font-weight: 500; color: var(--nv-on-dark-2, #AEB8CC);
    background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
    transition: all 0.12s;
}
.sf-acct-i i { font-size: 1rem; width: 1.1rem; flex-shrink: 0; }
.sf-acct-i:hover { background: rgba(255,255,255,0.07); color: var(--nv-on-dark, #F6F3EC); }
.sf-acct-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 0.25rem 0; }
.sf-acct-logout:hover { background: rgba(220,38,38,0.18); color: #fca5a5; }
.creator-sidebar.collapsed .sf-acct-btn .sf-info,
.creator-sidebar.collapsed .sf-acct-chev { display: none; }

/* Wenn Sidebar collapsed: nur Avatar */
.creator-sidebar.collapsed .sf-info,
.creator-sidebar.collapsed .sf-logout { display: none; }
.creator-sidebar.collapsed .sf-user-row {
    justify-content: center; padding: 0.4rem;
    background: transparent; border-color: transparent;
}

/* ===========================
   Globale Animations (Round 13 — vorher 7× dupliziert in Pages)
   =========================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================
   Mobile-Tauglichkeit (Round 13 — User-Wunsch "mobile" Audit)
   Nur 5 von 33 Pages hatten bisher Breakpoints. Dieser Block
   deckt die globalen Layout-Probleme ab.
   ========================================================== */

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .content-header { margin-bottom: 1.5rem; }
    .content-title { font-size: 1.5rem; }
    .content-subtitle { font-size: 0.875rem; }
}

/* Round 113: klickbarer Backdrop (echtes <div>, nicht ::after) — wird nur via
   Razor gerendert wenn sidebarOpen=true. Default versteckt (Desktop hat keinen
   Drawer-Modus), nur unter 768px sichtbar. Klick darauf schliesst die Sidebar. */
.creator-sidebar-backdrop { display: none; }

/* Mobile breakpoint — Sidebar wird zum Off-Canvas Drawer */
@media (max-width: 768px) {
    .creator-main {
        margin-left: 0 !important;
    }
    .creator-sidebar {
        box-shadow: 0 0 30px rgba(0,0,0,0.15);
    }
    /* Default auf Mobile: Sidebar collapsed (versteckt) — Hamburger öffnet sie */
    .creator-sidebar:not(.collapsed) {
        z-index: var(--z-modal);
    }
    /* Klickbarer Backdrop (Round 113) — ueberdeckt alles ausser Sidebar */
    .creator-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: calc(var(--z-modal) - 1);
        animation: cscBackdropFade 180ms ease-out;
        cursor: pointer;
    }
    @keyframes cscBackdropFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Topbar — Search-Bar einklappen, nur Icon */
    .topbar-search-placeholder, .topbar-search-kbd { display: none; }
    .topbar-search { padding: 8px; min-width: 0; }
    .creator-content-inner, .creator-content { padding: 1rem !important; }

    /* Round 113: Mobile-Safety-Nets gegen horizontal-Scroll —
       haeufige Uebeltaeter sind <table>, <pre>, <img>, <iframe> + Charts
       die fix breit gerendert werden. Wrap-or-Scroll fuer jedes davon. */
    .creator-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .creator-content pre,
    .creator-content code {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    .creator-content img,
    .creator-content video,
    .creator-content iframe,
    .creator-content embed {
        max-width: 100%;
        height: auto;
    }
    /* Lange Woerter / URLs in normalen Texten brechen statt zu sprengen */
    .creator-content p,
    .creator-content li,
    .creator-content h1,
    .creator-content h2,
    .creator-content h3 {
        overflow-wrap: anywhere;
    }
    /* Analytics-Charts (an-bar-chart-90) und Calendar-Feed-URL bekommen Scroll-Wrapper:
       wenn ein Container sie umfasst und der zu schmal wird, scrollt der nur,
       nicht die ganze Page. Generischer overflow-x: auto fuer cards und Page-Container. */
    .creator-page, .creator-page-wide, .db-card { max-width: 100%; }
    /* Guest-Layout (PublicLayout) hat fixed Topbar — Content darf nicht hinter
       Topbar verschwinden. Padding-top muss Topbar-Höhe entsprechen. */
    .guest-layout .creator-content { padding: var(--topbar-height) 1rem 1rem !important; }
    .guest-layout .creator-content-inner { padding: 0 !important; }
    .content-title { font-size: 1.25rem; }
    .content-header { margin-bottom: 1rem; }

    /* Page-spezifische Mobile-Anpassungen */
    /* Settings sticky-nav: horizontal scrollbar */
    .st-nav {
        overflow-x: auto; flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .st-nav::-webkit-scrollbar { display: none; }
    .st-nav-link { white-space: nowrap; flex-shrink: 0; }
    .st-block-head { flex-direction: row; }
    .st-block-head h2 { font-size: 0.95rem; }
    .st-block-head p { font-size: 0.78rem; }

    /* /website Vis-Card: vertical stack */
    .vis-card { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    /* Designer-Hint: primary CTA "Veröffentlichen" zuerst auf Mobile, Status drunter */
    .vis-actions { justify-content: stretch; flex-wrap: wrap; order: -1; }
    .vis-actions .vis-btn { flex: 1; justify-content: center; min-width: 120px; }

    /* Customization-Layout: 1 Spalte (war 1fr 340px) */
    .customization-layout { grid-template-columns: 1fr !important; }

    /* Posts-Liste: Cover schmaler */
    .post-item { gap: 0.75rem; }
    .post-cover { width: 56px !important; height: 56px !important; }

    /* Dashboard cards: 1 Spalte */
    .db-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem !important; }
    .db-onboarding-steps { grid-template-columns: 1fr !important; }

    /* CreatorSwitcher Topbar */
    .topbar-right .bs-wrap { min-width: 0; max-width: 140px; }
    .topbar-right .bs-info { display: none; }
    .topbar-right .bs-current { padding: 6px; gap: 0; }

    /* Notifications/Help Dropdowns: width-friendly */
    .tb-dropdown { width: calc(100vw - 2rem); max-width: 380px; right: -1rem; }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .content-title { font-size: 1.1rem; }
    .content-subtitle { font-size: 0.8rem; }
    .creator-content-inner, .creator-content { padding: 0.75rem !important; }
    /* Guest-Layout: Topbar-Höhe als Top-Padding bewahren (siehe 768px-Block) */
    .guest-layout .creator-content { padding: var(--topbar-height) 0.75rem 0.75rem !important; }
    .guest-layout .creator-content-inner { padding: 0 !important; }

    /* Dashboard 1 Spalte */
    .db-stats-grid { grid-template-columns: 1fr !important; }

    /* Vis-Modal Full-Screen-Like */
    .vis-modal { max-width: 100% !important; margin: 0.5rem !important; }
}

/* ===========================
   Auth-Page Shared Helpers (Round 22)
   =========================== */
.auth-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 0.92rem;
    margin: -0.75rem 0 1.75rem;
    line-height: 1.5;
}
.form-hint {
    display: block;
    color: #6b7280;
    font-size: 0.78rem;
    margin-top: 0.4rem;
    line-height: 1.4;
}
.auth-perks {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.auth-perks li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: #4b5563;
}
.auth-perks i {
    color: #16a34a;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ===========================
   Customization-Page (/website) — Sticky Tab-Nav (Round 24 / Polish Round 31)
   Pill-Tab-Style in einer eigenen Card, kein Underline-Tab-Look.
   =========================== */
html { scroll-behavior: smooth; }
.cz-tabnav {
    position: sticky;
    top: calc(var(--topbar-height) + 8px);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.375rem;
    margin: 0 0 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.cz-tabnav::-webkit-scrollbar { display: none; }
.cz-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    /* Round 41: jetzt <button> statt <a> — Browser-Defaults resetten */
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.cz-tab:hover {
    color: var(--nv-spark-700, #B97F08);
    background: #f1f5f9;
}
.cz-tab i {
    font-size: 0.95rem;
    color: #94a3b8;
    transition: color 0.15s;
}
.cz-tab:hover i { color: var(--nv-spark-700, #B97F08); }
.cz-tab.active {
    color: #fff;
    background: var(--nv-ink, #16233D);
    box-shadow: 0 1px 3px rgba(22,35,61,0.22);
}
.cz-tab.active i { color: #fff; }
@media (max-width: 640px) {
    .cz-tab { padding: 0.45rem 0.7rem; font-size: 0.82rem; gap: 0.4rem; }
    .cz-tab i { font-size: 0.9rem; }
}
/* Section-Header beim Anchor-Sprung Luft lassen damit Sticky-Tabs nicht verdecken */
#cz-publish, #cz-design, #cz-hero, #cz-domain {
    scroll-margin-top: calc(var(--topbar-height) + 70px);
}

/* ===========================
   Auth-Centered-Layout (Round 22 — Brand-Panel entfernt)
   Login/Register/ForgotPassword: einfache zentrierte Form-Card,
   keine Split-Spalte, kein Brand-Panel. Robuster auf jedem Viewport.
   =========================== */
.auth-centered-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 64px);
    padding: 2rem 1rem 8rem;
    background: #f7f9fc;
}
.auth-centered-frame > .auth-container,
.auth-centered-frame > .auth-centered {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Legacy Auth-Split-Layout — kept for backward compat with Verify-Email page */
.auth-split-frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100dvh - 64px);
    align-items: stretch;
}
.auth-split-frame > .auth-container,
.auth-split-frame > .auth-centered {
    grid-column: 1;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
}

.auth-brand-panel {
    grid-column: 2;
    background: var(--nv-ink, #16233D);
    color: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.auth-brand-hero {
    width: 280px; max-width: 100%; height: auto;
    margin-bottom: 1.5rem; border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.auth-brand-title {
    font-size: 1.6rem; font-weight: 700; line-height: 1.25;
    margin: 0 0 0.75rem; max-width: 360px;
}
.auth-brand-subtitle {
    font-size: 0.95rem; line-height: 1.55;
    opacity: 0.92; margin: 0 0 1.5rem; max-width: 360px;
}
.auth-brand-bullets {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.6rem;
    text-align: left; max-width: 320px;
}
.auth-brand-bullets li {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.875rem; opacity: 0.95;
}
.auth-brand-bullets i { color: #fbbf24; font-size: 1rem; flex-shrink: 0; }

@media (max-width: 900px) {
    .auth-split-frame { grid-template-columns: 1fr; min-height: auto; }
    .auth-brand-panel { display: none; }
    .auth-split-frame > .auth-container,
    .auth-split-frame > .auth-centered { grid-column: 1; }
}

/* ===========================
   Legal-Pages-Header (Round 17 — Imprint/Privacy/Terms/Contact)
   Konsistenter Page-Header mit Icon-Badge + Title + Subtitle.
   =========================== */
.legal-title-row {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 1rem;
}
.legal-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--nv-spark-100, #FDF1D6), #EAEEF5);
    color: var(--nv-spark-700, #B97F08); font-size: 1.5rem; flex-shrink: 0;
}
.legal-title-row h1 { margin: 0; font-size: 1.875rem; font-weight: 700; color: #111827; line-height: 1.2; }
.legal-subtitle { font-size: 0.875rem; color: #6b7280; margin: 4px 0 0; }

@media (max-width: 640px) {
    .legal-icon { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 11px; }
    .legal-title-row h1 { font-size: 1.4rem; }
}

/* =====================================================================
   Round 114c — Vergleichsseiten Polish (migriert von Web.Platform site.css)
   Die 3 Pages (UrlaubBroVsWordPress/Wix/Jimdo) liegen jetzt auf Creator;
   ohne diesen Layer würden die Polish-Verbesserungen aus R114 verloren gehen.
   ===================================================================== */

/* Table-Row-Hover + UrlaubBro-Spalte hervorheben */
.vs-table tbody tr { transition: background 0.12s ease; }
.vs-table tbody tr:hover { background: #fafbfc; }
.vs-table tbody td:nth-child(2) {
    background: linear-gradient(180deg, rgba(22,35,61,0.025), rgba(22,35,61,0.015));
    border-left: 2px solid rgba(22,35,61,0.12);
}
.vs-table thead th.vs-th-us {
    border-left: 2px solid rgba(22,35,61,0.18);
}

/* vs-good / vs-bad mit Icon-Badges */
.vs-table td.vs-good { position: relative; padding-left: 1.5rem !important; }
.vs-table td.vs-good::before {
    content: "✓"; position: absolute; left: 0.55rem; top: 50%; transform: translateY(-50%);
    width: 1.05rem; height: 1.05rem; display: inline-flex; align-items: center; justify-content: center;
    background: #16a34a; color: #fff; border-radius: 50%; font-size: 0.72rem; font-weight: 700;
}
.vs-table td.vs-bad { position: relative; padding-left: 1.5rem !important; }
.vs-table td.vs-bad::before {
    content: "✕"; position: absolute; left: 0.55rem; top: 50%; transform: translateY(-50%);
    width: 1.05rem; height: 1.05rem; display: inline-flex; align-items: center; justify-content: center;
    background: #dc2626; color: #fff; border-radius: 50%; font-size: 0.7rem; font-weight: 700;
}
.vs-table thead th { position: sticky; top: 0; z-index: 2; }

/* TL;DR-Cards */
.vs-tldr-grid > div {
    background: #fafbfc; border-radius: 12px; padding: 1.1rem 1.25rem;
    border: 1px solid #eef0f3;
}
.vs-tldr-grid > div:first-child { border-top: 3px solid #16a34a; }
.vs-tldr-grid > div:last-child { border-top: 3px solid #ea580c; }
.vs-tldr-grid h3 {
    font-size: 1.02rem; font-weight: 700; margin: 0 0 0.65rem; color: #111827;
    display: flex; align-items: center; gap: 0.4rem;
}

/* Details-Accordion (vs-faq) — Chevron statt Browser-Default-Marker */
details.vs-faq {
    list-style: none;
    transition: background 0.15s, box-shadow 0.15s;
}
details.vs-faq summary {
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    padding-right: 0.5rem;
}
details.vs-faq summary::-webkit-details-marker { display: none; }
details.vs-faq summary::after {
    content: "›"; display: inline-flex; align-items: center; justify-content: center;
    width: 1.6rem; height: 1.6rem;
    color: var(--creator-primary, #16233D); font-size: 1.4rem; font-weight: 600;
    transform: rotate(90deg); transition: transform 0.22s ease;
    flex-shrink: 0; margin-left: 0.5rem;
}
details.vs-faq[open] summary::after { transform: rotate(-90deg); }

/* Vergleichsseiten Mobile-Polish */
@media (max-width: 768px) {
    .vs-table { font-size: 0.78rem; }
    .vs-table thead th, .vs-table tbody td { padding: 0.4rem 0.5rem; }
    .vs-table td.vs-good, .vs-table td.vs-bad { padding-left: 1.35rem !important; }
    .vs-table td.vs-good::before, .vs-table td.vs-bad::before {
        width: 0.9rem; height: 0.9rem; font-size: 0.62rem; left: 0.4rem;
    }
    .vs-table tbody td:first-child { font-size: 0.78rem; }
}
@media (max-width: 480px) {
    .vs-table { font-size: 0.72rem; }
    .vs-table thead th { font-size: 0.7rem; }
    .vs-table thead th, .vs-table tbody td { padding: 0.35rem 0.4rem; }
}

/* =====================================================================
   R114c13 — vs-Page Base-Styles (vorher inline in UrlaubBroVsWordPress.razor).
   Jetzt global damit neue Vergleichsseiten (Substack/Ghost/Steady/Patreon)
   ohne <style>-Duplikation auskommen.
   ===================================================================== */
.vs-page { min-height: 100dvh; padding: 3rem 2rem 4rem; background: #fafafa; }
.vs-container { max-width: 920px; margin: 0 auto; }
.vs-hero { text-align: center; margin-bottom: 2.5rem; padding: 2.5rem 1.5rem; background: linear-gradient(180deg, #ffffff, #fafbfc); border-radius: 18px; border: 1px solid #e5e7eb; }
.vs-badge { display: inline-block; background: #fef3c7; color: #92400e; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.3rem 0.9rem; border-radius: 99px; margin-bottom: 1rem; }
.vs-hero h1 { font-size: 2.2rem; font-weight: 800; color: #111827; margin-bottom: 1rem; letter-spacing: -0.02em; }
.vs-lead { font-size: 1.1rem; color: #374151; line-height: 1.7; max-width: 700px; margin: 0 auto; }

.vs-section { background: #fff; border-radius: 16px; padding: 1.85rem 2rem; margin-bottom: 1.25rem; border: 1px solid #e5e7eb; }
.vs-section h2 { font-size: 1.4rem; color: var(--creator-primary, #16233D); font-weight: 700; margin: 0 0 1.1rem; padding-bottom: 0.6rem; border-bottom: 3px solid rgba(240,165,0,0.18); display: flex; align-items: center; gap: 0.5rem; }
.vs-section h3 { font-size: 1.05rem; color: #111827; font-weight: 700; margin: 0 0 0.6rem; }
.vs-section p { color: #374151; line-height: 1.75; margin-bottom: 0.85rem; }
.vs-section a { color: var(--creator-primary, #16233D); font-weight: 600; text-decoration: none; }
.vs-section a:hover { text-decoration: underline; }

.vs-tldr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.vs-yes, .vs-no { list-style: none; padding: 0; margin: 0; }
.vs-yes li, .vs-no li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; color: #374151; line-height: 1.55; font-size: 0.92rem; }
.vs-yes li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.vs-no li::before { content: "↗"; position: absolute; left: 0; color: #ea580c; font-weight: 700; }

.vs-table-wrap { overflow-x: auto; }
.vs-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.vs-table thead th { text-align: left; padding: 0.7rem 0.85rem; background: #f9fafb; color: #111827; font-weight: 700; border-bottom: 2px solid #e5e7eb; }
.vs-th-us { background: linear-gradient(135deg, rgba(240,165,0,0.08), rgba(240,165,0,0.05)) !important; color: var(--creator-primary, #16233D) !important; }
.vs-table tbody td { padding: 0.55rem 0.85rem; border-bottom: 1px solid #f3f4f6; color: #374151; }
.vs-table tbody td:first-child { font-weight: 600; color: #111827; }
.vs-table .vs-good { color: #16a34a; font-weight: 600; }
.vs-table .vs-bad { color: #dc2626; font-weight: 600; }

.vs-list { list-style: none; padding: 0; margin: 0; }
.vs-list li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: #374151; line-height: 1.65; }
.vs-list li::before { content: "→"; position: absolute; left: 0; color: var(--creator-primary, #16233D); font-weight: 700; }
.vs-list strong { color: #111827; }

.vs-ol { padding-left: 1.25rem; margin: 0; }
.vs-ol li { padding: 0.5rem 0; color: #374151; line-height: 1.7; }
.vs-ol strong { color: #111827; }

.vs-faq { padding: 0.85rem 1rem; background: #fafafa; border-radius: 10px; border: 1px solid #e5e7eb; margin-bottom: 0.6rem; cursor: pointer; }
.vs-faq summary { font-weight: 600; color: #111827; font-size: 0.95rem; outline: none; }
.vs-faq[open] { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.vs-faq p { margin: 0.65rem 0 0; font-size: 0.9rem; color: #374151; line-height: 1.65; }

.vs-page .contact-cta { text-align: center; margin-top: 2rem; padding: 2.5rem 2rem; background: linear-gradient(135deg, rgba(22,35,61,0.05), rgba(255,153,51,0.05)); border-radius: 16px; border: 2px solid rgba(22,35,61,0.1); }
.vs-page .contact-cta h3 { font-size: 1.5rem; color: #111827; margin-bottom: 0.5rem; font-weight: 700; }
.vs-page .contact-cta p { color: #6b7280; font-size: 1rem; margin-bottom: 1.25rem; }
.vs-cta-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.8rem 1.6rem; background: var(--nv-ink, #16233D); color: #fff; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; box-shadow: 0 4px 14px rgba(22,35,61,0.22); transition: all 0.15s; }
.vs-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(22,35,61,0.4); color: #fff; }
.vs-cta-foot { margin-top: 1.5rem; font-size: 0.85rem; color: #6b7280; }
.vs-cta-foot a { color: var(--creator-primary, #16233D); margin: 0 0.4rem; text-decoration: none; }

@media (max-width: 768px) {
    .vs-hero h1 { font-size: 1.65rem; }
    .vs-lead { font-size: 0.98rem; }
    .vs-section { padding: 1.4rem 1.2rem; }
    .vs-section h2 { font-size: 1.2rem; }
    .vs-tldr-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Website Editor — Split-Screen Layout (ws-* prefix)
   Phase 1 BlogBuilder UI — added Round 114c34
   ===================================================================== */

/* 4-Slot palette vars (Phase 1 placeholders — persistence in Welle 3) */
:root {
    --brand-background: var(--brand-bg-default, #ffffff);
    --brand-surface: var(--brand-surface-default, #f8fafc);
}

/* ── Split-screen wrapper ────────────────────────────────────────────── */
.ws-design-tool {
    background: #f8f9fa;
    min-height: calc(100dvh - var(--topbar-height, 64px));
}

.ws-split {
    display: grid;
    /* R114c35bd: minmax(0, ...) statt Naked-%-Spalten damit Safari nicht
       Inner-Content (iframe natural size) die Spaltenbreite expanden laesst. */
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    min-height: calc(100dvh - var(--topbar-height, 64px) - 80px);
    gap: 0;
    /* Grid muss explizit als stacking-context-Parent agieren damit z-index
       in children greift. */
    position: relative;
    isolation: isolate;
}

/* R114c35bc: iOS Safari Bug-Fix — `100vh` ist auf iPhone/iPad WebKit
   groesser als der sichtbare Viewport (inkludiert die URL-Bar),
   `position: sticky` + `height: 100vh-X` killt zudem Click-Events
   in der unteren Haelfte des Panels (Apple-Only-Bug, Windows ok).
   Loesung: `100dvh` (dynamic viewport height) statt `100vh` —
   beruecksichtigt die URL-Bar korrekt. Plus Sticky nur auf Desktop. */
.ws-edit-panel {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    height: calc(100dvh - var(--topbar-height, 64px));
    position: sticky;
    top: var(--topbar-height, 64px);
    /* R114c35bd: Apple-Safari-Fix — Editor-Panel MUSS explizit ueber dem
       Preview-iframe stacken, sonst absorbiert das iframe Clicks die durch
       den Grid-Spalt rutschen. z-index reicht nicht ohne stacking-context. */
    z-index: 2;
    isolation: isolate;
}

.ws-preview-col {
    background: #e5e7eb;
    padding: 1rem;
    min-height: calc(100dvh - var(--topbar-height, 64px));
    position: sticky;
    top: var(--topbar-height, 64px);
    display: flex;
    flex-direction: column;
    /* R114c35bd: Preview unter Editor stacken — iframe darf nicht ueber
       die 40%-Editor-Spalte greifen. */
    z-index: 1;
    isolation: isolate;
}

/* ── Section divider labels ─────────────────────────────────────────── */
/* R114c35bm: kompakter Section-Divider — vorher 1.25rem Padding-Top, jetzt 0.75rem
   und kleinerer Font damit Stil-Tab nicht so lang wird. */
.ws-section-divider {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 0.75rem 1.5rem 0.4rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ws-section-divider i { font-size: 0.85rem; color: var(--nv-spark-700, #B97F08); }

/* ── Tab nav inside edit panel ──────────────────────────────────────── */
.ws-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    padding: 0 1rem;
    background: #fff;
    /* R114c35bj: Sticky-Tabs — bei Scroll innerhalb des Editor-Panels
       bleiben die Tabs (Stil/Hero/Sections/Header) immer oben sichtbar.
       z-index ueber Inhalt damit Card-Borders nicht durchstossen. */
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

/* R114c35bj: Compact-Variant der Domain-Zeile fuer den Public-State —
   wenn Live-Hero oben schon die URL zeigt, soll die vis-card nur den
   Domain-Button anbieten ohne nochmal die Adresse zu spammen. */
.vis-address-compact {
    padding: 0.5rem 0 0;
    background: none;
    border: none;
    display: flex;
    justify-content: flex-end;
}

/* R114c35bj: Setup-Checklist nur noch bei Issues sichtbar —
   gelblich-orange statt blau weil Attention-Variant. */
.ws-checklist-attention {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
}
.ws-checklist-attention .ws-checklist-title {
    color: #92400e;
}

/* ============================================================
   R114c35bk: Kompakter Status-Strip
   1 Zeile statt 3 Cards — Status + URL + Ansehen + Mehr-Menue
   ============================================================ */
.ws-status-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    margin: 0 0 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    font-size: 0.875rem;
}
.ws-status-strip.ws-status-public { border-color: #bbf7d0; background: linear-gradient(90deg, #f0fdf4 0%, #fff 35%); }
.ws-status-strip.ws-status-unpublished { border-color: #fde68a; background: linear-gradient(90deg, #fffbeb 0%, #fff 35%); }
.ws-status-strip.ws-status-private { border-color: #C7D0E0; background: linear-gradient(90deg, #EAEEF5 0%, #fff 35%); }
.ws-status-left {
    display: flex; align-items: center; gap: 0.5rem;
    min-width: 0; flex: 1 1 auto;
}
.ws-status-dot {
    width: 9px; height: 9px; border-radius: 50%;
    flex-shrink: 0;
    background: #94a3b8;
}
.ws-status-public .ws-status-dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.ws-status-unpublished .ws-status-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.ws-status-private .ws-status-dot { background: #16233D; box-shadow: 0 0 0 3px rgba(22,35,61,0.18); }
.ws-status-label { font-weight: 700; color: #111827; font-size: 0.82rem; flex-shrink: 0; }
.ws-status-sep { color: #cbd5e1; flex-shrink: 0; }
.ws-status-url {
    color: var(--nv-spark-700, #B97F08);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.82rem;
}
.ws-status-url:hover { text-decoration: underline; }
.ws-status-url i { font-size: 0.72rem; margin-left: 2px; opacity: 0.65; }
.ws-status-right { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.ws-status-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 0.78rem; font-weight: 600;
    color: #374151;
    cursor: pointer; text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.ws-status-btn:hover { border-color: var(--nv-spark-700, #B97F08); color: var(--nv-spark-700, #B97F08); }
.ws-status-btn-primary {
    background: var(--nv-ink, #16233D); color: #fff; border-color: var(--nv-spark-700, #B97F08);
}
.ws-status-btn-primary:hover { background: var(--nv-ink-800, #11203B); border-color: var(--nv-ink-800, #11203B); color: #fff; }
.ws-status-btn-icon { padding: 0.4rem 0.5rem; }
.ws-status-menu { position: relative; }
.ws-status-menu-bg {
    position: fixed; inset: 0;
    background: transparent;
    z-index: 99;
}
.ws-status-menu-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    padding: 6px;
    z-index: 100;
    animation: wsMenuFade 0.12s ease-out;
}
@keyframes wsMenuFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.ws-status-menu-item {
    display: flex; align-items: center; gap: 0.5rem;
    width: 100%; padding: 0.5rem 0.625rem;
    background: transparent; border: 0;
    font-size: 0.85rem; color: #111827;
    text-align: left;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.12s;
    font-family: inherit;
}
.ws-status-menu-item:hover { background: #f3f4f6; }
.ws-status-menu-item:disabled { opacity: 0.5; cursor: not-allowed; }
.ws-status-menu-item i { font-size: 0.95rem; color: #6b7280; }
.ws-status-menu-item-danger { color: #b91c1c; }
.ws-status-menu-item-danger i { color: #b91c1c; }
.ws-status-menu-item-danger:hover { background: #fef2f2; }

/* Mobile-Polish */
@media (max-width: 640px) {
    .ws-status-strip { flex-wrap: wrap; padding: 0.5rem 0.625rem; }
    .ws-status-left { flex: 1 1 100%; min-width: 0; }
    .ws-status-right { flex: 1 1 100%; justify-content: flex-end; }
    .ws-status-url { font-size: 0.78rem; }
}
.ws-tab {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
}
/* R114c35bh: Editor-Chrome (Tabs) nutzt FIXES UrlaubBro-Brand-Blau statt
   `var(--creator-primary)`. Aktuell ist die Variable auf #16233D hardcoded
   in :root, aber sollte spaeter mal jemand sie dynamisch ueberschreiben
   (z.B. User-Theme → Editor) bleibt das Editor-Chrome trotzdem lesbar. */
.ws-tab:hover { color: var(--nv-spark-700, #B97F08); }
.ws-tab.active {
    color: var(--nv-spark-700, #B97F08);
    border-bottom-color: var(--nv-spark-700, #B97F08);
}

/* R114c35bh: Globale Input/Textarea/Select-Defaults — verhindert
   "weiss-auf-weiss"-Sichtbarkeitsprobleme die durch ein vergessenes
   explizites color-Property auftreten. Browser-Default ist schon
   dunkel, aber wenn ein Parent z.B. color:white vererbt, geht das
   verloren. Diese Regel zwingt alle Form-Elemente auf #1a1a2e. */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
select,
textarea {
    color: #1a1a2e;
    background-color: inherit;
}
input::placeholder,
textarea::placeholder { color: #9ca3af; opacity: 1; }
/* Falls Background nicht gesetzt: weiss als Fallback (verhindert
   transparent-text-on-transparent-bg). */
.form-input, .st-input, .sa-input, .vis-pw-input {
    background-color: #fff;
}

/* ── Coming Soon placeholder cards ─────────────────────────────────── */
.ws-coming-soon-card {
    margin: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(22,35,61,0.04), rgba(22,35,61,0.08));
    border: 2px dashed rgba(22,35,61,0.25);
    border-radius: 14px;
    text-align: center;
}
.ws-coming-soon-icon {
    font-size: 2.5rem;
    color: #16233D;
    margin-bottom: 0.75rem;
}
.ws-coming-soon-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}
.ws-coming-soon-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}
.ws-coming-soon-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.65rem;
    background: rgba(22,35,61,0.12);
    color: #16233D;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── Mobile banner (< 900px: hide iFrame, show link) ───────────────── */
.ws-mobile-preview-banner {
    display: none;
    margin: 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--nv-spark-100, #FDF1D6), #EAEEF5);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #16233D;
    align-items: center;
    gap: 0.6rem;
}
.ws-mobile-preview-banner a { color: #16233D; font-weight: 600; }

/* ── StylePresetCard (ws-preset-*) ─────────────────────────────────── */
.ws-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    padding: 0 1.5rem 1rem;
}

/* R114c35r — Version-History Modal */
.cz-modal-wide { max-width: 640px !important; }
.cz-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cz-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.cz-history-item:hover { border-color: var(--creator-primary, #16233D); }
.cz-history-meta { flex: 0 0 140px; }
.cz-history-when { font-size: 0.86rem; font-weight: 700; color: #1e293b; }
.cz-history-sub { font-size: 0.72rem; color: #94a3b8; margin-top: 1px; }
.cz-history-preview {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #475569;
}
.cz-history-swatch {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}
.cz-history-theme { font-weight: 600; color: #1e293b; }
.cz-history-layout { color: #94a3b8; }

/* R114c35p — Cmd+K Hint-Badge (schwebend, rechts unten) */
.cmd-hint-badge {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    background: rgba(15, 23, 42, 0.85);
    color: #f1f5f9;
    border: none;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
}
.cmd-hint-badge:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.95);
}
.cmd-hint-badge kbd {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.72rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 5px;
    color: #fff;
    font-weight: 600;
}
.cmd-hint-badge .cmd-hint-text { margin-left: 0.15rem; }
@media (max-width: 720px) {
    .cmd-hint-badge .cmd-hint-text { display: none; }
    .cmd-hint-badge { bottom: 5rem; }
}

/* R114c35p — Brand-Palette-Swatches (Schnellwahl-Buttons) */
.palette-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0 0.8rem;
}
.palette-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    margin-right: 0.25rem;
}
.palette-swatch {
    display: inline-flex;
    width: 56px; height: 22px;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    border: 1.5px solid #e5e7eb;
    background: none;
    padding: 0;
    transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.palette-swatch:hover {
    transform: translateY(-1px);
    border-color: var(--creator-primary, #16233D);
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.palette-swatch > span {
    flex: 1;
    height: 100%;
    display: block;
}

/* R114c35o — SEO-Score-Pille in Post-Liste */
.seo-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.02em;
}
.seo-score-pill .bi { font-size: 0.78rem; }
.seo-good { background: #d1fae5; color: #065f46; }
.seo-warn { background: #fef3c7; color: #92400e; }
.seo-poor { background: #fee2e2; color: #991b1b; }

/* R114c35o — Social-Media-Preview Card (OpenGraph-Vorschau) */
.sm-preview-card {
    margin: 0 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    max-width: 480px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.sm-preview-img {
    aspect-ratio: 1.91 / 1;  /* Twitter/FB OG-Card-Ratio */
    background: #f1f5f9;
    overflow: hidden;
}
.sm-preview-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-preview-img-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; gap: 0.5rem;
    color: #94a3b8; font-size: 0.85rem;
}
.sm-preview-img-empty .bi { font-size: 2rem; }
.sm-preview-body { padding: 0.85rem 1rem; }
.sm-preview-domain {
    font-size: 0.74rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}
.sm-preview-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sm-preview-desc {
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.sm-preview-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    padding: 0.5rem 1.5rem 1rem;
    margin: 0;
    font-style: italic;
}

/* R114c35l — Page-Templates (1-Klick-Layout-Packs) */
/* R114c35bj: Komplett-Layout-Grid kompakter — minmax 140px statt 160px,
   weniger Padding. 5 Templates passen so deutlich kleiner unter den Tabs
   ohne dass der User gleich nach unten scrollen muss. */
.ws-tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    padding: 0 1.5rem 0.5rem;
}
.ws-tpl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s;
    text-align: center;
}
.ws-tpl-card:hover {
    border-color: var(--creator-primary, #16233D);
    background: linear-gradient(135deg, var(--nv-spark-100, #FDF1D6) 0%, #EAEEF5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22,35,61,.15);
}
.ws-tpl-icon { font-size: 1.3rem; color: var(--nv-spark-700, #B97F08); }
.ws-tpl-title { font-size: 0.85rem; font-weight: 700; color: #1e293b; }
.ws-tpl-sub { font-size: 0.7rem; color: #64748b; line-height: 1.3; }
.ws-tpl-hint { font-size: 0.75rem; color: #6b7280; padding: 0.25rem 1.5rem 0.75rem; margin: 0; font-style: italic; }
.ws-preset-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
    background: #fff;
    user-select: none;
}
.ws-preset-card:hover {
    border-color: var(--creator-primary, #16233D);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22,35,61,0.12);
}
.ws-preset-card.active {
    border-color: var(--creator-primary, #16233D);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.18);
}
.ws-preset-card:focus-visible {
    outline: 2px solid var(--creator-primary, #16233D);
    outline-offset: 2px;
}
.ws-preset-preview {
    width: 100%;
    aspect-ratio: 4/3;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
    gap: 0.35rem;
    pointer-events: none;
    position: relative;
}
.ws-preset-header-bar {
    height: 7px;
    background: var(--preset-primary, #16233D);
    border-radius: 2px;
    width: 55%;
    flex-shrink: 0;
}
.ws-preset-img-mock {
    height: 30%;
    background: linear-gradient(135deg, var(--preset-primary, #16233D), var(--preset-accent, #1e88c7));
    opacity: 0.25;
    border-radius: var(--preset-radius, 4px);
    flex-shrink: 0;
    filter: var(--preset-img-filter, none);
}
.ws-preset-card-mock {
    flex: 1;
    background: var(--preset-card-bg, #fff);
    border: 1px solid var(--preset-border, #e5e7eb);
    border-radius: var(--preset-radius, 4px);
    padding: 0.35rem 0.4rem;
}
.ws-preset-title-mock {
    height: 5px;
    background: var(--preset-head-color, #1f2937);
    border-radius: 2px;
    width: 80%;
    margin-bottom: 4px;
}
.ws-preset-meta-mock {
    height: 3px;
    background: #d1d5db;
    border-radius: 2px;
    width: 50%;
}
.ws-preset-active-check {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 20px;
    height: 20px;
    background: var(--creator-primary, #16233D);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.ws-preset-label {
    padding: 0.45rem 0.6rem 0.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1f2937;
}
.ws-preset-font-hint {
    padding: 0 0.6rem 0.45rem;
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1.3;
}

/* ── DevicePreviewFrame (ws-device-*, ws-preview-*) ─────────────────── */
.ws-preview-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    height: 100%;
}
/* Device-Frames sollen NICHT auf volle Höhe gestreckt werden */
.ws-preview-area .ws-preview-frame-wrap:has(.ws-preview-frame--phone),
.ws-preview-area .ws-preview-frame-wrap:has(.ws-preview-frame--tablet) {
    flex: 0 0 auto;
    align-self: center;
}
.ws-device-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    flex-shrink: 0;
}
.ws-device-group { display: flex; gap: 0.25rem; align-items: center; }
.ws-device-meta { font-size: 0.72rem; color: #6b7280; font-family: ui-monospace, 'SF Mono', Menlo, monospace; flex: 1 1 auto; text-align: center; }
.ws-device-resolution { padding: 0.25rem 0.55rem; background: #1f2937; color: #f9fafb; border-radius: 4px; letter-spacing: 0.02em; }
.ws-device-btn {
    padding: 0.35rem 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 0.78rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 38px;
    text-decoration: none;
}
.ws-device-btn:hover { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.ws-device-btn.active {
    background: var(--creator-primary, #16233D);
    color: #fff;
    border-color: var(--creator-primary, #16233D);
    box-shadow: 0 1px 3px rgba(22,35,61,0.18);
}
.ws-device-btn.active:hover { background: var(--creator-primary, #16233D); color: #fff; }
.ws-device-reload-btn,
.ws-device-open { padding: 0.35rem 0.6rem; }
@media (max-width: 720px) {
    .ws-device-lbl { display: none; }
    .ws-device-meta { display: none; }
}
.ws-preview-frame-wrap {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    transition: max-width 0.3s ease;
    position: relative;
    min-height: 500px;
    /* R114c35bd: Apple-Safari-Fix — explizit auf 100% klemmen sonst kann
       das iframe seine native Aspect-Ratio (~ Desktop-Breite) durchsetzen
       und ueber die Editor-Spalte greifen. */
    max-width: 100%;
    min-width: 0;
    width: 100%;
}
.ws-preview-frame {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
    transition: width 0.3s ease;
}

/* R114c35bz: Realistic Device-Mock-Frames (iPhone-15- + iPad-Air-Look).
   Aussenhuelle = Aluminium-Rahmen mit abgerundeten Ecken, Innenscreen =
   weisser iframe-Container, dazwischen Dynamic-Island-Notch oben + Home-Bar
   unten. Vermittelt sofort "so sieht's auf dem Handy aus". */
.ws-device-mock {
    width: 100%; height: 100%;
    position: relative;
    display: flex; flex-direction: column;
    border-radius: 48px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow:
        0 0 0 2px #0f172a,
        0 30px 60px -15px rgba(0,0,0,0.5),
        0 12px 24px -8px rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.06);
    padding: 14px 10px;
}
.ws-device-mock--tablet { border-radius: 40px; padding: 18px 14px; }
.ws-device-mock-notch {
    position: absolute;
    top: 14px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 30px;
    background: #000;
    border-radius: 18px;
    z-index: 3;
    box-shadow: inset 0 0 0 1px #1f2937;
}
.ws-device-mock--tablet .ws-device-mock-notch {
    width: 8px; height: 8px;
    top: 7px;
    background: #1f2937;
    box-shadow: inset 0 0 0 1px #000, 0 0 6px rgba(0,0,0,0.4);
}
.ws-device-mock-screen {
    flex: 1;
    background: #fff;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.ws-device-mock--tablet .ws-device-mock-screen { border-radius: 24px; margin-top: 0; }
.ws-device-mock-homebar {
    position: absolute;
    bottom: 6px; left: 50%; transform: translateX(-50%);
    width: 130px; height: 5px;
    background: rgba(255,255,255,0.4);
    border-radius: 3px;
    z-index: 3;
}
.ws-device-mock--tablet .ws-device-mock-homebar { width: 90px; bottom: 8px; }

/* iframes innerhalb des mocks: KEIN box-shadow mehr, das macht der mock */
.ws-device-mock .ws-preview-frame--phone,
.ws-device-mock .ws-preview-frame--tablet {
    width: 100%; height: 100%;
    border: none; border-radius: 0;
    box-shadow: none; background: #fff;
    overflow: auto;
}
.ws-device-mock--phone .ws-preview-frame--phone { min-height: 0; height: 100%; }
.ws-device-mock--tablet .ws-preview-frame--tablet { min-height: 0; height: 100%; }

/* Wrap selbst soll transparent sein wenn phone/tablet — der mock uebernimmt */
.ws-preview-frame-wrap--phone,
.ws-preview-frame-wrap--tablet {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: visible;
    padding: 1rem;
}
.ws-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    gap: 1rem;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
}
.ws-preview-empty i { font-size: 2.5rem; }
.ws-preview-empty p { font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* R114c35: Live-Vorschau Loading + Fallback-CTA */
.ws-preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    z-index: 2;
}
.ws-preview-loading p { font-size: 0.85rem; color: #94a3b8; margin: 0; }
.ws-preview-spinner {
    width: 28px; height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--brand-primary, #16233D);
    border-radius: 50%;
    animation: ws-spin 0.8s linear infinite;
}
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ws-preview-fallback-btn {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    background: var(--brand-primary, #16233D);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}
.ws-preview-fallback-btn:hover { opacity: 0.92; }

/* iframe-Transition smooth */
.ws-preview-frame { transition: opacity 0.2s ease; }

/* ── 4-Slot color palette row ───────────────────────────────────────── */
.ws-color4-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.ws-color4-slot {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.5rem;
    background: #fff;
    text-align: center;
}
.ws-color4-swatch {
    width: 100%;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    margin-bottom: 0.25rem;
}
.ws-color4-label {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ws-color4-tooltip {
    font-size: 0.68rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.2rem;
}

/* R114c35f #2 — Mobile-Toggle Editor/Vorschau */
.ws-mobile-mode-toggle {
    display: none; /* nur auf Mobile sichtbar — Media Query unten */
    gap: 0.4rem;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 0.3rem;
    margin-bottom: 0.75rem;
}
.ws-mode-btn {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s;
}
.ws-mode-btn.active {
    background: #fff;
    color: var(--creator-primary, #16233D);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ── Responsive: < 900px — Toggle Editor / Preview ───────────────── */
@media (max-width: 900px) {
    .ws-split {
        grid-template-columns: 1fr;
    }
    .ws-mobile-mode-toggle { display: flex; }
    /* Default = Editor zeigen */
    .ws-split--mobile-editor .ws-preview-col  { display: none; }
    .ws-split--mobile-preview .ws-edit-panel  { display: none; }
    .ws-split--mobile-preview .ws-preview-col {
        min-height: auto;
        position: static;
    }
    .ws-mobile-preview-banner { display: flex; }
    .ws-edit-panel {
        height: auto;
        position: static;
    }
    .ws-preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ws-color4-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Welle 3: Sections-Editor (sec-*) ===== */

.cust-section-hint {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.sec-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}
.sec-preview-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
}
.sec-preview-item i { color: var(--creator-primary, #16233D); font-size: 0.75rem; }

.sec-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.sec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sec-item:hover {
    border-color: color-mix(in srgb, var(--creator-primary, #16233D) 30%, #e5e7eb);
    box-shadow: 0 1px 4px rgba(22,35,61,.08);
}

/* R114c35e — Drag-Handle für Section-Sortable */
.sec-handle {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
    cursor: grab;
    flex-shrink: 0;
    user-select: none;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.sec-handle:hover { color: #4b5563; background: #f3f4f6; }
.sec-handle:active { cursor: grabbing; }
.sec-handle .bi { font-size: 1rem; }

/* Sortable.js drag states */
.sec-ghost {
    opacity: 0.4;
    background: var(--nv-spark-100, #FDF1D6) !important;
    border-style: dashed !important;
    border-color: var(--creator-primary, #16233D) !important;
}
.sec-chosen {
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
.sec-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--creator-primary, #16233D) 10%, #fff);
    border-radius: 7px;
    color: var(--creator-primary, #16233D);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.sec-item-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    flex-shrink: 0;
    min-width: 90px;
}
.sec-item-desc {
    font-size: 0.8rem;
    color: #9ca3af;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sec-item-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.sec-btn {
    width: 30px;
    height: 30px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.8rem;
    transition: all 0.15s;
}
.sec-btn:hover:not(:disabled) {
    border-color: var(--creator-primary, #16233D);
    color: var(--creator-primary, #16233D);
    background: color-mix(in srgb, var(--creator-primary, #16233D) 8%, #fff);
}
.sec-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.sec-btn-remove:hover:not(:disabled) {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.sec-hidden-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 1rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sec-hidden-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.sec-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border: 1.5px dashed #d1d5db;
    background: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}
.sec-add-btn:hover {
    border-color: var(--creator-primary, #16233D);
    color: var(--creator-primary, #16233D);
    border-style: solid;
    background: color-mix(in srgb, var(--creator-primary, #16233D) 6%, #fff);
}

/* ===== Welle 3: Header-Editor (hd-*) ===== */

.hd-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    min-height: 52px;
    position: relative;
    transition: all 0.2s;
}
.hd-preview--center {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    align-items: center;
    padding: 0.9rem 1.25rem;
}
.hd-preview--sticky {
    border-color: var(--creator-primary, #16233D);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 8px rgba(22,35,61,.12);
}
.hd-preview-logo {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hd-preview-nav {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}
.hd-preview--center .hd-preview-nav {
    justify-content: center;
    flex: unset;
}
.hd-preview-nav span {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
    cursor: default;
}
.hd-preview-nav--underline .hd-preview-nav span:first-child {
    border-bottom: 2px solid var(--creator-primary, #16233D);
    color: var(--creator-primary, #16233D);
    padding-bottom: 1px;
}
.hd-preview-nav--pill .hd-preview-nav span:first-child {
    background: color-mix(in srgb, var(--creator-primary, #16233D) 12%, #fff);
    color: var(--creator-primary, #16233D);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
}
.hd-preview-nav--minimal .hd-preview-nav span {
    opacity: 0.6;
}
.hd-preview-nav--minimal .hd-preview-nav span:first-child {
    opacity: 1;
    color: var(--creator-primary, #16233D);
}
.hd-preview-sticky-badge {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--creator-primary, #16233D);
    background: color-mix(in srgb, var(--creator-primary, #16233D) 12%, #fff);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}
.hd-preview--center .hd-preview-sticky-badge {
    top: 0.5rem;
    transform: none;
}

.hd-radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hd-radio-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 80px;
    transition: all 0.15s;
}
.hd-radio-btn i { font-size: 1rem; }
.hd-radio-btn:hover {
    border-color: color-mix(in srgb, var(--creator-primary, #16233D) 40%, #e5e7eb);
    color: var(--creator-primary, #16233D);
}
.hd-radio-btn.active {
    border-color: var(--creator-primary, #16233D);
    background: color-mix(in srgb, var(--creator-primary, #16233D) 8%, #fff);
    color: var(--creator-primary, #16233D);
}

/* ===== Welle 3: Shared save-row + field-group (cz-* / cust-* / toggle-*) ===== */

.cust-field-group {
    margin-bottom: 1.25rem;
}
.cust-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.6rem;
}

.cz-save-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}
.cz-save-btn {
    background: var(--nv-ink, #16233D);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}
.cz-save-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}
.cz-save-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.cz-save-status {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cz-save-status.ok { color: #10b981; }
.cz-save-status.error { color: #ef4444; }
.cz-save-status.dirty { color: #f59e0b; }

/* R114c35: Auto-Save Indicator (ersetzt expliziten Save-Button bei Sections/Header) */
.cz-autosave-row {
    margin-top: 1.25rem;
    padding-top: 0.875rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 24px;
}
.cz-autosave-hint,
.cz-autosave-indicator {
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
}
.cz-autosave-indicator.ok    { color: #10b981; }
.cz-autosave-indicator.error { color: #ef4444; }
.cz-autosave-indicator.dirty { color: #f59e0b; }
.cz-autosave-indicator .spin { animation: cz-spin 0.7s linear infinite; }
@keyframes cz-spin { to { transform: rotate(360deg); } }

/* R114c35d v2 — Sticky Publish-Footer-Bar (global "Live schalten") */
.cz-publish-bar {
    position: sticky;
    bottom: 0;
    left: 0; right: 0;
    margin-top: 1.5rem;
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    border-top: 2px solid #f59e0b;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    z-index: 50;
    border-radius: 0 0 12px 12px;
    flex-wrap: wrap;
}
.cz-publish-bar-text { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex: 1 1 280px; }
.cz-publish-bar-text > .bi { font-size: 1.5rem; color: #b45309; flex-shrink: 0; }
.cz-publish-bar-title { font-weight: 700; color: #78350f; font-size: 0.92rem; }
.cz-publish-bar-ts    { font-weight: 500; font-size: 0.78rem; opacity: 0.8; margin-left: 0.4rem; }
.cz-publish-bar-sub   { font-size: 0.78rem; color: #92400e; margin-top: 1px; line-height: 1.4; }
.cz-publish-bar-last  { opacity: 0.75; }

/* R114c35f — Confirm-Modal (Discard + Publish) */
.cz-modal-bg {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: cz-modal-bg-in 0.15s ease;
}
@keyframes cz-modal-bg-in { from { opacity: 0; } to { opacity: 1; } }
.cz-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: cz-modal-in 0.18s ease;
}
@keyframes cz-modal-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cz-modal-hdr { padding: 1.1rem 1.25rem 0.5rem; }
.cz-modal-hdr h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 0.5rem; }
.cz-modal-body { padding: 0.5rem 1.25rem 1rem; color: #374151; font-size: 0.9rem; line-height: 1.55; }
.cz-modal-body p { margin: 0 0 0.5rem; }
.cz-modal-lead { font-weight: 500; color: #1f2937; margin-bottom: 0.75rem !important; }
.cz-modal-ftr {
    display: flex; gap: 0.5rem; justify-content: flex-end;
    padding: 0.75rem 1.25rem 1.1rem;
    border-top: 1px solid #f1f5f9;
}
.cz-modal-cancel,
.cz-modal-danger,
.cz-modal-primary {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}
.cz-modal-cancel  { background: #f1f5f9; color: #475569; }
.cz-modal-cancel:hover { background: #e2e8f0; }
.cz-modal-danger  { background: #ef4444; color: #fff; }
.cz-modal-danger:hover:not(:disabled) { background: #dc2626; }
.cz-modal-primary { background: #16a34a; color: #fff; }
.cz-modal-primary:hover:not(:disabled) { background: #15803d; }
.cz-modal-cancel:disabled, .cz-modal-danger:disabled, .cz-modal-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.cz-modal-primary .spin { animation: cz-spin 0.7s linear infinite; }

/* R114c35n — First-Time Welcome-Card */
.welcome-card {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,.28);
    overflow: hidden;
    animation: cz-modal-in 0.2s ease;
}
.welcome-header {
    text-align: center;
    padding: 1.5rem 1.5rem 0.5rem;
    background: linear-gradient(180deg, var(--nv-spark-100, #FDF1D6) 0%, #ffffff 100%);
}
.welcome-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11203B, #16233D);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 0.75rem;
    box-shadow: 0 6px 20px rgba(22,35,61,.35);
}
.welcome-header h2 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
}
.welcome-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}
.welcome-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.welcome-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    background: #f8fafc;
    border-radius: 10px;
}
.welcome-list li > .bi {
    font-size: 1.2rem;
    color: var(--creator-primary, #16233D);
    flex-shrink: 0;
    margin-top: 1px;
}
.welcome-list li > div { flex: 1; min-width: 0; }
.welcome-list li strong {
    display: block;
    font-size: 0.92rem;
    color: #1e293b;
    margin-bottom: 2px;
}
.welcome-list li span {
    display: block;
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.45;
}
.welcome-kbd {
    display: inline-block;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.75rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    color: #1e293b;
    font-weight: 600;
    margin: 0 1px;
}
.welcome-footer {
    padding: 0.85rem 1.5rem 1.25rem;
    text-align: center;
}
.welcome-footer .cz-modal-primary {
    padding: 0.65rem 1.6rem;
    font-size: 0.95rem;
}

/* R114c35m — Command-Palette (Cmd+K) */
.cmd-palette-bg {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(3px);
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 1rem;
    animation: cz-modal-bg-in 0.12s ease;
}
.cmd-palette {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
    overflow: hidden;
    animation: cmd-palette-in 0.15s ease;
}
@keyframes cmd-palette-in {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.cmd-palette-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.cmd-palette-search .bi { color: #94a3b8; font-size: 1.1rem; }
.cmd-palette-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
}
.cmd-palette-search input::placeholder { color: #94a3b8; }
.cmd-palette-list {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.4rem 0;
}
.cmd-palette-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s;
    color: #1e293b;
}
.cmd-palette-item.active {
    background: var(--nv-spark-100, #FDF1D6);
}
.cmd-palette-item:hover {
    background: #f1f5f9;
}
.cmd-palette-item.active:hover {
    background: #EAEEF5;
}
.cmd-palette-item > .bi:first-child {
    font-size: 1.1rem;
    color: var(--creator-primary, #16233D);
    width: 22px;
    flex-shrink: 0;
}
.cmd-palette-item-text {
    flex: 1;
    min-width: 0;
}
.cmd-palette-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}
.cmd-palette-item-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 1px;
}
.cmd-palette-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}
.cmd-palette-kbd {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.72rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    color: #475569;
    font-weight: 600;
}
.cmd-palette-footer {
    display: flex;
    gap: 1rem;
    padding: 0.55rem 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 0.74rem;
    color: #64748b;
    flex-wrap: wrap;
}
.cmd-palette-footer kbd {
    font-size: 0.68rem;
}

.cz-diff-list {
    margin: 0; padding: 0;
    list-style: none;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.cz-diff-list li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #15803d;
}
.cz-diff-list li .bi { flex-shrink: 0; margin-top: 1px; }
.cz-diff-list .cz-diff-none {
    background: #f9fafb;
    border-left-color: #94a3b8;
    color: #64748b;
}
.cz-publish-bar-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cz-publish-discard,
.cz-publish-go {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}
.cz-publish-discard {
    background: transparent;
    color: #92400e;
    border: 1px solid #d97706;
}
.cz-publish-discard:hover:not(:disabled) { background: #fef3c7; }
.cz-publish-go {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(22,163,74,.3);
}
.cz-publish-go:hover:not(:disabled) { background: #15803d; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(22,163,74,.4); }
.cz-publish-discard:disabled, .cz-publish-go:disabled { opacity: 0.6; cursor: not-allowed; }
.cz-publish-go .spin { animation: cz-spin 0.7s linear infinite; }
@media (max-width: 640px) {
    .cz-publish-bar { padding: 0.75rem 1rem; }
    .cz-publish-bar-actions { width: 100%; }
    .cz-publish-discard, .cz-publish-go { flex: 1; justify-content: center; }
}

/* Toggle switch (used in Header tab for StickyHeader) */
.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
}
.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-track {
    display: inline-block;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 50px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-input:checked + .toggle-track {
    background: var(--creator-primary, #16233D);
}
.toggle-input:checked + .toggle-track::after {
    transform: translateX(18px);
}
.toggle-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

@media (max-width: 640px) {
    .sec-item-desc { display: none; }
    .hd-radio-btn { min-width: 70px; padding: 0.5rem 0.65rem; }
    .cz-save-row { flex-direction: column; align-items: stretch; }
    .cz-save-btn { width: 100%; text-align: center; }
}

/* R114c35cg: Typography-Power Radio-Groups (Skala + Weight + Uppercase-Toggle) */
.ws-radio-row {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.ws-radio {
    flex: 1 1 0; min-width: 80px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 12px;
    background: #fff; border: 2px solid #e2e8f0;
    border-radius: 8px; cursor: pointer;
    transition: border-color .12s, background .12s, transform .08s;
    text-align: center;
    font-size: 0.82rem;
}
.ws-radio:hover { border-color: #cbd5e1; background: #f8fafc; }
.ws-radio:active { transform: scale(0.98); }
.ws-radio input[type="radio"] { display: none; }
.ws-radio span { display: block; line-height: 1.3; }
.ws-radio span small { color: #94a3b8; font-size: 0.7rem; }
.ws-radio-on {
    border-color: #16233D !important;
    background: rgba(22,35,61,0.08) !important;
    box-shadow: 0 0 0 3px rgba(22,35,61,0.12);
}
.ws-radio-on span small { color: #11203B; }

.ws-checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    cursor: pointer;
}
.ws-checkbox-row:hover { border-color: #cbd5e1; }
.ws-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.ws-checkbox-row > span { font-size: 0.85rem; line-height: 1.4; }

/* R114c35ch: Slash-Command-Popover (Notion-Style) */
.slash-popover {
    position: absolute; left: 0; right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.15), 0 4px 8px rgba(15,23,42,0.06);
    z-index: 50;
    overflow: hidden;
    max-width: 480px;
}
.slash-popover-hdr {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem; font-weight: 600; color: #0f172a;
}
.slash-popover-hdr i { color: #16233D; }
.slash-query {
    background: #0f172a; color: #16233D;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.78rem;
    margin-left: auto; margin-right: 4px;
    font-family: ui-monospace, monospace;
}
.slash-close {
    background: none; border: none; cursor: pointer;
    color: #94a3b8; padding: 0; line-height: 1;
    font-size: 1.05rem;
    transition: color .12s;
}
.slash-close:hover { color: #0f172a; }

.slash-popover-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}
.slash-item {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    background: none; border: none; border-radius: 8px;
    cursor: pointer;
    font-size: 0.86rem; color: #0f172a;
    text-align: left;
    transition: background .1s ease;
}
.slash-item:hover { background: rgba(22,35,61,0.08); }
.slash-item-icon {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; border-radius: 6px;
    font-size: 1rem;
    flex-shrink: 0;
}
.slash-item-label { flex: 1; font-weight: 500; }
.slash-item-key {
    font-family: ui-monospace, monospace;
    font-size: 0.72rem; color: #94a3b8;
    background: #f8fafc; padding: 2px 6px; border-radius: 4px;
}
.slash-empty {
    padding: 24px 16px; text-align: center;
    color: #94a3b8; font-size: 0.85rem;
}
.slash-popover-ftr {
    padding: 8px 14px;
    background: #fafafa;
    border-top: 1px solid #e2e8f0;
    font-size: 0.72rem; color: #94a3b8;
    text-align: center;
}
.slash-popover-ftr kbd {
    background: #fff; border: 1px solid #cbd5e1;
    border-radius: 3px; padding: 1px 5px;
    font-size: 0.7rem; font-family: ui-monospace, monospace;
    color: #475569;
}

/* Container muss relative sein damit popover absolute positioniert wird */
.ed-field { position: relative; }

/* R114c35ck: Footer-Builder Editor */
.footer-col-edit {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.footer-col-edit-hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.85rem; color: #0f172a;
}
.footer-col-rm, .footer-link-rm {
    background: transparent; border: none; cursor: pointer;
    color: #94a3b8; font-size: 0.95rem;
    padding: 2px 6px; border-radius: 4px;
    transition: background .12s, color .12s;
}
.footer-col-rm:hover, .footer-link-rm:hover { background: #fee2e2; color: #b91c1c; }

.footer-link-row {
    display: grid; grid-template-columns: 1fr 1fr auto;
    gap: 6px;
    margin-bottom: 6px;
}
.footer-link-row .form-input { font-size: 0.82rem; padding: 5px 8px; min-height: 32px; }

.footer-link-add, .footer-col-add {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 0.8rem; font-weight: 500;
    cursor: pointer;
    transition: border-color .12s, color .12s;
}
.footer-link-add:hover, .footer-col-add:hover { border-color: #16233D; color: #16233D; }
.footer-col-add { margin-top: 8px; width: 100%; justify-content: center; padding: 10px; }

/* R114c35cl: Erweiterte Farben (Body/Heading/Link/Muted/Border) + Auto-Palette-Button */
.advanced-colors-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 8px; margin-top: 4px;
}
.adv-color-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.adv-color-slot input[type="color"] { width: 100%; height: 48px; }
.adv-color-slot .ws-color4-label { font-size: 0.68rem; color: #475569; font-weight: 600; }

.auto-palette-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: auto;
    padding: 4px 10px;
    background: linear-gradient(135deg, #16233D, #16233D);
    color: #fff;
    border: none; border-radius: 6px;
    font-size: 0.75rem; font-weight: 600;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}
.auto-palette-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(22,35,61,0.35); }

@media (max-width: 640px) {
    .advanced-colors-grid { grid-template-columns: repeat(3, 1fr); }
}

/* R114c35cr: Section-Settings-Drawer (inline unter sec-item) */
.sec-btn-settings.active { background: rgba(22,35,61,0.12); color: #16233D; }
.sec-item-settings-open { border-bottom-color: #16233D !important; border-bottom-style: dashed; border-bottom-width: 2px; }
.sec-settings-drawer {
    padding: 14px 18px;
    margin: -2px 0 8px;
    background: linear-gradient(180deg, rgba(22,35,61,0.04) 0%, rgba(22,35,61,0.01) 100%);
    border: 1px dashed rgba(22,35,61,0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
    animation: drawerSlideDown 0.18s ease-out;
}
@keyframes drawerSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
