:root {
  --nacht: #0c1420;
  --nacht-2: #131f2f;
  --karte: #182739;
  --rand: #26384f;
  --fjord: #4a9fd4;
  --fjord-hell: #7cc4ec;
  --schnee: #eef4f9;
  --grau: #8ba3bb;
  --warn: #e8a13a;
  --gefahr: #e05c5c;
  --gut: #4fbf8b;
  --radius: 14px;
}

* { box-sizing: border-box; }

/* Muss vor den Komponenten stehen: sonst überschreibt etwa .chip mit
   display:inline-block das hidden-Attribut und Verstecktes bleibt sichtbar. */
[hidden] { display: none !important; }

html { overflow-x: clip; }

body {
  margin: 0;
  /* clip statt hidden: hidden würde position:sticky in der Kopfleiste brechen. */
  overflow-x: clip;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--nacht);
  color: var(--schnee);
  line-height: 1.55;
}

/* Der Fjord steht still, während der Inhalt darüber scrollt. Als eigenes
   Element statt background-attachment: fixed, weil iOS das ignoriert. */
.hintergrund {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/hintergrund.01b1bb38b114.jpg") center / cover no-repeat;
}
.hintergrund::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(9, 15, 25, .82), rgba(9, 15, 25, .94) 55%, var(--nacht)),
    radial-gradient(ellipse 70% 45% at 50% 12%, rgba(79, 191, 139, .07), transparent);
}

a { color: var(--fjord-hell); }

/* --- Kopf --- */
.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 400;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
/* Erst beim Scrollen wird die Leiste undurchsichtig. */
.kopf.gescrollt {
  background: rgba(10, 17, 28, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rand);
}

.marke { text-decoration: none; color: var(--schnee); display: flex; align-items: center; gap: .6rem; }
.marke-zeichen { width: 30px; height: 30px; border-radius: 8px; display: block; }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; }
.marke-titel { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.marke-jahr { font-size: .72rem; color: var(--grau); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a {
  position: relative;
  padding: .5rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #b9cbdc;
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .09); color: var(--schnee); }
.nav a.aktiv { color: var(--schnee); background: rgba(74, 159, 212, .2); }
.nav a.aktiv::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .12rem;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--fjord-hell);
  transform: translateX(-50%);
}

/* Über dem Hero braucht die Leiste einen eigenen Verlauf, sonst verschwindet
   sie im hellen Himmel. */
body.hat-hero .kopf:not(.gescrollt)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 14, 24, .75), transparent);
  pointer-events: none;
  z-index: -1;
}
body.hat-hero .kopf:not(.gescrollt) .marke,
body.hat-hero .kopf:not(.gescrollt) .nav a { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

body.hat-hero { position: relative; }
/* Der Hero beginnt unter der Leiste, deshalb den Platz wieder hereinholen. */
body.hat-hero .hero { margin-top: calc(-1 * (30px + 1.7rem + 2px)); }

/* --- Hero --- */
.hero {
  position: relative;
  height: 78vh;
  min-height: 460px;
  max-height: 720px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 20, 32, .55) 0%,
    rgba(12, 20, 32, .15) 35%,
    rgba(12, 20, 32, .75) 78%,
    var(--nacht) 100%
  );
}
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}
.hero-ort {
  margin: 0 0 .8rem;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fjord-hell);
}
.hero-titel {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.hero-datum { margin: 1rem 0 0; font-size: 1.05rem; color: var(--schnee); opacity: .85; }
.hero-countdown { margin: .2rem 0 0; color: var(--grau); font-size: .95rem; }
.hero-countdown strong { color: var(--fjord-hell); font-size: 1.6rem; font-weight: 700; }

/* --- Seitenkopf der Unterseiten --- */
/* Läuft über die volle Fensterbreite und unter der Navigationsleiste hindurch,
   damit er nicht als Kasten in der Inhaltsspalte klebt. */
.seitenkopf {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(-2rem - 60px);
  margin-bottom: 2.5rem;
  padding-top: 60px;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.seitenkopf-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Zwei Verläufe: einer dunkelt das Bild ab, der zweite blendet es unten
   vollständig in den Seitenhintergrund aus — so gibt es keine harte Kante. */
.seitenkopf::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 17, 28, .72) 0%,
      rgba(10, 17, 28, .25) 30%,
      rgba(12, 20, 32, .8) 72%,
      var(--nacht) 100%),
    linear-gradient(to right,
      rgba(10, 17, 28, .55) 0%,
      transparent 45%);
}
.seitenkopf-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 2.2rem;
}
.seitenkopf-text h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  letter-spacing: -.035em;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .6);
}
.seitenkopf-unter {
  margin: .6rem 0 0;
  color: #cadaea;
  max-width: 48ch;
  font-size: 1.02rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}

