

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  color: var(--text);
  background: var(--hell);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 9500;
  background: linear-gradient(90deg, var(--marke) 0%, var(--marke-akzent) 100%);
  pointer-events: none;
}

h1 { color: var(--marke-dunkel); font-weight: 700; }
h2 { color: var(--text); font-weight: 700; }

.logo-marke { height: clamp(38px, 6.5vh, 54px); width: auto; max-width: 100%; display: block; margin: 0 auto 4px; }

.logo-marke-hell { filter: brightness(0) invert(1); }

.key-gate {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--hell); z-index: 1000;

  background-image: url("/img/universe-zeichen.svg");
  background-repeat: no-repeat;
  background-position: center;

  background-size: min(76vh, 76vw);
  isolation: isolate;

  overflow-y: auto;
  padding: 24px 0;
}
.key-gate::before {

  content: ""; position: fixed; inset: 0;
  background: var(--hell); opacity: 0.94;
}
.key-box {
  position: relative;
  margin: auto;
  background: var(--flaeche); padding: 44px 40px; border: 1px solid var(--rand);
  border-radius: 12px; box-shadow: var(--schatten-2);
  width: min(92vw, 380px); text-align: center;
}
.key-sub { color: var(--text-mute); margin: 10px 0 30px; font-size: 0.95rem; }
.key-label { display: block; text-align: left; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }

.key-box .primary-btn { width: 100%; }
.key-fehler { color: #c0392b; font-size: 0.9rem; margin: 12px 0 0; }
.key-hinweis { color: var(--text-mute); font-size: 0.8rem; margin-top: 22px; }

#anmelde-form .ut-feld { width: 100%; margin-bottom: 16px; }
#anmelde-form .key-label { margin-top: 4px; }
.key-box a { color: var(--marke); }

.key-box a.primary-btn, .key-box a.primary-btn:hover { color: #fff; text-decoration: none; }

.key-alternativ {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rand);
  text-align: left;
}
.key-alternativ > summary {
  cursor: pointer;
  color: var(--marke);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;

  list-style: none;
}
.key-alternativ > summary::-webkit-details-marker { display: none; }
.key-alternativ > summary::after { content: " ▾"; }
.key-alternativ[open] > summary::after { content: " ▴"; }
.key-alternativ > summary:hover { text-decoration: underline; }
.key-alternativ #registrier-form { margin-top: 14px; }
.key-alternativ #registrier-form .ut-feld { width: 100%; margin-bottom: 12px; }
.key-alternativ #reg-btn { width: 100%; margin-top: 4px; }

.key-alternativ .reg-meldung { margin: 10px 0 0; }
.key-alternativ .reg-meldung.key-fehler {
  padding: 8px 10px; border-radius: var(--radius-s);
  background: var(--signal-gefahr-soft); border: 1px solid var(--signal-gefahr);
  color: var(--signal-gefahr); font-weight: 600;
}

.key-alternativ .reg-freischalten { display: flex; width: 100%; margin-top: 12px; box-sizing: border-box; }
.key-alternativ .ut-feld[aria-invalid="true"] {
  border-color: var(--signal-gefahr); box-shadow: 0 0 0 2px var(--signal-gefahr-soft);
}

.key-hinweis--links { text-align: left; }

.key-box--pruefe > :not(.logo-marke):not(.key-sub) { visibility: hidden; }
.key-box--testzugang #anmelde-form,
.key-box--testzugang #anmelde-fehler,
.key-box--testzugang #vergessen-hinweis,
.key-box--testzugang > .key-hinweis:not(.tor-zur-anmeldung),
.key-box--testzugang #registrieren-klapp > summary,
.key-box--testzugang #registrieren-klapp > .key-hinweis:not(#reg-hinweis),
.key-box--testzugang label[for="reg-telefon"], .key-box--testzugang #reg-telefon,
.key-box--testzugang label[for="reg-woher"], .key-box--testzugang #reg-woher,
.key-box--testzugang label[for="reg-code"], .key-box--testzugang #reg-code,
.key-box--testzugang #reg-ohne-code-zeile { display: none; }
.key-box--testzugang .key-sub { margin-bottom: 18px; }
.key-box--testzugang .key-alternativ { margin-top: 0; padding-top: 0; border-top: 0; }
.key-box--testzugang .key-alternativ #registrier-form { margin-top: 0; }
.tor-testzugang { text-align: left; margin-bottom: 18px; }
.tor-testzugang-titel { font-size: 1.35rem; line-height: 1.25; margin: 0 0 8px; color: var(--text); }
.tor-testzugang-text { margin: 0 0 6px; font-size: 0.92rem; line-height: 1.45; color: var(--text); }
.tor-testzugang-text--leise { color: var(--text-mute); }
.tor-code-meldung { text-align: left; margin: 0 0 18px; }

.key-alternativ #registrier-form #reg-code { margin-bottom: 4px; }
.key-alternativ #registrier-form #reg-code:disabled { opacity: 0.5; cursor: not-allowed; }
.reg-ohne-code {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin: 0 0 14px; font-size: 0.82rem; color: var(--text-mute); text-align: left;
}
.reg-ohne-code-haken { display: inline-flex; align-items: center; gap: 6px; color: var(--text); cursor: pointer; }
.reg-ohne-code-haken input { margin: 0; }

.reg-code-zeile { margin: 2px 0 12px; font-size: 0.85rem; color: var(--text-mute); }
.reg-code-zeile b { font-family: var(--mono, ui-monospace, monospace); letter-spacing: 0.04em; color: var(--text); }

.reg-sofort .passwort-feld { margin-bottom: 4px; }
.key-alternativ #registrier-form .reg-sofort .passwort-feld .ut-feld { margin-bottom: 0; }
.reg-sofort .reg-passwort-regel { margin: 0 0 10px; }

.reg-sofort .reg-feldmeldung { margin: 2px 0 4px; text-align: left; font-weight: 600; }
.reg-sofort .dsgvo-zeile { margin: 12px 0 14px; }
.reg-sofort .dsgvo-zeile[aria-invalid="true"] { color: var(--signal-gefahr); }

@media (max-width: 480px) {
  .key-box--testzugang { padding: 26px 20px; }
  .key-box--testzugang .logo-marke { height: 38px; }
  .key-box--testzugang .key-sub { margin-top: 6px; }
}

.dsgvo-zeile {
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left; font-size: 0.85rem; color: var(--text);
  margin: 18px 0 22px; cursor: pointer;
}
.dsgvo-zeile input { margin-top: 2px; flex: none; }

.passwort-feld { position: relative; }
.passwort-feld .ut-feld { padding-right: 44px; }
.passwort-auge {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: var(--radius-s);
  color: var(--text-mute); cursor: pointer; padding: 0;
}
.passwort-auge:hover { color: var(--text); background: var(--hover); }
.passwort-auge:focus-visible { outline: 2px solid var(--marke); outline-offset: 1px; }

.app { display: flex; height: 100vh; overflow: hidden; }

.zahnrad-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 1px solid var(--rand);
  border-radius: 50%; background: none; color: var(--text-mute); cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.3s;
}
.zahnrad-btn:hover { color: var(--ut-gruen-dunkel); border-color: var(--ut-gruen); transform: rotate(45deg); }

.pe-modal {
  position: fixed; inset: 0; z-index: 3000; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 25, 22, 0.45);
}
.pe-box {
  background: var(--flaeche, #fff); border-radius: 12px; padding: 20px 22px 18px;
  width: min(520px, 100%); max-height: 90vh; overflow: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.pe-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pe-kopf h2 { margin: 0; font-size: 1.1rem; }
.pe-x {
  border: none; background: none; font-size: 1.4rem; line-height: 1;
  color: var(--text-mute); cursor: pointer; padding: 0 4px;
}
.pe-x:hover { color: var(--text); }
.pe-sub { margin: 4px 0 16px; font-size: 0.82rem; color: var(--text-mute); }
.pe-zeile {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px;
  border: 1px solid var(--rand); border-radius: 8px; margin-bottom: 9px; cursor: pointer;
}
.pe-zeile input { margin-top: 3px; flex: none; }
.pe-zeile.aus { opacity: 0.5; }
.pe-text { display: flex; flex-direction: column; gap: 3px; }
.pe-name { font-weight: 600; font-size: 0.92rem; }
.pe-hinweis { font-size: 0.78rem; color: var(--text-mute); line-height: 1.45; }
.pe-verlauf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 10px 12px; background: var(--hell); border-radius: 8px;
}
.pe-verlauf-knoepfe { display: flex; gap: 8px; }

.pe-export { flex-direction: column; align-items: stretch; }
.pe-export-auswahl { display: flex; flex-direction: column; gap: 6px; }
.pe-export-zeile { display: flex; align-items: baseline; gap: 8px; font-size: 0.88rem; }
.pe-btn {
  border: 1px solid var(--rand); background: var(--flaeche, #fff); border-radius: 6px;
  padding: 6px 12px; font: inherit; font-size: 0.82rem; cursor: pointer;
}
.pe-btn:hover { border-color: var(--ut-gruen); }
.pe-gefahr:hover { border-color: #c0392b; color: #c0392b; }
.pe-fuss { margin: 14px 0 0; font-size: 0.75rem; color: var(--text-mute); line-height: 1.5; }
.pe-fuss code { font-size: 0.72rem; }

.heat-legende {
  position: absolute; right: 12px; bottom: var(--aime-frei); z-index: 1000;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--rand);
  border-radius: 8px; padding: 9px 11px; width: 210px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); font-size: 0.78rem;
}
.heat-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.heat-skala {
  height: 9px; border-radius: 5px; margin: 7px 0 3px;
  background: linear-gradient(90deg,
    rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.55) 18%,
    rgba(241, 196, 15, 0.75) 45%, rgba(230, 126, 34, 0.9) 72%, rgba(231, 76, 60, 1));
}
.heat-skala-text { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-mute); }
.heat-canvas { position: absolute; pointer-events: none; }

.lizenz-liste { max-width: 640px; margin: 18px 0 6px; }
.lizenz-zeile {
  padding: 11px 14px; border: 1px solid var(--rand); border-radius: 8px; margin-bottom: 8px;
  background: var(--flaeche);
}
.lizenz-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lizenz-rechts { display: flex; align-items: center; gap: 8px; }

