/* Fotobox – Design-Tokens
   Nachthimmel #14171C · Karte #1E232B · Sonne #FFB94A · Gischt #EDF1F4 · Nebel #8A94A3 */
:root {
  --bg: #14171c;
  --card: #1e232b;
  --card-hi: #262c36;
  --sun: #ffb94a;
  --sun-deep: #e69a1f;
  --ink: #edf1f4;
  --mute: #8a94a3;
  --line: #2c333e;
  --radius: 14px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Login & Namens-Seite ---------- */
.gate {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.gate h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.gate h1 .sun { color: var(--sun); }
.gate p.sub { color: var(--mute); margin-bottom: 32px; max-width: 320px; }
.gate form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.gate input {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1.05rem;
  text-align: center;
}
.gate input:focus { outline: 2px solid var(--sun); outline-offset: 1px; border-color: transparent; }
.gate button {
  padding: 15px;
  border-radius: var(--radius);
  background: var(--sun);
  color: #1a1204;
  font-weight: 700;
  font-size: 1.05rem;
}
.gate button:active { background: var(--sun-deep); }
.gate .error {
  margin-top: 16px;
  color: #ff8f6b;
  background: rgba(255, 143, 107, 0.1);
  border: 1px solid rgba(255, 143, 107, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
}

/* ---------- Kopfzeile ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(20, 23, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header h1 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
}
header h1 .sun { color: var(--sun); }
.btn-slideshow {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--sun);
  color: #1a1204;
  font-weight: 700;
  font-size: 0.92rem;
}
.btn-slideshow:active { background: var(--sun-deep); }
.btn-menu { padding: 8px; color: var(--mute); font-size: 1.3rem; line-height: 1; }

/* ---------- Filter-Chips (Signatur: jede Person hat ihre Farbe) ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--mute)); }
.chip .count { font-weight: 400; opacity: 0.7; font-size: 0.82rem; }
.chip.active {
  background: var(--card-hi);
  color: var(--ink);
  border-color: var(--pc, var(--sun));
}

/* ---------- Galerie ---------- */
main { padding: 10px 12px calc(110px + env(safe-area-inset-bottom)); }
.grid { columns: 2; column-gap: 10px; }
@media (min-width: 600px)  { .grid { columns: 3; } }
@media (min-width: 900px)  { .grid { columns: 4; } }
@media (min-width: 1280px) { .grid { columns: 5; } }

.tile {
  position: relative;
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.tile img { width: 100%; display: block; }
.tile .tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10131a;
  background: var(--pc, var(--sun));
  opacity: 0.94;
}
.tile .del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(16, 19, 26, 0.75);
  color: var(--ink);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty {
  text-align: center;
  color: var(--mute);
  padding: 70px 24px;
}
.empty .big { font-size: 2.6rem; margin-bottom: 10px; }

/* ---------- Upload-Button (schwebend) ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--sun);
  color: #1a1204;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(255, 185, 74, 0.35);
}
.fab:active { background: var(--sun-deep); }
.fab.busy { opacity: 0.6; pointer-events: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  background: var(--card-hi);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.toast.show { opacity: 1; }

/* ---------- Diashow / Lightbox ---------- */
.show {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
}
.show.open { display: flex; }
.show img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.show .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.show .caption .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--sun)); }
.show .caption .when { color: var(--mute); font-size: 0.85rem; margin-left: auto; }
.show .close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.15rem;
}
.show .playpause {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
}
.show .zone { position: absolute; top: 0; bottom: 80px; width: 30%; }
.show .zone.prev { left: 0; }
.show .zone.next { right: 0; }
.show .bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--sun);
  width: 0;
}
.show .bar.run { transition: width linear; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ================= Portal-Erweiterung ================= */
header .logo { height: 34px; width: 34px; object-fit: contain; border-radius: 8px; }

.page {
  padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card h2 { font-family: var(--display); font-size: 1.12rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.card .body { white-space: pre-wrap; color: var(--ink); margin: 6px 0 4px; }
.card footer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; font-size: 0.85rem; color: var(--mute);
}
.card footer .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--mute)); }
.card footer form { margin-left: auto; }
.eyebrow {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); margin-bottom: 3px;
}
.meta { color: var(--mute); font-size: 0.85rem; }
.linkbtn { color: var(--mute); font-size: 0.85rem; text-decoration: underline; padding: 4px; }
.linkbtn:active { color: var(--ink); }

