/* zusammen-anders – Design-Grundlage (aus der Bogensport-App übernommen). */
/* Schriften: Manrope und Barlow Condensed (SIL Open Font License), lokal eingebunden. */
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("../../assets/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("../../assets/fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("../../assets/fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../../assets/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../../assets/fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --font-d: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px;
  --tab-h: 68px;
  --gelb: #F2C400; --blau: #4D93FF; --rot: #FF5A5A;
  color-scheme: dark;
}
html[data-theme="dark"] {
  --bg: #101113; --s1: #181A1D; --s2: #222529; --line: #33373C; --tx: #ECEEF0; --mu: #9BA1A8;
  --a-anthrazit: #D8DCE0; --a-gelb: #E6FF2E; --a-pink: #FF3D9A; --a-orange: #FF8A1F; --a-gruen: #2EFF8B;
  --a-flieder: #C9B8F5; --a-rose: #F5B5CE; --a-mint: #A8E8CF; --a-pfirsich: #FFC7A6; --a-himmel: #ACD8F7;
  --ink: #0D0E10; --ring: var(--acc); color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #EEF0F2; --s1: #FFFFFF; --s2: #E3E6E9; --line: #CDD1D6; --tx: #14161A; --mu: #565D65;
  --a-anthrazit: #2B2F33; --a-gelb: #C8E000; --a-pink: #EE3F95; --a-orange: #F26B00; --a-gruen: #00C968;
  --a-flieder: #B7A0EE; --a-rose: #F29BBB; --a-mint: #7CD9B5; --a-pfirsich: #FFAE85; --a-himmel: #86C3F2;
  --ink: #0D0E10; --ring: var(--tx); color-scheme: light;
}
html[data-theme="light"][data-accent="anthrazit"] { --ink: #FFFFFF; }
html[data-accent="anthrazit"] { --acc: var(--a-anthrazit); }
html[data-accent="gelb"] { --acc: var(--a-gelb); }
html[data-accent="pink"] { --acc: var(--a-pink); }
html[data-accent="orange"] { --acc: var(--a-orange); }
html[data-accent="gruen"] { --acc: var(--a-gruen); }
html[data-accent="flieder"] { --acc: var(--a-flieder); }
html[data-accent="rose"] { --acc: var(--a-rose); }
html[data-accent="mint"] { --acc: var(--a-mint); }
html[data-accent="pfirsich"] { --acc: var(--a-pfirsich); }
html[data-accent="himmel"] { --acc: var(--a-himmel); }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx); font: 500 16px/1.5 var(--font-b);
  -webkit-tap-highlight-color: transparent; min-height: 100vh; min-height: 100dvh;
}
body.noscroll { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; letter-spacing: .01em; line-height: 1.1; margin: 0; }
h2 { font-size: 24px; } h3 { font-size: 20px; margin-bottom: 8px; }
p { margin: 0 0 10px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.boot { padding: 40px 16px; text-align: center; color: var(--mu); }
.muted { color: var(--mu); }
.center { text-align: center; }
.hint { color: var(--mu); font-size: 14px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Layout */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.top h1 { font-size: 30px; flex: 1; }
.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px; outline: none; }
.stack > * + * { margin-top: 14px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(var(--tabs, 2), 1fr); align-items: end;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--s1); border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--mu); font-size: 12px; font-weight: 700; }
.tab.on { color: var(--tx); }
.tab.on .tab-ic { background: var(--s2); }
.tab-ic { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; }
@media (min-width: 900px) {
  .shell { padding-bottom: 0; padding-left: 112px; }
  .tabbar { top: 0; right: auto; width: 112px; height: auto; grid-template-columns: 1fr; align-content: center; gap: 6px; border-top: 0; border-right: 1px solid var(--line); padding: 0; }
  .tab { min-height: 72px; }
  .page { max-width: 760px; }
}

