/* ==========================================================================
   Dick & Doof – Westalpen Rally 2026
   Design-System (Agent: scaffold). Alle Tagesseiten nutzen NUR diese Klassen.
   ========================================================================== */

/* ----- Fonts (selbst gehostet, keine CDN-Requests) ----------------------- */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900; /* Variable Font */
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ----- Design-Tokens ------------------------------------------------------ */
:root {
  --bg: #0e1013;
  --panel: #161a1f;
  --panel-2: #1b2027;
  --line: #262c33;
  --text: #e9e6df;
  --muted: #9aa3ad;
  --accent: #ff6a13;
  --accent-hover: #ff8a3d;
  --green: #37c871;
  --yellow: #f5c542;
  --red: #e64553;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ----- Basis --------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  /* dezentes Topo-Linien-Muster als data-URI */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='720' viewBox='0 0 720 720'%3E%3Cg fill='none' stroke='%239aa3ad' stroke-opacity='0.055' stroke-width='1.1'%3E%3Cpath d='M-20 110 Q 120 40 260 105 T 520 100 T 740 70'/%3E%3Cpath d='M-20 150 Q 130 85 265 148 T 525 140 T 740 115'/%3E%3Cpath d='M-20 190 Q 140 130 270 190 T 530 180 T 740 160'/%3E%3Cpath d='M-20 380 Q 160 320 320 380 T 620 370 T 740 350'/%3E%3Cpath d='M-20 420 Q 165 365 325 420 T 625 412 T 740 395'/%3E%3Cpath d='M-20 460 Q 170 410 330 462 T 630 455 T 740 440'/%3E%3Cpath d='M-20 640 Q 130 590 280 645 T 540 635 T 740 610'/%3E%3Cpath d='M-20 680 Q 135 635 285 685 T 545 678 T 740 655'/%3E%3Cellipse cx='530' cy='250' rx='150' ry='58'/%3E%3Cellipse cx='530' cy='250' rx='108' ry='38'/%3E%3Cellipse cx='530' cy='250' rx='66' ry='21'/%3E%3Cellipse cx='150' cy='545' rx='120' ry='46'/%3E%3Cellipse cx='150' cy='545' rx='80' ry='28'/%3E%3Cellipse cx='150' cy='545' rx='42' ry='13'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }

.section-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }

/* ----- Navigation ---------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(14, 16, 19, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--accent); }
.nav-brand img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 6px;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links a.active { color: var(--accent); }
.nav-links a.nav-day { color: var(--muted); }
.nav-links a.nav-day.active,
.nav-links a.nav-day:hover { color: var(--text); }

/* ----- Hero (index) -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 16, 19, 0.55) 0%, rgba(14, 16, 19, 0.25) 40%, rgba(14, 16, 19, 0.94) 100%);
}
.hero-inner { padding: 90px 0 64px; width: 100%; }
.hero-logo { width: min(280px, 52vw); height: auto; margin-bottom: 18px; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.65)); }
.hero-title { font-size: clamp(2.2rem, 6vw, 4.4rem); text-shadow: 0 3px 20px rgba(0,0,0,0.7); }
.hero-claim {
  max-width: 620px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin: 0 0 20px;
}
.date-badge {
  display: inline-block;
  background: var(--accent);
  color: #14100c;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* ----- Tagesseiten-Kopf ---------------------------------------------------- */
.day-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 3px solid var(--day-color, var(--accent));
}
.day-hero .hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.day-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14,16,19,0.5) 0%, rgba(14,16,19,0.2) 40%, rgba(14,16,19,0.95) 100%);
}
.day-hero-inner { padding: 80px 0 40px; width: 100%; }
.day-kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.day-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  color: var(--day-color, var(--accent));
  text-shadow: 0 3px 18px rgba(0,0,0,0.75);
}
.day-date {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.day-title { font-size: clamp(1.8rem, 4.5vw, 3.2rem); text-shadow: 0 3px 20px rgba(0,0,0,0.75); }
.day-subtitle { color: var(--text); max-width: 720px; margin: 0 0 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.85); }

