/* trailLion - eigene Palette "Löwen-Gold", helles Design: Warmweiß + Gold/Bernstein + Rost (Regel 1: projekt-eigen) */
:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-2: #f0ead9;
  --line: rgba(46, 36, 24, 0.11);
  --text: #2e2418;
  --muted: #746a58;
  --amber: #e8a01f;
  --amber-soft: rgba(232, 160, 31, 0.18);
  --gold: #a06e08;
  --gold-dark: #7d5406;
  --rust: #c2571f;
  --rust-soft: rgba(194, 87, 31, 0.1);
  --done: #4c7a0d;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 3px rgba(46, 36, 24, 0.07);
  --shadow-lift: 0 10px 24px rgba(46, 36, 24, 0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Dezenter fixer Berg-Hintergrund (position:fixed statt background-attachment: iOS-kompatibel) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(assets/bg-mountains.jpg) center / cover no-repeat;
  opacity: 0.13;
  pointer-events: none;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-weight: 800; letter-spacing: 0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.25rem, 4.5vw, 2rem); text-transform: uppercase; margin-bottom: 0.4rem; overflow-wrap: break-word; }
h2 .accent { color: var(--gold); }
img { max-width: 100%; }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 28px; }

a { color: var(--gold); }

/* E03 Sticky Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-head.scrolled { box-shadow: 0 3px 14px rgba(46, 36, 24, 0.12); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.03em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.logo b { color: var(--gold); font-weight: 800; }
.logo-badge { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--amber); box-shadow: var(--shadow); }
.logo-berg { width: 72px; height: 30px; object-fit: contain; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--gold-dark); background: var(--amber-soft); }

/* Hero */
.hero { padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: center; }
.hero-visual img {
  width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 46%, #000 45%, transparent 93%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 46%, #000 45%, transparent 93%);
}
.hero-kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.55rem, 7.2vw, 3.6rem); text-transform: uppercase; overflow-wrap: break-word; }
.hero h1 .volt { color: var(--gold); background: linear-gradient(transparent 62%, var(--amber-soft) 62%); }
.hero-sub { color: var(--muted); max-width: 560px; margin: 16px 0 28px; font-size: 1.05rem; }

