/* Weinclub – mobile-first, hell/dunkel nach Systemeinstellung */

:root {
  --bg: #f7f1e8;
  --bg-schimmer: rgba(123, 30, 58, .10);
  --bg-schimmer2: rgba(201, 162, 74, .08);
  --flaeche: #ffffff;
  --text: #1f1a1c;
  --gedaempft: #6b6164;
  --rand: #e7ddd2;
  --akzent: #7b1e3a;
  --akzent-hover: #631630;
  --akzent-text: #ffffff;
  --akzent-weich: #f5e6ea;
  --akzent-schrift: #7b1e3a;
  --stern: #c99a10;
  --stern-leer: #ddd3d5;
  --gefahr: #b3261e;
  --ok: #2e7d32;
  --schatten: 0 1px 3px rgba(40, 20, 25, .08), 0 1px 2px rgba(40, 20, 25, .05);
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0b0c;
    --bg-schimmer: rgba(123, 30, 58, .28);
    --bg-schimmer2: rgba(201, 162, 74, .10);
    --flaeche: #1f191b;
    --text: #f3eef0;
    --gedaempft: #ab9fa3;
    --rand: #3b3035;
    --akzent: #7b1e3a;
    --akzent-hover: #8f2747;
    --akzent-text: #ffffff;
    --akzent-weich: #3a2029;
    --akzent-schrift: #d0587c;
    --stern: #e8b93a;
    --stern-leer: #4a3e43;
    --gefahr: #f2867d;
    --ok: #7cc47f;
    --schatten: none;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 45% at 15% -5%, var(--bg-schimmer), transparent 70%),
    radial-gradient(ellipse 80% 40% at 95% 0%, var(--bg-schimmer2), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: var(--akzent-schrift); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; margin-top: 1.4em; }
[hidden] { display: none !important; }

