@font-face { font-family: "Source Sans 3 Variable"; src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4 Variable"; src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

/* FlurLotse-Farben (design/tokens) auf die bisherigen Variablen gelegt */
:root {
  --bg: #FBF8F1;
  --panel: #ffffff;
  --ink: #17211D;
  --muted: #4C5A53;
  --line: #D9D2C1;
  --soft: #F1ECE0;
  --accent: #1F4D3F;
  --accent-ink: #ffffff;
  --gold: #E9AE45;
  --gold-ink: #17211D;
  --danger: #A23E22;
  --new: #C2620F;
  --shadow: 0 8px 30px rgba(20, 30, 25, .18);
  --radius: 10px;
  --panel-w: 410px;
  --font: "Source Sans 3 Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Source Serif 4 Variable", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121A17; --panel: #1B2522; --ink: #F2F0E9; --muted: #B4C0BA; --line: #33423C; --soft: #24302C;
    --accent: #8FC7B0; --accent-ink: #0E1613; --gold: #F0BC5E; --gold-ink: #17211D; --danger: #F39A7E; --new: #F0BC5E;
    --shadow: 0 8px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121A17; --panel: #1B2522; --ink: #F2F0E9; --muted: #B4C0BA; --line: #33423C; --soft: #24302C;
  --accent: #8FC7B0; --accent-ink: #0E1613; --gold: #F0BC5E; --gold-ink: #17211D; --danger: #F39A7E; --new: #F0BC5E;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 17px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
h1 { font-family: var(--font-head); font-size: 1.4rem; margin: 0; letter-spacing: -.01em; }
h2 { font-family: var(--font-head); font-size: 1.1rem; margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Anmeldung ---------- */
.login {
  min-height: 100%; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(160deg, #1F4D3F 0%, #2E6352 55%, #4F7F6A 100%);
}
.login-card {
  max-width: 440px; width: 100%; background: var(--panel); border-radius: 16px;
  padding: 32px 28px; box-shadow: var(--shadow);
}
.login-card h1 { font-size: 1.6rem; }
.login-card p { margin: 8px 0 0; }
.login-icon { color: var(--accent); margin-bottom: 8px; }
#login-msg { margin-top: 20px; }
#login-msg.error { color: var(--danger); }

/* ---------- Layout ---------- */
.app { position: fixed; inset: 0; }
.map { position: absolute; inset: 0; background: #cfd8cf; }
.panel {
  position: absolute; z-index: 1000; background: var(--panel); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.view { overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 24px; flex: 1; }

@media (min-width: 900px) {
  .panel { top: 12px; left: 12px; bottom: 12px; width: var(--panel-w); border-radius: var(--radius); }
  .sheet-handle { display: none; }
  .leaflet-left { left: calc(var(--panel-w) + 12px); }
}
@media (max-width: 899px) {
  .panel {
    left: 0; right: 0; bottom: 0; height: 38vh; border-radius: 18px 18px 0 0;
    transition: height .25s ease; padding-bottom: env(safe-area-inset-bottom);
  }
  .panel.expanded { height: 82vh; }
  .panel.collapsed { height: 118px; }
  .sheet-handle {
    border: 0; background: transparent; padding: 8px 0 2px; width: 100%; flex: none;
  }
  .sheet-handle span { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
  .view { padding-top: 6px; }
  .leaflet-bottom { bottom: 38vh; transition: bottom .25s ease; }
  .app.sheet-expanded .leaflet-bottom { bottom: 82vh; }
  .app.sheet-collapsed .leaflet-bottom { bottom: 118px; }
  .leaflet-control-attribution { font-size: 9px; line-height: 1.25; max-width: 70vw; }
}

/* ---------- Liste ---------- */
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-head p { margin: 2px 0 0; font-size: .9rem; }
.head-main { min-width: 0; }

/* Paket-Schild unter der Zusammenfassung */
.plan-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 11px 3px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink);
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.plan-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.plan-chip.pro { background: color-mix(in srgb, var(--gold) 22%, var(--panel)); border-color: var(--gold); }
.plan-chip.pro::before { background: var(--gold); }
.plan-chip.old { background: transparent; color: var(--danger); border-color: currentColor; }
.plan-chip.old::before { background: var(--danger); }
.plan-chip:hover { border-color: var(--accent); }
.plan-chip:empty { display: none; }

/* Kontoknopf mit Initialen */
.user-btn {
  flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); cursor: pointer;
}
.user-btn:hover, .user-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--soft); }
.user-btn .chev { width: 18px; height: 18px; transition: transform .15s ease; }
.user-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.avatar {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.avatar.lg { width: 42px; height: 42px; font-size: .95rem; flex: none; }
.avatar.sp::after { /* Sprecher: kleiner goldener Punkt */
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--panel);
}

/* Menü (Popover, liegt über Karte und Panel) */
.user-menu {
  position: fixed; inset: auto; margin: 0; width: 260px; max-width: calc(100vw - 16px); padding: 6px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow);
}
.user-menu.inline { position: absolute; right: 18px; top: 60px; z-index: 5; }
.panel-head { position: relative; }
.um-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.um-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.um-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-who span { font-size: .8rem; }
.um-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font: inherit; font-size: .92rem; text-align: left; text-decoration: none; cursor: pointer;
}
.um-item[hidden] { display: none; }
.um-item svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.um-item:hover, .um-item:focus-visible { background: var(--soft); outline: none; }
.um-item.danger, .um-item.danger svg { color: var(--danger); }
.um-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: .8rem; }

