:root {
  --nacht: #062b38;
  --nacht-hell: #0d4351;
  --tuerkis: #67c8bd;
  --tuerkis-dunkel: #237b78;
  --sand: #f3eee5;
  --papier: #fcfaf5;
  --tinte: #173238;
  --leise: #64777a;
  --linie: #d7ddd9;
  --orange: #e58a3a;
  --rot: #c94848;
  --grau: #829092;
  --schatten: 0 18px 45px rgb(6 43 56 / 12%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--tinte); background: var(--papier); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, select, input { font: inherit; }
button, select { color: inherit; }
a { color: inherit; }
.sprunglink { position: fixed; top: .5rem; left: .5rem; z-index: 9999; padding: .65rem 1rem; background: white; transform: translateY(-150%); }
.sprunglink:focus { transform: none; }

.kopf { color: white; background: var(--nacht); border-bottom: 1px solid rgb(255 255 255 / 10%); }
.kopf-inhalt, .intro-inhalt, .aktuell-bereich, .entdecker, .hinweise, .footer-inhalt { width: min(1440px, calc(100% - 8vw)); margin-inline: auto; }
.kopf-inhalt { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.marke { display: inline-flex; align-items: center; gap: .7rem; color: white; text-decoration: none; letter-spacing: -.02em; }
.marke-symbol { width: 55px; height: 42px; display: grid; place-items: center; color: var(--tuerkis); }
.marke-symbol svg { width: 100%; fill: currentColor; }
.marke-symbol svg path:last-child { fill: none; stroke: var(--nacht); stroke-width: 1.7; }
.marke strong { display: block; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1; }
.marke small { display: block; margin-top: .15rem; color: var(--tuerkis); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; }
.kopf-status { display: flex; align-items: center; gap: .55rem; color: #d0e2e2; font-size: .82rem; }
.statuspunkt { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgb(229 138 58 / 13%); }
.statuspunkt.live { background: var(--tuerkis); box-shadow: 0 0 0 5px rgb(103 200 189 / 14%); }

.intro { position: relative; overflow: hidden; min-height: 380px; color: white; background: var(--nacht); }
.intro::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--tuerkis), #d1c49f 52%, var(--orange)); }
.intro-inhalt { min-height: 380px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; padding-block: 3rem 4rem; }
.kicker { margin: 0 0 .75rem; color: var(--tuerkis); font-size: .7rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.kicker.dunkel { color: var(--tuerkis-dunkel); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 760px; font-size: clamp(3rem, 6vw, 6rem); line-height: .91; }
h1 em { color: var(--tuerkis); font-weight: 400; }
.intro-text { max-width: 680px; margin: 1.6rem 0 0; color: #c8dcde; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.wellenmotiv svg { width: 115%; color: var(--tuerkis); opacity: .5; transform: translateX(2rem); }
.wellenmotiv path { fill: none; stroke: currentColor; stroke-width: 1.2; }

.aktuell-bereich, .entdecker, .hinweise { padding-block: 5rem; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.8rem; }
h2 { color: var(--nacht); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; }
.aktualisiert, .treffer { margin: 0; color: var(--leise); font-size: .82rem; }
.treffer strong { color: var(--nacht); font-size: 1.2rem; }
.aktuell-karte { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 2.2rem; min-height: 178px; padding: 1.5rem 2rem; color: white; background: linear-gradient(115deg, #0d4351, var(--nacht)); border-radius: 3px; box-shadow: var(--schatten); }
.aktuell-zeit { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-right: 2rem; border-right: 1px solid rgb(255 255 255 / 18%); }
.aktuell-zeit span, .aktuell-zeit small { color: #b7d0d2; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.aktuell-zeit strong { font-family: Georgia, serif; font-size: 2.4rem; font-weight: 400; line-height: 1.1; }
.aktuell-details h3 { margin: .65rem 0 .2rem; font-family: Georgia, serif; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; }
.aktuell-details p { margin: 0; color: #bdd0d2; }
.status-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .62rem; color: white; background: rgb(103 200 189 / 17%); border: 1px solid rgb(103 200 189 / 55%); border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tuerkis); }
.status-chip.probable { background: rgb(229 138 58 / 16%); border-color: rgb(229 138 58 / 60%); }
.status-chip.probable::before { background: var(--orange); }
.status-chip.unconfirmed { background: rgb(130 144 146 / 18%); border-color: rgb(180 190 190 / 45%); }
.status-chip.unconfirmed::before { background: #aab5b6; }
.sekundaer-knopf { padding: .8rem 1rem; color: white; background: transparent; border: 1px solid rgb(255 255 255 / 38%); border-radius: 2px; cursor: pointer; }
.sekundaer-knopf:hover:not(:disabled), .sekundaer-knopf:focus-visible { border-color: var(--tuerkis); background: rgb(103 200 189 / 10%); }
.sekundaer-knopf:disabled { opacity: .45; cursor: wait; }

.entdecker { border-top: 1px solid var(--linie); }
.filter { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: .8rem; margin-bottom: 1rem; padding: 1rem; background: white; border: 1px solid var(--linie); box-shadow: 0 8px 30px rgb(6 43 56 / 5%); }
.filter label { min-width: 0; }
.filter label > span { display: block; margin-bottom: .3rem; color: var(--leise); font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.filter select { width: 100%; height: 42px; padding: 0 2rem 0 .65rem; background: var(--papier); border: 1px solid #cbd5d2; border-radius: 2px; }
.filter select:focus-visible, .filter input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgb(103 200 189 / 55%); outline-offset: 2px; }
.nur-neu { display: flex; align-items: center; gap: .55rem; min-height: 42px; align-self: end; padding: 0 .65rem; background: var(--papier); border: 1px solid #cbd5d2; }
.nur-neu > span { margin: 0 !important; color: var(--tinte) !important; letter-spacing: 0 !important; text-transform: none !important; }
.nur-neu input { accent-color: var(--tuerkis-dunkel); }
.filter-reset { align-self: end; height: 42px; color: var(--tuerkis-dunkel); background: transparent; border: 1px solid var(--tuerkis-dunkel); cursor: pointer; }
.filter-reset:hover { color: white; background: var(--tuerkis-dunkel); }
.karten-raster { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .7fr); min-height: 640px; background: white; border: 1px solid var(--linie); }
.karten-spalte { position: relative; min-width: 0; }
#karte { width: 100%; height: 640px; background: #dbe7e3; }
.karten-legende { position: absolute; z-index: 500; left: 16px; bottom: 26px; display: flex; flex-wrap: wrap; gap: .85rem; max-width: calc(100% - 32px); padding: .6rem .8rem; background: rgb(255 255 255 / 93%); border: 1px solid rgb(6 43 56 / 13%); box-shadow: 0 4px 16px rgb(6 43 56 / 10%); font-size: .7rem; }
.karten-legende span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.legende-punkt { width: 9px; height: 9px; border-radius: 50%; }
.legende-punkt.bestaetigt { background: #187f89; }
.legende-punkt.wahrscheinlich { background: var(--orange); }
.legende-punkt.unbestaetigt { background: var(--grau); }
.legende-punkt.notfall { background: var(--rot); }
.verlauf { min-height: 0; border-left: 1px solid var(--linie); background: #fbfaf6; }
.verlauf-kopf { height: 74px; display: flex; justify-content: space-between; align-items: center; padding: 0 1.4rem; border-bottom: 1px solid var(--linie); }
.verlauf-kopf h3 { margin: 0; font-family: Georgia, serif; font-size: 1.25rem; }
.verlauf-kopf span { color: var(--leise); font-size: .68rem; text-transform: uppercase; }
.timeline { height: 566px; overflow-y: auto; }
.timeline-eintrag { position: relative; display: block; width: 100%; padding: 1.25rem 1.2rem 1.25rem 3rem; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--linie); cursor: pointer; }
.timeline-eintrag::before { content: ""; position: absolute; left: 1.25rem; top: 1.58rem; width: 10px; height: 10px; border: 3px solid white; border-radius: 50%; background: var(--markerfarbe, var(--tuerkis-dunkel)); box-shadow: 0 0 0 1px var(--markerfarbe, var(--tuerkis-dunkel)); }
.timeline-eintrag::after { content: ""; position: absolute; left: 1.59rem; top: 2.45rem; bottom: -.4rem; border-left: 1px dashed #aab9b6; }
.timeline-eintrag:last-child::after { display: none; }
.timeline-eintrag:hover, .timeline-eintrag.aktiv { background: white; box-shadow: inset 4px 0 var(--markerfarbe, var(--tuerkis-dunkel)); }
.timeline-meta { display: flex; justify-content: space-between; gap: .6rem; color: var(--leise); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.timeline-eintrag strong { display: block; margin: .35rem 0 .18rem; color: var(--nacht); font-family: Georgia, serif; font-size: 1.12rem; font-weight: 600; }
.timeline-eintrag p { margin: 0; color: var(--leise); font-size: .8rem; }
.ladehinweis, .leerhinweis { padding: 2rem; color: var(--leise); text-align: center; }

.wal-marker { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--markerfarbe); border: 3px solid white; border-radius: 50% 50% 50% 0; box-shadow: 0 3px 10px rgb(6 43 56 / 35%); transform: rotate(-45deg); }
.wal-marker span { width: 8px; height: 8px; background: white; border-radius: 50%; transform: rotate(45deg); }
.leaflet-popup-content-wrapper { border-radius: 2px; box-shadow: 0 12px 34px rgb(6 43 56 / 25%); }
.leaflet-popup-content { margin: 1rem 1.1rem; min-width: min(290px, 65vw); }
.popup-kicker { color: var(--tuerkis-dunkel); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.popup-titel { margin: .15rem 0 .7rem; color: var(--nacht); font-family: Georgia, serif; font-size: 1.25rem; }
.popup-liste { display: grid; grid-template-columns: 105px 1fr; gap: .28rem .6rem; margin: 0; font-size: .75rem; }
.popup-liste dt { color: var(--leise); }
.popup-liste dd { margin: 0; font-weight: 600; }
.popup-beschreibung { margin: .7rem 0; font-size: .8rem; }
.popup-quelle { color: var(--tuerkis-dunkel); font-size: .76rem; font-weight: 750; }

.hinweise { width: 100%; max-width: none; padding-inline: 4vw; color: white; background: var(--nacht); }
.hinweise > div:first-child, .hinweis-raster { width: min(1440px, 100%); margin-inline: auto; }
.hinweise h2 { color: white; }
.hinweis-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.5rem; background: rgb(255 255 255 / 15%); }
.hinweis-raster article { padding: 2rem; background: var(--nacht); }
.hinweis-raster article > span { color: var(--tuerkis); font-family: Georgia, serif; font-style: italic; }
.hinweis-raster h3 { margin: 1rem 0 .6rem; font-family: Georgia, serif; font-size: 1.25rem; }
.hinweis-raster p { margin: 0; color: #b9cfd1; font-size: .9rem; }

.meldung { position: fixed; z-index: 2000; right: 1.2rem; bottom: 1.2rem; max-width: 360px; padding: .9rem 1rem; color: white; background: var(--nacht); border-left: 4px solid var(--tuerkis); box-shadow: var(--schatten); }
footer { padding: 2.5rem 0; color: #b8c8c9; background: #041f29; }
.footer-inhalt { display: grid; grid-template-columns: .7fr 1.5fr 1fr; align-items: center; gap: 2rem; font-size: .78rem; }
.footer-inhalt p { margin: 0; }
.footer-inhalt p:last-child { text-align: right; }
.footer-inhalt a { color: var(--tuerkis); }
.footer-marke strong { display: block; color: white; font-family: Georgia, serif; font-size: 1.2rem; }
.footer-marke span { color: var(--tuerkis); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }

@media (max-width: 1100px) {
  .filter { grid-template-columns: repeat(3, 1fr); }
  .karten-raster { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); }
}

@media (max-width: 800px) {
  .kopf-inhalt, .intro-inhalt, .aktuell-bereich, .entdecker, .footer-inhalt { width: min(100% - 2rem, 720px); }
  .kopf-status { max-width: 155px; text-align: right; }
  .intro-inhalt { grid-template-columns: 1fr; min-height: 420px; }
  .wellenmotiv { display: none; }
  .aktuell-bereich, .entdecker, .hinweise { padding-block: 3.5rem; }
  .aktuell-karte { grid-template-columns: 105px 1fr; gap: 1.2rem; padding: 1.2rem; }
  .aktuell-zeit { padding-right: 1rem; }
  .aktuell-zeit strong { font-size: 1.8rem; }
  .aktuell-karte .sekundaer-knopf { grid-column: 1 / -1; }
  .filter { grid-template-columns: repeat(2, 1fr); }
  .karten-raster { grid-template-columns: 1fr; }
  #karte { height: 520px; }
  .verlauf { border-left: 0; border-top: 1px solid var(--linie); }
  .timeline { height: auto; max-height: 520px; }
  .hinweis-raster { grid-template-columns: 1fr; }
  .footer-inhalt { grid-template-columns: 1fr; text-align: left; }
  .footer-inhalt p:last-child { text-align: left; }
}

@media (max-width: 500px) {
  .kopf-status { display: none; }
  .intro { min-height: 390px; }
  .intro-inhalt { min-height: 390px; padding-block: 3rem; }
  .abschnitt-kopf { align-items: start; flex-direction: column; gap: .7rem; }
  .aktuell-karte { grid-template-columns: 1fr; }
  .aktuell-zeit { padding: 0 0 .9rem; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 18%); }
  .aktuell-zeit strong { font-size: 1.7rem; }
  .filter { grid-template-columns: 1fr; }
  #karte { height: 430px; }
  .karten-legende { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .7rem; }
  .popup-liste { grid-template-columns: 85px 1fr; }
}

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

/* © 2026 Erik Schauer, do1ffe@darc.de */