/* Teaser & Kasse */
.teaser { display: block; text-decoration: none; color: inherit; border-color: var(--sun); }
.teaser strong { display: block; font-family: var(--display); font-size: 1.1rem; margin: 2px 0; }
.kasse { display: flex; align-items: center; gap: 12px; }
.kasse > div { flex: 1; min-width: 0; }
.kasse strong { display: block; margin: 2px 0; }
.btn-pay {
  flex: 0 0 auto; padding: 12px 16px; border-radius: 999px;
  background: var(--sun); color: #1a1204; font-weight: 800; text-decoration: none;
  font-size: 0.95rem;
}
.btn-pay:active { background: var(--sun-deep); }

/* Formulare */
.card.new summary {
  cursor: pointer; font-weight: 700; color: var(--sun); list-style: none;
}
.card.new summary::-webkit-details-marker { display: none; }
.card.new form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.card.new.open form { margin-top: 0; }
.card.new input, .card.new textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit;
}
.card.new input:focus, .card.new textarea:focus { outline: 2px solid var(--sun); border-color: transparent; }
.card.new .row { display: flex; gap: 10px; }
.card.new .row input { flex: 1; min-width: 0; }
.card.new button[type=submit] {
  padding: 12px; border-radius: 10px; background: var(--sun);
  color: #1a1204; font-weight: 700;
}
.card.new button[type=submit]:active { background: var(--sun-deep); }
.check { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 0.92rem; }
.check input { width: auto !important; }

/* Beiträge */
.post.important { border-color: var(--sun); }
.pin {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: #1a1204;
  background: var(--sun); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}