/* E07 Countdown */
.countdown { display: flex; gap: 12px; margin: 26px 0; flex-wrap: wrap; }
.cd-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; text-align: center; min-width: 86px; box-shadow: var(--shadow);
}
.cd-box b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.cd-box span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat span { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* GEO Answer-Box */
.answer-box {
  background: var(--surface); border-left: 3px solid var(--gold); border-radius: var(--radius-s);
  padding: 18px 22px; margin: 40px 0 0; max-width: 760px; box-shadow: var(--shadow);
}
.answer-box p { font-size: 0.98rem; }

/* E21 Pills */
.pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.pill-basis { background: var(--surface-2); color: var(--muted); }
.pill-build { background: var(--amber-soft); color: var(--gold-dark); }
.pill-entlastung { background: rgba(59, 130, 196, 0.12); color: #2b6a99; }
.pill-peak { background: var(--rust-soft); color: var(--rust); }
.pill-taper { background: rgba(46, 36, 24, 0.07); color: var(--text); }
.pill-rennwoche { background: var(--amber); color: var(--gold-dark); }
.pill-now { background: var(--rust); color: #fff; margin-left: 8px; }

/* Wochenplan rows */
.week-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.week-row {
  display: grid; grid-template-columns: 52px 64px 120px 64px 1fr; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.week-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.week-row.is-current { border-color: var(--gold); background: #fffaf0; }
.week-row .wnum { font-weight: 800; font-size: 1.05rem; color: var(--muted); }
.week-row.is-current .wnum { color: var(--gold); }
.week-row .wdate { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.week-row .wkm { font-weight: 800; font-variant-numeric: tabular-nums; }
.week-row .wkm small { color: var(--muted); font-weight: 400; }
.week-row .wmain { font-size: 0.92rem; }
.week-row .wmain .wkey { display: block; font-size: 0.8rem; color: var(--muted); }

/* Meilenstein-Strip (Plan-Ausblick jenseits von 2 Wochen) */
.milestones {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px;
  background: var(--surface-2); border-left: 3px solid var(--gold);
  border-radius: var(--radius-s); padding: 12px 16px; margin-top: 16px;
}
.ms-head { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rust); }
.ms-item { font-size: 0.85rem; }
.ms-item b { color: var(--gold-dark); font-variant-numeric: tabular-nums; }
.ms-item small { display: block; color: var(--muted); font-size: 0.72rem; }

/* Kalender (Daily-Ansicht) */
.cal-head { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.cal-head h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; min-width: 180px; text-align: center; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr) 1.5fr; gap: 6px; margin-top: 14px;
}
.cal-sum { background: var(--surface-2); border-left: 3px solid var(--gold); box-shadow: none; }
.cal-sum.is-current { border-color: var(--gold); background: #fffaf0; box-shadow: var(--shadow); }
.cal-sum.is-far { background: transparent; box-shadow: none; border: 1px dashed var(--line); border-left: 3px dashed var(--line); }
.cal-sum .sum-line { display: block; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.cal-sum .sum-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.cal-sum .sum-done { color: var(--gold-dark); }
.cal-sum .sum-done b { color: var(--gold-dark); }
.cal-dow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  min-height: 86px; padding: 6px 8px; font-size: 0.78rem; box-shadow: var(--shadow);
  position: relative;
}
.cal-cell.is-done .cal-km { color: var(--done); }
.cal-cell.is-miss .cal-km { color: var(--rust); }
.cal-cell.has-pop .cal-km { cursor: help; }

/* Soll/Ist-Popup (Hover über die Soll-Zahl, mobil per Tap) */
.cal-pop {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  display: block; width: max-content; max-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow-lift); padding: 9px 11px; z-index: 30;
  font-size: 0.74rem; line-height: 1.5; text-align: left; font-weight: 400;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.cal-pop::after {
  content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--line);
}
.cal-cell.pop-left .cal-pop { left: 0; transform: none; }
.cal-cell.pop-left .cal-pop::after { left: 18px; margin-left: 0; }
.cal-cell.pop-right .cal-pop { left: auto; right: 0; transform: none; }
.cal-cell.pop-right .cal-pop::after { left: auto; right: 18px; margin-left: 0; }
.cal-km:hover ~ .cal-pop, .cal-pop:hover, .cal-cell.pop-open .cal-pop {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.cal-pop .pop-row { display: block; color: var(--text); }
.cal-pop .pop-row b { font-variant-numeric: tabular-nums; }
.cal-pop .pop-none { color: var(--muted); }
.cal-pop .pop-entry {
  display: block; margin-top: 5px; padding-top: 5px;
  border-top: 1px dashed var(--line); color: var(--muted);
}
.cal-pop .pop-entry b { color: var(--text); }
.cal-pop .pop-notiz { display: block; color: var(--muted); font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .cal-pop { transition: none; }
}
.cal-cell.is-empty { background: transparent; border-color: transparent; box-shadow: none; }
.cal-cell.is-rest { background: var(--surface-2); box-shadow: none; }
.cal-cell.is-today { border: 2px solid var(--gold); }
.cal-cell.is-race { background: var(--amber); border-color: var(--gold); }
.cal-cell.is-race .cal-label, .cal-cell.is-race .cal-km { color: var(--gold-dark); }
.cal-cell.is-long { border-left: 3px solid var(--gold); }
.cal-day { font-weight: 700; color: var(--muted); font-size: 0.72rem; }
.cal-cell.is-today .cal-day { color: var(--gold); }
.cal-km { display: block; font-weight: 800; font-size: 0.95rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cal-label { display: block; color: var(--muted); line-height: 1.3; margin-top: 1px; overflow-wrap: break-word; }

/* Zonen-Tabelle (Daily) */
.zonen-details { margin: 22px 0 4px; max-width: 760px; }
.zonen-details summary { cursor: pointer; font-size: 0.88rem; font-weight: 700; color: var(--gold-dark); }
.zonen-details .table-scroll { margin-top: 12px; }
.zonen-details table { min-width: 520px; }
.zonen-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* Etappen cards - E18 hover lift */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.card h3 { font-size: 0.98rem; margin-bottom: 2px; }
.card .et-num { color: var(--gold); font-weight: 800; margin-right: 6px; }
.card .et-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.card .et-meta b { color: var(--text); }
.card img.profil { width: 100%; height: 72px; display: block; border-radius: var(--radius-s); background: var(--surface-2); }
.card .et-char { font-size: 0.83rem; color: var(--muted); margin-top: 10px; }

/* Strecke layout */
.strecke-flex { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; margin-top: 26px; }
.map-box { flex: 0 1 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.map-box img { width: 100%; display: block; }
.map-box figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* Tables */
.table-scroll { overflow-x: auto; margin-top: 26px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
tr.total td { font-weight: 800; color: var(--gold-dark); border-bottom: none; background: var(--amber-soft); }
.warn-note {
  margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-s);
  background: var(--rust-soft); border-left: 3px solid var(--rust); font-size: 0.9rem; max-width: 760px;
}

/* Log */
.log-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 24px; max-width: 900px; }
.log-form label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); display: block; margin-bottom: 4px; }
.log-form input, .log-form select {
  width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-s); padding: 9px 10px; font: inherit; font-size: 0.92rem;
}
.log-form input:focus, .log-form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.log-form .full { grid-column: 1 / -1; }
.log-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Buttons: hell = keine dunklen/gefüllten Buttons (Regel 4) -> Outline-Varianten */
.btn-ghost {
  background: transparent; border: 1px solid var(--gold); color: var(--gold-dark);
  padding: 9px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: background 0.15s;
}
.btn-ghost:hover { background: var(--amber-soft); }
.btn-solid {
  background: transparent; border: 2px solid var(--gold); color: var(--gold-dark);
  padding: 8px 22px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 0.9rem;
  cursor: pointer; transition: background 0.15s;
}
.btn-solid:hover { background: var(--amber-soft); }
.btn-mini { background: none; border: none; color: var(--rust); cursor: pointer; font-size: 0.85rem; padding: 4px; }
.src-tag { font-size: 0.7rem; font-weight: 700; color: var(--gold-dark); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
tr.is-cross td { color: rgba(46, 36, 24, 0.55); } /* Rad/Kraft: zählt nicht in Lauf-km */

.log-summary { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; max-width: 480px; box-shadow: var(--shadow); }
.log-summary b { color: var(--gold); font-size: 1.3rem; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.4s ease; }

/* PMC (Performance Management Chart) */
.pmc-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 14px; }
.pmc-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 7px 16px; border-radius: 999px; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.pmc-chip:hover { background: var(--surface-2); }
.pmc-chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pmc-chip.is-off { opacity: 0.4; }
.pmc-chip.is-off i { background: var(--muted) !important; }
.pmc-wrap {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow);
}
.pmc-wrap svg { width: 100%; height: auto; display: block; }
.pmc-cross { position: absolute; top: 10px; bottom: 10px; width: 1px; background: rgba(46, 36, 24, 0.35); pointer-events: none; display: none; }
.pmc-tip {
  position: absolute; top: 14px; display: none; pointer-events: none;
  background: var(--text); color: #f7f6f1; border-radius: var(--radius-s);
  padding: 8px 12px; font-size: 0.78rem; line-height: 1.5; white-space: nowrap; z-index: 5;
}
.pmc-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; max-width: 760px; }
.pmc-details { margin-top: 14px; }
.pmc-details summary { cursor: pointer; font-size: 0.88rem; font-weight: 700; color: var(--gold-dark); }

/* YouTube (Klick-zu-Laden) */
.yt-box { margin-top: 26px; max-width: 760px; }
.yt-facade {
  aspect-ratio: 16 / 9; background: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer; overflow: hidden; position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.yt-facade:hover, .yt-facade:focus-visible { border-color: var(--gold); box-shadow: var(--shadow-lift); }
.yt-facade .yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-facade .yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; border: 2px solid #fff;
  color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  background: rgba(46, 36, 24, 0.62); padding-left: 6px; transition: background 0.18s ease, transform 0.18s ease;
}
.yt-facade:hover .yt-play { background: var(--gold); transform: translate(-50%, -50%) scale(1.06); }
.yt-facade .yt-hint {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  background: linear-gradient(transparent, rgba(46, 36, 24, 0.78)); color: #f7f6f1;
  font-size: 0.72rem; text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .yt-facade .yt-play { transition: none; }
}
.yt-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.yt-link { display: inline-block; margin-top: 14px; text-decoration: none; }

/* Strecke: kombinierte Etappen/Pacing-Tabelle */
.strecke-table { min-width: 680px; }
.strecke-table .et-cell { white-space: nowrap; }
.strecke-table .et-cell b { color: var(--gold-dark); margin-right: 4px; }
.strecke-table .et-char-cell { color: var(--muted); font-size: 0.82rem; max-width: 220px; }
.profil-mini { display: block; width: 96px; height: 28px; }
.pacing-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; max-width: 760px; }

