@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap;
  src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap;
  src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

/* Farben aus dem Logo der Taubenhilfe Ludwigsburg; dazu eine feste Farbe je Bereich
   (Symbole immer weiß auf der Bereichsfarbe, Kontrast mind. ca. 4 : 1) */
:root {
  --bg: #f3f6fb; --card: #ffffff; --ink: #14213d; --muted: #5f6b80; --line: #dfe5ef;
  --brand: #21498a; --brand-dark: #173665; --brand-ink: #ffffff; --brand-soft: #e6edf8;
  --accent: #21498a;  /* kräftig gefüllte Flächen mit weißer Schrift */
  --head: #21498a; --head-ink: #ffffff;
  --red: #c4372c; --red-soft: #fbe6e3; --amber: #b26b00; --amber-soft: #fdf1dc;
  --green: #22804f; --green-soft: #e1f3e8; --grey: #8a93a3;
  --nav-ink: #1b2333;
  --c-notfall: #c4372c; --c-tausch: #c25e10; --c-futter: #22804f; --c-patient: #2563b8;
  --c-nest: #8a5a2b; --c-karte: #0f7f86; --c-start: #21498a;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(20,33,61,.07), 0 6px 18px rgba(20,33,61,.07);
  --shadow-btn: 0 2px 6px rgba(20,33,61,.22);
  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-w: 236px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1626; --card: #1a2540; --ink: #e9eef7; --muted: #a7b3c8; --line: #2e3c5c;
    --brand: #8fb3ef; --brand-dark: #c3d5f6; --brand-ink: #0f1626; --brand-soft: #1f2e4d;
    --accent: #3a73d1;
    --head: #173665; --head-ink: #ffffff;
    --red: #f07d70; --red-soft: #3d2222; --amber: #f0b45a; --amber-soft: #3a2d17;
    --green: #6fcf97; --green-soft: #183325;
    --nav-ink: #eef2f8;
    --c-tausch: #b0540c; --c-start: #3a73d1;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.28);
    --shadow-btn: 0 2px 8px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
a { color: var(--brand); }
img { max-width: 100%; }
h1 { font: 700 1.35rem/1.25 var(--display); margin: 0 0 12px; color: var(--brand-dark); }
h2 { font: 700 .78rem/1.2 var(--display); margin: 24px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
h3 { font: 700 1rem/1.3 var(--display); margin: 20px 0 6px; color: var(--brand-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }

/* Bereichsfarben */
.c-notfall { --c: var(--c-notfall); } .c-tausch { --c: var(--c-tausch); } .c-futter { --c: var(--c-futter); }
.c-patient { --c: var(--c-patient); } .c-nest { --c: var(--c-nest); } .c-karte { --c: var(--c-karte); }
.b-start { --c: var(--c-start); } .b-patient { --c: var(--c-patient); } .b-notfall { --c: var(--c-notfall); }
.b-nest { --c: var(--c-nest); } .b-karte { --c: var(--c-karte); } .b-futter { --c: var(--c-futter); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 1000; background: var(--head); color: var(--head-ink);
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; display: flex; align-items: center; gap: 10px; }
.top a { color: inherit; text-decoration: none; }
.top .logo { display: flex; align-items: center; gap: 10px; }
.top .logo img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.top .logo b { display: block; font: 700 1.02rem/1.1 var(--display); letter-spacing: .02em; }
.top .logo small { display: block; font: 600 .62rem/1.2 var(--display); letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.top .sp { flex: 1; }
.top .me { font-size: .82rem; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14);
  padding: 6px 10px; border-radius: 999px; position: relative; }
.top .me svg { width: 16px; height: 16px; }
.zaehler { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #c4372c; color: #fff;
  font: 700 .72rem/1.4 system-ui, sans-serif; font-style: normal; text-align: center; margin-left: 4px; }
.top .me .zaehler { position: absolute; top: -6px; right: -6px; box-shadow: 0 0 0 2px var(--head); }

/* Navigation unten (Handy) bzw. Seitenleiste (PC) */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--card);
  border-top: 1px solid var(--line); display: flex; padding: 4px 2px env(safe-area-inset-bottom); }
.nav a { flex: 1; text-align: center; padding: 4px 2px 7px; font-size: .72rem; color: var(--nav-ink);
  text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 500; }
.nav .pill { display: flex; align-items: center; justify-content: center; width: 54px; height: 30px; border-radius: 999px;
  transition: background .15s; }
.nav a svg { width: 24px; height: 24px; stroke-width: 2.2; }
.nav a.on { font-weight: 700; color: var(--nav-ink); }
.nav a.on .pill { background: var(--c); color: #fff; }
.nav a.on svg { stroke-width: 2.4; }
.nav .pc { display: none; }
.nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 6px; }

/* Karten und Listen */
.card { background: var(--card); border: 0; border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; background: var(--card); border: 0;
  border-radius: var(--radius); padding: 10px 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.item .thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--c, var(--brand-soft)); flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; font: 700 1.05rem/1 var(--display); }
