/* 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";
  }

  /* ---------- Masthead ---------- */
  .masthead {
    grid-area: masthead;
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    color: #F2F4F8;
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .masthead::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 220%;
    background:
      radial-gradient(circle at 50% 18%, rgba(242,244,248,0.14) 0, rgba(242,244,248,0.14) 1.5px, transparent 1.6px) 0 0/28px 28px,
      linear-gradient(rgba(242,244,248,0.09), rgba(242,244,248,0.09)) 50% 0 / 1.5px 100% no-repeat,
      radial-gradient(circle at 50% 62%, transparent 0 13%, rgba(242,244,248,0.09) 13% 13.6%, transparent 13.6%);
    pointer-events: none;
    opacity: .7;
  }
  .masthead__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: .85rem;
  }
  .crest {
    flex: none;
    width: 3rem;
    height: 3.4rem;
    object-fit: contain;
  }
  .wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: clamp(1.6rem, 5.4vw, 2.1rem);
    line-height: .95;
    margin: 0;
  }
  .wordmark small {
    display: block;
    font-family: var(--font-mono);
    text-transform: none;
    letter-spacing: .02em;
    font-size: .68rem;
    color: rgba(242,244,248,.72);
    margin-top: .3rem;
    font-weight: 400;
  }
  .masthead__meta {
    position: relative;
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: rgba(242,244,248,.85);
  }
  .meta-chip {
    border: 1px solid rgba(242,244,248,.3);
    border-radius: 999px;
    padding: .25rem .65rem;
  }
  .meta-chip.is-accent {
    background: #6C9BFF;
    border-color: #6C9BFF;
    color: #0A1526;
    font-weight: 600;
  }

  /* ---------- Rubric nav (jump links, not view switches) ---------- */
  .rubrics {
    grid-area: nav;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .6rem .9rem;
  }
  .rubrics::-webkit-scrollbar { display: 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: 999px;
    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: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }
  @media (max-width: 899px) {
    .rubrics { padding: .55rem .7rem; -webkit-overflow-scrolling: touch; }
    .rubric-btn { padding: .6rem 1.05rem; }
  }

  /* ---------- 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: .7rem;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .4rem;
  }
  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(--text);
  }
  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: 4px solid var(--accent);
    padding: 1rem 1.1rem;
    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);
  }
  .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;
    align-items: baseline;
    gap: .8rem;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    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;
    width: 6.2rem;
  }
  .toc-row__teaser { color: var(--text-muted); font-size: .9rem; }

  /* ---------- Live badge ---------- */
  .live { display: inline-flex; align-items: center; gap: .4rem; }
  .live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); 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: 2px solid var(--accent); padding: .75rem .85rem; }
  .sponsor-card__name { font-weight: 600; font-size: .92rem; }
  .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 { background: var(--navy); color: #F2F4F8; padding: 1.3rem 1.2rem; text-align: center; }
  .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(--text-muted); margin: 0 0 .25rem; }
  .fact dd { margin: 0; font-size: .92rem; font-weight: 600; }
  .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; }

  /* ---------- 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); }

  /* ---------- 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";
    }
    .masthead { padding: 2.2rem 2rem 2.4rem; }
    .masthead__row { gap: 1.1rem; }
    .crest { width: 3.6rem; height: 4.1rem; object-fit: contain; }
    .rubrics {
      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; }
  }
