/* TIDE. – Das Meer. Im Moment. */

:root {
  --navy-950: #030c18;
  --navy-900: #06182b;
  --navy-800: #0a2440;
  --navy-700: #12345a;
  --turquoise: #3fd8c8;
  --turquoise-soft: #8ff0e4;
  --sand: #ead6ad;
  --sand-soft: #f6ead2;
  --coral: #ff9a76;
  --text: #f4f8fb;
  --text-soft: rgba(244, 248, 251, 0.74);
  --text-faint: rgba(244, 248, 251, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(4, 18, 34, 0.46);
  --glass-strong: rgba(4, 18, 34, 0.72);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --hero-min: 960px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--turquoise-soft); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  /* feste Höhe: wechselnde Texte dürfen Szene und Panel nicht verschieben */
  height: max(100svh, var(--hero-min));
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) max(16px, env(safe-area-inset-bottom));
  isolation: isolate;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

.hero::after { /* sanfter Übergang zur Seite */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--navy-950));
  z-index: -1;
  pointer-events: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(16px, env(safe-area-inset-top));
  min-height: 64px;
}

.brand {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}
.brand span, .brand-small span { color: var(--turquoise); }

.loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
}
.loc-btn:hover { background: var(--glass-strong); }
.loc-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.loc-island { color: var(--text-soft); }

.loc-menu {
  position: fixed;
  inset: auto;
  top: 72px;
  right: var(--gutter);
  left: auto;
  margin: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(6, 22, 40, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.loc-menu-title { margin: 6px 10px 8px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.loc-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.loc-menu button:hover { background: rgba(255, 255, 255, 0.06); }
.loc-menu button[aria-current="true"] { background: rgba(63, 216, 200, 0.14); }
.loc-menu b { display: block; font-weight: 600; }
.loc-menu small { display: block; color: var(--text-soft); font-size: 0.85rem; }
.loc-menu-note { margin: 8px 10px 4px; font-size: 0.8rem; color: var(--text-faint); }
.live-tag {
  font-style: normal;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(63, 216, 200, 0.16);
  color: var(--turquoise-soft);
  white-space: nowrap;
}

.intro {
  max-width: 780px;
  padding-top: clamp(12px, 4vh, 48px);
  text-shadow: 0 1px 24px rgba(3, 12, 24, 0.35);
}

.greeting {
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
  color: var(--text-soft);
}

.headline {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.3rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  min-height: 2.04em; /* zwei Zeilen reserviert */
}

.subline {
  margin: 14px 0 0;
  max-width: 34em;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  line-height: 1.45;
  color: var(--text);
  opacity: 0.9;
  text-wrap: pretty;
  min-height: 4.35em; /* drei Zeilen reserviert */
}

.badges { display: flex; flex-wrap: nowrap; gap: 8px; margin: 16px 0 0; overflow: hidden; }
.badge { white-space: nowrap; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: none;
}
.badge:empty { display: none; }
.badge[data-source]::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sand);
}
.badge[data-source="measured"]::before { background: var(--turquoise); }
.is-live .badge[data-source="measured"]::before { animation: pulse 2s ease-out infinite; }
.badge[data-source="forecast"]::before { background: #9ec5ff; }
.badge-period { color: var(--sand-soft); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 216, 200, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(63, 216, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 216, 200, 0); }
}

.error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 120, 90, 0.18);
  border: 1px solid rgba(255, 140, 110, 0.4);
}

.scene-gap {
  flex: 1 1 0;
  min-height: 0;
}

/* ------------------------------------------------------------------ Panel */

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat { min-width: 0; }
.stat-v {
  font-family: var(--font);
  font-size: clamp(1.2rem, 4.6vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-v .arrow { color: var(--turquoise); margin-right: 0.15em; }
.stat-v small { font-size: 0.55em; font-weight: 500; color: var(--text-soft); margin-left: 0.1em; letter-spacing: 0; }
.stat-l { font-size: 0.78rem; color: var(--text-soft); line-height: 1.3; margin-top: 2px; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.phase-row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--text-soft); }
.phase-row b { color: var(--text); font-weight: 600; }
.phase-track {
  position: relative;
  height: 6px;
  margin: 8px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.phase-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(63, 216, 200, 0.35), var(--turquoise));
}
.phase-dot {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(63, 216, 200, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4);
}
.phase-fill, .phase-dot { transition: width 0.4s ease, left 0.4s ease; }
.phase-note { margin: 0; white-space: nowrap; font-size: 0.82rem; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }

