/* TFTEsport – Watchparty-Design. Farbpalette aus Janna (Maskottchen): Creme als Grund, Grün und Gold als Marke.
   Grün = ihr Rock (#273a2d / #295c3a), Gold = ihre Akzente (#f1be29 / #bf8f19). Helles Frischgrün für ruhige Flächen. */

:root {
  /* Flächen */
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --surface-2: #f1ede3;
  --line: #e6dfd0;
  --line-strong: #d6cdb9;

  /* Text */
  --ink: #1d2b22;
  --ink-soft: #45544a;
  --muted: #76807a;

  /* Marke: Grün */
  --green: #295c3a;
  --green-deep: #213d2c;
  --green-hover: #32704a;
  --green-bright: #2eac59;       /* nur für kleine Akzente (Punkte, „offen“) */

  /* Marke: Gold */
  --gold: #f1be29;               /* Flächen, Striche, Sterne – Text darauf in Dunkelgrün */
  --gold-deep: #85600f;          /* Gold als Text auf hellem Grund (Kontrast ≥ 4,5 : 1) */
  --gold-soft: #fcf1cc;
  --gold-line: #ecd27f;

  /* Ruhige Flächen: helles, leichtes Grün */
  --sage: #e9f2e5;
  --sage-line: #d5e5cf;
  --mint: #d8ecd4;
  --fresh: linear-gradient(135deg, #f3f8f0 0%, #dcedd7 100%);
  --sky: #cfe0ef;
  --butter: #f7dc8a;
  --lilac: #efe9f7;
  --lilac-line: #ddd1f0;
  --twitch: #7c3aed;

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 43, 37, .05), 0 10px 28px -16px rgba(28, 43, 37, .28);
  --shadow-hover: 0 2px 4px rgba(28, 43, 37, .06), 0 18px 36px -18px rgba(28, 43, 37, .36);

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --crown-cut: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }   /* Header bleibt oben stehen */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
code { font: 500 .9em/1 ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; color: var(--green-deep); font-weight: 800; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.i { width: 20px; height: 20px; flex: none; }
/* Inhalt höchstens 1240 px breit – links und rechts bleibt auf großen Bildschirmen Platz für Werbeflächen */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
main.wrap { padding-bottom: 56px; }

/* ---------- Knöpfe und Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 12px; border: 0;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn .i { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover .i { transform: translateX(2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px -10px rgba(22, 58, 48, .9); }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { background: var(--surface); color: var(--green-deep); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); }
.btn-twitch { background: var(--twitch); color: #fff; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn[aria-disabled="true"]:hover .i { transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: transparent; color: var(--green-deep); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .i { width: 24px; height: 24px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.link-arrow .i { color: var(--gold-deep); }
.link-arrow:hover { color: var(--green-deep); }
.link-arrow .i { width: 17px; height: 17px; transition: transform .15s; }
.link-arrow:hover .i { transform: translateX(3px); }
.link-arrow.is-twitch { color: var(--twitch); }

/* ---------- Etiketten ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px;
  background: var(--gold-soft); color: #6b4c00;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tag-offiziell { background: var(--sky); color: #1f4664; }
.tag-turniere, .tag-regional { background: var(--butter); color: #6b4c00; }
.tag-szene, .tag-streamer { background: var(--lilac); color: #5b2bb0; }
.tag-community, .tag-orientierung { background: var(--mint); color: #22573f; }
.tag-solid { background: var(--gold); color: var(--green-deep); }

/* ---------- Header: dunkelgrüne Leiste wie dota2news.com – Menü · Janna-Kopf + Schriftzug · Navigation · Suche ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; display: block; min-height: 64px; color: #fff;
  background: linear-gradient(90deg, #1b3325 0%, var(--green-deep) 40%, #2b5d3c 100%);
  box-shadow: 0 6px 18px -12px rgba(16, 36, 24, .7);
}
.header-bar { display: flex; align-items: stretch; height: 64px; }
.hb-cell {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 0; background: none; cursor: pointer;
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hb-cell:hover { background: rgba(255, 255, 255, .06); }
.hb-cell .i { width: 22px; height: 22px; }
.burger { margin-left: -18px; border-right: 1px solid rgba(255, 255, 255, .12); }
.hb-search { margin-right: -18px; border-left: 1px solid rgba(255, 255, 255, .12); }

.brand { display: inline-flex; align-items: center; gap: 10px; padding-left: 16px; text-decoration: none; color: #fff; }
.brand-head { width: auto; height: 48px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.brand-word { font-size: 27px; font-weight: 800; font-style: italic; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.brand-word em { color: var(--gold); font-style: inherit; margin-left: .18em; }
.crown { width: 44px; height: 37px; color: var(--green-deep); }

.mainnav { display: flex; align-items: center; margin: 0 6px 0 auto; }
.mainnav > a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 64px; padding: 0 15px; white-space: nowrap;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .82); text-decoration: none;
}
.mainnav > a + a::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: rgba(255, 255, 255, .16); }
.mainnav > a:hover { color: #fff; }
.mainnav > a.active { color: #fff; }
.mainnav > a.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.mainnav .i { width: 17px; height: 17px; color: var(--gold); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 3px rgba(46, 172, 89, .25); }

/* ---------- Drawer (mobil) ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(22, 58, 48, .35); opacity: 0; transition: opacity .2s; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(330px, 88vw); padding: 16px 18px 24px;
  background: var(--bg); transform: translateX(-100%); transition: transform .22s ease; display: flex; flex-direction: column; gap: 12px; overflow-y: auto;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin: -16px -18px 4px; padding: 8px 8px 8px 2px; background: var(--green-deep); }
.drawer-head .brand-word { font-size: 23px; }
.drawer-head .brand-head { height: 42px; }
.drawer-head .icon-btn { color: #fff; }
.drawer-head .icon-btn:hover { background: rgba(255, 255, 255, .08); }
.drawer nav + .drawer-label { margin-top: 18px; }
.drawer nav.drawer-more { margin-top: 0; }
.drawer nav.drawer-more a { font-size: 16px; font-weight: 600; padding: 9px 12px; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; }
.drawer > .btn-block { margin-top: auto; }
.drawer nav a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--green-deep); }
.drawer nav a:hover, .drawer nav a[aria-current] { background: var(--surface-2); }
.drawer nav .i { color: var(--gold-deep); }
.drawer-label { margin: 14px 12px 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
body.drawer-open .drawer-wrap { pointer-events: auto; }
body.drawer-open .drawer-backdrop { opacity: 1; }
body.drawer-open .drawer { transform: none; }

/* ---------- Suche ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 70; display: none; padding: 10vh 16px 16px;
  background: rgba(22, 58, 48, .4); backdrop-filter: blur(3px);
}
body.search-open .search-overlay { display: block; }
.search-box { max-width: 640px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-hover); overflow: hidden; }
.search-input { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.search-input > .i { color: var(--muted); }
.search-input input { flex: 1; border: 0; background: none; font-size: 19px; padding: 10px 0; outline: none; }
.search-results { padding: 12px; max-height: 60vh; overflow-y: auto; }
.search-results .empty { border: 0; }
.search-hint { padding: 4px 8px 8px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; text-decoration: none; }
.search-item:hover { background: var(--surface-2); }

/* ---------- Seitenkopf ---------- */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
/* ---------- Janna (Maskottchen) ----------
   Grundmuster: Box mit position: relative, Janna absolut unten am linken oder rechten Rand (.at-l / .at-r).
   Sie ist höher als die Box und ragt oben heraus, dazu seitlich ein Stück über den Rand – nie mittig.
   Die Oberkörper-Bilder („-oben“) enden mit einer geraden Kante auf der Unterkante der Box.
   --jr / --jl: wie weit die Pose seitlich hinaus darf, ohne dass die Schnittkante sichtbar wird (gemessen pro Bild).
   --out: Obergrenze in px, abhängig vom Platz neben der Box. */
.janna { display: block; width: auto; max-width: none; pointer-events: none; user-select: none; }
.janna.at-r { position: absolute; bottom: 0; right: 0; transform: translateX(min(var(--jr, 10%), var(--out, var(--edge)))); }
.janna.at-l { position: absolute; bottom: 0; left: 0; transform: translateX(calc(-1 * min(var(--jl, 10%), var(--out, var(--edge))))); }
.janna-winken { --jr: 34%; --jl: 15%; }
.janna-caster { --jr: 17%; --jl: 17%; }
.janna-daumen { --jr: 24%; --jl: 20%; }
.janna-fan { --jr: 20%; --jl: 36%; }
.janna-krone { --jr: 29%; --jl: 20%; }
.janna-pokal { --jr: 20%; --jl: 30%; }
.janna-staunen { --jr: 26%; --jl: 16%; }
.janna-tablet { --jr: 25%; --jl: 20%; }
.janna-traurig { --jr: 11%; --jl: 19%; }
.janna-ueberlegen { --jr: 8%; --jl: 28%; }
:root { --edge: 40px; }   /* so weit darf Janna seitlich hinaus (bleibt vor den Werbeflächen) */
body { overflow-x: clip; }

/* Startseite: Begrüßung – rechts eine hellgrüne Fläche mit Kennzahlen, Janna am rechten Rand */
.hero-box {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px;
  margin-top: 70px; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-text { display: grid; gap: 14px; align-content: center; justify-items: start; padding: 22px 12px 22px 30px; }
.hero-text h1 { font-size: clamp(34px, 3vw, 52px); letter-spacing: -.025em; line-height: 1.02; }
.hero-text .lead { font-size: 19px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 18px; border-radius: 14px; }
.hero-stage {
  position: relative; display: grid; align-content: center; gap: 16px; min-height: 270px;
  padding: 24px 50% 24px 28px; border-radius: 18px; background: var(--fresh); --out: calc(var(--edge) + 14px);
}
.hero-stage .janna { height: calc(100% + 64px); max-height: 380px; }
.hero-stats { display: grid; gap: 18px; }
.hstat { display: grid; gap: 2px; color: var(--ink-soft); text-decoration: none; line-height: 1.25; }
.hstat b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--green-deep); }
.hstat span { font-size: 15px; font-weight: 600; }
.hstat.is-date b { font-size: 22px; }
a.hstat:hover span { color: var(--green); text-decoration: underline; }

