:root {
  --bg: #12160f;
  --flaeche: #1b2117;
  --flaeche2: #232b1e;
  --rand: #333d2b;
  --text: #e6ecdd;
  --leise: #9aa78d;
  --gruen: #6f9c57;
  --gruen-dunkel: #2f4f2a;
  --alarm: #e0553f;
  --warn: #dd9a33;
  --info: #6c8fb0;
  --radius: 14px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f0;
    --flaeche: #ffffff;
    --flaeche2: #eef1e8;
    --rand: #d7ddcc;
    --text: #1d2318;
    --leise: #64705a;
    --gruen: #40702f;
    --gruen-dunkel: #2f4f2a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(66px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
}
.versteckt { display: none !important; }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
.fehler { color: var(--alarm); min-height: 1.2em; margin: 6px 0 0; font-size: 14px; }

/* --- Kopf --- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--gruen-dunkel);
  color: #eef3e6;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.kopfzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kopfname {
  flex: 1; text-align: right;
  font-size: 14px; font-weight: 600; color: #eef3e6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Abmelden gehört sichtbar nach oben, nicht versteckt unter „Mehr“ */
.kopfknopf {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  color: #eef3e6;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}
.kopfknopf:hover { background: rgba(255,255,255,.2); }
.kopf .leise { color: #c2d3b4; }
.hinweis {
  margin-top: 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.12); display: flex; gap: 10px;
  align-items: center; justify-content: space-between; font-size: 14px;
}

/* --- Inhalt --- */
.inhalt { padding: 14px 16px 24px; max-width: 900px; margin: 0 auto; }
h2 { font-size: 19px; margin: 4px 0 12px; }
h3 { font-size: 16px; margin: 20px 0 8px; }

.karte {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}

/* --- Filter --- */
.filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.filter button {
  flex: 0 0 auto; border: 1px solid var(--rand); background: var(--flaeche);
  color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); color: #fff; }

/* --- Meldungen --- */
.meldung {
  display: grid; grid-template-columns: 6px 1fr auto; gap: 12px;
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 0; margin-bottom: 10px; overflow: hidden;
}
.meldung .balken { background: var(--info); }
.meldung.alarm .balken { background: var(--alarm); }
.meldung.warnung .balken { background: var(--warn); }
.meldung .mitte { padding: 12px 0; min-width: 0; }
.meldung .rechts { padding: 12px 12px 12px 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.meldung .titel { font-weight: 600; }
.meldung .geraet { font-size: 14px; color: var(--leise); }
.meldung .text { font-size: 14px; color: var(--leise); margin-top: 4px; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meldung .zeit { font-size: 13px; color: var(--leise); white-space: nowrap; }
.meldung .vorschau { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; cursor: pointer; }
.meldung.ungelesen { border-color: var(--gruen); }

.marke {
  display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: var(--flaeche2); color: var(--leise); border: 1px solid var(--rand);
}

/* --- Geräte --- */
.geraet-zeile {
  display: flex; gap: 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--rand);
}
.geraet-zeile:last-child { border-bottom: 0; }
.punkt { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; background: var(--gruen); }
.punkt.still { background: var(--alarm); }
.punkt.batterie { background: var(--warn); }
.punkt.neu, .punkt.aus { background: var(--leise); }
.balkenleiste { height: 6px; background: var(--flaeche2); border-radius: 3px; overflow: hidden; width: 60px; }
.balkenleiste i { display: block; height: 100%; background: var(--gruen); }
.balkenleiste.wenig i { background: var(--warn); }

/* --- Karte --- */
#karteBox { height: min(62vh, 520px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rand); }
.leaflet-container { background: var(--flaeche2); font: inherit; }

/* --- Galerie --- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.galerie figure { margin: 0; position: relative; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; cursor: pointer; }
.galerie figcaption { font-size: 12px; color: var(--leise); margin-top: 3px; }

/* --- Knöpfe und Felder --- */
.knopf {
  border: 1px solid var(--rand); background: var(--flaeche2); color: var(--text);
  border-radius: 10px; padding: 9px 14px; font-size: 15px; cursor: pointer;
}
.knopf.haupt { background: var(--gruen); border-color: var(--gruen); color: #fff; font-weight: 600; }
.knopf.klein { padding: 5px 11px; font-size: 13px; }
.knopf:active { transform: translateY(1px); }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; }

input, select, textarea {
  width: 100%; background: var(--flaeche2); color: var(--text);
  border: 1px solid var(--rand); border-radius: 10px; padding: 9px 11px; font: inherit;
}
label { display: block; font-size: 14px; color: var(--leise); margin-bottom: 10px; }
label input, label select, label textarea { margin-top: 4px; color: var(--text); }

/* --- Anmeldung --- */
.anmeldung { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.anmeldebox { width: 100%; max-width: 360px; text-align: center; }
.anmeldebox h1 { font-size: 22px; margin: 10px 0 2px; }
.anmeldebox label { text-align: left; margin-top: 14px; }
.anmeldebox .knopf { width: 100%; margin-top: 16px; }

/* --- Tableiste --- */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--flaeche); border-top: 1px solid var(--rand);
  padding-bottom: env(safe-area-inset-bottom);
}
.leiste a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 2px 7px; font-size: 11px; color: var(--leise); text-decoration: none;
  /* Sechs Einträge müssen auch auf schmalen Geräten nebeneinander passen */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
@media (max-width: 380px) { .leiste a { font-size: 10px; } }
.leiste a span { font-size: 19px; line-height: 1; }
.leiste a.aktiv { color: var(--gruen); }

/* --- Bildlupe --- */
.lupe {
  position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.92);
  display: grid; place-items: center; padding: 16px;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}
