@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #17181b;
  --muted: #6b6e76;
  --line: #e6e6e3;
  --red: #e2231a;
  --red-soft: #fde8e6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --ink: #f2f2f0;
    --muted: #9a9da5;
    --line: #2b2d32;
    --red: #ff4a3d;
    --red-soft: #3b1f1d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Schibsted Grotesk", system-ui, sans-serif;
  font-feature-settings: "tnum" 0;
}
a { color: inherit; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; max-width: 11ch; }
h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; }

.top, main > section, main > article, .foot {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.top { padding: 28px 0 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { display: block; }

/* Einstieg */
.hero {
  display: grid;
  grid-template-columns: 1.1fr minmax(320px, 440px);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding: clamp(56px, 10vw, 128px) 0 clamp(64px, 10vw, 128px);
}
.hero-plain { grid-template-columns: 1fr; }
.lead { font-size: 1.25rem; line-height: 1.45; color: var(--muted); margin: 22px 0 36px; max-width: 30ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.82; }
.quiet { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

/* Monatsblatt */
.sheet { border: 1px solid var(--line); border-radius: 24px; padding: 28px 28px 24px; }
.cal { margin: 0; }
.cal figcaption { font-size: 1.15rem; color: var(--muted); margin: 0 0 18px 6px; }
.cal figcaption span { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.cal table { width: 100%; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.cal th { font-size: 0.8rem; font-weight: 500; color: var(--muted); padding: 0 0 4px; }
.cal td { padding: 0; height: 38px; text-align: center; font-feature-settings: "tnum" 1; }
.cal td span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 500;
}
.cal td.sun { color: var(--red); }
.cal td.mark span { background: var(--red); color: #fff; font-weight: 800; }
.cal td.minor span { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); font-weight: 800; }
.cal td.mark.minor span { box-shadow: none; }
.cal td.range {
  color: var(--red);
  background: var(--red-soft);
}
.cal td.range span { font-weight: 800; }
.cal td.range-start { background: linear-gradient(to right, transparent 50%, var(--red-soft) 50%); }
.cal td.range-end { background: linear-gradient(to left, transparent 50%, var(--red-soft) 50%); }
.cal td.range-start.range-end { background: none; }
.cal td.range-start span, .cal td.range-end span { background: var(--red-soft); }
.cal td.today span { box-shadow: inset 0 0 0 2px var(--ink); }
.legend {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 6px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
.legend li { display: flex; gap: 14px; }
.legend .when { min-width: 4.4rem; font-weight: 800; color: var(--red); }

/* Termine */
.dates { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.dates h2 { margin-bottom: 24px; }
.datelist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 56px;
}
.datelist li {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.datelist time { font-weight: 800; }
.datelist .rel { color: var(--muted); font-size: 0.95rem; }
.datelist li.now .rel { color: var(--red); font-weight: 500; }
.datelist li.past { display: none; }

/* Rechtstexte */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal > * { max-width: 44rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); max-width: none; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 6px; }
.legal p { margin: 0 0 10px; }
.fine { color: var(--muted); font-size: 0.92rem; }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 0.9rem;
  color: var(--muted);
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 22px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .datelist { columns: 1; }
}
@media (max-width: 420px) {
  .sheet { padding: 22px 14px 18px; border-radius: 20px; }
  .cal td span { width: 34px; height: 34px; }
  .cal td { height: 34px; }
  .datelist li { grid-template-columns: 7.4rem 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