/* Startseite: Raster unter der Begrüßung */
.home-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 28px; margin-top: 30px; align-items: start; }
.home-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; min-width: 0; }
.home-side { display: grid; gap: 24px; min-width: 0; padding-top: 54px; }
.block-title { font-size: clamp(26px, 2.2vw, 34px); margin-bottom: 14px; }

/* Das nächste große Match: grüne Bühne, nach rechts heller, Janna mit Pokal am rechten Rand */
.feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 250px;
  border-radius: var(--radius-lg); color: #fff; box-shadow: var(--shadow);
  background:
    radial-gradient(45% 70% at 86% 40%, rgba(241, 190, 41, .28), transparent 70%),
    linear-gradient(100deg, var(--green-deep) 0%, var(--green) 55%, #4d8a5b 100%);
}
.feature-text { display: grid; gap: 14px; align-content: center; justify-items: start; padding: 26px 30px; min-width: 0; }
.feature-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; --crown-cut: var(--gold);
  background: var(--gold); color: var(--green-deep); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.feature-tag .crown { width: 22px; height: 18px; }
.feature h3 { font-size: clamp(28px, 2.6vw, 42px); color: #fff; }
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.feature-date { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 19px; font-weight: 700; }
.pill-dark { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); font-size: 15px; font-weight: 700; }
.pill-dark .i { width: 16px; height: 16px; }
.feature-rel { color: #d7e8dc; font-size: 16px; }
.feature-rel b { color: var(--gold); }
.btn-cream { background: var(--surface); color: var(--green-deep); }
.btn-cream:hover { background: var(--gold-soft); }
.feature-stage { position: relative; --out: 16px; }   /* rechts daneben liegt die Seitenspalte */
.feature-stage .janna { height: calc(100% + 56px); max-height: 330px; }

/* Finde dein nächstes Turnier */
.finder-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.finder-bar .chip .i { width: 17px; height: 17px; }
.finder-list { display: grid; padding: 6px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.finder-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.finder-row:first-child { border-top: 0; }
.finder-row:hover strong { color: var(--green); }
.finder-row:hover .row-go .i { transform: translateX(3px); }
.row-go .i { transition: transform .15s; }
.date-badge { display: grid; justify-items: center; min-width: 62px; padding: 8px 6px; border-radius: 12px; background: var(--sage); line-height: 1; }
.date-badge b { font-size: 26px; font-weight: 800; color: var(--green-deep); }
.date-badge small { margin-top: 4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--green-deep); }
.level-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green); }
.level-ic .i { width: 24px; height: 24px; }
.level-ic .crown { width: 30px; height: 25px; color: #c9961a; }
.level-ic.is-offiziell { background: var(--gold-soft); --crown-cut: var(--gold-soft); }
.level-ic.is-streamer { background: var(--lilac); color: var(--twitch); }
.level-ic.is-eigener { background: var(--gold-soft); color: var(--gold-deep); }
.finder-main { display: grid; gap: 2px; min-width: 0; }
.finder-main strong { font-size: 20px; line-height: 1.2; color: var(--green-deep); }
.finder-main small { font-size: 15px; font-weight: 600; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-soft); }
.status-pill .i { width: 17px; height: 17px; }
.status-pill.is-open { background: var(--mint); color: #1d5e33; }
.status-pill.is-none { background: var(--gold-soft); color: #6b4c00; }
.status-pill.is-closed { background: var(--sage); color: var(--green-deep); }
.status-pill.is-soon, .status-pill.is-unknown { background: var(--gold-soft); color: #6b4c00; }
.finder-more { margin-top: 12px; }
.finder-box .cal { box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.finder-box .cal-head h3 { font-size: 22px; }
.finder-box .empty.has-janna { margin-top: 40px; }

/* Seitenspalte und Karten mit Janna */
.side-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-card h2 { font-size: 26px; }
.side-card p { color: var(--ink-soft); }
.side-card .btn { justify-self: start; }
.side-card .panel-head h2 { font-size: 24px; }
/* Streams: hellgrüner Kopf mit Titel links, Janna rechts am Rand */
.stream-teaser { padding: 0 0 22px; }
.stream-teaser > p, .stream-teaser > .btn { margin: 0 22px; }
.side-stage {
  position: relative; display: flex; align-items: flex-end; min-height: 170px; padding: 22px 168px 20px 22px; margin-bottom: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--fresh);
}
.side-stage .janna { height: calc(100% + 50px); max-height: 240px; }
/* Welcher Cup passt zu dir? Janna überlegt am linken Rand */
.cup-quiz {
  margin-top: 20px; padding: 28px 30px 28px 250px; min-height: 200px;
  background: linear-gradient(90deg, #dcedd7 0%, var(--surface) 42%);
}
.cup-quiz-text { display: grid; gap: 10px; align-content: start; }
.cup-quiz-text p { max-width: 560px; }
.cup-quiz > .janna { height: calc(100% + 56px); max-height: 300px; }
.quiz-links { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.quiz-links a {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 1px;
}
.quiz-links a:hover { color: var(--green-deep); border-bottom-color: var(--green); }
.quiz-links .i { width: 16px; height: 16px; }

/* Rund um TFT */
.round-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 40px; padding: 16px 28px;
  border-radius: var(--radius-lg); background: var(--sage); border: 1px solid var(--sage-line);
}
.round-title { display: inline-flex; align-items: center; gap: 12px; padding-right: 26px; font-size: 24px; font-weight: 800; color: var(--green-deep); --crown-cut: var(--sage); }
.round-title .crown { width: 36px; height: 30px; color: var(--green); }
.round-band a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 26px; border-left: 1.5px solid var(--sage-line); font-size: 18px; font-weight: 600; color: var(--green-deep); text-decoration: none; }
.round-band a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.round-band a .i { width: 22px; height: 22px; color: var(--gold-deep); }

/* Seitenkopf als Box: rechts hellgrün, Janna am rechten Rand */
.page-head.has-janna {
  position: relative; margin: 64px 0 24px; padding: 30px 270px 30px 34px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(100deg, var(--surface) 52%, #dcedd7 100%);
}
.crumbs + .page-head.has-janna { margin-top: 56px; }
.head-janna { height: calc(100% + 48px); max-height: 300px; }

.accent {
  font-style: italic; color: var(--gold);
  background: linear-gradient(100deg, #e0a91c, #b9860f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .08em;
}
.lead { font-size: 21px; color: var(--ink-soft); max-width: 720px; }

.page-head { padding: 36px 0 26px; display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -.02em; }
.page-head .lead { font-size: 19px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 22px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs .i { width: 14px; height: 14px; }

/* ---------- Abschnitte ---------- */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 36px); }
.section-head .link-arrow { margin-left: auto; }
/* Abschnittstitel mit Akzentstrich links (Startseite) */
.section-head h2.label-head { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.6vw, 28px); }
.label-head::before { content: ''; width: 5px; height: 1.05em; border-radius: 3px; background: var(--gold); }
.section-sub { color: var(--ink-soft); margin-top: 4px; }

/* ---------- Chips (Filter) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px;
  border: 1.5px solid transparent; border-radius: 999px; background: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.chip:hover { background: var(--surface-2); color: var(--green-deep); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; }
.chip-count { font-size: 13px; opacity: .7; }
.chips-boxed .chip { border-color: var(--line); background: var(--surface); }
.chips-boxed .chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); }

/* ---------- Karten ---------- */
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; align-items: flex-start; }
.card-title { font-size: 21px; line-height: 1.18; letter-spacing: -.005em; }
.card-meta { display: flex; align-items: center; width: 100%; margin-top: auto; font-size: 15px; color: var(--muted); }
.card-go { margin-left: auto; color: var(--gold); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Bildplatzhalter: ruhiges Streifenmuster mit Beschriftung */
.ph-img {
  display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(30, 74, 61, .045) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #efe7d8, #e8dfcd);
  color: var(--ink-soft);
}
.ph-img span {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 253, 248, .85); border: 1.5px dashed var(--line-strong);
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.ph-img .i { width: 17px; height: 17px; color: var(--gold-deep); }
.ph-dark {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 16px, transparent 16px 32px),
    radial-gradient(120% 90% at 75% 15%, #2f6b58, #183f34 60%, #12302a);
  color: #e9efe9;
}
.ph-dark span { background: rgba(18, 48, 42, .55); border-color: rgba(255, 255, 255, .3); color: #f1efe6; }
.ph-dark .i { color: var(--gold-line); }

/* Textplatzhalter in Vorlagen */
.ph {
  display: inline; padding: 1px 6px; border-radius: 6px; background: var(--gold-soft);
  border: 1.5px dashed var(--gold-line); color: #6b4c00; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1 .ph, h2 .ph, h3 .ph { font-weight: inherit; }

/* Leerzustand */
.empty {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px;
  background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
}
.empty-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); }
.empty-title { font-weight: 700; font-size: 18px; color: var(--green-deep); }
.empty-text { color: var(--ink-soft); margin-top: 4px; max-width: 640px; }
.empty .link-arrow { margin-top: 10px; }
.empty-tight { padding: 18px; }
.empty-on-sage { background: rgba(255, 253, 248, .7); }

/* Geplanter Inhalt: Stichpunkte für Bereiche, die noch gebaut werden */
.plan { display: grid; gap: 10px; align-content: start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1.5px dashed var(--line-strong); }
.plan-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.plan-label .i { width: 15px; height: 15px; }
.plan h3 { font-size: 22px; }
.plan ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-soft); }
.plan ul ul { margin-top: 6px; }
.plan li::marker { color: var(--gold); }
.plan .link-arrow { margin-top: 4px; }
.plan > .tag, .plan .link-arrow { justify-self: start; }
.section-intro { margin-bottom: 28px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-grid-4 .plan h3 { font-size: 20px; }
.empty + .plan, .empty + .plan-grid, .plan + .empty { margin-top: 20px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: #5c4100; font-size: 16px;
}
.notice .i { color: var(--gold-deep); margin-top: 2px; }
.notice strong { color: #4d3700; }

/* ---------- Set-Termine (Startseite) ---------- */
.set-list span > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-list { list-style: none; margin: 0; padding: 0; display: grid; }
.set-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.set-list b { display: block; color: var(--green-deep); font-size: 15px; }
.set-list small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.set-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; }
.set-ic .i { width: 15px; height: 15px; }
.set-list .is-pbe .set-ic { background: var(--sage); color: var(--green-deep); }
.set-list .is-set-end .set-ic { background: var(--surface-2); color: var(--green-deep); }
.set-date { text-align: right; white-space: nowrap; }
.set-date small { color: var(--gold-deep); font-weight: 700; }
.deadline-list span.is-muted { color: var(--muted); font-weight: 600; }
/* Suche ohne Treffer und Leerzustände mit Janna */
/* Suche ohne Treffer: Janna links unten, Text daneben */
.search-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 16px; margin: 0 0 -12px -12px; padding-top: 10px; }
.search-janna { grid-row: span 2; align-self: end; height: 130px; }
.search-empty .empty-title { align-self: end; }
.search-empty .empty-text { align-self: start; padding-bottom: 18px; }
/* Leerzustand mit Janna am linken Rand */
.empty.has-janna { position: relative; align-items: center; min-height: 140px; margin-top: 44px; padding-left: 170px; --out: 30px; }
.empty-janna { height: 172px; }

/* Auf einen Blick: Kästen im Zweierraster */
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-5 .card-title { font-size: 17px; }
.grid-5 .card-body { padding: 12px 14px 14px; gap: 8px; }
.glance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { display: grid; gap: 12px; align-content: start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.panel-head h3 { font-size: 22px; }
.panel-head span { font-size: 14px; color: var(--muted); }
.panel .link-arrow { justify-self: start; }
.deadline-list { list-style: none; margin: 0; padding: 0; display: grid; }
.deadline-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.deadline-list a:hover b { color: var(--gold-deep); }
.deadline-list b { color: var(--green-deep); }
.deadline-list .winner { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--gold-deep); }
.deadline-list .winner .i { width: 15px; height: 15px; }
.deadline-list span { flex: none; font-weight: 700; color: #1f6b47; font-size: 15px; }

/* Cup-Zeile */
.cup-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line);
  text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.cup-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.date-block { display: grid; justify-items: center; min-width: 52px; padding-right: 16px; border-right: 1.5px solid var(--line); line-height: 1; }
.date-block b { font-size: 30px; font-weight: 800; color: var(--green-deep); }
.date-block small { font-size: 15px; font-weight: 800; color: var(--green-deep); margin-top: 4px; letter-spacing: .04em; }
.cup-row-main { display: grid; gap: 6px; min-width: 0; }
.cup-row-main strong { font-size: 19px; color: var(--green-deep); }
.cup-row-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 15px; color: var(--ink-soft); }
.signup { font-weight: 600; color: var(--muted); }
.signup.is-open { color: #2b7a55; }
.signup.is-open::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3aa572; margin-right: 6px; vertical-align: 1px; }
.signup.is-soon { color: var(--gold-deep); }

