/* ============================================================
   LifeInvader Dashboard — Design-System
   ============================================================ */

:root {
    /* Hintergründe */
    --bg-primary:   #0a0a0a;
    --bg-secondary: #141414;
    --bg-card:      #1a1a1a;
    --bg-elevated:  #222222;

    /* Borders */
    --border:       #2a2a2a;
    --border-light: #3a3a3a;

    /* Brand-Rot */
    --li-red:        #e10600;
    --li-red-bright: #ff1a1a;
    --li-red-dim:    #a00400;
    --li-red-glow:   rgba(225, 6, 0, 0.45);

    /* Text */
    --text-primary:   #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted:     #6b6b6b;

    /* Status */
    --success: #22c55e;
    --warning: #eab308;
    --danger:  #ef4444;
    --info:    #3b82f6;

    /* Layout */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px var(--li-red-glow);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--li-red-bright);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #ffffff;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   LifeInvader-Logo
   ------------------------------------------------------------ */
.li-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    user-select: none;
}

.li-logo__mark {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px var(--li-red-glow));
}

.li-logo__text {
    font-size: 22px;
    color: var(--text-primary);
}

.li-logo__text span {
    color: var(--li-red-bright);
}

/* Großes Vollbild-Logo (Login-Splash etc.) */
.li-logo-full {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 24px var(--li-red-glow));
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.18s ease;
    background: transparent;
    color: var(--text-primary);
}

.btn-primary {
    background: var(--li-red);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 6, 0, 0.3);
}

.btn-primary:hover {
    background: var(--li-red-bright);
    box-shadow: 0 6px 24px var(--li-red-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--li-red);
    color: #ffffff;
}

.btn--full {
    width: 100%;
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s ease;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--li-red);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.15);
}

.field input::placeholder {
    color: var(--text-muted);
}

/* ------------------------------------------------------------
   Alerts
   ------------------------------------------------------------ */
.alert {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.alert-error {
    color: #ffb4b4;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

.alert-info {
    color: #b4d4ff;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.alert-success {
    color: #bfffd5;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ------------------------------------------------------------
   Utility
   ------------------------------------------------------------ */
.text-muted   { color: var(--text-muted); }
.text-red     { color: var(--li-red-bright); }
.font-mono    { font-family: var(--font-mono); }
.uppercase    { text-transform: uppercase; letter-spacing: 0.06em; }