.item .thumb svg { width: 30px; height: 30px; color: #fff; }
.item .main { flex: 1; min-width: 0; }
.item .t { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { color: var(--muted); font-size: .85rem; }
.item .r { text-align: right; font-size: .85rem; color: var(--muted); flex: none; }
.empty { color: var(--muted); text-align: center; padding: 28px 10px; grid-column: 1 / -1; }

/* Startseite */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 20px;
  background: var(--card); border: 0; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); min-height: 104px; transition: transform .12s; }
.tile:active { transform: scale(.98); }
.tile .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--c, var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tile svg { width: 30px; height: 30px; color: #fff; }
.tile b { font: 700 1rem/1.25 var(--display); color: var(--brand-dark); }
.tile span { font-size: .82rem; color: var(--muted); }
.tile.alarm { grid-column: 1 / -1; background: linear-gradient(135deg, #d4483c 0%, #c4372c 55%, #a92a20 100%); color: #fff;
  flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 18px 16px; box-shadow: 0 8px 22px rgba(196,55,44,.32); }
.tile.alarm .ic { background: #fff; margin: 0; flex: none; }
.tile.alarm svg { color: #c4372c; }
.tile.alarm b { color: #fff; font-size: 1.1rem; }
.tile.alarm span { color: rgba(255,255,255,.92); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 16px; }
.stat { background: var(--card); border: 0; border-radius: 14px; padding: 10px 8px; text-align: center;
  text-decoration: none; color: inherit; }
.stat b { display: block; font: 700 1.45rem/1.1 var(--display); color: var(--brand-dark); }
.stat span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.stat.warn b { color: var(--red); }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 14px;
  padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--accent); color: #fff; min-height: 52px; box-shadow: var(--shadow-btn); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.sec { background: transparent; color: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn.red { background: #c4372c; color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; }
.btn.klein { min-height: 42px; padding: 8px 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.btns .btn { flex: 1; }

/* Formulare */
label.f, span.f { display: block; margin: 10px 0 4px; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=datetime-local],
select, textarea { width: 100%; font: inherit; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); min-height: 48px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
label.check { display: flex; align-items: center; gap: 10px; margin: 8px 0; cursor: pointer; }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; gap: 6px; margin: 4px 0 2px; }
.seg label { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--bg); cursor: pointer; }
.msg { padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); margin-bottom: 12px; }
.msg.err { background: var(--red-soft); color: var(--red); }
.msg.warn { background: var(--amber-soft); color: var(--amber); }
.klein-text { color: var(--muted); font-size: .88rem; margin: 4px 0 8px; }

/* Status-Chips mit farbigem Punkt */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge:empty { display: none; }
.badge.rot, .badge.Kritisch, .badge.Lebensgefahr { background: var(--red-soft); color: var(--red); }
.badge.gelb, .badge.Geschwächt, .badge.Dringend { background: var(--amber-soft); color: var(--amber); }
.badge.gruen, .badge.Stabil { background: var(--green-soft); color: var(--green); }
.badge.grau { background: var(--line); color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot.rot { background: var(--red); } .dot.gelb { background: var(--amber); }
.dot.gruen { background: var(--green); } .dot.grau { background: var(--grey); }

/* Detailseiten */
dl.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .88rem; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.timeline .card { position: relative; }
.timeline .when { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.chart { width: 100%; height: 170px; }
.chart .ax { stroke: var(--line); }
.chart .ln { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.chart .pt { fill: var(--brand); }
.chart text { fill: var(--muted); font-size: 11px; }
.minimap { height: 180px; border-radius: 12px; margin: 8px 0; z-index: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; align-items: center; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-size: .9rem; white-space: nowrap; font-weight: 500; }
.tabs a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.tabs .sp { flex: 1; }
/* „Nur meine“: an = ausgefülltes Personen-Symbol */
.tabs a.meine { display: inline-flex; align-items: center; gap: 6px; }
.tabs a.meine svg { width: 18px; height: 18px; }
.tabs a.meine.on svg { fill: currentColor; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.row h1 { margin: 0; }
.wz-head .row { margin-bottom: 0; }

/* Zugangsdaten zum Weitergeben */
.zugang { border: 2px solid var(--brand); }
.zugang pre { margin: 0; padding: 12px; border-radius: 10px; background: var(--brand-soft); color: var(--ink);
  font: 600 .92rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; user-select: all; }
.item .r .von { font-size: .78rem; }

/* Löschen */
.del { margin-top: 28px; text-align: center; }
.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--red-soft); box-shadow: none; }
.del-link { border: 0; background: none; padding: 0; font: inherit; font-size: .82rem; color: var(--red); cursor: pointer; float: right; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 3000; display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; }

/* Fragebogen-Assistent */
.wz { max-width: 640px; margin: 0 auto; padding: 0 16px 16px; }
.wz-head { position: sticky; top: 0; z-index: 900; background: var(--bg); padding: 12px 0 8px; }
.wz-ctx { font-size: .85rem; color: var(--muted); }
.wz-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.wz-bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.wz-q { font-size: 1.25rem; font-weight: 700; margin: 16px 0 4px; }
.wz-help { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px 16px; min-height: 54px;
  border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s; -webkit-tap-highlight-color: transparent; }
.opt .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); flex: none; display: flex;
  align-items: center; justify-content: center; }
.opt.radio .box { border-radius: 50%; }
/* gewählte Antwort: komplett blau mit weißer Schrift */
.opt.on { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.opt.on .box { background: #fff; border-color: #fff; }
.opt.on .box::after { content: ""; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px); }
.opt.radio.on .box::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent); transform: none; }
.opt.puls, .spot.puls { animation: puls .4s ease-out; }
@keyframes puls {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(58,115,209,.55); }
  35% { transform: scale(1.025); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(58,115,209,0); }
}
.wz-vor { animation: rein-rechts .26s ease-out; }
.wz-zurueck { animation: rein-links .26s ease-out; }
@keyframes rein-rechts { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rein-links { from { transform: translateX(-48px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .opt.puls, .spot.puls, .wz-vor, .wz-zurueck { animation: none; }
  .opt, .tile, .nav .pill { transition: none; }
}
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.yn .opt { justify-content: center; font-weight: 600; }
.wz-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.wz-nav .in { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.wz-nav .btn { flex: 1; }
.wz-nav .btn.ghost { flex: 0 0 auto; }
/* „Überspringen“ als unterstrichener Text */
.wz-nav .btn.skip { background: transparent; color: var(--ink); box-shadow: none; text-decoration: underline;
  text-underline-offset: 3px; font-weight: 600; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ph-grid .ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.ph-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-grid .ph button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.ph-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1;
  border: 2px dashed var(--line); border-radius: 10px; color: var(--brand); font-size: .8rem; font-weight: 600; cursor: pointer; background: var(--card); }
.ph-add svg { width: 30px; height: 30px; }
.wz-map { height: 300px; border-radius: 12px; margin-top: 12px; z-index: 0; }
.loc-info { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.sum dl.kv { margin-bottom: 4px; }
.sum .edit { font-size: .82rem; }
.spot { cursor: pointer; }
.spot.on { outline: 3px solid var(--accent); }

/* Karte */
.mapfull { position: fixed; top: calc(54px + env(safe-area-inset-top)); left: 0; right: 0;
  bottom: calc(64px + env(safe-area-inset-bottom)); }
.map-filter { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 800; display: flex; gap: 6px;
  background: var(--card); padding: 6px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.2); max-width: calc(100% - 24px); overflow-x: auto; }
.map-filter label { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.map-filter input { margin: 0; }
.map-legend { position: absolute; bottom: 12px; left: 12px; z-index: 800; background: var(--card); padding: 8px 10px; border-radius: 10px;
  font-size: .75rem; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.map-legend div { display: flex; align-items: center; gap: 6px; }
.pop img { width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.pop b { display: block; }
.pop .btn { min-height: 38px; padding: 8px 12px; margin-top: 8px; color: #fff; width: 100%; }
.pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.pin span { transform: rotate(45deg); display: flex; color: #fff; }
.pin svg { width: 17px; height: 17px; }
.pin.nest-gruen { background: #2e7d4f; } .pin.nest-gelb { background: #d39b2a; } .pin.nest-rot { background: #b83a2e; }
.pin.nest-grau { background: #8a8f8e; } .pin.notfall { background: #7b2cbf; } .pin.notfall-zu { background: #b9a3cf; }
.pin.fundort { background: #21498a; } .pin.futter { background: #a0522d; }
.leaflet-container { font: inherit; }

@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile.alarm { grid-column: span 3; }
}

/* Offline-Hinweis */
.outbox { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 950; background: var(--amber-soft); color: var(--amber);
  padding: 10px 16px; font-size: .9rem; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.outbox.ok { background: var(--green-soft); color: var(--green); }
.outbox button { border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; background: var(--amber); color: #fff; cursor: pointer; flex: none; }
.outbox[hidden] { display: none; }

/* Startseite: Kopfbereich im Logo-Blau */
.hero { background: var(--head); color: var(--head-ink); margin: -16px -16px 0; padding: 18px 20px 54px;
  border-radius: 0 0 28px 28px; display: flex; align-items: center; gap: 14px; }
.hero .hi { font: 700 1.3rem/1.2 var(--display); }
.hero .sub { font-size: .9rem; opacity: .85; margin-top: 2px; }
.hero + .stats { margin-top: -40px; position: relative; }
.stats .stat { box-shadow: var(--shadow); }
.section-gap { height: 4px; }

/* Anmeldeseite und öffentliche Seiten */
.login-hero { text-align: center; margin: 4vh auto 18px; }
.login-hero img { width: 150px; height: 150px; border-radius: 50%; box-shadow: 0 10px 30px rgba(33,73,138,.25); }
.login-hero h1 { margin-top: 14px; }
.login-hero p { color: var(--muted); }
.hinweis { color: var(--muted); font-size: .85rem; text-align: center; margin: 4px 0 0; }
.fuss { text-align: center; font-size: .85rem; color: var(--muted); margin: 26px 0 8px; line-height: 2; }
.fuss a { color: var(--muted); }
.text-seite { max-width: 680px; margin: 0 auto; }
.text-seite p, .text-seite li { line-height: 1.55; }
.text-seite ul { padding-left: 20px; }
.pub-kopf { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); margin: 4px 0 18px;
  font-family: var(--display); }
.pub-kopf img { width: 44px; height: 44px; border-radius: 50%; }
.entwurf { background: #c4372c; color: #fff; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.entwurf code { color: #fff; }
.fehlt { color: var(--red); font-weight: 600; }
.danke { border-left: 5px solid var(--green); }
.anleitung ol { padding-left: 22px; margin: 6px 0 0; }
.anleitung ol li { margin: 4px 0; }
.rm-text { white-space: pre-line; margin: 4px 0 6px; }
#fb-foto { max-width: 340px; }
.rm-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; margin-top: 8px; }
@media (max-width: 520px) { .rm-form { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- PC-Ansicht
   Ab 960 px: untere Leiste wird zur Seitenleiste links, Kopfzeile über die volle Breite. */
@media (min-width: 960px) {
  body.mit-nav { padding-bottom: 24px; }
  .nav { top: 54px; bottom: 0; right: auto; width: var(--nav-w); flex-direction: column; gap: 2px;
    border-top: 0; border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; }
  .nav a { flex: none; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px;
    padding: 5px 8px; font-size: .95rem; border-radius: 14px; }
  .nav .pill { width: 44px; height: 34px; flex: none; }
  .nav a:hover { background: var(--bg); }
  .nav a.on { background: color-mix(in srgb, var(--c) 14%, transparent); }
  .nav .pc { display: flex; }
  .nav hr.pc { display: block; }
  .nav a .zaehler { margin-left: auto; }
  body.mit-nav > main.wrap, body.mit-nav > .outbox { margin-left: var(--nav-w); }
  body.mit-nav > main.wrap { max-width: none; padding: 24px 32px; }
  body.mit-nav > main.wrap > * { max-width: 760px; margin-left: auto; margin-right: auto; }
  body.mit-nav > main.wrap.wide > * { max-width: 1180px; }
  body.mit-nav .hero { margin-top: -24px; border-radius: 0 0 28px 28px; }
  .wide .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapfull { left: var(--nav-w); top: 54px; bottom: 0; }
  .map-legend { bottom: 16px !important; left: calc(var(--nav-w) + 12px); }
  .map-filter { left: calc(50% + var(--nav-w) / 2); }
}
@media (min-width: 1560px) {
  .wide .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.mit-nav > main.wrap.wide > * { max-width: 1500px; }
}