/* Anmeldestatus als Pille */
.signup-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; }
.signup-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }
.signup-pill.is-open { background: #dcefe3; color: #1f6b47; }
.signup-pill.is-soon { background: var(--gold-soft); color: #6b4c00; }
.signup-pill.is-unknown { background: var(--butter); color: #6b4c00; }
.tag-region { background: var(--surface-2); color: var(--ink-soft); }
.tag-past { background: var(--line); color: var(--muted); }

/* Turnierkarte mit den fünf Kernfragen */
.cup-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cup-card { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cup-card.is-past { box-shadow: none; background: var(--surface-2); }
.cup-card.is-past .keyfacts { opacity: .75; }
.cup-card-head { display: grid; gap: 8px; justify-items: start; }
.cup-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cup-card h3 { font-size: 23px; }
.cup-card h3 a { text-decoration: none; }
.cup-card h3 a:hover { color: var(--gold-deep); }
.cup-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--muted); }
.keyfacts { display: grid; gap: 10px; margin: 0; }
.keyfacts > div { display: grid; grid-template-columns: 190px 1fr; gap: 4px 14px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.keyfacts dt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--green-deep); }
.keyfacts dt .i { width: 18px; height: 18px; color: var(--gold-deep); flex: none; }
.keyfacts dd { margin: 0; color: var(--ink-soft); font-size: 16px; }
.keyfacts dd a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--green); }
.keyfacts dd a .i { width: 15px; height: 15px; }
.keyfacts .kf-open dd { color: #1f6b47; font-weight: 700; }
.keyfacts .kf-soon dd { color: var(--gold-deep); font-weight: 700; }

/* Detailseite: Kernfragen hervorgehoben */
.glance { padding: 22px 24px; margin-bottom: 30px; border-radius: var(--radius-lg); background: var(--sage); border: 1px solid var(--sage-line); }
.glance h2 { font-size: 24px; margin-bottom: 6px; }
.glance .keyfacts > div { border-top-color: var(--sage-line); grid-template-columns: 220px 1fr; }
.glance .keyfacts dd { font-size: 17px; }
.muted-note { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.muted-note .i { width: 17px; height: 17px; }
.source-box a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--green); }
.source-box a .i { width: 15px; height: 15px; }
.row-go .i { color: var(--green-deep); }