.info {
  width: 20px; height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--text-soft);
}
.info-pop {
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 22, 40, 0.96);
  color: var(--text);
  font-size: 0.92rem;
}
.info-pop p { margin: 0; }

/* Zeitmaschine */
.machine { border-top: 1px solid var(--line); padding-top: 12px; }
.machine-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--turquoise-soft); font-weight: 600; }
.tm-right { display: inline-flex; align-items: center; gap: 10px; }
.play {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.play:hover { background: rgba(255, 255, 255, 0.16); }
.play svg { width: 15px; height: 15px; fill: currentColor; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: inline; }
.play[aria-pressed="true"] { background: var(--turquoise); color: var(--navy-900); border-color: transparent; }
.tm-label { font-family: var(--font); font-weight: 650; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.days {
  display: flex;
  gap: 6px;
  margin: 10px -14px 0;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  scroll-snap-align: start;
  line-height: 1.2;
}
.day span { font-weight: 600; font-size: 0.86rem; }
.day small { font-size: 0.72rem; color: var(--text-faint); }
.day[aria-selected="true"] { background: rgba(63, 216, 200, 0.18); border-color: rgba(63, 216, 200, 0.5); }

.slider-wrap { position: relative; margin-top: 10px; height: 64px; }
.spark { position: absolute; left: 11px; right: 11px; top: 0; width: calc(100% - 22px); height: 42px; }
.spark-area { fill: rgba(63, 216, 200, 0.16); }
.spark-line { fill: none; stroke: rgba(143, 240, 228, 0.75); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-now {
  position: absolute;
  top: 0;
  height: 42px;
  border-left: 1px dashed rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
#slider {
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%;
  height: 42px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: grab;
  touch-action: pan-y;
}
#slider:active { cursor: grabbing; }
#slider::-webkit-slider-runnable-track { height: 42px; background: transparent; }
#slider::-moz-range-track { height: 42px; background: transparent; }
#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(63, 216, 200, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
}
#slider::-moz-range-thumb {
  width: 22px; height: 42px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(63, 216, 200, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
}
.slider-hours {
  position: absolute;
  left: 11px; right: 11px; bottom: 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.quick { display: flex; flex-wrap: nowrap; gap: 6px; margin: 10px -14px 0; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
}
.quick button:hover { background: rgba(255, 255, 255, 0.12); }
.quick .q-now { background: var(--turquoise); color: var(--navy-900); border-color: transparent; font-weight: 600; }
.is-live .quick .q-now { background: rgba(63, 216, 200, 0.16); color: var(--turquoise-soft); }
.quick button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.18); }

/* ------------------------------------------------------------------ Inhalt */

main { padding: 0 var(--gutter); max-width: 1240px; margin: 0 auto; }

.section { padding: clamp(40px, 7vw, 80px) 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.section-title {
  margin: 0 0 18px;
  font-family: var(--font);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.muted { color: var(--text-faint); font-weight: 500; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.card {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 52, 90, 0.55), rgba(10, 36, 64, 0.35));
  border: 1px solid var(--line);
}
.card h3 { margin: 12px 0 6px; font-family: var(--font); font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(63, 216, 200, 0.12);
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--turquoise-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card.accent { background: linear-gradient(160deg, rgba(255, 154, 118, 0.18), rgba(10, 36, 64, 0.35)); }
.card.accent .card-icon { background: rgba(255, 154, 118, 0.16); }
.card.accent .card-icon svg { stroke: var(--coral); }
.card.safety { background: linear-gradient(160deg, rgba(234, 214, 173, 0.12), rgba(10, 36, 64, 0.3)); }
.card.safety .card-icon { background: rgba(234, 214, 173, 0.14); }
.card.safety .card-icon svg { stroke: var(--sand); }

/* Kurve */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 0.82rem; color: var(--text-soft); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid; }
.lg-measured { border-color: var(--turquoise) !important; border-top-width: 3px !important; }
.lg-best { border-color: rgba(255, 255, 255, 0.85) !important; }
.lg-astro { border-color: var(--sand) !important; border-top-style: dashed !important; }
.lg-ref { border-color: rgba(234, 214, 173, 0.45) !important; border-top-style: dotted !important; }

.chart-wrap {
  position: relative;
  padding: 12px 8px 4px;
  border-radius: var(--radius);
  background: rgba(10, 36, 64, 0.35);
  border: 1px solid var(--line);
}
.chart { display: block; width: 100%; height: clamp(220px, 32vw, 320px); cursor: crosshair; touch-action: pan-y; }
.c-night { fill: rgba(0, 0, 0, 0.32); }
.c-grid { stroke: rgba(255, 255, 255, 0.06); }
.c-hour { fill: var(--text-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.c-ref { stroke: rgba(234, 214, 173, 0.35); stroke-dasharray: 2 5; }
.c-ref-label { fill: rgba(234, 214, 173, 0.55); font-size: 10px; }
.c-best { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; stroke-linejoin: round; }
.c-astro { fill: none; stroke: var(--sand); stroke-opacity: 0.7; stroke-width: 1.4; stroke-dasharray: 5 5; }
.c-measured { fill: none; stroke: var(--turquoise); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.c-event { fill: var(--navy-900); stroke: #fff; stroke-width: 2; }
.c-event-label { fill: var(--text); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-now { stroke: var(--turquoise); stroke-width: 1.5; stroke-dasharray: 3 4; }
.c-now-label { fill: var(--turquoise-soft); font-size: 11px; font-weight: 600; }
.c-cursor { stroke: #fff; stroke-width: 1.5; }
.c-cursor-dot { fill: #fff; stroke: var(--turquoise); stroke-width: 3; }
.chart-tip {
  position: absolute;
  top: 8px; left: 0;
  width: 170px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(3, 12, 24, 0.9);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  pointer-events: none;
  display: grid;
}
.chart-tip[hidden] { display: none; }
.chart-tip span { color: var(--text-soft); }
.hint { margin: 10px 4px 0; font-size: 0.82rem; color: var(--text-faint); }

/* Woche */
.week { display: grid; gap: 8px; }
.week-row {
  display: grid;
  grid-template-columns: 92px minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 36, 64, 0.35);
  text-align: left;
  cursor: pointer;
}
.week-row:hover { background: rgba(18, 52, 90, 0.5); }
.week-row[aria-pressed="true"] { border-color: rgba(63, 216, 200, 0.5); }
.week-day b { display: block; font-size: 1rem; }
.week-day small { color: var(--text-faint); font-size: 0.8rem; }
.week-day em { display: block; font-style: normal; font-size: 0.72rem; color: var(--sand); margin-top: 2px; }
.week-spark { width: 100%; height: 40px; }
.ws-area { fill: rgba(63, 216, 200, 0.14); }
.ws-line { fill: none; stroke: var(--turquoise-soft); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.week-ev { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.week-ev i { font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-faint); width: 22px; }
.week-ev span { display: grid; line-height: 1.2; min-width: 48px; }
.week-ev b { font-weight: 600; }
.week-ev small { color: var(--text-faint); font-size: 0.74rem; }
.week-ev.hw i { color: var(--turquoise-soft); }

/* Details */
.details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.details div { padding: 16px 18px; background: var(--navy-900); }
.details dt { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.details dd { margin: 0; font-size: 1rem; }
.details small { color: var(--text-soft); }

.warnings { margin-bottom: 12px; }
.warnings p { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 154, 118, 0.14); border: 1px solid rgba(255, 154, 118, 0.35); }

.bsh-text {
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 36, 64, 0.35);
}
.bsh-text h3 { margin: 0 0 6px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turquoise-soft); }
.bsh-text p { margin: 0 0 6px; }
.bsh-text small { color: var(--text-faint); }

.explain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.explain h3 { margin: 0 0 6px; font-family: var(--font); font-size: 1.05rem; }
.explain p { margin: 0; color: var(--text-soft); font-size: 0.93rem; }

.footer {
  max-width: 1240px;
  margin: 72px auto 0;
  padding: 28px var(--gutter) max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.82rem;
}
.footer p { margin: 0 0 8px; max-width: 70em; }
.brand-small { font-family: var(--font); font-weight: 800; letter-spacing: 0.08em; color: var(--text); font-size: 1rem; }
.brand-small em { font-weight: 500; letter-spacing: 0; color: var(--text-faint); margin-left: 8px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.footer-links a, .link-btn { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

.service-by {
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.85rem;
}
.service-by a { color: var(--text); font-weight: 600; text-decoration: none; }
.service-by a:hover { color: var(--turquoise-soft); }

/* Impressum & Datenschutz */
.legal-page { background: radial-gradient(1200px 500px at 70% -10%, rgba(63, 216, 200, 0.12), transparent 60%), var(--navy-950); }
.legal-top { max-width: 820px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.legal-top .loc-btn { text-decoration: none; color: var(--text); }
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 56px) var(--gutter) 0;
}
.legal h1 {
  margin: 0 0 24px;
  font-family: var(--font);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.legal h2 { margin: 0 0 8px; font-family: var(--font); font-size: 1.15rem; font-weight: 650; }
.legal section { padding: 22px 0; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--text-soft); max-width: 68ch; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 1.2em; }
.legal code { font-size: 0.88em; color: var(--sand-soft); }
.legal .link-btn { color: var(--turquoise-soft); }
.legal-lead { font-size: 1.1rem; color: var(--text) !important; margin-bottom: 24px !important; }
.legal-updated { margin-top: 24px !important; font-size: 0.85rem; color: var(--text-faint) !important; }
.legal-page .footer { max-width: 820px; }

/* Cookie-Banner */
.consent {
  position: fixed;
  z-index: 50;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 460px;
  margin-left: auto;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(6, 22, 40, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font-size: 0.9rem;
  animation: consent-in 0.35s ease-out;
}
.consent h2 { margin: 0 0 6px; font-family: var(--font); font-size: 1.05rem; }
.consent p { margin: 0 0 14px; color: var(--text-soft); line-height: 1.45; }
.consent a { color: var(--turquoise-soft); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions button {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  cursor: pointer;
}
.consent-actions button:hover { background: rgba(255, 255, 255, 0.16); }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.is-loading .intro, .is-loading .panel { opacity: 0.6; transition: opacity 0.2s; }

/* ------------------------------------------------------------------ Größere Bildschirme */

@media (min-width: 980px) {
  :root { --hero-min: 640px; }
  .quick { margin: 10px 0 0; padding: 0; flex-wrap: wrap; }
  .subline { min-height: 2.9em; }
  .panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 28px;
    padding: 20px 24px;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
  }
  .stats { grid-column: 1; align-self: start; }
  .phase { grid-column: 1; align-self: end; }
  .machine { grid-column: 2; grid-row: 1 / span 2; border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 28px; }
  .top, .intro { max-width: 1240px; width: 100%; margin-left: auto; margin-right: auto; }
  .intro { padding-top: 6vh; }
  .intro > * { max-width: 760px; }
  .days { margin: 10px 0 0; padding: 0 0 2px; }
}

@media (max-width: 560px) {
  .cards {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 6px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .week-row { grid-template-columns: 64px 1fr; row-gap: 8px; padding: 12px 14px; }
  .week-spark { grid-column: 2; grid-row: 1; }
  .week-ev { grid-column: 1 / -1; }
  .week-ev.nw { margin-top: -2px; }
  .stat-l { font-size: 0.72rem; }
  .quick button { padding: 7px 10px; font-size: 0.8rem; }
  .phase-note { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
