/* ═══════════════════════════════════════════════════════
   AI Sales Crew — Page-Shell (RAS Live-Page-Optik)
   Lädt NACH style.css → überschreibt via Kaskade.
   Quelle: rockingaisales.de Live-Page.
   Layout: Top-Bar (Brand+User) + Sidebar (Nav) co-existieren.
   Lena/CDO · 2026-05-28
   ═══════════════════════════════════════════════════════ */

body { display: block; }

/* ── Website-Hintergrund (radiale Glows wie Live-Page) ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 80% at 50% -5%, rgba(37, 99, 235, 0.16), transparent 65%),
        radial-gradient(45% 55% at 100% 100%, rgba(6, 182, 212, 0.10), transparent 70%),
        radial-gradient(40% 50% at 0% 60%, rgba(124, 58, 237, 0.08), transparent 70%),
        var(--bg);
    pointer-events: none;
}
/* subtiles Grid-Overlay (Live-Page --grid-line) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 80%);
    pointer-events: none;
}

/* ── Top Bar ───────────────────────────────────────────── */
.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topnav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    background: rgba(7, 7, 26, 0.78);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 200;
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-brand-mark {
    width: 28px; height: 28px;
    background: url('/static/img/RAS_icon_256_transparent.png') center/contain no-repeat;
    display: inline-block;
    flex-shrink: 0;
    /* "R" bleibt im DOM (a11y/SEO), wird visuell durch das Logo-Bild ersetzt */
    font-size: 0; color: transparent; line-height: 0;
    filter: drop-shadow(0 0 12px rgba(79, 70, 229, 0.30));
}
.nav-brand-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.nav-brand-word .nb-dot { color: var(--text3); }
.nav-brand-product {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text3);
    padding-left: 12px;
    margin-left: 2px;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-user {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text3);
    max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Sidebar (links, unter Top-Bar) ───────────────────── */
.sidebar {
    position: fixed;
    top: var(--topnav-height); left: 0; bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 12px;
    background: rgba(10, 10, 30, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-right: 1px solid var(--border);
    z-index: 150;
    overflow-y: auto;
}
.sidebar .nav-links { display: flex; flex-direction: column; gap: 4px; padding: 0; flex: 0 0 auto; }
.sidebar .nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text2);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: none;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.sidebar .nav-link:hover { background: rgba(37, 99, 235, 0.10); color: var(--text); }
.sidebar .nav-link.active {
    background: var(--eb-soft, rgba(37, 99, 235, 0.16));
    color: var(--text);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--electric-blue);
}
.sidebar .nav-icon { font-size: 18px; width: 22px; text-align: center; }
.sidebar-footer { display: flex; flex-direction: column; gap: 4px; font-size: 11px; padding: 12px 14px; }
.sidebar-footer .badge-ai { color: var(--cyan-bright, #38BDF8); }
.sidebar-footer .badge-human { color: var(--gold); }

/* ── Content (unter Top-Bar + rechts neben Sidebar) ── */
.content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topnav-height);
    display: block;
    min-height: calc(100vh - var(--topnav-height));
}
.content-body { padding: 24px 40px 64px; max-width: 1240px; }