/* ---------- Twitch-Bereich ---------- */
.twitch-band { margin-top: 44px; padding: 26px 24px 24px; border-radius: var(--radius-lg); background: var(--lilac); border: 1px solid var(--lilac-line); }
.twitch-band .section-head { margin-bottom: 20px; }
.twitch-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--twitch); color: #fff; }
.twitch-mark .i { width: 28px; height: 28px; }
.creator-card .card-body { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.avatar-ph { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--lilac); border: 2px dashed var(--lilac-line); color: var(--twitch); }
.avatar-ph .i { width: 20px; height: 20px; }
.creator-card strong { display: block; font-size: 18px; color: var(--green-deep); }
.creator-card small { color: var(--ink-soft); font-size: 15px; }
.creator-card .card-go { color: var(--twitch); }

/* ---------- CTA-Band ---------- */
.cta-band {
  margin-top: 28px; display: flex; align-items: center; gap: 22px; padding: 22px 26px;
  border-radius: var(--radius-lg); background: var(--sage); border: 1px solid var(--sage-line);
}
.cta-band > .i { width: 46px; height: 46px; color: var(--green-deep); flex: none; }
.cta-band > div { padding-left: 22px; border-left: 1.5px solid var(--sage-line); }
.cta-band h2 { font-size: 28px; }
.cta-band p { color: var(--ink-soft); margin-top: 4px; }
.cta-band .btn { margin-left: auto; }