/* Prozentangaben laufen hier ins Leere, weil die Zeilenhöhe erst vom
   Bild bestimmt wird. Deshalb feste Maße am Sichtfenster. */
.lupe img {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lupe .zu {
  position: absolute; top: 10px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.45); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
/* Solange die Lupe offen ist, steht die Seite dahinter still */
body.starr { overflow: hidden; }

.zaehler { display: flex; gap: 10px; margin-bottom: 12px; }
.zaehler div {
  flex: 1; background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 10px; text-align: center;
}
.zaehler b { display: block; font-size: 22px; }
.zaehler span { font-size: 12px; color: var(--leise); }

pre.roh {
  background: var(--flaeche2); border: 1px solid var(--rand); border-radius: 10px;
  padding: 10px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; max-height: 180px;
}


/* --- Zwei Spalten: links Fallen, rechts Kameras --- */
.spalten { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .spalten { grid-template-columns: 1fr 1fr; align-items: start; }
}
.spalte-kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--rand);
}
.spalte-kopf h3 { margin: 0; font-size: 16px; }
.spalte-kopf .anzahl { font-size: 13px; color: var(--leise); }

/* Auf dem Handy: Umschalter statt Nebeneinander */
.quellenwahl { display: flex; gap: 8px; margin-bottom: 12px; }
.quellenwahl button {
  flex: 1; border: 1px solid var(--rand); background: var(--flaeche);
  color: var(--text); border-radius: 10px; padding: 9px; font-size: 14px; cursor: pointer;
}
.quellenwahl button[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); color: #fff; }
@media (min-width: 900px) { .quellenwahl { display: none; } }
@media (max-width: 899px) { .spalte.aus { display: none; } }

/* --- Schalter zum Aktivieren/Abschalten --- */
.schalter {
  position: relative; width: 42px; height: 24px; flex: 0 0 auto;
  border-radius: 999px; border: 1px solid var(--rand); background: var(--flaeche2);
  cursor: pointer; transition: background .15s;
}
.schalter i {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--leise); transition: transform .15s, background .15s;
}
.schalter[aria-checked="true"] { background: var(--gruen); border-color: var(--gruen); }
.schalter[aria-checked="true"] i { transform: translateX(18px); background: #fff; }
.schalter[disabled] { opacity: .4; cursor: not-allowed; }

.geraet-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  color: var(--text); text-align: left; cursor: pointer; }
.geraet-name:hover { color: var(--gruen); text-decoration: underline; }
.geraet-name[disabled] { cursor: default; text-decoration: none; }

.revier-marke { font-size: 12px; color: var(--leise); }

.rechtezeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--rand); font-size: 14px; }
.rechtezeile label { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.rechtezeile input[type=checkbox] { width: auto; margin: 0; }

/* ---------------------------------------------- Punkte auf der Revierkarte */
.punktsymbol {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid #fff; box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  flex: none; vertical-align: middle;
}
.punktsymbol svg { display: block; }

/* ------------------------------------------------------ Vorschau des Imports */
.importrolle { max-height: 62vh; overflow-y: auto; margin: 10px 0; }
.importzeile { padding: 8px 0; border-bottom: 1px solid var(--rand); }
.importkopf { display: flex; align-items: center; gap: 8px; margin: 0; }
.importkopf input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0; }
.importkopf input[type="text"] { flex: 1; margin: 0; padding: 6px 8px; min-width: 0; }
.importwahl { display: flex; gap: 6px; margin: 6px 0 0 26px; }
.importwahl select { flex: 1; margin: 0; padding: 6px 8px; font-size: 13px; min-width: 0; }
.importfuss { margin: 4px 0 0 26px; overflow-wrap: anywhere; }

