/* Fußball Echo — Stylesheet (aus dem Prototyp, Schriften als externe Dateien) */
@font-face {
    font-family: 'Oswald';
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/oswald-500.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Lora';
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/lora-400.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Lora';
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
    src: url('/fonts/lora-400i.woff2') format('woff2');
  }

  :root {
    --bg: #F2F3F5;
    --surface: #FFFFFF;
    --surface-2: #E6E8EC;
    --text: #1B2333;
    --text-muted: #5B6472;
    --navy: #14213D;
    --navy-deep: #0A1526;
    --accent: #2A5FD9;
    --accent-ink: #FFFFFF;
    --line: rgba(20, 33, 61, 0.14);
    --shadow: rgba(15, 20, 30, 0.10);

    --font-display: 'Oswald', 'Arial Narrow', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --measure: 34rem;
    /* Bewusst nur Light: Publikation mit Sponsorenlogos, die für hellen Grund gemacht sind. */
    color-scheme: light;
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .prose a, .colophon a { color: var(--accent); text-decoration: underline; }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .page {
    max-width: 78rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "masthead"
      "nav"
      "content"
      "footer";
  }

  /* ---------- Hero (Titelkopf v2: Vereinsfarben, diagonale Flächen) ---------- */
  .hero {
    grid-area: masthead;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(150deg, #1d3f8a 0%, #12295c 45%, var(--navy-deep) 100%);
    color: #fff;
    padding: 2rem 1.25rem 1.7rem;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: -30% -25% auto auto;
    width: 85%;
    height: 200%;
    background: var(--accent);
    opacity: .55;
    clip-path: polygon(100% 0, 100% 100%, 22% 100%);
    z-index: -1;
  }
  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: .3rem;
    background: var(--accent);
    z-index: -1;
  }
  .hero__row {
    display: flex;
    align-items: center;
    gap: .9rem;
  }
  .hero__crest {
    flex: none;
    width: 3.4rem;
    height: 3.9rem;
    object-fit: contain;
  }
  .hero__wordmark {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    line-height: .9;
    color: #fff;
  }
  .hero__wordmark small {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    text-transform: none;
    letter-spacing: .02em;
    font-size: .68rem;
    color: rgba(242,244,248,.75);
    margin-top: .45rem;
  }
  .hero--schlank {
    padding-block: 1.5rem 1.4rem;
  }
  .hero--schlank .hero__wordmark {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.2rem;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .hero__chip {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    padding: .25rem .7rem;
    color: rgba(242,244,248,.9);
  }
  .hero__chip--accent {
    background: #fff;
    border-color: #fff;
    color: var(--navy-deep);
    font-weight: 600;
  }
  @media (min-width: 900px) {
    .hero { padding: 2.6rem 2rem 2.2rem; }
    .hero__crest { width: 4rem; height: 4.6rem; }
  }

  /* ---------- Rubric nav (jump links, not view switches) ---------- */
  .rubrics {
    grid-area: nav;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 3.2rem;
    padding: .55rem .9rem;
    background: transparent;
    border: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: left;
    cursor: pointer;
  }
  .menu-toggle__icon {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.35rem;
    height: 1rem;
  }
  .menu-toggle__icon span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
  }
  .rubrics.is-open .menu-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .rubrics.is-open .menu-toggle__icon span:nth-child(2) { opacity: 0; }
  .rubrics.is-open .menu-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle__current {
    margin-left: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent);
  }
  .rubrics__list {
    display: none;
    position: fixed;
    top: 3.25rem;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: .4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: .3rem .7rem calc(5rem + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .rubrics.is-open .rubrics__list { display: flex; }
  html.menu-open { overflow: hidden; }
  @media (prefers-reduced-motion: reduce) { .menu-toggle__icon span { transition: none; } }
  .rubric-btn {
    flex: none;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .78rem;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
    border-radius: 3px;
    padding: .45rem 1rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  }
  .rubric-btn:hover { border-color: var(--accent); color: var(--text); }
  .rubric-btn[aria-current="true"] {
    background: linear-gradient(140deg, #1d3f8a, var(--navy-deep));
    border-color: var(--navy-deep);
    color: #fff;
  }
  @media (max-width: 899px) {
    .rubric-btn { padding: .75rem 1.05rem; text-align: left; }
  }

  /* ---------- Content (single continuous flow) ---------- */
  .content {
    grid-area: content;
    padding: 1.5rem 1.25rem 3rem;
  }
  .rubric {
    max-width: var(--measure);
    margin: 0 auto 2.6rem;
    scroll-margin-top: 4rem;
  }

  .eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
    color: #fff;
    background: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .65rem;
    border-radius: 3px;
    line-height: 1.35;
    margin: 0 0 .7rem;
  }
  .eyebrow a { color: #fff; text-decoration: none; }
  .eyebrow a:hover { text-decoration: underline; }
  h1.headline, h2.headline {
    font-family: var(--font-display);
    font-weight: 700;
    text-wrap: balance;
    line-height: 1.05;
    margin: 0 0 .5rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .01em;
  }
  h1.headline::after, h2.headline::after {
    content: "";
    display: block;
    width: 3.2rem;
    height: 4px;
    background: var(--accent);
    margin-top: .6rem;
  }
  h1.headline { font-size: clamp(1.7rem, 6vw, 2.3rem); }
  h2.headline { font-size: clamp(1.35rem, 5vw, 1.7rem); }
  .steckbrief-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .5rem;
  }
  .steckbrief-head .headline { margin-bottom: 0; }
  .steckbrief-head__crest {
    flex: none;
    width: 2.6rem;
    height: 2.9rem;
    object-fit: contain;
  }
  .dek {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--accent);
    margin: 0 0 1.1rem;
  }
  .prose p { margin: 0 0 1.1rem; }
  .prose { font-size: 1.02rem; text-align: justify; hyphens: auto; }

  /* ---------- Redakteur-Foto ---------- */
  figure.photo { margin: 1.4rem 0; }
  figure.photo img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--surface-2);
  }
  figure.photo figcaption {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-top: .5rem;
    padding-left: .1rem;
  }

  .prose blockquote, blockquote.pull {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--surface);
    border-left: 5px solid var(--accent);
    padding: 1rem 1.1rem;
    background: linear-gradient(90deg, rgba(42,95,217,.07), rgba(42,95,217,.02));
    margin: 1.6rem 0;
    text-align: left;
    hyphens: none;
  }
  .prose blockquote p:last-child { margin-bottom: 0; }
  blockquote.pull cite {
    display: block;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-top: .6rem;
  }

  /* ---------- Start / matchup ---------- */
  .matchup {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.4rem 1.2rem;
    text-align: center;
    box-shadow: 0 1px 0 var(--shadow);
    margin-bottom: 1.4rem;
  }
  .matchup__teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    text-transform: uppercase;
    text-wrap: balance;
  }
  @media (min-width: 480px) {
    .matchup__teams { flex-direction: row; gap: .8rem; }
  }
  .matchup__team {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
  }
  .matchup__crest {
    flex: none;
    width: 1.9rem;
    height: 2.15rem;
    object-fit: contain;
  }
  .matchup--klein .matchup__crest {
    width: 1.5rem;
    height: 1.7rem;
  }
  .matchup__vs {
    color: var(--accent-ink);
    background: var(--accent);
    font-size: .75rem;
    padding: .15rem .5rem;
    border-radius: 999px;
  }
  .matchup__sub {
    margin-top: .55rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
  }
  .matchup--klein {
    padding: .95rem 1rem;
    margin-top: -.6rem;
  }
  .matchup--klein .matchup__teams {
    font-size: clamp(.95rem, 4vw, 1.15rem);
  }
  /* Heutiges Spiel: Blickfang in Vereinsfarben */
  .matchup--haupt {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: none;
    background: linear-gradient(150deg, #1d3f8a 0%, #12295c 55%, var(--navy-deep) 100%);
    color: #fff;
    padding: 1.7rem 1.2rem 1.5rem;
  }
  .matchup--haupt::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    width: 70%;
    height: 200%;
    background: var(--accent);
    opacity: .45;
    clip-path: polygon(100% 0, 100% 100%, 25% 100%);
    z-index: -1;
  }
  .matchup--haupt .matchup__vs {
    background: #fff;
    color: var(--navy-deep);
    font-weight: 600;
  }
  .matchup--haupt .matchup__sub {
    color: rgba(242,244,248,.78);
  }
  @media (min-width: 480px) {
    .matchup--haupt .matchup__teams {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: start;
      gap: .9rem;
    }
    .matchup--haupt .matchup__vs { align-self: center; }
    .matchup--haupt .matchup__team {
      flex-direction: column;
      min-width: 0;
      gap: .6rem;
      line-height: 1.2;
    }
    .matchup--haupt .matchup__team > span { width: 100%; overflow-wrap: anywhere; }
    .matchup--haupt .matchup__crest { order: -1; width: 2.6rem; height: 3rem; }
  }
  .matchup__label {
    margin: 0 0 .4rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
  }

  .toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
  .toc-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    padding: .8rem .9rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
  }
  .toc-row:hover { border-color: var(--accent); transform: translateX(2px); }
  .toc-row__label {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .82rem;
    color: var(--accent);
    flex: none;
    overflow-wrap: anywhere;
  }
  .toc-row__teaser { color: var(--text-muted); font-size: .9rem; }
  @media (min-width: 600px) {
    .toc-row { flex-direction: row; align-items: baseline; gap: .8rem; }
    .toc-row__label { width: 9rem; }
  }

  /* ---------- BFV-Widgets (iframes): auf Touch-Geräten nicht als Scrollfalle ---------- */
  .bfv-bar { display: none; }
  @media (pointer: coarse) {
    .bfv-widget { position: relative; }
    .bfv-widget iframe { pointer-events: none; }
    .bfv-widget.is-active iframe { pointer-events: auto; }
    .bfv-bar {
      display: block;
      position: sticky;
      top: 3.6rem;
      z-index: 2;
      height: 0;
      text-align: right;
    }
    .bfv-toggle {
      margin: .5rem;
      padding: .4rem .8rem;
      font-family: var(--font-mono);
      font-size: .68rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--navy);
      background: rgba(255,255,255,.94);
      border: 1px solid var(--line);
      border-radius: 999px;
      box-shadow: 0 2px 8px var(--shadow);
      cursor: pointer;
    }
    .bfv-widget.is-active .bfv-toggle { color: #fff; background: var(--accent); border-color: var(--accent); }
  }

  /* ---------- Liga: Tabelle & Ergebnisse aus der BFV-API ---------- */
  .bfv-api-view { display: none; }
  .bfv-api-mode .bfv-api-view { display: block; }
  .bfv-api-mode .bfv-widget, .bfv-api-mode .bfv-widget-label { display: none; }
  .liga__teil { margin: 0 0 1.2rem; }
  .liga__titel {
    margin: 0 0 .45rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--navy);
  }
  .liga__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .liga__laden, .liga__leer { margin: 0; padding: 1rem 0; color: var(--text-muted); font-size: .9rem; }
  .liga__meta {
    margin: 0;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .liga__btn {
    font: inherit;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .8rem;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: .55rem .9rem;
    cursor: pointer;
  }
  .liga__btn:disabled { opacity: .4; cursor: default; }
  .liga__fehler {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid #c0392b;
    padding: .9rem 1rem;
    font-size: .92rem;
  }
  .liga__fehler p { margin: 0 0 .7rem; }

  .liga-nav { display: flex; gap: .35rem; margin-bottom: .5rem; }
  .liga-nav__btn { flex: none; width: 2.8rem; font-size: 1.1rem; padding: .4rem 0; }
  .liga-nav__select {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: .5rem .6rem;
  }

  .liga-tag {
    margin: .65rem 0 .25rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .liga-tag:first-child { margin-top: 0; }
  .liga-spiele { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
  .liga-spiel {
    display: grid;
    color: inherit;
    text-decoration: none;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid transparent;
    padding: .35rem .5rem;
    font-size: .9rem;
    line-height: 1.25;
  }
  .liga-spiel.is-frei { color: var(--text-muted); }
  a.liga-spiel:hover { background: #eef2fa; }
  a.liga-spiel:focus-visible { position: relative; z-index: 1; }
  .liga-spiel.is-own { border-left-color: var(--accent); }
  .liga-spiel.is-current { border-left-color: var(--accent); background: #e8eefb; }
  .liga-spiel.is-current .liga-spiel__team { font-weight: 700; }
  .liga-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
  .liga-filter__field { display: flex; flex: 1 1 8rem; flex-direction: column; gap: .15rem; }
  .liga-spielplan__spiele { margin: .5rem 0 .7rem; }
  .liga-spiele--kompakt { gap: 0; }
  .liga-spiele--kompakt li + li .liga-spiel { border-top: 0; }
  .liga-spiel__kopf { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .64rem; color: var(--text-muted); }
  .liga-spiel__art { flex: 1; text-align: center; }
  .liga-spiel__zeit { margin-left: auto; }
  @media (min-width: 600px) {
    .liga-spiele--kompakt .liga-spiel { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  }
  .liga-spiel__wettbewerb { grid-column: 1 / -1; font-family: var(--font-mono); font-size: .65rem; color: var(--text-muted); }
  .liga-spiel.is-own .liga-spiel__team { font-weight: 600; }
  .liga-spiel__team { overflow-wrap: anywhere; }
  .liga-spiel__team--heim { text-align: right; }
  .liga-verein { display: flex; align-items: center; gap: .35rem; min-width: 0; }
  .liga-verein__name { min-width: 0; overflow-wrap: anywhere; }
  .liga-verein__logo { flex: none; width: 22px; height: 22px; object-fit: contain; }
  .liga-verein.liga-spiel__team--heim { justify-content: flex-end; }
  @media (max-width: 479px) {
    .liga-verein { gap: .25rem; }
    .liga-verein__logo { width: 18px; height: 18px; }
    .liga-spiel {
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: .3rem .35rem;
      padding: .5rem .45rem;
    }
    .liga-spiel .liga-verein { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; }
    .liga-spiel .liga-verein__logo { width: 24px; height: 24px; }
    .liga-spiel .is-own-team { color: var(--accent); font-weight: 600; }
    .liga-spiel__team--heim { grid-column: 1; grid-row: 1; }
    .liga-spiel__team--heim .liga-verein__logo { order: -1; }
    .liga-spiel__team--gast { grid-column: 3; grid-row: 1; }
    .liga-spiel .liga-spiel__ergebnis { grid-column: 2; grid-row: 1; min-width: 2.8rem; font-size: .8rem; }
    .liga-spiele--kompakt .liga-spiel { padding: 0; gap: 0 .35rem; }
    .liga-spiele--kompakt .liga-spiel__kopf { grid-column: 1 / -1; grid-row: 1; padding: .35rem .45rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
    .liga-spiele--kompakt .liga-spiel__team--heim { grid-row: 2; }
    .liga-spiele--kompakt .liga-spiel__team--gast { grid-row: 2; }
    .liga-spiele--kompakt .liga-spiel__team { padding: .5rem .35rem; }
    .liga-spiele--kompakt .liga-spiel__ergebnis { grid-row: 2; }
    .liga-spiele--kompakt .liga-spiel.is-unplayed { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .liga-spiele--kompakt .is-unplayed .liga-spiel__team--gast { grid-column: 2; }
    .liga-spiele--kompakt .is-unplayed .liga-spiel__ergebnis { display: none; }
    .liga-spiel__wettbewerb { grid-column: 1 / -1; grid-row: 3; text-align: center; padding-bottom: .4rem; }
  }
  .liga-spiel__ergebnis {
    min-width: 3.4rem;
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    background: var(--navy);
    border-radius: 3px;
    padding: .25rem .4rem;
  }
  .liga-spiel__ergebnis.is-offen { color: var(--text-muted); background: var(--surface-2); font-weight: 400; }
  .liga-spiel.is-live .liga-spiel__ergebnis { color: #fff; background: #b32636; text-decoration: none; }
  .liga-spiel__live { display: block; font-size: .55rem; letter-spacing: .08em; line-height: 1.1; }
  .liga-demo { margin: 0 0 .5rem; padding: .45rem .6rem; background: #fff3cd; color: #664d03; font-size: .8rem; }
  .liga.is-stale .liga-spiel__live::after { content: " · ALT"; }
  .liga.is-stale .liga-spiel__live { opacity: .75; }

  .liga-scroll { overflow-x: auto; }
  .liga-tabelle {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
  }
  .liga-tabelle th {
    padding: .45rem .35rem;
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-2);
    text-align: center;
    white-space: nowrap;
  }
  .liga-tabelle td {
    padding: .4rem .35rem;
    text-align: center;
    white-space: nowrap;
    background: #fff;
  }
  .liga-tabelle tbody tr:nth-child(even) td { background: #f5f7fa; }
  .liga-tabelle th.liga-col--team, .liga-tabelle td.liga-col--team { text-align: left; white-space: normal; width: 100%; padding-left: .6rem; }
  .liga-tabelle td.liga-col--team { font-family: var(--font-body); font-size: .95rem; line-height: 1.25; }
  .liga-tabelle th.liga-col--rang, .liga-tabelle td.liga-col--rang { width: 2.2rem; box-shadow: inset 4px 0 0 transparent; }
  .liga-tabelle tr.is-own td { font-weight: 700; }
  .liga-tabelle tr.is-own:not(.is-auf):not(.is-aufq):not(.is-abq):not(.is-ab) td { background: rgba(42,95,217,.12); }
  .liga-tabelle tbody tr.is-auf td { background: #e3f3e8; }
  .liga-tabelle tbody tr.is-aufq td { background: #eef7f0; }
  .liga-tabelle tbody tr.is-abq td { background: #fbeff0; }
  .liga-tabelle tbody tr.is-ab td { background: #f9e1e3; }
  .liga-tabelle tr.is-auf td.liga-col--rang { box-shadow: inset 4px 0 0 #2e9e5b; }
  .liga-tabelle tr.is-aufq td.liga-col--rang { box-shadow: inset 4px 0 0 #8fd0a3; }
  .liga-tabelle tr.is-abq td.liga-col--rang { box-shadow: inset 4px 0 0 #eea3aa; }
  .liga-tabelle tr.is-ab td.liga-col--rang { box-shadow: inset 4px 0 0 #d0404a; }
  .liga-kurz { display: none; }
  @media (max-width: 479px) {
    .liga-col--tore { display: none; }
    .liga-lang { display: none; }
    .liga-kurz { display: inline; }
    .liga-tabelle { font-size: .95rem; }
    .liga-tabelle th { padding-inline: .25rem; font-size: .76rem; }
    .liga-tabelle td { padding-inline: .25rem; }
    .liga-tabelle td.liga-col--team { font-size: .9rem; }
    .liga-tabelle th.liga-col--rang, .liga-tabelle td.liga-col--rang { width: 1.8rem; }
  }

  .liga-legende { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .76rem; color: var(--text-muted); }
  .liga-legende li { display: inline-flex; align-items: center; gap: .35rem; }
  .liga-legende__dot { width: .65rem; height: .65rem; border-radius: 2px; }
  .liga-legende__dot.is-auf { background: #2e9e5b; }
  .liga-legende__dot.is-aufq { background: #8fd0a3; }
  .liga-legende__dot.is-abq { background: #eea3aa; }
  .liga-legende__dot.is-ab { background: #d0404a; }

  /* ---------- Live badge ---------- */
  .live { display: inline-flex; align-items: center; gap: .4rem; }
  .live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #fff; flex: none; }
  @media (prefers-reduced-motion: no-preference) {
    .live-dot { animation: pulse 1.8s ease-in-out infinite; }
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(1.3); }
  }

  /* ---------- Tables ---------- */
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); margin-bottom: 1.5rem; }

  /* ---------- Sponsoren ---------- */
  .sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .6rem; margin: 0 0 1.6rem; }
  .sponsor-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: .75rem .85rem; }
  .sponsor-card__name { font-weight: 600; font-size: .92rem; color: var(--navy); }
  .sponsor-card__place { color: var(--text-muted); font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; margin-top: .15rem; }

  .cta-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(150deg, #1d3f8a 0%, #12295c 55%, var(--navy-deep) 100%);
    color: #F2F4F8;
    padding: 1.5rem 1.2rem;
    text-align: center;
  }
  .cta-card::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    width: 70%;
    height: 200%;
    background: var(--accent);
    opacity: .4;
    clip-path: polygon(100% 0, 100% 100%, 25% 100%);
    z-index: -1;
  }
  .cta-card h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .4rem; font-size: 1.05rem; }
  .cta-card p { margin: 0 0 .8rem; color: rgba(242,244,248,.85); font-size: .9rem; }
  .cta-card .phone { font-family: var(--font-mono); font-size: 1.1rem; color: #8FB3FF; font-weight: 600; }

  /* ---------- Gastgeber ---------- */
  .fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); overflow: hidden; margin-bottom: 1.4rem; }
  .fact { background: var(--surface); padding: .75rem .85rem; }
  .fact dt { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .03em; font-size: .66rem; color: var(--accent); font-weight: 600; margin: 0 0 .25rem; }
  .fact dd { margin: 0; font-size: .92rem; font-weight: 600; color: var(--navy); }
  .swatches { display: inline-flex; gap: .3rem; margin-left: .4rem; vertical-align: middle; }
  .swatch { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }

  /* ---------- Anzeigen: inline, unavoidable, contract-sized ---------- */
  .ad-strip { max-width: var(--measure); margin: 0 auto 2.6rem; }
  .ad-row { display: grid; gap: .7rem; grid-template-columns: 1fr; }
  .ad-row--split-immer { grid-template-columns: 1fr 1fr; gap: .5rem; }
  @media (min-width: 480px) { .ad-row--split { grid-template-columns: 1fr 1fr; } }

  .ad-card {
    position: relative;
    border: 1px solid var(--line);
    padding: 1.1rem 1.1rem 1.2rem;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
  }
  .ad-card h3 { font-family: var(--font-display); margin: 0 0 .3rem; text-transform: uppercase; }
  .ad-card p { margin: 0; color: var(--text-muted); font-size: .88rem; }

  .ad-card--quarter { min-height: 6rem; }
  .ad-card--quarter h3 { font-size: 1rem; }

  .ad-card--half { min-height: 9rem; border-width: 1.5px; }
  .ad-card--half h3 { font-size: 1.3rem; }

  .ad-card--full {
    min-height: 15rem;
    background: var(--navy-deep);
    border: none;
    color: #F2F4F8;
    padding: 2rem 1.4rem;
    align-items: center;
    text-align: center;
  }
  .ad-card--full h3 { font-size: clamp(1.4rem, 6vw, 2rem); color: #fff; }
  .ad-card--full p { color: rgba(242,244,248,.78); max-width: 26rem; }

  .ad-card--open { border-style: dashed; color: var(--text-muted); }
  .ad-card--open h3 { color: var(--text-muted); font-size: 1rem; }

  /* ---------- Werbepartner-Seite ---------- */
  .werbung { max-width: 52rem; margin: 0 auto 2.6rem; }
  .werbung .lede { font-size: 1.08rem; }
  .angebot-gruppe { margin: 2.2rem 0; }
  .angebot-gruppe > h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 1.1rem;
    color: var(--text);
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
  }
  .angebote { display: grid; grid-template-columns: 1fr; gap: .7rem; }
  @media (min-width: 620px) { .angebote { grid-template-columns: 1fr 1fr; } }
  .angebot {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    padding: .95rem 1.05rem;
  }
  .angebot h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 1rem;
    margin: 0 0 .35rem;
    color: var(--text);
  }
  .angebot p { margin: 0; font-size: .95rem; }
  .angebot .konditionen {
    display: block;
    margin-top: .7rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-muted);
  }

  .kontaktkarte {
    background: var(--navy);
    color: #F2F4F8;
    padding: 1.5rem 1.4rem;
    margin: 2.4rem 0 1.4rem;
  }
  .kontaktkarte__intro { margin: 0 0 1.1rem; color: rgba(242,244,248,.85); }
  .kontaktkarte__person { margin-bottom: 1rem; }
  .kontaktkarte__name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 1.15rem;
  }
  .kontaktkarte__rolle {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #8FB3FF;
  }
  .kontaktkarte__zeilen { margin: 0; display: grid; gap: .55rem; }
  .kontaktkarte__zeilen > div { display: flex; gap: .8rem; align-items: baseline; }
  .kontaktkarte__zeilen dt {
    flex: none;
    width: 4.5rem;
    font-family: var(--font-mono);
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: rgba(242,244,248,.6);
  }
  .kontaktkarte__zeilen dd { margin: 0; font-size: .95rem; }
  .kontaktkarte__zeilen a { color: #8FB3FF; text-decoration: none; }
  .kontaktkarte__zeilen a:hover { text-decoration: underline; }
  .preishinweis {
    font-size: .85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    margin: 1.6rem 0 0;
  }
  .broschuere-pdf {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .85rem;
  }
  .broschuere-pdf a { color: var(--accent); text-decoration: none; }
  .broschuere-pdf a:hover { text-decoration: underline; }

  /* ---------- Footer ---------- */
  .colophon {
    grid-area: footer;
    border-top: 1px solid var(--line);
    padding: 1rem 1.25rem 1.6rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .02em;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
  }
  .colophon strong { color: var(--accent); }

  /* ---------- Social Media / Homepage (Rubrik + Footer) ---------- */
  .social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
  .social__link {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    text-decoration: none;
  }
  .social .icon { flex: none; width: 1.25rem; height: 1.25rem; }
  .social--rubrik { flex-direction: column; margin-top: 1rem; }
  .social--rubrik .social__link {
    padding: .75rem 1rem;
    background: linear-gradient(140deg, #1d3f8a, var(--navy-deep));
    border-left: 4px solid var(--accent);
    color: #F2F4F8;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: transform .15s ease;
  }
  .social--rubrik .social__link:hover { transform: translateX(2px); }
  @media (min-width: 600px) {
    .social--rubrik { flex-direction: row; }
    .social--rubrik li { flex: 1 1 auto; }
    .social--rubrik .social__link { height: 100%; }
  }
  .social--footer { justify-content: center; margin-bottom: .9rem; }
  .colophon .social__link {
    padding: 0 .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--navy);
    text-decoration: none;
  }
  .colophon .social__link:hover { border-color: var(--accent); color: var(--accent); }
  .social--footer .icon { width: 1rem; height: 1rem; }

  /* ---------- Back to top (mobile-first, long single-scroll page) ---------- */
  .to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
  @media (min-width: 900px) { .to-top { display: none; } }
  @media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s ease; transform: none; } }

  /* ---------- Desktop layout ---------- */
  @media (min-width: 900px) {
    .page {
      grid-template-columns: 15rem 1fr;
      grid-template-areas:
        "masthead masthead"
        "nav content"
        "footer footer";
    }
    .hero__row { gap: 1.1rem; }
    .menu-toggle { display: none; }
    .rubrics__list,
    .rubrics.is-open .rubrics__list { display: contents; }
    .rubrics {
      display: flex;
      gap: .4rem;
      flex-direction: column;
      overflow: visible;
      border-bottom: none;
      border-right: 1px solid var(--line);
      padding: 1.4rem 1rem;
      align-items: stretch;
      align-self: start;
      position: sticky;
      top: 0;
      height: 100vh;
    }
    .rubric-btn { text-align: left; }
    .content { padding: 2.2rem 2.6rem 4rem; }
  }