/* ---------- Kopfzeile & Menü ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--akzent); color: var(--akzent-text);
  padding-top: env(safe-area-inset-top);
}
.kopf-innen {
  max-width: 1100px; margin: 0 auto; padding: 6px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  min-height: 56px;
}
.kopf-titel {
  display: flex; align-items: center; gap: 6px;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; min-height: 44px;
}
.kopf-titel img { width: 36px; height: 36px; border-radius: 8px; }
.kopf .knopf-klein { background: rgba(255,255,255,.15); color: inherit; border-color: transparent; }

.menue-knopf {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px;
  font: inherit; font-weight: 600; color: inherit; background: rgba(255,255,255,.15);
  border: 0; border-radius: 10px; cursor: pointer;
}
.menue-knopf svg { width: 22px; height: 22px; }
.kopf-aktionen { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.install-knopf {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 10px;
  font: inherit; font-weight: 600; color: inherit; background: rgba(255,255,255,.15);
  border: 0; border-radius: 10px; cursor: pointer;
}
.install-knopf svg { width: 20px; height: 20px; }
.install-gross { margin-top: 18px; }
.login-link { display: inline-block; margin-left: 16px; }
.hilfe-knopf { justify-content: center; min-width: 44px; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.hilfe-knopf[aria-current="page"] { background: rgba(255,255,255,.3); }

/* Info-Dialoge (Installation, Einführung) */
.info-dialog {
  border: 0; border-radius: var(--radius); padding: 22px; width: min(92vw, 440px); max-height: 90vh; overflow: auto;
  background: var(--flaeche); color: var(--text); box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.info-dialog::backdrop { background: rgba(0,0,0,.55); }
.tour-dialog { text-align: center; }
.tour-icon { font-size: 3rem; line-height: 1; margin: 4px 0 10px; }
.tour-logo { border-radius: 16px; }
.tour-text { text-align: left; }
.tour-text p { margin: 0 0 .7em; }
.tour-punkte { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.tour-punkte span { width: 8px; height: 8px; border-radius: 50%; background: var(--rand); }
.tour-punkte span.aktiv { background: var(--akzent); width: 22px; border-radius: 4px; }
.tour-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tour-aktion { display: grid; gap: 8px; padding: 12px; margin: 0 0 10px; border-radius: 12px; background: var(--akzent-weich); }

/* Hinweis: neue App-Version */
.update-hinweis {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px;
  background: #1f1a1c; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); width: max-content; max-width: calc(100vw - 24px);
}
.update-hinweis .knopf-klein { background: var(--akzent); color: #fff; border-color: transparent; }

/* News */
.news { overflow: hidden; }
.news-kurz { display: flex; gap: 12px; align-items: flex-start; }
.news-bild-klein { flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; }
.news-bild-klein img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-inhalt { flex: 1; min-width: 0; }
.news h3 { margin: 0 0 2px; }
.news h3 a { color: inherit; text-decoration: none; }
.news .hinweis { margin: 0 0 6px; font-size: .85rem; }
.news-anriss { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-bild { width: calc(100% + 28px); margin: -14px -14px 12px; max-height: 420px; object-fit: cover; display: block; }

/* Import */
.tabelle-rahmen { overflow-x: auto; margin: 10px 0; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.import-tabelle { border-collapse: collapse; width: 100%; font-size: .85rem; }
.import-tabelle th, .import-tabelle td { padding: 6px 8px; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; white-space: nowrap; }
.import-tabelle td:nth-child(2), .import-tabelle td:nth-child(3) { white-space: normal; min-width: 120px; }
.import-tabelle th { background: var(--akzent-weich); position: sticky; top: 0; }
.import-tabelle tr.imp-vorhanden td, .import-tabelle tr.imp-doppelt td, .import-tabelle tr.imp-fehlt td { color: var(--gedaempft); }
.import-tabelle tr.imp-neu td:nth-child(2) { color: var(--ok); font-weight: 600; }
.imp-warn { color: var(--gefahr); font-weight: 400; font-size: .8rem; }

/* Hilfe-Seite */
.hilfe-liste { display: grid; gap: 10px; margin-top: 16px; }
.hilfe-thema { padding: 0; }
.hilfe-thema summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.hilfe-thema summary::-webkit-details-marker { display: none; }
.hilfe-thema summary::after { content: "›"; margin-left: auto; font-size: 1.4rem; color: var(--gedaempft); transition: transform .2s; }
.hilfe-thema[open] summary::after { transform: rotate(90deg); }
.hilfe-icon { font-size: 1.4rem; min-width: 32px; flex: none; text-align: center; white-space: nowrap; }
.hilfe-inhalt { padding: 0 16px 14px; }
.hilfe-inhalt h4 { margin: 1em 0 .3em; color: var(--akzent-schrift); }
.hilfe-inhalt li { margin: .35em 0; }
.install-kopf { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.install-kopf img { border-radius: 12px; flex: none; }
.install-schritte { padding-left: 1.3em; margin: 0 0 16px; }
.install-schritte li { margin: 10px 0; }
.install-symbol { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; vertical-align: middle;
  border-radius: 8px; background: var(--akzent-weich); color: var(--akzent-schrift); }
.install-symbol svg { width: 20px; height: 20px; }

/* Handy: Menü klappt als Liste unter der Kopfzeile auf */
.menue { display: none; width: 100%; padding: 4px 0 10px; }
.menue.offen { display: block; }
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue li a {
  display: flex; align-items: center; min-height: 50px; padding: 0 12px; border-radius: 10px;
  color: inherit; text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.menue li a[aria-current="page"] { background: rgba(255,255,255,.2); }
.menue-konto {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.25); margin-top: 6px; padding: 10px 12px 0;
}
.menue-name { color: inherit; font-weight: 600; text-decoration: none; min-height: 44px; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* PC/Tablet: Menü als Leiste */
@media (min-width: 900px) {
  .kopf-aktionen { order: 3; margin-left: 0; }
  .kopf-innen { flex-wrap: nowrap; }
  .menue-knopf { display: none; }
  .menue, .menue.offen { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: auto; flex: 1; padding: 0; }
  .menue ul { display: flex; gap: 2px; }
  .menue li a { min-height: 40px; font-size: .95rem; padding: 0 10px; }
  .menue-konto { border: 0; margin: 0; padding: 0; }
  .menue-name { font-size: .9rem; opacity: .95; max-width: 180px; }
}

.inhalt { max-width: 720px; margin: 0 auto; padding: 16px; min-height: 60vh; }
.inhalt.breit { max-width: 1100px; }
.fuss { text-align: center; color: var(--gedaempft); font-size: .85rem; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rand); margin-top: 32px; }

/* ---------- Home ---------- */
.gruss { margin-bottom: 4px; }
.mitteilung { border-left: 4px solid var(--akzent); }
.mitteilung + .mitteilung { margin-top: 10px; }
.mitteilung > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.mitteilung > summary::-webkit-details-marker { display: none; }
.mit-kopf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mit-titel { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.mitteilung .mit-kopf .hinweis { font-size: .85rem; margin: 0; }
.mit-pfeil { flex: none; font-size: 1.5rem; line-height: 1; color: var(--akzent-schrift); transition: transform .2s; }
.mitteilung[open] > summary .mit-pfeil { transform: rotate(90deg); }
.mitteilung[open] > summary { margin-bottom: 8px; }
.chip.neu-chip { background: var(--akzent); color: var(--akzent-text); vertical-align: middle; }
.event-datum { font-weight: 700; color: var(--akzent-schrift); margin: 0 0 4px; }
.event-titel { margin: 0 0 6px; font-size: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chips a { text-decoration: none; }
.zusage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.zusage button {
  min-height: 52px; font: inherit; font-weight: 600; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--rand); background: var(--bg); color: var(--text); padding: 4px;
}
.zusage button[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }

/* ---------- Mitglieder ---------- */
.mitglied { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rand); }
.mitglied:first-child { border-top: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--akzent-weich); color: var(--akzent-schrift); font-weight: 700; }
.laden { color: var(--gedaempft); text-align: center; padding: 40px 0; }

/* ---------- Formulare & Knöpfe ---------- */
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--flaeche); border: 1.5px solid var(--rand); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--akzent) 45%, transparent); outline-offset: 1px;
}

.knopf, .knopf-zweit, .knopf-klein, .knopf-gefahr {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: 12px; border: 1.5px solid transparent; min-height: 52px; padding: 12px 18px;
}
.knopf { background: var(--akzent); color: var(--akzent-text); width: 100%; }
.knopf:hover { background: var(--akzent-hover); }
.knopf:disabled { opacity: .6; cursor: wait; }
.knopf-zweit { background: transparent; color: var(--akzent-schrift); border-color: var(--akzent); width: 100%; }
.knopf-gefahr { background: transparent; color: var(--gefahr); border-color: var(--gefahr); width: 100%; }
.knopf-klein { min-height: 40px; padding: 6px 12px; font-size: .9rem; background: var(--flaeche); color: var(--text); border-color: var(--rand); }
.knopf-link { background: none; border: 0; color: var(--akzent-schrift); font: inherit; text-decoration: underline; cursor: pointer; padding: 12px 0; min-height: 44px; }
.knopf-reihe { display: grid; gap: 10px; margin-top: 18px; }

.hinweis { color: var(--gedaempft); font-size: .95rem; }
.fehler { color: var(--gefahr); font-weight: 600; margin: 10px 0 0; }

/* ---------- Login ---------- */
.login { max-width: 420px; margin: 6vh auto 0; }
.login-logo { text-align: center; color: var(--akzent-schrift); margin-bottom: 8px; }
.login-logo img { width: 160px; height: 160px; border-radius: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.login h1 { text-align: center; }
.login .hinweis { text-align: center; }
.umschalter { display: grid; grid-template-columns: 1fr 1fr; background: var(--flaeche); border: 1.5px solid var(--rand); border-radius: 12px; padding: 4px; margin: 20px 0 4px; }
.umschalter button { font: inherit; font-weight: 600; border: 0; background: none; color: var(--gedaempft); border-radius: 9px; min-height: 44px; cursor: pointer; }
.umschalter button[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); }
.code-feld { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Sterne ---------- */
.sterne { position: relative; display: inline-block; line-height: 1; font-size: 1.05rem; letter-spacing: 1px; white-space: nowrap; vertical-align: middle; }
.sterne-leer { color: var(--stern-leer); }
.sterne-voll { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--stern); }
.sterne.gross { font-size: 1.6rem; }

/* ---------- Weinliste ---------- */
.suche { position: relative; }
.filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.filter select { min-height: 44px; padding: 8px 10px; font-size: .95rem; }
.anzahl { color: var(--gedaempft); font-size: .9rem; margin: 12px 0 8px; display: flex; justify-content: space-between; align-items: center; }
.liste { display: grid; gap: 10px; }

.karte {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 10px; color: inherit; text-decoration: none;
}
.karte:active { transform: scale(.99); }
.karte-bild { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--akzent-weich); display: grid; place-items: center; color: var(--akzent-schrift); overflow: hidden; }
.karte-bild svg { width: 34px; height: 34px; }
.karte-titel { font-weight: 700; font-size: 1.05rem; margin: 0; }
.karte-meta { color: var(--gedaempft); font-size: .9rem; margin: 2px 0 6px; }
.karte-noten { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .92rem; }
.karte-noten strong { font-variant-numeric: tabular-nums; }

