/* =========================================================================
   U10 NRW Superbowl – Stylesheet (mobile-first)
   ========================================================================= */
:root {
    --purple: #471A70;
    --purple-light: #6a2ca0;
    --purple-dark: #2c1147;
    --purple-darker: #1c0a30;
    --green: #1f9e57;
    --red: #e3322f;
    --gold: #f3b53f;
    --ink: #f4eefb;
    --muted: #b9a8d0;
    --card: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --radius: 14px;
    --maxw: 1080px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --display: "Anton", "Arial Narrow", system-ui, sans-serif;
    --head: "Oswald", "Arial Narrow", system-ui, sans-serif;
    --body: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    line-height: 1.6;
    background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 55%, var(--purple-darker) 100%) no-repeat;
    background-size: 100% 100%;
    min-height: 100vh;
    /* Verhindert horizontales Scrollen durch leicht gedrehte Bilder / Vollbreite-
       Elemente. "clip" (statt "hidden") lässt sticky-Header & Tabellen-Scroll heil. */
    overflow-x: clip;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

.skip-link {
    position: absolute; left: 0; top: -48px; background: var(--gold);
    color: #000; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 200;
    transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* --- Header --------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(28, 10, 48, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--card-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.brand-text { font-family: var(--head); font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.brand-text strong { color: var(--gold); }

.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 9px;
}
.nav-toggle span { height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav { display: none; }
.main-nav.open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a {
    display: block; padding: 12px 6px; color: var(--ink); font-weight: 500;
    border-bottom: 1px solid var(--card-border);
}
.main-nav a.active { color: var(--gold); }
.main-nav .sub { padding-left: 14px; }
.main-nav .sub a { color: var(--muted); font-size: .95rem; }

/* --- Sections / common --------------------------------------------------- */
.section { padding: 34px 0; }
.section-title {
    font-family: var(--head); font-weight: 700;
    font-size: 1.7rem; text-transform: uppercase; letter-spacing: .03em;
    margin: 0 0 18px; position: relative; padding-bottom: 10px;
}
.section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--green)); border-radius: 4px;
}
.lead { font-size: 1.1rem; color: var(--ink); margin: 0 0 18px; max-width: 70ch; }
.muted { color: var(--muted); }
.card {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.prose { max-width: 72ch; }
.prose h3 { margin: 1.2em 0 .4em; color: var(--gold); }
.prose ul { padding-left: 1.2em; }
.prose a { text-decoration: underline; }

.btn {
    display: inline-block; padding: 11px 18px; border-radius: 999px; font-weight: 600;
    background: rgba(255,255,255,.1); color: var(--ink); border: 1px solid var(--card-border);
    cursor: pointer;
}
.btn:hover { text-decoration: none; background: rgba(255,255,255,.18); }
.btn-primary { background: linear-gradient(90deg, var(--red), #b8211f); border: 0; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; height: 54vh; min-height: 490px; max-height: 700px; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
    background-size: cover; background-position: center center; opacity: 0;
    transition: opacity .8s ease; display: flex; align-items: center;
}
/* Lila-Abdunklung über dem Bild */
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(71,26,112,.55) 0%, rgba(44,17,71,.72) 55%, rgba(28,10,48,.9) 100%);
}
.hero-slide.is-active { opacity: 1; }
.hero-content { text-align: center; position: relative; z-index: 1; }
.hero-headline {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(2.4rem, 8vw, 4.6rem); margin: 0 0 .25em; text-transform: uppercase;
    letter-spacing: .02em; line-height: .98; text-shadow: 0 3px 16px rgba(0,0,0,.7);
}
.hero-text { font-size: clamp(.95rem, 2.6vw, 1.2rem); max-width: 60ch; margin: 0 auto; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dot.is-active { background: var(--gold); }

.archive-badge {
    display: inline-block; background: var(--gold); color: #000; font-weight: 700;
    padding: 3px 12px; border-radius: 999px; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em;
}

/* --- Tabellen ------------------------------------------------------------- */
.groups-grid { display: grid; gap: 18px; }
.group-name { margin: 0 0 12px; font-size: 1.2rem; color: var(--gold); }
.table-scroll { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-size: .92rem; }
.standings th, .standings td { padding: 8px 6px; text-align: center; white-space: nowrap; }
.standings thead th { color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--card-border); }
.standings tbody tr { border-bottom: 1px solid var(--card-border); }
.standings .c-rank { width: 1.6em; color: var(--muted); }
.standings .c-team { text-align: left; font-weight: 600; white-space: normal; }
.standings .c-pf { color: var(--muted); }
.standings .c-pts strong { color: var(--gold); }

.fixtures { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--card-border); display: grid; gap: 6px; }
.fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; font-size: .9rem; }
.fixture .fx-home { text-align: right; }
.fixture .fx-away { text-align: left; }
.fixture .fx-score { font-weight: 700; min-width: 56px; text-align: center; color: var(--muted); }
.fixture.played .fx-score { color: var(--gold); }
.fixture .vs { color: var(--muted); font-weight: 400; font-size: .8rem; }