/* ------------------------------------------------- Kurze Hinweise statt Dialog */
.hinweisleiste {
  position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px);
  max-width: min(90vw, 460px); padding: 12px 16px; border-radius: 12px;
  background: var(--flaeche); border: 1px solid var(--rand);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  font-size: 14px; line-height: 1.4; text-align: center;
  opacity: 0; pointer-events: none; z-index: 9000;
  transition: opacity .18s ease, transform .18s ease;
}
.hinweisleiste.sichtbar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; cursor: pointer; }

/* ------------------------------------------- Karte mit Liste daneben */
.kartenlayout { display: flex; flex-direction: column; gap: 12px; }
.kartenspalte { display: flex; flex-direction: column; gap: 8px; }
.kartenspalte .breit { width: 100%; text-align: left; }
.revierblock {
  border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 8px; background: var(--flaeche);
}
.revierknopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.revierblock summary { cursor: pointer; margin-top: 6px; }
.punktliste { display: flex; flex-direction: column; margin-top: 6px; }
.punktzeile {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  background: none; border: 0; border-bottom: 1px solid var(--rand);
  color: inherit; font: inherit; text-align: left;
  padding: 6px 2px; cursor: pointer;
}
.punktzeile:last-child { border-bottom: 0; }
.punktzeile:hover { color: var(--gruen); text-decoration: underline; }

@media (min-width: 900px) {
  .kartenlayout { flex-direction: row; align-items: stretch; }
  #karteBox { flex: 1; min-width: 0; height: min(70vh, 620px); }
  .kartenspalte {
    width: 260px; flex: none;
    max-height: min(70vh, 620px); overflow-y: auto; padding-right: 4px;
  }
}