/* --- Layout --- */
.inhalt { max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
body.hat-hero .inhalt { padding-top: 0; }

/* Ein Satz, der sagt, was hier gerade zu tun ist. */
.fuehrung {
  font-size: 1.05rem;
  color: var(--grau);
  max-width: 46ch;
  margin: 0 0 1.5rem;
}

h2.abschnitt {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--grau);
  font-weight: 600;
  margin: 2.6rem 0 .9rem;
}

/* Die eine Sache, die jetzt dran ist. */
.tat {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, rgba(30, 47, 66, .62), rgba(18, 30, 45, .72));
  border: 1px solid rgba(140, 180, 220, .14);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.tat:hover {
  border-color: rgba(124, 196, 236, .45);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.tat-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tat-kopf h2 { margin: 0; font-size: 1.3rem; }
.tat-wert { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; color: var(--fjord-hell); }
.tat-unter { margin: .5rem 0 0; color: var(--grau); font-size: .9rem; }
.tat .balken { margin-top: .9rem; }

/* --- Bildkacheln: die Hauptnavigation auf der Startseite --- */
.bild-raster {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.bildkachel {
  position: relative;
  display: block;
  min-height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--schnee);
  border: 1px solid rgba(140, 180, 220, .14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .32);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* Die Karte ist der wichtigste Einstieg und bekommt doppelte Breite. */
.bildkachel.gross { grid-column: span 2; min-height: 210px; }

.bildkachel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.bildkachel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 14, 24, .93) 0%,
    rgba(8, 14, 24, .55) 45%,
    rgba(8, 14, 24, .12) 100%
  );
  transition: background .25s;
}
.bildkachel-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  height: 100%;
  justify-content: flex-end;
  padding: 1.1rem 1.2rem;
}
.bildkachel-titel {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.bildkachel-unter {
  font-size: .87rem;
  color: #c6d7e6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}
.bildkachel:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 196, 236, .5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.bildkachel:hover img { transform: scale(1.07); }
.bildkachel:hover::after {
  background: linear-gradient(
    to top,
    rgba(8, 14, 24, .9) 0%,
    rgba(12, 34, 52, .5) 45%,
    rgba(74, 159, 212, .16) 100%
  );
}

@media (max-width: 620px) {
  .bildkachel.gross { grid-column: span 1; }
}

/* --- Kacheln als Navigation --- */
.kachel {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, rgba(30, 47, 66, .58), rgba(18, 30, 45, .7));
  border: 1px solid rgba(140, 180, 220, .13);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.kachel:hover {
  border-color: rgba(124, 196, 236, .45);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.kachel-titel { font-weight: 600; font-size: 1.02rem; }
.kachel-unter { color: var(--grau); font-size: .87rem; }
.kachel.warnkachel { border-left: 3px solid var(--warn); }

h1 { font-size: 1.9rem; letter-spacing: -.02em; margin: 0 0 .4rem; }
h2 {
  font-size: 1.15rem;
  margin: 2.4rem 0 .9rem;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: .7rem;
}
/* Feine Linie, die die Überschrift nach rechts auslaufen lässt. */
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(140, 180, 220, .22), transparent);
}
h3 { font-size: 1rem; margin: 0 0 .4rem; }
.unter { color: var(--grau); margin: 0 0 2rem; }

/* Glasflächen: halbtransparent mit Unschärfe, damit der Fjord durchscheint.
   Der helle Rand oben simuliert eine Lichtkante. */
.karte {
  background: linear-gradient(160deg, rgba(30, 47, 66, .62), rgba(18, 30, 45, .72));
  border: 1px solid rgba(140, 180, 220, .14);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- Kacheln --- */
.kachel-wert { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.kachel-label { color: var(--grau); font-size: .85rem; }

/* --- Fortschritt --- */
.balken { height: 7px; background: rgba(8, 15, 25, .6); border-radius: 999px; overflow: hidden; margin-top: .5rem; }
.balken > div { height: 100%; background: linear-gradient(90deg, var(--fjord), var(--fjord-hell)); border-radius: 999px; }
.balken.voll > div { background: linear-gradient(90deg, var(--warn), var(--gefahr)); }

/* --- Tabellen --- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem .5rem; text-align: left; border-bottom: 1px solid rgba(140, 180, 220, .1); font-size: .93rem; }
th { color: var(--grau); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Listen --- */
.zeile {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .55rem;
  margin: 0 -.55rem;
  border-bottom: 1px solid rgba(140, 180, 220, .1);
  border-radius: 8px;
  transition: background .15s;
}
.zeile:hover { background: rgba(140, 180, 220, .06); }
.zeile:last-child { border-bottom: 0; }
.zeile-haupt { flex: 1; min-width: 0; }
.zeile.erledigt .zeile-haupt { opacity: .4; text-decoration: line-through; }

/* --- Marken/Chips --- */
.chip {
  display: inline-block;
  padding: .14rem .58rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(140, 180, 220, .1);
  color: #a9bece;
  border: 1px solid rgba(140, 180, 220, .16);
  white-space: nowrap;
}
.chip.warn { background: rgba(232, 161, 58, .13); color: var(--warn); border-color: rgba(232, 161, 58, .35); }
.chip.gefahr { background: rgba(224, 92, 92, .13); color: var(--gefahr); border-color: rgba(224, 92, 92, .35); }
.chip.gut { background: rgba(79, 191, 139, .13); color: var(--gut); border-color: rgba(79, 191, 139, .35); }
.chip.person { color: var(--schnee); }

/* --- Hinweise --- */
.hinweis {
  border-left: 3px solid var(--warn);
  background: rgba(232, 161, 58, .08);
  padding: .8rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}
.hinweis.gefahr { border-color: var(--gefahr); background: rgba(224, 92, 92, .08); }
.hinweis h3 { color: var(--warn); }
.hinweis.gefahr h3 { color: var(--gefahr); }

.meldungen { margin-bottom: 1.5rem; }
.meldung {
  background: rgba(79, 191, 139, .12);
  border: 1px solid rgba(79, 191, 139, .3);
  color: var(--gut);
  padding: .7rem 1rem;
  border-radius: 8px;
  margin-bottom: .5rem;
}

/* --- Formulare --- */
form p { margin: 0 0 .9rem; }
label { display: block; font-size: .85rem; color: var(--grau); margin-bottom: .25rem; }
input[type=text], input[type=number], input[type=date], input[type=password],
input[type=url], select, textarea {
  width: 100%;
  padding: .6rem .7rem;
  background: rgba(10, 18, 30, .55);
  border: 1px solid rgba(140, 180, 220, .18);
  border-radius: 9px;
  color: var(--schnee);
  font-size: .95rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--fjord); outline-offset: -1px; }
input[type=checkbox] { width: auto; accent-color: var(--fjord); }

ul#id_beteiligte { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
ul#id_beteiligte label { display: flex; align-items: center; gap: .35rem; color: var(--schnee); }

.knopf {
  display: inline-block;
  padding: .6rem 1.1rem;
  background: var(--fjord);
  color: #06121e;
  border: 0;
  border-radius: 9px;
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.knopf:hover { background: var(--fjord-hell); }
.knopf.leise { background: transparent; color: var(--grau); border: 1px solid var(--rand); }
.knopf.leise:hover { color: var(--schnee); border-color: var(--grau); background: transparent; }
.knopf.klein { padding: .3rem .6rem; font-size: .8rem; }

details.formular { margin-bottom: 2rem; }
details.formular > summary {
  cursor: pointer;
  padding: .7rem 1rem;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  font-weight: 600;
  list-style: none;
}
details.formular > summary::-webkit-details-marker { display: none; }
details.formular > summary::before { content: "+ "; color: var(--fjord); }
details.formular[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
details.formular[open] > summary::before { content: "− "; }
details.formular .formular-koerper {
  border: 1px solid var(--rand);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.2rem 1.3rem;
  background: var(--nacht-2);
}

/* --- Galerie --- */
.galerie-raster { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.galerie-raster img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }

/* --- Kasse --- */
.umrechnung {
  min-height: 1.4em;
  color: var(--fjord-hell);
  font-size: .92rem;
  margin: -.3rem 0 1rem;
}
.kurs-hinweis { color: var(--grau); font-size: .82rem; margin: 1rem 0 0; }

/* Währungswahl als zwei Schalter statt Radiobuttons in einer Liste. */
ul#id_waehrung { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; }
ul#id_waehrung label {
  display: flex; align-items: center; gap: .35rem;
  padding: .4rem .9rem;
  border: 1px solid var(--rand);
  border-radius: 999px;
  background: var(--nacht-2);
  color: var(--schnee);
  cursor: pointer;
  margin: 0;
}
ul#id_waehrung label:has(input:checked) {
  background: var(--fjord); border-color: var(--fjord); color: #06121e; font-weight: 600;
}

/* --- Rückmeldung beim Speichern im Hintergrund --- */
@keyframes quittung {
  0%   { box-shadow: 0 0 0 0 rgba(79, 191, 139, .6); }
  100% { box-shadow: 0 0 0 7px rgba(79, 191, 139, 0); }
}
.gespeichert { animation: quittung .7s ease-out; }

.zeile.verblasst { opacity: .4; transition: opacity .3s; }

.schwebemeldung {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1.5rem);
  z-index: 500;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: rgba(20, 34, 50, .95);
  border: 1px solid rgba(140, 180, 220, .22);
  backdrop-filter: blur(12px);
  font-size: .9rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.schwebemeldung.sichtbar { opacity: 1; transform: translate(-50%, 0); }

/* --- Gewicht direkt in der Zeile ändern --- */
.gewicht-form { display: flex; align-items: center; gap: .3rem; }
.gewicht-form input {
  width: 5.5rem;
  padding: .3rem .45rem;
  font-size: .85rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* Selbst eingetragene Werte heben sich vom Richtwert ab. */
.gewicht-form input.eigenes { border-color: var(--fjord); color: var(--fjord-hell); }
.gewicht-form .einheit { color: var(--grau); font-size: .8rem; }

/* Die Personen-Tabs sind Links, sehen aber aus wie die Filter-Knöpfe. */
a.filter-knopf { text-decoration: none; display: inline-block; }

/* --- Karte --- */
.karten-filter { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-knopf {
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--rand);
  background: var(--nacht-2);
  color: var(--grau);
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-knopf.aktiv { background: var(--fjord); border-color: var(--fjord); color: #06121e; font-weight: 600; }
.filter-anzahl { opacity: .65; font-size: .78rem; }

.karten-huelle { position: relative; }
#karte {
  height: 62vh;
  min-height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--rand);
  background: var(--nacht-2);
  z-index: 1;
}
.gps-knopf {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .55rem 1rem;
  border: 0;
  border-radius: 9px;
  background: var(--fjord);
  color: #06121e;
  font-weight: 600;
  font-size: .88rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.gps-knopf:hover { background: var(--fjord-hell); }
.karten-hinweis { color: var(--grau); font-size: .85rem; margin-top: .9rem; }

/* Die Seekarte liegt im Multiply-Modus über dem Luftbild: ihr weißes Papier
   wird dadurch unsichtbar, Tiefenzahlen und Konturen bleiben stehen. */
.tiefen-auflage {
  mix-blend-mode: multiply;
  filter: saturate(1.35) contrast(1.15);
}

/* --- Popups --- */
.leaflet-popup-content { font-size: .88rem; line-height: 1.5; margin: .8rem 1rem; }
.leaflet-popup-content-wrapper {
  background: var(--karte);
  color: var(--schnee);
  border: 1px solid var(--rand);
  border-radius: 10px;
}
.leaflet-popup-tip { background: var(--karte); border: 1px solid var(--rand); }
.leaflet-container a.leaflet-popup-close-button { color: var(--grau); }
.popup-links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.popup-links a {
  padding: .25rem .6rem;
  border-radius: 6px;
  background: var(--nacht-2);
  border: 1px solid var(--rand);
  font-size: .8rem;
  text-decoration: none;
}
.popup-links a:hover { border-color: var(--fjord); }

/* Ebenen-Umschalter an das dunkle Layout anpassen. */
.leaflet-control-layers {
  background: rgba(18, 30, 44, .93);
  border: 1px solid var(--rand);
  border-radius: 10px;
  color: var(--schnee);
  backdrop-filter: blur(8px);
}
.leaflet-control-layers-expanded { padding: .6rem .8rem; font-size: .85rem; }
.leaflet-control-layers-separator { border-top-color: var(--rand); }
.leaflet-bar a, .leaflet-bar a:hover {
  background: var(--karte); color: var(--schnee); border-bottom-color: var(--rand);
}

/* --- Ortsliste unter der Karte --- */
.ort-gruppe {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  margin: 1.6rem 0 .6rem;
}
.ort-punkt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ort-anzahl { color: var(--grau); font-weight: 400; font-size: .85rem; }

.ort-zeile { cursor: pointer; transition: background .15s; border-radius: 8px; }
.ort-zeile:hover { background: rgba(74, 159, 212, .09); }
.ort-name { font-weight: 500; }
.ort-notiz {
  color: var(--grau);
  font-size: .85rem;
  margin-top: .15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ort-zeiten { color: var(--fjord-hell); font-size: .82rem; margin-top: .15rem; }
.ort-aktionen { display: flex; gap: .3rem; flex-shrink: 0; }

/* --- Login --- */
.login-schirm { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-karte { max-width: 340px; width: 100%; text-align: center; }

/* --- Fuß --- */
.fuss { text-align: center; color: var(--grau); font-size: .82rem; padding: 2rem 1.5rem 3rem; }

.leer { color: var(--grau); font-style: italic; padding: 1.5rem 0; text-align: center; }

@media (max-width: 760px) {
  .inhalt { padding: 1.5rem 1rem 3rem; }
  .seitenkopf-text, .hero-text { padding-left: 1rem; padding-right: 1rem; }

  /* Die Leiste bleibt einzeilig und wird stattdessen seitlich scrollbar —
     umbrechen ließ sie über das Kopfbild laufen. */
  .kopf {
    padding: .7rem 1rem;
    flex-wrap: nowrap;
    gap: .5rem;
    background: rgba(10, 17, 28, .9);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--rand);
  }
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-right: -1rem;
    padding-right: 1rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .45rem .7rem; font-size: .88rem; white-space: nowrap; }
  .marke-jahr { display: none; }

  /* Ohne durchsichtige Leiste braucht der Hero seinen Platz wieder. */
  body.hat-hero .hero { margin-top: 0; }
  .seitenkopf { margin-top: -1.5rem; padding-top: 0; min-height: 34vh; }

  h1 { font-size: 1.5rem; }
  th, td { padding: .5rem .35rem; font-size: .87rem; }

  /* Aktionen unter den Text statt daneben, sonst wird es zu eng. */
  .ort-zeile { flex-wrap: wrap; }
  .ort-aktionen { width: 100%; justify-content: flex-start; }
}