/* --- Playoffs / Bracket --------------------------------------------------- */
.bracket { display: grid; gap: 14px; grid-template-columns: 1fr; }
.po-match { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 12px 14px; }
.po-match.is-final { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.po-label { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.po-match.is-final .po-label { color: var(--gold); }
.po-teams { display: grid; gap: 4px; }
.po-team { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.18); }
.po-team.win { background: rgba(31,158,87,.25); }
.po-team.win .po-name { font-weight: 700; }
.po-team.tbd .po-name { color: var(--muted); font-style: italic; }
.po-score { font-weight: 700; min-width: 1.4em; text-align: center; }

/* --- Champion ------------------------------------------------------------- */
.champion-banner {
    display: flex; align-items: center; gap: 18px; padding: 20px 22px;
    background: linear-gradient(90deg, rgba(243,181,63,.22), rgba(243,181,63,.05));
    border: 1px solid var(--gold); border-radius: var(--radius);
}
.champion-trophy { font-size: 2.6rem; line-height: 1; }
.champion-label { margin: 0; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-size: .85rem; }
.champion-name { margin: 0; font-size: 1.8rem; font-weight: 800; }

.champions-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.champion-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.champion-row .champion-trophy { font-size: 1.6rem; }
.champion-row .champion-year { font-weight: 800; color: var(--gold); min-width: 3.5em; }
.champion-row .champion-team { font-size: 1.1rem; }

/* --- Sponsoren ------------------------------------------------------------ */
.sponsors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sponsor-card { display: flex; align-items: center; justify-content: center; min-height: 110px; background: rgba(255,255,255,.92); }
.sponsor-card img { max-height: 80px; width: auto; }
.sponsor-card .sponsor-name { color: var(--purple-dark); font-weight: 700; text-align: center; }

/* --- Austragungsort ------------------------------------------------------- */
.location-grid { display: grid; gap: 18px; }
.venue-name { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin: 0 0 6px; }
.location-info address { font-style: normal; margin-bottom: 14px; }
.location-map img { border-radius: var(--radius); border: 1px solid var(--card-border); }

/* --- Formulare ------------------------------------------------------------ */
.form .field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; }
.form input, .form select, .form textarea {
    width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--card-border);
    background: rgba(0,0,0,.25); color: var(--ink); font: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form .err { color: #ffb3b1; font-size: .88rem; }
.form .hp { position: absolute; left: -9999px; }
.note { margin-bottom: 18px; }

.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; border: 1px solid var(--card-border); }
.flash-success { background: rgba(31,158,87,.2); border-color: var(--green); }
.flash-error { background: rgba(227,50,47,.2); border-color: var(--red); }
.flash-info { background: rgba(243,181,63,.15); border-color: var(--gold); }

/* --- Footer: lila Swoosh trennt direkt, Logo mittig drauf ----------------- */
/* Weicher Verlauf statt harter Kante -> kein Farbversatz zwischen Content & Footer */
.site-footer {
    margin-top: 16px; padding: 0 0 18px; border-top: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 62%);
}
.footer-swoosh {
    margin: 0;
    background: url("../img/swoosh-lila.webp") center / 100% auto no-repeat;
    display: flex; align-items: center; justify-content: center;
    min-height: 170px; overflow-x: clip;
}
.footer-swoosh-logo { width: 158px; max-width: 56%; filter: drop-shadow(0 8px 22px rgba(0,0,0,.55)); }
.footer-credit { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .04em; margin: 20px 0 0; }
.footer-credit a { color: var(--gold); font-weight: 600; }