/* ----- Badge-Chips ---------------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
}
.badge::before { content: "●"; font-size: 0.6rem; line-height: 1; }
.badge--closed { border-color: rgba(230, 69, 83, 0.6); background: rgba(230, 69, 83, 0.14); color: #ff8f9a; }
.badge--closed::before { color: var(--red); }
.badge--warn { border-color: rgba(245, 197, 66, 0.55); background: rgba(245, 197, 66, 0.10); color: #ffd980; }
.badge--warn::before { color: var(--yellow); }
.badge--open { border-color: rgba(55, 200, 113, 0.55); background: rgba(55, 200, 113, 0.10); color: #7fe3a8; }
.badge--open::before { color: var(--green); }
.badge--toll { border-color: rgba(255, 106, 19, 0.6); background: rgba(255, 106, 19, 0.12); color: #ffb184; }
.badge--toll::before { color: var(--accent); }
.badge--info { border-color: var(--line); background: var(--panel); color: var(--muted); }
.badge--info::before { color: var(--muted); }

/* ----- Stat-Tiles ----------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--day-color, var(--accent));
  border-radius: var(--radius);
  padding: 16px 18px 14px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  color: var(--text);
}
.stat-value small { font-size: 0.55em; color: var(--muted); letter-spacing: 0.05em; }
.stat-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ----- Fließtext ------------------------------------------------------------ */
.prose { max-width: 760px; }
.prose p { margin: 0 0 1.1em; color: var(--text); }
.prose strong { color: #fff; }
.prose em { color: var(--muted); font-style: italic; }

/* ----- Stationen-Timeline ---------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 60px 30px 1fr;
  gap: 0;
  padding: 10px 0;
  position: relative;
}
.timeline-time {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--day-color, var(--accent));
  text-align: right;
  padding-top: 1px;
  letter-spacing: 0.05em;
}
.timeline-dot {
  position: relative;
}
.timeline-dot::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--day-color, var(--accent));
}
.timeline-station { font-weight: 700; color: var(--text); }
.timeline-highlight { color: var(--muted); font-size: 0.92rem; }

/* ----- Karten ----------------------------------------------------------------- */
.map-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map {
  width: 100%;
  min-height: 480px;
  background: #11141a;
}
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}
.leaflet-popup-content { margin: 12px 14px; line-height: 1.45; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.poi-popup h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--text);
}
.poi-popup .poi-alt { color: var(--accent); font-weight: 700; font-size: 0.8rem; }
.poi-popup p { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }

/* POI-Marker (divIcon) */
.poi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid var(--day-color, var(--accent));
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
  font-size: 13px;
  line-height: 1;
}