/* Termine */
.event { display: flex; gap: 14px; }
.datebox {
  flex: 0 0 auto; width: 54px; height: 58px; border-radius: 12px;
  background: var(--card-hi); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.datebox .d { font-family: var(--display); font-size: 1.35rem; font-weight: 800; line-height: 1; }
.datebox .m { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sun); font-weight: 700; }
.evbody { flex: 1; min-width: 0; }
.rsvp { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rsvpbtn {
  padding: 8px 13px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); color: var(--mute); font-size: 0.88rem; font-weight: 600;
}
.rsvpbtn.sel { background: var(--card-hi); border-color: var(--sun); color: var(--ink); }
.who { margin-top: 8px; font-size: 0.85rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.namechip {
  padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 0.78rem;
  color: #10131a; background: var(--pc, var(--sun));
}
.pastwrap summary { cursor: pointer; padding: 6px 2px; }
.pastwrap article { margin-top: 12px; opacity: 0.7; }

/* Dateien */
.file { display: flex; align-items: center; gap: 12px; }
.fileicon { font-size: 1.6rem; }
.filename { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.filename:active { color: var(--sun); }
.filepick { display: block; cursor: pointer; font-weight: 700; color: var(--sun); }
.filepick input { display: none; }

/* Tab-Leiste */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  background: rgba(20, 23, 28, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 7px; text-decoration: none; color: var(--mute);
  font-size: 0.7rem; font-weight: 600;
}
.tabs a span { font-size: 1.25rem; line-height: 1; }
.tabs a.active { color: var(--sun); }

/* Foto-FAB über der Tab-Leiste */
.fab { bottom: calc(74px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(140px + env(safe-area-inset-bottom)); }

/* ================= Kasse ================= */
.kassenstand { text-align: center; border-color: var(--sun); }
.kassenstand .bigsum {
  display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 800;
  letter-spacing: -0.02em; margin: 4px 0 6px;
}
.kassenstand .btn-pay { display: inline-block; margin-top: 14px; }

.mitglied .mghead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mitglied .namechip { font-size: 0.9rem; padding: 4px 13px; }
.saldo { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.saldo.pos { color: #7ed491; }
.saldo.neg { color: #ff8f6b; }
.mgbar {
  height: 7px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); margin: 12px 0 8px; overflow: hidden;
}
.mgbar .fill { height: 100%; background: var(--sun); border-radius: 999px; }
.mitglied.plus .mgbar .fill { background: #7ed491; }
.mgmeta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--mute); }
.mgmeta b { color: var(--ink); font-weight: 700; }
.mitglied form { margin-top: 8px; text-align: right; }

/* ================= Dashboard & Aufgaben & Geburtstage ================= */
.hello strong { display: block; margin: 2px 0 8px; }
.newsrow { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.92rem; }
.bdaybanner { border-color: var(--sun); background: linear-gradient(135deg, rgba(255,185,74,.16), rgba(255,185,74,.05)); }
.bdays .bdayline, .mytasks .taskline {
  display: flex; align-items: center; gap: 9px; padding: 8px 0;
  border-top: 1px solid var(--line); font-size: 0.92rem;
}
.bdays .bdayline:first-of-type, .mytasks .taskline:first-of-type { border-top: none; margin-top: 6px; }
.bdays .meta, .mytasks .meta { margin-left: auto; text-align: right; }
.taskline { text-decoration: none; color: inherit; }
.taskline .tl-title { font-weight: 600; }

.card.new select, .filterbar select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.filterbar { display: flex; gap: 8px; }
.filterbar select { flex: 1; min-width: 0; padding: 10px 8px; font-size: 0.88rem; }

.task .taskhead { display: flex; gap: 10px; align-items: flex-start; }
.task .taskcheck { font-size: 1.25rem; line-height: 1.3; }
.task .tasktitle { flex: 1; min-width: 0; }
.task .namechip { flex: 0 0 auto; }
.prio-tag { color: var(--sun); }
.task.prio { border-color: var(--sun); }
.taskactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.rsvpbtn.done { border-color: #7ed491; }
.assignmenu summary { list-style: none; cursor: pointer; display: inline-block; }
.assignmenu summary::-webkit-details-marker { display: none; }
.assignmenu form { margin-top: 8px; }
.assignmenu select { padding: 10px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink); font: inherit; }

/* Erledigt: Haken, durchgestrichen, abgeschwächt */
.task.st-erledigt { opacity: 0.62; }
.task.st-erledigt h2 { text-decoration: line-through; }
.donenote { margin-top: 10px; font-size: 0.88rem; color: #7ed491; }
.donenote b { color: inherit; }

/* Geburtstags-Karte im Kalender */
.event.bday { border-style: dashed; }
.datebox.bd .m { color: #f2789f; }

.gatelabel { text-align: left; font-size: 0.85rem; color: var(--mute); margin-bottom: -6px; }

/* 6 Tabs: etwas kompakter */
.tabs a { font-size: 0.64rem; }
.tabs a span { font-size: 1.15rem; }

/* ================= Login-Hero (Cliquen-Foto) ================= */
.heroWrap { width: 100%; max-width: 430px; position: relative; margin-bottom: 22px; }
.hero {
  width: 100%; display: block; border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 4px rgba(255,185,74,.12);
}
.heroWrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(20,23,28,.85));
}
.heroTag {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.gate h1 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }

/* ================= Umfragen, Reaktionen, Kommentare, Kalender-Abo ================= */
.umfrage h2 { margin-bottom: 10px; }
.umfrage.closed { opacity: 0.75; }
.pollopt {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; margin-top: 8px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; overflow: hidden;
}
.pollopt.mine { border-color: var(--sun); }
.pollopt input { accent-color: var(--sun); z-index: 1; }
.polltext { flex: 1; z-index: 1; font-weight: 600; }
.pollcount { z-index: 1; color: var(--mute); font-size: 0.85rem; }
.pollbar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255, 185, 74, 0.14); transition: width 0.3s;
}
.pollwho { margin: 6px 0 2px 4px; }
.pollvote {
  margin-top: 12px; padding: 11px 18px; border-radius: 10px;
  background: var(--sun); color: #1a1204; font-weight: 700;
}
.pollvote:active { background: var(--sun-deep); }

.rxrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rx {
  padding: 6px 12px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); font-size: 0.92rem; color: var(--ink);
}
.rx.sel { border-color: var(--sun); background: rgba(255, 185, 74, 0.12); }

.cmlist { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cm { display: flex; align-items: baseline; gap: 8px; font-size: 0.92rem; }
.cm .namechip { flex: 0 0 auto; font-size: 0.75rem; }
.cm .cmbody { flex: 1; min-width: 0; word-break: break-word; }
.cmform { display: flex; gap: 8px; margin-top: 10px; }
.cmform input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.cmform input:focus { outline: 2px solid var(--sun); border-color: transparent; }
.cmform button {
  flex: 0 0 auto; width: 42px; border-radius: 50%;
  background: var(--sun); color: #1a1204; font-weight: 700;
}

.icalrow { display: flex; gap: 8px; margin-top: 10px; }
.icalrow input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--mute);
  font-size: 0.8rem;
}
.icalrow button {
  flex: 0 0 auto; padding: 0 16px; border-radius: 10px;
  background: var(--sun); color: #1a1204; font-weight: 700;
}

/* Lightbox-Social */
.socialbtn {
  padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.14);
  color: #fff; font-size: 0.95rem;
}
.socialpanel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: rgba(16, 19, 26, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 55%; display: flex; flex-direction: column;
}
.socialpanel .cmlist { overflow-y: auto; flex: 1; }

