:root {
    --bg: #141218;
    --bg-deep: #0f0d13;
    --surface: rgba(34, 31, 40, 0.82);
    --surface-strong: rgba(28, 25, 35, 0.96);
    --surface-soft: rgba(255, 255, 255, 0.035);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f3fa;
    --muted: #b5afc2;
    --muted-2: #8f879d;
    --accent: #9f6bff;
    --accent-strong: #b78cff;
    --accent-soft: rgba(159, 107, 255, 0.16);
    --accent-soft-2: rgba(183, 140, 255, 0.2);
    --steam-a: #1f8ad4;
    --steam-b: #155f97;
    --success: #6af2a2;
    --warning: #ffcf63;
    --danger: #ff8d9c;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,.03), transparent 15%, transparent 85%, rgba(255,255,255,.02));
    pointer-events: none;
    z-index: -3;
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 38%, transparent 85%);
    z-index: -2;
}

.bg-orb {
    position: fixed;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: -2;
    opacity: .45;
}

.orb-a {
    left: -10rem;
    top: -7rem;
    background: radial-gradient(circle, rgba(159,107,255,.45), rgba(159,107,255,0));
}

.orb-b {
    right: -12rem;
    top: 16rem;
    background: radial-gradient(circle, rgba(72, 50, 124, .5), rgba(72, 50, 124, 0));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.shell-landing {
    padding: 32px 0 42px;
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.shell-dashboard {
    padding: 26px 0 52px;
}

.card,
.hero-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(39, 35, 47, .9), rgba(24, 21, 30, .92));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card {
    border-radius: 32px;
    padding: clamp(26px, 3vw, 40px);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.04);
    pointer-events: none;
}

.site-header,
.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: white;
    font-weight: 900;
    letter-spacing: -.04em;
    box-shadow: 0 16px 35px rgba(159,107,255,.36);
}

.brand strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.eyebrow {
    display: block;
    color: var(--muted-2);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.header-status,
.user-chip,
.live-pill,
.section-badge,
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.status-dot,
.live-pill > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 16px rgba(106, 242, 162, .8);
    flex: 0 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
    gap: 28px;
    margin-top: 34px;
    align-items: center;
}

.hero-copy h1,
.dashboard-intro h1 {
    margin: 14px 0 18px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .95;
    letter-spacing: -.07em;
}

.hero-copy h1 span,
.dashboard-intro h1 span,
.info-card h3 span {
    color: var(--accent-strong);
}

.mini-kicker {
    margin: 0;
    color: var(--accent-strong);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    line-height: 1.72;
    max-width: 48rem;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
}

.feature-pills span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    color: #d9d5e1;
    font-size: .83rem;
    font-weight: 700;
}

.cta-row { margin-top: 30px; }

.steam-button,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, filter .18s ease, background .18s ease;
}

.steam-button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.steam-button {
    min-width: 280px;
    background: linear-gradient(135deg, var(--steam-a), var(--steam-b));
    box-shadow: 0 16px 35px rgba(24, 108, 171, .3);
    border: 1px solid rgba(255,255,255,.12);
}

.steam-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    font-size: 1.3rem;
    font-weight: 900;
}

.steam-button small,
.primary-button small {
    display: block;
    opacity: .82;
    font-size: .58rem;
    letter-spacing: .12em;
    font-weight: 800;
}

.steam-button strong,
.primary-button strong {
    display: block;
    font-size: 1.3rem;
    letter-spacing: -.03em;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 16px 35px rgba(159,107,255,.28);
}

.ghost-button {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.ghost-button.wide,
.primary-button,
.profile-actions a {
    width: 100%;
}

.security-note {
    margin: 12px 0 0;
    color: var(--muted-2);
    font-size: .85rem;
}

.alert-box {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 141, 156, .28);
    background: rgba(255, 141, 156, .08);
    color: #ffd0d7;
    font-size: .92rem;
}

.hero-preview {
    display: grid;
    gap: 18px;
}

