/*
 * P-BM-Fit Brand Design System
 * ═══════════════════════════════
 * Farbpalette, Glassmorphism, Buttons, Typografie
 * Wird von allen Seiten eingebunden: <link rel="stylesheet" href="css/brand.css">
 * Tailwind-Config muss zusätzlich per <script> geladen werden (siehe brand-tw.js)
 *
 * PALETTE:
 *   Deep Coal    #1a1a2e   (Primary BG)
 *   Coal Deep    #0f0f1e   (Darker BG)
 *   Coal Light   #222240   (Card BG, Bars)
 *   Ancient Blue #16213e   (Secondary/Glass)
 *   Copper Glow  #E67E22   (Primary Accent, CTAs)
 *   Copper Dark  #c96b15   (Hover)
 *   Tech Cyan    #00F0FF   (Data, Links, Secondary Accent)
 *   Pure White   #ffffff   (Text)
 */

:root {
    --coal: #1a1a2e;
    --coal-deep: #0f0f1e;
    --coal-light: #222240;
    --abyss: #16213e;
    --copper: #E67E22;
    --copper-dark: #c96b15;
    --copper-glow: rgba(230, 126, 34, 0.35);
    --cyan: #00F0FF;
    --cyan-glow: rgba(0, 240, 255, 0.25);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--coal-deep);
    color: #e2e8f0;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ── Circuit-board background ── */
.circuit-bg {
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 25% 25%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(230, 126, 34, 0.03) 0%, transparent 50%);
    background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
}

/* ── Glass cards ── */
.glass {
    background: rgba(22, 33, 62, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-copper {
    background: rgba(22, 33, 62, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.glass-cyan {
    background: rgba(22, 33, 62, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.15);
}

/* ── Glow effects ── */
.glow-copper {
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.15), 0 0 60px rgba(230, 126, 34, 0.05);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.12), 0 0 60px rgba(0, 240, 255, 0.04);
}

.glow-copper-text {
    text-shadow: 0 0 30px rgba(230, 126, 34, 0.4);
}

.glow-cyan-text {
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

/* ── Buttons ── */
.btn-copper {
    background: linear-gradient(135deg, #E67E22, #c96b15);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
}
.btn-copper:hover {
    box-shadow: 0 6px 30px rgba(230, 126, 34, 0.5);
    transform: translateY(-2px);
}

.btn-ghost-cyan {
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--cyan);
    transition: all 0.3s ease;
}
.btn-ghost-cyan:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    transition: all 0.3s ease;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── Divider ── */
.divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), rgba(230, 126, 34, 0.3), transparent);
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Focus states ── */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--copper) !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--coal-deep); }
::-webkit-scrollbar-thumb { background: var(--coal-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333358; }

/* ── Nav (shared) ── */
.nav-brand {
    background: var(--coal-deep);
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Assessment-specific: Likert radio buttons (dark mode) ── */
.likert-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.likert-option input[type="radio"] { display: none; }
.likert-option label {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 0.5rem;
    cursor: pointer; font-size: 0.875rem; font-weight: 500;
    transition: all 0.15s ease; user-select: none;
    color: #94a3b8; background: transparent;
}
.likert-option label:hover {
    border-color: var(--copper);
    background: rgba(230, 126, 34, 0.08);
    color: #e2e8f0;
}
.likert-option input:checked + label {
    background: var(--copper);
    color: white;
    border-color: var(--copper);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

/* ── Assessment: Step indicator (dark mode) ── */
.step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.875rem; transition: all 0.3s;
}
.step-circle.active { background: var(--copper); color: white; }
.step-circle.done { background: #10b981; color: white; }
.step-circle.pending { background: var(--coal-light); color: #6b7280; }
.step-line { height: 3px; flex: 1; transition: background 0.3s; }
.step-line.done { background: #10b981; }
.step-line.pending { background: var(--coal-light); }

/* ── Assessment: Progress bar ── */
.progress-bar-track {
    background: var(--coal-light);
    border-radius: 9999px;
    height: 0.5rem;
}
.progress-bar-fill {
    background: linear-gradient(90deg, var(--copper), var(--copper-dark));
    border-radius: 9999px;
    height: 100%;
    transition: width 0.3s ease;
}

/* ── Assessment: Scale reminder (dark mode) ── */
.scale-reminder {
    position: sticky; top: 64px; z-index: 30;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 1rem;
    font-size: 0.75rem; color: #6b7280;
}

/* ── Assessment: Info/Warning boxes ── */
.info-box {
    background: rgba(230, 126, 34, 0.08);
    border-left: 4px solid var(--copper);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ── Assessment: Result badges ── */
.badge-go {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-test {
    background: rgba(230, 126, 34, 0.15);
    color: var(--copper);
    border: 1px solid rgba(230, 126, 34, 0.3);
}
.badge-nein {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