.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-top: 6px; }
.footer-title { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.footer-sub { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); }
.footer-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.footer-badge-label { font-family: var(--head); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-badge img { height: 30px; width: auto; background: #fff; padding: 4px 7px; border-radius: 6px; }

/* =========================================================================
   Desktop / Tablet
   ========================================================================= */
@media (min-width: 760px) {
    .nav-toggle { display: none; }
    .main-nav { display: block !important; }
    .main-nav > ul { display: flex; align-items: center; gap: 4px; }
    .main-nav > ul > li > a { border: 0; padding: 10px 12px; border-radius: 8px; }
    .main-nav > ul > li > a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
    .main-nav .has-sub { position: relative; }
    .main-nav .sub {
        display: none; position: absolute; top: 100%; right: 0; min-width: 180px; padding: 6px;
        background: var(--purple-dark); border: 1px solid var(--card-border); border-radius: 10px; box-shadow: var(--shadow);
    }
    .main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: block; }
    .main-nav .sub a { padding: 8px 10px; border-radius: 6px; }
    .main-nav .sub a:hover { background: rgba(255,255,255,.1); text-decoration: none; }

    .groups-grid { grid-template-columns: 1fr 1fr; }
    .bracket { grid-template-columns: repeat(2, 1fr); }
    .po-match.is-final { grid-column: 1 / -1; }
    .sponsors-grid { grid-template-columns: repeat(4, 1fr); }
    .location-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
    .hero { height: 50vh; min-height: 550px; }
}

/* =========================================================================
   Schrift-Feinschliff
   ========================================================================= */
.group-name { font-family: var(--head); font-weight: 700; }
.champion-name { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.po-label { font-family: var(--head); }
h1, h2, h3 { font-family: var(--head); }

/* =========================================================================
   Swoosh-Bänder (Vollbreite, hinter Überschriften/Boxen)
   ========================================================================= */
.swoosh-section { position: relative; overflow-x: clip; }

/* Swoosh hinter einer linksbündigen Überschrift, randlos über die ganze Breite */
.swoosh-head { position: relative; display: inline-block; z-index: 0; }
.swoosh-head::before {
    content: ""; position: absolute; z-index: -1;
    top: 50%; transform: translateY(-50%);
    height: clamp(2.6rem, 5vw, 5rem);
    background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
}
.swoosh-head.swoosh-lila::before  { background-image: url("../img/swoosh-lila.webp"); }
.swoosh-head.swoosh-rot::before   { background-image: url("../img/swoosh-rot.webp"); }
.swoosh-head.swoosh-gruen::before { background-image: url("../img/swoosh-gruen.webp"); }
.swoosh-head.swoosh-left::before  { left: calc(-1 * (max((100vw - var(--maxw)) / 2, 0px) + 18px)); width: 100vw; }

/* =========================================================================
   Intro: Logo links, Text rechts – lila Swoosh-Band zentral dahinter
   ========================================================================= */
.intro-band { background: url("../img/swoosh-lila.webp") center / 100% auto no-repeat; padding: 30px 0; }
.intro-split { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
.intro-logo { text-align: center; }
.intro-logo img { max-width: 320px; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); }

/* =========================================================================
   Split: Text + schräges Bild (Spielsystem)
   ========================================================================= */
.split { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
/* Mobil: Bild ÜBER den Text (Desktop wieder rechts daneben, siehe Media-Query) */
.split-media { order: -1; }
.split-media img {
    width: 100%; object-fit: cover; border-radius: 14px;
    transform: rotate(-2deg);
    border: 6px solid rgba(255,255,255,.06);
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.split-media a:hover img { transform: rotate(0); box-shadow: 0 24px 52px rgba(0,0,0,.6); }

/* =========================================================================
   Field-/Zeit-Anzeige
   ========================================================================= */
.field-tag {
    font-family: var(--head); font-size: .72rem; vertical-align: middle;
    background: rgba(255,255,255,.12); color: var(--ink);
    padding: 2px 9px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase;
}
.po-meta { font-family: var(--head); font-size: .72rem; color: var(--gold); letter-spacing: .04em; }

/* Fixtures mit Kickoff-Zeit */
.fixture { display: grid !important; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; }
.fx-time { font-family: var(--head); font-size: .82rem; color: var(--gold); text-align: left; }
.fx-game { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }

/* =========================================================================
   Gruppenphase: grünes Swoosh-Band zentral dahinter
   ========================================================================= */
.group-band { background: url("../img/swoosh-gruen.webp") center / 100% auto no-repeat; padding: 28px 0; }
/* Gruppen-Karten deckend, damit der Swoosh nur im Spalt dazwischen sichtbar ist */
.group-card { background: var(--purple-dark); border-color: rgba(255,255,255,.14); }

/* =========================================================================
   Impressionen-Galerie (8 Bilder, teils schräg, rotes Swoosh-Band)
   ========================================================================= */
.gallery-band { background: url("../img/swoosh-rot.webp") center / 100% auto no-repeat; padding: 34px 0; margin-top: 6px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-item {
    display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3;
    background: var(--purple-darker); box-shadow: 0 14px 30px rgba(0,0,0,.45); cursor: zoom-in;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.gallery-item:nth-child(4n+1) { transform: rotate(-1.8deg); }
.gallery-item:nth-child(4n+2) { transform: rotate(1.4deg); }
.gallery-item:nth-child(4n+3) { transform: rotate(2.2deg); }
.gallery-item:nth-child(4n+4) { transform: rotate(-1.1deg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover { transform: rotate(0) scale(1.03); box-shadow: 0 22px 46px rgba(0,0,0,.6); }
.gallery-item:hover img { transform: scale(1.05); }

/* =========================================================================
   Lightbox
   ========================================================================= */
.lb-overlay {
    position: fixed; inset: 0; z-index: 1000; display: none;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(10,4,20,.92); backdrop-filter: blur(4px);
}
.lb-overlay.open { display: flex; }
.lb-overlay img { max-width: 95vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-close {
    position: absolute; top: 16px; right: 22px; width: 48px; height: 48px;
    background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%;
    font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.25); }

/* =========================================================================
   Responsive für neue Komponenten
   ========================================================================= */
@media (min-width: 760px) {
    .intro-split { grid-template-columns: 360px 1fr; gap: 44px; }
    .intro-logo img { max-width: 360px; }
    .split { grid-template-columns: 1fr 1fr; gap: 40px; }
    .split-media { order: 0; }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