/* Karten-Legende (Übersichtskarte) */
.map-legend {
  background: rgba(22, 26, 31, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.3;
  max-height: 300px;
  overflow-y: auto;
}
.map-legend a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  padding: 3px 2px;
  border-radius: 4px;
}
.map-legend a:hover { background: var(--panel-2); color: #fff; }
.legend-swatch {
  display: inline-block;
  width: 20px;
  height: 4px;
  border-radius: 2px;
  flex: 0 0 auto;
}

/* ----- Höhenprofil -------------------------------------------------------------- */
.elevation-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 10px;
  margin-top: 18px;
}
.elevation-box h3 {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.elevation-box svg { width: 100%; height: auto; display: block; }
.etappen-info {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--day-color, var(--accent));
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.etappen-info strong { color: var(--text); }

/* ----- Buttons -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #14100c;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: #14100c; transform: translateY(-1px); }
.btn--gpx::before { content: "⤓"; font-size: 1.2em; font-weight: 400; }
.btn .btn-size { font-weight: 400; opacity: 0.75; font-size: 0.85em; text-transform: none; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--panel-2); color: #fff; }

/* ----- Galerie ---------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.gallery .figure { margin: 0; }
.figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure > a { display: block; }
.figure figcaption { padding: 10px 12px; font-size: 0.85rem; color: var(--text); }
.figure .credit { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--muted); }
.figure .credit a { color: var(--muted); text-decoration: underline; }
.figure .credit a:hover { color: var(--accent); }

/* ----- Tages-Cards (index) ------------------------------------------------------------ */
.day-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.day-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.day-card:hover { transform: translateY(-3px); border-color: var(--card-color, var(--accent)); color: var(--text); }
.day-card-media { position: relative; }
.day-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.day-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,16,19,0) 45%, rgba(14,16,19,0.85) 100%);
}
.day-card-num {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--card-color, var(--accent));
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.day-card-date {
  position: absolute;
  bottom: 10px;
  left: 14px;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.day-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.day-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.day-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.day-card-stats b { color: var(--text); font-weight: 700; }
.day-card .badges { margin: 2px 0 0; }
.day-card .badge { font-size: 0.62rem; padding: 4px 9px; }

/* ----- Infokästen ------------------------------------------------------------------------ */
.info-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box--warn { border-left-color: var(--yellow); }
.info-box--danger { border-left-color: var(--red); }
.info-box h3 { font-size: 1.15rem; margin-bottom: 10px; }
.info-box ul { margin: 0; padding-left: 20px; }
.info-box li { margin-bottom: 8px; }
.info-box li:last-child { margin-bottom: 0; }
.info-box .small, .small { font-size: 0.82rem; color: var(--muted); }

/* ----- Tages-Navigation (vor/zurück) ------------------------------------------------------ */
.day-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 10px;
  flex-wrap: wrap;
}
.day-nav a {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  color: var(--text);
  min-width: 200px;
}
.day-nav a:hover { border-color: var(--accent); color: var(--text); }
.day-nav .dir {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-nav .label { font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.day-nav .day-nav-next { text-align: right; margin-left: auto; }

/* ----- Tabellen (quellen.html) ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.sources {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  font-size: 0.88rem;
}
table.sources th, table.sources td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
table.sources th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel-2);
}
table.sources tr:last-child td { border-bottom: none; }
table.sources img { width: 90px; height: 60px; object-fit: cover; border-radius: 6px; }

/* ----- Abgeschrägte Sektionskante (sparsam einsetzen) ---------------------------------------- */
.slant {
  position: relative;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 2.2%, 100% 100%, 0 97.8%);
  padding: 64px 0;
}

/* ----- Footer ---------------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 44px 0 36px;
  background: rgba(22, 26, 31, 0.6);
}
.footer-grid {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-logo {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #e9e6df;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.footer-logo img { width: 78%; height: auto; }
.footer-text { flex: 1 1 300px; color: var(--muted); font-size: 0.85rem; }
.footer-text .brand {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- Responsive -------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .day-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
  .hero { min-height: 64vh; }
  .timeline::before { left: 66px; }
  .timeline-item { grid-template-columns: 52px 30px 1fr; }
  .nav-links a { padding: 6px 7px; font-size: 0.78rem; }
  .day-nav a { min-width: 0; flex: 1 1 45%; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-tile { padding: 12px 12px 10px; }
}

/* Sichtbare Meldung, falls eine Karte nicht initialisiert werden kann */
.map-error {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 100%; min-height: 320px; padding: 24px;
  color: var(--muted); font-size: 0.95rem; line-height: 1.6;
}

/* ==========================================================================
   v2-Erweiterung (Agent: design, 2026-07-04) — additive Schicht.
   Bestehende Klassen oben bleiben unverändert gültig; hier kommen nur
   neue Komponenten und gezielte, späte Overrides dazu.
   ========================================================================== */

/* ----- Fokus, Auswahl, Scrollbar ------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: rgba(255, 106, 19, 0.35); color: #fff; }
html { scrollbar-color: #2c343d var(--bg); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #2c343d;
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a444f; }

/* ----- Live-Status-Leiste (unter .site-nav, app.js befüllt) ---------------- */
.live-status {
  background: #11141a;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}
.live-status[hidden] { display: none !important; }
.live-status .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.live-status-today {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.live-status-day {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.live-status-day::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(55, 200, 113, 0.8);
  animation: live-blink 2.4s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.live-status .badge { font-size: 0.64rem; padding: 3px 9px; }
.status-chip { cursor: help; }
.live-status-tomorrow,
.live-status-note {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.live-status-tomorrow { margin-left: auto; }
@media (max-width: 900px) {
  .live-status-tomorrow { margin-left: 0; flex-basis: 100%; }
}

/* ----- Hero v2: Ken Burns, Countdown, Scroll-Cue ---------------------------- */
/* Ken Burns nutzt die `scale`-Eigenschaft — `translate` bleibt frei für den
   JS-Parallax (app.js setzt el.style.translate), keine Transform-Kollision. */
.kenburns {
  animation: kenburns 26s ease-in-out infinite alternate;
  transform-origin: 50% 32%;
  will-change: scale, translate;
}
@keyframes kenburns {
  from { scale: 1; }
  to { scale: 1.09; }
}
.hero { position: relative; }
#countdown:empty { display: none; }
.hero-countdown {
  margin: 18px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.hero-countdown b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0 3px;
  vertical-align: -2px;
  font-variant-numeric: tabular-nums;
}
.hero-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-scrollcue.is-visible { opacity: 1; }
.hero-scrollcue::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: cue-bob 1.9s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* ----- Reveal-Animationen ([data-reveal] + .is-visible via app.js) ----------
   Nur wenn Scripting aktiv ist, wird versteckt — ohne JS bleibt alles
   sichtbar (Progressive Enhancement). Varianten: up (Default), left,
   right, zoom. Delay setzt app.js als style.transitionDelay.            */
@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.9, 0.31, 1),
                transform 0.7s cubic-bezier(0.22, 0.9, 0.31, 1);
  }
  [data-reveal="left"] { transform: translateX(-34px); }
  [data-reveal="right"] { transform: translateX(34px); }
  [data-reveal="zoom"] { transform: scale(0.93); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ----- Count-Up ------------------------------------------------------------- */
[data-countup] { font-variant-numeric: tabular-nums; }
.stats--big .stat-value { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ----- Vergleichs-Balken („Die Woche in Zahlen“, app.js rendert) -------------
   Markup (renderCompareBars): .compare-row[--day-color] > .compare-day (Link)
   + .compare-metrics > .compare-metric--km/--schotter/--hm mit
   .compare-metric-label / .compare-track > .compare-bar[data-w] / .compare-val.
   app.js setzt beim Reveal width:data-w — CSS animiert die Breite.          */
.compare-chart { margin: 28px 0 10px; }
.compare-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(154, 163, 173, 0.14);
}
.compare-row:last-child { border-bottom: none; }
.compare-day { display: block; color: var(--text); }
.compare-day b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--day-color, var(--accent));
}
.compare-day span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}
.compare-day:hover span { color: var(--text); }
.compare-metrics { display: flex; flex-direction: column; gap: 4px; }
.compare-metric {
  display: grid;
  grid-template-columns: 58px 1fr 92px;
  align-items: center;
  gap: 10px;
}
.compare-metric-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.compare-track {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.compare-bar {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--day-color, var(--accent));
  transition: width 0.9s cubic-bezier(0.22, 0.9, 0.31, 1);
}
.compare-metric--schotter .compare-bar {
  background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.42) 0 4px, transparent 4px 8px);
}
.compare-metric--hm .compare-bar { background: #414b56; background-image: none; }
.compare-val {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ----- Sektions-Trenner: gestrichelte Routenlinie ---------------------------- */
.route-divider {
  max-width: var(--maxw);
  height: 56px;
  margin: 4px auto -10px;
  padding: 0 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1100' height='56' viewBox='0 0 1100 56'%3E%3Cpath d='M22 40 C 170 40 230 13 390 15 S 640 47 800 41 S 1010 17 1064 19' fill='none' stroke='%23ff6a13' stroke-opacity='0.5' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='0.5 9'/%3E%3Ccircle cx='16' cy='40' r='4.5' fill='none' stroke='%23ff6a13' stroke-opacity='0.75' stroke-width='2.5'/%3E%3Cpath d='M1072 19.5 l 15 -5.5 -6.5 13 z' fill='%23ff6a13' fill-opacity='0.8'/%3E%3C/svg%3E") center / contain no-repeat;
  background-origin: content-box;
}

/* ----- Day-Number-Wasserzeichen (Tagesseiten) --------------------------------- */
main { position: relative; overflow-x: clip; }
.day-watermark {
  position: absolute;
  top: 60px;
  right: -2vw;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(220px, 42vw, 560px);
  line-height: 0.8;
  color: var(--day-color, var(--accent));
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}

/* ----- Hover-Lift (Cards & Galerie-Figuren) ------------------------------------ */
.day-card {
  transition: transform 0.25s cubic-bezier(0.22, 0.9, 0.31, 1),
              border-color 0.25s ease, box-shadow 0.25s ease;
}
.day-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.figure {
  transition: transform 0.25s cubic-bezier(0.22, 0.9, 0.31, 1),
              border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery .figure:hover {
  transform: translateY(-4px);
  border-color: var(--day-color, var(--accent));
  box-shadow: var(--shadow);
}

/* ----- Badge-Puls (rote Badges: 3 Pulse, dann Ruhe) ----------------------------- */
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 69, 83, 0); }
  50% { box-shadow: 0 0 0 6px rgba(230, 69, 83, 0.22); }
}
.badge--closed { animation: badge-pulse 2s ease-in-out 0.8s 3; }

