/* Static Spielplan pages. Same tokens as src/theme/tokens.css (copied: these pages load no app bundle), no antd. */
:root {
  --color-text: #1D1D1F;
  --color-text-secondary: #5C5C63;
  --color-primary: #0071E3;
  --color-primary-hover: #0077ED;
  --color-primary-text: #0066CC;
  --color-primary-soft: #E5F0FC;
  --color-success: #1D6F30;
  --color-success-soft: #E4F4E8;
  --color-warning: #7A4A00;
  --color-warning-soft: #FFF1D6;
  --color-page: #F4F6FB;
  --color-surface-solid: #FFFFFF;
  --color-surface-inset: rgba(255, 255, 255, 0.6);
  --color-fill-strong: rgba(118, 118, 128, 0.18);
  --color-line: rgba(60, 60, 67, 0.12);
  --glass-background: rgba(255, 255, 255, 0.55);
  --glass-filter: blur(30px) saturate(180%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(31, 45, 80, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --backdrop:
    radial-gradient(1100px 700px at 8% 0%, #CFE4FF 0%, transparent 60%),
    radial-gradient(1000px 700px at 95% 14%, #E3D9FF 0%, transparent 60%),
    radial-gradient(1100px 800px at 5% 60%, #D2F1EA 0%, transparent 60%),
    radial-gradient(1100px 800px at 95% 95%, #D6E6FF 0%, transparent 60%),
    var(--color-page);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 980px;
  --gutter: 22px;
  --max: 1124px;
  --text: 820px;
}
/* area "Schulferien", same values as body.area-school-holidays in src/sharedComponents/AreaSwitcher.css */
body.area-school-holidays {
  --color-primary: #0B7A5C;
  --color-primary-hover: #0A6E53;
  --color-primary-text: #085C45;
  --color-primary-soft: #E3F5EE;
  --backdrop:
    radial-gradient(1100px 700px at 8% 0%, #C7EEDF 0%, transparent 60%),
    radial-gradient(1000px 700px at 95% 20%, #E4F3D6 0%, transparent 60%),
    radial-gradient(1100px 800px at 40% 100%, #CDEFE6 0%, transparent 60%),
    #F2F7F4;
}
@media (max-width: 767.98px) { :root { --gutter: 14px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--backdrop);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary-text); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); margin-top: 4rem; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
p { max-width: var(--text); margin: 0 0 .9em; color: #424245; }
.muted { color: var(--color-text-secondary); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main.container { flex: 1 0 auto; padding-bottom: 4.5rem; }

/* header and footer mirror the app shell (AppShell.css, AreaSwitcher.css): same size and position, so nothing jumps between app and wiki */
.site-header {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 58px;
  margin: var(--gutter) var(--gutter) 0;
  padding: 4px 10px 4px 20px;
  border-radius: 30px;
  font-size: 16px;
  line-height: 1.5;
  background: var(--glass-background);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; gap: 8px; color: var(--color-text); font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.site-header__logo:hover { text-decoration: none; }
.site-header__logo svg { display: block; }
.site-header .button { margin-left: auto; flex-shrink: 0; }
.area-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 17px;
  font-weight: 700;
}
.area-pill:hover { text-decoration: none; filter: brightness(.97); }
.area-pill__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-surface-solid); color: var(--color-primary); }
.site-nav { display: flex; gap: 0 28px; min-width: 0; font-size: 14px; }
.site-nav a { display: flex; align-items: center; min-height: 48px; color: var(--color-text-secondary); white-space: nowrap; }
.site-nav a:hover { color: var(--color-text); text-decoration: none; }
.site-nav a.is-active { color: var(--color-text); font-weight: 600; }
/* like the app on phones: logo and button only, the hubs are in the footer */
@media (max-width: 767.98px) {
  .site-header { gap: 4px; padding: 4px 8px 4px 16px; }
  .area-pill, .site-nav { display: none; }
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 24px;
  padding: 6px var(--gutter);
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 13px;
  color: var(--color-text-secondary);
}
.site-footer a { display: flex; align-items: center; min-height: 44px; color: #424245; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s;
}
.button:hover { background: var(--color-primary-hover); }
.button--primary { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }

/* breadcrumb */
.crumbs { margin: 1.25rem 0 .75rem; font-size: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "›"; color: var(--color-text-secondary); margin: 0 6px; }
.crumbs [aria-current] { color: var(--color-text); font-weight: 600; }

/* hero */
.hero { display: flex; gap: 24px; align-items: center; margin-bottom: 1.5rem; }
.hero--text { display: block; }
.hero h1 { margin-bottom: .3em; }
.hero .badge { flex-shrink: 0; box-shadow: 0 8px 32px rgba(31, 45, 80, 0.12); }
.lead { max-width: 820px; margin-bottom: 0; font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); line-height: 1.4; color: var(--color-text-secondary); }
@media (max-width: 575.98px) { .hero { flex-direction: column; align-items: flex-start; } }

/* team badge */
.badge { border-radius: 50%; object-fit: contain; background: var(--color-surface-solid); border: 1px solid #D2D2D7; }
.badge--initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--color-text); }

/* glass panels */
.cta, .facts dl, .events__table, .steps li, details {
  background: var(--glass-background);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* cta */
.cta { border-radius: var(--radius-lg); padding: 24px; margin: 1.75rem 0 0; }
.cta--compact { margin-top: 3.5rem; text-align: center; }
.cta__note { margin: 12px 0 0; color: var(--color-text-secondary); font-size: 15px; }
.cta__stores { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.cta__stores a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--color-text); color: #fff; font-size: 15px; font-weight: 500; }
.cta__stores a:hover { text-decoration: none; opacity: .88; }

/* facts */
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 40px; margin: 0; border-radius: 22px; padding: 6px 24px; }
.facts dl > div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.facts dt { width: 150px; flex-shrink: 0; font-size: 15px; color: var(--color-text-secondary); }
.facts dd { margin: 0; flex: 1; min-width: 0; font-size: 16px; font-weight: 500; }

/* events */
.events__table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 22px; overflow: hidden; font-size: 16px; }
.events__table th, .events__table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.events__table th:first-child, .events__table td:first-child { padding-left: 24px; white-space: nowrap; }
.events__table th:last-child, .events__table td:last-child { padding-right: 24px; }
.events__table th { padding-top: 14px; padding-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.events__table td:nth-child(2) { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.events__table tr:last-child td { border-bottom: 0; }
.events__name { font-weight: 600; }
.events__location { display: block; color: var(--color-text-secondary); font-size: 14px; }
.events__note, .events__empty { color: var(--color-text-secondary); font-size: 14px; margin-top: .75rem; }
.tag { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.tag--home { background: var(--color-success-soft); color: var(--color-success); }
.tag--away { background: var(--color-fill-strong); color: var(--color-text); }
.tag--tentative { background: var(--color-warning-soft); color: var(--color-warning); }

/* School holiday pages */
.holidays__year { margin-top: 1.25rem; }
.holidays__year h3 { margin-bottom: .6rem; }
.holidays__table td:nth-child(2), .holidays__table td:nth-child(3) { font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.holidays__note { max-width: 820px; margin: 1rem 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--color-warning-soft); color: var(--color-warning); font-size: 15px; }
.holidays__source { margin-top: 2rem; color: var(--color-text-secondary); font-size: 14px; }
@media (max-width: 575.98px) {
  .events__table thead { display: none; }
  .events__table tr { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 10px 16px; border-bottom: 1px solid var(--color-line); }
  .events__table tr:last-child { border-bottom: 0; }
  .events__table td, .events__table td:first-child, .events__table td:last-child { border: 0; padding: 2px 0; }
  .events__table td:nth-child(3) { grid-column: 1 / -1; }
  .events__table td:nth-child(4) { grid-column: 1 / -1; font-size: 14px; }
}

/* how-to */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.steps li { padding: 20px 22px 22px; border-radius: 22px; }
.steps li::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; font-size: 16px; }
.howto__devices { margin-top: 1.75rem; font-size: 1.35rem; }
details { border-radius: var(--radius-md); padding: 0 20px; margin-bottom: 8px; }
details summary { cursor: pointer; display: flex; align-items: center; min-height: 56px; font-size: 18px; font-weight: 600; }
details ol { margin: 0 0 14px; padding-left: 22px; font-size: 16px; color: #424245; }
details li { margin-bottom: 6px; }
.guide__note { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--color-primary-soft); color: var(--color-text); font-size: 15px; }
.faq__item p { margin: 0 0 16px; font-size: 16px; }

/* why */
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.why__list li { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 22px; background: var(--color-surface-inset); }
.why__list p { margin: 0; font-size: 16px; }

/* grids */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.grid--teams { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--teams a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px 8px 10px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius-md); background: var(--color-surface-inset); color: var(--color-text); font-size: 16px; font-weight: 500; }
.grid--teams a:hover, .grid--leagues a:hover { background: rgba(255, 255, 255, 0.85); text-decoration: none; }
.grid--teams .is-current a { background: var(--color-primary-soft); }
.grid--leagues { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.grid--leagues a { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 84px; padding: 16px 18px; border: var(--glass-border); border-radius: 20px; background: var(--glass-background); box-shadow: var(--glass-shadow); color: var(--color-text); }
.grid--leagues strong { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.grid--leagues .muted { font-size: 14px; }

.links { list-style: none; padding: 0; margin: 0; }
.links li { margin-bottom: 6px; }
.links--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.links--inline li { margin: 0; }
.links--inline a, .related a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius-pill); background: var(--color-surface-inset); font-size: 15px; font-weight: 500; }
.sport-block h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.sport-block h2 a { color: var(--color-text); }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.5rem; }