/* Trainingslog-Kacheln */
.log-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 26px; max-width: 760px; }
.ltile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
}
.ltile .lt-label { display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rust); margin-bottom: 6px; }
.ltile b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ltile b small { font-size: 0.95rem; color: var(--muted); font-weight: 700; }
.ltile .progress { margin-top: 8px; }
.ltile .lt-sub { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

/* FAQ (E10 Accordion) */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 760px; }
.faq-item summary {
  font-size: 1.02rem; font-weight: 700; color: var(--gold-dark);
  cursor: pointer; list-style: none; position: relative; padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; font-weight: 400; color: var(--muted);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { font-size: 0.95rem; color: var(--text); margin-top: 8px; }

/* Impressum/Datenschutz */
.legal h1 { font-size: 1.7rem; margin-bottom: 22px; }
.legal h2 { font-size: 1.15rem; margin: 30px 0 10px; }
.legal h3 { font-size: 0.98rem; margin: 20px 0 6px; color: var(--gold-dark); }
.legal p { max-width: 720px; font-size: 0.95rem; margin-bottom: 10px; }
.legal-stand { color: var(--muted); font-size: 0.85rem; margin-top: 26px; }

/* Newsletter-Catcher */
.nl-pop {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: min(360px, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 20px 22px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nl-pop.is-open { opacity: 1; transform: translateY(0); }
.nl-close {
  position: absolute; top: 8px; right: 10px; border: 0; background: none;
  font-size: 1.35rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px;
}
.nl-close:hover { color: var(--text); }
.nl-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--rust); margin-bottom: 4px; }
.nl-pop h3 { font-size: 1.06rem; margin-bottom: 6px; }
.nl-text { font-size: 0.86rem; color: var(--muted); margin-bottom: 12px; }
.nl-pop label { display: block; font-size: 0.76rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 4px; }
.nl-pop input[type="email"] {
  width: 100%; padding: 9px 11px; font-size: 0.9rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.nl-pop input[type="email"]:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.nl-hf-label { margin-top: 10px; }
.nl-hf-row { display: flex; align-items: center; gap: 10px; }
.nl-hf-row input[type="number"] {
  width: 90px; padding: 9px 11px; font-size: 0.9rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.nl-hf-row input[type="number"]:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.nl-hf-row input[type="number"]:disabled { opacity: 0.45; }
.nl-unknown { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--muted); font-weight: 400; margin: 0; }
.nl-btn {
  width: 100%; margin-top: 10px; padding: 10px 12px; font-size: 0.9rem; font-weight: 700;
  color: var(--gold-dark); background: var(--amber-soft); border: 1px solid var(--gold);
  border-radius: var(--radius-s); cursor: pointer; transition: background 0.15s ease;
}
.nl-btn:hover { background: var(--amber); }
.nl-consent { font-size: 0.7rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) {
  .nl-pop { right: 0; bottom: 0; left: 0; width: 100%; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-pop { transition: none; transform: none; }
}

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; color: var(--muted); font-size: 0.85rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--gold-dark); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }

/* E01 Scroll-up */
#to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold);
  background: var(--surface); color: var(--gold-dark); font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s;
}
#to-top.is-visible { opacity: 1; transform: translateY(0); }