/* Karten, Formulare */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 14px; }
.card > label:first-child { margin-top: 0; }
input[type=text], input[type=password], input[type=date], input[type=url], input[type=tel], input[type=email], input[type=search] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px;
}
input:focus { outline: 3px solid var(--ring); outline-offset: 1px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-wrap .icon-btn { position: absolute; right: 2px; top: 2px; }
.form-err { color: var(--rot); font-weight: 700; margin: 12px 0 0; }
html[data-theme="light"] .form-err { color: #C21F1F; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--s2); font-weight: 700; cursor: pointer; text-align: center;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--acc); color: var(--ink); border-color: transparent; }
.btn.danger { background: var(--rot); color: #0D0E10; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.block { display: flex; width: 100%; margin-top: 16px; }
.btn.small { min-height: 44px; padding: 6px 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.row-actions .btn { flex: 1 1 140px; }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--s2); }
.sheet-b > * + * { margin-top: 0; }

/* Auswahl-Kacheln */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.seg-b { min-height: 48px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; cursor: pointer; color: var(--mu); }
.seg-b.on { background: var(--acc); color: var(--ink); }
.seg-b:disabled { opacity: .5; }
/* Tab-Leiste mit mehreren Reitern: nie umbrechen, nie überlaufen */
.seg.seg-tabs { display: flex; gap: 3px; padding: 4px; }
.seg.seg-tabs .seg-b { flex: 1 1 auto; min-width: 0; padding: 0 8px; font-size: 14px; white-space: nowrap; }
@media (max-width: 360px) { .seg.seg-tabs .seg-b { font-size: 13px; padding: 0 5px; } }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 52px; height: 52px; border-radius: 50%; border: 3px solid transparent; display: grid; place-items: center; cursor: pointer; color: transparent; background: var(--c); box-shadow: inset 0 0 0 1px rgba(128,128,128,.4); }
.sw[aria-checked="true"] { border-color: var(--tx); color: var(--ink); }
.sw[data-a="anthrazit"] { --c: var(--a-anthrazit); } .sw[data-a="gelb"] { --c: var(--a-gelb); }
.sw[data-a="pink"] { --c: var(--a-pink); }
.sw[data-a="flieder"] { --c: var(--a-flieder); } .sw[data-a="rose"] { --c: var(--a-rose); } .sw[data-a="mint"] { --c: var(--a-mint); }
.sw[data-a="pfirsich"] { --c: var(--a-pfirsich); } .sw[data-a="himmel"] { --c: var(--a-himmel); } .sw[data-a="orange"] { --c: var(--a-orange); } .sw[data-a="gruen"] { --c: var(--a-gruen); }
html[data-theme="light"] .sw[data-a="anthrazit"][aria-checked="true"] { color: #fff; }

/* Listen */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%; padding: 8px 4px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.list > .row:first-child { border-top: 0; }
.row.disabled { opacity: .5; cursor: default; }
.row.off strong { text-decoration: line-through; opacity: .7; }
.row-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row-t small { color: var(--mu); font-size: 13px; }
.row-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--s2); }
.card.list { padding: 4px 12px; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: var(--ink); font-family: var(--font-d); font-weight: 700; font-size: 17px; }
.avatar.big { width: 56px; height: 56px; font-size: 22px; }
.who { display: flex; align-items: center; gap: 14px; }
.who p { margin: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--mu); } .kv dd { margin: 0; font-weight: 700; }

/* Start */
.hero { padding: 8px 0 4px; }
.eyebrow { color: var(--mu); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0; }
.big { font-size: 44px; }
.tile-cta { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--acc); color: var(--ink); }
.tile-cta .tile-t { flex: 1; display: flex; flex-direction: column; }
.tile-cta strong { font-family: var(--font-d); font-size: 28px; line-height: 1; }
.tile-cta small { font-size: 14px; font-weight: 600; opacity: .8; }
.tile-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(0,0,0,.14); }
.empty { text-align: center; padding: 36px 8px; }
.empty-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--s2); margin-bottom: 12px; }
.seg + .empty { margin-top: 8px; }

