:root {
    --bg-dark: #050509;
    --bg-card: #14141d;
    --accent-gold: #d4af37;
    --accent-red: #b71c1c;
    --text-muted: rgba(255,255,255,0.65);
}

/* --------------------------------------------------
   GLOBAL / LAYOUT BASIS (Sticky Footer Fix)
-------------------------------------------------- */
html,
body {
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: radial-gradient(circle at top, #1f1f2e 0, #050509 45%, #020208 100%);
    color: #f5f5f5;
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

small {
    color: var(--text-muted);
}

/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */
.navbar {
    background: rgba(5, 5, 12, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(6px);
}

.navbar .nav-link {
    font-size: .85rem;
    opacity: .85;
}

.navbar .nav-link:hover {
    opacity: 1;
}

.brand-badge {
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid rgba(212,175,55,0.5);
    padding: .25rem .6rem;
    border-radius: 999px;
    color: var(--accent-gold);
}

/* --------------------------------------------------
   MAIN OFFSET (wegen fixed Navbar)
-------------------------------------------------- */
main {
    padding-top: 90px;
    flex: 1 0 auto; /* wichtig für Sticky Footer */
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
    padding: 5rem 0 4rem;
}

.hero-card {
    background: linear-gradient(145deg, rgba(25,25,35,0.96), rgba(10,10,18,0.98));
    border-radius: 1.7rem;
    border: 1px solid rgba(212,175,55,0.35);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.75),
        inset 0 0 60px rgba(212,175,55,0.06);
    position: relative;
    overflow: hidden;
}

.hero-card::before,
.hero-card::after {
    pointer-events: none;
}

.hero-card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -25%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 70%);
    transform: rotate(25deg);
    filter: blur(55px);
    opacity: .45;
}

.hero-card::after {
    content: "";
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%);
    filter: blur(40px);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: .05em;
    text-shadow:
        0 0 14px rgba(212,175,55,0.25),
        0 0 30px rgba(212,175,55,0.15);
}

.hero-sub {
    font-size: 1.05rem;
    opacity: .9;
    max-width: 520px;
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */
section {
    margin-bottom: 4rem;
}

.section-card {
    background: rgba(14,14,22,0.93);
    border-radius: 1.2rem;
    border: 1px solid rgba(120,120,160,0.35);
    padding: 1.4rem;
}

.section-title {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* --------------------------------------------------
   PLAYER
-------------------------------------------------- */
.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,0.5);
    background: rgba(255,255,255,0.05);
}

/* --------------------------------------------------
   MATCHES
-------------------------------------------------- */
.match-entry {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: .9rem;
    padding: .9rem 1.1rem;
    transition: background .2s ease, border-color .2s ease;
}

.match-entry:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}

.match-badge {
    font-size: .65rem;
    padding: .3rem .55rem;
    font-weight: 600;
    letter-spacing: .05em;
}

.score-box {
    font-size: .85rem;
    font-weight: 600;
    padding: .15rem .45rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    min-width: 48px;
    text-align: center;
}

/* --------------------------------------------------
   FOOTER (Sticky & sauber)
-------------------------------------------------- */
footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(212,175,55,0.15);
    opacity: .85;
}

/* --------------------------------------------------
   MOBILE TUNING
-------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-sub {
        font-size: .95rem;
    }

    section {
        margin-bottom: 3rem;
    }
}