/* Geräte auf der Karte – als Zeichen, damit sie sich verschieben lassen */
.geraetsymbol {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; color: #fff;
  font-size: 11px; line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.hinweisleiste { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hinweisleiste .knopf { flex: none; }
.leaflet-marker-draggable { cursor: grab; }
.leaflet-marker-draggable:active { cursor: grabbing; }

/* ------------------------------------------- Am Rechner die Breite nutzen */
@media (min-width: 900px) {
  .inhalt { max-width: none; padding: 18px 28px 28px; }

  /* Eingabefelder sollen nicht über die halbe Wand laufen */
  .karte label > input,
  .karte label > select,
  .karte > input,
  .karte > select { max-width: 560px; }
}

/* Ab wirklich breiten Schirmen nebeneinander statt untereinander */
@media (min-width: 1500px) {
  .inhalt > h2 { margin-bottom: 4px; }
  .spaltig {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(540px, 1fr));
    gap: 14px;
    align-items: start;
  }
  .spaltig > .karte { margin: 0; }
}

/* ------------------------------------------------- Reiter für die Reviere */
.reiterreihe {
  display: flex; flex-wrap: wrap; gap: 6px;
  border-bottom: 1px solid var(--rand); padding-bottom: 8px; margin-bottom: 4px;
}
.reiter {
  background: var(--flaeche); color: inherit; font: inherit;
  border: 1px solid var(--rand); border-bottom-color: transparent;
  border-radius: 10px 10px 0 0; padding: 8px 14px; cursor: pointer;
}
.reiter:hover { background: var(--flaeche2); }
.reiter.an {
  background: var(--gruen); border-color: var(--gruen); color: #fff; font-weight: 600;
}
.reiter.an .leise { color: rgba(255, 255, 255, .8); }

.gruppe { margin-top: 14px; }


/* Die vier Gruppen der Geräteseite passen nebeneinander, seit die Zeilen
   nur noch Name und Revier tragen. */
@media (min-width: 1200px) {
  .spaltig.eng {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    align-items: start;
  }
  .spaltig.eng > .gruppe { margin-top: 0; }
}
/* In den schmalen Spalten bleibt der Batteriebalken weg – der farbige Punkt
   und die Kurzinfo am Namen sagen dasselbe, ohne den Namen zu quetschen. */
@media (min-width: 1200px) {
  .spaltig.eng .balkenleiste { display: none; }
}

/* ------------------------------------------------ Grenze zeichnen */
/* Fadenkreuz in der Kartenmitte: damit lässt sich vor jedem Stützpunkt
   so weit heranzoomen, wie es die Genauigkeit verlangt. */
.fadenkreuz {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  z-index: 620;
  pointer-events: none;
}
.fadenkreuz svg { width: 100%; height: 100%; display: block; }

/* Bedienleiste über der Karte – die Karte bleibt darunter voll bedienbar */
.zeichenleiste {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 630;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(20, 28, 16, .88);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  max-width: calc(100% - 20px);
  flex-wrap: wrap;
  justify-content: center;
}
.zeichenleiste .knopf { flex: none; padding: 8px 12px; }
.zeichenleiste [data-anzahl] { color: #d9e4cd; padding: 0 4px; white-space: nowrap; }

/* Hinweis auf eine angefangene, noch nicht gespeicherte Grenze */
.offenhinweis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(224, 163, 63, .45);
  background: rgba(224, 163, 63, .12);
  font-size: 14px;
}

/* ------------------------------------------------ Einladungen */
.einladungkasten {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(143, 188, 106, .4);
  background: rgba(143, 188, 106, .1);
}
.linkfeld {
  width: 100%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  padding: 8px 10px;
}
.einladungkasten a.knopf { text-decoration: none; display: inline-flex; align-items: center; }

/* Punkt, der gerade zum Verschieben freigegeben ist */
.leaflet-marker-icon.schiebt {
  filter: drop-shadow(0 0 0 #e0a33f) drop-shadow(0 0 6px #e0a33f);
  cursor: grab;
  animation: schiebtPuls 1.2s ease-in-out infinite;
}
.leaflet-marker-icon.schiebt:active { cursor: grabbing; }
/* Nur die Deckkraft darf sich ändern – transform gehört Leaflet,
   sonst springt die Markierung von ihrem Platz. */
@keyframes schiebtPuls {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ------------------------------------------------ Maske über der Seite */
.ueberlagerung {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 12, 7, .72);
  overflow-y: auto;
}
.ueberlagerung .maske {
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  margin: auto;
}
.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fangbilanz { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fangbilanz .marke b { margin-left: 4px; }

/* Unauffälliger Knopf – etwa „Passwort vergessen?“ unter der Anmeldung */
.knopf.schlicht {
  background: none;
  border: none;
  color: var(--leise);
  text-decoration: underline;
  padding: 6px;
  font-size: 13px;
}
.knopf.schlicht:hover { color: var(--text); }

/* Guthaben der Kamera-SIM auf dem Reiter Meldungen */
.karte.kontostand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.kontowert { font-size: 22px; font-weight: 600; line-height: 1.2; }
.karte.kontostand.knapp { border-color: var(--warn); }
.karte.kontostand.knapp .kontowert { color: var(--warn); }


/* ------------------------------------------------- Bilder am Tagebucheintrag */
.bildstreifen { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bildchen { position: relative; width: 84px; height: 84px; }
.bildchen img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--rand); cursor: zoom-in;
}
.bildweg {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--rand); background: var(--flaeche);
  color: var(--leise); font-size: 15px; line-height: 1; cursor: pointer;
}
.bildweg:hover { color: var(--alarm); }

.tb-eintrag { padding: 10px 0; border-bottom: 1px solid var(--rand); }
.tb-eintrag:last-child { border-bottom: 0; }
.knopfspalte { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }

/* ------------------------------------------------------------- Jagduhr */
.lichtkarte { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lichtkarte.hell { border-left: 4px solid var(--gruen); }
.lichtkarte.dunkel { border-left: 4px solid var(--leise); }
.lichtstand b { display: block; font-size: 18px; }
.lichtstand .klein { color: var(--leise); }

.lichttabelle { width: 100%; border-collapse: collapse; }
.lichttabelle td { padding: 5px 0; border-bottom: 1px solid var(--rand); }
.lichttabelle tr:last-child td { border-bottom: 0; }
.lichttabelle td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.mondzeile { display: flex; align-items: center; gap: 12px; }
/* Der beleuchtete Anteil als Balken im Kreis – schlicht, aber ablesbar */
.mondscheibe {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--rand);
  background: linear-gradient(to right, #e9edda var(--anteil, 50%), #2a3524 var(--anteil, 50%));
}

.wetterjetzt { display: flex; align-items: center; gap: 14px; }
.wettergrad { font-size: 38px; font-weight: 600; line-height: 1; }
.wetterreihe { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.wetterstunde {
  flex: 0 0 auto; text-align: center; min-width: 64px;
  background: var(--flaeche2); border: 1px solid var(--rand);
  border-radius: 10px; padding: 8px 6px;
}

.jz-zeile { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rand); }
.jz-zeile:last-child { border-bottom: 0; }