/* ── Page-Header (Eyebrow + DM-Serif-Title) ── */
.page-header {
    padding: 32px 40px 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: none;
    height: auto;
    background: transparent;
}
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 12px;
    display: block;
}
.page-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
}
.page-title em {
    font-style: italic;
    background: var(--ki-text-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Button-Polish ── */
.btn-primary, .btn.btn-primary {
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-fast) var(--ease);
}
.btn-primary:hover, .btn.btn-primary:hover { transform: translateY(var(--hover-y)); box-shadow: var(--sh-acc); }
.btn-primary:active, .btn.btn-primary:active { transform: translateY(var(--press-y)); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; color: var(--text);
    border: 1px solid var(--border-2, rgba(255,255,255,0.18));
    border-radius: var(--radius);
    padding: 8px 16px;
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn-secondary:hover { border-color: var(--electric-blue); background: rgba(37,99,235,0.12); transform: translateY(var(--hover-y)); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }

/* ── Card → Panel-Stil (glasig) ── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.card:hover { border-color: var(--border-purple-hover); box-shadow: var(--sh-acc); }
.card-title { font-family: var(--font-display); }

/* ── Mobile ── */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .content { margin-left: 0; }
    .topnav { padding: 0 16px; }
    .nav-brand-product { display: none; }
    .nav-user { display: none; }
    .content-body, .page-header { padding-left: 16px; padding-right: 16px; }
}

/* ── Demo-Credits (verbleibende Credits je Feature im Demo-Banner) ── */
.demo-banner-content { flex-wrap: wrap; gap: 8px 12px; }
.demo-credits-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}
.demo-credits { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.demo-credit-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}
.demo-credit-chip strong {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.74rem;
}
.demo-credit-chip.is-exhausted {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.5);
    opacity: 0.92;
}
.demo-credit-chip.is-exhausted strong { color: #FECACA; }

/* ── Dashboard Hero-Brand (gleiches Icon-Logo wie Top-Bar) ── */
.hero-brand {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 12px 0 6px;
}
.hero-brand-mark {
    width: 56px; height: 56px;
    background: url('/static/img/RAS_icon_256_transparent.png') center/contain no-repeat;
    display: inline-block; flex-shrink: 0;
    filter: drop-shadow(0 0 22px rgba(79, 70, 229, 0.35));
}
.hero-brand-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--text);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.hero-brand-word .nb-dot { color: var(--text3); }
@media (max-width: 768px) {
    .hero-brand-mark { width: 44px; height: 44px; }
}

/* ── Sidebar "Warum" — Golden-Circle-Quote (User-Identifikation) ── */
.sidebar-why {
    margin: 16px 4px 12px;
    padding: 14px 14px 16px;
    border-radius: var(--radius-lg, 14px);
    background: linear-gradient(160deg, rgba(37,99,235,0.10), rgba(124,58,237,0.06));
    border: 1px solid var(--border);
    position: relative;
}
.sidebar-why-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--electric-blue);
    display: block;
    margin-bottom: 8px;
}
.sidebar-why-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.42;
    color: var(--text);
    margin: 0 0 8px;
}
.sidebar-why-punch {
    font-family: var(--font-body);
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--text2);
    margin: 0;
}
.sidebar-why-punch strong { color: var(--text); font-weight: 600; }

/* ── Auth-Seiten (Login/Signup): Website-Hintergrund + Icon-Logo ── */
body.auth-page { background: transparent; }  /* lässt body::before-Glows + Grid durch */
.auth-logo {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.auth-brand-mark {
    width: 52px; height: 52px;
    background: url('/static/img/RAS_icon_256_transparent.png') center/contain no-repeat;
    filter: drop-shadow(0 0 20px rgba(79, 70, 229, 0.35));
}
.auth-brand-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.auth-brand-word .nb-dot { color: var(--text3); }

/* ── Homepage-Grafik: Schwarm/Agenten-Netzwerk als Empty-State ── */
.empty-state-svg { width: 210px; height: auto; opacity: 0.92; margin: 0 auto 10px; display: block; }

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-wrap { max-width: 820px; }
.faq-intro { margin-bottom: 20px; }
.faq-intro p { color: var(--text2); line-height: 1.6; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg-card); margin-bottom: 10px; padding: 0 20px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.faq-item summary {
    font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text);
    padding: 16px 0; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--electric-blue); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { color: var(--electric-blue); }
.faq-answer { padding: 0 0 18px; color: var(--text2); line-height: 1.65; }

/* ── Glossar-Tooltip (Hover-Erklärung auf Fachbegriffe) ── */
.gloss { border-bottom: 1px dotted var(--electric-blue); cursor: help; position: relative; }
.gloss::after {
    content: attr(data-tip);
    position: absolute; left: 0; bottom: 145%;
    width: max-content; max-width: 290px;
    background: var(--bg3, #10102A); color: var(--text);
    border: 1px solid var(--border-2, rgba(255,255,255,0.18));
    border-radius: var(--radius); padding: 9px 12px;
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 400; line-height: 1.45;
    letter-spacing: normal; text-transform: none;
    box-shadow: var(--sh-2, 0 8px 24px rgba(0,0,0,0.32)); z-index: 300;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
    pointer-events: none;
}
.gloss:hover::after, .gloss:focus::after { opacity: 1; visibility: visible; transform: translateY(0); }