.search { position: relative; margin: 14px 0 10px; }
.search svg { position: absolute; left: 11px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; font: inherit; color: var(--ink); background: var(--soft);
  border: 1px solid transparent; border-radius: 10px; padding: 10px 12px 10px 36px; font-size: 16px;
}
.search input:focus { outline: none; border-color: var(--accent); background: var(--panel); }

.filters { display: grid; gap: 8px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 4px 11px; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.colormode { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.seg { display: inline-flex; background: var(--soft); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 3px 10px; border-radius: 6px; font-size: .82rem; }
.seg button.on { background: var(--panel); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }

.note {
  font-size: .82rem; background: #fff4e0; color: #7a4a00; border-radius: 10px; padding: 8px 10px; margin: 0 0 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note { background: #3a2c12; color: #ffd38a; } }
:root[data-theme="dark"] .note { background: #3a2c12; color: #ffd38a; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list button {
  width: 100%; text-align: left; background: none; border: 0; padding: 10px 4px;
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
}
.list button:hover { background: var(--soft); }
.list button.active { background: var(--soft); }
.nr-badge {
  width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem;
  display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.li-title { font-weight: 600; display: block; }
.li-sub { font-size: .82rem; color: var(--muted); display: block; }
.li-meta { text-align: right; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.li-meta .cc { display: inline-flex; align-items: center; gap: 3px; }
.li-meta .new-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--new); display: inline-block; }
.empty { padding: 18px 4px; color: var(--muted); }
.attrib { font-size: .72rem; margin-top: 14px; }

/* ---------- Detail ---------- */
.detail-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.back { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 4px 0; color: var(--accent); font-weight: 600; }
.back svg { width: 20px; height: 20px; }
.prevnext button {
  width: 34px; height: 30px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; font-size: 1.2rem; line-height: 1;
}
.d-head { display: flex; gap: 12px; align-items: center; }
.d-head .nr-badge { width: 42px; height: 42px; font-size: 1.05rem; }
.d-head h2 { font-size: 1.25rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.tag { font-size: .78rem; border-radius: 6px; padding: 2px 8px; background: var(--soft); display: inline-flex; align-items: center; gap: 5px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.hinweis { font-size: .88rem; background: var(--soft); border-left: 3px solid var(--accent); padding: 8px 10px; border-radius: 4px; margin: 0 0 14px; white-space: pre-wrap; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.actions a, .actions button {
  display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 9px 8px; font-size: .88rem; font-weight: 500;
}
.actions .primary-link { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.actions svg { width: 18px; height: 18px; flex: none; }

.section-title { margin: 4px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.comments { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.comment { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.comment.is-new { box-shadow: inset 3px 0 0 var(--new); }
.c-head { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.c-head b { color: var(--ink); font-size: .88rem; }
.c-text { white-space: pre-wrap; word-wrap: break-word; }
.c-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.c-photos button { border: 0; padding: 0; background: none; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.c-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.c-del { border: 0; background: none; color: var(--muted); font-size: .78rem; text-decoration: underline; padding: 0; }
.no-comments { color: var(--muted); font-size: .9rem; }

.comment-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.form-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.photo-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; cursor: pointer; font-size: .9rem;
}
.photo-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-btn svg { width: 18px; height: 18px; }
.primary { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 8px 20px; font-weight: 600; }
.primary:disabled { opacity: .55; cursor: default; }
.photo-preview { display: flex; gap: 6px; flex-wrap: wrap; }
.photo-preview:not(:empty) { margin-top: 8px; }
.photo-preview div { position: relative; }
.photo-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.photo-preview button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--panel); font-size: 14px; line-height: 1;
}
.form-msg { font-size: .85rem; min-height: 1.2em; margin: 6px 0 0; }
.form-msg.error { color: var(--danger); }

/* ---------- Karte ---------- */
.nr-label {
  background: transparent; border: 0;
}
.nr-label span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  color: #fff; font: 700 12px/1 system-ui, sans-serif; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.45); transition: transform .15s;
}
.nr-label.sel span { transform: scale(1.35); }
.zoom-far .nr-label span { width: 14px; height: 14px; font-size: 0; border-width: 2px; }
.zoom-far .nr-label.sel span { transform: scale(1.5); }

.alkis-on-photo { filter: invert(1) brightness(1.4); }

.leaflet-control.map-btn a {
  width: 34px; height: 34px; display: grid; place-items: center; color: #333; background: #fff;
}
.leaflet-control.map-btn a svg { width: 20px; height: 20px; }
.leaflet-control.map-btn a.active { color: #1971c2; }
.leaflet-control.map-btn a.busy svg { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.leaflet-control-layers { font: inherit; font-size: .85rem; }

.me-dot {
  width: 18px; height: 18px; border-radius: 50%; background: #1c7ed6; border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(28,126,214,.35), 0 1px 5px rgba(0,0,0,.4);
}

.leaflet-tooltip.parcel-tip { font: 600 12px system-ui, sans-serif; }

/* ---------- Toast & Lightbox ---------- */
.toast {
  position: absolute; z-index: 1100; left: 50%; top: 14px; transform: translateX(-50%);
  background: var(--ink); color: var(--panel); padding: 9px 16px; border-radius: 999px;
  font-size: .9rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}
@media (min-width: 900px) { .toast { left: calc(50% + var(--panel-w) / 2); } }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92);
  display: flex; flex-direction: column;
}
.lightbox-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 12px; }
.lightbox-bar button, .lightbox-bar a {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: rgba(255,255,255,.16); color: #fff;
  font: inherit; font-size: .95rem; display: inline-flex; align-items: center; text-decoration: none;
}
.lightbox-bar .lightbox-close { width: 44px; padding: 0; justify-content: center; font-size: 28px; }
.lightbox-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 12px 12px; overflow: hidden; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.lightbox.zoomed .lightbox-stage { display: block; overflow: auto; padding: 0; -webkit-overflow-scrolling: touch; }
.lightbox.zoomed .lightbox-stage img { max-width: none; max-height: none; cursor: zoom-out; }

/* =====================================================================
   Ergänzungen fuehrezusammen: Meinungen, Dokumente, Anteile, Sprecher
   ===================================================================== */
.family-name { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 2px; }
.badge-sp { font-size: .7rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.no-geo { font-size: .72rem; color: var(--muted); }

.sub-title { font-size: .95rem; margin: 0 0 8px; }
.block { padding-top: 14px; border-top: 1px solid var(--line); margin: 4px 0 14px; }
.block > h2 { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.block > h2 small { font-weight: 400; font-size: .82rem; color: var(--muted); }

/* Meinungen */
.op-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.op-buttons button {
  border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 4px; font-size: .85rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.op-buttons button.on { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; font-weight: 600; }
.op-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.op-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; }
.op-list .op-note { grid-column: 2; font-size: .82rem; color: var(--muted); white-space: pre-wrap; }
.op-missing { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.op-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--soft); margin: 4px 0 2px; }
.op-bar span { display: block; height: 100%; }
.small-input, .small-select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.small-input:focus, .small-select:focus { outline: none; border-color: var(--accent); }
.row2 { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.row2 > .grow { flex: 1 1 140px; min-width: 0; }
.ghost { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 14px; font-size: .9rem; }
.linkish { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: .82rem; }

/* Dokumente & Anteile */
.docs, .shares { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.docs li, .shares li {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  background: var(--soft); border-radius: 10px; padding: 8px 10px; font-size: .9rem;
}
.docs .d-title { font-weight: 600; word-break: break-word; }
.docs .d-meta, .shares .s-meta { font-size: .78rem; color: var(--muted); }
.docs button.open { border: 0; background: none; padding: 0; text-align: left; color: inherit; }
.empty-line { color: var(--muted); font-size: .88rem; margin: 0 0 8px; }

/* Sprecher-Formular */
.sp-form { background: var(--soft); border-radius: 12px; padding: 4px 12px 12px; margin: 0 0 14px; }
.sp-form label { display: block; font-size: .8rem; color: var(--muted); margin: 10px 0 4px; }
.sp-form .check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: .9rem; }
.sp-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.disclaimer { font-size: .72rem; color: var(--muted); margin-top: 6px; }

/* ---------- FlurLotse: Anmeldung, Familienwahl, Paket ---------- */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand img { width: 44px; height: 44px; }
.brand b { font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); }
.login-card .lead { font-size: 1.05rem; margin: 0 0 16px; }
.login-card label { display: block; font-weight: 600; margin: 14px 0 6px; }
.login-card .field {
  width: 100%; min-height: 52px; font: inherit; font-size: 1.1rem; padding: 10px 14px; color: var(--ink);
  background: var(--panel); border: 1.5px solid #77827B; border-radius: 10px;
}
.login-card .field:focus-visible, .btn-main:focus-visible, .btn-line:focus-visible { outline: 3px solid #1F5F99; outline-offset: 2px; }
.btn-main, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; width: 100%;
  margin-top: 14px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 1.05rem; text-decoration: none;
}
.btn-main { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn-line { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-main:disabled { opacity: .6; cursor: progress; }
.login-card .small { font-size: .95rem; color: var(--muted); margin-top: 14px; }
.login-card .linkish { margin-top: 12px; }
.login-card .msg { margin-top: 14px; min-height: 1.5em; }
.login-card .msg.error { color: var(--danger); }
.fam-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.fam-list button {
  width: 100%; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--soft); display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 64px;
}
.fam-list button:hover { border-color: var(--accent); }
.fam-list .f-name { font-weight: 700; font-size: 1.05rem; }
.fam-list .f-meta { color: var(--muted); font-size: .9rem; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--soft); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.pill.pro { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.pill.old { background: transparent; color: var(--danger); border-color: currentColor; }
.lock {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px 14px; background: var(--soft); margin: 6px 0;
}
.lock p { margin: 0; }
.lock .linkish { margin-top: 6px; }
.plan-box { border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; margin: 12px 0; }
.plan-box h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 1.05rem; }
.prices { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.prices li { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.prices li.current { border-color: var(--accent); }
.prices b { font-size: 1.05rem; }
.prices .price { float: right; font-weight: 700; }
.prices .upgrade-hint { margin: 6px 0 0; font-weight: 600; color: var(--accent); }
.head-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }

/* ---------- Erfassen (erfassen.html) ---------- */
.page { max-width: 1000px; margin: 0 auto; padding: 20px 16px 60px; }
.page .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 16px; }
.page textarea.t { width: 100%; min-height: 180px; font: 16px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px;
  border: 1.5px solid #77827B; border-radius: 10px; background: var(--panel); color: var(--ink); }
.page .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.page .btns .btn-main, .page .btns .btn-line { width: auto; }
.page .scroll { overflow-x: auto; margin-top: 12px; }
.page table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.page th, .page td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page td.num, .page th.num { text-align: right; white-space: nowrap; }
.page .res-detail { color: var(--muted); font-size: .85rem; }
.page input[type="checkbox"] { width: 22px; height: 22px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid currentColor; }
.b-gefunden { color: #1F6B46; } .b-abweichend { color: #8A5A00; } .b-mehrdeutig { color: #6B4397; }
.b-nicht_gefunden, .b-fehler { color: var(--danger); }
@media (prefers-color-scheme: dark) { .b-gefunden { color: #8FC7B0; } .b-abweichend { color: #F0BC5E; } .b-mehrdeutig { color: #C5A6EC; } }
.page a { color: var(--accent); }
.zoom-hint {
  margin-top: 8px; max-width: 170px; text-align: left; font: .8rem/1.3 var(--font); padding: 7px 10px; cursor: pointer;
  background: var(--gold); color: var(--gold-ink); border: 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.zoom-hint b { font-size: .85rem; }
.zoom-hint:focus-visible { outline: 3px solid #1F5F99; outline-offset: 2px; }
.buy-list { display: grid; gap: 8px; margin: 8px 0; }
.buy-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.buy-opt input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.buy-opt:has(input:checked) { border-color: var(--accent); }
.withdraw-link { font-weight: 700; }

/* Fußzeile: Rechtstexte, Copyright, Version */
.legal { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.legal nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal a.withdraw-link { color: var(--ink); }
.legal p { margin: 6px 0 0; }
/* In der Liste sitzt die Fußzeile am unteren Rand des Panels (bei langer Liste nach dem letzten Eintrag) */
#view-list { display: flex; flex-direction: column; }
#view-list > .list-body { flex: 1 0 auto; }
#view-list > .legal { flex: none; }
.legal-login { margin-top: 24px; font-size: .8rem; text-align: center; }
.legal-login nav { justify-content: center; }
.field-w { display: block; width: 100%; min-height: 48px; font: inherit; padding: 10px 12px; margin: 6px 0 14px; color: var(--ink);
  background: var(--panel); border: 1.5px solid #77827B; border-radius: 10px; }
.buy-opt input, .check input { accent-color: var(--accent); }
@media print { .legal { display: none; } }

/* Offline-Hinweis und Löschbereich */
.offline-box { margin: 4px 0 12px; border-color: var(--danger); }
.offline-box p { margin: 0 0 10px; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 12px; }
.ghost.danger { color: var(--danger); border-color: var(--danger); }
