:root {
  --bg: #050505;
  --card: #141414;
  --card2: #1e1e1e;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #f5a524;
  --accent-ink: #1a1200;
  --ok: #3ecf6e;
  --warn: #ff9f43;
  --danger: #ff5a5a;
  --a: #3ecf6e;
  --c: #f5c542;
  --d: #ff9f43;
  --m: #ff5a5a;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
h2 { font-size: 1rem; margin: 22px 4px 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
h3 { margin: 0 0 8px; }
p { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(5,5,5,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: #fff; object-fit: contain; }

main { max-width: 720px; margin: 0 auto; padding: 16px; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 5;
  display: flex; background: rgba(12,12,12,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; font-size: .75rem; color: var(--muted); }
.tabbar a span { font-size: 1.25rem; }
.tabbar a.on { color: var(--accent); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.cards { display: grid; gap: 10px; margin: 10px 0; }
section.card { margin: 10px 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row + .row { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

label { display: block; font-size: .85rem; color: var(--muted); }
label + label { margin-top: 10px; }
.grid2 label { margin-top: 0; }
input, select {
  width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; color: var(--text);
  background: var(--card2); border: 1px solid var(--line); border-radius: 10px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
.row > input, .row > select { margin-top: 0; }
.shooter .row > select { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
  background: var(--card2); border: 1px solid var(--line); border-radius: 12px;
}
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn:active { transform: scale(.98); }
.file { cursor: pointer; }
.icon { background: none; border: 0; color: var(--muted); font-size: 1.1rem; padding: 8px; cursor: pointer; }
.icon.danger { color: var(--danger); }
.actions { margin-top: 14px; }

.seg { display: inline-flex; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-shrink: 0; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg.wide { display: flex; margin: 12px 0; }
.seg.wide button { flex: 1; }

.ctrl { display: flex; align-items: stretch; }
.ctrl button {
  width: 44px; font-size: 1.3rem; font-weight: 700; color: var(--text); cursor: pointer;
  background: var(--card2); border: 1px solid var(--line);
}
.ctrl button:first-child { border-radius: 10px 0 0 10px; }
.ctrl button:last-child { border-radius: 0 10px 10px 0; }
.ctrl input { width: 56px; margin: 0; border-radius: 0; border-left: 0; border-right: 0; text-align: center; font-weight: 700; font-size: 1.1rem; padding: 10px 4px; }
.ctrl input::-webkit-inner-spin-button, .ctrl input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ctrl input[type=number] { -moz-appearance: textfield; }

.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.stepper { min-width: 0; background: var(--card2); border-radius: 12px; padding: 8px; border-left: 4px solid var(--line); }
.stepper .lbl { display: block; font-weight: 700; font-size: .85rem; margin: 0 0 6px 2px; }
.stepper .ctrl { justify-content: space-between; }
.stepper .ctrl input { flex: 1; width: 0; min-width: 0; background: var(--bg); }
.stepper .ctrl button { background: var(--bg); width: 48px; height: 48px; }
.stepper.a { border-left-color: var(--a); } .stepper.a .lbl { color: var(--a); }
.stepper.c { border-left-color: var(--c); } .stepper.c .lbl { color: var(--c); }
.stepper.d { border-left-color: var(--d); } .stepper.d .lbl { color: var(--d); }
.stepper.m { border-left-color: var(--m); } .stepper.m .lbl { color: var(--m); }

.time input { font-size: 1.5rem; font-weight: 700; text-align: center; padding: 12px; }

.live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: center; }
.live > div { background: var(--card2); border-radius: 10px; padding: 8px 4px; }
.live span { display: block; }
.live b { font-size: 1.25rem; }
.live .ok b { color: var(--ok); }
.live .warn b { color: var(--warn); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
}
.chips button.done { border-color: var(--ok); }
.chips button.done::after { content: " ✓"; color: var(--ok); }
.chips button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.chips button.on.done::after { color: var(--accent-ink); }

.match-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card.match { display: block; }
.bar { height: 4px; background: var(--card2); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.empty { text-align: center; padding: 30px 10px; }
.note { background: rgba(245,165,36,.12); border: 1px solid rgba(245,165,36,.4); color: var(--accent); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 8px 0; }

.res { width: 100%; border-collapse: collapse; font-size: .92rem; }
.res th { text-align: left; color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.res td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.res tr:last-child td { border-bottom: 0; }
.res .num { text-align: right; white-space: nowrap; }
.res tr.win td:first-child { color: var(--accent); font-weight: 700; }
.scroll { overflow-x: auto; margin-top: 10px; }
details.card { margin: 10px 0; }
details summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "▾"; color: var(--muted); }
details[open] summary::after { content: "▴"; }

.hf-result { text-align: center; }
.hf-result .big { font-size: 3.2rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.hf-result .row { justify-content: center; gap: 20px; }

#toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #2b2b2b; color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 10; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 560px) {
  .steppers { grid-template-columns: repeat(3, 1fr); }
}

/* Logos */
.logos { display: flex; align-items: center; justify-content: center; gap: 18px; background: #fff; border-radius: var(--r); padding: 12px 16px; margin-bottom: 4px; }
.logos img { height: 84px; width: auto; max-width: 45%; object-fit: contain; }
.tag { color: var(--warn); }
label.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .95rem; margin-top: 12px; }
label.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.stage .row > input { flex: 1; }
.grid2.top0 { margin-top: 0; }
tr.tap { cursor: pointer; }
tr.tap:active td { background: var(--card2); }
tr.sub td { padding-top: 0; background: var(--card2); }
tr.sub .row { padding: 4px 0; }
.res.year td { vertical-align: middle; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 14px 0; text-align: center; }
.pod { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.pod b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod span { color: var(--muted); font-size: .85rem; }
.pod .medal { font-size: 1.8rem; }
.pod.p1 { order: 2; padding: 18px 6px; border-color: var(--accent); }
.pod.p1 .medal { font-size: 2.4rem; }
.pod.p2 { order: 1; }
.pod.p3 { order: 3; }

/* Druck-Bericht */
#print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #000; padding: 0; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; font: 10pt/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #000; }
  .p-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid #003f7d; padding-bottom: 8px; margin-bottom: 10px; }
  .p-head img { height: 70px; width: auto; }
  .p-head > div { text-align: center; flex: 1; }
  .p-head h1 { font-size: 18pt; margin: 0; color: #003f7d; }
  .p-sub { color: #555; font-size: 9pt; font-weight: normal; }
  #print h2 { color: #003f7d; font-size: 12pt; text-transform: none; letter-spacing: 0; margin: 14px 0 6px; }
  #print h3 { font-size: 10.5pt; margin: 12px 0 4px; }
  .p-table { width: 100%; border-collapse: collapse; page-break-inside: auto; }
  .p-table tr { page-break-inside: avoid; }
  .p-table th { background: #003f7d; color: #fff; text-align: left; padding: 4px 5px; font-size: 8.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .p-table th .p-sub { color: #dde; font-size: 7pt; }
  .p-table td { padding: 3px 5px; border-bottom: 1px solid #ccc; }
  .p-table tr:nth-child(even) td { background: #f2f5f9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .p-table .num { text-align: right; }
  .p-top td { font-weight: 600; }
  .p-matrix { font-size: 8.5pt; }
  .p-foot { margin-top: 16px; padding-top: 6px; border-top: 1px solid #ccc; color: #666; font-size: 8pt; text-align: center; }
}

.chips button.add { border-style: dashed; color: var(--accent); background: none; }
.add-stage { display: grid; gap: 10px; border-color: var(--accent); }
.add-stage input { margin-top: 4px; }
.add-stage .grid2 { margin-top: 0; }

/* Cloud / Login */
.topbar h1 { flex: 1; }
.pill { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(62,207,110,.5); }
.pill.ok::before { content: "● "; }
.pill.busy { color: var(--accent); border-color: rgba(245,165,36,.5); }
.pill.off { color: var(--muted); }
.pill.err { color: var(--danger); border-color: rgba(255,90,90,.5); }
.auth h3 { margin-bottom: 4px; }
.auth form { margin-top: 12px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 14px; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-size: .9rem; cursor: pointer; padding: 6px; }
input.inline { width: auto; max-width: 180px; margin: 0; padding: 6px 10px; text-align: right; }
.member { padding: 8px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member select { width: auto; margin: 0; padding: 6px 8px; }
#admin label .row { margin-top: 4px; }
#admin label .row input { margin: 0; flex: 1; }
h3.mt { margin-top: 16px; }

/* Ergebnisse nachtragen */
#mode { margin: 0 0 12px; }
#mode button { font-size: .85rem; padding: 9px 6px; }
.res-entry .row > select { flex: 1; }
.pct { display: flex; align-items: center; gap: 6px; width: 120px; flex-shrink: 0; }
.pct input { margin: 0; text-align: right; font-weight: 700; }
.paste { margin-top: 14px; }
.paste textarea { width: 100%; margin-top: 8px; padding: 10px; font: .9rem ui-monospace, monospace; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 10px; }
.paste code { color: var(--text); }

/* =================== Vereinsseite =================== */
.tabbar a { font-size: .68rem; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.icon-btn:hover { background: var(--card2); color: var(--text); }
.linkish { background: none; border: 0; color: var(--accent); font: inherit; font-size: .85rem; cursor: pointer; }

/* Hero */
.club-hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 190px; display: flex; align-items: flex-end; background: radial-gradient(circle at 70% 30%, rgba(245,165,36,.18), transparent 60%), #111; border: 1px solid var(--line); }
.club-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.club-hero.has-photo { min-height: 240px; }
.club-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85)); }
.club-hero .hero-owl { position: absolute; right: 14px; top: 14px; width: 104px; opacity: .9; background: #fff; border-radius: 50%; padding: 10px; }
.hero-txt { position: relative; z-index: 1; padding: 18px; }
.hero-txt h1 { margin: 0; font-size: 1.9rem; letter-spacing: .02em; }
.hero-txt p { margin: 2px 0 0; color: #d6d6d6; }
.photo-btn { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; padding: 7px 12px; border-radius: 999px; font-size: .8rem; cursor: pointer; margin: 0; }

/* Blöcke */
.blk { margin-top: 22px; }
.blk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 2px 8px; }
.blk-h h2, .blk-h h3 { margin: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.blk-h a { color: var(--accent); font-size: .85rem; }
.ev-list { display: grid; gap: 10px; }

/* Termin-Karte */
.ev-card { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--kc, var(--accent)); }
.ev-card.big { padding: 18px; }
.ev-card.k-tr { --kc: #f5a524; } .ev-card.k-ma { --kc: #5cc8ff; } .ev-card.k-ev { --kc: #b28cff; }
.ev-card.is-cancelled { opacity: .6; }
.ev-card.is-cancelled h3 { text-decoration: line-through; }
.ev-date { width: 50px; flex-shrink: 0; text-align: center; border-radius: 12px; padding: 6px 0; background: color-mix(in srgb, var(--kc) 15%, transparent); color: var(--kc); align-self: flex-start; }
.ev-date b { display: block; font-size: 1.45rem; line-height: 1; }
.ev-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.ev-body { flex: 1; min-width: 0; }
.ev-top { display: flex; justify-content: space-between; align-items: center; }
.kind { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--kc); font-weight: 700; }
.ev-body h3 { margin: 2px 0 2px; font-size: 1.08rem; }
.ev-card.big h3 { font-size: 1.3rem; }
.meta { color: var(--muted); font-size: .86rem; }
.ev-text { white-space: pre-wrap; margin: 8px 0 0; color: #cfcfcf; font-size: .92rem; }
.cancel { margin-top: 10px; color: var(--danger); font-weight: 700; font-size: .85rem; }
.more-btn { background: none; border: 0; color: var(--accent); padding: 6px 0 0; font: inherit; font-size: .82rem; cursor: pointer; }

/* Zu-/Absage */
.rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.rs { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: .15s; }
.rs span { font-weight: 800; }
.rs-yes.on { background: var(--ok); border-color: var(--ok); color: #06240f; }
.rs-maybe.on { background: var(--c); border-color: var(--c); color: #2a2100; }
.rs-no.on { background: var(--danger); border-color: var(--danger); color: #2a0000; }
.rs:active { transform: scale(.97); }
.who-list { margin-top: 10px; }
.cnt { font-size: .82rem; color: var(--muted); }
.c-yes { color: var(--ok); } .c-maybe { color: var(--c); } .c-no { color: var(--danger); }
.names { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.nm { font-size: .76rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.nm.yes { border-color: rgba(62,207,110,.45); color: var(--ok); }
.nm.maybe { border-color: rgba(245,197,66,.4); color: var(--c); }
.nm.no { color: var(--muted); text-decoration: line-through; }

/* Kalender */
.cal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h h2 { margin: 0; font-size: 1.05rem; text-transform: capitalize; }
.cal-h .icon-btn { font-size: 1.5rem; padding: 2px 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .wd { text-align: center; font-size: .7rem; color: var(--muted); padding: 4px 0; }
.cd { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 10px; border: 1px solid transparent; background: var(--card2); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; padding: 0; }
.cd.empty { background: none; cursor: default; }
.cd.past { opacity: .45; }
.cd.today { border-color: var(--accent); }
.cd.sel { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cd.mine span { text-decoration: underline; text-decoration-color: var(--ok); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cd i { display: flex; gap: 2px; height: 6px; }
.cd em, .legend em { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.k-tr { --kc: #f5a524; } .k-ma { --kc: #5cc8ff; } .k-ev { --kc: #b28cff; }
.cd em.k-tr, .legend em.k-tr { background: #f5a524; } .cd em.k-ma, .legend em.k-ma { background: #5cc8ff; } .cd em.k-ev, .legend em.k-ev { background: #b28cff; }
.cd em.x { background: var(--muted); }
.cd.sel em { outline: 1px solid var(--accent-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: .74rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend .mine-dot { width: 12px; height: 2px; border-radius: 1px; background: var(--ok); }
.past-ev { margin-top: 18px; }
.past-ev summary { color: var(--muted); cursor: pointer; margin-bottom: 10px; }
.admin-box { margin-top: 22px; }
.admin-box summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; }
.admin-box select { width: 100%; }

/* Startseite: Infos, Ergebnisse, Blog-Vorschau */
.info-list, .res-list, .post-mini { display: grid; gap: 8px; }
.info { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.info span { color: var(--muted); font-size: .86rem; }
.res-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.res-item .rd { color: var(--accent); font-weight: 700; font-size: .85rem; width: 44px; }
.res-item .rn { flex: 1; display: flex; flex-direction: column; }
.res-item small { color: var(--muted); }
.arrow { color: var(--muted); }
.pm { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.pm img, .pm-ph { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pm-ph { display: grid; place-items: center; background: var(--card2); color: var(--accent); font-size: 1.3rem; }
.pm span { display: flex; flex-direction: column; min-width: 0; }
.pm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm small { color: var(--muted); }

/* Blog */
.posts { display: grid; gap: 14px; margin-top: 14px; }
.post { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.post-img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.post-b { padding: 14px 16px 16px; }
.post-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.post h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.post-text { white-space: pre-wrap; margin: 0; color: #d8d8d8; line-height: 1.55; }

/* Mehr */
.more-grid { display: grid; gap: 10px; margin-top: 12px; }
.more-tile { display: flex; align-items: center; gap: 14px; }
.more-tile .mi { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--card2); }
.more-tile span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.more-tile small { color: var(--muted); }

/* Analyse */
.an-top { display: flex; justify-content: flex-end; }
.an-top label { display: flex; align-items: center; gap: 8px; }
.an-top select { width: auto; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
@media (min-width: 560px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .8rem; }
.chart-card { position: relative; }
.chart-card h3 { margin: 0 0 12px; font-size: .95rem; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-bottom: 20px; position: relative; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; outline: none; min-width: 8px; }
.bar-v { width: 100%; max-width: 26px; background: var(--accent); border-radius: 4px 4px 0 0; transition: filter .15s; }
.bar-col:hover .bar-v, .bar-col:focus .bar-v { filter: brightness(1.25); }
.bar-l { position: absolute; bottom: -18px; font-size: .6rem; color: var(--muted); white-space: nowrap; }
.bar-col:nth-child(even) .bar-l { visibility: hidden; }
.bar-tip { position: absolute; top: 40px; transform: translateX(-50%); background: #1c1c1c; border: 1px solid var(--line); color: var(--text); padding: 5px 10px; border-radius: 8px; font-size: .8rem; pointer-events: none; white-space: nowrap; z-index: 2; }
.an-table th.sortable { cursor: pointer; }
.an-table th.on { color: var(--accent); }
.an-table tr.me td { background: rgba(245,165,36,.08); }
.an-table td small { color: var(--muted); }
.mini-bar { height: 3px; background: var(--card2); border-radius: 2px; margin-top: 5px; max-width: 120px; }
.mini-bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .18s; }
@media (min-width: 560px) { .modal { align-items: center; } }
.modal.open { opacity: 1; }
.modal .sheet { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: #121212; border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(20px); transition: transform .18s; }
@media (min-width: 560px) { .modal .sheet { border-radius: 20px; } }
.modal.open .sheet { transform: none; }
.modal h2 { margin: 0 0 6px; font-size: 1.3rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.modal .x { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; }
.modal textarea, .admin-box textarea { width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 10px; resize: vertical; }

/* Fotos */
.ph-strip { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ph-th { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2) center/cover no-repeat; cursor: pointer; padding: 0; position: relative; }
.ph-th span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; border-radius: 10px; }
.ph-add { height: 56px; min-width: 56px; padding: 0 12px; margin: 0; border-radius: 10px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.ph-add span { font-size: .8rem; }
.ph-add:hover { border-color: var(--accent); color: var(--accent); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 14px; overflow: hidden; }
@media (min-width: 560px) { .gal { grid-template-columns: repeat(4, 1fr); } }
.gal-it { aspect-ratio: 1; border: 0; padding: 0; background: var(--card2) center/cover no-repeat; cursor: pointer; transition: filter .15s; }
.gal-it:hover { filter: brightness(1.12); }
.lb-modal { align-items: center !important; background: rgba(0,0,0,.92); }
.lb-modal .sheet { max-width: 1000px; background: transparent; border: 0; padding: 0; border-radius: 0; }
.lb-modal .x { z-index: 3; background: rgba(0,0,0,.5); border-radius: 50%; color: #fff; top: 8px; right: 8px; }
.lb img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 6px; color: #fff; }
.lb-bar small { display: block; color: var(--muted); }
.lb-btns { display: flex; gap: 4px; }
.lb-btns .icon-btn { font-size: 1.3rem; color: #fff; }