/* Anmeldung */
.login { max-width: 420px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 16px 40px; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand h1 { font-size: 40px; margin-top: 10px; }
.login-card { margin-top: 8px; }

/* Hinweise */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--s2); font-weight: 700; font-size: 13px; }
.chip.off { background: var(--gelb); color: #0D0E10; }
.banner { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--acc); color: var(--ink); font-weight: 700; }
.banner .btn.primary { background: var(--ink); color: var(--tx); }
html[data-theme="light"] .banner .btn.primary { color: #fff; background: #14161A; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 30; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 14px; background: var(--tx); color: var(--bg); font-weight: 700; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--rot); color: #0D0E10; }

/* Blatt */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--s1); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; }
.sheet-h h2 { padding: 8px 0; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 22px; } }
.temp-pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; letter-spacing: .06em; text-align: center; padding: 18px 8px; margin: 10px 0; border-radius: 14px; background: var(--bg); border: 1px dashed var(--acc); user-select: all; word-break: break-all; }

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

.card > .btn.ghost { display: flex; width: 100%; margin-top: 10px; }


/* ===== Übernommene Bausteine ===== */
.lnk { text-decoration: underline; font-weight: 700; }
.btn.big { min-height: 56px; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip.ok { background: var(--acc); color: var(--ink); }
.chip.warn { background: var(--gelb); color: #0D0E10; }
.chip.pend { background: var(--s2); }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.check input { width: 22px; height: 22px; accent-color: var(--acc); flex: none; }
.field-inline, .check { margin: 0; font-weight: 600; }
select { min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--tx); font-size: 16px; }
select:focus { outline: 3px solid var(--ring); outline-offset: 1px; }
.tab-ic { position: relative; }
.badge { position: absolute; top: -2px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.badge[hidden] { display: none; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--tx); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.legal h3 { margin: 1rem 0 .25rem; font-size: 1rem; }
.legal p, .legal li { line-height: 1.5; }
.legal ul { padding-left: 1.2rem; margin: .25rem 0; }
.hint.warn { color: var(--gelb); }
.kv dd.bad { color: var(--rot, #ff5a5a); }
.err-row small { word-break: break-word; }
.stack-s { display: flex; flex-direction: column; gap: 2px; }

/* ===== zusammen-anders: öffentlicher Bereich, Einwilligung, Posteingang ===== */
.pub { max-width: 560px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px 40px; }
.pub > * + * { margin-top: 16px; }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-logo { border-radius: 12px; flex: none; }
.nowrap { white-space: nowrap; }
.pub-hero { padding: 18px 0 6px; }
.pub-hero h1 { font-size: 44px; line-height: 1; }
.lead { font-size: 18px; line-height: 1.55; margin: 12px 0 0; }
.pub-foot { text-align: center; color: var(--mu); padding-top: 8px; }
.notice { border-left: 5px solid var(--acc); background: var(--s1); border-radius: 0 var(--r) var(--r) 0; padding: 14px 16px; }
.notice p { margin: 6px 0 0; }
.contact textarea { min-height: 150px; resize: vertical; }
.count { display: block; text-align: right; color: var(--mu); margin-top: 4px; }
/* Köderfeld gegen automatisches Ausfüllen: nicht sichtbar, aber im Dokument */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--bg); }
.privacy-note summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.privacy-note p { font-size: 14px; color: var(--mu); }
.contact .check { align-items: flex-start; margin-top: 14px; font-weight: 600; line-height: 1.4; }
.contact .check input { margin-top: 2px; }
.thanks { text-align: center; }
.tile-ic.ok { display: inline-grid; background: var(--acc); color: var(--ink); width: 56px; height: 56px; border-radius: 28px; margin-bottom: 10px; }
.login.wide { max-width: 560px; }
.login.wide .card.legal { margin-top: 8px; }
.ok-text { color: var(--tx); font-weight: 700; }
.dot-state { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--acc); }
.dot-state.open { background: var(--acc); }
.row-t small.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-head h3 { margin-bottom: 2px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.reply + .reply { margin-top: 10px; }
.reply .msg-text { margin: 4px 0 0; }
.stack-m { margin-top: 14px; }
textarea:focus { outline: 3px solid var(--ring); outline-offset: 1px; }
.legal h2 { margin-bottom: 8px; }
.card.legal { line-height: 1.5; }

.tile-cta.quiet { background: var(--s1); color: var(--tx); border: 1px solid var(--line); }
.tile-cta.quiet .tile-ic { background: var(--s2); }
.login-card + .hint.center, .login .hint.center { margin-top: 16px; }

/* ===== Chat ===== */
.chat { display: flex; flex-direction: column; flex: 1 1 auto; }
.page:has(> .chat) { display: flex; flex-direction: column; flex: 1 1 auto; padding-bottom: 8px; }
.chat-top { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.chat-top .btn { display: inline-flex; gap: 6px; align-items: center; }
.chat > .btn.small { align-self: center; margin-bottom: 8px; }
.center { text-align: center; }
.msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding-bottom: 12px; flex: 1; }
.day-sep { text-align: center; margin: 10px 0 2px; }
.day-sep span { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--s2); color: var(--mu); font-size: 12px; font-weight: 800; }
.msg { max-width: 88%; align-self: flex-start; background: var(--s1); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.msg.mine { align-self: flex-end; background: var(--s2); border-radius: 14px 14px 4px 14px; }
.msg:has(.poll) { align-self: stretch; max-width: 100%; }
.msg-h { display: flex; align-items: center; gap: 8px; }
.msg-h strong { font-size: 13px; }
.msg-h small { color: var(--mu); font-size: 12px; }
.icon-btn.tiny { width: 32px; height: 32px; margin-left: auto; opacity: .7; }
.msg-body { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.composer {
  position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 0 8px; background: var(--bg); border-top: 1px solid var(--line); z-index: 3;
}
.composer { gap: 6px; }
.composer textarea { flex: 1 1 0; min-width: 0; min-height: 48px; max-height: 140px; resize: none; overflow-y: auto; line-height: 1.35; }
.composer .icon-btn { flex: none; width: 40px; height: 48px; }
.composer .btn { flex: none; min-width: 48px; padding: 0 12px; }
@media (min-width: 900px) { .composer { bottom: 0; } }
.poll { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.poll-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.poll-q { font-size: 17px; overflow-wrap: anywhere; }
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.poll-opt { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); text-align: left; color: var(--tx); font: inherit; }
button.poll-opt { cursor: pointer; min-height: 48px; }
.poll-opt.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.poll-opt:disabled { cursor: default; opacity: .85; }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--acc); opacity: .22; pointer-events: none; }
.poll-l { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.poll-l .mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--mu); flex: none; }
.poll-opt.on .mark { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.poll-opt.dates .poll-l .mark { display: none; }
.poll-n { margin-left: auto; font-weight: 800; }
.poll-who { position: relative; color: var(--mu); overflow-wrap: anywhere; }
.opt-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.opt-row input { flex: 1; min-width: 0; }
.opt-row .o-time { flex: 0 0 120px; }
[data-list=poll-options] + .btn { display: flex; width: 100%; }

/* Reaktionen und Emojis */
.rx { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.rx-chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; min-width: 48px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--tx); font: inherit; font-size: 15px; cursor: pointer; }
.rx-chip.on { border-color: var(--acc); background: var(--s2); box-shadow: inset 0 0 0 1px var(--acc); }
.rx-chip.add { color: var(--mu); padding: 2px 10px; opacity: .85; margin-left: 8px; border-style: dashed; background: transparent; }
.rx-n { font-size: 13px; font-weight: 800; }
.rx-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rx-big { min-height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 28px; cursor: pointer; }
.rx-big.on { border-color: var(--acc); box-shadow: inset 0 0 0 2px var(--acc); background: var(--s2); }
.rx-who { margin-top: 14px; }
.rx-who h3 { margin: 0 0 6px; font-size: 16px; }
.rx-who p { margin: 4px 0; overflow-wrap: anywhere; }
.composer { flex-wrap: wrap; }
.emoji-panel { flex: 1 0 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; max-height: 190px; overflow-y: auto; padding: 8px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); }
.emoji-panel[hidden] { display: none; }
.emoji-b { min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 24px; cursor: pointer; }
.emoji-b:hover { background: var(--s2); }