.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--akzent-weich); color: var(--akzent-schrift); }
.chip.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }

.leer { text-align: center; color: var(--gedaempft); padding: 40px 16px; }

/* ---------- Weindetail ---------- */
.zurueck { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; margin-bottom: 6px; }
.detail-bild { width: 100%; max-height: 380px; object-fit: contain; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--rand); }
.detail-bild.platzhalter { height: 160px; display: grid; place-items: center; color: var(--akzent-schrift); background: var(--akzent-weich); }
.detail-bild.platzhalter svg { width: 64px; height: 64px; }
.detail-kopf { margin: 14px 0 4px; }
.detail-kopf .hinweis { margin: 0; }

.fakten { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px; }
.fakten dt { color: var(--gedaempft); }
.fakten dd { margin: 0; font-weight: 600; }

.box { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px; box-shadow: var(--schatten); }

.noten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.noten th { text-align: left; font-size: .8rem; color: var(--gedaempft); font-weight: 600; padding: 0 0 6px; }
.noten th.zahl, .noten td.zahl { text-align: right; }
.noten td { padding: 8px 0; border-top: 1px solid var(--rand); }
.noten tr.gesamt td { border-top: 0; font-size: 1.15rem; font-weight: 700; padding-bottom: 12px; }
.noten td.sterne-zelle { padding-left: 8px; padding-right: 8px; }
.noten .gesamt .sterne { font-size: 1.3rem; }

.bewertung { border-top: 1px solid var(--rand); padding: 12px 0; }
.bewertung:first-child { border-top: 0; padding-top: 0; }
.bewertung-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bewertung-kopf strong { font-size: 1.02rem; }
.kat-werte { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.kat-werte li { background: var(--bg); border: 1px solid var(--rand); border-radius: 8px; padding: 2px 8px; }
.kat-notiz { margin: 6px 0 0; font-size: .92rem; }
.kat-notiz b { color: var(--gedaempft); font-weight: 600; }

.gesperrt { display: flex; gap: 10px; align-items: flex-start; color: var(--gedaempft); }
.gesperrt svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }

.notiz-text :first-child { margin-top: 0; }
.notiz-text :last-child { margin-bottom: 0; }

