/* ═══════════════════════════════════════════════════
   PfotenMap PWA – Design angelehnt an miezes-pfotentraum.de
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Website-Farben */
  --bg:           #17120f;
  --bg-soft:      #1f1712;
  --bg-card:      #241c17;
  --accent:       #c97a2b;
  --accent-light: #e2a35e;
  --text:         #f0e8df;
  --text-soft:    #9a8778;
  --line:         rgba(255,255,255,0.08);
  --radius:       18px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);

  /* Status-Farben */
  --rot:    #e74c3c;
  --gelb:   #f39c12;
  --gruen:  #27ae60;
  --blau:   #3498db;
  --grau:   #7f8c8d;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }

/* ── APP HEADER ─────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 18, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  /* Oben Platz für Notch und Dynamic Island lassen,
     rechts und links für gerundete Bildschirmecken. */
  padding: env(safe-area-inset-top) calc(16px + env(safe-area-inset-right))
           0 calc(16px + env(safe-area-inset-left));
  min-height: calc(58px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.app-header .logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.app-header .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.app-header .logo-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-light);
}
.app-header .logo-sub {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.app-header .header-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.3rem;
  cursor: pointer;
  /* Mindestens 44 × 44 px – das ist die empfohlene Größe
     für sicher treffbare Schaltflächen. */
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(201, 122, 43, .25);
  transition: background 0.15s, color 0.15s;
}
.app-header .header-btn:active { background: var(--bg-soft); }
.app-header .header-btn:hover { background: var(--bg-soft); color: var(--text); }

/* ── BOTTOM NAVIGATION ──────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(23, 18, 15, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 0 0 env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 8px;
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  gap: 3px;
  transition: color 0.15s;
  text-decoration: none;
}
.bottom-nav a .nav-icon { font-size: 1.35rem; line-height: 1; }
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--accent-light); }
.bottom-nav a.active .nav-icon { filter: drop-shadow(0 0 6px rgba(226,163,94,0.6)); }

/* Notfall-Badge */
.notfall-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 20px);
  background: var(--rot);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
}

/* ── PAGES ──────────────────────────────────────── */
.page {
  padding: 16px 16px 90px;
  min-height: calc(100dvh - 58px);
}

/* ── MAP PAGE ───────────────────────────────────── */
.map-full {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 70px;
}
#map { width: 100%; height: 100%; }

.map-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 50;
  background: var(--accent);
  color: #111;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,122,43,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(201,122,43,0.7); }

/* ── CARDS ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-foto {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}
.card-foto-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.card-body { flex: 1; min-width: 0; }
.card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 0.78rem; color: var(--text-soft); }
.card-arrow { color: var(--text-soft); font-size: 1.1rem; }

/* ── BADGES ─────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-rot    { background: rgba(231,76,60,0.15);  color: var(--rot); }
.badge-gelb   { background: rgba(243,156,18,0.15); color: var(--gelb); }
.badge-gruen  { background: rgba(39,174,96,0.15);  color: var(--gruen); }
.badge-blau   { background: rgba(52,152,219,0.15); color: var(--blau); }
.badge-grau   { background: rgba(127,140,141,0.15);color: var(--grau); }
.badge-orange { background: rgba(201,122,43,0.15); color: var(--accent-light); }

/* ── FORM ELEMENTS ──────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.form-label .required { color: var(--accent-light); }

input[type=text], input[type=email], input[type=tel],
input[type=number], input[type=date], input[type=password],
select, textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  padding: 13px 14px;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,122,43,0.12);
}
textarea { resize: vertical; min-height: 100px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e2a35e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Dringlichkeit Cards */
.dring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dring-option { display: none; }
.dring-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.dring-label .d-icon { font-size: 1.8rem; line-height: 1; }
.dring-label .d-text { font-size: 0.8rem; font-weight: 700; }
.dring-label .d-sub  { font-size: 0.68rem; color: var(--text-soft); }
.dring-option:checked + .dring-label {
  border-color: var(--accent);
  background: rgba(201,122,43,0.10);
}
.dring-option.verletzt:checked + .dring-label { border-color: var(--rot); background: rgba(231,76,60,.10); }
.dring-option.gesund:checked   + .dring-label { border-color: var(--gruen); background: rgba(39,174,96,.10); }

