/* ============================================================
   GamePortal – Hauptstylesheet
   Dark Industrial Theme | Rajdhani + Inter
   ============================================================ */

/* ---------- CSS-Variablen (Dark Mode – Standard) ---------- */
:root {
    --bg-base:       #0d0f14;
    --bg-surface:    #141720;
    --bg-elevated:   #1c2030;
    --bg-card:       #1e2235;

    --border:        #2a2f45;
    --border-light:  #353c58;

    --accent:        #f59e0b;
    --accent-glow:   rgba(245,158,11,0.15);
    --accent-hover:  #fbbf24;

    --text-primary:  #e8eaf2;
    --text-secondary:#8b92b0;
    --text-muted:    #4f5470;

    --success:       #22c55e;
    --danger:        #ef4444;
    --warning:       #f59e0b;
    --info:          #3b82f6;

    --header-h:      60px;
    --footer-h:      52px;
    --radius:        8px;
    --radius-lg:     14px;

    --font-display:  'Rajdhani', sans-serif;
    --font-body:     'Inter', sans-serif;

    --shadow:        0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg:     0 8px 48px rgba(0,0,0,0.6);
}

/* ---------- Light Mode ---------- */
body.light-mode {
    --bg-base:       #f0f2f7;
    --bg-surface:    #ffffff;
    --bg-elevated:   #e8eaf0;
    --bg-card:       #ffffff;

    --border:        #d1d5e0;
    --border-light:  #b8bdd0;

    --accent:        #d97706;
    --accent-glow:   rgba(217,119,6,0.12);
    --accent-hover:  #b45309;

    --text-primary:  #111827;
    --text-secondary:#374151;
    --text-muted:    #9ca3af;

    --shadow:        0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:     0 8px 48px rgba(0,0,0,0.12);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all .2s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.theme-toggle .toggle-icon { font-size: 1rem; transition: transform .3s; }
body.light-mode .theme-toggle .toggle-icon { transform: rotate(180deg); }

/* Light mode input fix */
body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: var(--border);
}
body.light-mode .admin-sidebar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ---------- HEADER ---------- */
.gp-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { color: var(--text-primary); }
.logo-icon {
    font-size: 1.4rem;
    color: var(--accent);
    animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.logo strong { color: var(--accent); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: all .2s;
    text-decoration: none;
}
.nav-link:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-admin { color: var(--warning) !important; }
.nav-admin:hover { background: rgba(245,158,11,0.1) !important; }
.nav-logout { color: var(--danger) !important; }
.nav-logout:hover { background: rgba(239,68,68,0.1) !important; }

.nav-btn {
    background: var(--accent);
    color: var(--bg-base) !important;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all .2s;
    text-decoration: none;
}
.nav-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-user {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 8px;
    border-left: 1px solid var(--border);
    margin-left: 4px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    padding: 12px 0;
    box-shadow: var(--shadow);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--text-secondary);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    transition: all .2s;
    text-decoration: none;
}
.mobile-nav a:hover { background: var(--bg-card); color: var(--text-primary); }

/* ---------- MAIN ---------- */
.gp-main {
    flex: 1;
    margin-top: var(--header-h);
    margin-bottom: var(--footer-h);
    padding: 32px 20px;
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gp-main.full-width {
    max-width: 100%;
    padding: 0;
}

/* ---------- FOOTER ---------- */
.gp-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--footer-h);
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    z-index: 1000;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all .2s;
    text-decoration: none;
}
.footer-links a:hover { color: var(--text-secondary); background: var(--bg-elevated); }

.footer-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