/* ----- GPX-Ticket-Button (Maut-Ticket-Optik) ------------------------------------ */
.btn-gpx.ticket {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  background: var(--accent);
  color: #14100c;
  border-radius: 10px;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gpx.ticket:hover {
  background: var(--accent-hover);
  color: #14100c;
  transform: translateY(-2px);
}
.btn-gpx.ticket:active { transform: translateY(0); }
/* Perforations-Kerben oben/unten auf der Abrisslinie */
.btn-gpx.ticket::before,
.btn-gpx.ticket::after {
  content: "";
  position: absolute;
  left: 41px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
}
.btn-gpx.ticket::before { top: -7px; }
.btn-gpx.ticket::after { bottom: -7px; }
.ticket-punch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  border-right: 2px dashed rgba(20, 16, 12, 0.4);
}
.ticket-punch::before { content: "⤓"; font-size: 1.35rem; font-weight: 700; }
.ticket-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 10px 18px 9px;
  text-align: left;
}
.ticket-main b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.09em;
  line-height: 1.1;
}
.ticket-main small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  opacity: 0.8;
}
.ticket-size {
  align-self: center;
  padding: 0 16px 0 2px;
  font-size: 0.74rem;
  font-weight: 800;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticket-size:empty { padding: 0 8px 0 0; }
.gpx-zip-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.gpx-zip-link:hover { color: var(--accent); }

/* ----- Sekundär-Button (z. B. „Roadbook drucken“) -------------------------------- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  background: var(--panel-2);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ----- Lightbox (app.js rendert das Markup) --------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
  background: rgba(10, 11, 14, 0.96);
  animation: lb-in 0.25s ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.85);
  animation: lb-img 0.3s cubic-bezier(0.22, 0.9, 0.31, 1);
}
@keyframes lb-img { from { transform: scale(0.96); opacity: 0.4; } to { transform: none; opacity: 1; } }
.lightbox-caption {
  max-width: 760px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}
.lightbox-caption .credit { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--muted); }
.lightbox-caption .credit a { color: var(--muted); text-decoration: underline; }
.lightbox-counter {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(22, 26, 31, 0.85);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { border-color: var(--accent); color: var(--accent); background: var(--panel-2); }
.lightbox-close { top: 14px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 680px) {
  .lightbox { padding: 52px 10px 16px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-img { max-height: calc(100vh - 200px); }
}

/* ----- Karten-Extras: Fullscreen-Button, Profil-Sync ------------------------------- */
.leaflet-bar a.map-fs-btn,
.leaflet-touch .leaflet-bar a.map-fs-btn,
button.map-fs-btn {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  background: rgba(22, 26, 31, 0.94);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}
.leaflet-bar a.map-fs-btn:hover,
.leaflet-touch .leaflet-bar a.map-fs-btn:hover,
button.map-fs-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--panel-2); }
.map:fullscreen,
.map-box:fullscreen,
.map.map-is-fullscreen {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: #11141a;
}
.map-box:fullscreen .map { height: 100%; min-height: 100%; }
/* Profil-Tooltip (.elev-tooltip) positioniert app.js selbst (inline);
   hier nur die Akzentfarbe des km-Werts. */