/* ---------- Bewerten ---------- */
.kategorie { margin-top: 12px; }
.kategorie-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kategorie-kopf h3 { margin: 0; font-size: 1.15rem; }
.kategorie-wert { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.kategorie-wert.leer-wert { color: var(--gedaempft); padding: 0; }
.regler { display: grid; grid-template-columns: 52px 1fr 52px; gap: 10px; align-items: center; margin: 8px 0; }
.regler button { min-height: 52px; font-size: 1.5rem; font-weight: 700; border-radius: 12px; border: 1.5px solid var(--rand); background: var(--bg); color: var(--text); cursor: pointer; }
input[type="range"] { padding: 0; border: 0; background: transparent; min-height: 44px; accent-color: var(--akzent); }
.unberuehrt input[type="range"] { opacity: .45; }
.notiz-feld { margin-top: 6px; }

.zusammenfassung { position: sticky; bottom: 0; z-index: 5; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--flaeche); border-top: 1px solid var(--rand); }
.zusammenfassung-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 32px); z-index: 50;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.toast.fehler-toast { background: var(--gefahr); color: #fff; }

@media (min-width: 560px) {
  .filter { grid-template-columns: repeat(4, 1fr); }
  .knopf-reihe.zwei { grid-template-columns: 1fr 1fr; }
}

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

/* ---------- Phase 4: allgemeine Bausteine ---------- */
.titel-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.titel-zeile h1 { margin-bottom: 0; }
.titel-zeile + * { margin-top: 10px; }
.knopf-zeile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip.warn { background: color-mix(in srgb, #c77700 18%, transparent); color: #9a5c00; }
.chip.grau { background: var(--bg); color: var(--gedaempft); border: 1px solid var(--rand); }
@media (prefers-color-scheme: dark) { .chip.warn { color: #f0b356; } }

.listen-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--rand); color: inherit; text-decoration: none; }
.listen-link:first-child { border-top: 0; }
.karte-ohne-bild { grid-template-columns: 1fr; }
.event-platz + .event-platz { margin-top: 10px; }
.event-titel a { color: inherit; }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.schalter { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 16px 0 4px; cursor: pointer; }
.schalter input { width: 24px; height: 24px; min-height: 0; accent-color: var(--akzent); flex: none; }

.auswahl-liste { max-height: 320px; overflow-y: auto; border: 1.5px solid var(--rand); border-radius: 10px; padding: 4px 10px; margin-top: 6px; background: var(--bg); }
.auswahl { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; padding: 8px 0; min-height: 44px; cursor: pointer; border-top: 1px solid var(--rand); }
.auswahl:first-child { border-top: 0; }
.auswahl input { width: 22px; height: 22px; min-height: 0; flex: none; accent-color: var(--akzent); }
.auswahl.gross { align-items: flex-start; border: 1.5px solid var(--rand); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.auswahl.gross input { margin-top: 3px; }
#e-weinsuche { margin-top: 0; }

.datei-knopf { cursor: pointer; margin: 0; font-weight: 600; }
.foto-feld { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.foto-kachel { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--akzent-weich); }
.foto-kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-kachel.weg img { opacity: .25; filter: grayscale(1); }
.foto-kachel.neu { outline: 2px solid var(--ok); outline-offset: -2px; }
.foto-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1rem; cursor: pointer; }
.foto-plus { display: grid; place-content: center; text-align: center; cursor: pointer; color: var(--akzent-schrift); font-size: 1.8rem; border: 2px dashed var(--rand); background: transparent; }
.foto-plus span { font-size: .8rem; font-weight: 600; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 10px 0; }
.galerie-bild { padding: 0; border: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--akzent-weich); }
.galerie-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-dialog { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.foto-dialog::backdrop { background: rgba(0,0,0,.92); }
.foto-dialog img { width: 100%; height: calc(100% - 64px); object-fit: contain; display: block; }
.foto-leiste { display: flex; align-items: center; justify-content: center; gap: 12px; height: 64px; color: #fff; }
.foto-leiste button { min-width: 48px; min-height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; cursor: pointer; }
.foto-leiste [data-zu] { margin-left: 12px; }
.foto-vorschau { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--akzent-weich); color: var(--akzent-schrift); display: grid; place-items: center; flex: none; }
.foto-vorschau img { width: 100%; height: 100%; object-fit: cover; }
.foto-vorschau svg { width: 40px; height: 40px; }
.avatar-zeile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-zeile .avatar { width: 72px; height: 72px; font-size: 1.4rem; }

.variante { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.variante input { min-height: 44px; padding: 8px 10px; }

details.box > summary { list-style: none; cursor: pointer; }
details.box > summary::-webkit-details-marker { display: none; }
details[open].box > summary { margin-bottom: 8px; }

/* Kacheln (Verwaltung) */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kachel { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten); color: inherit; text-decoration: none; min-height: 110px; }
.kachel-icon { font-size: 1.6rem; }
.kachel .hinweis { font-size: .85rem; }

/* Bestellungen */
.artikel + .artikel { margin-top: 10px; }
.artikel-kopf { display: flex; gap: 12px; align-items: flex-start; }
.artikel-kopf .karte-bild { width: 64px; height: 64px; flex: none; }
.artikel-wahl { display: grid; gap: 8px; margin-top: 12px; }
.menge { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.menge button { min-height: 48px; font-size: 1.4rem; font-weight: 700; border-radius: 12px; border: 1.5px solid var(--rand); background: var(--bg); color: var(--text); cursor: pointer; }
.menge input { text-align: center; font-weight: 700; }
.zahl-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rand); font-variant-numeric: tabular-nums; }
.zahl-zeile:first-child { border-top: 0; padding-top: 0; }
.zahl-zeile.summe { font-size: 1.1rem; font-weight: 700; }
.knopf-klein.bezahlt { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); border-color: var(--ok); }
.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabelle th { text-align: left; font-size: .8rem; color: var(--gedaempft); padding: 0 0 6px; }
.tabelle td { padding: 8px 0; border-top: 1px solid var(--rand); vertical-align: top; }
.tabelle .zahl { text-align: right; padding-left: 10px; white-space: nowrap; }
.tabelle tr.summe td { font-weight: 700; }

@media (min-width: 560px) {
  .artikel-wahl { grid-template-columns: 1fr 180px auto; align-items: center; }
  .artikel-wahl .knopf { width: auto; }
}

/* ---------- Phase 5: Hinweise, Export, Druck ---------- */
.hinweis-box { margin-bottom: 10px; border-left: 4px solid var(--stern); }
.aufgabe-box { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; text-decoration: none; color: inherit; border-left: 4px solid var(--akzent); }
.aufgabe-icon { font-size: 1.8rem; }
.hinweis-box .knopf { margin-top: 10px; }
button.kachel { font: inherit; text-align: left; cursor: pointer; }
.druck-tabelle { font-size: .9rem; }
.druck-tabelle th, .druck-tabelle td { padding-right: 6px; }

/* ---------- Login-Hintergrund (dunkel + Gold) ---------- */
body:has(.login) {
  color-scheme: dark;
  --bg: #0b0909;
  --flaeche: #1c1618;
  --text: #f3eef0;
  --gedaempft: #b5a9a0;
  --rand: #4a3c33;
  --akzent-weich: #3a2029;
  --akzent-schrift: #d9b45a;
  --gefahr: #f2867d;
  --ok: #7cc47f;
  --schatten: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 18%, rgba(201, 162, 74, .16), transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 110%, rgba(123, 30, 58, .35), transparent 70%),
    var(--bg);
  color: var(--text);
}
body:has(.login) .login h1 { color: #d9b45a; letter-spacing: .06em; }
body:has(.login) .login-logo img { box-shadow: 0 0 0 1px rgba(217, 180, 90, .35), 0 8px 30px rgba(0, 0, 0, .6); }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body, body:has(.login) { background: #fff; color: #000; font-size: 10pt; }
  .kopf, .fuss, .nicht-drucken, .toast { display: none !important; }
  .inhalt, .inhalt.breit { max-width: none; padding: 0; }
  .hinweis { color: #444; }
  .druck-tabelle { font-size: 9pt; }
  .druck-tabelle tr { break-inside: avoid; }
  .druck-tabelle td, .druck-tabelle th { border-color: #bbb; }
}

/* ---------- Live-Degustation ---------- */
.degu-banner { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--akzent-text); background: var(--akzent); border: 0; margin: 14px 0; animation: puls 2s ease-in-out infinite; }
.degu-banner-icon { font-size: 2rem; }
@keyframes puls { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--akzent) 30%, transparent); } }
.code-box { text-align: center; border: 2px solid var(--akzent); }
.raum-code { font-size: clamp(3.5rem, 18vw, 6rem); font-weight: 800; letter-spacing: .25em; margin: 4px 0 0; padding-left: .25em; font-variant-numeric: tabular-nums; color: var(--akzent-schrift); line-height: 1.1; }
.code-eingabe .code-feld { font-size: 2.4rem; letter-spacing: .5em; padding-left: calc(14px + .5em); }
.fortschritt-text { margin-bottom: 6px; }
.fortschritt { height: 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--rand); overflow: hidden; }
.fortschritt span { display: block; height: 100%; background: var(--ok); transition: width .4s; }
.tn-liste { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 10px; }
.knopf.gross { min-height: 60px; font-size: 1.15rem; }
.enthuellung { text-align: center; }
.enthuellung .fakten { text-align: left; }
.enthuellung-titel { font-size: 1.6rem; font-weight: 800; color: var(--akzent-schrift); margin: 6px 0 12px; }
.tabelle-rollen { overflow-x: auto; }
.rate-tabelle td, .rate-tabelle th { white-space: nowrap; padding-right: 10px; }
.rate-tabelle td.treffer { color: var(--ok); font-weight: 700; }
.rate-tabelle td.fast { color: #b07800; font-weight: 600; }
.rate-tabelle tr.loesung td { background: var(--akzent-weich); }
.raten .zwei-spalten label { margin-top: 8px; }
.gesperrt span { flex: 1; }

/* Typ-Auswahl als Knöpfe */
.typ-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.typ-knopf { display: inline-flex; position: relative; margin: 0; font-weight: 600; cursor: pointer; }
.typ-knopf input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.typ-knopf span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--rand); background: var(--bg); }
.typ-knopf input:checked + span { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.typ-knopf input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--akzent) 45%, transparent); }
@media (prefers-reduced-motion: reduce) { .degu-banner { animation: none; } }