/* Checkbox */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}
.check-row input[type=checkbox] {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.check-row span { font-size: 0.88rem; color: var(--text-soft); line-height: 1.5; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #17120f;
  box-shadow: 0 4px 16px rgba(201,122,43,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(201,122,43,0.5); color: #17120f; }
.btn-danger { background: rgba(231,76,60,0.15); color: var(--rot); border: 1.5px solid rgba(231,76,60,0.3); }
.btn-ghost  { background: var(--bg-soft); color: var(--text); border: 1.5px solid var(--line); }
.btn-full   { width: 100%; }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }

/* ── NOTFALL BANNER ──────────────────────────────── */
.notfall-banner {
  background: rgba(231,76,60,0.12);
  border: 1.5px solid rgba(231,76,60,0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.notfall-banner .nb-icon { font-size: 1.5rem; flex-shrink: 0; }
.notfall-banner .nb-text { flex: 1; font-size: 0.88rem; }
.notfall-banner .nb-text strong { color: var(--rot); display: block; margin-bottom: 2px; }
.notfall-banner .nb-btn { flex-shrink: 0; }

/* ── STATS ROW ───────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.stat-pill .sp-num { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.stat-pill .sp-lbl { font-size: 0.6rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }

/* ── SHEET / POPUP ───────────────────────────────── */
.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
}
.sheet-overlay.open { display: block; }
.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--line);
  padding: 0 0 env(safe-area-inset-bottom);
  max-height: 85dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 12px auto 0;
}
.sheet-content { padding: 16px 20px 24px; }
.sheet-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.sheet-sub { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 16px; }

/* ── FOTO UPLOAD ─────────────────────────────────── */
.foto-drop {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.foto-drop:hover, .foto-drop.dragover { border-color: var(--accent); background: rgba(201,122,43,.06); }
.foto-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-drop .fd-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.foto-drop .fd-text { font-size: 0.88rem; color: var(--text-soft); }
.foto-preview {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  display: none;
}
.foto-preview img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.foto-preview .fp-remove {
  background: rgba(231,76,60,.85);
  color: #fff;
  border: none;
  width: 100%;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* ── MAP PICKER (mini) ───────────────────────────── */
#mapPicker {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
}
.map-pin-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 6px;
  text-align: center;
}

/* ── SUCCESS ─────────────────────────────────────── */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60dvh;
  text-align: center;
  gap: 12px;
  padding: 20px;
}
.success-icon { font-size: 4rem; }
.success-title { font-size: 1.5rem; font-weight: 700; color: var(--accent-light); }
.success-text { font-size: 0.95rem; color: var(--text-soft); max-width: 300px; }
.success-ref { font-size: 0.78rem; color: var(--text-soft); padding: 8px 16px; background: var(--bg-card); border-radius: 999px; border: 1px solid var(--line); }

/* ── SECTION TITLE ───────────────────────────────── */
.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

/* ── ADMIN SPEZIFISCH ────────────────────────────── */
.admin-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { background: var(--bg-soft); padding: 10px 12px; text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-soft); white-space: nowrap; }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: rgba(201,122,43,0.03); }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