.elevation-box { position: relative; }
.elev-tooltip b { color: var(--day-color, var(--accent)); font-variant-numeric: tabular-nums; }

/* ----- Wetter (js/wetter.js rendert in .wetter-slot) --------------------------------- */
.wetter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.wetter-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
}
.wetter-place {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.wetter-now { display: flex; align-items: center; gap: 12px; }
.wetter-icon { font-size: 2rem; line-height: 1; }
.wetter-temp {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.wetter-desc { font-size: 0.8rem; color: var(--muted); }
.wetter-days {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(154, 163, 173, 0.18);
}
.wetter-day { text-align: center; font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.wetter-day b { display: block; color: var(--text); font-variant-numeric: tabular-nums; }
.wetter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.88rem;
  color: var(--text);
}
.wetter-line .wetter-icon { font-size: 1.35rem; }
.wetter-line .wetter-temp { font-size: 1.25rem; }
.wetter-hint { font-size: 0.78rem; color: var(--muted); flex-basis: 100%; }
.wetter-fallback { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ----- Teaser-Reihe (Praxis / Spiel / GPX-Paket) --------------------------------------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.teaser-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--tcolor, var(--accent));
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 0.9, 0.31, 1),
              border-color 0.25s ease, box-shadow 0.25s ease;
}
.teaser-card:hover {
  transform: translateY(-4px);
  border-color: var(--tcolor, var(--accent));
  box-shadow: var(--shadow);
  color: var(--text);
}
.teaser-glyph {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 2.8rem;
  line-height: 1;
  opacity: 0.16;
  pointer-events: none;
}
.teaser-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tcolor, var(--accent));
}
.teaser-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.teaser-text { font-size: 0.88rem; color: var(--muted); }
.teaser-cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.teaser-card:hover .teaser-cta { color: var(--accent-hover); }

