/* Angleich der eingebundenen Live-Ergebnisseite (ergebnisse/) an die Verbandsseite.
   Wird NACH den Stylesheets der Ergebnisseite geladen. Zieht nur Schrift-/Farb-/Raum-Token um
   und gestaltet den eingesetzten Verbandskopf/-fuß. Anzeigeregeln (Live grün usw.) bleiben unberührt.
   build.py hängt beim Bauen die Abschnitte „Navigation“ und „Footer“ aus style.css an (eine Quelle). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --blue: #0b4a7a; --blue-hover: #093c64; --blue-text: #0a5590; --sea-900: #0d2a45; --dssv-rot: #c8102e; --dssv-gold: #e5a800; --radius-s: 10px; --ease: cubic-bezier(.22,.61,.36,1);
  --ink: #14212e; --ground-2: #f5f5f7; --hair-2: #e8e8ed;
  --r: 12px; --r-l: 18px; --pill: 980px;
  /* Token der Verbandsseite, die Kopf/Fuß brauchen */
  --bg: #ffffff; --bg-alt: #f3f6f9; --ink-2: #4a5866; --ink-3: #5f6c79; --sea: #e5eef6;
  --hairline: #cbd3db; --hairline-soft: #e2e8ee; --live: #1a9a4a; --nav-h: 64px;
}
.erg { --primary: #0b4a7a; --primary-dark: #093c64; --primary-50: #e5eef6; --canvas: #f3f6f9; --ink: #14212e; --soft: #4a5866; --muted: #5f6c79; --line: #cbd3db; --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
body { font-family: var(--font); letter-spacing: -0.012em; overflow-x: clip; }
html { scroll-padding-top: calc(var(--nav-h) + 72px); }
.wrap { max-width: 1120px; padding: 0 22px; }

/* Bereichsleiste der Ergebnisseite (früherer Kopf) unter dem Verbandskopf */
header.top { top: var(--nav-h); z-index: 40; }
header.top .wrap { min-height: 52px; justify-content: flex-start; }
/* „Ergebnisse“-Knopf doppelt zur Leiste und zum Verbandskopf → ausgeblendet */
header.top .actions { display: none; }
.actions .btn, .btn.menu-btn { min-height: 44px; }
nav.main a { white-space: nowrap; }
/* Handy: Bereiche als waagerecht wischbare Leiste statt zweitem Menü-Knopf (Verbandskopf hat schon eins) */
@media (max-width: 980px) {
  header.top .btn.menu-btn { display: none; }
  header.top nav.main { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 2px; margin: 0 -22px; padding: 0 12px; -webkit-overflow-scrolling: touch; }
  header.top nav.main::-webkit-scrollbar { display: none; }
  header.top nav.main a { font-size: 15px; }
}

/* Verbandsfuß: Regeln der Ergebnisseite für „footer a“ zurücksetzen */
footer.footer a { display: inline; padding: 0; font-size: inherit; }
footer.footer .brand { display: flex; }
footer.footer ul { list-style: none; }
.nav .brand img { display: block; }


/* Design-Runde 4 (Ergebnisse, Handy und Tablet): Nebentexte lesbar (≥ 14 px, ab Tablet 16 px), größere Platzmarken */
.erg .wer span, .erg .klein, .erg .feld span, .erg .ak h2 small, .erg .pkt small, .erg .rw em, .erg .rw small { font-size: 14px; }
.erg .platz { width: 36px; height: 36px; font-size: 16px; }
.erg .ak { border-radius: 14px; overflow: clip; }
@media (min-width: 700px) {
  .erg .wer span, .erg .klein, .erg .feld span, .erg .ak h2 small, .erg .pkt small, .erg .rw em, .erg .rw small { font-size: 16px; }
  .erg .wer b, .erg .wer strong { font-size: 18px; }
  .erg .pkt { font-size: 18px; }
  .erg .det { font-size: 17px; }
}

/* Abstand zwischen Inhalt und Verbandsfuß (sonst endet die letzte Wettkampfkarte direkt an der Farbleiste, 04.11.2026) */
main#main { padding-bottom: 72px; }
@media (max-width: 760px) { main#main { padding-bottom: 48px; } }

/* ===== aus style.css übernommen (build.py) ===== */
/* ---------- Navigation ---------- */
@view-transition { navigation: auto; }
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--hairline-soft);
  view-transition-name: kopf;
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: .02em; view-transition-name: marke; }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; border-radius: 8px; transition: background-color .15s ease-out; }
.nav-links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a.is-active { font-weight: 600; }
.nav-links a.is-active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-links li:last-of-type { margin-left: 4px; }
.nav-live { gap: 8px; color: #0d5a2b !important; font-weight: 600 !important; }
.nav-live::before { content: ""; position: absolute; inset: 7px 0; border-radius: 980px; background: #e8f6ed; z-index: -1; }
.nav-live::after { display: none; }
.nav-live:hover { background: transparent !important; } .nav-live:hover::before { background: #d6efdf; }
.nav-links a.nav-live { z-index: 0; padding: 0 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(26,154,74,.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26,154,74,.5);} 70% { box-shadow: 0 0 0 7px rgba(26,154,74,0);} 100% { box-shadow: 0 0 0 0 rgba(26,154,74,0);} }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; }
.nav-toggle:hover { background: var(--bg-alt); }
@media (max-width: 1080px) { .nav-links a { padding: 0 8px; font-size: 13.5px; } .nav-links a::after { left: 8px; right: 8px; } }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; z-index: 60;
    border-bottom: 1px solid var(--hairline); padding: 8px 22px 20px;
    box-shadow: 0 16px 32px rgba(13,42,69,.08);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links li { border-bottom: 1px solid var(--hairline-soft); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 12px; }
  .nav-links li:last-of-type { margin-left: 0; }
  .nav-links a { display: flex; padding: 0; min-height: 52px; font-size: 18px; border-radius: 0; }
  .nav-links a:hover { background: transparent; }
  .nav-links a::after { display: none; }
  .nav-links a.is-active { color: var(--blue-text); }
  .nav-links a.nav-live { display: inline-flex; padding: 0 20px; min-height: 48px; width: auto; }
  .nav-live::before { inset: 0; }
}


/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--hairline-soft); padding: 48px 0 32px; font-size: 14px; line-height: 1.5; color: var(--ink-2); border-top: 3px solid transparent; border-image: linear-gradient(90deg, #14212e 0 33.3%, var(--dssv-rot) 33.3% 66.6%, var(--dssv-gold) 66.6% 100%) 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4, .footer .fh { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--ink-2); display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }


.brand .brand-logo, .brand-logo { width: auto; height: 38px; max-width: 100%; }
.footer .brand .brand-logo { height: 44px; }