/* ---------- Live Matches: Kopf, grüne Live-Box, Spielplan, Ergebnisse ---------- */
.live-head { display: flex; align-items: flex-start; gap: 18px; padding: 30px 0 26px; }
.live-head-ic { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 18px; background: var(--gold-soft); color: #c9961a; }
.live-head-ic .i { width: 36px; height: 36px; }
.live-head > div { display: grid; gap: 8px; }
.live-head h1 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.02em; }
.live-head .lead { font-size: 17px; }
.live-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--muted); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; background: var(--green-deep); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.live-box {
  position: relative; display: grid; gap: 18px; min-height: 320px; margin-top: 40px; padding: 26px 290px 26px 26px; border-radius: var(--radius-lg);
  background:
    radial-gradient(45% 80% at 92% 60%, rgba(241, 190, 41, .22), transparent 70%),
    linear-gradient(120deg, var(--green-deep) 0%, var(--green) 55%, #4d8a5b 100%);
  box-shadow: var(--shadow);
}
.live-box > .janna { height: calc(100% + 46px); max-height: 400px; }
.live-box-head h2 { display: flex; align-items: center; gap: 12px; color: #fff; font-size: clamp(28px, 2.6vw, 36px); }
.live-box-head .rec-dot { box-shadow: 0 0 0 5px rgba(224, 65, 58, .25); }
.live-box-head p { margin-top: 4px; color: #d7e8dc; }
.live-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.live-cards > .empty { grid-column: 1 / -1; }
.live-card { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 2px solid transparent; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .5); }
.live-card.is-live { border-color: var(--gold); }
.live-card h3 { font-size: 21px; line-height: 1.15; }
.live-card h3 a { text-decoration: none; }
.live-card h3 a:hover { color: var(--green); }
.lc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lc-top .tag { margin-left: auto; }
.lc-badge { padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lc-badge.is-live { background: #e0413a; color: #fff; }
.lc-badge.is-today { background: var(--gold); color: var(--green-deep); }
.lc-badge.is-next { background: var(--sage); color: var(--green-deep); }
.lc-day { font-size: 13px; font-weight: 700; color: var(--muted); }
.lc-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.lc-meta .i { width: 16px; height: 16px; color: var(--gold-deep); flex: none; }
.lc-score { padding: 10px 12px; border-radius: 12px; background: var(--sage); }
.lc-score.is-empty { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1.5px dashed var(--line-strong); }
.lc-score.is-empty .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lc-score-head { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 6px; }
.lc-score-head small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.lc-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.watch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--lilac); color: #5b2bb0; font-weight: 700; text-decoration: none; }
.watch-chip .i { width: 15px; height: 15px; }
.watch-chip:hover { background: #e4dbf5; }
.watch-none { font-style: italic; }

/* Platzierungen: Gold, Silber, Bronze */
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.podium li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 10px; background: var(--surface); }
.podium .pos { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.podium .p1 .pos { background: var(--gold); color: var(--green-deep); }
.podium .p2 .pos { background: #d9dde0; color: #3c4448; }
.podium .p3 .pos { background: #e8c4a0; color: #6b4320; }
.podium .who { font-weight: 700; color: var(--green-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium b { font-size: 14px; color: var(--ink-soft); }
.podium-full { max-width: 520px; }
.podium-full li { padding: 8px 12px; border: 1px solid var(--line); }

.live-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; align-items: start; }
.live-cols .side-card h2 { font-size: 24px; }
.sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sched-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sched-time { font-weight: 800; color: var(--green-deep); font-size: 15px; }
.sched-time .i { width: 18px; height: 18px; color: var(--green); }
.sched-time.is-open { padding-top: 2px; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--muted); }
.sched-main { display: grid; gap: 2px; min-width: 0; }
.sched-main a, .sched-main b { font-weight: 700; color: var(--green-deep); text-decoration: none; }
.sched-main a:hover { color: var(--green); text-decoration: underline; }
.sched-main small { font-size: 13px; color: var(--muted); }
.sched-row.is-deadline { background: var(--surface); border-style: dashed; border-color: var(--gold-line); }
.sched-row.is-set { background: var(--sage); border-color: var(--sage-line); }
.sched-day { margin: 10px 0 8px; font-size: 15px; color: var(--ink-soft); }
.sched-day:first-child { margin-top: 0; }
.res-card { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.res-card + .res-card { margin-top: 10px; }
.res-card h3 { font-size: 18px; }
.res-card h3 a { text-decoration: none; }
.res-card h3 a:hover { color: var(--green); }
.res-final { font-size: 13px; font-weight: 700; color: var(--muted); }
.res-note { font-size: 13px; color: var(--muted); }
.res-missing { font-size: 14px; color: var(--muted); }
.res-missing a { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--green); }
.res-missing .i { width: 14px; height: 14px; }

/* ---------- Werbeflächen links und rechts (nur breite Bildschirme) ----------
   Inhalt 1240 px + 2 × (Fläche + 20 px Abstand) + Rand zum Fenster. Unter 1640 px Fensterbreite keine Flächen. */
.ad-rail { position: fixed; top: 88px; z-index: 1; display: none; width: 160px; height: 600px; }
.ad-left { right: calc(50% + 640px); }
.ad-right { left: calc(50% + 640px); }
.ad-slot {
  display: grid; place-content: center; justify-items: center; gap: 6px; height: 100%; padding: 12px; text-align: center;
  border-radius: var(--radius); border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--muted);
}
.ad-slot span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ad-slot small { display: grid; gap: 2px; font-size: 13px; }
.ad-slot b { color: var(--ink-soft); }
.ad-300 { display: none; }
@media (min-width: 1640px) { .ad-rail { display: block; } }
@media (min-width: 1880px) {
  .ad-rail { width: 300px; }
  .ad-160 { display: none; }
  .ad-300 { display: inline; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; display: block; margin-top: 96px; background: var(--green-deep); color: #e6ece6; --crown-cut: var(--green-deep); }
.site-footer .brand { padding-left: 0; }
.site-footer .brand-word { font-size: 24px; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) 190px; gap: 28px; padding-top: 40px; padding-bottom: 30px; }
.footer-about { display: grid; align-content: start; }
/* Janna steht rechts auf der Trennlinie und schaut oben aus dem Footer heraus */
.footer-janna { grid-column: 5; grid-row: 1; align-self: end; justify-self: center; height: 330px; margin: -150px 0 -30px; }
.footer-claim { margin-top: 10px; font-size: 15px; color: #cdd8d0; max-width: 380px; }
.footer-cols nav { display: grid; align-content: start; gap: 8px; }
.footer-cols h4 { margin: 4px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9b8ae; }
.footer-cols nav a { font-size: 15px; text-decoration: none; color: #e6ece6; }
.footer-cols nav a:hover { color: #fff; text-decoration: underline; }
.footer-network { display: inline-flex; align-items: center; gap: 4px; color: var(--gold) !important; font-weight: 700; }
.footer-network .i { width: 14px; height: 14px; }
.footer-note { font-size: 14px; color: #a9b8ae; }
.footer-legal { display: grid; gap: 8px; padding-top: 16px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-legal p { font-size: 13px; color: #a9b8ae; max-width: 900px; }

/* ---------- News-Übersicht ---------- */
.filter-bar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.result-count { margin-left: auto; padding-right: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.news-grid { margin-top: 22px; }

/* ---------- Artikel- und Cup-Vorlagen ---------- */
.template-note { margin-top: 18px; }
.article { max-width: 780px; }
.article-head { display: grid; gap: 16px; justify-items: start; padding: 22px 0 24px; }
.article-head h1 { font-size: clamp(34px, 4.6vw, 50px); }
.article-teaser { font-size: 21px; color: var(--ink-soft); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 15px; color: var(--muted); }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline .i { width: 17px; height: 17px; }
.figure { margin: 0 0 26px; }
.figure .ph-img { border-radius: var(--radius); }
.figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose { display: grid; gap: 18px; font-size: 18.5px; line-height: 1.65; }
.prose h2 { font-size: 28px; margin-top: 14px; }
.prose blockquote { margin: 6px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-size: 21px; font-style: italic; color: var(--green-deep); }
.embed-ph { border-radius: var(--radius); overflow: hidden; }
.source-box { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 16px; }
.source-box b { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.aside-card { position: sticky; top: 70px; display: grid; gap: 14px; padding: 0 22px 22px; margin-top: 50px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* Kopf der Anmeldebox: hellgrün, Titel links, Janna rechts am Rand */
.aside-stage {
  position: relative; display: flex; align-items: flex-end; min-height: 130px; margin: 0 -22px 2px; padding: 20px 22px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--fresh);
}
.aside-stage .janna { height: calc(100% + 54px); max-height: 200px; }
.aside-card h2 { font-size: 24px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 30px; }
.fact { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fact .i { width: 19px; height: 19px; color: var(--gold-deep); }
.fact dt { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact dd { margin: 0; font-weight: 600; color: var(--green-deep); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; color: var(--green-deep); }

/* ---------- Cups ---------- */
.cups-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: none; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--green-deep); box-shadow: 0 1px 3px rgba(28, 43, 37, .15); }
.seg .i { width: 18px; height: 18px; }
.cup-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 16px; border-radius: var(--radius); background: var(--sage); border: 1px solid var(--sage-line); }
.field { display: grid; gap: 6px; min-width: 0; }
.field select { width: 100%; }
.field > span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field select, .field input[type="date"] {
  min-height: 44px; padding: 0 12px; border-radius: 11px; border: 1.5px solid var(--sage-line); background: var(--surface); color: var(--ink); font-weight: 500;
}
.field select:focus, .field input:focus { border-color: var(--green); outline: none; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 11px; background: var(--surface); border: 1.5px solid var(--sage-line); font-weight: 600; cursor: pointer; white-space: nowrap; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.filter-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.filter-foot .date-field { display: none; }
.filter-foot .date-field.show { display: grid; grid-template-columns: auto auto; align-items: center; gap: 10px; }
.reset-btn { margin-left: auto; border: 0; background: none; font-weight: 700; color: var(--gold-deep); cursor: pointer; padding: 8px 4px; }
.cups-results { margin-top: 22px; display: grid; gap: 26px; }
.month-group { display: grid; gap: 10px; }
.month-group h2 { font-size: 22px; }
.editor-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin-top: 18px; }
.editor-note .i { width: 17px; height: 17px; }

.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal-head h2 { font-size: 24px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 10px 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 104px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.other { background: var(--surface-2); color: var(--muted); }
.cal-num { font-weight: 700; font-size: 15px; }
.cal-day.today .cal-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--green-deep); }
.cal-ev { display: block; padding: 3px 7px; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; background: var(--mint); color: #1f4d39; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev.offiziell { background: var(--sky); color: #1f4664; }
.cal-ev.regional { background: var(--butter); color: #5f4400; }
.cal-ev.streamer { background: var(--lilac); color: #5b2bb0; }
.cal-ev.eigener { background: var(--gold-soft); color: #6b4c00; }
.cal-ev:hover { filter: brightness(.95); }
.cal-ev.past { opacity: .55; }
.cal-deadline { display: flex; align-items: center; gap: 4px; background: var(--surface); color: var(--gold-deep); border: 1.5px dashed var(--gold-line); }
.cal-deadline .i { width: 13px; height: 13px; flex: none; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .reset-btn { margin-left: auto; padding: 0; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-offiziell { background: var(--sky); }
.lg-regional { background: var(--butter); }
.lg-streamer { background: var(--lilac); }
.lg-eigener { background: var(--gold-soft); }
.lg-deadline { background: var(--surface); border: 1.5px dashed var(--gold-line); }
.lg-info { background: var(--green); }
/* Set-Termine (Set-Start, PBE, Set-Ende) als Info im Kalender */
.cal-info { display: flex; align-items: center; gap: 4px; background: var(--green); color: #fff; cursor: help; }
.cal-info .i { display: none; }
.cal-info.is-pbe { background: var(--sage); color: var(--green-deep); border: 1.5px solid var(--sage-line); }
.cal-info.is-set-end { background: var(--surface-2); color: var(--green-deep); border: 1.5px solid var(--line-strong); }
.cal-empty { padding: 16px; }

/* ---------- Twitch-Seite und Live-Streams ---------- */
.stream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.stream-grid > .empty { grid-column: 1 / -1; }
.stream-card .thumb { position: relative; aspect-ratio: 16 / 9; background: #2a2340; }
.stream-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-live { position: absolute; top: 10px; left: 10px; padding: 2px 9px; border-radius: 6px; background: #e0413a; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.viewer-pill { position: absolute; bottom: 10px; left: 10px; padding: 2px 9px; border-radius: 6px; background: rgba(20, 16, 30, .75); color: #fff; font-size: 13px; font-weight: 600; }
.stream-card .card-body { gap: 6px; }
.stream-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-deep); font-size: 17px; }
.stream-title { font-size: 15px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stream-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--muted); margin-top: auto; }
.flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }
.streams-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.live-summary { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink-soft); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0413a; box-shadow: 0 0 0 4px rgba(224, 65, 58, .18); }
.lang-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 22px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.broadcast-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }

/* Player-Fenster */
.modal-overlay { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; background: rgba(14, 30, 26, .7); }
body.modal-open .modal-overlay { display: grid; }
.modal { width: min(1200px, 100%); max-height: calc(100vh - 32px); background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.watch-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.watch-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.watch-title span { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }
.player { aspect-ratio: 16 / 9; background: #000; }
.player iframe, .watch-main .chat { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Rechtliches / Info-Seiten ---------- */
.info-page { max-width: 780px; }
.info-page section:not(.page-head) { display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); }
.info-page h2 { font-size: 24px; }
.info-page p, .info-page li { color: var(--ink-soft); }

.page-head .btn { justify-self: start; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --edge: 24px; }
  .wrap { padding: 0 32px; }
}
@media (max-width: 1200px) {
  .mainnav { display: none; }
  .hb-search { margin-left: auto; }
}
@media (max-width: 1120px) {
  .plan-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .finder-row .level-ic { display: none; }
  .round-band { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 0; }
  .round-title { grid-column: 1 / -1; padding: 0; }
  .round-band a:nth-child(2) { border-left: 0; padding-left: 0; }

  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)) 170px; }
  .footer-about { grid-column: 1 / 4; }
  .footer-janna { grid-column: 4; grid-row: 1 / span 2; height: 300px; }
}
@media (max-width: 1020px) {
  /* Startseite: Seitenspalte unter die Turniere, Streams und Cup-Finder nebeneinander */
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 30px; gap: 24px 20px; }
  .live-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-cols > :last-child { grid-column: 1 / -1; }
  .live-box { padding-right: 230px; }
  .live-box > .janna { max-height: 330px; }
  .glance-grid { grid-template-columns: 1fr; }
  .layout-aside { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .cup-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cup-filters .check { grid-column: 1 / -1; justify-self: start; }
  .watch-main { grid-template-columns: 1fr; }
  .cup-cards { grid-template-columns: 1fr; }
  .watch-main .chat { display: none; }
}
@media (max-width: 900px) {
  /* Bühnen nach oben: Janna ragt dann oben aus der Box statt in den Text */
  .hero-box { grid-template-columns: minmax(0, 1fr); margin-top: 60px; }
  .hero-stage { order: -1; min-height: 200px; padding-right: 55%; }
  .hero-stage .janna { height: 250px; }
  .hero-text { padding: 8px 10px 14px; }
  .feature { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .feature-stage { order: -1; height: 180px; --out: var(--edge); }
  .feature-stage .janna { height: 236px; }
  .page-head.has-janna { padding-right: 210px; }
  .head-janna { max-height: 230px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :nth-child(3) { display: none; }
  .grid-3.show-all > :nth-child(3) { display: flex; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --edge: 10px; }
  .wrap { padding: 0 16px; }
  body { font-size: 16.5px; }
  .site-header, .header-bar { min-height: 58px; height: 58px; }
  .hb-cell { padding: 0 14px; }
  .burger { margin-left: -16px; }
  .hb-search { margin-right: -16px; }
  .hb-search span { display: none; }
  .brand { gap: 8px; padding-left: 12px; }
  .brand-head { height: 40px; }
  .brand-word { font-size: 22px; }
  .lead { font-size: 18px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > :nth-child(3) { display: flex; }
  .stat-tile { flex: 1 1 140px; }
  .stat-tile.is-wide { max-width: none; flex-basis: 100%; }
  .widget .upcoming-list { overflow: visible; }
  .grid-5 { grid-template-columns: 1fr; }
  .section-head .link-arrow { margin-left: 0; }
  .twitch-band { padding: 20px 16px 16px; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 18px; }
  .cta-band > div { padding-left: 0; border-left: 0; }
  .cta-band .btn { margin-left: 0; width: 100%; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .footer-janna { display: none; }
  .site-footer { margin-top: 56px; }
  /* Startseite mobil */
  .hero-text h1 { font-size: 34px; }
  .hero-text .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .feature-text { padding: 20px 18px 22px; }
  .feature-date { font-size: 17px; }
  .home-side { grid-template-columns: minmax(0, 1fr); }
  .finder-bar .seg { width: 100%; }
  .finder-bar .seg button { flex: 1; justify-content: center; }
  .finder-list { padding: 4px 14px; }
  .finder-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; }
  .finder-row .date-badge { grid-row: span 2; min-width: 54px; }
  .finder-row .status-pill { grid-column: 2; grid-row: 2; justify-self: start; padding: 4px 12px; font-size: 14px; }
  .finder-row .row-go { grid-column: 3; grid-row: 1 / span 2; }
  .finder-main strong { font-size: 18px; }
  .cup-quiz { padding: 22px 16px 22px 124px; }
  .cup-quiz > .janna { height: 170px; }
  .quiz-links a { font-size: 15px; }
  .hero-stats { gap: 12px; }
  .hstat b { font-size: 28px; }
  .hstat.is-date { display: none; }   /* steht mobil direkt darunter in der Turnierliste */
  .side-stage { padding-right: 150px; }
  .quiz-links { display: grid; gap: 8px; }
  .round-band { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 18px; gap: 12px; }
  .round-band a { padding: 0; border: 0; font-size: 17px; }
  .page-head.has-janna { margin-top: 24px; padding: 24px 20px; }
  .head-janna { display: none; }
  .empty.has-janna { padding-left: 132px; --out: var(--edge); }
  .live-head { padding: 22px 0 18px; gap: 12px; }
  .live-head-ic { width: 48px; height: 48px; border-radius: 14px; }
  .live-head-ic .i { width: 28px; height: 28px; }
  .live-box { padding: 200px 14px 16px; margin-top: 56px; }
  .live-box-head { position: absolute; top: 22px; left: 18px; right: 46%; }
  .live-box > .janna { top: -50px; bottom: auto; height: 250px; }   /* Schnittkante genau auf der Oberkante der Karten */
  .live-cards { position: relative; z-index: 1; }
  .live-cols { grid-template-columns: minmax(0, 1fr); }
  .empty-janna { height: 150px; }
  .facts { grid-template-columns: 1fr; }
  .keyfacts > div, .glance .keyfacts > div { grid-template-columns: 1fr; }
  .glance { padding: 18px 16px; }
  .cup-card { padding: 18px 16px; }
  .cal-deadline .i { display: none; }
  .plan-grid, .plan-grid-4 { grid-template-columns: 1fr; }
  .cup-filters { grid-template-columns: 1fr; }
  .result-count { margin-left: 0; }
  .cal-day { min-height: 64px; padding: 4px; }
  .cal-ev { font-size: 0; height: 8px; padding: 0; border-radius: 4px; }
  .cal-wd { font-size: 11px; padding: 8px 2px; letter-spacing: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