/* ── UTILS ───────────────────────────────────────── */
.mt-8  { margin-top:  8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-soft { color: var(--text-soft); }
.text-sm   { font-size: 0.85rem; }
.text-xs   { font-size: 0.75rem; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ── INSTALL BANNER ──────────────────────────────── */
.install-banner {
  display: none;
  position: fixed;
  bottom: 74px;
  left: 16px;
  right: 16px;
  z-index: 90;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  align-items: center;
  gap: 12px;
}
.install-banner.show { display: flex; }
.install-banner .ib-text { flex: 1; font-size: 0.85rem; }
.install-banner .ib-text strong { display: block; color: var(--accent-light); }

/* ── DARK MAP STYLES ─────────────────────────────── */
.gm-style-iw-d { background: var(--bg-card) !important; }
.gm-style-iw { background: var(--bg-card) !important; border-radius: 14px !important; }

/* ═══════════════════════════════════════
   DSGVO CONSENT PLACEHOLDER (PWA)
   ═══════════════════════════════════════ */
.consent-placeholder {
  background: linear-gradient(135deg, rgba(201,122,43,0.06), rgba(0,0,0,0.25));
  border: 2px dashed rgba(226,163,94,0.28);
  border-radius: 16px;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 240px;
  text-align: center;
}
.consent-inner { max-width: 420px; }
.consent-icon { font-size: 2.6rem; margin-bottom: 10px; opacity: .85; }
.consent-title { font-size: 1.1rem; color: var(--accent-light); margin: 0 0 8px; font-weight: 700; }
.consent-text { font-size: .88rem; color: var(--text); line-height: 1.55; margin: 0 0 10px; }
.consent-legal { font-size: .72rem; color: var(--text-soft); line-height: 1.45; margin: 0 0 16px; }
.consent-legal a { color: var(--accent-light); text-decoration: underline; }
.consent-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.consent-btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s;
}
.consent-btn:active { transform: scale(.97); }
.consent-btn-accept {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #17120f; box-shadow: 0 4px 16px rgba(201,122,43,.3);
}
.consent-btn-fb { background: #1877f2; color: #fff; }
.consent-btn-ghost {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--text-soft); font-size: .82rem; padding: 10px 18px;
}
.consent-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--text-soft); cursor: pointer;
}
.consent-remember input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ═══════════════════════════════════════
   FOTO-AUSWAHL: Kamera oder Galerie
   ═══════════════════════════════════════ */