.preview-panel {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.preview-panel h2,
.preview-panel h3,
.info-card h3,
.tile-card h2,
.profile-card h2 {
    margin: 10px 0 10px;
    letter-spacing: -.03em;
}

.preview-panel h2 { font-size: 1.8rem; }
.preview-panel h3 { font-size: 1.2rem; }
.preview-panel p,
.info-card p,
.tile-card p,
.profile-card .subline {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.preview-bars {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.preview-bars div,
.mini-stats article {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
}

.preview-bars label,
.mini-stats span,
.tile-number,
.dimmed {
    color: var(--muted-2);
    font-size: .82rem;
    font-weight: 700;
}

.preview-bars strong,
.mini-stats strong {
    color: var(--text);
    font-weight: 800;
}

.preview-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-topbar { margin-bottom: 22px; }
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 22px;
}

.card {
    border-radius: 28px;
    padding: clamp(22px, 2.4vw, 30px);
}

.dashboard-intro .lead { max-width: 52rem; }

.mini-stats {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
}

.profile-avatar {
    width: 124px;
    height: 124px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 40px rgba(0,0,0,.26);
    object-fit: cover;
}

.profile-avatar.placeholder {
    width: 124px;
    height: 124px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    font-size: 2.4rem;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(159,107,255,.3);
}

.profile-meta {
    text-align: center;
}

.profile-meta h2 { font-size: 1.8rem; }

.profile-actions {
    display: grid;
    gap: 10px;
}

.info-grid,
.future-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.notice-card.warning {
    border-color: rgba(255, 207, 99, .2);
}

.notice-card.warning .section-badge {
    color: #ffe39d;
    border-color: rgba(255, 207, 99, .24);
    background: rgba(255, 207, 99, .08);
}

.notice-card.success {
    border-color: rgba(106, 242, 162, .2);
}

.notice-card.success .section-badge {
    color: #aff7c9;
    border-color: rgba(106, 242, 162, .22);
    background: rgba(106, 242, 162, .08);
}

.inline-code {
    display: inline-block;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.08);
    color: #e7dbff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .84rem;
    overflow-wrap: anywhere;
}

.tile-card {
    position: relative;
    min-height: 190px;
}

.tile-number {
    display: inline-block;
    color: var(--accent-strong);
    font-weight: 900;
    letter-spacing: .12em;
}

.tile-card em {
    position: absolute;
    top: 22px;
    right: 22px;
    color: var(--muted-2);
    font-style: normal;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .12em;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .hero-grid,
    .dashboard-hero,
    .info-grid,
    .future-grid {
        grid-template-columns: 1fr;
    }

    .preview-stack {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 22px, 1220px); }

    .site-header,
    .dashboard-topbar,
    .topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card,
    .card {
        border-radius: 24px;
    }

    .hero-card::after { border-radius: 22px; }

    .preview-stack {
        grid-template-columns: 1fr;
    }

    .steam-button,
    .primary-button,
    .ghost-button,
    .header-status,
    .user-chip {
        width: 100%;
    }

    .brand { align-items: center; }

    .profile-avatar,
    .profile-avatar.placeholder {
        width: 104px;
        height: 104px;
        border-radius: 24px;
    }
}

/* v3: Rollen- und Datenbankstatus */
.admin-tag {
    color: #e4d3ff;
    border-color: rgba(183, 140, 255, .32);
    background: rgba(159, 107, 255, .13);
    box-shadow: inset 0 0 22px rgba(159, 107, 255, .06);
}

.admin-card {
    border-color: rgba(183, 140, 255, .2);
}

.admin-card .section-badge {
    color: #e4d3ff;
    border-color: rgba(183, 140, 255, .24);
    background: rgba(159, 107, 255, .09);
}

.admin-button {
    border-color: rgba(183, 140, 255, .24);
    background: rgba(159, 107, 255, .08);
}

.info-card code {
    color: #e7dbff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .9em;
}

.info-card strong {
    color: var(--text);
}