/* ---------- CARDS & COMPONENTS ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.section-title span { color: var(--accent); }

/* ---------- ALERTS ---------- */
.alert {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
}
.alert-success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #86efac; }
.alert-danger   { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-warning  { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info     { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #93c5fd; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 18px; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea { resize: vertical; min-height: 100px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
    line-height: 1;
}
.btn-primary  { background: var(--accent); color: var(--bg-base); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); color: var(--bg-base); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text-primary); }
.btn-danger  { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); color: #fca5a5; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- BADGE ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.badge-new      { background: rgba(34,197,94,0.15);  color: #86efac;  border: 1px solid rgba(34,197,94,0.3); }
.badge-change   { background: rgba(59,130,246,0.15);  color: #93c5fd;  border: 1px solid rgba(59,130,246,0.3); }
.badge-fix      { background: rgba(239,68,68,0.15);   color: #fca5a5;  border: 1px solid rgba(239,68,68,0.3); }
.badge-balance  { background: rgba(168,85,247,0.15);  color: #d8b4fe;  border: 1px solid rgba(168,85,247,0.3); }
.badge-security { background: rgba(245,158,11,0.15);  color: #fcd34d;  border: 1px solid rgba(245,158,11,0.3); }
.badge-content  { background: rgba(20,184,166,0.15);  color: #5eead4;  border: 1px solid rgba(20,184,166,0.3); }
.badge-system   { background: rgba(156,163,175,0.12); color: #d1d5db;  border: 1px solid rgba(156,163,175,0.25); }

/* ---------- CHANGELOG ---------- */
.changelog-version {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    transition: background .2s;
}
.changelog-header:hover { background: var(--bg-elevated); }

.changelog-ver-number {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}
.changelog-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-left: auto;
}
.changelog-arrow {
    color: var(--text-muted);
    transition: transform .25s;
    font-size: 0.8rem;
}
.changelog-version.open .changelog-arrow { transform: rotate(180deg); }

.changelog-body {
    display: none;
    padding: 4px 20px 16px;
    border-top: 1px solid var(--border);
}
.changelog-version.open .changelog-body { display: block; }

.changelog-entry {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.changelog-entry:last-child { border-bottom: none; }

/* ---------- TABLES ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 10px 14px; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-secondary); }
tr:hover td { background: var(--bg-elevated); }

/* ---------- GAME LOBBY ---------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .25s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-glow);
    color: inherit;
}

.game-card-thumb {
    height: 140px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-base));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.game-card-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 60%, var(--accent-glow), transparent 70%);
}

.game-card-body { padding: 18px; }
.game-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.game-card-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}
.game-card-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---------- AUTH PAGES ---------- */
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h) - var(--footer-h) - 64px);
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- ADMIN ---------- */
.admin-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 0;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all .2s;
    text-decoration: none;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.admin-sidebar a.active { border-left: 2px solid var(--accent); }

.admin-content { flex: 1; min-width: 0; }

/* ---------- UTILITY ---------- */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-center  { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    :root { --header-h: 56px; --footer-h: 48px; }

    .header-nav { display: none; }
    .hamburger { display: flex; }

    .gp-main { padding: 20px 14px; margin-top: var(--header-h); margin-bottom: var(--footer-h); }

    .footer-inner { justify-content: center; flex-direction: column; gap: 6px; text-align: center; height: auto; padding: 8px 16px; }
    .gp-footer { height: auto; position: fixed; }

    .auth-box { padding: 24px 20px; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; position: static; }

    .grid-2 { grid-template-columns: 1fr; }

    .games-grid { grid-template-columns: 1fr; }

    .changelog-header { flex-wrap: wrap; gap: 8px; }
    .changelog-date { margin-left: 0; }
}

@media (max-width: 480px) {
    .auth-box { padding: 20px 16px; }
    .section-title { font-size: 1.4rem; }
    .btn { padding: 9px 16px; font-size: 0.9rem; }
}

/* ============================================================
   LANDING PAGE – Gast-Startseite
   ============================================================ */

/* Hero */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 60px;
    margin: -24px -24px 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0c12 0%, #141720 40%, #1a1030 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(245,158,11,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(99,102,241,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.hero-title .glow {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(245,158,11,0.4);
}
.hero-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

/* Feature Karten */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color .25s, transform .25s;
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}
.feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* Preview-Bild Platzhalter */
.img-placeholder {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    gap: 8px;
    overflow: hidden;
    position: relative;
}
.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.01) 10px,
        rgba(255,255,255,0.01) 20px
    );
}
.img-placeholder-icon { font-size: 2.5rem; opacity: .4; }
.img-placeholder-label { opacity: .5; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* Roadmap */
.roadmap-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.roadmap-item:last-child { border-bottom: none; }
.roadmap-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}
.roadmap-dot.done     { background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.roadmap-dot.active   { background: var(--accent);  box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.roadmap-dot.planned  { background: var(--border-light); }
.roadmap-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.roadmap-desc  { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================================
   USER DASHBOARD
   ============================================================ */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.dashboard-welcome::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.dashboard-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    overflow: hidden;
}
.dashboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-greeting { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.dashboard-sub { color: var(--text-muted); font-size: 0.88rem; margin-top: 3px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

/* Quick-Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.quick-action {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all .2s;
    font-weight: 500;
    font-size: 0.9rem;
}
.quick-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.quick-action-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ============================================================
   NEWS LAYOUT – Editorial Style
   ============================================================ */
.news-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s;
    cursor: pointer;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card--featured {
    grid-column: 1;
    grid-row: 1 / 3;
}
.news-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.news-card--featured .news-card-thumb { aspect-ratio: 4/3; }
.news-card-thumb-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    opacity: .15;
}
.news-card--featured .news-card-thumb-inner { font-size: 6rem; }
.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.news-card--featured .news-card-body { padding: 22px; }
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.news-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}
.news-card-title:hover { color: var(--accent); }
.news-card--featured .news-card-title { font-size: 1.4rem; }
.news-card:not(.news-card--featured) .news-card-title { font-size: 1rem; }
.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card--featured .news-card-excerpt {
    -webkit-line-clamp: 4;
    font-size: 0.9rem;
}
.news-card-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Grid ab 4. Beitrag */
.news-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.news-card--small .news-card-thumb { aspect-ratio: 16/7; }

/* Responsive News */
@media (max-width: 768px) {
    .hero { margin: -20px -14px 32px; min-height: 420px; }
    .features-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .news-hero { grid-template-columns: 1fr; }
    .news-card--featured { grid-column: 1; grid-row: auto; }
}
@media (max-width: 480px) {
    .hero-stats { gap: 20px; }
}

/* News-Bild */
.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