/* Bewertung: Geschmacksprofil (1 = links, 5 = rechts) */
.profil { display: grid; gap: 10px; }
.profil-titel { margin: 16px 0 8px; font-size: 1rem; }
.skala { display: grid; grid-template-columns: 6.5em 1fr 6.5em 2.6em; align-items: center; gap: 8px; font-size: .9rem; }
.skala.klein { font-size: .8rem; grid-template-columns: 6.4em 1fr 6.4em 2.4em; gap: 6px; }
.skala-links { text-align: right; color: var(--gedaempft); }
.skala-rechts { color: var(--gedaempft); }
.skala-wert { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.skala-spur { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--akzent-weich), var(--rand), var(--akzent-weich)); }
.skala-punkt { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--akzent); border: 2px solid var(--flaeche); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.skala.klein .skala-punkt { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.gesamtnote { text-align: center; padding: 4px 0 8px; border-bottom: 1px solid var(--rand); }
.gesamtnote > div { display: flex; align-items: center; justify-content: center; gap: 10px; }
.gesamtnote-zahl { font-size: 2.2rem; font-weight: 800; color: var(--akzent-schrift); line-height: 1; }
.skala-enden { display: flex; justify-content: space-between; font-size: .8rem; color: var(--gedaempft); margin: 2px 4px -4px; }
.skala-eingabe h3 { font-size: 1rem; }
.gesamtnote-eingabe { border: 2px solid var(--stern); }
.bewertung .profil { margin-top: 8px; }

.kalender-knopf { width: 100%; margin-top: 10px; }

.abo-link { display: flex; gap: 8px; align-items: center; margin: 8px 0 14px; }
.abo-link input { flex: 1; min-width: 0; font-size: .8rem; }
.abo-weg { border-top: 1px solid var(--rand); padding-top: 10px; margin-top: 10px; }
.abo-weg h3 { margin: 0 0 6px; font-size: 1rem; }
.abo-weg .knopf { display: block; text-align: center; text-decoration: none; }

/* Gewinner-Feier (Raten) */
.feier { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.55); animation: feier-ein .3s ease-out; padding: 20px; }
.feier.weg { opacity: 0; transition: opacity .3s; }
.feier-konfetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; }
.feier-karte { position: relative; text-align: center; background: var(--flaeche); color: var(--text); border-radius: 20px; padding: 26px 24px 22px; width: min(88vw, 360px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45); border: 2px solid var(--stern); animation: feier-karte .6s cubic-bezier(.2,1.4,.4,1); }
.feier-karte h2 { margin: 4px 0 8px; font-size: 1.7rem; color: var(--akzent-schrift); }
.feier-pokal { font-size: 4.5rem; line-height: 1; animation: feier-pokal 1.2s ease-in-out infinite alternate; }
.feier-karte .knopf { margin-top: 10px; width: 100%; }
@keyframes feier-ein { from { opacity: 0; } }
@keyframes feier-karte { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
@keyframes feier-pokal { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .feier, .feier-karte, .feier-pokal { animation: none; } }

#f-typ-frei { margin-top: 8px; }

.mitglieder-gruppe { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 8px; }
.mitglieder-gruppe .hinweis { font-size: .9rem; font-weight: 400; }

.anwaerter-box { border: 2px solid var(--stern); margin-top: 14px; }

.abo-sicherheit { margin-top: 22px; padding-top: 12px; border-top: 1px dashed var(--rand); }

.zuletzt.nie { color: #9a5c00; }
@media (prefers-color-scheme: dark) { .zuletzt.nie { color: #f0b356; } }

.mitteilung-bild { display: block; width: 100%; padding: 0; border: 0; background: none; margin: 8px 0; cursor: zoom-in; }
.mitteilung-bild img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; display: block; }

.fuss-version { display: block; font-size: .72rem; opacity: .75; margin-top: 4px; }
.fuss-version a { color: inherit; }
.version-aktuell { border-color: var(--akzent, #7b1e3a); }

/* Grössen-Assistent (Club-Kleider) */
#groessen { margin: 8px 0 12px; padding: 12px; border: 1px solid var(--rand); border-radius: 12px; }
.norm-wahl, .groessen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.groessen-reihe { margin-top: 10px; }
.groessen-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.groessen-kopf .knopf-link { min-height: 32px; padding: 0 4px; font-size: .9rem; }
.wahl-chip { min-height: 40px; min-width: 48px; padding: 6px 12px; border: 1px solid var(--rand); border-radius: 99px; background: var(--flaeche); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.wahl-chip.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }

/* Bestellungen: Artikel gut sichtbar */
.artikel-bild { display: block; width: 100%; padding: 0; margin: -4px 0 12px; border: 0; border-radius: 10px; overflow: hidden; background: var(--akzent-weich); position: relative; cursor: zoom-in; }
.artikel-bild img { display: block; width: 100%; max-height: 340px; object-fit: contain; }
.artikel-lupe { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; border-radius: 99px; width: 32px; height: 32px; display: grid; place-items: center; font-size: 1rem; }
.artikel-titelzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.artikel-titelzeile .karte-titel { font-size: 1.15rem; }
.artikel-preis { font-weight: 700; color: var(--akzent-schrift); white-space: nowrap; }
.artikel-text { margin: 8px 0 0; white-space: pre-line; }
.varianten-info { margin-top: 10px; display: grid; gap: 6px; font-size: .9rem; }
.mini-chip { display: inline-block; margin: 2px 2px 0 0; padding: 2px 8px; border: 1px solid var(--rand); border-radius: 99px; font-weight: 600; }
.mini-chip small { font-weight: 400; color: var(--gedaempft); }
.runden-vorschau { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.runden-vorschau img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--akzent-weich); }

/* Hilfe: Unterseiten und Rollen-Teile */
.hilfe-inhalt .hilfe-seite { margin: 16px 0 4px; font-size: .95rem; color: var(--akzent-schrift); }
.hilfe-rolle { margin-top: 14px; padding: 8px 12px 4px; border-left: 4px solid var(--akzent); background: var(--akzent-weich); border-radius: 0 8px 8px 0; }
.hilfe-rolle-titel { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.hilfe-rolle .hilfe-seite { margin-top: 8px; }

/* Event-Rückblick */
.rb-jahr { margin: 18px 0 8px; color: var(--gedaempft); font-size: 1rem; }
.rb-karte { display: flex; gap: 12px; padding: 10px; text-decoration: none; color: inherit; margin-bottom: 10px; align-items: stretch; }
.rb-bild { width: 96px; height: 96px; flex: none; border-radius: 10px; object-fit: cover; background: var(--akzent-weich); }
.rb-leer { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.rb-inhalt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-datum { font-size: .85rem; }
.rb-text { font-size: .9rem; color: var(--gedaempft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rb-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rb-foto { position: relative; }
.rb-foto .galerie-bild { width: 100%; }
.rb-weg { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: .9rem; }
.rb-hochladen { margin-top: 10px; }
.foto-text { position: absolute; left: 0; right: 0; bottom: 64px; margin: 0; text-align: center; color: #fff; font-size: .9rem; text-shadow: 0 1px 3px #000; }

/* Entwurf / Veröffentlichen */
.entwurf-leiste { border: 2px dashed #c98a00; background: rgba(240, 179, 86, .12); }
.entwurf-leiste .knopf-reihe { margin-bottom: 0; }
article .entwurf-leiste { margin: 10px 0 0; }
.entwurf-leiste { margin-bottom: 12px; }

/* Lesebestätigung (nur Vorstand) */
.gelesen { margin-top: 10px; border-top: 1px solid var(--rand); padding-top: 8px; font-size: .9rem; }
.gelesen summary { cursor: pointer; color: var(--gedaempft); min-height: 32px; display: flex; align-items: center; }
.gelesen ul { list-style: none; padding: 0; margin: 6px 0; }
.gelesen li { padding: 3px 0; }

/* Mitglieder: Umschalter Organigramm / Liste */
.ansicht-wahl { display: inline-flex; border: 1px solid var(--rand); border-radius: 99px; overflow: hidden; background: var(--flaeche); }
.ansicht-wahl button { border: 0; background: none; color: var(--text); font: inherit; font-size: .85rem; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.ansicht-wahl button[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); }

/* Organigramm */
.org { display: flex; flex-direction: column; align-items: stretch; margin-top: 14px; }
.org-ebene { position: relative; }
.org-ebene + .org-ebene { margin-top: 28px; }
.org-ebene + .org-ebene::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--akzent); transform: translateX(-1px); }
.org-ebene.lose::before { background: none; border-left: 2px dashed var(--gedaempft); }
.org-titel { text-align: center; font-size: .95rem; margin: 0 0 8px; color: var(--akzent-schrift); text-transform: uppercase; letter-spacing: .06em; }
.org-titel span { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--akzent-weich); font-size: .8rem; letter-spacing: 0; }
.org-reihe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.org-reihe-spitze > .org-karte { width: min(220px, 100%); }
.org-reihe-vorstand { padding-top: 12px; border-top: 2px solid var(--akzent); }
.org-reihe-vorstand > .org-karte { width: calc(50% - 5px); max-width: 180px; }
.org-reihe-klein > .org-karte { width: calc(33.33% - 7px); max-width: 120px; }
.org-reihe-klein { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 12px 10px; box-shadow: var(--schatten); }
.org-ebene.lose .org-reihe-klein { border-style: dashed; box-shadow: none; background: transparent; }
.org-karte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.org-karte.spitze, .org-karte.vorstand { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 12px 8px; box-shadow: var(--schatten); }
.org-karte.spitze { border: 2px solid var(--stern); padding: 16px 10px; }
.org-karte.spitze .avatar { width: 84px; height: 84px; font-size: 1.6rem; box-shadow: 0 0 0 3px var(--stern); }
.org-karte.vorstand .avatar { width: 60px; height: 60px; font-size: 1.2rem; }
.org-karte.klein .avatar { width: 48px; height: 48px; }
.org-name { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.org-karte.klein .org-name { font-size: .82rem; font-weight: 500; }
.org-karte.spitze .org-name { font-size: 1.1rem; }
.org-amt { font-size: .78rem; font-weight: 600; color: var(--akzent-schrift); background: var(--akzent-weich); border-radius: 99px; padding: 2px 8px; }

/* Popup «Neu in der App» */
.neu-version { margin: 12px 0 4px; font-size: .85rem; font-weight: 600; }
.neu-liste { margin: 0; padding-left: 0; list-style: none; }
.neu-liste li { padding: 6px 0; border-top: 1px solid var(--rand); line-height: 1.4; }
.neu-liste li:first-child { border-top: 0; }

/* Mitgliederbeiträge */
.beitrag-karte { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.beitrag-karte + .beitrag-karte { margin-top: 10px; }
.beitrag-karte .fortschritt { display: block; margin-top: 6px; height: 8px; }
.beitrag-stand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.beitrag-stand > div { display: flex; flex-direction: column; }
.beitrag-stand .hinweis { font-size: .8rem; }
.beitrag-zahl { font-weight: 700; font-size: 1.05rem; }
.beitrag-stand .fortschritt { grid-column: 1 / -1; display: block; }
.beitrag-aktionen { display: grid; gap: 8px; }
.chip-knopf { border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); border-radius: 99px; padding: 6px 12px; min-height: 36px; font: inherit; font-size: .85rem; cursor: pointer; }
.chip-knopf[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.beitrag-zeile { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rand); }
.beitrag-zeile:first-child { border-top: 0; }
.beitrag-zeile .avatar { width: 38px; height: 38px; font-size: .85rem; }
.beitrag-zeile-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.beitrag-zeile-rechts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 6px; flex: none; max-width: 44%; }
.beitrag-zeile-rechts .beitrag-betrag { flex-basis: 100%; text-align: right; }
.beitrag-zeile-rechts select { min-height: 36px; padding: 4px 8px; font-size: .85rem; width: auto; }
.beitrag-zeile-rechts .knopf-klein { min-height: 32px; padding: 2px 10px; }
.beitrag-betrag { font-weight: 600; white-space: nowrap; font-size: .9rem; }
.drei-spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drei-spalten label { font-size: .85rem; }
.plz-ort { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.meine-beitrag + .meine-beitrag { margin-top: 10px; }
.qr-zahlung { margin-top: 12px; }
.qr-bild { display: block; margin: 0 auto; width: 220px; height: 220px; image-rendering: pixelated; background: #fff; padding: 6px; border-radius: 8px; }
.zahlung-daten { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.zahlung-daten dt { color: var(--gedaempft); }
.zahlung-daten dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Präsentationen */
.praes-karte { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.praes-karte + .praes-karte { margin-top: 10px; }
.praes-karte-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; color: inherit; text-decoration: none; }
.praes-karte-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.praes-vorschau { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: #000; flex: none; border: 1px solid var(--rand); }
.praes-vorschau.leer { display: grid; place-items: center; font-size: 1.6rem; background: var(--akzent-weich); }
.praes-start { flex: none; }
.praes-gross { width: 100%; font-size: 1.15rem; min-height: 56px; margin: 8px 0 4px; }
.praes-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.praes-mini { position: relative; padding: 0; border: 1px solid var(--rand); border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.praes-mini img { width: 100%; height: 100%; object-fit: contain; display: block; }
.praes-mini-video { display: grid; place-items: center; height: 100%; color: #fff; font-size: 1.6rem; }
.praes-mini-video small { font-size: .7rem; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.praes-nr { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; padding: 1px 6px; border-radius: 6px; }
.praes-dateien { list-style: none; padding: 0; margin: 4px 0 8px; }
.praes-dateien li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--rand); overflow-wrap: anywhere; }
.praes-dateien li:first-child { border-top: 0; }
.praes-dateien li.entfernt span { text-decoration: line-through; opacity: .5; }
#event-praes:not(:empty) { margin-top: 18px; }

/* Vollbild-Viewer */
body.praes-aktiv { overflow: hidden; }
.praes-viewer { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; outline: none; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.pv-buehne { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pv-buehne img, .pv-buehne video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-abdeckung { position: absolute; inset: 0; z-index: 2; }
.pv-leiste { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,.75)); transition: opacity .3s; }
.pv-leiste button { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 10px; min-width: 44px; min-height: 44px; font-size: 1.3rem; cursor: pointer; }
.pv-leiste button:hover { background: rgba(255,255,255,.3); }
.pv-nr { font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.pv-laden { font-size: .8rem; opacity: .75; }
.praes-viewer.pv-ruhig .pv-leiste { opacity: 0; }
.praes-viewer.pv-ruhig { cursor: none; }
.praes-viewer.pv-ruhig .pv-buehne { cursor: none; }
.pv-raster { position: absolute; inset: 0; z-index: 4; overflow: auto; padding: 16px 16px 80px; background: rgba(0,0,0,.92);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-content: start; }
.pv-raster[hidden] { display: none; }
.pv-raster button { position: relative; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #111; color: #fff; overflow: hidden; cursor: pointer; }
.pv-raster button.aktiv { border-color: var(--stern); }
.pv-raster img { width: 100%; height: 100%; object-fit: contain; }
.pv-raster small { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.7); padding: 0 6px; border-radius: 6px; }