/* ===== Kalender ===== */
input[type=time] { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
input[type=time]:focus, input[type=date]:focus, textarea:focus { outline: 3px solid var(--ring); outline-offset: 1px; }
input[readonly] { color: var(--mu); }
input:disabled { opacity: .55; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cal-new { margin-top: 0; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-title { flex: 1; text-align: center; font-size: 22px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 800; color: var(--mu); padding: 4px 0; }
.cal-day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-height: 46px; border-radius: 12px; border: 2px solid transparent; background: transparent; cursor: pointer; font-weight: 700;
}
.cal-day:hover { background: var(--s2); }
.cal-day.out { color: var(--mu); opacity: .55; }
.cal-day.today { border-color: var(--acc); }
.cal-day.has { background: var(--s2); }
.cal-dots { font-style: normal; font-size: 11px; line-height: 6px; height: 8px; color: var(--tx); letter-spacing: 1px; }
.cal-group { scroll-margin-top: calc(70px + env(safe-area-inset-top)); }
.cal-group + .cal-group { margin-top: 14px; }
.cal-group.flash .card { outline: 3px solid var(--ring); }
.cal-day-h { font-size: 17px; margin: 0 0 6px 4px; color: var(--mu); }
.cal-day-h.today { color: var(--tx); }
.row.ev { min-height: 64px; }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 44px; height: 48px; border-radius: 12px; background: var(--s2); line-height: 1.05; }
.ev-date strong { font-family: var(--font-d); font-size: 20px; }
.ev-date small { font-size: 11px; font-weight: 800; color: var(--mu); text-transform: uppercase; }
.ev-ic { display: grid; place-items: center; color: var(--mu); }
.chip.ans-yes { background: var(--acc); color: var(--ink); }
.chip.ans-maybe { background: var(--gelb); color: #0D0E10; }
.chip.ans-no { background: var(--s2); color: var(--mu); text-decoration: line-through; }
.ev-detail h2 { font-size: 28px; overflow-wrap: anywhere; }
.ev-detail .msg-text { margin-bottom: 0; }
.who-line { margin: 10px 0 0; overflow-wrap: anywhere; }
[data-list=attendees] { margin-top: 10px; }
.stack-s > * + * { margin-top: 10px; }
.stack-s .btn.block { margin-top: 0; }
.card .check + .check { margin-top: 2px; }
.sheet select { width: 100%; }

/* Ankündigungen, Protokolle */
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h3 { margin: 0; }
.lnk { color: var(--tx); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.news-row { align-items: flex-start; padding: 12px 4px; }
.news-row .dot-state { margin-top: 6px; }
.news-row .row-t strong { white-space: normal; overflow-wrap: anywhere; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 12px 0; }
article.card h2 { font-size: 30px; margin: 6px 0 4px; overflow-wrap: anywhere; }
.filters .two { margin-top: 10px; }
.filters select { width: 100%; }
.search-wrap input[type=search] { width: 100%; }
.prot-row .row-t strong { white-space: normal; overflow-wrap: anywhere; }
.prot-row { font: inherit; color: inherit; }
.progress { height: 10px; border-radius: 5px; background: var(--s2); overflow: hidden; margin-top: 14px; }
.progress-i { height: 100%; width: 0; background: var(--acc); transition: width .2s; }
input[type=file] { width: 100%; padding: 10px 0; font-size: 15px; }
input[type=file]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); color: var(--tx); font: inherit; font-weight: 700; cursor: pointer; }

/* ===== v0.7: Wünsche, Themen, Wegweiser, Regeln, App-Sperre ===== */
.wishes { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.wish { display: flex; align-items: center; gap: 10px; min-height: 48px; width: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--tx); font: inherit; text-align: left; cursor: pointer; }
.wish .mark { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--mu); }
.wish.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); background: var(--s2); }
.wish.on .mark { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.wish:disabled { cursor: default; opacity: .8; }
.wish-l { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cat-row { cursor: default; gap: 4px; }
.cat-row .icon-btn { width: 44px; height: 44px; flex: none; }
.cat-row .icon-btn:disabled { opacity: .35; }
.topic .detail-head { align-items: center; }
.topic-t { font-size: 17px; white-space: normal; overflow-wrap: anywhere; }
.topic .row-actions { margin-top: 8px; }
.topic .row-actions .btn { flex: 0 1 auto; }
.topic .row-actions .chip { background: rgba(0,0,0,.14); }
.topic .btn.ghost .chip { background: var(--s2); }
.markup h3 { margin: 18px 0 6px; font-size: 22px; }
.markup h3:first-child { margin-top: 0; }
.markup p { margin: 0 0 10px; line-height: 1.55; }
.markup ul, .markup ol { margin: 0 0 12px; padding-left: 1.3rem; }
.markup li { margin: 0 0 8px; line-height: 1.5; }
ul.plain { padding-left: 1.2rem; margin: 0; }
ul.plain li { margin: 0 0 8px; line-height: 1.5; }
.lock-opt { align-items: flex-start; }
.lock-opt.disabled { opacity: .55; }
.lock-opt input { margin-top: 3px; }
.lock { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--bg); overflow-y: auto; }
.lock-card { width: 100%; max-width: 360px; text-align: center; }
.lock-card .tile-ic.ok { margin: 0 auto 12px; }
.lock-card h2 { margin-bottom: 6px; }
.lock-card .btn.block { margin-top: 14px; }
.lock-card input[type=password] { text-align: center; font-size: 24px; letter-spacing: .3em; }
.lock-msg { min-height: 22px; margin: 12px 0 8px; color: var(--mu); font-size: 14px; }
.lock-msg.bad { color: var(--rot); font-weight: 700; }
html[data-theme="light"] .lock-msg.bad { color: #C21F1F; }

/* v0.8 Chat: Antworten, Zitat, Glocke */
.chat-top { justify-content: space-between; align-items: center; gap: 8px; }
.chat-top .bell.on { border-color: var(--acc); }
.chat-top .bell.warn { border-color: var(--rot); }
.msg { touch-action: pan-y; position: relative; transition: transform .12s ease; }
.msg.swiping { transition: none; }
.msg.swiping::before { content: ''; position: absolute; left: -34px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--s2); opacity: .8; }
.msg.armed::before { background: var(--acc); }
.msg.flash { animation: za-flash 1.4s ease; }
@keyframes za-flash { 0%, 60% { box-shadow: 0 0 0 3px var(--acc); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .msg { transition: none; } .msg.flash { animation: none; outline: 2px solid var(--acc); } }
.msg-h .reply-btn { margin-left: auto; }
.msg-h .icon-btn.tiny:not(.reply-btn) { margin-left: 0; }
.quote { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: 4px 0 2px; padding: 6px 10px; text-align: left; border: 0; border-left: 3px solid var(--acc); border-radius: 6px; background: var(--bg); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.quote strong { font-size: 12px; }
.quote span { color: var(--mu); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.quote.gone { cursor: default; font-style: italic; color: var(--mu); }
.reply-bar { flex: 1 0 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-left: 3px solid var(--acc); border-radius: 6px; background: var(--s1); }
.reply-bar[hidden] { display: none; }
.reply-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.reply-t strong { font-size: 13px; }
.reply-t small { color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar .icon-btn { width: 36px; height: 36px; flex: none; }
.composer .reply-bar .icon-btn { height: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-b { min-height: 40px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--s1); color: var(--tx); font: inherit; font-size: 14px; cursor: pointer; }
.chip-b.on { background: var(--acc); color: var(--ink); border-color: var(--acc); font-weight: 800; }
.chips-static { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ex-steps { margin: 12px 0; padding-left: 1.6rem; display: flex; flex-direction: column; gap: 12px; line-height: 1.5; font-size: 17px; }
.ex-note { margin-top: 8px; }
.fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0; }
.fieldset legend { padding: 0 6px; font-weight: 800; }

/* Glocke und Kanal-Knopf bleiben beim Scrollen sichtbar */
.chat-top { position: sticky; top: var(--top-h, 64px); z-index: 4; background: var(--bg); margin: 0 -16px 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); }

/* v0.9 Chat-Fotos */
.photo { display: block; padding: 0; margin: 6px 0 2px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--s2); max-width: 100%; cursor: zoom-in; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-prev { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 10px; background: var(--s2); margin-bottom: 10px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 8px env(safe-area-inset-bottom); }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox .lb-x { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; color: #fff; }
.lb-cap { color: #fff; margin: 10px 8px 0; max-width: 40rem; text-align: center; }