.lizenz-unter { margin-left: 26px; padding: 8px 14px; font-size: 0.9rem; }
.lizenz-name { font-weight: 600; }
.lizenz-unter .lizenz-name { font-weight: 500; }
.lizenz-badge { font-size: 0.78rem; border-radius: 4px; padding: 3px 9px; white-space: nowrap; }
.ist-frei .lizenz-badge { color: var(--ut-gruen-dunkel); background: var(--ut-gruen-hell); }
.ist-zubuchbar .lizenz-badge { color: #8a6d1f; background: #fdf3d7; }
.ist-geplant .lizenz-badge { color: var(--text-mute); background: var(--hell); }
.ist-geplant { opacity: 0.75; }

.ist-laeuft { border-color: #d9a441; }
.ist-laeuft .lizenz-badge { color: #8a5a00; background: #fdf0d5; }
.lizenz-fortschritt { margin-top: 10px; }
.lizenz-balken {
  height: 4px; border-radius: 2px; background: var(--hell); overflow: hidden;
}
.lizenz-balken span {
  display: block; width: 35%; height: 100%; border-radius: 2px; background: #d9a441;
  animation: lizenz-lauf 1.1s ease-in-out infinite;
}
@keyframes lizenz-lauf {
  0%   { margin-left: -35%; }
  100% { margin-left: 100%; }
}
.lizenz-meldung {
  margin: 7px 0 0; font-size: 0.8rem; color: var(--text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lizenz-fehler { margin: 8px 0 0; font-size: 0.85rem; color: #c0392b; }

.ladefehler {
  margin: 32px; padding: 18px 20px; max-width: 560px;
  border: 1px solid var(--rand); border-left: 3px solid #c0392b; border-radius: 8px;
  background: var(--flaeche);
}
.ladefehler p { margin: 0 0 10px; font-size: 0.9rem; color: var(--text-mute); }
.ladefehler p strong { color: var(--text); }
.ladefehler-grund {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem;
  background: var(--hell); border-radius: 4px; padding: 8px 10px; overflow-wrap: anywhere;
}

.dev-marke {
  flex: none; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: #7a6320; background: #fdf6e3; border: 1px solid #e6d9a8;
  border-radius: 4px; padding: 2px 7px;
}
.dev-band {
  display: flex; align-items: flex-start; gap: 10px; max-width: 640px;
  margin: 18px 0 6px; padding: 10px 12px; font-size: 0.82rem; color: var(--text-mute);
  border: 1px dashed #e0cd91; border-radius: 8px; background: #fffdf6;
}
.lizenz-dev {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rand);
}
.dev-text { flex: 1; min-width: 160px; font-size: 0.8rem; color: var(--text-mute); }
.lizenz-freigegeben {
  color: var(--ut-gruen-dunkel); background: var(--ut-gruen-hell);
  border-radius: 6px; padding: 10px 14px; max-width: 560px; font-size: 0.9rem;
}

#inhalt { flex: 1; min-width: 0; height: 100%; overflow: hidden; overflow: clip; position: relative; }

.view { height: 100%; display: flex; flex-direction: column; overflow: hidden auto; }
.view-inhalt { padding: 48px; max-width: 760px; margin: 0 auto; overflow-y: auto; }
.view-kopf {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 24px; background: var(--flaeche); border-bottom: 1px solid var(--rand);
}
.view-kopf h2 { margin: 0; font-size: 1.25rem; }
.view-sub { color: var(--text-mute); font-size: 0.88rem; }
.view-werkzeuge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }

.start-inhalt {
  margin-top: 3vh; width: 100%; max-width: 1200px;
  padding: clamp(20px, 4vh, 48px) 48px;
}

.start-buehne {
  position: relative; overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(100deg, var(--marke-dunkel) 0%, var(--marke) 62%, var(--marke-akzent) 130%);
  margin-bottom: 22px;
}
.start-buehne::before {
  content: "";
  position: absolute; top: 50%; right: -6%;
  width: 340px; height: 340px; transform: translateY(-50%);
  background: url("/img/universe-zeichen.svg") center / contain no-repeat;

  filter: brightness(0) invert(1); opacity: 0.10;
  pointer-events: none;
}
.start-buehne-inhalt { position: relative; padding: 26px 28px 24px; }
.start-buehne .logo-marke { height: clamp(30px, 4.4vh, 40px); margin: 0 0 14px; }

.start-buehne h1 { color: #fff; font-size: 1.7rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.start-buehne .start-text { color: rgba(255, 255, 255, 0.88); }
.start-buehne .start-text strong { color: #fff; }

.start-text { color: var(--text-mute); font-size: 1rem; line-height: 1.6; max-width: 62ch; }
.start-schnell { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.start-buehne .schnell-btn {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff; backdrop-filter: blur(2px);
}
.start-buehne .schnell-btn:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.start-buehne .schnell-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.start-abschnitt-titel { text-align: left; font-size: 1.15rem; margin: clamp(16px, 3vh, 30px) 0 12px; color: var(--text); }

.zuletzt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; text-align: left; }
.zuletzt-karte {
  display: flex; flex-direction: column; gap: 3px; width: 100%;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px;
  padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.zuletzt-karte:hover { border-color: var(--ut-gruen); box-shadow: 0 4px 16px rgba(4, 135, 85, 0.1); }
.zuletzt-name {
  font-size: 1rem; font-weight: 700; color: var(--ut-gruen);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.zuletzt-sub { font-size: 0.85rem; color: var(--text-mute); }
.zuletzt-zahlen { font-size: 0.78rem; color: var(--text-mute); }

.loesung-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 14px; text-align: left; }
.loesung-karte {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px;
  padding: 12px 16px; font: inherit; color: inherit; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.loesung-karte:hover { border-color: var(--ut-gruen); box-shadow: 0 4px 16px rgba(4, 135, 85, 0.1); }
.loesung-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.loesung-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loesung-name {
  font-size: 0.98rem; font-weight: 700; color: var(--ut-gruen);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.loesung-mehr { font-size: 0.85rem; color: var(--ut-gruen); }

.gesperrt-inhalt { text-align: center; margin-top: 5vh; }
.gesperrt-logo { width: 90px; height: 90px; margin-bottom: 10px; }
.gesperrt-inhalt h1 { font-size: 1.7rem; margin: 4px 0 10px; }
.gesperrt-box {
  margin-top: 26px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px;
  padding: 26px; display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
}
.gesperrt-box p { color: var(--text-mute); margin: 0; }
.kachel-badge { background: var(--ut-gruen-hell); color: var(--ut-gruen-dunkel); border-radius: 4px; padding: 4px 10px; font-size: 0.75rem; font-weight: 600; }
.kachel-badge.premium { background: #eef1f3; color: var(--text-mute); }

.freigabe-box {
  background: var(--flaeche); border: 1px solid var(--rand); border-left: 3px solid var(--ut-gruen);
  border-radius: 8px; padding: 14px 16px; max-width: 560px;

  margin: 14px 26px;
}
.view-inhalt .freigabe-box { margin: 14px 0; }
.freigabe-text { margin: 0 0 10px; font-size: 0.9rem; color: var(--text-mute); }
.freigabe-eingabe { display: flex; gap: 8px; flex-wrap: wrap; }

.freigabe-input { flex: 1; min-width: 180px; width: auto; }
.freigabe-fehler { color: #c0392b; font-size: 0.85rem; margin: 10px 0 0; }
#karte-wrapper { flex: 1; min-height: 0; position: relative; display: flex; }
#map { flex: 1; min-height: 0; }

.netz-legende {

  position: absolute; right: 14px; top: var(--karte-knoepfe-frei); z-index: 1000;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px;
  padding: 10px 14px; display: flex; flex-direction: column; gap: 6px;
  font-size: 0.82rem; color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.netz-legende span { display: flex; align-items: center; gap: 8px; }

.legende-einfaerbung {
  width: 100%; margin-bottom: 6px; padding: 2px 4px;
  font: inherit; font-size: 0.85em;
  color: var(--text); background: transparent;
  border: 1px solid var(--rand, #d5dbdf); border-radius: 4px;
  cursor: pointer;
}
.legende-einfaerbung:hover { border-color: var(--marke-dunkel); }
.legende-punkt { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }

.legende-gestrichelt { height: 0; border-top: 3px dashed #4a545b; border-radius: 0; }

.legende-druck { height: 0; border-top: 4px dashed #111; border-radius: 0; }

.sulfid-legende-box {
  position: absolute; left: 14px; bottom: 64px; z-index: 1001; width: 300px; max-width: 70vw;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px;
  padding: 8px 10px 9px; font-size: 0.78rem; color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); user-select: none; touch-action: none;
}
.sulfid-legende-box .slb-kopf { display: flex; align-items: center; gap: 8px; cursor: move; font-weight: 600; margin-bottom: 6px; }
.sulfid-legende-box .slb-kopf::before { content: "⋮⋮"; color: var(--text-mute); letter-spacing: -2px; }
.sulfid-legende-box .slb-titel { flex: 1; }
.sulfid-legende-box .slb-zu { border: 0; background: transparent; font-size: 1rem; line-height: 1; cursor: pointer; color: var(--text-mute); padding: 0 2px; }
.sulfid-legende-box .slb-balken { height: 10px; border-radius: 5px; }
.sulfid-legende-box .slb-ticks { display: flex; justify-content: space-between; margin-top: 2px; color: var(--text-mute); }
.sulfid-legende-box .slb-ohne { margin-top: 4px; color: var(--text-mute); }
.sulfid-legende-box .slb-ohne .legende-linie { margin-left: 0; }
.sulfid-legende-box .slb-info { margin-top: 5px; color: var(--text-mute); line-height: 1.35; user-select: text; }

.ergebnis-legende {
  width: 260px; max-width: 70vw; padding: 8px 10px 9px;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  font-size: 0.78rem; line-height: 1.35; color: var(--text);
}
.ergebnis-legende .hl-kopf { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.ergebnis-legende .hl-titel { flex: 1; }
.ergebnis-legende .hl-zu {
  border: 0; background: transparent; font-size: 1.1rem; line-height: 1;
  cursor: pointer; color: var(--text-mute); padding: 0 2px;
}
.ergebnis-legende .hl-zu:hover { color: var(--text); }
.ergebnis-legende .hl-balken { height: 12px; border-radius: 6px; border: 1px solid var(--rand); }

.ergebnis-legende .hl-ticks { position: relative; height: 1.1rem; margin-top: 2px; color: var(--text-mute); font-size: 0.78rem; }
.ergebnis-legende .hl-tick { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ergebnis-legende .hl-tick--erste { transform: none; }
.ergebnis-legende .hl-tick--letzte { transform: translateX(-100%); }
.ergebnis-legende .hl-zeile { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text-mute); }
.ergebnis-legende .hl-feld { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--rand-stark); }
.ergebnis-legende .hl-punkt {
  flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%;
  background: var(--signal-gefahr); border: 2px solid var(--flaeche); box-shadow: 0 0 0 1px var(--rand-stark);
}
.ergebnis-legende .hl-info { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--rand); color: var(--text-mute); }
.an-schalter { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.an-schalter input { margin: 0; }

.an-grund { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--rand); font-size: 0.8rem; line-height: 1.4; }
.an-grund-liste { margin: 4px 0 0 16px; padding: 0; }
.an-grund-abhilfe { margin-top: 4px; color: var(--text-mute); }
.an-knopf-klein { margin-top: 6px; padding: 3px 9px; border: 1px solid var(--rand); border-radius: 6px; background: var(--flaeche); font: inherit; font-size: 0.8rem; cursor: pointer; }
.an-knopf-klein:hover { background: var(--flaeche-hover, #f1f3f5); }

.an-bearbeitet-marker { background: #fff; border: 2px solid #b7791f; border-radius: 50%; color: #b7791f; font-size: 13px; line-height: 16px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.35); cursor: pointer; }
.an-param-block { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rand); }
.an-param-reichweite { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0; font-size: 0.85rem; }
.an-param-entfernen { margin-top: 10px; display: block; }

.legende-planung { height: 0; border-top: 3px dotted #4a545b; border-radius: 0; }

.legende-ring { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #c0392b; display: inline-block; }

.legende-unstetig { width: 12px; height: 12px; border-radius: 50%; background: #c0392b; border: 1px solid #7d2318; display: inline-block; }

.netz-legende span.legende-verbindung { display: block; max-width: 22rem; line-height: 1.7; color: var(--text-mute); }
.legende-linie { width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin: 0 4px 0 10px; vertical-align: middle; }

.schacht-label {
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--rand); border-radius: 4px;
  padding: 1px 5px; font-size: 0.68rem; font-weight: 600; color: var(--text); box-shadow: none;
}
.schacht-label::before { display: none; }

.beschriftung-aus .leaflet-tooltip.schacht-label:not(.ls-ende),
.beschriftung-aus .leaflet-marker-icon.haltung-label { visibility: hidden; }

.objekt-fokus-label {
  background: #ffffff; border: 1px solid var(--marke); border-radius: 4px;
  padding: 2px 7px; font-size: 0.74rem; font-weight: 700; color: var(--marke-dunkel); box-shadow: var(--schatten-1);
}
.objekt-fokus-label::before { display: none; }

.regenradar-canvas { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 400; }

.regenradar-leiste {

  position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--karte-menue-frei); z-index: 1000;
  background: var(--flaeche); border: 1px solid var(--rand); padding: 10px 18px; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08); font-size: 0.8rem;

  width: min(640px, calc(100% - 2 * var(--aime-frei)));
}
.regenradar-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 8px; flex-wrap: wrap; }

.regenradar-zeit-anzeige { white-space: nowrap; }
.regenradar-zeit-anzeige { font-weight: 700; flex: 1; }
.regenradar-quelle-hinweis { font-size: 0.7rem; color: var(--text-mute); cursor: help; white-space: nowrap; }
.regenradar-leiste input[type="range"] { width: 100%; }
.regenradar-achse { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-mute); margin-top: -2px; }

.regenradar-menge {
  margin-top: 6px; font-size: 0.76rem; line-height: 1.4; color: var(--text-mute);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}

.regenradar-menge:empty { display: none; margin: 0; }
.regenradar-menge .menge-wert { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.regenradar-menge.trocken .menge-wert { color: var(--text-mute); }

.regenradar-skala { margin-top: 8px; }
.regenradar-skala-balken {
  height: 12px; border-radius: 6px; border: 1px solid var(--rand);
}

.regenradar-skala-achse {
  position: relative; height: 14px; margin-top: 2px;
  font-size: 0.68rem; color: var(--text-mute); font-variant-numeric: tabular-nums;
}
.regenradar-skala-marke {
  position: absolute; transform: translateX(-50%); white-space: nowrap;
}

.regenradar-skala-marke:first-child { transform: none; }
.regenradar-skala-marke:last-child { transform: translateX(-100%); }
.regenradar-skala-einheit {
  font-size: 0.68rem; color: var(--text-mute); text-align: right; margin-top: 1px;
}
.regenradar-play-btn {
  border: 1px solid var(--rand); background: var(--flaeche); border-radius: 6px;
  width: 30px; height: 30px; font-size: 0.85rem; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.regenradar-play-btn:hover:not(:disabled) { border-color: var(--ut-gruen); }
.regenradar-play-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.regenradar-tempo {
  flex: 0 0 auto; padding: 2px 4px; border: 1px solid var(--rand);
  border-radius: 6px; background: var(--flaeche); color: var(--text);
  font-size: 0.72rem; font-family: inherit; cursor: pointer;
}
.regenradar-tempo:focus-visible { outline: 2px solid var(--marke); outline-offset: 1px; }

.regenradar-tag { width: 8.6em; }
.regenradar-jetzt-btn {
  border: 1px solid var(--rand); background: var(--flaeche); border-radius: 6px;
  padding: 0 10px; height: 30px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px;
  color: var(--ut-gruen-dunkel); cursor: pointer; flex-shrink: 0;
}
.regenradar-jetzt-btn:hover { border-color: var(--ut-gruen); }

.karte-layout { flex: 1; display: flex; min-height: 0; }
.ratten-panel {
  width: 320px; flex-shrink: 0; border-left: 1px solid var(--rand); background: var(--flaeche);
  padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
}

.ratten-panel.inspector-panel--breit,
.inspector-panel--breit {
  width: 0;
  flex-shrink: 0;
  overflow: hidden;
  border-left: none;
  padding: 0;
  gap: 0;
  transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

#inspector-panel > * {
  flex-shrink: 0;
}

.fp-schalter {
  flex: none; width: 18px; padding: 0; border: 0;
  border-left: 1px solid var(--rand);
  background: var(--flaeche); color: var(--text-leise, #6b7780);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.fp-schalter:hover { background: var(--flaeche-2, #eef2f4); color: var(--marke-dunkel); }
.fp-schalter:focus-visible { outline: 2px solid var(--marke); outline-offset: -2px; }

.karte-layout.fp-zu aside.ratten-panel { display: none; }

.ratten-panel.inspector-panel--breit.offen,
.inspector-panel--breit.offen {
  width: 50vw;
  border-left: 1px solid var(--rand);
  box-shadow: var(--schatten-panel);

  overflow-y: auto;
}

@media (max-width: 1023px) {

  .ratten-panel { width: 280px; }
  #anlagen-panel { width: min(330px, calc(100% - 20px)); }
  #anlagen-panel.an-panel-breit { width: min(560px, calc(100% - 20px)); }
}

.ratten-panel-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ratten-panel-kopf h3 { margin: 0; font-size: 1.05rem; }
.ratten-check { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; cursor: pointer; }

.ratten-verlauf { margin-top: 14px; border-top: 1px solid var(--rand); padding-top: 10px; }
.ratten-verlauf > summary {
  cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--text-mute);
  padding: 6px 0;
}

.ratten-verlauf-zeile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 0; border-bottom: 1px solid var(--rand);
}
.ratten-verlauf-text { min-width: 0; }
.ratten-verlauf-knoepfe { display: flex; gap: 6px; }
.ratten-verlauf-knoepfe .ratten-verlauf-knopf { flex: 1; }
.ratten-verlauf-text strong { font-size: 0.9rem; }
.ratten-verlauf-detail { font-size: 0.8rem; color: var(--text-mute); }
.ratten-verlauf-leer { font-size: 0.88rem; color: var(--text-mute); padding: 8px 0; }
.ratten-verlauf-knopf {
  min-height: 38px; padding: 0 10px;
  font: 600 0.85rem/1 inherit;
  background: var(--flaeche); color: var(--text);
  border: 1px solid var(--rand); border-radius: 8px; cursor: pointer;
}
.ratten-verlauf-knopf:hover { background: var(--marke-soft); }
.ratten-verlauf-knopf.gefahr { color: #c0392b; }
.ratten-verlauf-knopf.gefahr:hover { background: #fdeceb; }

.ratten-verlauf-kamera {
  font: 600 0.8rem/1 inherit; padding: 2px 6px; margin-left: 2px;
  background: var(--marke-soft, #eef6f1); color: var(--text);
  border: 1px solid var(--rand); border-radius: 6px; cursor: pointer;
  vertical-align: 1px;
}

.rv-schleier {
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(20, 28, 34, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.rv-schleier.dunkel { background: rgba(10, 14, 17, 0.88); }
.rv-karte {
  background: var(--flaeche, #fff); color: var(--text, #222);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; padding: 16px 18px;
}
.rv-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-kopf h3 { margin: 0; font-size: 1.05rem; }
.rv-schliessen {
  min-width: 38px; min-height: 38px; font-size: 1.3rem; line-height: 1;
  background: none; border: none; cursor: pointer; color: inherit;
}
.rv-schliessen.hell { position: absolute; top: 10px; right: 12px; color: #fff; font-size: 1.8rem; }
.rv-felder { margin-top: 8px; }
.rv-feld {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--rand, #e5e9ec); font-size: 0.9rem;
}
.rv-feld span { color: var(--text-mute, #667); }
.rv-feld strong { text-align: right; overflow-wrap: anywhere; }

.rv-fotos { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rv-fotos img {
  width: 100%; height: auto; border-radius: 8px;
  border: 1px solid var(--rand, #dde3e7); cursor: zoom-in;
}
.rv-leer { color: var(--text-mute, #667); font-size: 0.88rem; margin: 12px 0 2px; }
.rv-gross { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.rv-stand {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: #fff; font: 600 0.95rem/1 system-ui, sans-serif;
  background: rgba(0, 0, 0, 0.45); padding: 6px 12px; border-radius: 999px;
}
.rv-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  min-width: 46px; min-height: 64px; font-size: 2.2rem; line-height: 1;
  color: #fff; background: rgba(0, 0, 0, 0.35); border: none; border-radius: 10px;
  cursor: pointer;
}
.rv-pfeil:hover { background: rgba(0, 0, 0, 0.6); }
.rv-pfeil.links { left: 14px; }
.rv-pfeil.rechts { right: 14px; }
.ratten-ergebnis { color: var(--text-mute); font-size: 0.88rem; margin: 4px 0 0; }

.ratten-frei { font: inherit; padding: 8px 10px; border: 1px solid var(--rand); border-radius: 6px; margin-top: -6px; }
.ratten-frei:focus { outline: none; border-color: var(--ut-gruen); box-shadow: 0 0 0 3px var(--ut-gruen-hell); }

.ratten-info { color: var(--text-mute); font-size: 0.78rem; line-height: 1.35; margin: -6px 0 0; }
.ratten-info.warnung { color: #b35309; }

.ratten-standard {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--rand); border-radius: 8px;
  background: var(--ut-gruen-hell, #e8f4ee);
}
.ratten-standard-kopf { margin: 0; font-size: 0.92rem; }
.ratten-standard .ratten-info { margin: 0; }
.ratten-standard-knoepfe { display: flex; flex-direction: column; gap: 6px; }
.ratten-standard-knopf {
  min-height: 48px; font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 6px; border: 2px solid #007A45; background: #fff; color: #007A45;
}
.ratten-standard-knopf.befrass { border-color: #c0392b; color: #c0392b; }
.ratten-standard-knopf:active { filter: brightness(0.92); }
.ratten-als-standard {
  align-self: flex-start; min-height: 44px; margin-top: -4px; padding: 0 12px;
  font: inherit; font-size: 0.85rem; cursor: pointer;
  border: 1px solid var(--rand); border-radius: 6px; background: #fff; color: inherit;
}
.ratten-als-standard:disabled { cursor: default; color: #007A45; border-color: #007A45; }

.chat-verlauf { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; max-width: 820px; width: 100%; margin: 0 auto; }
.chat-blase { padding: 11px 15px; border-radius: 12px; max-width: 80%; line-height: 1.45; white-space: pre-wrap; font-size: 0.94rem; }
.chat-blase.user { align-self: flex-end; background: var(--ut-gruen); color: #fff; border-bottom-right-radius: 3px; }
.chat-blase.aime { align-self: flex-start; background: var(--flaeche); border: 1px solid var(--rand); border-bottom-left-radius: 3px; }
.chat-blase.tippt { color: var(--text-mute); font-style: italic; }
.chat-blase.hinweis { align-self: center; max-width: 100%; background: none; border: 0; color: var(--text-mute); font-size: 0.8rem; text-align: center; }

#chat-input { flex: 1; width: auto; }
.chat-form { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--rand); background: var(--flaeche); max-width: 820px; width: 100%; margin: 0 auto; }

.aime-dock {
  position: fixed; right: var(--aime-luft); bottom: var(--aime-luft); z-index: 1050;
  display: flex; flex-direction: row; align-items: center; gap: 8px;
}
.aime-knopf {
  width: var(--aime-knopf); height: var(--aime-knopf); flex: none;
  border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ut-gruen); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.aime-knopf:hover { background: var(--ut-gruen-dunkel); }
.aime-knopf:focus-visible { outline: 2px solid var(--ut-gruen-dunkel); outline-offset: 3px; }

.aime-faecher { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.aime-fach {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--flaeche); color: var(--text);
  border: 1px solid var(--rand); border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);

  max-width: 0; padding: 0; opacity: 0; visibility: hidden; overflow: hidden;
  white-space: nowrap; font-size: 0.85rem; height: 40px;
}
.aime-dock.offen .aime-fach {
  max-width: 220px; padding: 0 15px; opacity: 1; visibility: visible;
}
.aime-fach:hover { border-color: var(--ut-gruen); color: var(--ut-gruen-dunkel); }
.aime-fach:focus-visible { outline: 2px solid var(--ut-gruen); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .aime-fach { transition: max-width 0.2s ease, padding 0.2s ease, opacity 0.16s ease; }
  .aime-knopf { transition: background 0.15s ease; }
}

.aime-panel {
  position: fixed; right: var(--aime-luft); z-index: 1050;
  bottom: calc(var(--aime-luft) + var(--aime-knopf) + 12px);
  width: min(420px, calc(100vw - 2 * var(--aime-luft)));
  height: min(620px, calc(100vh - var(--aime-frei) - var(--aime-luft)));
  display: flex; flex-direction: column;

  overflow: hidden auto;
  background: var(--grund); border: 1px solid var(--rand); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}
.aime-panel.hidden { display: none; }
.aime-kopf {
  display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 16px;
  border-bottom: 1px solid var(--rand); background: var(--flaeche);
}
.aime-titel {
  flex: 1; font-weight: 600; font-size: 0.92rem;

  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.aime-verlauf { padding: 14px 14px 8px; max-width: none; gap: 10px; }
.aime-verlauf .chat-blase { max-width: 92%; }
.aime-form { padding: 10px 12px; max-width: none; }
.aime-eingabe { flex: 1; width: auto; }

.aime-klammer { display: inline-flex; align-items: center; padding: 6px 8px; cursor: pointer; }
.aime-datei { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.aime-anhaenge {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px 0; border-top: 1px solid var(--rand);
}
.aime-anhang { position: relative; }
.aime-anhang-bild {
  display: block; width: 54px; height: 54px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--rand);
}
.aime-anhang-weg {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border: 0; border-radius: 50%; background: var(--text); color: var(--flaeche);
  font-size: 0.8rem; line-height: 1; cursor: pointer;
}

.chat-blase.mit-bild { display: flex; flex-direction: column; gap: 8px; }
.chat-bild-rahmen { display: block; line-height: 0; }
.chat-bild {
  max-width: 100%; max-height: 260px; width: auto; border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.aime-blick { padding: 4px 6px; color: var(--text-mute); }
.aime-blick:hover { color: var(--text); }

.chat-blase.kontextblick {
  align-self: stretch; max-width: 100%;
  background: var(--flaeche); border: 1px dashed var(--rand);
  color: var(--text-mute); font-size: 0.78rem; line-height: 1.4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  max-height: 40vh; overflow-y: auto;
}

.aime-panel--ziel { outline: 2px dashed var(--ut-gruen); outline-offset: -6px; }

@media (max-width: 720px) {
  .aime-panel {
    left: var(--aime-luft); right: var(--aime-luft); top: var(--aime-luft);
    width: auto; height: auto;
    bottom: calc(var(--aime-luft) + var(--aime-knopf) + 12px);
  }
  .aime-dock { flex-direction: column-reverse; align-items: flex-end; }
  .aime-faecher { flex-direction: column-reverse; align-items: flex-end; }
}

.leaflet-bottom.leaflet-right { right: var(--aime-frei); }

.leaflet-bottom.leaflet-left { bottom: var(--karte-menue-frei); }

.aime-liste { flex: 1; overflow-y: auto; padding: 18px 24px; max-width: 900px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.aime-zeile {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px;
  cursor: pointer; text-align: left;
}
.aime-zeile:hover { border-color: var(--ut-gruen); }
.aime-zeile-text { flex: 1; min-width: 0; }
.aime-zeile-titel { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aime-zeile-meta { color: var(--text-mute); font-size: 0.78rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aime-zeile-titel-feld { width: 100%; font: inherit; font-weight: 600; padding: 2px 4px; border: 1px solid var(--ut-gruen); border-radius: 5px; }
.aime-leer { color: var(--text-mute); font-size: 0.9rem; padding: 24px 0; text-align: center; }

.chart-popup { width: 760px; max-width: 88vw; max-height: 78vh; overflow-y: auto; overflow-x: hidden; font-size: 0.9rem; }
.chart-popup-kopf { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.station-titel { font-size: 1rem; color: var(--text); }
.zeitraum-auswahl { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; flex-wrap: wrap; color: var(--text-mute); }

.zeitraum-schnellwahl { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.btn-zeitraum {
  padding: 3px 10px; cursor: pointer; border: 1px solid #007A45; border-radius: 12px;
  background: #fff; color: #007A45; font: inherit; font-size: 0.75rem;
}
.btn-zeitraum:hover { background: var(--marke-soft, #e5f1ea); }
.chart-hinweis { font-size: 0.78rem; color: var(--text-mute); margin: 2px 0 6px; }
.station-chart { max-width: 100%; }
.platzhalter-hinweis { color: #b2530c; font-size: 0.75rem; margin-top: 6px; }
.auswertung-titel { font-weight: 700; margin: 10px 0 4px; color: var(--text); }
.auswertung-tabelle { border-collapse: collapse; font-size: 0.82rem; width: 100%; table-layout: fixed; }
.auswertung-tabelle th { text-align: left; border-bottom: 2px solid var(--rand); padding: 3px 6px; font-size: 0.8rem; color: var(--text); }
.auswertung-tabelle td { border-bottom: 1px solid var(--rand); padding: 4px 6px; vertical-align: top; }
.auswertung-tabelle td:nth-child(1), .auswertung-tabelle th:nth-child(1) { width: 200px; }
.auswertung-tabelle td:nth-child(2), .auswertung-tabelle th:nth-child(2) { width: 150px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.auswertung-tabelle td:nth-child(3) { color: var(--text-mute); font-size: 0.78rem; line-height: 1.4; }
.auswertung-text { font-size: 0.84rem; line-height: 1.5; margin: 3px 0 6px; color: var(--text); }
.auswertung-legende { font-size: 0.77rem; color: var(--text-mute); margin-top: 8px; line-height: 1.45; }
.einzugsgebiet-auto { margin-top: 10px; border-top: 1px solid var(--rand); padding-top: 8px; }
.einzugsgebiet-ergebnis { font-size: 0.8rem; margin-top: 8px; line-height: 1.5; color: var(--text); }
.einzugsgebiet-ergebnis .btn-einzugsgebiet-speichern { margin-top: 6px; font-size: 0.78rem; padding: 4px 10px; cursor: pointer; }

.plausibilitaet-box {
  font-size: 0.78rem; line-height: 1.5; color: var(--text); margin: 8px 0;
  padding: 8px 12px; border-left: 3px solid #b2530c; background: #fdf3ea; border-radius: 0 6px 6px 0;
}
.plausibilitaet-box.unauffaellig { border-left-color: var(--ut-gruen); background: var(--ut-gruen-hell); }
.plausibilitaet-box ul { margin: 4px 0 0; padding-left: 18px; }
.plausibilitaet-box.hidden { display: none; }

.einzug-core, .einzug-aura { animation: einzug-aufploppen 0.4s ease-out; }
@keyframes einzug-aufploppen { from { opacity: 0; } to { opacity: 1; } }

.puls-untertitel { font-size: 0.82rem; font-weight: 400; color: var(--text-mute); margin-left: 10px; }
.puls-inhalt { padding: 22px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
#puls-stand { color: var(--text-mute); font-size: 0.84rem; }

.puls-meldungen { display: flex; flex-direction: column; gap: 8px; }
.puls-meldung {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 8px;
  border-left: 4px solid var(--rand); background: var(--flaeche); font-size: 0.88rem;
}
.puls-meldung .titel { font-weight: 600; }
.puls-meldung .text { color: var(--text-mute); }
.puls-meldung.alarm { border-left-color: #c0392b; background: #fdf0ee; }
.puls-meldung.warnung { border-left-color: #e8730c; background: #fdf5ec; }
.puls-meldung.hinweis { border-left-color: #1c7ed6; background: #eef5fd; }

.puls-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.puls-kachel {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 14px 16px;
}
.puls-kachel .zahl { font-size: 1.6rem; font-weight: 600; color: var(--ut-gruen-dunkel); line-height: 1.1; }
.puls-kachel .zahl.warn { color: #c0392b; }
.puls-kachel .titel { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.03em; }
.puls-kachel .fuss { font-size: 0.78rem; color: var(--text-mute); margin-top: 4px; }

.puls-block > h3 { margin: 0 0 4px; font-size: 1.02rem; }
.puls-block > .puls-zeitraum { margin: 0 0 12px; font-size: 0.82rem; color: var(--text-mute); }

.puls-netzlage { display: flex; flex-direction: column; gap: 22px; }
.puls-netzlage + .puls-netzlage { border-top: 2px solid var(--rand); padding-top: 22px; }
.puls-netzkopf { margin: 0; font-size: 1.15rem; color: var(--ut-gruen-dunkel); }
.puls-netzwahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.puls-tabelle { width: 100%; border-collapse: collapse; font-size: 0.84rem; background: var(--flaeche); }
.puls-tabelle th, .puls-tabelle td { padding: 7px 10px; border-bottom: 1px solid var(--rand); text-align: right; }
.puls-tabelle th:first-child, .puls-tabelle td:first-child { text-align: left; }
.puls-tabelle thead th { background: var(--hell); font-weight: 600; color: var(--text-mute); font-size: 0.78rem; }
.puls-tabelle tr.ohne-daten td { color: var(--text-mute); font-style: italic; }
.puls-tabelle .trend-auf { color: #c0392b; }
.puls-tabelle .trend-ab { color: var(--ut-gruen); }
.puls-tabelle-huelle { overflow-x: auto; border: 1px solid var(--rand); border-radius: 10px; }
.puls-hinweis-zeile td { font-size: 0.78rem; color: #8a4b09; background: #fdf7f0; }

.puls-tage { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.puls-tag {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.puls-tag.heute { border-color: var(--ut-gruen); box-shadow: 0 0 0 1px var(--ut-gruen) inset; }
.puls-tag .tagname { font-size: 0.78rem; color: var(--text-mute); }
.puls-tag .mm { font-size: 1.2rem; font-weight: 600; }
.puls-tag .balken { height: 6px; border-radius: 3px; background: var(--rand); overflow: hidden; }
.puls-tag .balken i { display: block; height: 100%; background: #1c7ed6; }
.puls-tag.beobachten .balken i { background: #e8a33d; }
.puls-tag.kritisch .balken i { background: #c0392b; }
.puls-tag .stufe { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-mute); }
.puls-warnungen { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.puls-warnungen li { font-size: 0.84rem; padding: 8px 12px; background: var(--hell); border-radius: 8px; }
.puls-warnungen .messstelle { font-weight: 600; }
.puls-warnungen .art { font-size: 0.72rem; text-transform: uppercase; color: var(--text-mute); margin-left: 6px; }
.puls-gekuerzt { font-size: 0.78rem; color: var(--text-mute); margin: 6px 0 0; }
.puls-quelle { font-size: 0.76rem; color: var(--text-mute); margin: 10px 0 0; }

@media (max-width: 720px) {
  .view-inhalt { padding: 28px 18px; }
}

.karten-nadel-label {
  background: var(--flaeche);
  border: 1px solid var(--marke);
  color: var(--marke-dunkel);
  border-radius: var(--radius-s);
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--schatten-1);
}
.karten-nadel-label::before { display: none; }

.karten-popup-sub {
  font-size: 0.8rem;
  color: var(--text-mute);
  line-height: 1.45;
  margin: 3px 0 8px;
}

.kn-popup { font-size: 13px; line-height: 1.5; width: 272px; max-width: 100%; }
.kn-popup-kopf { font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.kn-popup hr { border: 0; border-top: 1px solid #e2e7e4; margin: 6px 0; }
.kn-vermutet {
  margin-top: 6px; padding-left: 7px; border-left: 2px solid #9a7118;
  color: #6b5a2c; font-size: 12px;
}

.kn-stufe { margin-top: 6px; color: #798490; font-size: 11px; }

.nadel-grau { filter: grayscale(1) opacity(.65); }

.nadel-meines { filter: hue-rotate(150deg) saturate(1.5); }

.nadel-demo { filter: hue-rotate(185deg) saturate(1.7) brightness(1.08); }

.nadel-etikett {
  background: #fff6ea; border: 1px solid #c96a11; color: #7a4207;
  font-weight: 600; font-size: 11.5px; padding: 2px 7px; border-radius: 3px;
}
.nadel-etikett.leaflet-tooltip-right::before { border-right-color: #c96a11; }
.nadel-etikett.leaflet-tooltip-left::before { border-left-color: #c96a11; }

.kn-demo {
  margin-top: 6px; padding: 4px 7px; border-left: 2px solid #c96a11;
  background: #fff6ea; color: #7a4207; font-size: 12px;
}
.kn-liste-klein { margin-top: 4px; color: #6b7a76; font-size: 12px; }
.kn-btn {
  margin-top: 8px; width: 100%; padding: 5px 8px; cursor: pointer;
  border: 1px solid #007A45; border-radius: 3px; background: #007A45; color: #fff;
  font: inherit; font-size: 12.5px;
}
.kn-btn:hover { background: #005C34; }

.kn-btn--zweit { background: #fff; color: var(--marke, #007A45); }
.kn-btn--zweit:hover { background: var(--marke-soft, #e5f1ea); }

.hinweis-klein { font-size: 11.5px; color: #6b5a2c; }

.karten-knoepfe { display: flex; flex-direction: column; background: #fff; }
.karten-knopf {
  width: 32px; height: 32px; padding: 0; border: 0; background: #fff;
  color: #3c4a52; cursor: pointer; display: flex; align-items: center;
  justify-content: center;
}
.karten-knopf + .karten-knopf { border-top: 1px solid #dcdcdc; }
.karten-knopf svg { width: 19px; height: 19px; display: block; }
.karten-knopf:hover:not(:disabled) { background: #f2f6f3; color: #007A45; }
.karten-knopf:focus-visible { outline: 2px solid #007A45; outline-offset: -2px; }

.karten-knopf:disabled { color: #b6bfc4; cursor: default; }

.netz-marke {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: #e6f2ec; border: 1px solid #b9d8c8; color: #005C34;
  font-size: 13px; font-weight: 600;
}

.anlagen-werkzeuge { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.anlagen-btn.aktiv { background: #007A45; color: #fff; border-color: #005C34; }

.anlagen-btn.an-gesperrt { opacity: .55; font-style: italic; }
#karte-wrapper.an-setzmodus #map { cursor: crosshair; }

.haltung-label { background: none; border: 0; }
.haltung-label-text {
  display: inline-block; white-space: nowrap;
  font-size: 10px; font-weight: 600; line-height: 1;
  transform-origin: 50% 50%;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff;
  pointer-events: none;
}
.leaflet-marker-icon.haltung-label > .haltung-label-text {
  position: absolute; left: 0; top: 0;
}

.schacht-label-hoehen { font-size: 9px; font-weight: 400; opacity: 0.85; }

.nsim-koerper { padding-top: 6px; }
.nsim-inhalt { max-width: 1100px; }

.ut-fenster-karte.nsim-fenster { max-width: 1100px; margin: 0 auto; }

.ut-fenster-karte.ut-fenster--schwebend.nsim-fenster {
  left: calc(var(--karte-menue-luft) + 260px + 12px);
}
@media (max-width: 1023px) {
  .ut-fenster-karte.ut-fenster--schwebend.nsim-fenster { left: 12px; }
}
.nsim-block > h3 { margin: 0 0 12px; }
.nsim-stand { font-size: 0.85rem; color: var(--text-mute); }
.nsim-stand:empty { display: none; }
.nsim-kacheln { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.nsim-kachel {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 6px;
  padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 150px;
}
.nsim-kachel strong { font-size: 1.25rem; color: var(--marke-dunkel, var(--marke)); }
.nsim-kachel span { font-size: 0.8rem; color: var(--text-mute); }
.nsim-datenlage { font-size: 0.85rem; color: var(--text-mute); margin: 0 0 10px; }

.nsim-annahme {
  background: var(--ut-gruen-hell); border: 1px solid var(--rand); border-radius: 6px;
  padding: 9px 12px; font-size: 0.85rem; margin-bottom: 14px; line-height: 1.45;
}
.nsim-tabellenrahmen { overflow-x: auto; }
.nsim-tabelle { border-collapse: collapse; font-size: 0.85rem; width: 100%; }
.nsim-tabelle th, .nsim-tabelle td {
  text-align: right; padding: 5px 10px; border-bottom: 1px solid var(--rand);
}
.nsim-tabelle th:first-child, .nsim-tabelle td:first-child { text-align: left; }
.nsim-hoch { color: #c0392b; font-weight: 600; }
.nsim-vorbehalt { font-size: 0.8rem; color: var(--text-mute); margin-top: 14px; font-style: italic; }
.nsim-fussnote { font-size: 0.78rem; color: var(--text-mute); }

.nsim-gep { margin-top: 26px; border-top: 2px solid var(--rand); padding-top: 16px; }
.nsim-gep > h3 { margin: 0 0 12px; }
.nsim-gep-felder {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px;
}
.nsim-gep-felder label {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 0.78rem; color: var(--text-mute);
}
.nsim-gep-felder .ut-feld { min-width: 150px; }

.nsim-hydro { margin-top: 26px; border-top: 2px solid var(--rand); padding-top: 16px; }
.nsim-hydro > h3 { margin: 0 0 12px; }

.nsim-vorbehalt p { margin: 0 0 6px; }

.hydro-farbe {
  display: inline-block; width: 14px; height: 14px; border-radius: 3px;
  vertical-align: -2px; margin-right: 6px; border: 1px solid var(--rand-stark);
}

.hydro-klasse { display: inline-block; padding-left: 7px; border-left: 4px solid var(--rand); font-weight: 600; }

.karten-werkzeugspalte {
  position: absolute; z-index: 1300; top: 10px; left: 54px;
  display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100% - 20px); overflow-y: auto;
  pointer-events: none;            
}
.karten-werkzeugspalte > * { pointer-events: auto; }

.ls-fenster {
  position: absolute; z-index: 1400; left: 50%; bottom: 34px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 40px)); height: 320px;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  display: flex; flex-direction: column; padding: 10px 12px 8px;
}
.ls-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ls-kopf strong { font-size: 0.95rem; }

.ls-flaeche { flex: 1; min-height: 0; margin-top: 6px; }
.ls-leinwand { display: block; width: 100%; height: 100%; }
.ls-fussnote { margin: 4px 0 0; font-size: 0.78rem; color: var(--text-mute); }

.nv-panel {
  width: 250px; background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .17); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.nv-kopf { font-size: 0.95rem; }

.indika-filterhinweis {
  max-width: 310px; background: var(--flaeche); border: 1px solid var(--rand);
  border-left: 3px solid #0d9488; border-radius: 5px; box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
  padding: 5px 8px; display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem;
}
.indika-filterhinweis-text { font-weight: 600; overflow-wrap: anywhere; }
.indika-filterhinweis-knoepfe { display: flex; gap: 4px; flex-wrap: wrap; }

.nv-knoepfe { display: flex; gap: 6px; }
.nv-knoepfe .ut-btn { flex: 1; }
.nv-status { margin: 0; font-size: 0.82rem; color: var(--text-mute); line-height: 1.35; }

.nv-darstellung { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; }
.nv-schalter { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.nv-panel:has(.nv-bergauf:not(.hidden)) { width: 310px; }
.nv-bergauf { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rand); padding-top: 8px; }
.nv-bergauf-kopf { margin: 0; font-size: 0.86rem; font-weight: 600; line-height: 1.35; }
.nv-bergauf-fehlt { margin: 0; font-size: 0.78rem; color: #8a5a00; line-height: 1.35; }
.nv-bergauf-details summary { cursor: pointer; font-size: 0.82rem; }
.nv-bergauf-sortierung { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; margin: 6px 0; }
.nv-bergauf-liste { list-style: none; margin: 0; padding: 0; max-height: 38vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px; }
.nv-bergauf-eintrag { border: 1px solid var(--rand); border-radius: 4px; padding: 4px 6px; }
.nv-bergauf-zeile { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.nv-bergauf-zeile.gewaehlt strong { text-decoration: underline; }

.nv-bergauf-eintrag:has(.gewaehlt) { border-color: #111; box-shadow: inset 4px 0 0 #111, 0 0 0 1px #111;
  background: #fff8db; }
.nv-bergauf-punkt { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; margin-top: 3px;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px #111; }
.nv-bergauf-text { display: flex; flex-direction: column; gap: 1px; font-size: 0.82rem; min-width: 0; }
.nv-bergauf-klein { font-size: 0.75rem; color: var(--text-mute); overflow-wrap: anywhere; }
.nv-bergauf-regen { color: #2b6cb0; }
.nv-bergauf-grund { font-size: 0.75rem; align-self: flex-start; background: #e6f4f1; color: #0b5d54;
  border-radius: 3px; padding: 0 4px; overflow-wrap: anywhere; }
.nv-bergauf-verweis, .nv-bergauf-liste-verweis { font-size: 0.78rem; }
.nv-bergauf-verweis { margin-left: 20px; }

.leaflet-container.indika-bergauf-aktiv .leaflet-indika-betriebe-pane path:not(.bergauf-treffer),
.leaflet-container.indika-bergauf-aktiv .leaflet-indika-betriebe-pane .leaflet-marker-icon {
  opacity: 0.12;
}

.leaflet-container.nv-strang-abgeblendet .leaflet-netzverfolgung-pane { opacity: 0.22; }
.leaflet-container.indika-bergauf-fokus .leaflet-indika-betriebe-pane path.bergauf-treffer:not(.bergauf-fokus) {
  opacity: 0.35;
}

.leaflet-container .leaflet-indika-betriebe-pane path.bergauf-treffer.bergauf-ausgeschieden { opacity: 0.15; }
.nv-bergauf-eintrag.bergauf-ausgeschieden { opacity: 0.4; }
.nv-suche-start { align-self: flex-start; }
.nv-suche { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid #dd6b20; padding-top: 6px; }
.nv-suche:empty { display: none; }
.nv-suche p { margin: 0; }
.nv-suche-titel { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-mute); }
.nv-suche-kopf { font-size: 1.05rem; font-weight: 700; }
.nv-suche-vorschlag { display: flex; flex-direction: column; gap: 3px; border: 1px solid #dd6b20;
  border-radius: 4px; padding: 6px; background: #fffaf0; }
.nv-suche-schacht { font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.nv-suche-grund { font-size: 0.8rem; line-height: 1.35; }
.nv-suche-frage { font-size: 0.85rem; font-weight: 600; margin-top: 4px !important; }
.nv-suche-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-suche-ende { font-size: 0.82rem; color: #8a5a00; line-height: 1.35; }
.nv-suche-schritte { margin: 0; padding-left: 0; list-style: none; font-size: 0.78rem; }

.leaflet-container.netz-abgeblendet path.netz-objekt {
  stroke: #9aa4ad; stroke-opacity: 0.28; fill: #c7cdd2; fill-opacity: 0.2;
}
.fw-pfeil { background: none; border: 0; }
.fw-pfeil svg { width: 16px; height: 16px; display: block; }

.fw-ameisen { stroke-dasharray: 14 10; animation: fw-wandern 1.6s linear infinite; }
@keyframes fw-wandern { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) { .fw-ameisen { animation: none; } }
.fw-ende, .fw-bauwerk { background: none; border: 0; white-space: nowrap; }
.fw-ende-marke, .fw-bauwerk-marke {
  display: inline-block; vertical-align: middle; border: 2px solid #111; background: #fff;
}
.fw-ende-marke { width: 14px; height: 14px; border-radius: 3px; margin: -7px 0 0 -7px; }
.fw-ende--klaeranlage { background: #0b6e63; }
.fw-ende--uebergabe { background: #f2b705; }
.fw-bauwerk-marke { width: 10px; height: 10px; transform: rotate(45deg); margin: -5px 0 0 -5px; }
.fw-ende-text, .fw-bauwerk-text {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--rand);
  font-size: 0.78rem; color: #111;
}
.fw-ende-text { font-weight: 600; }

.anlagen-panel {
  position: absolute; z-index: 1300; top: 10px; right: 10px;
  width: 330px; max-height: calc(100% - 20px); overflow-y: auto;
  background: #fff; border: 1px solid #c3ccc6; border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .17); padding: 9px 12px;
}
.anlagen-panel.an-panel-breit { width: 560px; }

.anlagen-panel {
  resize: both;
  min-width: 300px; min-height: 200px;
  max-width: calc(100vw - 30px); max-height: calc(100vh - 30px);
}

.anlagen-panel::-webkit-resizer { background: #dde4e0; border-radius: 0 0 5px 0; }

.indika-popup { line-height: 1.45; }
.indika-popup-verweis { display: inline-block; margin-top: 4px; color: var(--marke-dunkel); text-decoration: underline; }

.indika-popup-einleitung { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--rand); }
.indika-popup-hinweis { color: var(--text-mute); font-size: 0.85rem; }
.indika-fliessweg-schalter { display: flex; align-items: center; gap: 6px; margin-top: 6px; cursor: pointer; font-weight: 600; }

.indika-popup-stelle { font-size: 0.88rem; }
.indika-popup-kein-kanal { font-weight: 600; color: var(--text); }
.indika-popup-widerspruch { color: #9a5b00; font-size: 0.85rem; font-weight: 600; }
.indika-popup-griff { cursor: move; user-select: none; }
.indika-popup--verschoben .leaflet-popup-tip-container { display: none; }
.indika-plan-popup-verweise { display: flex; gap: 14px; flex-wrap: wrap; }

.leaflet-pane .indika-planbild { pointer-events: none; image-rendering: auto; user-select: none; }

.indika-weg-kasten {
  margin-right: 84px !important;
  background: #fff; border: 2px solid #111; border-radius: 6px; padding: 8px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); max-width: 300px; font-size: 0.85rem; line-height: 1.4;
}
.indika-weg-kopf { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.indika-weg-kopf b { font-size: 0.95rem; }
.indika-weg-zu { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.indika-weg-legende { margin: 6px 0; display: grid; gap: 3px; }
.indika-weg-zeile { display: flex; align-items: center; gap: 8px; }
.indika-weg-linie { display: inline-block; width: 30px; height: 0; flex: 0 0 30px; }
.indika-weg-linie--haupt { border-top: 6px solid var(--farbe); box-shadow: 0 0 0 2px #111; }
.indika-weg-linie--druck { height: 6px; border: 2px solid #111;
  background: repeating-linear-gradient(90deg, var(--farbe) 0 4px, #fff 4px 9px); }
.indika-weg-linie--neben { border-top: 3px dashed var(--farbe); }
.indika-weg-linie--anbindung { border-top: 2px dashed #111; }
.indika-weg-punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid #111; background: #fff; margin: 0 9px; flex: 0 0 auto; }
.indika-weg-knoepfe { display: flex; gap: 6px; }
.fw-pumpe { background: none; border: 0; }
.indika-summe-strich { display: inline-block; width: 30px; border-top: 2px solid #4a5568; }
.fw-summe-treffer { cursor: pointer; }

.indika-sammel-zahl {
  display: flex; align-items: center; justify-content: center;
  background: #111; color: #fff; border: 1.5px solid #fff; border-radius: 9px;
  font: 700 10px/1 Arial, sans-serif; box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.indika-sammel-tooltip { line-height: 1.4; }

.netz-legende.nur-fliessweg > :not(#legende-indika-fliessweg):not(#netz-legende-kopf) { display: none !important; }

.netz-legende.eingeklappt > :not(#netz-legende-kopf) { display: none !important; }
.netz-legende-kopf {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--text);
  cursor: pointer; text-align: left;
}

.leaflet-tooltip.fw-label-verdeckt { visibility: hidden; }

.indika-weg-legende-umschalter, .indika-legende-umschalter {
  border: 0; background: none; padding: 2px 0; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--text); text-align: left;
}
.indika-legende--zu .indika-legende-zeile { display: none; }
.indika-popup-ungefaehr { margin-top: 2px; color: #9a5b00; }
.netz-legende.nur-fliessweg .legende-indika-fliessweg { border-top: 0; padding-top: 0; margin-top: 0; }
.legende-indika-fliessweg .legende-reihe { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legende-indika-fliessweg .indika-summe-strich { width: 22px; }

.netz-legende:not(.nur-fliessweg) .legende-reihe--arten { display: none; }
.netz-legende .legende-indika-fliessweg {
  flex-direction: column; align-items: flex-start; gap: 3px;
  border-top: 1px solid var(--rand); padding-top: 6px; margin-top: 2px;
}
.indika-sammel-auswahl b { display: block; margin-bottom: 4px; }
.indika-sammel-zeile {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 2px;
  border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--marke-dunkel);
}
.indika-sammel-zeile:hover span:last-child { text-decoration: underline; }
.fw-pumpe span {
  display: flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: #111; color: #fff; font: 700 11px/1 Arial, sans-serif;
}
.leaflet-popup-content .fw-popup-inhalt {
  resize: both; overflow: auto;
  min-width: 320px; min-height: 220px;
  max-width: calc(100vw - 80px); max-height: calc(100vh - 140px);
}
.leaflet-popup-content .fw-popup-inhalt::-webkit-resizer {
  background: #dde4e0; border-radius: 0 0 5px 0;
}
.an-panel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.an-panel-kopf h3 { margin: 0; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.an-panel-kopf .an-kunde { margin: 0; flex: 0 0 auto; font-size: 11px; padding: 2px 7px; }
.an-schliessen {
  border: 0; background: none; font-size: 22px; line-height: 1;
  cursor: pointer; color: #6b7a76; padding: 0 2px;
}
.an-schliessen:hover { color: #c0392b; }
.an-lage { font-size: 12px; color: #6b7a76; margin: 4px 0 10px; }
.an-zeile { display: block; margin-bottom: 9px; }
.an-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.an-hinweis { display: block; font-size: 11.5px; color: #7d8a86; margin-top: 2px; }
.an-klein { font-size: 11.5px; color: #6b7a76; }
.an-input, .an-select {
  width: 100%; box-sizing: border-box; padding: 5px 7px;
  border: 1px solid #c3ccc6; border-radius: 3px; font: inherit; font-size: 13.5px;
}
.an-produktinfo { font-size: 12px; color: #4a545b; margin: 2px 0 9px; min-height: 1em; }
.an-erkennung { font-size: 12px; color: #6b5a2c; margin: 5px 0 9px; }
.an-fehler { color: #c0392b; font-size: 12.5px; margin: 4px 0; }
.an-erkennen { margin-bottom: 8px; }
.an-loeschen { margin-top: 10px; color: #c0392b; border-color: #e0b4ae; }

.an-ki {
  margin: 0 0 14px; padding: 10px 11px 11px;
  background: #f2f7f4; border: 1px solid #d6e4dc; border-radius: 6px;
}
.an-ki h4 { margin: 0 0 3px; font-size: 13.5px; color: var(--marke-dunkel, #036c44); }
.an-ki .an-klein { margin: 0 0 8px; }
.an-ki-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

@media (pointer: coarse) {
  .an-ki-knoepfe button { min-height: var(--tipp-ziel, 44px); }
}
.an-ki-dateiname { display: block; margin-bottom: 6px; }
.an-ki-dateiname:empty { display: none; }
.an-ki-text { width: 100%; box-sizing: border-box; resize: vertical; }

.an-ki-mikro-an {
  background: #c0392b; border-color: #c0392b; color: #fff;
  animation: an-ki-puls 1.4s ease-in-out infinite;
}
@keyframes an-ki-puls { 50% { opacity: 0.62; } }
@media (prefers-reduced-motion: reduce) {
  .an-ki-mikro-an { animation: none; }
}
.an-erkennung-ok { color: #2f6b4f; }

.an-ki-bilder { list-style: none; margin: 0 0 7px; padding: 0; }
.an-ki-bilder:empty { display: none; }
.an-ki-bilder li {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 4px 3px 7px; margin-bottom: 3px;
  background: #fff; border: 1px solid #dfe7e2; border-radius: 4px;
}
.an-ki-bildname {
  flex: 1; min-width: 0; font-size: 11.5px; color: #4a545b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.an-ki-weg { flex: none; padding: 0 6px; line-height: 1.1; }

.an-hinweis.an-geprueft-werden { color: #8a6d1a; font-weight: 600; }
.an-seriennummer { font-family: ui-monospace, Consolas, monospace; }

.an-angelegt-ok {
  margin: 8px 0 10px; font-size: 13.5px; font-weight: 600;
  color: #2f6b4f;
}
.an-angelegt-liste {
  margin: 0 0 12px; padding: 9px 11px;
  display: grid; grid-template-columns: auto 1fr; gap: 3px 10px;
  background: #f6f8f7; border: 1px solid #e2e7e4; border-radius: 5px;
  font-size: 12.5px;
}
.an-angelegt-liste dt { color: #6b7a76; }
.an-angelegt-liste dd { margin: 0; }

.an-angelegt-daten {
  margin: 0 0 12px; padding: 10px 11px;
  background: #fbf7ee; border: 1px solid #e6dcc4; border-radius: 5px;
}
.an-angelegt-daten h4 { margin: 0 0 6px; font-size: 13px; color: #6b5a2c; }
.an-angelegt-daten p { margin: 0 0 7px; font-size: 12.5px; line-height: 1.45; }
.an-angelegt-daten p:last-child { margin-bottom: 0; }

.an-angelegt-daten.an-angelegt-gut { background: #f1f8f4; border-color: #cfe4d8; }
.an-angelegt-daten.an-angelegt-gut h4 { color: #2f6b4f; }
.an-angelegt-knoepfe { display: flex; flex-wrap: wrap; gap: 7px; }
@media (pointer: coarse) {
  .an-angelegt-knoepfe button { min-height: var(--tipp-ziel, 44px); }
}

.an-name-reihe { display: flex; gap: 6px; align-items: stretch; }
.an-name-reihe input { flex: 1; min-width: 0; }
.an-name-vorschlag { flex: none; white-space: nowrap; font-size: 12px; padding: 0 10px; }

.an-netz-treffer {
  list-style: none; margin: 2px 0 4px; padding: 0;
  max-height: 190px; overflow-y: auto;
  border: 1px solid #d6e4dc; border-radius: 5px; background: #fff;
}
.an-netz-treffer li + li { border-top: 1px solid #eef3f0; }
.an-netz-treffer-knopf {
  display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap;
  width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 12.5px; padding: 6px 9px;
  border: 0; background: none; color: var(--text, #2c3532);
}
.an-netz-treffer-knopf:hover, .an-netz-treffer-knopf:focus-visible {
  background: #eef6f1;
}
.an-netz-name { font-weight: 600; }
.an-netz-zusatz { font-size: 11.5px; color: #6b7a76; }

.an-netz-netz .an-netz-zusatz { color: #a2691a; font-weight: 600; }
.an-netz-hinweis { margin: 0 0 8px; }
@media (pointer: coarse) {
  .an-netz-treffer-knopf { min-height: var(--tipp-ziel, 44px); }
}

.an-experten {
  margin: 12px 0 6px; padding: 0; border-top: 1px solid #e2e7e4;
}
.an-experten > summary {
  cursor: pointer; padding: 9px 2px 4px;
  font-size: 12.5px; color: #4a545b; user-select: none;
}
.an-experten > summary:hover { color: #007A45; }
.an-experten[open] > summary { color: #007A45; }

.an-datenreihe { margin-top: 14px; padding-top: 10px; border-top: 1px solid #e2e7e4; }
.an-datenreihe h4 { margin: 0 0 4px; font-size: 13.5px; }
.an-popup-knoepfe { margin-top: 7px; display: flex; gap: 5px; }
.an-popup-btn {
  font: inherit; font-size: 12px; padding: 3px 8px; cursor: pointer;
  border: 1px solid #c3ccc6; border-radius: 3px; background: #f7f9f8;
}
.an-popup-btn:hover { border-color: #007A45; color: #007A45; }

.an-zeitraum { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.an-zeitraum .an-zeile { display: flex; align-items: center; gap: 5px; margin: 0; }
.an-zeitraum .an-label { margin: 0; font-size: 11.5px; font-weight: 500; color: var(--text-leise); }
.an-zeitraum .an-input { width: 128px; padding: 3px 6px; font-size: 12.5px; }
.an-zeitraum .zeitraum-schnellwahl { flex-basis: auto; width: auto; gap: 4px; }
.an-zeitraum .btn-zeitraum { padding: 3px 9px; font-size: 11.5px; }

.an-zeitraum .an-aktualisieren { margin-left: 8px; }
.an-umschalter { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 8px 0 10px; }

.an-ampel { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.an-ampel-kopf {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 3px 10px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; cursor: help;
  border: 1px solid transparent;
}
.an-ampel-punkt { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.an-ampel-gruen { background: var(--signal-ok-soft); border-color: var(--signal-ok); color: var(--signal-ok); }
.an-ampel-gelb { background: var(--signal-warn-soft); border-color: var(--signal-warn); color: var(--signal-warn); }
.an-ampel-rot { background: var(--signal-gefahr-soft); border-color: var(--signal-gefahr); color: var(--signal-gefahr); }
.an-meldung {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 3px 10px 3px 14px; border-left: 3px solid var(--rand);
  font-size: 12.5px; cursor: help;
}
.an-meldung-gelb { border-left-color: var(--signal-warn); }
.an-meldung-rot { border-left-color: var(--signal-gefahr); }
.an-meldung-text { flex: 1 1 auto; }
.an-meldung-quittiert { font-size: 11.5px; color: var(--text-mute); font-style: italic; }
.an-quittieren { padding: 2px 9px; font-size: 11.5px; }

.an-kennzahlen { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 2px; }
.an-kz-block { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.an-kz-titel { font-size: 11.5px; font-weight: 600; color: var(--text-mute); }
.an-kz {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 2px 8px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.5;
  border: 1px solid transparent;

  cursor: help;
}
.an-kz b { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.an-kz-gruen { background: var(--signal-ok-soft); border-color: var(--signal-ok); color: var(--signal-ok); }
.an-kz-rot { background: var(--signal-gefahr-soft); border-color: var(--signal-gefahr); color: var(--signal-gefahr); }

.an-kz-neutral { background: var(--grund); border-color: var(--rand); color: var(--text); }
.an-kz-unbekannt { background: var(--grund); border-color: var(--rand); color: var(--text-mute); font-style: italic; }
.an-kz-anzahl { font-size: 11.5px; color: var(--text-mute); }
.an-kz-geltung {

  font-size: 11.5px; color: #475569;
  background: #eef2f7; border-radius: 10px; padding: 2px 8px;
  cursor: help;
}

.an-diagramme { position: relative; }
.an-diagramme.an-laedt { opacity: .45; pointer-events: none; transition: opacity .15s; }
.an-diagramme.an-schiebt { cursor: grabbing; }
.an-diagramme.an-waehlt { cursor: crosshair; }
.an-markierung {
  position: absolute; top: 0; bottom: 0;
  background: rgba(0, 122, 69, .14);
  border-left: 1px solid var(--marke); border-right: 1px solid var(--marke);
  pointer-events: none;
}

.an-stellen-auf {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 2px 0 4px;
  font: inherit; font-size: 12px; color: #4a6b64; cursor: pointer;
}
.an-stellen-auf:hover { color: #0b6e63; text-decoration: underline; }
.an-stellen-liste {
  display: flex; flex-direction: column; gap: 1px;
  max-height: 220px; overflow-y: auto;
  margin: 2px 0 8px; padding: 4px 6px;
  border: 1px solid #dde4e0; border-radius: 4px; background: #fbfdfc;
}
.an-stellen-liste.hidden { display: none; }
.an-stellen-zeile {
  display: flex; align-items: center; gap: 7px;
  padding: 3px 4px; border-radius: 3px;
  font-size: 12.5px; cursor: pointer;
}
.an-stellen-zeile:hover { background: #eef4f1; }
.an-stellen-zeile input { cursor: pointer; margin: 0; flex: 0 0 auto; }
.an-stellen-zeile input:disabled { cursor: not-allowed; }
.an-stellen-zeile input:disabled + span { color: #7d8a86; }

.an-fwbefund {
  margin-top: 7px; padding: 7px 9px;
  border-top: 1px solid #e2e7e4; border-radius: 0 0 4px 4px;
  background: #f6f9f7;
}
.an-fwbefund-titel { font-size: 13px; font-weight: 600; margin: 8px 0 5px; }
.an-fwbefund-titel:first-child { margin-top: 0; }

.an-befund-hinweise { margin: 0 0 7px; padding: 0; list-style: none; font-size: 12.5px; }
.an-befund-hinweise li { padding: 3px 0 3px 20px; position: relative; line-height: 1.4; }
.an-befund-hinweise li::before { position: absolute; left: 0; font-weight: 700; }
.an-befund-gefahr  { color: #a01b1b; }
.an-befund-gefahr::before  { content: "!"; color: #a01b1b; }
.an-befund-warnung { color: #8a5a00; }
.an-befund-warnung::before { content: "▲"; color: #c08a1e; font-size: 10px; top: 4px; }
.an-befund-hinweis { color: #4a545b; }
.an-befund-hinweis::before { content: "i"; color: #5b7c94; font-style: italic; }
.an-befund-ok      { color: #2f6b4f; }
.an-befund-ok::before      { content: "✓"; color: #2f6b4f; }

.an-fachknopf { margin-top: 4px; font-size: 12.5px; padding: 7px 12px; width: 100%; }
.an-fachknopf.gesperrt {
  background: #f2f4f3; color: #7d8a86; border-color: #dde4e0; cursor: pointer;
}
.an-fachknopf.gesperrt:hover { background: #e9edeb; color: #4a545b; }

.an-befund-quelle {
  font-size: 11px; color: #7d8a86; margin: 0 0 8px; font-style: italic;
}
.an-fwbefund-zahlen { font-size: 12.5px; margin: 0 0 6px; color: #2f4a44; }
.an-fwbefund-deutung { font-size: 12px; line-height: 1.45; margin: 0 0 8px; color: #4a545b; }
.an-fwbefund-plausi { font-size: 12px; margin-bottom: 8px; color: #6b5a2c; }
.an-fwbefund-plausi ul { margin: 3px 0 0; padding-left: 18px; }
.an-fwbefund .ut-btn { font-size: 12.5px; padding: 6px 11px; }
.an-reihe-btn { font-size: 12px; padding: 3px 8px; }
.an-reihe-btn.aktiv { background: var(--an-kurve, #0b6e63); color: #fff; border-color: var(--an-kurve, #095a51); }

.an-reihe-btn .an-farbe { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; outline: 2px solid; outline-offset: 1px; }
.an-reihe-btn.aktiv .an-farbe { outline-color: #fff !important; }

.an-vorschlag {
  border-left: 3px solid #c3ccc6; padding: 6px 8px; margin-bottom: 7px;
  background: #f7f9f8; border-radius: 0 3px 3px 0; font-size: 13px;
}
.an-vorschlag.an-sicher { border-left-color: #007A45; }
.an-vorschlag.an-wahrscheinlich { border-left-color: #b7791f; }
.an-vorschlag.an-unklar { border-left-color: #c0392b; }
.an-vorschlag.an-erledigt { opacity: .5; }
.an-vorschlag button { margin-top: 5px; font-size: 12px; padding: 2px 8px; }
.an-fehlliste { padding-left: 18px; font-size: 13px; }
.an-fehlliste li { margin-bottom: 8px; }
.legende-sulfid { display: block; margin-top: 4px; }
.an-ort-label {
  background: rgba(255, 255, 255, .85); border: 0; box-shadow: none;
  font-size: 12px; font-weight: 600; color: #0b6e63; padding: 1px 4px;
}

.an-diagramm-rahmen { position: relative; height: 260px; margin: 4px 0 8px; }

.ratten-panel-kunde {
  margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: #005C34;
}

.kn-kunde-kopf { text-align: left; }

.kn-kunde-logo {

  display: block; width: 100%; height: 112px; object-fit: contain;
  background: #fff; border: 1px solid #e3e7ea; border-radius: 6px;
  padding: 6px; margin-bottom: 8px;
}
.kn-website { font-size: 12px; color: var(--marke, #007A45); word-break: break-all; }
.kn-raeder {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 9px;
}
.kn-rad {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 2px 4px; border: 1px solid var(--rand, #dfe5e2); border-radius: 6px;
  text-align: center;
}
.kn-rad.an { color: var(--marke, #007A45); border-color: var(--marke, #007A45); background: var(--marke-soft, #e5f1ea); }
.kn-rad.aus { color: var(--text-mute, #6b7a76); background: var(--grund, #f5f7f6); }
.kn-rad.aus .s-icon { opacity: 0.62; }
.kn-rad-name { font-size: 9.5px; font-weight: 600; line-height: 1.15; }

button.kn-rad-auf {
  cursor: pointer; font-family: inherit; color: var(--marke, #007A45);
  transition: box-shadow .12s, transform .12s;
}
button.kn-rad-auf:hover { box-shadow: 0 1px 5px rgba(0, 0, 0, .16); transform: translateY(-1px); }
button.kn-rad-auf:focus-visible { outline: 2px solid var(--marke, #007A45); outline-offset: 1px; }
.kn-partner {
  margin-top: 8px; padding-top: 6px; border-top: 1px solid #e3e7ea;
  font-size: 12.5px; line-height: 1.5;
}
.kn-partner-titel {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: #798490; margin-bottom: 1px;
}
.kn-partner a { color: var(--marke, #007A45); }

.an-portal { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e2e7e4; }
.an-portal h4 { margin: 0 0 4px; font-size: 13.5px; }
.an-portal .primary-btn { margin-top: 6px; }

.an-kunde {
  margin: 0 0 8px; padding: 4px 8px; font-size: 12px; font-weight: 600;
  color: #0b6e63; background: #eef5f3; border-radius: 4px; display: inline-block;
}

.an-montage { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e2e7e4; }
.an-montage h4 { margin: 0 0 4px; font-size: 13.5px; }

.an-vorschlag {
  flex-basis: 100%; margin: 3px 0 0 22px; align-self: flex-start;
  font-size: 11.5px; padding: 2px 7px; cursor: pointer;
  background: #eef5f3; border: 1px solid #cfe0dc; border-radius: 4px; color: #0b6e63;
}
.an-vorschlag:disabled { color: #6b7a75; background: #f2f4f3; cursor: default; }

.an-hinweis-datenlage { flex-basis: 100%; margin-left: 22px; color: #7c6f52; }

.an-schritt { margin-top: 10px; padding: 10px; background: #f7f9f8; border-radius: 6px; }
.an-schritt h4 { margin: 2px 0 6px; font-size: 14.5px; }
.an-warum { color: #4a545b; font-style: italic; }
.an-schritt-navi { display: flex; gap: 8px; margin-top: 10px; }
.an-bluetooth {
  margin: 8px 0; padding: 7px 9px; background: #fdf8ec;
  border: 1px solid #ecdcb4; border-radius: 6px; font-size: 12px;
}
.an-bluetooth summary { cursor: pointer; font-weight: 600; }
.an-bluetooth p { margin: 6px 0 0; color: #4a545b; }

.an-pakete { max-height: 230px; overflow-y: auto; margin: 4px 0; }
.an-paket {
  padding: 5px 7px; margin-bottom: 4px; border-radius: 4px;
  background: #f7f9f8; border-left: 3px solid #cfd8d4;
}
.an-paket-kopf { font-size: 12.5px; font-weight: 600; }
.an-paket-meldung { color: #7c6f52; }
.an-paket-roh {
  display: block; margin-top: 3px; font-size: 11px; color: #55605c;
  word-break: break-all; font-family: ui-monospace, Consolas, monospace;
}

.an-paket-uebernommen { border-left-color: #2f855a; }
.an-paket-ohne_messstelle { border-left-color: #2b6cb0; }
.an-paket-ohne_wert { border-left-color: #b7791f; }
.an-paket-unlesbar { border-left-color: #c53030; }
.an-paket-doppelt { border-left-color: #a0aec0; }

.ka-panel-ort { margin: 0 0 10px; color: #55605c; font-size: 13px; }

.ka-legende {
  display: flex; flex-direction: column; gap: 3px;
  max-width: min(320px, 42vw); padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe5e2; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 12px; line-height: 1.5;
}

.ka-suche {
  padding: 5px 9px; border: 1px solid #cfd8d4; border-radius: 6px;
  font-size: 13px; min-width: 190px;
}

.ka-filterleiste { display: flex; flex-direction: column; gap: 4px; }
.ka-drop {
  border: 1px solid #cfd8d4; border-radius: 6px; background: #fff;
}
.ka-drop-btn {
  cursor: pointer; padding: 6px 9px; font-size: 13px;
  list-style-position: inside;
}
.ka-drop-btn.ka-aktiv { background: #0b6e63; color: #fff; border-radius: 5px; }
.ka-drop-liste {
  max-height: 320px; overflow-y: auto; padding: 4px 8px 8px;
  border-top: 1px solid #e3e9e6;
}
.ka-drop-hinweis {
  margin: 0 0 6px; font-size: 11.5px; color: #6b7671; line-height: 1.35;
}
.ka-drop-zeile {
  display: grid; grid-template-columns: auto 1fr auto; gap: 7px;
  align-items: center; padding: 3px 2px; font-size: 13px; cursor: pointer;
}

.ka-drop-zahl { font-variant-numeric: tabular-nums; color: #0b6e63; font-size: 12px; }
.ka-drop-zahl.ka-null { color: #a8b0ad; font-weight: 400; }

.ka-popup { min-width: 240px; }
.ka-daten { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0; }
.ka-daten dt { color: #6b7671; font-size: 12px; }
.ka-daten dd { margin: 0; font-size: 13px; }

.ka-herkunft {
  margin-left: 6px; padding: 0 5px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px; vertical-align: 1px;
}
.ka-h-bearbeitet, .ka-h-unitechnics { background: #0b6e63; color: #fff; }
.ka-h-abgeleitet { background: #f0e2c2; color: #6b5a2a; }
.ka-h-osm { background: #e6ecea; color: #55605c; }
.ka-h-uwwtd, .ka-h-osmuwwtd { background: #dbe8f5; color: #2b5479; }
.ka-popup-knoepfe { margin-top: 8px; }

.ka-block { margin-top: 16px; padding-top: 12px; border-top: 1px solid #eceeed; }
.ka-block h4 { margin: 0 0 8px; font-size: 14px; }
.ka-form { display: flex; flex-direction: column; gap: 4px; }
.ka-teile { list-style: none; margin: 10px 0 0; padding: 0; }
.ka-teile li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px;
  align-items: center; padding: 3px 0; font-size: 13px;
}
.toolbar-btn.ka-aktiv { background: #b7791f; color: #fff; border-color: #b7791f; }

.ka-frist { padding: 9px 11px; border-radius: 7px; font-size: 13px; }
.ka-frist strong { display: block; font-size: 15px; margin-bottom: 3px; }
.ka-frist p { margin: 0; }
.ka-frist-ok      { background: #e6f4ea; color: #1e5631; }
.ka-frist-pflicht { background: #fdecea; color: #8a2418; }
.ka-frist-offen   { background: #fdf4e3; color: #7c5a1a; }

.ka-s-hoch   { background: #d7ede4; color: #14563f; }
.ka-s-mittel { background: #f6ecd2; color: #6b5320; }
.ka-s-gering { background: #eceeed; color: #5b6360; }
.pe-x.ka-ok { color: #1e7a4f; font-weight: 700; }

.ka-vertraulich {
  margin: 10px 0; padding: 9px 11px; border-radius: 7px; font-size: 12.5px;
  background: #eef3f7; color: #35526b; border-left: 3px solid #7ba3c4;
}

.ka-zeitleiste { margin: 8px 0 12px; }
.ka-zeit-kopf { font-size: 13px; margin-bottom: 4px; }
.ka-zeit-kopf strong { color: #0b6e63; }
.ka-zeitleiste input[type=range] { width: 100%; }
.ka-baujahr { width: 66px; font-size: 12px; padding: 1px 4px; }
.ka-teile li { grid-template-columns: auto 1fr auto auto auto; }

.ka-h-vermutet { background: #fbe6c8; color: #7a4a12; }
.ka-vermutet-haken {
  display: flex; align-items: center; gap: 5px; margin: -2px 0 6px 2px;
  font-size: 11.5px; color: #7a6a4a; cursor: pointer;
}

.karten-knopf-aktiv { background: #007A45; color: #fff; }
.karten-knopf-aktiv:hover:not(:disabled) { background: #005C34; color: #fff; }

.friends-blatt { max-width: 620px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.messdaten-herkunft {
  margin: 0 0 10px; padding: 8px 12px;
  border-left: 4px solid #e8a33d; border-radius: 6px;
  background: #fdf7ec; color: #7a5312;
  font-size: 0.82rem; line-height: 1.5;
}

.ks-hintergrund {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(40, 48, 54, 0.45);
}
.ks-fenster {
  position: relative;
  background: var(--flaeche); border-radius: var(--radius-l);
  box-shadow: var(--schatten-3);
  width: min(940px, 100%); max-height: 100%;
  display: flex; flex-direction: column;
}
.ks-zu { position: absolute; top: 10px; right: 12px; z-index: 1; }

.ks-inhalt { overflow-y: auto; padding: 26px 28px 28px; }
.ks-laden { display: flex; align-items: center; gap: 10px; color: var(--text-mute); padding: 40px 0; }
.ks-fehler { color: var(--signal-gefahr); padding: 30px 0; }

.ks-kopf { display: flex; align-items: flex-start; gap: 16px; padding-right: 40px; }

.ks-wappen {
  width: 74px; height: 74px; flex: none; object-fit: contain;
  border: 1px solid var(--rand); border-radius: var(--radius-m);
  background: #fff; padding: 6px;
}

.ks-wappen--ersatz { opacity: 0.45; background: var(--grund); }
.ks-kopf-text { min-width: 0; }
.ks-kopf h2 { margin: 2px 0 4px; font-size: 1.35rem; color: var(--marke-dunkel); }
.ks-anschrift { color: var(--text-leise); font-size: 0.92rem; white-space: pre-line; }
.ks-website { display: inline-block; margin-top: 4px; color: var(--marke); font-size: 0.9rem; }
.ks-referenz {
  margin-left: auto; flex: none; align-self: center;
  background: var(--marke-soft); color: var(--marke-dunkel);
  border-radius: var(--radius-rund); padding: 3px 11px;
  font-size: 0.76rem; font-weight: 700;
}

.ks-zahlen { display: flex; flex-wrap: wrap; gap: 22px; margin: 18px 0 4px; }
.ks-zahl { display: flex; flex-direction: column; }
.ks-zahl-wert { font-size: 1.3rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.ks-zahl-was { font-size: 0.78rem; color: var(--text-mute); }

.ks-block { margin-top: 24px; }
.ks-block h3 { margin: 0 0 10px; font-size: 1rem; color: var(--text); }
.ks-leer { color: var(--text-mute); font-size: 0.9rem; margin: 0; }
.ks-fussnote { color: var(--text-mute); font-size: 0.78rem; margin: 8px 0 0; }

.ks-netz .gp-datei { display: inline-block; width: auto; margin-top: 10px; }
.ks-netz .gp-hinweis:empty { display: none; }

.ks-module {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px;
}
.ks-modul {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: var(--radius-m);
  border: 1px solid var(--rand); text-align: center;
}
.ks-modul.an { color: var(--marke); border-color: var(--marke); background: var(--marke-soft); }
.ks-modul.aus { color: var(--text-mute); background: var(--grund); }

.ks-modul.aus .s-icon { opacity: 0.62; }
.ks-modul-name { font-size: 0.74rem; font-weight: 600; line-height: 1.2; }

button.ks-modul-auf {
  cursor: pointer; font-family: inherit; color: var(--marke);
  transition: box-shadow .12s, transform .12s;
}
button.ks-modul-auf:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .16); transform: translateY(-1px); }
button.ks-modul-auf:focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; }
.ks-modul-sonstige { margin-top: 8px; font-size: 0.8rem; color: var(--text-leise); }

.ks-ka-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ks-ka-zahlen { color: var(--text-leise); font-size: 0.86rem; margin-top: 2px; }
.ks-herkunft {
  border-radius: var(--radius-rund); padding: 2px 9px;
  font-size: 0.72rem; font-weight: 700;
}
.ks-herkunft--zugeordnet { background: var(--signal-ok-soft); color: var(--signal-ok); }
.ks-herkunft--imNetzgebiet { background: var(--signal-info-soft); color: var(--signal-info); }

.ks-herkunft--naechste { background: var(--signal-warn-soft); color: var(--signal-warn); }

.ks-luftbild-halter {
  position: relative; margin-top: 12px;
  width: min(520px, 100%); aspect-ratio: 1 / 1;
  border-radius: var(--radius-m); overflow: hidden; background: var(--chip);
}
.ks-luftbild { width: 100%; height: 100%; object-fit: cover; display: block; }

.ks-schema { position: absolute; inset: 0; width: 100%; height: 100%; }
.ks-luftbild-fehlt {
  margin-top: 12px; padding: 16px 18px;
  background: var(--grund); border: 1px dashed var(--rand-stark);
  border-radius: var(--radius-m); color: var(--text-mute); font-size: 0.86rem;
}
.ks-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.ks-legende-eintrag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-leise); }
.ks-legende-farbe { width: 11px; height: 11px; border-radius: 3px; flex: none; }

.ks-quelle { margin-top: 8px; font-size: 0.74rem; color: var(--text-mute); }

.ks-kontakte { display: flex; flex-wrap: wrap; gap: 12px; }
.ks-kontakt {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--rand); border-radius: var(--radius-m);
  padding: 10px 14px; font-size: 0.88rem; min-width: 190px;
}
.ks-kontakt a { color: var(--marke); }
.ks-kontakt-rolle { color: var(--text-mute); font-size: 0.78rem; }

@media (max-width: 620px) {
  .ks-hintergrund { padding: 0; }
  .ks-fenster { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .ks-inhalt { padding: 20px 16px 24px; }
}
.ks-aktionen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ks-aktion-meldung { color: var(--signal-gefahr); font-size: 0.82rem; }

#geruch-panel,
.gp-kopf { margin-bottom: 10px; }
.gp-kopf-titel { font-size: 15px; font-weight: 700; color: var(--text, #22312c); }
.gp-kopf-sub { font-size: 12px; color: var(--text-mute, #6b7a76); margin-top: 2px; }
.gp-liste { display: flex; flex-direction: column; gap: 6px; }

.gp-zeile {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--rand, #dfe5e2); border-radius: 8px;
  padding: 9px 11px; font-family: inherit;
}
.gp-zeile:hover { border-color: var(--marke, #007A45); }
.gp-zeile-name { font-size: 13.5px; font-weight: 600; color: var(--text, #22312c); }
.gp-zeile-sub { font-size: 11.5px; color: var(--text-mute, #6b7a76); margin-top: 2px; }
.gp-kv {
  display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px;
  padding: 5px 0; border-bottom: 1px dashed var(--rand, #dfe5e2);
}
.gp-kv span { color: var(--text-mute, #6b7a76); }
.gp-label { display: block; font-size: 11.5px; font-weight: 600; margin: 10px 0 3px; }
.gp-feld {
  width: 100%; padding: 7px 9px; font-family: inherit; font-size: 13px;
  border: 1px solid var(--rand, #dfe5e2); border-radius: 6px; background: #fff;
}
.gp-hinweis { font-size: 11.5px; color: var(--text-mute, #6b7a76); line-height: 1.5; margin: 8px 0 0; }
.gp-leer { font-size: 12.5px; color: var(--text-mute, #6b7a76); line-height: 1.55; }

.gp-meldung { font-size: 12px; color: #c0392b; margin: 8px 0 0; min-height: 1em; }
.gp-aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gp-voll { width: 100%; margin-top: 8px; }

.gp-zeile-aktiv { border-color: var(--marke, #007A45); box-shadow: inset 3px 0 0 var(--marke, #007A45); }

.gp-zeile-still { cursor: default; }
.gp-zeile-still:hover { border-color: var(--rand, #dfe5e2); }
.gp-block { margin-top: 14px; }
.gp-block-titel {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-mute, #6b7a76); margin-bottom: 6px;
}

.gp-pruefliste { list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.5; }
.gp-pruefliste li { display: flex; gap: 7px; padding: 3px 0; }
.gp-haken { flex: 0 0 auto; font-weight: 700; }

.nsp-kopf { margin-bottom: 10px; }
.nsp-kopf-titel { font-size: 15px; font-weight: 700; color: var(--text); }
.nsp-kopf-sub { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.nsp-netz {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px;
  border: 1px solid var(--rand); border-left: 3px solid var(--marke); border-radius: var(--radius-s);
  background: var(--flaeche); font-size: 13.5px;
}
.nsp-netz-label { font-size: 11.5px; color: var(--text-mute); }
.nsp-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nsp-kacheln .nsim-kachel { min-width: 0; padding: 8px 10px; }
.nsp-kacheln .nsim-kachel strong { font-size: 1.1rem; }
.nsp-kacheln .nsim-kachel span { font-size: 0.74rem; }
.nsp-kacheln > .nsp-hinweis { grid-column: 1 / -1; margin: 0; }

.nsp-annahme {
  background: var(--marke-soft); border: 1px solid var(--rand); border-radius: var(--radius-s);
  padding: 8px 10px; font-size: 12.5px; line-height: 1.45; margin: 0;
}
.nsp-hinweis { font-size: 12px; color: var(--text-mute); line-height: 1.5; margin: 0; }
.nsp-voll { width: 100%; margin-top: 4px; }
.gp-ok { color: var(--text-mute, #6b7a76); }
.gp-ok .gp-haken { color: var(--marke, #007A45); }
.gp-offen { color: var(--text, #22312c); }
.gp-offen .gp-haken { color: #c0392b; }
.gp-fehler { font-size: 12px; color: #c0392b; margin: 8px 0 0; }

.gp-zeile-aktion { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.gp-reihe-knopf { font-size: 11.5px; padding: 4px 9px; cursor: pointer; }

.gp-datei { cursor: pointer; text-align: center; }

.gp-datei { display: block; text-align: center; cursor: pointer; }
.gp-bericht {
  font-size: 12px; line-height: 1.5; margin: 10px 0 0; padding: 8px 10px;
  border-radius: 6px; background: var(--marke-soft, #e5f1ea); color: var(--text, #22312c);
}

.kn-ziel { background: var(--marke, #007A45); color: #fff; margin-bottom: 6px; }
.kn-ziel:hover { filter: brightness(1.08); }

tr.nvr-gepflegt td.nvr-modul { background: rgba(241, 196, 15, .16); }
tr.nvr-gepflegt td.nvr-links::after {
  content: " ✎"; color: var(--text-mute, #6b7a76); font-size: .85em;
}

.nvr-loeschen {
  font: inherit; font-size: 11px; line-height: 1; cursor: pointer;
  margin-left: 4px; padding: 2px 4px; vertical-align: middle;
  border: 1px solid transparent; border-radius: 3px;
  background: none; opacity: .45;
}
.nvr-loeschen:hover, .nvr-loeschen:focus-visible {
  opacity: 1; border-color: #e0b4ae; background: rgba(192, 57, 43, .10);
}
.nvr-loeschen[disabled] { opacity: .3; cursor: progress; }

.nvr-lage {
  margin-left: 5px; cursor: pointer; font-family: inherit; font-size: 12px;
  line-height: 1; padding: 1px 4px; border-radius: 4px;
  border: 1px solid #d8a520; background: rgba(241, 196, 15, .18); color: #8a6d1a;
}
.nvr-lage:hover { background: rgba(241, 196, 15, .34); }
.nvr-lage:disabled { cursor: default; opacity: .6; }
.nvr-lage-fehler { border-color: #c0392b; color: #c0392b; background: rgba(192, 57, 43, .1); }
.nvr-lage-ok { margin-left: 5px; font-size: 12px; color: var(--marke, #007A45); }

.nvr-nadel { display: grid; gap: 10px; min-width: min(560px, 90vw); }
.nvr-nadel-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.nvr-nadel-zeile--voll { grid-template-columns: minmax(0, 1fr); }
.nvr-nadel-zeile input, .nvr-nadel-zeile select { width: 100%; min-width: 0; box-sizing: border-box; padding: 6px 8px; }
.nvr-nadel-karte { height: 340px; border: 1px solid #cfd6d2; border-radius: 4px; }
.nvr-nadel-status { font-size: 13px; color: #5b6b66; min-height: 1.3em; }
.nvr-nadel-status.fehler { color: #c0392b; }
.nvr-nadel-koord { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #34413c; }

.netzarten-filter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--rand, #d8dde3);
}
.netzarten-filter .naf-titel {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-schwach, #6b7480);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.netzarten-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.netzarten-filter .naf-zahl {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--text-schwach, #6b7480);
  font-size: 11px;
}

.ms-uebersicht { min-width: 300px; font-size: 13px; color: var(--text); }

.ms-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--text-mute); text-transform: uppercase; margin-bottom: 6px;
}
.ms-punkt {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ut-orange); box-shadow: 0 0 0 3px rgba(238, 127, 0, .18);
}
.ms-titel { margin: 0 0 11px; font-size: 16px; font-weight: 700; color: #2b3338; }

.ms-raster {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  padding: 6px 0; border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand);
}
.ms-feld { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-feld-name { font-size: 10.5px; color: var(--text-mute); }
.ms-feld-wert { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }

.an-dosier {
  margin: 10px 0 4px; padding: 10px 12px;
  border: 1px solid var(--rand-stark); border-radius: 8px; background: var(--flaeche);
}
.an-dosier-titel {
  margin-bottom: 8px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-mute);
}
.an-dosier-bedienung { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.an-dosier-schalter {
  display: inline-flex; border: 1px solid var(--rand-stark); border-radius: 8px; overflow: hidden;
}
.an-dosier-knopf {
  min-width: 76px; min-height: var(--tipp-ziel); padding: 0 16px; border: 0;
  background: var(--flaeche); color: var(--text-mute);
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.05em; cursor: pointer;
}
.an-dosier-knopf + .an-dosier-knopf { border-left: 1px solid var(--rand-stark); }
.an-dosier-knopf--an { background: var(--signal-ok); color: #fff; cursor: default; }
.an-dosier-knopf--aus { background: var(--signal-gefahr); color: #fff; cursor: default; }
.an-dosier-faktor { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.an-dosier-faktor-name { margin-right: 4px; font-size: 13px; color: var(--text); }
.an-dosier-schritt {
  width: var(--tipp-ziel); height: var(--tipp-ziel);
  border: 1px solid var(--rand-stark); border-radius: 8px; background: var(--flaeche);
  color: var(--text); font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
}
.an-dosier-feld {
  width: 84px; min-height: var(--tipp-ziel); text-align: right; font-size: 16px; font-weight: 600;
}
.an-dosier-prozent { font-size: 15px; font-weight: 600; color: var(--text); }
.an-dosier-uebernehmen {
  min-height: var(--tipp-ziel); padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--marke); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.an-dosier-knopf:disabled, .an-dosier-schritt:disabled,
.an-dosier-uebernehmen:disabled, .an-dosier-feld:disabled { opacity: 0.6; cursor: progress; }
.an-dosier-status {
  margin: 10px 0 0; padding: 7px 10px; border-left: 4px solid var(--rand-stark);
  border-radius: 4px; font-size: 13px; line-height: 1.4; color: var(--text);
}
.an-dosier-status--ok { border-left-color: var(--signal-ok); background: var(--signal-ok-soft); }
.an-dosier-status--warn { border-left-color: var(--signal-warn); background: var(--signal-warn-soft); }
.an-dosier-status--info { border-left-color: var(--signal-info); background: var(--signal-info-soft); }
.an-dosier-status--fehler,
.an-dosier-status--aus { border-left-color: var(--signal-gefahr); background: var(--signal-gefahr-soft); }
.an-dosier-geaendert { margin: 6px 0 0; font-size: 11.5px; color: var(--text-mute); }

.ms-werte { padding: 9px 0 11px; font-size: 12.5px; color: var(--text-leise); }
.ms-werte::before { content: "△ "; color: var(--marke); }

.ms-knoepfe { display: flex; gap: 8px; }
.ms-btn {
  flex: 1; padding: 9px 12px; border-radius: 5px; font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; border: 1px solid transparent; text-align: center;
}

.ms-btn-haupt { background: var(--marke); color: #fff; border-color: var(--marke); }
.ms-btn-haupt:hover { background: var(--marke-dunkel); border-color: var(--marke-dunkel); }
.ms-btn-zweit { background: var(--flaeche); color: var(--ut-orange); border-color: var(--ut-orange); }
.ms-btn-zweit:hover { background: #fff6ec; }

.ms-btn-fach {
  width: 100%; margin-top: 8px; background: var(--flaeche);
  color: var(--marke); border-color: var(--marke);
}
.ms-btn-fach:hover { background: var(--marke-soft); }

.ms-btn-grau {
  background: var(--chip); color: var(--text-mute); border-color: var(--rand-stark);
}
.ms-btn-grau:hover { background: #e6eaed; color: var(--text-leise); }

.leaflet-popup-content .ms-uebersicht { margin: 2px 0; }

.an-panel-kopf.an-griff { cursor: grab; touch-action: none; user-select: none; }
.an-panel-kopf.an-griff:active { cursor: grabbing; }

.an-reihe-btn.an-letzte-kurve { cursor: not-allowed; opacity: .92; }

.ms-bauwerk {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--grund); border: 1px solid var(--rand);
  border-radius: 6px; padding: 6px 9px; margin-bottom: 6px;
}
.ms-bauwerk-symbol { color: var(--text-mute); flex: 0 0 auto; line-height: 0; margin-top: 1px; }
.ms-bauwerk-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ms-bauwerk-marke {
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em;
  color: var(--text-mute); text-transform: uppercase;
}
.ms-bauwerk-name { font-size: 14px; color: #2b3338; }
.ms-bauwerk-unten {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 11.5px; color: var(--text-leise); margin-top: 2px;
}
.ms-netzart { display: inline-flex; align-items: center; gap: 5px; }
.ms-netzart-punkt {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 5px; vertical-align: baseline;
}

.ms-punkt-bauwerk { background: var(--text-mute); box-shadow: 0 0 0 3px rgba(121, 132, 144, .16); }

.ms-hinweis { font-size: 11px; color: var(--text-mute); margin: 8px 0 0; line-height: 1.4; }

.ms-sachdaten a, .kn-popup a { color: var(--marke-dunkel); font-weight: 600; }
.ms-sachdaten a:hover, .kn-popup a:hover { text-decoration: underline; }

.ms-trenner {
  display: flex; align-items: center; gap: 7px;
  margin: 12px 0 7px; padding-top: 11px; border-top: 1px solid var(--rand);
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  color: var(--text-mute); text-transform: uppercase;
}
.ms-stelle-name { font-size: 14px; font-weight: 600; color: #2b3338; }
.ms-stelle-unten { font-size: 11.5px; color: var(--text-leise); margin: 2px 0 10px; }

.an-dia-untertitel {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 2px 0 12px;
}
.an-dia-stelle { font-size: 14px; font-weight: 600; color: #2b3338; }
.an-dia-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 11px;
  background: var(--marke-soft); color: var(--marke-dunkel);
}

.an-abschnitt {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-mute);
  margin: 8px 0 3px;
}
.an-abschnitt:first-of-type { margin-top: 4px; }

.an-diagramme { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.an-dia-block { display: flex; flex-direction: column; }
.an-dia-kopf { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.an-dia-name { font-size: 12.5px; font-weight: 600; color: #2b3338; }
.an-dia-einheit { font-size: 10.5px; color: var(--text-mute); margin-left: auto; }

.an-dia-marke {
  font-size: 9.5px; padding: 1px 6px; border-radius: 8px;
  background: var(--chip); color: var(--text-leise);
}

.an-dia-rahmen { position: relative; height: 200px; margin-top: 2px; }

.an-umschalter .an-reihe-btn { border-radius: 13px; padding: 4px 11px; font-size: 12px; }

.an-pruef-kopf { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.an-pruef-titel { font-size: 12.5px; font-weight: 600; color: #2b3338; }
.an-pruef-groesse {
  font-size: 10.5px; padding: 1px 7px; border-radius: 8px;
  background: var(--chip); color: var(--text-leise);
}

.an-pruef-mehr { margin-top: 4px; }
.an-pruef-mehr > summary {
  font-size: 11px; color: var(--text-mute); cursor: pointer; list-style: none;
}
.an-pruef-mehr > summary::before { content: "▸ "; }
.an-pruef-mehr[open] > summary::before { content: "▾ "; }
.an-pruef-mehr p { font-size: 11.5px; line-height: 1.45; margin: 5px 0 0; color: var(--text-leise); }

.an-fachergebnis {
  margin-top: 9px; padding: 11px 12px;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 6px;
}
.an-fach-kopf { font-size: 12.5px; font-weight: 700; color: #2b3338; margin-bottom: 9px; }
.an-fach-arten { display: flex; flex-direction: column; }
.an-fach-art {
  display: grid; grid-template-columns: minmax(0, 168px) 1fr; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--rand);
}
.an-fach-art:first-child { border-top: 0; padding-top: 0; }

.an-fach-art.dominant { background: var(--marke-soft); margin: 0 -12px; padding: 8px 12px; }
.an-fach-art.dominant .an-fach-typ { background: var(--marke); color: #fff; }
.an-fach-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 7px; }
.an-fach-typ {
  font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: var(--chip); color: var(--text-leise);
}
.an-fach-name { font-size: 12px; color: var(--text-leise); width: 100%; }
.an-fach-wert { font-size: 15px; font-weight: 700; color: #2b3338; }
.an-fach-zusatz { font-size: 11px; color: var(--text-mute); }
.an-fach-deutung { font-size: 11.5px; line-height: 1.45; color: var(--text-leise); }
.an-fach-prosa {
  font-size: 12px; line-height: 1.5; color: var(--text);
  margin: 11px 0 0; padding-top: 10px; border-top: 1px solid var(--rand);
}
.an-fach-plausi { font-size: 11.5px; color: #8a5a00; margin: 8px 0 0; }
.an-fachknopf.aktiv { background: var(--marke-soft); border-color: var(--marke); color: var(--marke-dunkel); }

.an-fachplatz { margin-top: 8px; }
.an-fachplatz:empty { display: none; }

.nvr-name {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.nvr-name:hover,
.nvr-name:focus-visible {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.nadel-klein {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1f6feb;
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 3.5px rgba(0, 0, 0, .35);
  cursor: pointer;
}
.nadel-klein:hover {
  background: #0b4fc4;
}

.nadel-klein--grau {
  background: #8b949e;
}

.nadel-klein--meines {
  background: #c0392b;
}
.nadel-klein--meines:hover {
  background: #96281b;
}

.nadel-klein--demo {
  background: #e07b12;
}
.nadel-klein--demo:hover {
  background: #b45f08;
}

.gp-abschnitt {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mut, #798490);
  margin: 12px 0 4px;
}

.gp-zeile-mit-knopf {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.gp-zeile-mit-knopf > .gp-zeile {
  flex: 1 1 auto;
  min-width: 0;
}
.gp-dazu,
.gp-weg {
  flex: 0 0 28px;
  border: 1px solid var(--line, #e3e7ea);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--mut, #798490);
}
.gp-dazu:hover { border-color: var(--ut, #048755); color: var(--ut, #048755); }
.gp-weg:hover { border-color: #c92a2a; color: #c92a2a; }

.gp-zeitraum {
  display: flex;
  gap: 6px;
}
.gp-zeitraum > .gp-feld { flex: 1 1 0; min-width: 0; }

.ut-fenster-karte.ut-fenster--schwebend {
  position: absolute; z-index: 1400;
  left: 12px; right: 12px; bottom: var(--karte-menue-frei);
  width: auto; max-height: 55vh;
  display: flex; flex-direction: column;

  overflow: hidden auto;
  padding: 12px 16px 10px;
  border: 1px solid var(--rand);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.ut-fenster--schwebend > .ut-fenster-kopf { flex: 0 0 auto; }

.ut-fenster--schwebend > .ut-fenster-inhalt { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }

.ut-fenster--ziehbar > .ut-fenster-kopf { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }

.ut-fenster--ziehbar.ut-fenster--zieht { user-select: none; -webkit-user-select: none; will-change: transform; }
.ut-fenster--ziehbar.ut-fenster--zieht > .ut-fenster-kopf { cursor: grabbing; }

.nsp-umschalter-block { display: flex; flex-direction: column; gap: 6px; }
.nsp-umschalter { display: flex; gap: 4px; padding: 3px; background: var(--flaeche-2, #f1f4f6); border-radius: 16px; }
.nsp-pille {
  flex: 1; border: 1px solid transparent; border-radius: 13px; padding: 5px 10px;
  background: transparent; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer;
}
.nsp-pille:hover { background: rgba(0, 0, 0, .04); }
.nsp-pille.an, .nsp-pille[aria-checked="true"] {
  background: var(--marke); color: #fff; border-color: var(--marke-dunkel); font-weight: 600;
}

.nsp-pille:disabled { color: var(--text-mute); cursor: not-allowed; opacity: .7; }

.nsp-kurz { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text); }

.nsp-zeitstrahl-block { display: flex; flex-direction: column; gap: 4px; }

.nsp-zeitstrahl-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 11px; color: var(--text-mute); }
.nsp-zeitstrahl-legende { white-space: normal; }
.nsp-zeitstrahl {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 8px;
  border-top: 2px solid var(--rand); position: relative;
}
.nsp-lauf {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  border: 1px solid var(--rand-stark); border-radius: 6px; padding: 4px 8px;
  background: var(--flaeche); color: var(--text); font: inherit; cursor: pointer; text-align: left;
}
.nsp-lauf:hover { border-color: var(--marke); }
.nsp-lauf.an, .nsp-lauf[aria-checked="true"] { border-color: var(--marke); background: var(--marke-soft); box-shadow: inset 0 0 0 1px var(--marke); }

.nsp-lauf-regen { font-size: 12px; font-weight: 600; white-space: nowrap; }
.nsp-lauf-datum { font-size: 11px; color: var(--text-mute); white-space: nowrap; }
.nsp-lauf--gemessen .nsp-lauf-regen { color: #0b6e63; }
.nsp-zeitstrahl-achse { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-mute); margin-top: -4px; }

.nsp-liste-block { display: flex; flex-direction: column; gap: 6px; }
.nsp-liste-block:empty { display: none; }
.nsp-liste-kopf { font-size: 12px; font-weight: 700; color: var(--text); margin-top: 2px; }
.nsp-eintrag {
  display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left;
  border: 1px solid var(--rand); border-radius: 6px; padding: 6px 8px;
  background: var(--flaeche); color: var(--text); font: inherit; cursor: pointer;
}
.nsp-eintrag:hover, .nsp-eintrag:focus-visible { border-color: var(--marke); }
.nsp-nr {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; background: #b400b4;
}
.nsp-eintrag--rueckstau .nsp-nr { background: #fff; color: #b400b4; box-shadow: inset 0 0 0 2px #b400b4; }
.nsp-eintrag--sonde .nsp-nr { background: #1565c0; border-radius: 4px; }
.nsp-eintrag--vorhanden .nsp-nr { background: #fff; color: #1565c0; box-shadow: inset 0 0 0 2px #1565c0; }
.nsp-eintrag-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nsp-eintrag-titel { font-size: 12.5px; font-weight: 600; }
.nsp-eintrag-satz { font-size: 11.5px; line-height: 1.45; color: var(--text-mute); }
.nsp-marke-vorhanden {
  margin-left: 6px; font-size: 10.5px; font-weight: 600; color: #1565c0;
  border: 1px solid #1565c0; border-radius: 8px; padding: 0 5px;
}

.nsim-marke { background: transparent; border: 0; }
.nsim-marke span {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  font: 700 12px/1 system-ui, sans-serif; color: #fff;
}
.nsim-marke--austritt span { background: #b400b4; }
.nsim-marke--rueckstau span { background: #fff; color: #b400b4; border-color: #b400b4; }
.nsim-marke--sonde span { background: #1565c0; border-radius: 4px; }
.nsim-marke--vorhanden span { background: #fff; color: #1565c0; border-color: #1565c0; }

.nsim-schild span { border-radius: 5px; }
.nsim-schild--ueberlauf span { background: #d9480f; }
.nsim-schild--becken span { background: #a8320a; }
.nsim-schild--stauraum span { background: #8e44ad; }
.nsim-schild--pumpwerk span { background: #1c7ed6; border-radius: 50%; }
.nsim-schild--ka span { background: var(--marke, #007a45); width: 30px; font-size: 11px; }

.nsp-umschalter--ansicht .nsp-pille { white-space: normal; line-height: 1.2; }

.nsp-gebiete { display: flex; flex-direction: column; gap: 8px; padding-bottom: var(--aime-frei, 72px); }
.nsp-gebiete.hidden { display: none; }
.nsp-nr--gebiet { border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.nsp-eintrag--gebiet.an { border-color: var(--marke); background: var(--marke-soft); box-shadow: inset 0 0 0 1px var(--marke); }
.nsp-detail {
  display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45;
  border: 1px solid var(--rand); border-left: 3px solid var(--marke); border-radius: var(--radius-s); background: var(--flaeche);
}
.nsp-detail-titel { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.nsp-detail-farbe { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 3px; }
.nsp-flaeche { display: flex; flex-direction: column; gap: 4px; }
.nsp-flaeche-zeile { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; }
.nsp-flaeche-eingabe { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.nsp-flaeche-feld { width: 76px; padding: 4px 6px; border: 1px solid var(--rand-stark, var(--rand)); border-radius: 4px; font: inherit; }
.nsp-flaeche-knopf { padding: 4px 10px; font-size: 12.5px; }
.nsp-klappe > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--text); padding: 2px 0; }
.nsp-klappe > .nsp-hinweis { margin: 2px 0 6px; }
.nsp-annahmen { margin: 4px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.5; color: var(--text-mute); }

.gep-schrittleiste.hidden, .gep-tafel.hidden, .gep-fuss.hidden { display: none; }
.gep-schritte { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.gep-schritt {
  height: 26px; padding: 0; border: 1px solid var(--rand); border-radius: 13px;
  background: var(--flaeche); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}

.gep-schritt:hover, .gep-schritt:focus-visible { border-color: #4b5563; }
.gep-schritt.an { background: #6b7280; border-color: #4b5563; color: #fff; }
.nsp-umschalter--ansicht .nsp-pille[data-wert="gep"] { color: var(--text-mute); }
.nsp-umschalter--ansicht .nsp-pille[data-wert="gep"].an { background: #6b7280; border-color: #4b5563; color: #fff; }
.gep-fuss .gep-weiter:not(:disabled) { background: #6b7280; border-color: #4b5563; }
.gep-warnung {
  position: sticky; top: 0; z-index: 2; padding: 8px 10px; font-size: 12.5px; line-height: 1.4;
  border: 1px solid #9ca3af; border-left: 4px solid #4b5563; border-radius: var(--radius-s, 6px);
  background: #e5e7eb; color: #1f2937;
}
.gep-warnung.hidden { display: none; }
.gep-schritt--fehlt:not(.an) { border-style: dashed; color: var(--text-mute); }
.gep-tafel { display: flex; flex-direction: column; gap: 8px; }
.gep-kopf-titel { font-size: 14.5px; font-weight: 700; color: var(--text); }
.gep-kopf-unter { font-size: 12px; color: var(--text-mute); margin-top: 1px; }
.gep-kasten {
  border: 1px solid var(--rand); border-left-width: 3px; border-radius: var(--radius-s, 6px);
  padding: 7px 9px; font-size: 12.5px; line-height: 1.45; background: var(--flaeche);
}
.gep-kasten--warn { border-left-color: #edb92e; background: #fff8e1; }
.gep-kasten--fehler { border-left-color: #c62828; background: #fdecea; }
.gep-kasten--gut { border-left-color: var(--marke); background: var(--marke-soft); }
.gep-kasten--neutral { border-left-color: var(--text-mute); }
.gep-kasten--fehlt { border-style: dashed; border-left-style: solid; border-left-color: var(--text-mute); color: var(--text); }
.gep-kasten .nsp-annahmen { color: var(--text); }
.gep-klein { margin-top: 4px; font-size: 11.5px; color: var(--text-mute); }
.gep-herkunft { font-style: italic; }
.gep-kachel--warn strong { color: #a15c00; }
.gep-zeile.an { border-color: var(--marke); background: var(--marke-soft); box-shadow: inset 0 0 0 1px var(--marke); }
.gep-nr { border-radius: 5px; min-width: 20px; width: auto; padding: 0 4px; }
.gep-zeile--art .gep-nr { color: #fff; }
.gep-zeile--art .gep-nr[style*="#edb92e"] { color: #3d2c00; }
.gep-zeile--stufe2 .gep-nr { opacity: .5; }
.gep-tabelle { width: 100%; border-collapse: collapse; font-size: 12px; }
.gep-tabelle th, .gep-tabelle td { padding: 3px 4px; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
.gep-tabelle th { font-size: 11px; color: var(--text-mute); font-weight: 600; }
.gep-tabelle .z { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gep-tabelle th.z { white-space: normal; }
.gep-reglerzeile { margin: 0; font-size: 12.5px; line-height: 1.45; }
.gep-regler { width: 100%; accent-color: var(--marke); }
.gep-fuss { display: flex; gap: 6px; }
.gep-fuss .gep-weiter { flex: 1; white-space: normal; text-align: left; }

.gep-luft { flex: 0 0 var(--aime-frei, 72px); }
.gep-luft.hidden { display: none; }
.nsp-gebiete { padding-bottom: 0; }

.nsim-teil { display: flex; flex-direction: column; gap: 10px; }
.nsim-kurz { margin: 0; font-size: 0.98rem; line-height: 1.5; color: var(--text); }
.nsim-details { border: 1px solid var(--rand); border-radius: 6px; padding: 0; }
.nsim-details > summary {
  cursor: pointer; padding: 8px 12px; font-weight: 600; font-size: 0.9rem; list-style: none;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nsim-details > summary::-webkit-details-marker { display: none; }
.nsim-details > summary::before {
  content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--text-mute); transition: transform .15s;
}
.nsim-details[open] > summary::before { transform: rotate(90deg); }
.nsim-details[open] > summary { border-bottom: 1px solid var(--rand); }
.nsim-details > :not(summary) { padding: 10px 12px; }
.nsim-details > .nsim-inhalt { padding: 10px 12px; }

.nsim-summary-kurz { font-weight: 400; color: var(--text-mute); font-size: 0.85rem; }

.nsim-regen { border: 1px solid var(--rand); border-radius: 6px; padding: 8px 12px 10px; margin: 0; }
.nsim-regen > legend { font-weight: 600; font-size: 0.9rem; padding: 0 4px; }
.nsim-wahl { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; cursor: pointer; }
.nsim-wahl input { margin-top: 4px; flex: 0 0 auto; }
.nsim-wahl-text { display: flex; flex-direction: column; gap: 1px; }
.nsim-wahl-text > b { font-size: 0.95rem; }
.nsim-wahl-text > span { font-size: 0.82rem; color: var(--text-mute); }
.nsim-zeitraum { margin: 4px 0 0 28px; display: flex; flex-direction: column; gap: 8px; }
.nsim-schnellwahl { display: flex; gap: 6px; flex-wrap: wrap; }
.nsim-zeitraum-felder { display: flex; gap: 12px; flex-wrap: wrap; }
.nsim-zeitraum-felder label { display: flex; flex-direction: column; gap: 3px; font-size: 0.78rem; color: var(--text-mute); }
.nsim-zeitraum-felder .ut-feld { min-width: 190px; }
.nsim-rechnen-zeile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nsim-rechnen-zeile .nsim-stand { font-size: 0.9rem; color: var(--text); }

.nsim-details .nsim-gep { margin-top: 14px; padding-top: 14px; }

.nsim-tabelle tr.nsim-zeile { cursor: pointer; }
.nsim-tabelle tr.nsim-zeile:hover td { background: var(--marke-soft); }
.nsim-tabelle tr.nsim-zeile:focus-visible { outline: 2px solid var(--marke); outline-offset: -2px; }
.nsim-tabelle tr.nsim-zeile--markiert td { background: var(--marke-soft); box-shadow: inset 3px 0 0 var(--marke); font-weight: 600; }
.nsim-markier-hinweis { margin: 6px 0 0; font-size: 0.85rem; color: var(--signal-gefahr); }
.nsim-markier-hinweis:empty { display: none; }

.nsim-messvergleich { margin-top: 12px; border-top: 2px solid var(--rand); padding-top: 12px; }
.nsim-messvergleich > h3 { margin: 0 0 8px; }
.nsim-dia { margin-top: 12px; }
.nsim-dia-titel { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }

.nsim-dia-titel { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ls-kopf-knoepfe { display: flex; align-items: center; gap: 6px; }
.btn-csv-export { margin-left: 6px; }

.nsim-dia-rahmen { position: relative; height: 180px; }

.nsp-screening {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rand);
}
.nsp-screening .nsp-hinweis { margin-top: 8px; }

.gp-screening {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rand);
}
.gp-screening .gp-annahme {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-mute);
}

.sst-werkzeuge { display: flex; gap: 8px; margin-top: 10px; }
.sst-halb { flex: 1 1 0; min-width: 0; }
.sst-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sst-zeile {
  border: 1px solid var(--rand, #dfe5e2); border-radius: 8px;
  padding: 8px 10px 10px; background: #fff;
}
.sst-zeile-kopf { display: flex; align-items: center; gap: 8px; }

.sst-nr {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--marke, #007A45); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.sst-name { flex: 1 1 auto; min-width: 0; padding: 5px 8px; font-size: 12.5px; }
.sst-weg {
  flex: 0 0 auto; width: 24px; height: 24px; padding: 0;
  border: 0; background: none; cursor: pointer;
  color: var(--text-mute, #6b7a76); font-size: 17px; line-height: 1;
}
.sst-weg:hover { color: #c0392b; }
.sst-herkunft {
  font-size: 10.5px; color: var(--text-mute, #6b7a76);
  margin: 4px 0 0 28px; font-style: italic;
}

.sst-herkunft-ohne { opacity: 0.65; }

.sst-nr-karte { box-shadow: 0 0 0 2px rgba(0, 122, 69, 0.22); }
.sst-nr:not(.sst-nr-karte) {
  background: #fff; color: var(--text-mute, #6b7a76);
  box-shadow: inset 0 0 0 1px var(--rand, #dfe5e2);
}
.sst-gitter { display: flex; gap: 6px; margin-top: 8px; }
.sst-mini { flex: 1 1 0; min-width: 0; font-size: 10.5px; color: var(--text-mute, #6b7a76); }
.sst-mini .sst-feld { margin-top: 2px; padding: 5px 7px; font-size: 12.5px; }
.sst-schalter {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 11px; color: var(--text-mute, #6b7a76); cursor: pointer;
}
.sst-schalter input { flex: 0 0 auto; margin: 0; }
.sst-rand { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rand, #dfe5e2); }
.sst-ergebnis { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rand, #dfe5e2); }

.sst-abbruch { color: #8a6d1f; }

.sst-summe { text-align: center; padding: 10px 0 4px; }
.sst-summe-zahl { font-size: 22px; font-weight: 700; color: var(--text, #22312c); }
.sst-summe-text { font-size: 11px; color: var(--text-mute, #6b7a76); margin-top: 2px; }
.sst-tabelle { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 11.5px; }
.sst-tabelle th {
  text-align: left; font-weight: 600; color: var(--text-mute, #6b7a76);
  padding: 4px 4px 5px; border-bottom: 1px solid var(--rand, #dfe5e2); white-space: nowrap;
}
.sst-tabelle td {
  padding: 5px 4px; border-bottom: 1px dashed var(--rand, #dfe5e2);
  color: var(--text, #22312c); white-space: nowrap;
}
.sst-tabelle td:first-child {
  white-space: normal; word-break: break-word; max-width: 96px;
}

.sst-ablage { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rand, #dfe5e2); }
.sst-ablage-zeile { display: flex; align-items: stretch; gap: 4px; }
.sst-ablage-oeffnen { flex: 1 1 auto; min-width: 0; }
.sst-ablage-zeile .sst-weg { align-self: center; }

.sst-zeichnet,
.sst-zeichnet .leaflet-grab,
.sst-zeichnet.leaflet-dragging .leaflet-grab,
.sst-zeichnet .leaflet-interactive {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 21l1.1-4.1L15.4 5.6l3 3L7.1 19.9 3 21z' fill='%23ffffff' stroke='%2322312c' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M16.6 4.4l1.5-1.5a1.6 1.6 0 0 1 2.3 0l.7.7a1.6 1.6 0 0 1 0 2.3l-1.5 1.5-3-3z' fill='%23007A45' stroke='%2322312c' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='3.4' cy='20.6' r='0.9' fill='%2322312c'/%3E%3C/svg%3E") 3 21, crosshair;
}

.gp-fehl-schalter {
  display: block; width: 100%; margin: 8px 0 0; padding: 0;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 11.5px; color: var(--marke, #007A45);
}
.gp-fehl-schalter:hover { text-decoration: underline; }
.gp-fehlliste {
  margin: 6px 0 0; padding: 8px 10px; list-style: none;
  background: var(--flaeche-still, #f4f7f5); border-radius: 6px;
  font-size: 11.5px; line-height: 1.5; color: var(--text, #22312c);
}
.gp-fehlliste li + li { margin-top: 8px; }
.gp-fehl-abhilfe { color: var(--text-mute, #6b7a76); margin-top: 2px; }

.gp-manuell { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rand, #dfe5e2); }
.gp-manuell .gp-hinweis { margin-top: 6px; }

.an-ladebalken { display: flex; flex-direction: column; gap: 3px; margin: 4px 0; font-size: 12px; color: #6b7280; }
.an-ladebalken-lauf { height: 3px; border-radius: 2px; background: rgba(43, 108, 176, 0.15); overflow: hidden; position: relative; }
.an-ladebalken-lauf::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
  border-radius: 2px; background: #2b6cb0;
  animation: an-ladebalken-lauf 1.1s ease-in-out infinite;
}
@keyframes an-ladebalken-lauf { from { transform: translateX(-100%); } to { transform: translateX(400%); } }

.an-zeitraum-wahl { margin: 14px 0; padding: 12px 14px; border: 1px dashed #94a3b8; border-radius: 8px; color: #475569; font-size: 13px; background: #f8fafc; }

.an-diagramme.an-zoom-bereit { cursor: crosshair; }

.auswahl-marke { animation: auswahl-puls 1.6s ease-in-out infinite; }
@keyframes auswahl-puls {
  0%, 100% { stroke-opacity: 0.9; fill-opacity: 0.12; }
  50%      { stroke-opacity: 0.35; fill-opacity: 0.03; }
}

.diktat-knopf {
  margin-top: 4px; padding: 6px 10px; min-height: 32px;
  border: 1px solid #cbd5e1; border-radius: 6px;
  background: #f8fafc; color: #334155; font-size: 12.5px; cursor: pointer;
}
.diktat-knopf:hover { background: #eef2f7; }
.diktat-knopf.an { background: #fee2e2; border-color: #ef4444; color: #991b1b; }

.gp-groesse-paar { display: flex; margin-top: 8px; }
.gp-groesse {
  flex: 1 1 0; padding: 5px 8px; cursor: pointer; font-family: inherit;
  font-size: 11.5px; color: var(--text-mute, #6b7a76);
  background: #fff; border: 1px solid var(--rand, #dfe5e2);
}
.gp-groesse:first-child { border-radius: 6px 0 0 6px; }
.gp-groesse:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.gp-groesse:hover { color: var(--text, #22312c); }
.gp-groesse-an {
  background: var(--marke, #007A45); border-color: var(--marke, #007A45);
  color: #fff; font-weight: 600;
}
.gp-groesse-an:hover { color: #fff; }

.sst-liste-schmal { gap: 0; margin-top: 6px; }
.sst-schmal {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 5px 6px; cursor: pointer; text-align: left; font-family: inherit;
  background: none; border: 0; border-bottom: 1px solid var(--rand, #dfe5e2);
}
.sst-schmal:hover { background: var(--flaeche-still, #f4f7f5); }
.sst-schmal-name {
  flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 600;
  color: var(--text, #22312c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sst-schmal-werte {
  flex: 0 0 auto; font-size: 10.5px; color: var(--text-mute, #6b7a76); white-space: nowrap;
}

.sst-liste-schmal .sst-zeile {
  margin: 4px 0; box-shadow: inset 3px 0 0 var(--marke, #007A45);
}

body.ticket-setzmodus #map { cursor: crosshair; }

.tw-fenster {
  position: fixed; inset: 0; z-index: 3200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(40, 48, 54, 0.45);
}
.tw-kasten {
  background: var(--flaeche); border-radius: var(--radius-l);
  box-shadow: var(--schatten-3);
  width: min(460px, 100%); max-height: 100%; overflow-y: auto;
  padding: 22px 24px 24px;
}
.tw-kasten h3 {
  margin: 0 0 16px; font-size: 1.05rem; color: var(--marke-dunkel);
}

.tw-form { display: flex; flex-direction: column; gap: 14px; }

.tw-paar { display: flex; gap: 12px; }
.tw-paar > label { flex: 1; min-width: 0; }
@media (max-width: 420px) {
  .tw-paar { flex-direction: column; }
}

.tw-text { resize: vertical; min-height: 68px; }

.tw-ort {
  margin: 0; font-size: 0.8rem; color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.tw-meldung { margin: 0; color: var(--signal-gefahr); font-size: 0.85rem; }
.tw-meldung:empty { display: none; }

.tw-knoepfe { display: flex; gap: 8px; justify-content: flex-end; }

.tw-ziel {
  margin: 0; padding: 6px 10px; border-radius: 8px;
  background: var(--grund); color: var(--text);
  font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere;
}

.tp-nummer { font-variant-numeric: tabular-nums; color: var(--text-mute); }

.tp-getroffen {
  border-color: var(--signal-warn) !important;
  box-shadow: inset 3px 0 0 var(--signal-warn);
}

.tk-gruppe + .tk-gruppe { margin-top: 18px; }
.tk-gruppe-titel {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-mute);
}
.tk-zahl {
  min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--grund); color: var(--text);
  font-size: 0.78rem; font-weight: 700; text-align: center;
  letter-spacing: 0;
}
.tk-leer { margin: 0 0 4px; color: var(--text-mute); font-size: 0.88rem; }

.tk-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px;
  align-items: center;
  padding: 10px 14px; border: 1px solid var(--rand); border-radius: var(--radius-m, 10px);
  background: var(--flaeche);
}

.tk-zeile > .tk-knoepfe { grid-row: 1 / span 3; grid-column: 2; align-self: start; }

.tk-kopf { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tk-nummer {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-mute);
  font-size: 0.85rem;
}
.tk-titel { font-weight: 600; overflow-wrap: anywhere; }

.tk-prio {
  padding: 1px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.tk-prio-hoch { color: var(--signal-warn); background: var(--signal-warn-soft); }
.tk-prio-kritisch { color: var(--signal-gefahr); background: var(--signal-gefahr-soft); }

.tk-text {
  grid-column: 1; margin: 0; color: var(--text); font-size: 0.88rem;
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.tk-unten {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  color: var(--text-mute); font-size: 0.82rem;
}

.tk-unten > * + *::before { content: "· "; }
.tk-zustand { font-weight: 600; color: var(--text); }

.tk-verweis {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--marke); font: inherit; text-decoration: underline;
}

.tk-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tk-knopf { padding: 5px 10px; font-size: 0.82rem; }

.tk-erledigt { opacity: 0.6; }
.tk-erledigt .tk-titel { text-decoration: line-through; }

@media (max-width: 560px) {
  .tk-zeile { grid-template-columns: minmax(0, 1fr); }
  .tk-zeile > .tk-knoepfe { grid-row: auto; grid-column: 1; justify-content: flex-start; }
}

.td-kacheln {
  display: grid; gap: 10px; margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.td-kachel {
  padding: 12px 14px; border: 1px solid var(--rand); border-radius: var(--radius-m, 10px);
  background: var(--flaeche);
  border-left: 4px solid var(--rand-stark);
}
.td-kachel-wert { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.td-kachel-name { font-weight: 600; margin-top: 2px; }
.td-kachel-unter { color: var(--text-mute); font-size: 0.8rem; margin-top: 3px; }

.td-warn { border-left-color: var(--signal-warn); }
.td-gefahr { border-left-color: var(--signal-gefahr); }
.td-gefahr .td-kachel-wert { color: var(--signal-gefahr); }

.td-zwei {
  display: grid; gap: 16px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .td-zwei { grid-template-columns: 1fr; } }
.td-block {
  padding: 14px 16px 16px; border: 1px solid var(--rand);
  border-radius: var(--radius-m, 10px); background: var(--flaeche);
}
.td-titel { margin: 0 0 10px; font-size: 1rem; }
.td-unter { margin: 0 0 10px; color: var(--text-mute); font-size: 0.85rem; }

.td-reiter { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.td-reiter-knopf {
  border: 1px solid var(--rand); background: var(--flaeche); color: var(--text);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 0.85rem;
  cursor: pointer;
}
.td-reiter-knopf:hover { border-color: var(--marke); }
.td-reiter-knopf.aktiv { background: var(--marke); border-color: var(--marke); color: #fff; }

.td-tabelle-rahmen { overflow-x: auto; }
.td-tabelle { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.td-tabelle th {
  text-align: left; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-mute); font-weight: 700;
  padding: 0 8px 6px 0; border-bottom: 1px solid var(--rand);
}
.td-tabelle td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rand); }
.td-tabelle tr:last-child td { border-bottom: 0; }
.td-zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-still { color: var(--text-mute); }
.td-marke {
  display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--signal-gefahr); background: var(--signal-gefahr-soft);
  white-space: nowrap;
}

.td-legende {
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
  color: var(--text-mute); font-size: 0.8rem;
}
.td-punkt { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.td-punkt-neu { background: var(--signal-info); }
.td-punkt-fertig { background: var(--signal-ok); }
.td-punkt + span { margin-left: 10px; }

.td-balken { display: flex; gap: 4px; align-items: flex-end; height: 160px; }
.td-monat { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.td-saeulen {
  display: flex; gap: 2px; align-items: flex-end; justify-content: center;
  width: 100%; height: 130px; border-bottom: 1px solid var(--rand);
}
.td-saeule { width: 45%; min-height: 1px; border-radius: 2px 2px 0 0; }
.td-saeule-neu { background: var(--signal-info); }
.td-saeule-fertig { background: var(--signal-ok); }
.td-monat-name { font-size: 0.7rem; color: var(--text-mute); margin-top: 4px; }

.td-liste { margin-top: 20px; }
.td-listenkopf {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.td-listenkopf .td-titel { margin: 0; }
.td-suche { flex: 1; min-width: 200px; }
.td-schalter {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  color: var(--text-mute); font-size: 0.88rem; cursor: pointer;
}
.td-zeile-fertig { opacity: 0.6; }
.td-zeile-fertig .gp-zeile-name { text-decoration: line-through; }

.td-frist {
  margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 600; white-space: nowrap;
  color: var(--signal-info); background: var(--signal-info-soft);
}
.td-frist-weg { color: var(--signal-gefahr); background: var(--signal-gefahr-soft); }

.tk-kacheln { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tk-kachel {
  display: flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--rand); background: var(--flaeche);
}
.tk-kachel-wert { font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-kachel-name { color: var(--text-mute); font-size: 0.85rem; }
.tk-kachel-still { margin: 0; color: var(--text-mute); font-size: 0.85rem; }
.tk-kachel.tk-warn { border-color: var(--signal-warn); }
.tk-kachel.tk-warn .tk-kachel-wert { color: var(--signal-warn); }
.tk-kachel.tk-gefahr { border-color: var(--signal-gefahr); }
.tk-kachel.tk-gefahr .tk-kachel-wert { color: var(--signal-gefahr); }
.tk-mehr { margin-top: 12px; }
