/* Guess the Peak — Startseite. Farben: Dunkel „Nachtblau“, Hell „Gletscher“ (Entscheid 2026-10-19) */
:root,
:root[data-theme="dark"] {
  --bg: #0A0E13; --card: #0F151C; --fill: #121922; --line: #2A3644;
  --text: #E8EEF3; --muted: #A9B4BE; --dim: #7A8894;
  --glow: #9FD3FF; --glow-text: #9FD3FF;
  --contour: #3A4856; --contour-bold: #6E8296;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EDF2F5; --card: #FFFFFF; --fill: #DCE6EC; --line: #C3D1DA;
  --text: #0E1A24; --muted: #455663; --dim: #566672;
  --glow: #1F6FB2; --glow-text: #1A5F99;
  --contour: #B5C6D2; --contour-bold: #7F98AA;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
main { flex: 1; display: flex; flex-direction: column; }
.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* Kopf */
.top {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.brand { text-decoration: none; font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.nav a, .nav .soon { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .soon { cursor: default; }
.lang {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted);
}
.lang [aria-current="true"] { color: var(--text); }
.theme { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.theme button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--muted);
}
.theme button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Hero */
.hero { padding-top: 72px; text-align: center; }
.kicker { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glow-text); font-weight: 400; margin: 0; }
.kicker.dim { font-size: 12px; color: var(--dim); }
.hero h1 {
  margin: 22px 0 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(54px, 11vw, 104px); line-height: 0.95; letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--glow-text); }
.hero p { margin: 28px auto 0; max-width: 520px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.cta {
  display: inline-block; margin-top: 36px; text-decoration: none;
  border: 1px solid var(--glow); color: var(--glow-text);
  padding: 16px 30px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 999px;
  transition: background .15s, color .15s;
}
.cta:hover { background: var(--glow); color: var(--bg); }

/* Grat */
.ridge { position: relative; margin-top: 48px; height: 300px; }
.ridge svg { display: block; width: 100%; height: 100%; }
.r-far { fill: var(--fill); stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.r-near { fill: var(--bg); stroke: var(--glow); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
:root[data-theme="dark"] .r-near { filter: drop-shadow(0 0 6px rgba(159, 211, 255, 0.45)); }
.peak {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; color: var(--glow-text); letter-spacing: 0.1em; white-space: nowrap;
}
.peak i { width: 1px; height: 28px; background: var(--glow); }

/* Spielkarten */
.games { padding-top: 24px; }
/* 4 – 2 – 1 Spalten, damit nie eine Karte allein in der letzten Reihe steht */
.grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }
.card {
  text-decoration: none; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 0;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--glow); transform: translateY(-2px); }
.card svg { display: block; width: 100%; height: auto; font-family: "Instrument Sans", system-ui, sans-serif; }
.foot {
  margin: 0 -20px; padding: 16px 20px; border-top: 1px solid var(--line);
  font-family: "Instrument Serif", Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1.05;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
/* Tagesstand: klein und gedämpft neben dem Namen */
.state {
  font-family: "Instrument Sans", system-ui, sans-serif; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.state.done { color: var(--glow-text); }

/* Archiv */
.page-head { padding-top: 56px; }
.page-head h1 {
  margin: 18px 0 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(48px, 8vw, 80px); line-height: 1; letter-spacing: -0.01em;
}
.page-head p { margin: 18px 0 0; max-width: 520px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.archive { padding-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.archive .card { padding-bottom: 0; scroll-margin-top: 16px; }
.archive .card.is-target { border-color: var(--glow); }
.archive .card:hover { transform: none; border-color: var(--line); }
.archive h2 {
  margin: 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1.05;
}
.days { list-style: none; margin: 0 -20px; padding: 0; }
.days li { border-top: 1px solid var(--line); }
.days a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 20px; text-decoration: none; font-size: 14px;
}
.days a:hover { background: var(--fill); }
.days li:last-child a { border-radius: 0 0 16px 16px; }
@media (max-width: 1040px) { .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .archive { grid-template-columns: 1fr; } }

/* SVG-Striche über Variablen, damit das Umschalten alles mitnimmt */
.s-line { stroke: var(--line); stroke-width: 1; fill: none; }
.s-text { stroke: var(--text); stroke-width: 1.4; fill: none; stroke-linejoin: round; }
.s-glow { stroke: var(--glow); stroke-width: 1.4; fill: none; stroke-linejoin: round; }
.s-glow-thin { stroke: var(--glow); stroke-width: 1; fill: none; }
.s-ring { stroke: var(--glow); stroke-width: 1.6; fill: none; }
.s-ring-bold { stroke: var(--glow); stroke-width: 1.8; fill: none; }
.s-tick { stroke: var(--dim); stroke-width: 1; }
.s-dash { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 4; }
.s-fill { fill: var(--fill); }
.s-fill-text { fill: var(--fill); stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; }
.s-card-glow { fill: var(--card); stroke: var(--glow); stroke-width: 1.4; stroke-linejoin: round; }
.s-contour { fill: none; stroke: var(--contour); stroke-width: 0.8; }
.s-contour-bold { fill: none; stroke: var(--contour-bold); stroke-width: 1.2; }
.t-dim { fill: var(--dim); }
.t-text { fill: var(--text); }
.t-glow { fill: var(--glow-text); }

/* Fuß */
.bottom {
  padding-top: 48px; padding-bottom: 36px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12px; color: var(--dim);
}

/* Handy */
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 18px; padding-bottom: 18px; gap: 14px; }
  .nav { gap: 18px; }
  .hero { padding-top: 40px; }
  .hero p { font-size: 14px; }
  .ridge { margin-top: 36px; height: 200px; }
  .foot { font-size: 28px; }
  .bottom { padding-top: 36px; }
}
@media (max-width: 420px) {
  .top { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .cta { transition: none; }
  .card:hover { transform: none; }
}

/* Impressum, Datenschutz */
.legal { padding-top: 40px; padding-bottom: 24px; }
.legal article { max-width: 720px; }
.legal h1 {
  margin: 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: -0.01em;
}
.legal h2 { margin: 36px 0 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--glow-text); }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--muted); }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal a { color: var(--text); }
.legal code { font-size: 13px; color: var(--text); }
.legal .note { font-size: 13px; color: var(--dim); }
.legal .attrib { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--dim); }
.legal strong { color: var(--text); font-weight: 500; }