/* E05 Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .week-row, .card { transition: none; }
}

/* Mobile */
@media (max-width: 720px) {
  /* Menü mobil als kompakte umbrechende Zeile statt versteckt */
  .site-head .wrap { flex-wrap: wrap; }
  .nav { width: 100%; display: flex; flex-wrap: wrap; gap: 2px 2px; margin-top: 2px; }
  .nav a { font-size: 0.78rem; padding: 4px 8px; }
  .pmc-chips { flex-wrap: wrap; }
  .week-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .week-row .wdate { display: none; }
  .week-row .wphase { grid-column: 2; justify-self: start; }
  .week-row .wkm { grid-column: 1; font-size: 0.9rem; }
  .week-row .wmain { grid-column: 2; }
  .hero { padding: 36px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 4px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 300px; }
  .section { padding: 44px 0; }
  .countdown { gap: 8px; }
  .cd-box { min-width: 0; flex: 1; padding: 10px 8px; }
  .cd-box b { font-size: 1.5rem; }
  .pmc-wrap { overflow-x: auto; }
  .pmc-wrap svg { min-width: 760px; }
  .cal-grid { gap: 3px; grid-template-columns: repeat(7, 1fr) 1.9fr; }
  .cal-cell { min-height: 64px; padding: 4px 5px; font-size: 0.66rem; }
  .cal-km { font-size: 0.8rem; }
  .cal-pop { max-width: 190px; font-size: 0.68rem; }
  /* Kalender scrollt mobil in sich statt die Seite breit zu drücken */
  .cal-grid { overflow-x: auto; padding-bottom: 6px; grid-template-columns: repeat(7, minmax(64px, 1fr)) minmax(150px, 1.5fr); }
  .cal-label { display: none; }
  .cal-cell.is-race .cal-label { display: block; }
  .cal-sum .sum-line { font-size: 0.62rem; }
}