.foto-wahl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.foto-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 12px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s, background .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.foto-btn:hover,
.foto-btn:focus-visible {
  border-color: var(--accent);
  background: rgba(201,122,43,.08);
  outline: none;
}
.foto-btn:active { transform: scale(.97); }
.foto-btn .fb-icon { font-size: 1.9rem; line-height: 1; }
.foto-btn .fb-text {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}
.foto-btn .fb-sub {
  font-size: .72rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.3;
}
.foto-hinweis {
  margin-top: 8px;
  font-size: .76rem;
  color: var(--text-soft);
  text-align: center;
}
@media (max-width: 400px) {
  .foto-wahl { grid-template-columns: 1fr; }
  .foto-btn { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 16px 18px; }
  .foto-btn .fb-text, .foto-btn .fb-sub { text-align: left; }
  .foto-btn .fb-icon { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════
   KARTEN-FILTER
   ═══════════════════════════════════════ */
.karten-filter {
  position: fixed;
  top: 68px;
  left: 12px;
  right: 12px;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.karten-filter::-webkit-scrollbar { display: none; }
.kf-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(23,18,15,.92);
  backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color .16s, border-color .16s, opacity .16s;
  opacity: .45;
  -webkit-tap-highlight-color: transparent;
}
.kf-btn.is-on { opacity: 1; color: var(--text); border-color: rgba(255,255,255,.22); }
.kf-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.map-full { top: 112px; }

/* ═══════════════════════════════════════
   FAB MIT ZWEI OPTIONEN
   ═══════════════════════════════════════ */
.map-fab {
  border: none;
  font-family: inherit;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .2s;
}
.map-fab.is-offen { transform: rotate(45deg); }

.fab-gruppe {
  position: fixed;
  bottom: 148px;
  right: 16px;
  z-index: 51;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.fab-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px) scale(.94);
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.fab-gruppe.is-offen { pointer-events: auto; }
.fab-gruppe.is-offen .fab-option { opacity: 1; transform: none; }
.fab-gruppe.is-offen .fab-option:nth-child(2) { transition-delay: .05s; }
.fab-streuner { background: var(--accent); color: #17120f; }
.fab-vermisst { background: #e63946; color: #fff; }
.fo-icon { font-size: 1.15rem; line-height: 1; }

/* ═══════════════════════════════════════
   VERMISSTEN-KARTEN IN LISTEN
   ═══════════════════════════════════════ */
.v-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid #e63946;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: border-color .18s, transform .12s;
}
.v-card:active { transform: scale(.99); }
.v-card--zuhause { border-left-color: #27ae60; }
.v-card--gesichtet { border-left-color: #f39c12; }
.v-foto {
  width: 74px; height: 74px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}
.v-foto-leer {
  width: 74px; height: 74px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}
.v-body { flex: 1; min-width: 0; }
.v-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.v-meta { font-size: .78rem; color: var(--text-soft); line-height: 1.5; }
.v-tage {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #e63946;
  background: rgba(230,57,70,.13);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 5px;
}

/* Steckbrief-Tabelle */
.steckbrief-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.steckbrief-row:last-child { border-bottom: none; }
.steckbrief-row .sb-label { color: var(--text-soft); flex-shrink: 0; }
.steckbrief-row .sb-wert  { color: var(--text); font-weight: 600; text-align: right; }

@media (max-width: 560px) {
  .karten-filter { top: 64px; }
  .map-full { top: 106px; }
  .fab-gruppe { bottom: 142px; }
}

/* ── Filter-Zähler ── */
.kf-zahl {
  background: rgba(255,255,255,.14);
  color: inherit;
  font-size: .68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 2px;
}
.kf-btn.is-on .kf-zahl { background: rgba(255,255,255,.22); }

/* ── Hinweis bei leerer Karte ── */
.karte-leer {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 30;
  pointer-events: none;
  width: min(90vw, 340px);
}
.kl-inner {
  background: rgba(23,18,15,.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  pointer-events: auto;
}
.kl-icon { font-size: 2.6rem; margin-bottom: 10px; opacity: .8; }
.kl-inner strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.kl-inner p { font-size: .86rem; color: var(--text-soft); margin: 0; line-height: 1.5; }

/* ── Hinweis: Orte ohne Standort ── */
.geo-hinweis {
  position: fixed;
  top: 106px;
  left: 12px;
  right: 12px;
  z-index: 45;
  background: rgba(243,156,18,.94);
  backdrop-filter: blur(10px);
  color: #17120f;
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  text-align: center;
}
.geo-hinweis a {
  color: #17120f;
  text-decoration: underline;
  margin-left: 4px;
}
.geo-hinweis ~ .map-full { top: 150px; }
@media (max-width: 560px) {
  .geo-hinweis { top: 100px; font-size: .76rem; }
  .geo-hinweis ~ .map-full { top: 142px; }
}

/* ── Adresssuche über der Karte ── */
.adress-suche {
  display: flex;
  gap: 9px;
  margin-bottom: 9px;
}
.adress-suche input {
  flex: 1;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  -webkit-appearance: none;
}
.adress-suche input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,122,43,.12);
}
.such-btn {
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #17120f;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.such-btn:active { transform: scale(.97); }
.such-btn:hover { background: var(--accent-light); }
.such-status {
  font-size: .82rem;
  color: var(--text-soft);
  margin: 0 0 9px;
  min-height: 1.2em;
  line-height: 1.4;
}
.such-status.fehler { color: #e74c3c; }
.such-status.treffer { color: var(--text); }

@media (max-width: 440px) {
  .adress-suche { flex-direction: column; }
  .such-btn { width: 100%; }
}