/* ================= Karte ================= */
#map {
  position: fixed;
  top: calc(59px + env(safe-area-inset-top));
  left: 0; right: 0;
  bottom: calc(52px + env(safe-area-inset-bottom));
  background: #0d1013;
}
.leaflet-container { font-family: var(--body); }
.maplabel {
  background: rgba(20,23,28,.88); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 9px; font-size: .72rem; font-weight: 700;
  box-shadow: none;
}
.maplabel::before { display: none; }
.mapctl {
  position: fixed; left: 10px; right: 10px;
  bottom: calc(62px + env(safe-area-inset-bottom));
  z-index: 500;
  background: rgba(20,23,28,.94); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
  max-width: 480px; margin: 0 auto;
}
.mapstatus { font-size: .88rem; font-weight: 600; margin-bottom: 10px; word-break: break-word; }
.maprow { display: flex; gap: 8px; align-items: center; }
.maprow select {
  flex: 0 0 auto; padding: 11px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.mapshare {
  flex: 1; padding: 12px; border-radius: 10px;
  background: var(--sun); color: #1a1204; font-weight: 800;
}
.mapshare:disabled { opacity: .6; }
.mapstop {
  flex: 0 0 auto; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid #ff8f6b; color: #ff8f6b; font-weight: 700;
}
.check.live { flex: 1; font-size: .8rem; }
.mapshint { margin-top: 9px; font-size: .72rem; color: var(--mute); text-align: center; }
.mappop { display: flex; flex-direction: column; gap: 6px; min-width: 170px; font-size: .9rem; }
.mappop .mapnav {
  background: var(--sun); color: #1a1204 !important; font-weight: 800;
  text-align: center; padding: 9px; border-radius: 9px; text-decoration: none;
}
.mappop .mapopen { color: #2c66c9; font-size: .82rem; text-align: center; }
.leaflet-popup-content-wrapper { border-radius: 12px; }

/* ================= Cliquen-Foto auf der Startseite ================= */
.feedhero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.feedhero img {
  width: 100%;
  height: clamp(150px, 38vw, 240px);
  object-fit: cover;
  display: block;
}
.feedhero .fh-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(16,19,26,.88));
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.feedhero .fh-overlay strong {
  font-family: var(--display); font-size: 1.25rem; font-weight: 800;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.feedhero .fh-overlay span { color: var(--sun); font-size: .82rem; font-weight: 700; }
header .logo.round { border-radius: 50%; object-fit: cover; }

/* ================= Rückblick & Countdown ================= */
.rueckblick { border-color: var(--sun); }
.memrow {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 10px;
  scrollbar-width: none; scroll-snap-type: x mandatory;
}
.memrow::-webkit-scrollbar { display: none; }
.memrow a { flex: 0 0 auto; scroll-snap-align: start; }
.memrow img {
  height: 108px; width: auto; border-radius: 10px; display: block;
  border-bottom: 3px solid var(--pc, var(--line));
}
.teaser .countdown {
  display: inline-block; margin-left: 8px; padding: 2px 10px;
  border-radius: 999px; background: var(--sun); color: #1a1204;
  font-size: .75rem; font-weight: 800; vertical-align: middle;
}

/* ================= Admin & Archiv ================= */
.adminmsg { border-color: var(--sun); font-size: .92rem; }
.adminform { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.adminform input[type=text], .adminform input[type=password] {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.adminform input[type=file] { color: var(--mute); font-size: .88rem; }
.adminform button {
  padding: 12px; border-radius: 10px; background: var(--sun);
  color: #1a1204; font-weight: 700;
}
.adminlabel { font-size: .8rem; color: var(--mute); margin-bottom: -6px; }
.adminmember {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line);
}
.adminmember:first-of-type { margin-top: 8px; }
.adminmember form:last-of-type { margin-left: 6px; }
.archhead { font-family: var(--display); font-size: 1rem; color: var(--mute); margin: 8px 2px 0; }
.card.arch { opacity: .82; }
.archlink {
  display: block; text-align: center; padding: 14px; margin-top: 4px;
  color: var(--mute); text-decoration: none; font-size: .9rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.archlink:active { color: var(--ink); }

/* ================= Suche ================= */
.searchbar { display: flex; gap: 8px; }
.searchbar input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit;
}
.searchbar input:focus { outline: 2px solid var(--sun); border-color: transparent; }
.searchbar button {
  flex: 0 0 auto; width: 46px; border-radius: 50%;
  background: var(--sun); font-size: 1rem;
}

/* ================= Countdown, Wetter, Spotify ================= */
.cdcard { border-color: var(--sun); text-align: center; }
.cdcard strong { display: block; font-family: var(--display); font-size: 1.2rem; margin: 4px 0 12px; }
.cdrow { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.cdbox {
  flex: 0 0 64px; padding: 10px 0; border-radius: 12px;
  background: var(--card-hi); border: 1px solid var(--line);
}
.cdnum { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--sun); }
.cdlbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.wetter { display: block; margin-top: 8px; font-size: .88rem; color: var(--ink); }
.wetter:empty { display: none; }

/* ================= Routen-Planung ================= */
.route { margin-top: 12px; }
.routehead { font-size: .9rem; font-weight: 600; margin-bottom: 8px; word-break: break-word; }
.routeinfo { color: var(--mute); font-weight: 400; font-size: .85rem; }
.routemap {
  height: 160px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #0d1013; margin-bottom: 8px;
  position: relative; z-index: 0;
}
.routebtn {
  display: block; text-align: center; padding: 11px; border-radius: 10px;
  background: var(--sun); color: #1a1204; font-weight: 800; text-decoration: none;
  font-size: .92rem;
}
.routebtn:active { background: var(--sun-deep); }

/* ================= Geld-Umschalter, Auslagen, Mehr ================= */
.segmented {
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--card);
}
.segmented a {
  flex: 1; text-align: center; padding: 11px; text-decoration: none;
  color: var(--mute); font-weight: 700; font-size: .92rem;
}
.segmented a.active { background: var(--sun); color: #1a1204; }

.partgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.partchip { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.partchip input { accent-color: var(--sun); }
.partchip input:not(:checked) + .namechip { opacity: .35; }

.settlecard { border-color: #7ed491; }
.settleline { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.settlearrow { font-weight: 800; color: #7ed491; font-size: .92rem; }

.tilegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tilelink {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.tilelink span { font-size: 1.7rem; }
.tilelink small { color: var(--mute); font-weight: 400; font-size: .78rem; }
.tilelink:active { background: var(--card-hi); }

/* Belege */
.beleglink { display: inline-block; margin-top: 4px; color: var(--sun); font-size: .85rem; font-weight: 600; text-decoration: none; }
.belegfehlt { display: inline-block; margin-top: 4px; opacity: .6; }
.adminform input[type=file], .card.new input[type=file] { color: var(--mute); font-size: .88rem; }

/* Auslagen-Modus */
.moderow { display: flex; gap: 8px; }
.modechip { flex: 1; }
.modechip input { display: none; }
.modechip span {
  display: block; text-align: center; padding: 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--mute);
  font-weight: 700; font-size: .9rem; cursor: pointer;
}
.modechip input:checked + span { border-color: var(--sun); color: var(--ink); background: var(--card-hi); }
.kassecard { border-color: var(--sun); }

/* ================= Bier-Finder ================= */
.card.bier .bierhead { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card.bier h2 { font-family: var(--display); font-size: 1.02rem; }
.bierpreis { text-align: right; white-space: nowrap; }
.bierpreis s { color: var(--mute); font-size: .82rem; margin-right: 6px; }
.bierpreis b { color: var(--sun); font-size: 1.15rem; font-weight: 800; }
.bierstore { font-weight: 700; font-size: .9rem; }

/* Angebots-Finder Kategorien */
.catchip {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card-hi);
  font-size: .9rem; font-weight: 700;
}
.partchip input:checked + .catchip { background: var(--sun); color: #1a1204; border-color: var(--sun); }
.partchip input:not(:checked) + .catchip { opacity: .55; }
.partchip input { display: none; }
.catbadge {
  font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--card-hi); border: 1px solid var(--line);
}

/* Termin-Detail */
.evlink { color: var(--ink); text-decoration: none; }
.evlink:active { color: var(--sun); }
a.cdcard { display: block; text-decoration: none; color: var(--ink); }

/* Termin-Badge auf Beiträgen/Umfragen */
.evbadge {
  display: inline-block; font-size: .74rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 6px;
  background: var(--card-hi); border: 1px solid var(--line);
  color: var(--sun); text-decoration: none;
}

/* Foto-Alben */
.albumbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 0;
  font-size: .92rem; color: var(--mute);
}
.albumbar a { margin-left: auto; color: var(--sun); text-decoration: none; font-weight: 700; font-size: .85rem; }
.uploadbar {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 0 14px; z-index: 40; align-items: center;
}
.uploadbar select {
  flex: 1; min-width: 0; padding: 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit;
  font-size: .85rem;
}
.uploadbar .fab { position: static; flex: 0 0 auto; }
.albumgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.albumgrid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  border-bottom: 3px solid var(--pc, transparent); display: block;
}