/* ----- Film-Korn-Overlay (nur Screen; liegt unter der Lightbox) -------------------------- */
@media screen {
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2500;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
  }
}

/* ----- Responsive v2 ----------------------------------------------------------------------- */
@media (max-width: 900px) {
  .wetter-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero-scrollcue { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 8px; }
  .compare-day { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .compare-metric { grid-template-columns: 64px 1fr 74px; gap: 8px; }
  .compare-metric-label { font-size: 0.55rem; }
  .compare-val { font-size: 0.7rem; }
  .day-watermark { top: 30px; font-size: 240px; }
  .btn-gpx.ticket { width: 100%; }
  .ticket-main { flex: 1; }
}

/* ----- Reduced Motion: alles aus, alles sofort sichtbar (bleibt LETZTER Block!) ------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .kenburns { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .compare-bar { transition: none !important; }
  .hero-scrollcue::after { animation: none; }
  .live-status-day::before { animation: none; }
  .badge--closed { animation: none; }
}

/* ----- Sperrtage-Matrix (index) -------------------------------------------- */
.sperr-matrix-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sperr-matrix { width: 100%; min-width: 720px; border-collapse: collapse; }
.sperr-matrix th, .sperr-matrix td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.sperr-matrix thead th {
  background: var(--panel-2);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.sperr-matrix thead th:first-child,
.sperr-matrix tbody th {
  text-align: left;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.sperr-matrix .sm-wd { display: block; font-weight: 800; color: var(--text); }
.sperr-matrix .sm-date { display: block; font-size: 0.72rem; }
.sperr-matrix .stamp {
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.sperr-matrix td:nth-child(even) .stamp { transform: rotate(-1.4deg); }
.sperr-matrix td:nth-child(odd) .stamp { transform: rotate(1.1deg); }
.stamp--open { color: var(--green); background: rgba(55, 200, 113, 0.08); }
.stamp--warn { color: var(--yellow); background: rgba(245, 197, 66, 0.08); }
.stamp--closed { color: var(--red); background: rgba(230, 69, 83, 0.08); }
.sperr-matrix td.is-plan {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: rgba(255, 106, 19, 0.07);
}
.sperr-matrix .sm-plan {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.matrix-note { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .sperr-matrix .stamp { transform: none !important; }
}

/* ----- Hero-Video (Remotion-Loop, index) ----------------------------------- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
