/* peogo Beta 0.1.0 — Stylesheet
   Systemschrift, keine externen Ressourcen. Farben kommen aus der CI (Admin → Branding überschreibt die Variablen). */

/* Inter (variable, lokal eingebunden – keine externen Schriftdienste). Lizenz: SIL OFL 1.1, siehe fonts/Inter-LICENSE.txt */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --primary: #0B7A75;
  --primary-dark: #085C58;
  --accent: #FF6A3D;
  --ink: var(--ink-light, #10202B);
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F6F6;
  --line: #E1E9EA;
  --line-strong: #C9D5D7;
  --muted: #5C6E78;
  --link: var(--link-light, #085C58);
  --danger: #C2362F;
  --warn: #9A6A12;
  --ok: #1E8E5A;
  --on-primary: #FFFFFF;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --radius-av: 34%;
  --shadow: none;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --topbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, canvas { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .xs { font-size: .8rem; }
.center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- Layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; display: block; }
.search { flex: 1 1 auto; max-width: 420px; position: relative; }
.search input { width: 100%; height: 40px; border-radius: 0; border: 1px solid var(--line); background: var(--bg); padding: 0 16px 0 40px; font: inherit; color: var(--ink); }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 0; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn .i { width: 22px; height: 22px; }
.nav-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 0; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.usermenu { position: relative; }
.usermenu > button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 6px; border-radius: 0; cursor: pointer; color: var(--ink); font: inherit; }
.usermenu > button:hover { background: var(--surface-2); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu hr { margin: 6px 0; }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr) 300px; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 20px 16px 96px; align-items: start; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 0; color: var(--ink); font-weight: 600; }
.sidenav a .i { color: var(--muted); }
.sidenav a:hover { background: var(--surface-2); text-decoration: none; }
.sidenav a.active { background: var(--primary); color: var(--on-primary); }
.sidenav a.active .i { color: var(--on-primary); }
.sidenav .nav-badge { position: static; margin-left: auto; }
.sidenav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.sidenav .label { padding: 8px 14px 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.main { min-width: 0; }
.aside { display: flex; flex-direction: column; gap: 16px; }

.bottomnav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.bottomnav a .i { width: 24px; height: 24px; }
.bottomnav a.active { color: var(--link); }
.bottomnav a:hover { text-decoration: none; }
.bottomnav a, .bottomnav .more-btn { min-width: 0; }
.bottomnav .more-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; background: none; border: 0; position: relative; cursor: pointer; }
.bottomnav .more-btn .i { width: 24px; height: 24px; }
.bottomnav .more-btn.active, .bottomnav .more-btn[aria-expanded="true"] { color: var(--link); }
.moresheet { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 49; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px 16px; max-height: 60vh; overflow-y: auto; }
.moresheet.hidden { display: none; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.more-grid a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--line); color: var(--ink); font-size: .82rem; font-weight: 600; text-align: center; }
.more-grid a.active { color: var(--link); border-color: var(--primary); }
.more-grid a:hover { text-decoration: none; background: var(--surface-2); }
@media (min-width: 821px) { .moresheet { display: none !important; } }
.bottomnav .nav-badge { right: calc(50% - 22px); top: 0; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 232px minmax(0, 1fr); }
  .aside { grid-column: 2; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-top: 12px; gap: 16px; }
  .aside { grid-column: 1; }
  .bottomnav { display: flex; }
  .search { display: none; }
  .search.open { display: block; position: absolute; left: 16px; right: 16px; top: 10px; max-width: none; z-index: 70; }
  .usermenu .uname { display: none; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 20px; }
.card-flat { box-shadow: none; }

/* ---------- Buttons & Formulare */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 0; border: 2px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.1; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); font-weight: 700; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--primary-dark); }
.btn-accent { background: var(--surface-2); color: var(--ink); }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: rgba(194, 54, 47, .1); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .9rem; border-radius: 0; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
form.inline { display: inline; }

.field { display: block; margin-bottom: 16px; }
.label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); border-color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; margin-bottom: 8px; cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--primary-dark); background: var(--surface-2); }
.choice input { margin-top: 4px; accent-color: var(--primary); }
.choice strong { display: block; }
.errors { color: var(--danger); font-size: .9rem; margin: 4px 0 0; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form .input { width: auto; flex: 1 1 200px; }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 0; margin: 0 0 16px; border: 1px solid; font-size: .95rem; }
.flash-success { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: var(--ok); }
.flash-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: var(--danger); }
.flash-info { background: var(--surface); border-color: var(--line-strong); }
.flash-warn { background: var(--surface-2); border-color: var(--primary-dark); }

.badge-verified { color: var(--primary-dark); display: inline-flex; vertical-align: -0.15em; }
.badge-verified .i { width: 1.05em; height: 1.05em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 0; background: var(--surface-2); font-size: .8rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pill-ok { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.pill-warn { background: color-mix(in srgb, var(--warn) 15%, var(--surface)); color: var(--warn); }
.pill-danger { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.pill-brand { background: var(--primary); color: var(--on-primary); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 12px; border-radius: 0; background: var(--surface-2); font-size: .9rem; }

/* ---------- Avatare */
.av { display: inline-grid; place-items: center; border-radius: 0; object-fit: cover; flex: none; font-weight: 700; color: #10202B; background: var(--primary); }
.av-24 { width: 24px; height: 24px; font-size: 10px; } .av-32 { width: 32px; height: 32px; font-size: 12px; }
.av-40 { width: 40px; height: 40px; font-size: 14px; } .av-48 { width: 48px; height: 48px; font-size: 16px; }
.av-64 { width: 64px; height: 64px; font-size: 22px; } .av-96 { width: 96px; height: 96px; font-size: 32px; }
.av-128 { width: 128px; height: 128px; font-size: 44px; } .av-160 { width: 160px; height: 160px; font-size: 54px; }
.av-c0 { background: #BFE5E1; } .av-c1 { background: #FFD6C8; } .av-c2 { background: #CFE3F7; } .av-c3 { background: #DCD3F2; }
.av-c4 { background: #F7D4E4; } .av-c5 { background: #FFE9B8; } .av-c6 { background: #D5EBC2; } .av-c7 { background: #C9DCE0; }
img.av { background: var(--surface-2); }

/* ---------- Feed */
.composer { padding: 16px; }
.composer textarea { min-height: 74px; border-radius: 0; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.post { padding: 16px 20px; }
.post + .post { margin-top: 16px; }
.post-body { font-size: 1.02rem; margin-bottom: 12px; }
.post-media { margin: 0 -20px 12px; }
.post-actions { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; margin: 0 -8px; }
.post-actions .btn { color: var(--muted); }
.post-actions .btn.liked { color: var(--danger); }
.comments { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment-bubble { background: var(--surface-2); padding: 8px 14px; border-radius: 0; min-width: 0; }
.comment-bubble .who { font-weight: 700; font-size: .9rem; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form .input { border-radius: 0; }

/* ---------- Profil */
.facts { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.subnav { display: flex; gap: 4px; padding: 0 16px; border-top: 1px solid var(--line); overflow-x: auto; }
.subnav a { padding: 12px 14px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a.active { color: var(--link); border-bottom-color: var(--primary); }
.subnav a:hover { text-decoration: none; color: var(--ink); }
.person { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.person + .person { border-top: 1px solid var(--line); }
.person .name { font-weight: 700; color: var(--ink); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.person-tile { text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.person-tile .name { display: block; font-weight: 700; color: var(--ink); margin-top: 8px; }

/* ---------- Galerien */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery-card { display: block; border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: var(--surface); color: var(--ink); }
.gallery-card:hover { text-decoration: none; border-color: var(--primary); }
.gallery-card .cover { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); position: relative; overflow: hidden; }
.gallery-card .cover .smedia { position: absolute; inset: 0; }
.gallery-card .info { padding: 10px 12px; }
.gallery-card .title { font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 0; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.photo .smedia { position: absolute; inset: 0; }
.photo .photo-tools { position: absolute; top: 6px; right: 6px; z-index: 3; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 15, 18, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox .smedia { max-width: min(96vw, 1400px); max-height: 90vh; }
.lightbox-close { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Geschützte Medien */
.smedia { position: relative; width: 100%; background: var(--surface-2); line-height: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overflow: hidden; }
.smedia-canvas { display: block; width: 100%; height: auto; pointer-events: none; opacity: 0; transition: opacity .25s; }
.smedia.ready .smedia-canvas { opacity: 1; }
.photo .smedia-canvas, .gallery-card .smedia-canvas { width: 100%; height: 100%; object-fit: cover; }
.smedia-cover { position: absolute; inset: 0; z-index: 2; background: transparent; }
.smedia.failed::after { content: "Bild nicht verfügbar"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; line-height: 1.3; }
body.shielded .smedia-canvas, body.shielded .protected-text { visibility: hidden !important; }
body.shielded::after { content: ""; position: fixed; inset: 0; background: #000; z-index: 9999; }
.protected-text { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media print { .smedia, .protected-text { display: none !important; } body::after { content: "Aus Datenschutzgründen nicht druckbar."; } }

/* ---------- Nachrichten */
.chat-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 560px; height: calc(100vh - var(--topbar-h) - 56px); max-height: 860px; overflow: hidden; padding: 0; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line); }
.chat-list-head h1 { font-size: 1.15rem; margin: 0; }
.chat-new { position: relative; }
.chat-new summary { list-style: none; cursor: pointer; }
.chat-new summary::-webkit-details-marker { display: none; }
.chat-new .menu { right: 0; left: auto; min-width: 230px; max-height: 320px; overflow-y: auto; }
.chat-new .menu a { display: flex; align-items: center; gap: 8px; }
.chat-filter { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.chat-item { display: flex; gap: 12px; padding: 12px 16px; align-items: center; color: var(--ink); border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.chat-item.hidden { display: none; }
.chat-item:hover { background: var(--surface-2); text-decoration: none; }
.chat-item.active { background: var(--surface-2); border-left-color: var(--primary); }
.chat-item .grow { min-width: 0; }
.chat-item .row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chat-item .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item.unread .name { font-weight: 800; }
.chat-item .when { color: var(--muted); font-size: .75rem; flex: none; }
.chat-item .preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item.unread .preview { color: var(--ink); font-weight: 600; }
.chat-item .count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: .72rem; font-weight: 700; }
.av-wrap { position: relative; flex: none; display: inline-flex; }
.dot-online { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; background: #22a559; border: 2px solid var(--surface); }
.chat-view { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head form { margin: 0; }
.chat-who { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.chat-who:hover { text-decoration: none; }
.chat-who span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat-who small { color: var(--muted); font-size: .78rem; }
.chat-who small.is-online { color: #22a559; font-weight: 600; }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.chat-day { align-self: center; margin: 14px 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chat-day span { background: var(--surface-2); padding: 3px 12px; }
.chat-hint { margin: auto; color: var(--muted); font-size: .9rem; text-align: center; }
.bubble { max-width: min(78%, 520px); padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; margin-top: 8px; word-wrap: break-word; overflow-wrap: anywhere; }
.bubble.grouped { margin-top: 0; }
.bubble.me { align-self: flex-end; background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.bubble.me a { color: inherit; text-decoration: underline; }
.bubble .time { display: flex; justify-content: flex-end; gap: 6px; font-size: .7rem; opacity: .7; margin-top: 2px; }
.bubble .status::after { content: ""; }
.bubble.me.last-me .status::after { content: "· Zugestellt"; }
.bubble.me.last-me.is-read .status::after { content: "· Gelesen"; }
.bubble .smedia { margin-bottom: 4px; max-width: 320px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input { display: flex; flex-direction: column; min-width: 0; }
.chat-file:empty { display: none; }
.chat-form textarea { min-height: 44px; max-height: 140px; padding: 10px 4px; resize: none; width: 100%; }
.chat-send { height: 44px; padding: 0 16px; }
.chat-error { padding: 0 16px 6px; background: var(--surface); }
.chat-error:empty { display: none; }
.chat-empty { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }
.chat-empty .i { width: 40px; height: 40px; margin-bottom: 8px; }
@media (max-width: 820px) {
  .chat-layout { grid-template-columns: 1fr; height: calc(100dvh - var(--topbar-h) - 150px); min-height: 420px; }
  .chat-layout.has-active .chat-list { display: none; }
  .chat-layout:not(.has-active) .chat-view { display: none; }
  .chat-back { display: inline-grid; }
  body.in-chat .bottomnav { display: none; }
  body.in-chat .chat-layout { height: calc(100dvh - var(--topbar-h) - 24px); }
  body.in-chat .main { padding-bottom: 8px; }
  .bubble { max-width: 86%; }
}

/* ---------- Anmeldung / Startseite */
.auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 460px; padding: 32px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .3em; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.codeinput { font: 700 1.8rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5em; text-align: center; padding-left: .5em; }

.public-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.public-header .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.public-header nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.public-header nav a:not(.btn) { padding: 8px 12px; color: var(--ink); font-weight: 600; border-radius: 0; }
.public-header nav a:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
.hero { padding: 64px 0 48px; background: radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.02em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 32px 0 56px; }
.feature { padding: 24px; }
.feature .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 0; background: var(--surface-2); color: var(--link); margin-bottom: 12px; }
.public-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.public-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.public-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.public-footer a { color: var(--muted); }
@media (max-width: 820px) {
  .hero { padding: 36px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}

/* ---------- Seiten (Pages) */
.cat { color: var(--muted); font-size: .9rem; }

/* ---------- Werbung */

/* ---------- Tabellen, Admin */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; max-width: 1360px; margin: 0 auto; padding: 20px 16px 64px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--topbar-h) + 20px); }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { position: static; } .admin-nav .sidenav { flex-direction: row; flex-wrap: wrap; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat .n { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .85rem; }
.stat.alert .n { color: var(--danger); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table .actions { text-align: right; white-space: nowrap; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .i { width: 40px; height: 40px; margin-bottom: 8px; opacity: .6; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--link); border-bottom-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.code-box { font: 600 1.4rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; background: var(--surface-2); padding: 14px 18px; border-radius: 0; display: inline-block; }
.swatch { display: inline-block; width: 28px; height: 28px; border-radius: 0; border: 1px solid var(--line); vertical-align: middle; }
.color-input { display: flex; gap: 10px; align-items: center; }
.color-input input[type=color] { width: 54px; height: 44px; padding: 2px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); }
.prose { max-width: 70ch; } .prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.3em; } .prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; } .prose li { margin-bottom: .3em; }
.prose table { border-collapse: collapse; width: 100%; } .prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.notif { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink); align-items: flex-start; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif.unread { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.progress { width: 100%; height: 10px; border-radius: 0; appearance: none; border: 0; background: var(--surface-2); overflow: hidden; }
.progress::-webkit-progress-bar { background: var(--surface-2); } .progress::-webkit-progress-value { background: var(--primary); }
.progress::-moz-progress-bar { background: var(--primary); }

/* ---------- Cookie-Hinweis, PWA */
.cookiebar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; max-width: 640px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0; padding: 16px 18px; box-shadow: 0 12px 40px rgba(35, 38, 47, .18); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cookiebar p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.cookiebar a { color: var(--link); text-decoration: underline; }
@media (max-width: 820px) { .cookiebar { bottom: 76px; } }
.install-card { display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 400; background: var(--warn); color: #fff; text-align: center; padding: 6px; font-size: .85rem; font-weight: 600; }

/* ---------- Hilfsklassen (keine Inline-Styles wegen CSP) */
.pt-16 { padding-top: 16px; } .pt-24 { padding-top: 24px; } .pb-64 { padding-bottom: 64px; } .minw0 { min-width: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.w-100 { width: 100%; } .maxw-sm { max-width: 420px; } .err-wrap { padding: 56px 16px; } .err-code { font-size: 3rem; font-weight: 800; margin: 0; }
.shell[data-wide] { grid-template-columns: 232px minmax(0, 1fr); }
@media (max-width: 820px) { .shell[data-wide] { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Installer */
.req { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.req:last-child { border: 0; }
.req .ok { color: var(--ok); } .req .no { color: var(--danger); }

ul.facts { display: block; list-style: none; padding: 0; margin: 12px 0 0; }
ul.facts li { position: relative; padding: 6px 0 6px 28px; color: var(--ink); }
ul.facts li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; border-radius: 0; background: var(--accent); }
.composer-actions .input { width: auto; min-height: 34px; padding: 0 10px; font-size: .9rem; border-radius: 0; }
.sidenav a { white-space: nowrap; gap: 10px; padding: 10px 12px; }


/* ---- Kleinteile: Aufklappmenü, Cover, Prüfansicht */
.menu-more { position: relative; display: inline-block; }
.menu-more > summary { list-style: none; cursor: pointer; }
.menu-more > summary::-webkit-details-marker { display: none; }
.menu-more[open] > summary { background: var(--surface-2); }
.menu-more .menu form { margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.5; }
.verif-photo { display: block; max-width: 100%; max-height: 360px; border-radius: 0; border: 1px solid var(--line); object-fit: contain; background: var(--surface-2); }

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

/* ---- Username-Feld, Erwähnungen */
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line-strong); border-right: 0; border-radius: 0; color: var(--muted); font-weight: 600; }
.input-prefix > .input { border-top-left-radius: 0; border-bottom-left-radius: 0; flex: 1; min-width: 0; }
a.mention, span.mention { color: var(--link); font-weight: 600; text-decoration: none; background: var(--surface-2); padding: 0 .3em; border-radius: 0; }
a.mention:hover { text-decoration: underline; }
.mention-list { position: absolute; z-index: 30; left: 0; right: 0; bottom: 100%; margin: 0 0 6px; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line-strong); border-radius: 0; box-shadow: 0 8px 24px rgba(35, 38, 47, .12); max-height: 280px; overflow: auto; }
.mention-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 0; cursor: pointer; }
.mention-list li.active, .mention-list li:hover { background: var(--surface-2); }
.mention-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }

/* ---- Formen: Rundungen kommen aus den Variablen (siehe Block „Form 3“ am Ende) */
.menu, .mention-list, .cookiebar { box-shadow: none; border-color: var(--line-strong); }
.card { border-color: var(--line); }

/* ---- Bewertungen (Up-/Downvotes) */
.votes { display: inline-flex; align-items: center; }
.vote-form { display: inline-flex; align-items: center; gap: 2px; margin: 0; }
.vote-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.vote-btn .i { width: 16px; height: 16px; }
.vote-btn:hover { background: var(--surface-2); color: var(--ink); }
.vote-up.is-on { color: var(--ink); background: var(--primary); }
.vote-down.is-on { color: #fff; background: var(--danger); }
.vote-score { min-width: 2.2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }
.votes-col { flex-direction: column; align-self: flex-start; }
.votes-col .vote-form { flex-direction: column; }
.votes-inline { margin-left: auto; align-self: center; }
.votes-inline .vote-btn { width: 24px; height: 24px; }
.votes-inline .vote-score { font-size: .8rem; }

/* ---- Kontextmenü */
.menu-more { position: relative; display: inline-block; }
.menu-more > summary { list-style: none; cursor: pointer; }
.menu-more > summary::-webkit-details-marker { display: none; }
.menu-more[open] > summary { background: var(--surface-2); }
.menu-more > .menu { right: 0; min-width: 250px; z-index: 80; }
.menu-more .menu form { margin: 0; }
.menu-title { padding: 6px 12px 2px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu-label { display: flex; align-items: center; gap: 10px; padding: 9px 12px 4px; font-weight: 500; }
.menu-report .input { min-height: 36px; margin: 0 8px 8px; width: calc(100% - 16px); padding: 4px 8px; font-size: .9rem; }

/* ---- Themen */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; color: var(--ink); }
.cat-tile:hover { background: var(--surface-2); text-decoration: none; }
.topic-list { border: 1px solid var(--line); background: var(--surface); }
.topic-row { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.topic-row:last-child { border-bottom: 0; }
.topic-main { flex: 1; min-width: 0; }
.topic-title { margin: 0 0 2px; font-size: 1.05rem; }
.topic-title a { color: var(--ink); }
.topic-count { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.topic-count:hover { color: var(--ink); text-decoration: none; }
.topic-card, .reply { display: flex; gap: 14px; padding: 18px; }
.topic-body, .reply-body { flex: 1; min-width: 0; }
.topic-body h1 { font-size: 1.5rem; margin: 0 0 8px; }
.reply { padding: 14px 18px; }

/* ---- Profil: aufgeräumt, eigenständig */
.pf-hero { padding: 0; overflow: hidden; }
.pf-cover { height: 190px; background: linear-gradient(120deg, var(--primary-dark, var(--primary)), var(--primary) 55%, color-mix(in srgb, var(--primary) 45%, var(--surface))); position: relative; }
.pf-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 160px at 90% 0, rgba(255,255,255,.28), transparent 70%); }
.pf-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; padding: 0 24px 16px; margin-top: -56px; position: relative; }
.pf-avatar .av { border: 4px solid var(--surface); }
.pf-id { flex: 1 1 260px; min-width: 0; padding-top: 60px; }
.pf-id h1 { margin: 0 0 2px; font-size: 1.6rem; letter-spacing: -.02em; }
.pf-id p { margin: 0; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pf-actions form { margin: 0; }
.pf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.pf-tiles > div { padding: 12px 16px; border-right: 1px solid var(--line); }
.pf-tiles > div:last-child { border-right: 0; }
.pf-tiles dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.pf-tiles dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pf-rank { padding: 0 24px 14px; }
.pf-rank p { margin: 4px 0 0; }
.pf-tabs { display: flex; gap: 4px; border-top: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.pf-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.pf-tabs a:hover { color: var(--ink); text-decoration: none; }
.pf-tabs a.active { color: var(--ink); border-bottom-color: var(--primary); }
.pf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pf-two .facts { grid-template-columns: 1fr; gap: 2px 0; }
.pf-two .facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 12px; }
.pf-two .facts dt:first-child { margin-top: 0; }
.pf-verified { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
@media (max-width: 820px) {
  .pf-cover { height: 110px; }
  .pf-bar { padding: 0 16px 12px; margin-top: -48px; }
  .pf-avatar .av { width: 96px; height: 96px; font-size: 32px; }
  .pf-id { padding-top: 52px; flex-basis: 100%; }
  .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-tiles > div { border-bottom: 1px solid var(--line); }
  .pf-two { grid-template-columns: 1fr; }
  .pf-rank { padding: 0 16px 12px; }
}
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plain-list a { font-weight: 600; }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ---------- Dunkler Modus: nur, wenn ein angemeldetes Mitglied ihn im Konto eingestellt hat (data-theme="dark"); sonst immer hell */
.logo-dark { display: none !important; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] {
  --ink: #E9F0F2; --bg: #0B1418; --surface: #0B1418; --surface-2: #132128;
  --line: #1F313A; --line-strong: #2E4551; --muted: #8DA3AE; --link: var(--link-dark, #7ED3CD);
  --danger: #EF6B64; --warn: #E3B04B; --ok: #4CC38A;
}
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
:root[data-theme="dark"] .mention-list { background: var(--surface-2) !important; }
:root[data-theme="dark"] .cookiebar { box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.theme-toggle .i { width: 20px; height: 20px; }
.hero { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }

/* ---------- Eingabefelder: nur Unterlinie in Themenfarbe, keine Kästen */
.input, .select, .textarea, .search input, .composer textarea, .chat-form textarea, .comment-form .input, .menu-report .input, .composer-actions .input {
  border: 0 !important; border-bottom: 2px solid var(--primary) !important; background: transparent !important; box-shadow: none !important; outline: 0 !important;
  padding-left: 2px; padding-right: 2px; color: var(--ink);
}
.search input { padding-left: 38px; }
.input:focus, .select:focus, .textarea:focus, .search input:focus, .composer textarea:focus, .chat-form textarea:focus {
  border-bottom-color: var(--primary-dark) !important; border-bottom-width: 3px !important; outline: 0 !important;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--bg) inset; -webkit-text-fill-color: var(--ink); }
.input-prefix > span { background: transparent; border: 0; border-bottom: 2px solid var(--primary); padding: 0 4px 0 2px; }
.color-input input[type=color] { border: 0; border-bottom: 2px solid var(--primary); background: transparent; }

/* ---------- Installationshilfe (Mobil) */
.installsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 310; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 3px solid var(--primary); display: grid; gap: 8px; max-width: 640px; margin: 0 auto; }
.installsheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.installsheet ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.installsheet p { margin: 0; }
@media (max-width: 820px) { .installsheet { bottom: 0; } }
.colorpick { width: 64px; height: 44px; padding: 2px; border: 0; border-bottom: 2px solid var(--primary); background: transparent; cursor: pointer; }

/* ---------- Startseite (abgemeldet) */
.eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 3px; background: var(--primary); vertical-align: middle; margin-right: 10px; }
.lp-hero { position: relative; padding: 72px 0 64px; background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.lp-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; }
.lp-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.lp-frame { border: 1px solid var(--line-strong); background: var(--surface); }
.lp-frame-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lp-frame-bar i { width: 9px; height: 9px; background: var(--line-strong); display: block; }
.lp-frame img { display: block; width: 100%; height: auto; }
.lp-hero-shot .lp-frame { box-shadow: 18px 18px 0 var(--surface-2); }
.lp-trust { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lp-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.lp-trust-grid > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.lp-trust-grid .i { grid-row: span 2; width: 24px; height: 24px; color: var(--ink); }
.lp-trust-grid span { color: var(--muted); font-size: .9rem; }
.lp-section { padding-top: 72px; }
.lp-section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; margin-top: 8px; }
.lp-section .features { padding: 0; }
.lp-section .feature { border-top: 3px solid var(--primary); padding: 20px 0 0; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.lp-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.lp-row-rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.lp-row-rev .lp-row-text { order: 2; }
.lp-row p { color: var(--muted); }
.lp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lp-list li { padding-left: 22px; position: relative; }
.lp-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--primary); }
.lp-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-photos img { width: 100%; height: 280px; object-fit: cover; display: block; }
.lp-band { margin-top: 72px; padding: 64px 0; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-phone { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
.lp-phone-shot { display: grid; place-items: center; }
.lp-phone-frame { width: min(260px, 100%); border: 8px solid var(--ink); background: var(--surface); }
.lp-phone-frame img { display: block; width: 100%; height: auto; }
.lp-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lp-steps li { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.lp-steps li > span { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 10px; }
.lp-steps p { color: var(--muted); margin: 4px 0 0; }
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lp-facts > div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-facts p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.lp-faq { margin-top: 20px; border-top: 1px solid var(--line); }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.lp-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::after { content: "+"; color: var(--link); font-weight: 700; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq p { margin: 10px 0 0; color: var(--muted); max-width: 46em; }
.lp-cta { margin-top: 72px; padding: 64px 0; border-top: 3px solid var(--primary); background: var(--surface-2); text-align: center; }
.lp-cta .btn-group { justify-content: center; }
@media (max-width: 900px) {
  .lp-hero { padding: 40px 0 40px; }
  .lp-hero-grid, .lp-row, .lp-row-rev, .lp-phone { grid-template-columns: 1fr; gap: 28px; }
  .lp-row-rev .lp-row-text { order: 0; }
  .lp-hero-shot .lp-frame { box-shadow: none; }
  .lp-trust-grid { grid-template-columns: 1fr 1fr; }
  .lp-steps, .lp-facts, .lp-photos { grid-template-columns: 1fr; }
  .lp-section { padding-top: 48px; }
  .lp-photos img { height: 200px; }
}
.badge-team { display: inline-block; vertical-align: .08em; margin-left: 2px; padding: 1px 6px; background: var(--primary); color: var(--on-primary); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }

/* ---------- Changelog */
.cl-entry { border-top: 1px solid var(--line); padding: 24px 0; }
.cl-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cl-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.cl-sum { color: var(--muted); margin: 8px 0 0; }
.cl-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cl-list li { position: relative; padding-left: 20px; }
.cl-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 2px; background: var(--primary); }
.cl-list code { background: var(--surface-2); padding: 0 .3em; }
.lp-changelog { padding-top: 32px; padding-bottom: 48px; }

/* ---------- Spiele */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.game-card { padding: 20px; display: grid; gap: 14px; }
.game-card-head { display: flex; gap: 14px; align-items: flex-start; }
.game-card h2 { margin: 0 0 2px; font-size: 1.15rem; }
.game-card h2 a { color: var(--ink); }
.game-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--primary); color: var(--on-primary); }
.game-ico .i { width: 22px; height: 22px; }
.game-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.game-top li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.game-top .rk { font-weight: 700; color: var(--muted); }
.game-top li.me { background: var(--surface-2); padding-left: 6px; padding-right: 6px; }
.game-top.big li { padding: 9px 0; }
.game-layout { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
#bestenliste .row-between { flex-wrap: wrap; gap: 8px; }
.game-stage { padding: 16px; display: grid; gap: 12px; justify-items: center; }
.game-bar { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
.game-canvas-wrap { position: relative; width: min(100%, 360px); aspect-ratio: 1; touch-action: none; }
.game-canvas-wrap canvas { width: 100%; height: 100%; display: block; background: var(--surface-2); border: 1px solid var(--line-strong); touch-action: none; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line-strong); }
.game-overlay.hidden { display: none; }
.dpad { display: grid; gap: 6px; justify-items: center; }
.dpad > div { display: flex; gap: 52px; }
.dpad button { width: 52px; height: 44px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 1rem; cursor: pointer; }
.dpad button:active { background: var(--primary); color: var(--on-primary); }
.echo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; height: calc(100% - 28px); }
.echo-pad { border: 0; font: 700 1.6rem Inter, sans-serif; color: #fff; cursor: pointer; opacity: .55; transition: opacity .08s; }
.echo-pad.is-lit { opacity: 1; filter: brightness(1.15); }
.echo-a { background: #3B6FD4; } .echo-b { background: #2E9E6B; } .echo-c { background: #D64545; } .echo-d { background: var(--primary); color: var(--on-primary); }
.game-canvas-wrap:has(.echo-grid) { aspect-ratio: auto; height: 380px; }
@media (max-width: 1000px) { .game-layout { grid-template-columns: 1fr; } .game-stage { justify-items: center; } }
.game-top li:not(:has(.rk)) { display: block; }
.cl-team { color: var(--muted); } .cl-team .badge-team { margin: 0 6px 0 0; }

/* ---------- Debug: als Mitglied eingeloggt */
.imp-banner { position: sticky; top: 0; z-index: 500; height: 44px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px; white-space: nowrap; overflow: hidden; background: var(--danger); color: #fff; font-size: .9rem; }
.imp-banner form { margin: 0; }
.imp-banner .btn { background: #fff; color: #23262F; border-color: #fff; }
.imp-banner > span { overflow: hidden; text-overflow: ellipsis; }
body:has(.imp-banner) .topbar { top: 44px; }
body:has(.imp-banner) { --imp-offset: 44px; }

/* ---------- Ränge */
.rank-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; background: var(--surface-2); font-size: .8rem; font-weight: 600; }
.rank-pill b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; background: var(--primary); color: var(--on-primary); font-size: .75rem; }
.rank-bar { height: 6px; background: var(--surface-2); margin-top: 6px; }
.rank-bar > span { display: block; height: 100%; background: var(--primary); }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 8px 14px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.subtabs a.active { color: var(--ink); border-bottom-color: var(--primary); }
.subtabs a:hover { text-decoration: none; }
.rank-bar > span.w-0 { width: 0%; }
.rank-bar > span.w-5 { width: 5%; }
.rank-bar > span.w-10 { width: 10%; }
.rank-bar > span.w-15 { width: 15%; }
.rank-bar > span.w-20 { width: 20%; }
.rank-bar > span.w-25 { width: 25%; }
.rank-bar > span.w-30 { width: 30%; }
.rank-bar > span.w-35 { width: 35%; }
.rank-bar > span.w-40 { width: 40%; }
.rank-bar > span.w-45 { width: 45%; }
.rank-bar > span.w-50 { width: 50%; }
.rank-bar > span.w-55 { width: 55%; }
.rank-bar > span.w-60 { width: 60%; }
.rank-bar > span.w-65 { width: 65%; }
.rank-bar > span.w-70 { width: 70%; }
.rank-bar > span.w-75 { width: 75%; }
.rank-bar > span.w-80 { width: 80%; }
.rank-bar > span.w-85 { width: 85%; }
.rank-bar > span.w-90 { width: 90%; }
.rank-bar > span.w-95 { width: 95%; }
.rank-bar > span.w-100 { width: 100%; }

/* ---------- Weitere Spiele */
.calc { width: 100%; display: grid; gap: 12px; align-content: center; height: 100%; }
.calc-bar { height: 8px; background: var(--surface-2); } .calc-bar span { display: block; height: 100%; background: var(--primary); }
.calc-bar span.w-0 { width: 0%; }
.calc-bar span.w-5 { width: 5%; }
.calc-bar span.w-10 { width: 10%; }
.calc-bar span.w-15 { width: 15%; }
.calc-bar span.w-20 { width: 20%; }
.calc-bar span.w-25 { width: 25%; }
.calc-bar span.w-30 { width: 30%; }
.calc-bar span.w-35 { width: 35%; }
.calc-bar span.w-40 { width: 40%; }
.calc-bar span.w-45 { width: 45%; }
.calc-bar span.w-50 { width: 50%; }
.calc-bar span.w-55 { width: 55%; }
.calc-bar span.w-60 { width: 60%; }
.calc-bar span.w-65 { width: 65%; }
.calc-bar span.w-70 { width: 70%; }
.calc-bar span.w-75 { width: 75%; }
.calc-bar span.w-80 { width: 80%; }
.calc-bar span.w-85 { width: 85%; }
.calc-bar span.w-90 { width: 90%; }
.calc-bar span.w-95 { width: 95%; }
.calc-bar span.w-100 { width: 100%; }
.calc-q { font: 700 2rem Inter, sans-serif; text-align: center; margin: 12px 0; }
.calc form { display: flex; gap: 8px; align-items: flex-end; } .calc form .input { font-size: 1.4rem; text-align: center; }
.t48 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; aspect-ratio: 1; background: var(--line-strong); padding: 6px; touch-action: none; }
.t48-c { display: grid; place-items: center; background: var(--surface-2); font: 700 1.5rem Inter, sans-serif; color: var(--ink); }
.t48-c.v2 { background: #FFF1B8; } .t48-c.v4 { background: #FFE585; } .t48-c.v8 { background: #FFD750; } .t48-c.v16 { background: var(--primary); color: var(--on-primary); }
.t48-c.v32 { background: #F0A500; } .t48-c.v64 { background: #E07B00; color: #fff; } .t48-c.v128, .t48-c.v256, .t48-c.v512 { background: #C2362F; color: #fff; font-size: 1.25rem; }
.t48-c.v1024, .t48-c.v2048, .t48-c.v4096 { background: #23262F; color: var(--primary); font-size: 1.05rem; }
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; aspect-ratio: 1; }
.mem-c { border: 0; background: var(--ink); color: #fff; font-size: 2rem; cursor: pointer; display: grid; place-items: center; }
.mem-c.is-open, .mem-c.is-done { background: var(--surface-2); cursor: default; }
.mem-c.is-done { opacity: .55; }
.mem-c.c0 { color: #C2362F; } .mem-c.c1 { color: #3B6FD4; } .mem-c.c2 { color: #2E9E6B; } .mem-c.c3 { color: #E0AB00; } .mem-c.c4 { color: #E07B00; } .mem-c.c5 { color: #D64545; } .mem-c.c6 { color: #7A4FC9; } .mem-c.c7 { color: #23262F; }
:root[data-theme="dark"] .mem-c.c7 { color: #ECEDEF; }
.game-canvas-wrap:has(.calc) { aspect-ratio: auto; min-height: 280px; }


/* =====================================================================================================
   peogo CI 2 — neue Oberfläche (0.9.0): Navigationsleiste links, „Strom“ in der Mitte, Kreis rechts.
   Farben ausschließlich über CSS-Variablen (Admin-Branding, Mitgliedsfarbe, Hell/Dunkel).
   ===================================================================================================== */
:root { --topbar-h: 64px; --rail-w: 88px; }

/* ---- Logo (Inline-SVG, passt sich allen Farben an) */
.logo { display: block; height: 100%; width: auto; overflow: visible; }
.lg-tile { fill: var(--primary); }
.lg-glyph { fill: var(--on-primary); }
.lg-spark { fill: var(--accent); stroke: var(--bg); stroke-width: 2.2; }
.lg-go { fill: #fff; }
.lg-word { fill: var(--ink); }
.lg-dot { fill: var(--primary); }
.brand .logo, .bar-brand .logo { height: 30px; }
.logo-img { height: 30px; width: auto; display: block; }

/* ---- Rahmen */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.stage { min-width: 0; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg); z-index: 40; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-logo { display: grid; place-items: center; padding: 6px 0 16px; }
.rail-logo .logo { height: 52px; width: 52px; margin: -4px 0; }
.rail a:not(.rail-logo) { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .01em; border-left: 3px solid transparent; }
.rail a:not(.rail-logo) .i { width: 24px; height: 24px; }
.rail a:not(.rail-logo):hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.rail a.active { color: var(--ink); border-left-color: var(--primary); background: var(--surface-2); }
.rail a.active .i { color: var(--link); }
.rail .nav-badge { top: 4px; right: 14px; }
.rail-gap { flex: 1; min-height: 12px; }

.bar { position: sticky; top: 0; z-index: 45; height: var(--topbar-h); display: flex; align-items: center; gap: 16px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-brand { display: none; flex: none; }
.bar .search { flex: 1 1 auto; max-width: 440px; }
.bar .top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.level { display: flex; align-items: center; gap: 10px; padding: 3px 14px 3px 3px; margin-right: 6px; border: 1px solid var(--line); color: var(--ink); }
.level:hover { text-decoration: none; border-color: var(--primary); }
.lv-no { display: grid; place-items: center; width: 34px; height: 34px; background: var(--primary); color: var(--on-primary); line-height: 1; text-align: center; }
.lv-no small { display: block; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 1px; }
.lv-no b { font-size: 1rem; }
.lv-txt { display: flex; flex-direction: column; gap: 4px; min-width: 76px; }
.lv-txt strong { font-size: .78rem; line-height: 1; }
.lv-bar { display: block; height: 4px; background: var(--surface-2); }
.lv-bar > span { display: block; height: 100%; background: var(--accent); }
.lv-bar > span.w-0 { width: 0%; } .lv-bar > span.w-5 { width: 5%; } .lv-bar > span.w-10 { width: 10%; } .lv-bar > span.w-15 { width: 15%; } .lv-bar > span.w-20 { width: 20%; } 
.lv-bar > span.w-25 { width: 25%; } .lv-bar > span.w-30 { width: 30%; } .lv-bar > span.w-35 { width: 35%; } .lv-bar > span.w-40 { width: 40%; } .lv-bar > span.w-45 { width: 45%; } 
.lv-bar > span.w-50 { width: 50%; } .lv-bar > span.w-55 { width: 55%; } .lv-bar > span.w-60 { width: 60%; } .lv-bar > span.w-65 { width: 65%; } .lv-bar > span.w-70 { width: 70%; } 
.lv-bar > span.w-75 { width: 75%; } .lv-bar > span.w-80 { width: 80%; } .lv-bar > span.w-85 { width: 85%; } .lv-bar > span.w-90 { width: 90%; } .lv-bar > span.w-95 { width: 95%; } 
.lv-bar > span.w-100 { width: 100%; } 

.view { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; max-width: 1140px; margin: 0 auto; padding: 28px 28px 110px; align-items: start; }
.view[data-wide] { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.side { position: sticky; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.stream { max-width: 680px; display: flex; flex-direction: column; gap: 22px; }

/* ---- Begrüßung */
.greet-date { margin: 0 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.greet h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -.03em; margin: 0 0 10px; }
.greet p { margin: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--surface-2); color: var(--ink); font-size: .85rem; font-weight: 600; border-left: 3px solid var(--accent); }
.chip-link:hover { text-decoration: none; background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)); }

/* ---- Stories */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.story { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); }
.story:hover { text-decoration: none; }
.story-ring { display: grid; place-items: center; width: 68px; height: 68px; padding: 3px; background: var(--line-strong); }
.story.new .story-ring { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.story-ring .av { border: 2px solid var(--bg); width: 62px; height: 62px; }
.story-add .story-ring { background: var(--surface-2); color: var(--link); border: 2px dashed var(--line-strong); }
.story-add .story-ring .i { width: 26px; height: 26px; }
.story-name { max-width: 76px; font-size: .75rem; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story.seen .story-name { color: var(--muted); font-weight: 500; }

/* ---- Beitrag schreiben */
.prompt { border: 1px solid var(--line); padding: 14px 16px 10px; background: var(--surface); }
.prompt:focus-within { border-color: var(--primary); }
.prompt-row { display: flex; gap: 12px; align-items: flex-start; }
.prompt-row .textarea { flex: 1; font-size: 1.05rem; }
.prompt textarea.textarea { border: 0 !important; min-height: 48px; }
.prompt .composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.prompt .composer-actions .input { max-width: 190px; }
.prompt-opts { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.prompt-opts summary { cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.prompt-opts summary::-webkit-details-marker { display: none; }
.prompt-opts[open] summary { color: var(--ink); }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 10px 0; }
.prompt-opts .hint { margin: 0 0 6px; }

/* ---- Strom: Beiträge als Einträge, keine Kästen */
.entries { display: flex; flex-direction: column; }
.entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.entry:first-child { padding-top: 6px; }
.entry-main { min-width: 0; }
.entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.entry-who strong { font-weight: 700; }
.entry-meta { display: block; font-size: .8rem; color: var(--muted); }
.entry-meta a { color: inherit; }
.entry-body { font-size: 1.04rem; line-height: 1.65; margin: 6px 0 10px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; font-size: .72rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.tag .i { width: 13px; height: 13px; }
.tag-exp { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--ink); }
.tag-plan { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--ink); }
.entry .post-media { margin: 8px 0 10px; }
.entry .post-actions { display: flex; align-items: center; gap: 6px; padding: 0; margin: 4px 0; border: 0; }
.entry .comments { margin-top: 6px; }
.stream-end { padding: 28px 0 8px; }

/* ---- Vorschläge */
.sugg { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
.sugg + .sugg { border-top: 1px solid var(--line); }
.sugg-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.sugg-who:hover { text-decoration: none; }
.sugg-who > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sugg-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-who small { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-act { display: flex; align-items: center; gap: 2px; flex: none; }
.sugg-act form { margin: 0; }
.side .sugg-act .btn { padding-inline: 8px; }
.side .sugg-act .btn .i { margin: 0; }
.side .sugg-act .btn .lbl { display: none; }

/* ---- Story erstellen / Hintergründe */
.sbg-0 { background: linear-gradient(160deg, #0B7A75, #0E3B44); }
.sbg-1 { background: linear-gradient(160deg, #FF6A3D, #B8325A); }
.sbg-2 { background: linear-gradient(160deg, #3C5BD9, #1B1F5E); }
.sbg-3 { background: linear-gradient(160deg, #2E8B57, #0F3D2A); }
.sbg-4 { background: linear-gradient(160deg, #8E44AD, #3B1A5B); }
.sbg-5 { background: linear-gradient(160deg, #3A4750, #10181D); }
.story-bgs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.story-bgs .label { width: 100%; }
.swatch { position: relative; display: inline-block; width: 44px; height: 44px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch:has(input:checked) { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---- Story-Betrachter */
body.sv-open, body.tour-open { overflow: hidden; }
.sv { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .94); }
.sv-bars, .sv-head, .sv-stage { position: absolute; left: 50%; width: min(100vw, 460px); transform: translateX(-50%); }
.sv-stage { top: 0; bottom: 0; overflow: hidden; }
.sv-bars { top: 10px; z-index: 4; display: flex; gap: 4px; padding: 0 10px; }
.sv-bar { flex: 1; height: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bar span { display: block; height: 100%; width: 0; background: #fff; }
.sv-bar.done span { width: 100%; }
.sv-bar.run span { animation: svrun linear forwards; }
@keyframes svrun { from { width: 0; } to { width: 100%; } }
.sv-head { top: 22px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: #fff; }
.sv-who { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.sv-who:hover { text-decoration: none; }
.sv-meta { display: flex; flex-direction: column; line-height: 1.2; }
.sv-meta small { opacity: .8; }
.sv-views { font-size: .8rem; opacity: .9; }
.sv-btn { background: rgba(255, 255, 255, .14); color: #fff; border: 0; padding: 6px 10px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.sv-btn:hover { background: rgba(255, 255, 255, .26); }
.sv-x { font-size: 1.3rem; line-height: 1; padding: 4px 12px; }
.sv-zone { position: absolute; top: 80px; bottom: 0; width: calc(min(100vw, 460px) / 2); background: transparent; border: 0; z-index: 3; cursor: pointer; }
.sv-l { left: calc(50% - min(100vw, 460px) / 2); }
.sv-r { left: 50%; }
.sv-body { position: relative; height: 100%; display: grid; place-items: center; padding: 84px 28px 40px; text-align: center; color: #fff; font-size: 1.55rem; font-weight: 700; line-height: 1.3; }
.sv-body p { margin: 0; }
.sv-photo { background: #000; padding: 70px 0 70px; }
.sv-img { width: 100%; }
.sv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 28px; font-size: 1rem; font-weight: 500; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.sv-img .smedia { background: #000; }

/* ---- Messenger-Dock */
.dock { position: fixed; right: 24px; bottom: 0; z-index: 55; display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-bubble { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; background: var(--primary); color: var(--on-primary); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.dock-bubble:hover { background: var(--primary-dark); }
.dock-bubble .i { width: 20px; height: 20px; }
.dock-bubble .nav-badge { top: -8px; right: -6px; background: var(--accent); color: #10202B; }
.dock-panel { position: absolute; right: 0; bottom: 46px; width: 320px; max-height: min(520px, calc(100vh - 140px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-bottom: 0; box-shadow: 0 -10px 40px rgba(16, 32, 43, .14); }
.dock-panel.hidden { display: none; }
.dock-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--line); }
.dock-search { padding: 8px 14px 4px; }
.dock-list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1; }
.dock-note { padding: 14px; }
.dock-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.dock-item:hover { background: var(--surface-2); }
.dock-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.dock-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-txt small { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-static { position: static; flex: none; }
.dock-foot { display: block; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.dock-foot .flip { transform: scaleX(-1); width: 1em; height: 1em; }
.dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid var(--surface); background: #9AA7AE; }
.dot.on { background: #22A559; }
.dock-wins { display: flex; align-items: flex-end; gap: 12px; }
.dock-win { width: 300px; height: 400px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-bottom: 0; box-shadow: 0 -10px 40px rgba(16, 32, 43, .14); }
.dock-win.min { height: auto; }
.dock-win.min .dock-msgs, .dock-win.min .dock-form, .dock-win.min .dock-err { display: none; }
.dock-win-head { display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; background: var(--primary); color: var(--on-primary); }
.dock-win-head .icon-btn { width: 32px; height: 32px; color: inherit; font-size: 1.2rem; }
.dock-win-head .icon-btn:hover { background: rgba(255, 255, 255, .18); }
.dock-win-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; }
.dock-win-who:hover { text-decoration: none; }
.dock-win-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-win .dot { border-color: var(--primary); }
.dock-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.dock-msgs .bubble { max-width: 88%; font-size: .9rem; }
.dock-msgs .smedia { max-width: 200px; }
.dock-form { display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px; border-top: 1px solid var(--line); }
.dock-form .textarea { flex: 1; min-height: 38px; max-height: 90px; resize: none; }
.dock-err { padding: 0 10px; color: var(--danger); }
.dock-err:empty { display: none; }

/* ---- Update-Tour */
.tour { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(8, 16, 20, .66); padding: 16px; }
.tour[hidden], .tour [hidden] { display: none !important; }
.tour-box { width: min(520px, 100%); background: var(--surface); border-top: 4px solid var(--primary); padding: 22px 24px 20px; }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tour-ico { display: grid; place-items: center; width: 56px; height: 56px; background: var(--primary); color: var(--on-primary); margin-bottom: 14px; }
.tour-ico .i { width: 28px; height: 28px; }
.tour-step h2 { font-size: 1.4rem; margin-bottom: .4em; }
.tour-step p { color: var(--muted); font-size: 1.02rem; min-height: 5.5em; }
.tour-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; background: var(--line-strong); }
.tour-dots i.on { background: var(--primary); }
.tour-dots i.past { background: color-mix(in srgb, var(--primary) 45%, var(--line-strong)); }

/* ---- Mobil */
@media (max-width: 1060px) {
  .view { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .side { position: static; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .bar { padding: 0 12px; gap: 8px; }
  .bar-brand { display: block; }
  .level .lv-txt { display: none; }
  .level { padding: 0; border: 0; margin-right: 2px; }
  .bar .top-actions .icon-btn[href="/pieks"], .theme-toggle { display: none; }
  .view { padding: 16px 14px 120px; gap: 24px; }
  .entry { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .entry .av-40 { width: 36px; height: 36px; }
  .prompt-grid { grid-template-columns: 1fr; }
  .dock { display: none; }
  .sv-body { font-size: 1.35rem; }
}
body:has(.imp-banner) .bar { top: 44px; }
body:has(.imp-banner) .rail { top: 44px; height: calc(100vh - 44px); }
body:has(.imp-banner) .side { top: calc(var(--topbar-h) + 68px); }
@media (prefers-reduced-motion: reduce) { .sv-bar.run span { animation-duration: 1ms !important; } }


/* =====================================================================================================
   Form 3 (0.10.0): runder und lebendiger. Radien nur über Variablen; Eingabefelder bleiben Unterstrich-Felder.
   ===================================================================================================== */
:focus-visible { border-radius: var(--radius-sm); }
.btn, .btn-sm, .pill, .chip, .nav-badge, .tag, .badge-team, .dock-bubble, .lv-no, .level, .search input { border-radius: var(--radius-pill); }
.level { padding-right: 16px; }
.lv-no { border-radius: 50%; }
.card, .gallery-card, .person-tile, .entry-card, .tour-box, .dock-panel, .dock-win, .page-card, .menu, .mention-list, .cookiebar, .dropzone, .code-box, .composer, .moresheet-box { border-radius: var(--radius-lg); }
.card, .person-tile, .gallery-card { overflow: hidden; }
.menu a, .menu button, .mention-list li, .sidenav a, .rail a:not(.rail-logo), .subnav a, .chat-item, .dock-item, .choice, .flash, .swatch, .photo, .profile-cover, .page-cover, .verif-photo, .color-input input[type=color], .hero-art img, .feature .ico, .lp-frame, .tour-ico { border-radius: var(--radius); }
.rail a:not(.rail-logo) { margin: 0 4px; border-left-width: 0; }
.rail a.active { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 55%, transparent); }
.av, .av-img, img.av { border-radius: var(--radius-av); }
.dot, .progress, .lv-bar, .lv-bar > span, .tour-dots i { border-radius: var(--radius-pill); }
.bubble, .comment-bubble, a.mention, span.mention, .dock-msgs .bubble { border-radius: var(--radius); }
.bubble.me { border-bottom-right-radius: 6px; }
.bubble:not(.me) { border-bottom-left-radius: 6px; }
.story .av, .story-ring, .story > span { border-radius: var(--radius-lg); }
.input-prefix > span { border-radius: 0; }
ul.facts li::before { border-radius: 50%; }

/* Designwahl in den Einstellungen */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.design-opt { display: block; cursor: pointer; }
.design-opt input { position: absolute; opacity: 0; pointer-events: none; }
.design-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.design-opt input:checked + .design-card { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.design-opt input:focus-visible + .design-card { outline: 3px solid var(--ink); outline-offset: 2px; }
.dz-prev { position: relative; display: block; height: 74px; margin-bottom: 6px; overflow: hidden; border-radius: var(--radius); background: #F1F6F6; }
.dz-prev i { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: #0B7A75; }
.dz-prev b { position: absolute; left: 10px; top: 28px; width: 46%; height: 36px; background: #fff; border: 1px solid #C9D5D7; border-radius: 8px; }
.dz-prev u { position: absolute; right: 10px; top: 34px; width: 30%; height: 14px; background: #FF6A3D; border-radius: 99px; }
.dz-dorfplatz { background: #E9EEF4; } .dz-dorfplatz i { background: linear-gradient(#3C7FB8, #245B8C); } .dz-dorfplatz u { background: linear-gradient(#F7A94A, #E27F0C); border-radius: 4px; } .dz-dorfplatz b { border-radius: 4px; border-color: #B8C7D6; }
.dz-kreise { background: #EEE; } .dz-kreise i { background: #2D2D2D; } .dz-kreise u { background: #DD4B39; border-radius: 2px; } .dz-kreise b { border-radius: 2px; border-color: #D9D9D9; }
.dz-campus { background: #E4E4E4; } .dz-campus i { background: #C41E3A; } .dz-campus u { background: #C41E3A; border-radius: 0; } .dz-campus b { border-radius: 0; border-color: #B5B5B5; }
.dz-btt { background: #F2F6FB; } .dz-btt i { height: 24px; background: linear-gradient(#2C62B5, #0F2A5A); } .dz-btt u { background: linear-gradient(#5E94DB, #1F4E9C); border-radius: 3px; } .dz-btt b { top: 32px; border-radius: 3px; border-color: #8FA9C8; }
.dz-qligg6 { background: linear-gradient(#DDEEFA, #fff); } .dz-qligg6 i { background: linear-gradient(#fff, #EAF4FC); border-bottom: 2px solid #2B8BD6; } .dz-qligg6 u { background: linear-gradient(#FFB84D, #F08A0C); border-radius: 99px; } .dz-qligg6 b { border-radius: 10px; border-color: #BBD6EA; }
.dz-sofortbote { background: linear-gradient(#CDE6F8, #F6FAFE); } .dz-sofortbote i { background: linear-gradient(#fff, #C4E0F5); } .dz-sofortbote u { background: linear-gradient(#8FD0F7, #1F7FC8); border-radius: 99px; } .dz-sofortbote b { border-radius: 12px; border-color: #A9CDE9; }
.dz-fensterzeit { background: linear-gradient(#6FA8F0, #A9D2F6 55%, #4C9A2A 56%); } .dz-fensterzeit i { height: 16px; background: linear-gradient(90deg, #0A4FD6, #3C8BF5); } .dz-fensterzeit b { top: 22px; background: #ECE9D8; border: 2px solid #0A4FD6; border-radius: 4px; } .dz-fensterzeit u { top: 40px; background: linear-gradient(#6FD25C, #3C9B2F); border-radius: 8px 8px 8px 2px; }
.dz-plauderstunde { background: linear-gradient(#EAF6E4, #fff); } .dz-plauderstunde i { background: linear-gradient(#7CCB52, #3F9A24); } .dz-plauderstunde u { background: linear-gradient(#6EB8F2, #2C8DDB); border-radius: 99px; } .dz-plauderstunde b { border-radius: 10px; border-color: #B7DCA6; }

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

/* Spiele-Teaser (0.10.0) */
.teaser { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.teaser-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: var(--radius); background: var(--accent); color: #10202B; }
.teaser-ico .i { width: 22px; height: 22px; }
.teaser-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 160px; line-height: 1.35; }
.dock-game { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: .85rem; }
.dock-game .i { color: var(--accent); }
.dock-game:hover { text-decoration: none; background: var(--surface-2); }
.game-ico, .game-canvas-wrap canvas, .game-overlay, .echo-pad, .mem-c, .t48, .t48-c, .dpad button, .game-top li.me { border-radius: var(--radius); }
.echo-grid, .calc-bar, .calc-bar span { border-radius: var(--radius-pill); }

/* Titelbilder (0.10.2) */
.pf-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pf-cover:has(.pf-cover-img)::after { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.18)); }
.pf-cover-prev, .page-cover-prev { display: block; width: 100%; max-width: 600px; height: 150px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }

/* Duelle */
.duel-panel { padding: 20px; }
.duel-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.duel-opt input { position: absolute; opacity: 0; }
.duel-card { display: grid; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.duel-card small { color: var(--muted); }
.duel-opt input:checked + .duel-card { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.duel-opt input:focus-visible + .duel-card { outline: 2px solid var(--primary); outline-offset: 2px; }
.duel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.duel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.duel-state { display: flex; align-items: center; gap: 10px; }
.duel-status { font-weight: 600; margin: 0; }
.duel-board { --duel-me: #F2B705; --duel-you: #E04A3A; --duel-ink-me: #1F6FD1; --duel-ink-you: #D9531E; display: grid; gap: 6px; padding: 10px; border-radius: var(--radius-lg); background: #2B4F9E; width: min(100%, 460px); margin: 0 auto; }
.duel-vierer { grid-template-columns: repeat(7, 1fr); }
.duel-kreuz { grid-template-columns: repeat(3, 1fr); background: var(--surface-2); }
.duel-cell.me, .duel-cell.you { opacity: 1; }
.duel-cell { aspect-ratio: 1; border: 0; border-radius: 50%; background: #E9EFFA; font-size: 2rem; font-weight: 800; color: var(--ink); cursor: default; padding: 0; }
.duel-kreuz .duel-cell { border-radius: var(--radius); background: var(--surface); }
.duel-cell:not(:disabled) { cursor: pointer; }
.duel-cell:not(:disabled):hover { filter: brightness(.94); }
.duel-vierer .duel-cell.me { background: var(--duel-me); box-shadow: inset 0 0 0 5px rgba(0,0,0,.18); } .duel-vierer .duel-cell.you { background: var(--duel-you); box-shadow: inset 0 0 0 5px rgba(0,0,0,.18); }
.duel-kreuz .duel-cell.me { color: var(--duel-ink-me); } .duel-kreuz .duel-cell.you { color: var(--duel-ink-you); }
.duel-actions { display: flex; justify-content: center; }
.duel-teaser { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: inherit; }
.duel-teaser > div { flex: 1; }
.duel-teaser p { margin: 0; }

/* Benachrichtigungen: Dropdown */
.notif-wrap { position: relative; }
.notif-panel { position: absolute; right: -60px; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 520px); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(0, 0, 0, .22); z-index: 70; overflow: hidden; }
.notif-panel.hidden { display: none; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notif-head a { color: var(--muted); display: inline-grid; }
.notif-body { overflow-y: auto; }
.notif-body .notif, .card .notif { padding: 12px 16px; }
.notif-ico { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--primary); }
.notif-ico .i { width: 18px; height: 18px; }
.notif-txt { display: grid; gap: 2px; font-size: .92rem; }
.notif-empty { margin: 0; padding: 22px 16px; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .notif-wrap { position: static; } .notif-panel { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; } }
.badge-demo { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.ghost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ghost-stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ghost-stat strong { display: block; font-size: 1.5rem; }

/* Private Galerien: unkenntliche Vorschau */
.gallery-card .blur-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.blur-lock { position: absolute; right: 8px; bottom: 8px; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; }
.blur-strip { display: flex; gap: 8px; justify-content: center; }
.blur-strip img { width: 30%; max-width: 160px; height: auto; border-radius: var(--radius); }
.ghost-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
.ghost-row .grow { flex: 1; min-width: 180px; }

/* Profil-Guide */
.guide-meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.guide-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }
.guide-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.guide-item .grow { flex: 1; min-width: 200px; } .guide-item p { margin: 2px 0 0; }
.guide-mark { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); color: #fff; }
.guide-item.done .guide-mark { background: var(--ok, #2F9E44); border-color: var(--ok, #2F9E44); }
.guide-item.done { opacity: .8; }
.guide-tips li { margin-bottom: .6em; }
.guide-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; color: inherit; text-decoration: none; flex-wrap: wrap; }
.guide-card .grow { flex: 1; min-width: 200px; }
.guide-ring { flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); border: 4px solid var(--primary); font-size: .9rem; }
.guide-meter > span.w-0 { width: 0%; }
.guide-meter > span.w-5 { width: 5%; }
.guide-meter > span.w-10 { width: 10%; }
.guide-meter > span.w-15 { width: 15%; }
.guide-meter > span.w-20 { width: 20%; }
.guide-meter > span.w-25 { width: 25%; }
.guide-meter > span.w-30 { width: 30%; }
.guide-meter > span.w-35 { width: 35%; }
.guide-meter > span.w-40 { width: 40%; }
.guide-meter > span.w-45 { width: 45%; }
.guide-meter > span.w-50 { width: 50%; }
.guide-meter > span.w-55 { width: 55%; }
.guide-meter > span.w-60 { width: 60%; }
.guide-meter > span.w-65 { width: 65%; }
.guide-meter > span.w-70 { width: 70%; }
.guide-meter > span.w-75 { width: 75%; }
.guide-meter > span.w-80 { width: 80%; }
.guide-meter > span.w-85 { width: 85%; }
.guide-meter > span.w-90 { width: 90%; }
.guide-meter > span.w-95 { width: 95%; }
.guide-meter > span.w-100 { width: 100%; }

/* Nudemode (0.14.0) */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.pill-plus { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary-dark); border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line)); }
[data-theme="dark"] .pill-plus { color: var(--ink); }
.verif-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.verif-grid figure { margin: 0; }
.nude-avatar { max-width: 280px; border-radius: var(--radius); overflow: hidden; }
.nude-avatar .smedia { width: 100%; }

/* 0.18: Einstellungs-Dashboard, Startguide-Schritte, FKK-Hinweis */
.dash-me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-me .grow { flex: 1; min-width: 220px; }
.dash-name { font-size: 1.15rem; }
.dash-h { font-size: 1rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dash-tile { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; align-items: start; padding: 14px 16px; color: var(--ink); }
.dash-tile:hover { text-decoration: none; border-color: var(--primary); background: var(--surface-2); }
.dash-ico { grid-row: span 2; display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--surface-2); color: var(--link); }
.dash-ico .i { width: 22px; height: 22px; }
.dash-txt { display: flex; flex-direction: column; gap: 2px; }
.dash-tile .pill { grid-column: 2; justify-self: start; margin-top: 4px; }
.guide-step { border-left: 4px solid var(--primary); }
.guide-step .row { display: flex; gap: 8px; align-items: flex-start; }
.guide-step .row .grow { flex: 1; min-width: 0; }
.guide-item.current { border-color: var(--primary); }
.rail-fkk .i { color: var(--accent); }
.fkk-hint .fkk-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--surface-2); color: var(--accent); }
.fkk-hint .row { display: flex; gap: 8px; align-items: center; }

/* 0.19: weitere Duelle */
.duel-kreuzxl { grid-template-columns: repeat(5, 1fr); background: var(--surface-2); }
.duel-fuenf { grid-template-columns: repeat(11, 1fr); gap: 3px; background: var(--surface-2); width: min(100%, 560px); }
.duel-reversi { grid-template-columns: repeat(8, 1fr); gap: 3px; background: #2f7d4f; }
.duel-kreuzxl .duel-cell, .duel-fuenf .duel-cell { border-radius: var(--radius); background: var(--surface); }
.duel-fuenf .duel-cell { font-size: 1rem; }
.duel-kreuzxl .duel-cell { font-size: 1.6rem; }
.duel-kreuzxl .duel-cell.me, .duel-fuenf .duel-cell.me { color: var(--duel-ink-me); } .duel-kreuzxl .duel-cell.you, .duel-fuenf .duel-cell.you { color: var(--duel-ink-you); }
.duel-reversi .duel-cell { border-radius: 4px; background: #3d9a63; font-size: 1.6rem; line-height: 1; }
.duel-reversi .duel-cell.me { color: #fff; } .duel-reversi .duel-cell.you { color: #1b1b1b; }
.duel-reversi .duel-cell:not(:disabled):hover { background: #49ad72; filter: none; }
.badge-team-ico { padding: 0; margin-left: 4px; background: transparent; color: var(--primary); line-height: 1; vertical-align: -.12em; }
.badge-team-ico .logo { display: inline-block; height: 1.45em; width: 1.45em; margin: -.2em 0; vertical-align: middle; }
.report-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.report-img { overflow: hidden; border-radius: var(--radius-sm, 8px); }
.ticket-row { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.ticket-row:hover { text-decoration: none; border-color: var(--primary); }
.ticket-row .grow { flex: 1; min-width: 0; }
.ticket-msg { border-left: 4px solid var(--line-strong); }
.ticket-msg.staff { border-left-color: var(--primary); background: var(--surface-2); }
.ticket-msg p { margin: 6px 0 0; }
.faq-item > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq-item[open] > summary::after { content: "–"; }
.faq-body { padding: 0 18px 18px; }
.faq-body ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.faq-shot { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }


/* ---- 0.20.0: Kopfleiste mobil fest (auch in der installierten WebApp, mit Platz für Notch/Statusleiste) */
@media (max-width: 820px) {
  :root { --safe-top: env(safe-area-inset-top, 0px); }
  .topbar { height: calc(var(--topbar-h) + var(--safe-top)); padding-top: var(--safe-top); }
  .bar { position: fixed; top: 0; left: 0; right: 0; height: calc(var(--topbar-h) + var(--safe-top)); padding-top: var(--safe-top); padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); z-index: 60; }
  .stage { padding-top: calc(var(--topbar-h) + var(--safe-top)); }
  html { scroll-padding-top: calc(var(--topbar-h) + var(--safe-top) + 12px); }
  body:has(.imp-banner) .bar { top: calc(44px + var(--safe-top)); }
  body:has(.imp-banner) .stage { padding-top: calc(var(--topbar-h) + var(--safe-top) + 44px + var(--safe-top)); }
  .imp-banner { position: fixed; left: 0; right: 0; top: 0; padding-top: var(--safe-top); height: calc(44px + var(--safe-top)); }
}

/* ---- 0.20.0: Upload (Ausschnitt-Dialog, Reinziehen) */
.crop-modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: rgba(15, 18, 25, .6); }
.crop-box { width: min(100%, 540px); max-height: 100%; overflow: auto; }
.crop-stage { display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); padding: 8px; }
.crop-canvas { display: block; max-width: 100%; height: auto; cursor: grab; touch-action: none; box-shadow: 0 0 0 2px var(--primary); }
.crop-canvas:active { cursor: grabbing; }
.crop-zoom { width: 100%; accent-color: var(--primary); }
form.drop-over, [data-drop].drop-over { outline: 2px dashed var(--primary); outline-offset: 4px; background: color-mix(in srgb, var(--primary) 6%, transparent); }
form.is-uploading { opacity: .6; pointer-events: none; }

/* ---- 0.21.0: Lightbox für Profil- und Titelbilder */
[data-zoom] { cursor: zoom-in; }
.lightbox-img { display: block; max-width: 96vw; max-height: 90vh; min-width: min(90vw, 420px); object-fit: contain; background: var(--surface-2); }
.block { display: block; }

/* ---- 0.22.0: Speicheranzeige */
.stor-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 6rem; gap: 12px; align-items: center; }
.stor-bar { display: block; height: 10px; background: var(--surface-2); overflow: hidden; }
.stor-bar i { display: block; height: 100%; background: var(--primary); }
.stor-bar i.w-0 { width: 0%; } .stor-bar i.w-5 { width: 5%; } .stor-bar i.w-10 { width: 10%; } .stor-bar i.w-15 { width: 15%; } .stor-bar i.w-20 { width: 20%; } .stor-bar i.w-25 { width: 25%; } .stor-bar i.w-30 { width: 30%; } .stor-bar i.w-35 { width: 35%; } .stor-bar i.w-40 { width: 40%; } .stor-bar i.w-45 { width: 45%; } .stor-bar i.w-50 { width: 50%; } .stor-bar i.w-55 { width: 55%; } .stor-bar i.w-60 { width: 60%; } .stor-bar i.w-65 { width: 65%; } .stor-bar i.w-70 { width: 70%; } .stor-bar i.w-75 { width: 75%; } .stor-bar i.w-80 { width: 80%; } .stor-bar i.w-85 { width: 85%; } .stor-bar i.w-90 { width: 90%; } .stor-bar i.w-95 { width: 95%; } .stor-bar i.w-100 { width: 100%; } 

/* ---- 0.22.0: Galerie-Detailansicht zeigt das ganze Bild (nichts abgeschnitten, Seitenverhältnis bleibt) */
.lightbox .smedia { display: inline-block; width: auto; max-width: 96vw; max-height: 92vh; overflow: visible; background: transparent; }
.lightbox .smedia-canvas { width: auto; height: auto; max-width: 96vw; max-height: 92vh; margin: 0 auto; }
@supports (max-height: 100dvh) { .lightbox .smedia, .lightbox .smedia-canvas { max-height: 92dvh; } }

/* ---- 0.22.0: Toast-Mitteilungen */
.toasts { position: fixed; z-index: 800; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 36px rgba(15, 20, 30, .20), 0 2px 6px rgba(15, 20, 30, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .95rem; line-height: 1.35; animation: toast-in .38s cubic-bezier(.2, .9, .3, 1), toast-life 5.4s 0s forwards; }
.toast > div { flex: 1; min-width: 0; }
.toast .i { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); }
.toast-success .i { color: var(--ok); }
.toast-error { animation: toast-in .38s cubic-bezier(.2, .9, .3, 1), toast-life 9.4s 0s forwards; } .toast-error .i { color: var(--danger); }
.toast-warn .i { color: #C98A00; }
.toast-x { flex: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px 6px; font-size: .9rem; line-height: 1; border-radius: 8px; }
.toast-x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.toast-out { opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .22s ease, transform .22s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-life { 0%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast-out { transition: none; } }
/* ---- Sprechblasen (Abzeichen, Symbole) */
.tip { position: fixed; z-index: 900; max-width: min(260px, calc(100vw - 16px)); padding: 8px 11px; border-radius: 10px; background: #22282B; color: #F4F6F4; font-size: .8rem; line-height: 1.35; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); pointer-events: none; animation: tip-in .14s ease-out; }
.tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.tip.tip-below::after { bottom: auto; top: -5px; }
@keyframes tip-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tip { animation: none; } }
/* ---- Profilbild-Umschalter */
.pf-avatar-wrap { position: relative; flex: none; }
.av-flip { position: absolute; right: -6px; bottom: -4px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border: 2px solid var(--surface); border-radius: 999px; background: var(--primary); color: var(--on-primary, #fff); font-size: .72rem; font-weight: 700; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.av-flip .i { width: 14px; height: 14px; }

/* ---- 0.22.0: Ladescreen der installierten App (nur im App-Fenster; Farben kommen aus dem Adminbereich) */
.splash { display: none; position: fixed; inset: 0; z-index: 2000; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--sp-bg, #FFFCF3); color: var(--sp-fg, #10202B); animation: splash-fail .35s ease 4s forwards; }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) { .splash { display: flex; } }
html.no-splash .splash { display: none !important; }
.splash-logo { width: 96px; height: 96px; border-radius: 22px; }
.splash-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.splash-text { max-width: 22rem; opacity: .75; font-size: .95rem; }
.splash-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--sp-fg, #10202B) 18%, transparent); border-top-color: var(--sp-ac, #FF6A3D); animation: splash-spin .8s linear infinite; }
.splash.splash-out { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; animation: none; }
.splash-demo { display: flex !important; position: relative; inset: auto; z-index: 0; min-height: 280px; border: 1px solid var(--line); animation: none; }
@keyframes splash-spin { to { transform: rotate(360deg); } }
@keyframes splash-fail { to { opacity: 0; visibility: hidden; } }

/* ---- Aktivitäten-Zeitleiste, Online-Anzeige, Ideen */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.tl-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--primary); }
.tl-ico .i { width: 18px; height: 18px; }
.tl-txt small { display: block; }
.online-card .card-body { align-items: center; }
.online-dot { width: 12px; height: 12px; border-radius: 50%; background: #2fb344; box-shadow: 0 0 0 4px rgba(47, 179, 68, .2); animation: online-pulse 2.4s ease-in-out infinite; }
@keyframes online-pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 179, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }
.idea { display: flex; gap: 1rem; align-items: flex-start; }
.idea-vote { margin: 0; }
.idea .vote-btn { width: 46px; height: auto; padding: .4rem 0; border-color: var(--line); border-radius: var(--radius-sm, 10px); flex-direction: column; display: inline-flex; align-items: center; gap: 2px; }
.idea .vote-btn.on { background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); }
.idea .vote-btn:disabled { opacity: .5; cursor: default; }
.idea-note { background: var(--surface-2); padding: .5rem .7rem; border-radius: var(--radius-sm, 10px); }

/* ---- Adminbereich 2.0 */
.admin-nav { display: grid; gap: 12px; align-content: start; max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.admin-search { position: relative; margin: 0; }
.admin-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.admin-search .input { padding-left: 36px; }
.nav-group { border-top: 1px solid var(--line); padding-top: 4px; }
.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "▾"; font-size: .8rem; transition: transform .15s; }
.nav-group:not([open]) > summary::after { transform: rotate(-90deg); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger, #d33); margin-left: auto; margin-right: 8px; }
.sidenav a span { flex: 1; min-width: 0; }
.sidenav a { padding: 8px 14px; font-size: .94rem; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.adm-head h1 { margin: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 0; align-items: center; padding: 16px 18px; color: inherit; }
a.kpi:hover { text-decoration: none; border-color: var(--primary); }
.kpi-ico { grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--primary); }
.kpi-n { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi-l { font-weight: 600; }
.kpi-s { color: var(--muted); font-size: .8rem; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.task { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); color: var(--ink); font-weight: 600; }
.task:hover { text-decoration: none; background: var(--surface-2); }
.task .i { color: var(--muted); }
.task b { min-width: 2ch; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.task.open b { background: var(--danger, #d33); color: #fff; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .adm-cols { grid-template-columns: 1fr; } }
.chart { width: 100%; height: auto; }
.chart text { font-size: 7px; fill: var(--muted); }
.chart .axis { stroke: var(--line-strong); stroke-width: .6; }
.chart .bar-u { fill: var(--primary); }
.chart .bar-p { fill: var(--accent, #FF6A3D); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.lg-u { background: var(--primary); } .lg-p { background: var(--accent, #FF6A3D); }
.admin-shell .table th { position: sticky; top: 0; background: var(--surface); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin-shell .table tbody tr:hover { background: var(--surface-2); }

/* ---- Profil 2.0: Hauptspalte + Steckbrief, Inline-Editor */
.pf-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .pf-main { grid-template-columns: 1fr; } .pf-side { order: -1; } }
.facts-compact { grid-template-columns: 1fr; gap: 0; margin: 0; }
.facts-compact dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 10px; }
.facts-compact dt:first-child { margin-top: 0; }
.facts-compact dd { margin: 0; }
.pf-about { border-top: 1px solid var(--line); padding-top: 10px; color: var(--ink); font-size: .94rem; }
.pf-friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; text-align: center; }
.pf-friends a { display: grid; justify-items: center; gap: 4px; color: var(--ink); font-size: .74rem; }
.pf-friends a:hover { text-decoration: none; color: var(--primary); }
.timeline-sm li { padding: .4rem 0; font-size: .9rem; }
.timeline-sm .tl-ico { width: 28px; height: 28px; }
.pf-editor { border: 2px dashed var(--primary); }
.pf-ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 20px; }
.pf-ed-grid .field { margin: 0; }
.pf-inline { margin: 0 0 12px; }
.pf-inline .label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.pf-vis { width: auto; flex: none; max-width: 150px; }
.pf-inline .input:focus, .pf-inline .textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }

/* ---- Umzugs-Seite */
.legacy ol { margin: .5rem 0 .25rem 1.2rem; padding: 0; display: grid; gap: .35rem; }
.legacy details { border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); padding: .7rem .9rem; }
.legacy summary { cursor: pointer; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.cl-name { font-weight: 500; color: var(--primary); }

/* ---- Radio-Box (Look von WEBRADIO.ONE: dunkle Karte, Lime-Akzent, Barlow Condensed; Farben aus den Admin-Einstellungen).
   Eigene Spezifität + !important, damit weder Designs noch helle Themes Hintergrund und Schrift überschreiben. */
.card.radio-card, [data-design] .card.radio-card { background: var(--rd-bg, #2A2E30) !important; color: var(--rd-fg, #E6E7E3) !important; border: 0 !important; border-radius: 14px !important; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 14px; display: grid; gap: 12px; overflow: hidden; }
.radio-card a { text-decoration: none; }
.radio-card .radio-title, .radio-card .radio-artist, .radio-card .radio-status { margin: 0; }
.radio-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.radio-kicker { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-ac, #C5F135); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-main { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: center; }
.radio-cover { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 10px; background: var(--rd-ac, #C5F135); overflow: hidden; }
.radio-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.radio-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.radio-eq i { width: 4px; background: var(--rd-on, #24282A); border-radius: 1px; height: 40%; animation: radio-eq 1.1s ease-in-out infinite; }
.radio-eq i:nth-child(2) { animation-delay: -.3s; } .radio-eq i:nth-child(3) { animation-delay: -.6s; } .radio-eq i:nth-child(4) { animation-delay: -.9s; }
@keyframes radio-eq { 50% { height: 100%; } }
.radio-status { display: flex; align-items: center; gap: 6px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: color-mix(in srgb, var(--rd-fg, #E6E7E3) 72%, transparent); }
.radio-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rd-ac, #C5F135); animation: radio-pulse 1.8s ease-out infinite; }
.is-off .radio-dot { background: #777; animation: none; }
.is-off .radio-eq i { animation: none; height: 20%; }
@keyframes radio-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rd-ac, #C5F135) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .radio-eq i, .radio-dot { animation: none; } .radio-eq i { height: 70%; } }
.radio-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 1.4rem; line-height: 1.1; color: var(--rd-fg, #E6E7E3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-artist { color: color-mix(in srgb, var(--rd-fg, #E6E7E3) 82%, transparent); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-showline { color: var(--rd-ac, #C5F135); font-size: .75rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-showline:empty { display: none; }
.card.radio-card .radio-play { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 14px; border-radius: 999px; background: var(--rd-ac, #C5F135); color: var(--rd-on, #24282A) !important; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.card.radio-card .radio-play:hover { filter: brightness(1.08); text-decoration: none; }
.radio-play .i { width: 18px; height: 18px; }
.radio-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .75rem; color: color-mix(in srgb, var(--rd-fg, #E6E7E3) 66%, transparent); border-top: 1px solid color-mix(in srgb, var(--rd-fg, #E6E7E3) 16%, transparent); padding-top: 10px; }
.card.radio-card .radio-foot a { color: var(--rd-ac, #C5F135) !important; font-weight: 700; white-space: nowrap; }
.radio-about { margin: 0; font-size: .72rem; line-height: 1.35; color: color-mix(in srgb, var(--rd-fg, #E6E7E3) 62%, transparent); }

/* ---- Einbinden & Bild teilen */
.embed-prev { max-width: 100%; height: auto; border: 1px dashed var(--line-strong); padding: 10px; background: #fff; }
.embed-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.share-canvas { width: 100%; max-width: 540px; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); justify-self: center; }

/* ---- Umzugs-Anleitung mit Skizzen und Push-Hinweis */
.lg-steps { list-style: none; margin: .75rem 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.lg-steps li { display: grid; gap: 8px; align-content: start; }
.lg-steps p { margin: 0; font-size: .85rem; }
.lg-fig { margin: 0; background: var(--bg-soft, #f2f4f5); border-radius: 12px; padding: 10px; display: grid; place-items: center; }
.lg-fig svg { width: 100%; max-width: 150px; height: auto; }
.lg-body { fill: #2A2E30; } .lg-screen { fill: #fff; } .lg-bar { fill: #E4E8EA; } .lg-pop { fill: #fff; stroke: #C7CDD1; }
.lg-app { fill: var(--primary, #0B7A75); } .lg-appdot { fill: #fff; } .lg-field { fill: #EEF1F2; } .lg-btn { fill: var(--primary, #0B7A75); }
.lg-t { font: 600 9px/1 system-ui, sans-serif; fill: #333; } .lg-s { font-size: 8px; } .lg-b { font-size: 11px; font-weight: 800; } .lg-red { fill: #C0392B; }
.lg-row-on { fill: #DDF4E4; }
.lg-ring { fill: none; stroke: #E67E22; stroke-width: 2.5; }
.lg-ic { fill: none; stroke: #444; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } .lg-dot { fill: #444; }
.push-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.push-banner-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary, #0B7A75); color: #fff; flex: none; }
.push-banner-actions { display: flex; gap: 8px; }

/* ---- Zeitreise auf der Startseite */
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.time-card { display: grid; gap: 2px; align-content: start; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 10px); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.time-card:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.time-card.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.time-card strong { font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .time-card { transition: none; } }

/* ---- Aktivitäten mitten in der Timeline: leise, schmal, im Zeitverlauf zwischen den Beiträgen */
.tl-act { display: flex; align-items: center; gap: 10px; margin: 6px 0 6px 18px; padding: 6px 12px 6px 14px; border-left: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); background: color-mix(in srgb, var(--primary) 6%, transparent); border-radius: 0 10px 10px 0; color: inherit; text-decoration: none; font-size: .88rem; }
.tl-act:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); text-decoration: none; }
.tl-act .avatar { flex: none; }
.tl-act-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tl-act time { flex: none; white-space: nowrap; }

.ans { display: flex; gap: 12px; align-items: flex-start; }

/* ---- Admin: gelöschte Beiträge */
.del-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.del-thumb { flex: none; width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--bg-soft, #f2f4f5); display: grid; place-items: center; text-align: center; }
.co-line { color: var(--muted); font-size: .85em; font-weight: 400; }

/* ---- 1.3.0: iOS/PWA – feste Leisten bleiben beim Scrollen am Rand (eigene Compositing-Ebene, dvh statt vh) */
.app { min-height: 100vh; min-height: 100dvh; }
.bottomnav, .moresheet, .bar, .imp-banner { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bottomnav { bottom: 0; touch-action: manipulation; -webkit-touch-callout: none; }
@media (max-width: 820px) {
  html, body { overscroll-behavior-y: none; }
  .bottomnav { background: var(--surface); }
}
.tp-pages a { padding: 0 3px; }
.tp-last { font-weight: 600; }
.tp-last .i { width: 1em; height: 1em; }
.more-link { margin: 8px 0 16px; }
.more-link.is-busy { opacity: .6; pointer-events: none; }

/* ---- 1.4.0: Startseite „Deine Farben, dein Design, deine Erinnerungen“ */
.dsn-head { max-width: 680px; margin-bottom: 8px; }
.dsn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: start; }
.dsn-group h3 { font-size: 1rem; margin-bottom: 10px; }
.dsn-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.dsn-sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.dsn-sw:hover { transform: scale(1.1); }
.dsn-sw.on { box-shadow: 0 0 0 3px var(--ink); }
.sw-0 { background: #0B7A75; } .sw-1 { background: #2D6EA6; } .sw-2 { background: #C41E3A; } .sw-3 { background: #8E44AD; }
.sw-4 { background: #E67E22; } .sw-5 { background: #2E9E6B; } .sw-6 { background: #E91E8C; } .sw-7 { background: #34495E; }
.dsn-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.dsn-chip { display: grid; gap: 2px; align-content: start; text-align: left; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 10px); color: inherit; font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.dsn-chip:hover { transform: translateY(-2px); border-color: var(--primary); }
.dsn-chip.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.dsn-chip strong { font-size: .88rem; }
.dsn-mem { display: grid; gap: 8px; }
.dsn-mem-card { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 10px); color: inherit; font: inherit; cursor: pointer; }
.dsn-mem-card .i { color: var(--primary); width: 22px; height: 22px; }
.dsn-mem-card span { display: grid; }
.dsn-mem-card small { color: var(--muted); }
.dsn-mem-card[aria-expanded="true"] { border-color: var(--primary); }
.dsn-profile { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius, 10px) + 6px); overflow: hidden; box-shadow: 0 14px 40px rgba(16, 32, 43, .12); }
.dsn-cover { height: 110px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 40%, #fff)); transition: background .3s; }
.dsn-who { display: flex; gap: 12px; align-items: center; padding: 0 18px; margin-top: -30px; }
.dsn-who > div { display: grid; padding-top: 30px; }
.dsn-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--surface); background: var(--primary); color: var(--on-primary, #fff); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; transition: background .3s; }
.dsn-moods, .dsn-badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 0; }
.dsn-mood { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); font-size: .9rem; transition: background .3s, border-color .3s; }
.dsn-post { margin: 14px 18px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius, 10px); }
.dsn-post p { margin: 6px 0 10px; }
.dsn-btn { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary); color: var(--on-primary, #fff); font-size: .85rem; font-weight: 700; transition: background .3s; }
@media (max-width: 860px) { .dsn-grid { grid-template-columns: minmax(0, 1fr); } .dsn-stage { order: -1; } }
@media (prefers-reduced-motion: reduce) { .dsn-sw, .dsn-chip, .dsn-cover, .dsn-avatar, .dsn-mood, .dsn-btn { transition: none; } }
.dsn-stage { position: sticky; top: calc(var(--topbar-h, 64px) + 16px); }

/* ---- 1.4.0: Moods */
.mood-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mood-chip { display: inline-flex; align-items: center; gap: 2px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); border-radius: 999px; padding: 2px 4px 2px 12px; max-width: 100%; }
.mood-chip .mood-text { color: var(--ink); font-size: .92rem; overflow-wrap: anywhere; }
.mood-chip .mood-text:hover { text-decoration: none; color: var(--link); }
.mood-chip form { display: inline-flex; margin: 0; }
.mood-act { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.mood-act .i { width: 15px; height: 15px; }
button.mood-act:hover { background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); }
.mood-has { color: var(--primary); cursor: default; }
.mood-add { display: flex; gap: 8px; }
.mood-add .input { flex: 1; min-width: 0; }
.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mood-card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 10px); }
.mood-quote { font-size: 1.05rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.mood-quote:hover { text-decoration: none; color: var(--link); }
.mood-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mood-meta form { margin: 0; }
.mood-hero { text-align: center; padding: 32px 20px; display: grid; gap: 14px; justify-items: center; }
.mood-big { margin: 0; font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.25; max-width: 28ch; overflow-wrap: anywhere; }
.mood-people { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.person-chip:hover { text-decoration: none; border-color: var(--primary); }
@media (max-width: 520px) { .mood-add { flex-direction: column; } }

/* ---- 1.4.0: Notizen (Sprechblase über dem Profilbild, 24 Stunden) */
.notes-row { display: flex; gap: 14px; overflow-x: auto; padding: 30px 2px 6px; scrollbar-width: none; }
.notes-row::-webkit-scrollbar { display: none; }
.note-item { position: relative; flex: none; display: grid; justify-items: center; gap: 2px; width: 76px; color: var(--ink); }
.note-item:hover { text-decoration: none; }
.note-bubble { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); z-index: 2; display: block; max-width: 84px; padding: 4px 9px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(16, 32, 43, .1); font-size: .72rem; line-height: 1.25; color: var(--ink); text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer; list-style: none; }
.note-bubble::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 8px; height: 8px; background: inherit; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: translateX(-50%) rotate(45deg); }
.note-bubble::-webkit-details-marker { display: none; }
.note-empty { color: var(--muted); border-style: dashed; }
.note-name { font-size: .78rem; color: var(--muted); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-edit { position: static; }
.note-edit[open] .note-form { display: grid; }
.note-form { position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 360px); box-shadow: 0 20px 60px rgba(16, 32, 43, .3); }
.note-form[hidden] { display: none; }
.note-edit:not([open]) .note-form { display: none; }
.pf-avatar-wrap .note-bubble { top: -30px; max-width: 160px; font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) { .note-bubble { animation: note-pop .35s cubic-bezier(.2, 1.4, .4, 1) both; } @keyframes note-pop { from { opacity: 0; transform: translateX(-50%) scale(.6); } } }

/* ---- 1.4.0: Stories – mehr Hintergründe, Schriften, Farben (alle Schriften lokal) */
.sbg-6 { background: linear-gradient(160deg, #F7B733, #FC4A1A); }
.sbg-7 { background: linear-gradient(160deg, #11998E, #38EF7D); }
.sbg-8 { background: linear-gradient(160deg, #FF5F6D, #FFC371); }
.sbg-9 { background: linear-gradient(160deg, #4776E6, #8E54E9); }
.sbg-10 { background: linear-gradient(160deg, #232526, #414345); }
.sbg-11 { background: linear-gradient(160deg, #F953C6, #B91D73); }
.sbg-12 { background: linear-gradient(160deg, #00C6FF, #0072FF); }
.sbg-13 { background: linear-gradient(160deg, #1D2B64, #F8CDDA); }
.sbg-14 { background: repeating-linear-gradient(45deg, #0B7A75 0 14px, #0E8F89 14px 28px); }
.sbg-15 { background: radial-gradient(circle at 30% 20%, #FFE29F, #FFA99F 45%, #FF719A); }
@font-face { font-family: "Pacifico"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pacifico-latin-400-normal.woff2") format("woff2"); }
.sfont-pacifico { font-family: "Pacifico", cursive; font-weight: 400; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2"); }
.sfont-caveat { font-family: "Caveat", cursive; font-weight: 700; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
.sfont-bebas { font-family: "Bebas Neue", sans-serif; font-weight: 400; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/playfair-display-latin-800-normal.woff2") format("woff2"); }
.sfont-playfair { font-family: "Playfair Display", serif; font-weight: 800; }
@font-face { font-family: "Permanent Marker"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); }
.sfont-marker { font-family: "Permanent Marker", cursive; font-weight: 400; }
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/press-start-2p-latin-400-normal.woff2") format("woff2"); }
.sfont-pixel { font-family: "Press Start 2P", monospace; font-weight: 400; }
@font-face { font-family: "Lobster"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lobster-latin-400-normal.woff2") format("woff2"); }
.sfont-lobster { font-family: "Lobster", cursive; font-weight: 400; }
.sfont-sans { font-family: inherit; }
.sfont-pixel p { line-height: 1.7; } .sfont-bebas p { letter-spacing: .04em; }
.stc-w { color: #fff; } .stc-k { color: #111; } .stc-y { color: #FFE14D; } .stc-p { color: #FFB3D9; } .stc-c { color: #7DF3F0; } .stc-g { color: #B6FF9E; }
.ssz-s { font-size: 1.1rem; } .ssz-m { font-size: 1.55rem; } .ssz-l { font-size: 2.1rem; } .ssz-xl { font-size: 2.9rem; }
.sfont-bebas.ssz-m { font-size: 2rem; } .sfont-bebas.ssz-l { font-size: 2.7rem; } .sfont-bebas.ssz-xl { font-size: 3.6rem; }
.sfont-pixel.ssz-m { font-size: 1.05rem; } .sfont-pixel.ssz-l { font-size: 1.4rem; } .sfont-pixel.ssz-xl { font-size: 1.9rem; } .sfont-pixel.ssz-s { font-size: .8rem; }
.sal-l { text-align: left; } .sal-c { text-align: center; } .sal-r { text-align: right; }
.sv-body.sal-l, .sv-body.sal-r { justify-items: stretch; }
.sv-body p { overflow-wrap: anywhere; }
@media (max-width: 640px) { .ssz-xl { font-size: 2.2rem; } .ssz-l { font-size: 1.7rem; } }
/* Story-Editor */
.story-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 24px; align-items: start; }
.story-preview { position: sticky; top: calc(var(--topbar-h, 64px) + 16px); }
.story-preview .sv-body { height: auto; aspect-ratio: 9 / 16; padding: 28px 18px; border-radius: 22px; overflow: hidden; font-weight: 700; line-height: 1.3; }
.story-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 1rem; }
.opt input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.opt-color span { width: 32px; height: 32px; padding: 0; border-radius: 50%; }
.oc-w span { background: #fff; } .oc-k span { background: #111; } .oc-y span { background: #FFE14D; } .oc-p span { background: #FFB3D9; } .oc-c span { background: #7DF3F0; } .oc-g span { background: #B6FF9E; }
.story-bgs .swatch { width: 38px; height: 38px; }
@media (max-width: 760px) { .story-edit { grid-template-columns: minmax(0, 1fr); } .story-preview { position: static; order: -1; max-width: 220px; margin: 0 auto; } }

/* 1.4.0: weitere Duelle */
.duel-fuenfer { grid-template-columns: repeat(9, 1fr); gap: 4px; }
.duel-kreuzsechs { grid-template-columns: repeat(6, 1fr); gap: 4px; background: var(--surface-2); }
.duel-kreuzsechs .duel-cell { border-radius: var(--radius); background: var(--surface); font-size: 1.4rem; }
.duel-kreuzsechs .duel-cell.me { color: var(--duel-ink-me); } .duel-kreuzsechs .duel-cell.you { color: var(--duel-ink-you); }
.mine-bar { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.map-box { margin: 0; display: grid; gap: 6px; }
.map { position: relative; overflow: hidden; height: 220px; border-radius: var(--radius); background: var(--surface-2); isolation: isolate; }
.map img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 2; font-size: 1.8rem; line-height: 1; transform: translate(-50%, -92%); filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.faq-search { position: sticky; top: 0; z-index: 3; padding: 8px 0; background: var(--bg, var(--surface)); }
.faq-search .input { width: 100%; }
[data-faq-item][hidden], [data-faq-group][hidden] { display: none; }

.dz-clean { background: #FAFAFA; } .dz-clean i { background: #0D6EFD; } .dz-clean u { background: #0D6EFD; border-radius: 8px; } .dz-clean b { border-radius: 8px; border: 0; background: #fff; box-shadow: .25rem .5rem 1rem .5rem rgba(0,0,0,.05); }
.design-credit { margin: 0; }

/* 1.5.0: Profil luftiger */
.pf-id .i { margin-right: 6px; }
.pf-id .muted { line-height: 1.9; }
.pf-actions { gap: 12px; }
.pf-actions .btn .i, .btn .i { margin: 0; }
.pf-tabs { gap: 12px; padding: 0 16px; } .pf-tabs a { gap: 10px; }
.pf-tiles dd, .pf-tiles dt { margin-inline: 0; }
.pf-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 4px; }
.pf-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-size: 1.25rem; line-height: 1; cursor: help; }
.pf-badge:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pf-badge-more { font-size: .85rem; font-weight: 700; list-style: none; cursor: pointer; color: var(--muted); }
.pf-badge-more::-webkit-details-marker { display: none; }
.pf-badges-more { position: relative; }
.pf-badge-list { position: absolute; z-index: 20; left: 0; top: 46px; width: min(340px, 86vw); max-height: 60vh; overflow: auto; margin: 0; padding: 12px; list-style: none; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.pf-badge-list li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; }
.pf-badge-list small { display: block; }
.pf-side .map { height: 180px; }

/* 1.5.0: Flottenjagd und Farbwechsel */
.duel-board.duel-x { display: block; background: transparent; padding: 0; width: 100%; max-width: 520px; }
.fl-h { margin: 14px 0 6px; font-size: 1rem; }
.fl-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; padding: 6px; background: #2B5C8F; border-radius: var(--radius); width: min(100%, 400px); }
.fl-cell { aspect-ratio: 1; border: 0; border-radius: 4px; padding: 0; background: #6FA6D8; color: #fff; font-size: 1.1rem; font-weight: 800; line-height: 1; cursor: default; }
.fl-target .fl-cell:not(:disabled) { cursor: crosshair; } .fl-target .fl-cell:not(:disabled):hover { background: #94C0E8; }
.fl-1 { background: #4A5560; }
.fl-2 { background: #A9CBEA; color: #2B5C8F; }
.fl-3 { background: #E04A3A; }
.fl-4 { background: #8B1E14; }
.fl-5 { background: #6B7782; opacity: .8; }
.pc-table { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.pc-hand { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pc { width: 58px; height: 84px; border: 3px solid #fff; border-radius: 10px; font-size: 1.35rem; font-weight: 800; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); padding: 0; cursor: default; display: inline-grid; place-items: center; }
.pc:disabled { opacity: .55; }
.pc-ok { opacity: 1 !important; cursor: pointer; transform: translateY(-4px); } .pc-ok:hover { transform: translateY(-8px); }
.pc-r { background: #D8352A; } .pc-g { background: #2E9B4D; } .pc-b { background: #2B6CC4; } .pc-y { background: #F2B705; color: #3a2d00; }
.pc-x { background: linear-gradient(135deg, #D8352A 25%, #F2B705 25% 50%, #2E9B4D 50% 75%, #2B6CC4 75%); }
.pc-back { background: #2B2B33; font-size: .8rem; font-weight: 600; } .pc-back:not(:disabled) { cursor: pointer; opacity: 1; }
.pc-top { opacity: 1 !important; width: 70px; height: 100px; font-size: 1.7rem; }
.pc-color { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.pc-dot { padding: 2px 10px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .85rem; width: auto; height: auto; border: 0; box-shadow: none; }
.pc-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.pc-pick .pc { width: auto; height: auto; padding: 8px 14px; font-size: .95rem; cursor: pointer; }

.help-dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px 16px; margin: 0; }
.help-dl dt { font-weight: 700; color: var(--ink); } .help-dl dd { margin: 0; }
@media (max-width: 560px) { .help-dl { grid-template-columns: 1fr; gap: 2px; } .help-dl dd { margin-bottom: 10px; } }
.game-help h3 { margin: 16px 0 6px; }
.game-help summary { cursor: pointer; }

.verify-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 16px; }
.verify-steps li { padding-left: 4px; } .verify-steps li > strong { display: block; margin-bottom: 4px; }
.verify-steps .hint { display: block; margin-top: 4px; }
.verify-hint { align-items: center; } .verify-hint form { margin: 0; }

/* Upload-Fortschritt */
.up-progress { position: fixed; z-index: 90; left: 50%; bottom: 84px; transform: translateX(-50%); width: min(92vw, 420px); padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.18); display: grid; gap: 8px; transition: opacity .25s; }
.up-progress.up-out { opacity: 0; }
.up-label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.up-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.up-bar > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .15s linear; }
@media (min-width: 900px) { .up-progress { bottom: 24px; } }

/* Entdecken */
.disc-list, .next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.disc-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; position: relative; }
.disc-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--primary-dark); flex: none; }
.disc-ico .i { width: 22px; height: 22px; }
.disc-txt { display: grid; gap: 2px; min-width: 0; }
.disc-check { position: absolute; top: 8px; right: 10px; color: var(--ok, #2E8B57); } .disc-check .i { width: 16px; height: 16px; }
.disc-item.is-done .disc-ico { background: color-mix(in srgb, var(--ok, #2E8B57) 14%, transparent); }
.next-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; }
.disc-progress { max-width: 420px; }
@media (max-width: 560px) { .disc-item, .next-list li { grid-template-columns: 44px 1fr; } .disc-item .btn, .next-list .btn { grid-column: 2; justify-self: start; } }
.page-hint { background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; margin: 4px 0; }
.page-hint summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.page-hint ul { margin: 10px 0 6px; padding-left: 1.2em; display: grid; gap: 6px; }
.page-hint p { margin: 6px 0 0; }

/* ---- Startseite (1.7.0): ein Überblick, ein Hinweis, Schnellaktionen */
.home-hero { padding: 20px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, var(--surface)), var(--surface) 70%); }
.home-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.home-hero h1 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -.03em; }
.home-hero .chips-row, .home-hero > p { margin: 0; }
.streak-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.streak-pill:hover { text-decoration: none; border-color: var(--primary); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 600; border-radius: var(--radius-lg); transition: transform .12s, border-color .12s, box-shadow .12s; }
.quick-tile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.quick-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.quick-ico .i { width: 20px; height: 20px; }
.todo-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: inherit; border-left: 4px solid var(--accent); }
.todo-card:hover { text-decoration: none; }
.todo-card .grow { flex: 1; min-width: 180px; }
.live-card { padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 4px; }
.live-card .notes-row { padding-top: 34px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.live-head { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.live-card .stories { padding-bottom: 10px; }
@media (max-width: 520px) {
  .home-hero { padding: 16px; }
  .quick { gap: 8px; }
  .quick-tile { padding: 12px 4px 10px; font-size: .78rem; }
  .quick-ico { width: 38px; height: 38px; }
}
[data-design="clean"] .home-hero { background: #fff; }
[data-design="clean"] .quick-tile { border: 1px dashed #bbb; border-radius: 0; }
[data-design="clean"] .quick-tile:hover { transform: none; box-shadow: none; }
[data-design="clean"] .quick-ico { border-radius: 0; background: #f2f2f2; }
[data-design="clean"] .streak-pill { border-radius: 0; }
.ghost-num { width: 5rem; }

/* ---- Spiele-Seite (1.8.0): Vorschaubilder, Spiel des Tages, Gruppen */
.pv { display: block; width: 100%; height: auto; }
.pv-bg { fill: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.pv-bg2 { fill: color-mix(in srgb, var(--ink) 12%, var(--surface)); }
.pv-1 { fill: var(--primary); }
.pv-2 { fill: var(--accent); }
.pv-3 { fill: #e4572e; }
.pv-4 { fill: #e0a100; }
.pv-ink, .pv-txt { fill: var(--ink); font-family: inherit; }
.pv-dim { opacity: .55; }
.pv-on { fill: #fff; font-family: inherit; }
.pv-line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; opacity: .5; }
.game-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); overflow: hidden; }
.game-hero-pv { display: block; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.game-hero-body { padding: 22px; align-content: center; }
.game-hero-body h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.game-hero-body p { margin: 0; }
.game-jump { margin-top: 2px; }
.game-group-head h2 { margin: 0; font-size: 1.2rem; }
.game-group-head p { margin: 2px 0 0; }
.game-card { padding: 0; gap: 0; overflow: hidden; grid-template-rows: auto 1fr auto; }
.game-pv { display: block; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.game-pv .pv { height: 128px; }
.game-card-body { padding: 14px 16px 4px; }
.game-card-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.game-card-body h3 a { color: var(--ink); }
.game-card-body p { margin: 0 0 6px; }
.game-meta { display: flex; flex-direction: column; gap: 2px; }
.game-meta .i { width: 14px; height: 14px; vertical-align: -2px; }
.game-play { margin: 8px 16px 16px; justify-self: start; }
.game-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 640px) {
  .game-hero { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
[data-design="clean"] .game-hero-pv, [data-design="clean"] .pv-bg { fill: #f2f2f2; background: #f2f2f2; }
.game-hero-pv .pv { height: 100%; min-height: 150px; max-height: 240px; }
@media (max-width: 640px) { .game-hero-pv .pv { height: 150px; } }
.ghost-files { display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; align-items: center; }
.quick-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 720px) { .quick-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Profil bearbeiten: Eingabe nimmt den Platz, Sichtbarkeit bleibt schmal (1.9.0) */
.pf-row { display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem; gap: 12px; align-items: start; }
.pf-val .input, .pf-val .textarea { width: 100%; }
.pf-vis { display: flex; flex-direction: column; gap: 3px; }
.pf-vis .input { width: 100%; }
@media (max-width: 560px) { .pf-row { grid-template-columns: 1fr; gap: 6px; } .pf-vis { flex-direction: row; align-items: center; gap: 8px; } .pf-vis .input { width: auto; flex: 1; } }

/* ---- Profil gestalten (1.9.0): Stil-Klassen am Profil-Container */
.ps-shape-soft .pf-avatar .av, .ps-shape-soft .pf-avatar img, .ps-shape-soft .ps-prev-av { border-radius: 24%; }
.ps-shape-square .pf-avatar .av, .ps-shape-square .pf-avatar img, .ps-shape-square .ps-prev-av { border-radius: 4px; }
.profile[class*="ps-bg-"] { padding: 14px; border-radius: var(--radius-lg); }
.ps-bg-dots { background-image: radial-gradient(color-mix(in srgb, var(--primary) 30%, transparent) 1.6px, transparent 1.7px); background-size: 20px 20px; }
.ps-bg-grid { background-image: linear-gradient(color-mix(in srgb, var(--primary) 14%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary) 14%, transparent) 1px, transparent 1px); background-size: 24px 24px; }
.ps-bg-glow { background-image: radial-gradient(600px 300px at 15% 0, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%), radial-gradient(500px 260px at 100% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.ps-card-line .card { border: 1.5px solid var(--primary); box-shadow: none; }
.ps-card-flat .card { border-color: transparent; box-shadow: none; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.ps-cover-compact .pf-cover { height: 96px; }
.ps-cover-tall .pf-cover { height: 290px; }
/* Vorschau + Auswahlkacheln */
.ps-prev { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ps-prev .pf-cover { height: 110px; }
.ps-prev.ps-cover-compact .pf-cover { height: 60px; }
.ps-prev.ps-cover-tall .pf-cover { height: 170px; }
.ps-prev-bar { display: flex; align-items: flex-end; gap: 14px; padding: 0 16px 14px; margin-top: -34px; position: relative; }
.ps-prev-av { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--on-primary, #fff); font-size: 1.8rem; font-weight: 800; border: 4px solid var(--surface); }
.ps-prev-name { font-size: 1.15rem; }
.ps-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.ps-choice { display: block; cursor: pointer; }
.ps-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ps-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ps-choice input:checked + .ps-tile { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.ps-choice input:focus-visible + .ps-tile { outline: 2px solid var(--primary); outline-offset: 2px; }
.ps-sample { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.ps-ex-font-serif .ps-sample { font-family: Georgia, serif; }
.ps-ex-font-round .ps-sample { font-family: ui-rounded, "Nunito", system-ui, sans-serif; }
.ps-ex-font-mono .ps-sample { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ps-ex-shape-circle .ps-sample, .ps-ex-shape-soft .ps-sample, .ps-ex-shape-square .ps-sample { display: grid; place-items: center; width: 40px; height: 40px; background: var(--primary); color: #fff; font-size: 1rem; }
.ps-ex-shape-circle .ps-sample { border-radius: 50%; }
.ps-ex-shape-soft .ps-sample { border-radius: 24%; }
.ps-ex-shape-square .ps-sample { border-radius: 4px; }
.ps-ex-bg-dots .ps-sample { background-image: radial-gradient(color-mix(in srgb, var(--primary) 40%, transparent) 1.6px, transparent 1.7px); background-size: 10px 10px; }
.ps-ex-bg-grid .ps-sample { background-image: linear-gradient(color-mix(in srgb, var(--primary) 25%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary) 25%, transparent) 1px, transparent 1px); background-size: 10px 10px; }
.ps-ex-bg-glow .ps-sample { background-image: radial-gradient(40px 30px at 20% 0, color-mix(in srgb, var(--primary) 35%, transparent), transparent 80%); }
.ps-ex-bg-none .ps-sample, .ps-ex-bg-dots .ps-sample, .ps-ex-bg-grid .ps-sample, .ps-ex-bg-glow .ps-sample { width: 100%; border-radius: 8px; }
.ps-ex-card-soft .ps-sample, .ps-ex-card-line .ps-sample, .ps-ex-card-flat .ps-sample { width: 100%; border-radius: 8px; font-size: 1rem; }
.ps-ex-card-soft .ps-sample { box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.ps-ex-card-line .ps-sample { border: 1.5px solid var(--primary); }
.ps-ex-card-flat .ps-sample { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.ps-ex-cover-normal .ps-sample, .ps-ex-cover-compact .ps-sample, .ps-ex-cover-tall .ps-sample { width: 100%; background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 45%, var(--surface))); border-radius: 6px; color: transparent; }
.ps-ex-cover-normal .ps-sample { height: 28px; }
.ps-ex-cover-compact .ps-sample { height: 16px; }
.ps-ex-cover-tall .ps-sample { height: 44px; }
[data-design="clean"] .ps-choice .ps-tile, [data-design="clean"] .ps-sample { border-radius: 0; }
.ps-prev-bar > div { padding-top: 38px; }

/* ---- Admin: Übersichten (1.9.0) */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.adm-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.adm-stat strong { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }
.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.adm-tabs a { padding: 9px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.adm-tabs a:hover { text-decoration: none; color: var(--ink); }
.adm-tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }
.adm-today { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.adm-today-q { flex: 1; min-width: 220px; font-size: 1.1rem; }
.chip-link.on { background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); }
.adm-add > summary { padding: 14px 16px; cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.adm-add > summary::-webkit-details-marker, .fld > summary::-webkit-details-marker { display: none; }
.adm-add[open] > summary { border-bottom: 1px solid var(--line); }
.fld-list { display: flex; flex-direction: column; gap: 8px; }
.fld > summary { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.fld > summary:hover { background: var(--surface-2); }
.fld[open] > summary { border-bottom: 1px solid var(--line); }
.fld-order { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-2); font-size: .8rem; font-weight: 700; color: var(--muted); }
.fld-name { display: flex; flex-direction: column; min-width: 0; }
.fld-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 640px) { .fld > summary { grid-template-columns: 2rem minmax(0, 1fr); } .fld-pills { grid-column: 2; justify-content: flex-start; } }

/* ---- 1.10.0: Photowall, 18plus-Beiträge, SFW, Plus-Profil, Swipen */
.photowall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pw-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.pw-item .smedia { position: absolute; inset: 0; }
.pw-item .smedia-canvas { width: 100%; height: 100%; object-fit: cover; }
.pw-item:hover { text-decoration: none; outline: 2px solid var(--primary); }
.pw-plus .smedia { filter: blur(14px); transform: scale(1.1); }
.pw-tag { position: absolute; left: 6px; bottom: 6px; display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-size: .75rem; }
.plus-veil { position: relative; }
.plus-veil-in { transition: filter .2s; }
.plus-veil:not(.open) .plus-veil-in { filter: blur(16px); pointer-events: none; user-select: none; max-height: 340px; overflow: hidden; }
.plus-veil-btn { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(20,20,30,.78); color: #fff; font-weight: 600; }
.plus-veil.open .plus-veil-btn { display: none; }
.sfw-form { display: contents; }
.sfw-btn { position: relative; font-weight: 800; font-size: .8rem; letter-spacing: -.02em; }
.sfw-18 { position: relative; display: inline-block; padding: 0 2px; }
.sfw-18::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; background: currentColor; transform: rotate(-32deg); border-radius: 2px; }
.sfw-btn { color: var(--muted); }
.sfw-btn.on { background: var(--primary); color: var(--on-primary, #fff); }
.plus-hero { display: flex; gap: 18px; align-items: center; padding: 20px; flex-wrap: wrap; }
.plus-hero-img { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-2); }
.plus-hero-img .smedia { width: 100%; height: 100%; }
.plus-hero-txt { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.plus-hero-txt h1 { margin: 0; }
.plus-headline { margin: 0; font-size: 1.05rem; color: var(--muted); }
.facts-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; margin: 0; }
.facts-wide > div { display: flex; flex-direction: column; gap: 2px; }
.facts-wide dt { color: var(--muted); font-size: .8rem; }
.facts-wide dd { margin: 0; font-weight: 600; }
.pr-group h3 { margin: 4px 0 6px; font-size: .95rem; }
.pr-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.pr-state { min-width: 84px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pr-y .chip { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.pr-n .chip { text-decoration: line-through; opacity: .8; }
.pr-set { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 4px; }
.pr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pr-name { font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 5px 12px; font-size: .85rem; color: var(--muted); }
.seg input:checked + span { background: var(--primary); color: var(--on-primary, #fff); font-weight: 600; }
.seg .seg-n input:checked + span { background: var(--ink); color: var(--surface); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -2px; }

/* Swipen */
.swipe-page { max-width: 460px; margin-inline: auto; }
.swipe-stack { position: relative; height: 560px; touch-action: pan-y; }
.swipe-card { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); box-shadow: 0 6px 18px rgba(0,0,0,.08); overflow: hidden; user-select: none;
  --swipe-x: 0px; --swipe-r: 0deg; transform: translateX(var(--swipe-x)) rotate(var(--swipe-r)); transition: transform .26s ease, opacity .26s ease; cursor: grab; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.swipe-out { opacity: 0; }
.swipe-card:not(:last-child) { transform: scale(.96) translateY(10px); pointer-events: none; }
.swipe-photo { flex: none; display: grid; place-items: center; padding: 28px 0 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface)); }
.swipe-photo .av { width: 150px !important; height: 150px !important; font-size: 3rem; border-radius: 50%; object-fit: cover; }
.swipe-info { flex: 1; padding: 6px 22px 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.swipe-info h2 { margin: 0; font-size: 1.4rem; }
.swipe-info p { margin: 0; }
.swipe-actions { display: flex; justify-content: center; gap: 28px; padding: 14px; }
.swipe-btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.swipe-btn svg { width: 26px; height: 26px; }
.swipe-badge { position: absolute; top: 22px; padding: 6px 14px; border: 3px solid; border-radius: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transition: opacity .15s; }
.swipe-yes { left: 18px; color: #1a9a5a; transform: rotate(-12deg); }
.swipe-no { right: 18px; color: #c43d3d; transform: rotate(12deg); }
.swipe-card.want-yes .swipe-yes, .swipe-card.want-no .swipe-no { opacity: 1; }
.swipe-done { text-align: center; padding: 60px 10px; }
@media (max-width: 520px) { .swipe-stack { height: 520px; } }
@media (prefers-reduced-motion: reduce) { .swipe-card { transition: none; } }

/* ---- 1.10.0: weitere Schriften (SIL Open Font License, lokal eingebunden – keine Fremdserver) */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/merriweather-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/merriweather-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dancing-script-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dancing-script-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/quicksand-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/quicksand-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/comfortaa-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/comfortaa-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

/* Profil-Schriften */
.profile.ps-font-serif, .ps-font-serif .pf-id h1, .ps-font-serif h1, .ps-font-serif h2, .ps-font-serif h3, .ps-font-serif .entry-body { font-family: Georgia, "Times New Roman", serif; }
.profile.ps-font-slab, .ps-font-slab .pf-id h1, .ps-font-slab h1, .ps-font-slab h2, .ps-font-slab h3, .ps-font-slab .entry-body { font-family: Merriweather, Rockwell, "Roboto Slab", Georgia, serif; }
.profile.ps-font-lora, .ps-font-lora .pf-id h1, .ps-font-lora h1, .ps-font-lora h2, .ps-font-lora h3, .ps-font-lora .entry-body { font-family: Lora, Georgia, serif; }
.profile.ps-font-elegant, .ps-font-elegant .pf-id h1, .ps-font-elegant h1, .ps-font-elegant h2, .ps-font-elegant h3, .ps-font-elegant .entry-body { font-family: "Playfair Display", Georgia, serif; }
.profile.ps-font-round, .ps-font-round .pf-id h1, .ps-font-round h1, .ps-font-round h2, .ps-font-round h3, .ps-font-round .entry-body { font-family: Nunito, ui-rounded, "Segoe UI", system-ui, sans-serif; }
.profile.ps-font-soft, .ps-font-soft .pf-id h1, .ps-font-soft h1, .ps-font-soft h2, .ps-font-soft h3, .ps-font-soft .entry-body { font-family: Quicksand, Nunito, system-ui, sans-serif; }
.profile.ps-font-geo, .ps-font-geo .pf-id h1, .ps-font-geo h1, .ps-font-geo h2, .ps-font-geo h3, .ps-font-geo .entry-body { font-family: Comfortaa, "Century Gothic", Avenir, sans-serif; }
.profile.ps-font-tech, .ps-font-tech .pf-id h1, .ps-font-tech h1, .ps-font-tech h2, .ps-font-tech h3, .ps-font-tech .entry-body { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; }
.profile.ps-font-mono, .ps-font-mono .pf-id h1, .ps-font-mono h1, .ps-font-mono h2, .ps-font-mono h3, .ps-font-mono .entry-body { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.profile.ps-font-condensed, .ps-font-condensed .pf-id h1, .ps-font-condensed h1, .ps-font-condensed h2, .ps-font-condensed h3, .ps-font-condensed .entry-body { font-family: Oswald, "Barlow Condensed", "Arial Narrow", sans-serif; }
.profile.ps-font-poster, .ps-font-poster .pf-id h1, .ps-font-poster h1, .ps-font-poster h2, .ps-font-poster h3, .ps-font-poster .entry-body { font-family: "Bebas Neue", "Barlow Condensed", Impact, sans-serif; }
.profile.ps-font-script, .ps-font-script .pf-id h1, .ps-font-script h1, .ps-font-script h2, .ps-font-script h3, .ps-font-script .entry-body { font-family: "Dancing Script", Pacifico, cursive; }
.profile.ps-font-hand, .ps-font-hand .pf-id h1, .ps-font-hand h1, .ps-font-hand h2, .ps-font-hand h3, .ps-font-hand .entry-body { font-family: Caveat, "Segoe Print", "Bradley Hand", cursive; }
.profile.ps-font-swing, .ps-font-swing .pf-id h1, .ps-font-swing h1, .ps-font-swing h2, .ps-font-swing h3, .ps-font-swing .entry-body { font-family: Pacifico, Lobster, cursive; }
.profile.ps-font-marker, .ps-font-marker .pf-id h1, .ps-font-marker h1, .ps-font-marker h2, .ps-font-marker h3, .ps-font-marker .entry-body { font-family: "Permanent Marker", Caveat, cursive; }
.profile.ps-font-pixel, .ps-font-pixel .pf-id h1, .ps-font-pixel h1, .ps-font-pixel h2, .ps-font-pixel h3, .ps-font-pixel .entry-body { font-family: "Press Start 2P", ui-monospace, monospace; }
.ps-font-pixel .entry-body, .ps-font-pixel h1, .ps-font-pixel h2, .ps-font-pixel h3 { line-height: 1.5; letter-spacing: 0; }
.ps-font-pixel h1, .ps-font-pixel h2, .ps-font-pixel h3 { font-size: .8em; }
.ps-font-script h1, .ps-font-hand h1, .ps-font-swing h1 { font-weight: 700; }

/* Schrift der Oberfläche (je Mitglied wählbar) */
body.ps-ui-serif { font-family: Georgia, "Times New Roman", serif; }
body.ps-ui-serif :is(input, textarea, select, button) { font-family: inherit; }
body.ps-ui-round { font-family: Nunito, ui-rounded, "Segoe UI", system-ui, sans-serif; }
body.ps-ui-round :is(input, textarea, select, button) { font-family: inherit; }
body.ps-ui-soft { font-family: Quicksand, Nunito, system-ui, sans-serif; }
body.ps-ui-soft :is(input, textarea, select, button) { font-family: inherit; }
body.ps-ui-tech { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; }
body.ps-ui-tech :is(input, textarea, select, button) { font-family: inherit; }
body.ps-ui-lora { font-family: Lora, Georgia, serif; }
body.ps-ui-lora :is(input, textarea, select, button) { font-family: inherit; }
body.ps-ui-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
body.ps-ui-mono :is(input, textarea, select, button) { font-family: inherit; }

/* Schrift-Muster in „Profil gestalten“ */
.ps-ex-font-serif .ps-sample, .ps-ex-ui-serif .ps-sample { font-family: Georgia, serif; }
.ps-ex-font-slab .ps-sample, .ps-ex-ui-slab .ps-sample { font-family: Merriweather, Rockwell, serif; }
.ps-ex-font-lora .ps-sample, .ps-ex-ui-lora .ps-sample { font-family: Lora, Georgia, serif; }
.ps-ex-font-elegant .ps-sample, .ps-ex-ui-elegant .ps-sample { font-family: "Playfair Display", Georgia, serif; }
.ps-ex-font-round .ps-sample, .ps-ex-ui-round .ps-sample { font-family: Nunito, system-ui, sans-serif; }
.ps-ex-font-soft .ps-sample, .ps-ex-ui-soft .ps-sample { font-family: Quicksand, system-ui, sans-serif; }
.ps-ex-font-geo .ps-sample, .ps-ex-ui-geo .ps-sample { font-family: Comfortaa, sans-serif; }
.ps-ex-font-tech .ps-sample, .ps-ex-ui-tech .ps-sample { font-family: "Space Grotesk", system-ui, sans-serif; }
.ps-ex-font-mono .ps-sample, .ps-ex-ui-mono .ps-sample { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ps-ex-font-condensed .ps-sample, .ps-ex-ui-condensed .ps-sample { font-family: Oswald, sans-serif; }
.ps-ex-font-poster .ps-sample, .ps-ex-ui-poster .ps-sample { font-family: "Bebas Neue", Impact, sans-serif; }
.ps-ex-font-script .ps-sample, .ps-ex-ui-script .ps-sample { font-family: "Dancing Script", cursive; }
.ps-ex-font-hand .ps-sample, .ps-ex-ui-hand .ps-sample { font-family: Caveat, cursive; }
.ps-ex-font-swing .ps-sample, .ps-ex-ui-swing .ps-sample { font-family: Pacifico, cursive; }
.ps-ex-font-marker .ps-sample, .ps-ex-ui-marker .ps-sample { font-family: "Permanent Marker", cursive; }
.ps-ex-font-pixel .ps-sample, .ps-ex-ui-pixel .ps-sample { font-family: "Press Start 2P", monospace; }
.ps-ex-font-pixel .ps-sample { font-size: .9rem; }
.ps-choices { flex-wrap: wrap; }

/* ---- 1.11.0: mehrere Fotos je Beitrag */
.post-grid { display: grid; gap: 4px; border-radius: var(--radius); overflow: hidden; }
.pg-2 { grid-template-columns: 1fr 1fr; }
.pg-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pg-3 .pg-item:first-child { grid-row: span 2; }
.pg-4 { grid-template-columns: 1fr 1fr; }
.pg-all { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pg-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.pg-all .pg-item { aspect-ratio: auto; }
.pg-item .smedia { position: absolute; inset: 0; }
.pg-all .pg-item .smedia { position: relative; }
.pg-item .smedia-canvas { width: 100%; height: 100%; object-fit: cover; }
.pg-all .pg-item .smedia-canvas { object-fit: contain; height: auto; }
.pg-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; font-weight: 700; }
/* Geführter Foto-Upload im Beitrags-Formular */
.cp { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.cp[hidden] { display: none; }
.cp-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.cp-steps { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.cp-steps li { display: inline-flex; gap: 6px; align-items: center; }
.cp-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); font-size: .7rem; }
.cp-steps .on { color: var(--ink); font-weight: 600; }
.cp-steps .on b { background: var(--primary); color: var(--on-primary, #fff); }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cp-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.cp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cp-rm svg { width: 14px; height: 14px; }
.cp-first { position: absolute; left: 4px; bottom: 4px; font-size: .68rem; background: rgba(0,0,0,.65); color: #fff; padding: 1px 7px; border-radius: 999px; }
.cp-add { display: grid; place-items: center; border: 2px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 1.6rem; }
.cp-add:hover { border-color: var(--primary); color: var(--primary); }
.cp-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.cp-bar > i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.cp-bar > i.w-0 { width: 0; } .cp-bar > i.w-25 { width: 25%; } .cp-bar > i.w-50 { width: 50%; } .cp-bar > i.w-75 { width: 75%; } .cp-bar > i.w-100 { width: 100%; }

/* ---- 1.11.1: Notizen-Leiste – Sprechblasen im Fluss statt abgeschnitten */
.notes-row { gap: 12px; padding: 4px 2px 8px; align-items: stretch; scroll-snap-type: x proximity; }
.notes-row .note-item { width: 92px; gap: 8px; grid-template-rows: 1fr auto auto; align-content: end; scroll-snap-align: start; }
.notes-row .note-bubble { position: relative; top: auto; left: auto; transform: none; max-width: 100%; width: 100%; min-height: 3.1em; display: -webkit-box; -webkit-line-clamp: 3; align-self: end; padding: 6px 9px; font-size: .74rem; word-break: break-word; overflow-wrap: anywhere; }
.notes-row .note-bubble::after { bottom: -5px; }
.notes-row .note-empty { display: grid; place-items: center; -webkit-line-clamp: unset; }
.notes-row .note-name { font-size: .76rem; max-width: 92px; }
.notes-row .note-item:hover .note-bubble { border-color: var(--primary); }
.live-card .notes-row { padding-top: 4px; }
@media (prefers-reduced-motion: no-preference) { .notes-row .note-bubble { animation: note-pop2 .3s ease both; } @keyframes note-pop2 { from { opacity: 0; transform: translateY(6px); } } }
.notes-row .note-bubble { display: flex; align-items: center; justify-content: center; -webkit-line-clamp: unset; overflow: visible; }
.notes-row .nb-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notes-row .note-bubble { overflow-wrap: break-word; word-break: normal; }

/* Fotoansicht (Beitragsfotos) */
.post-media[data-photo], .pg-item[data-photo], .pw-item[data-photo] { cursor: zoom-in; }
body.pv-open { overflow: hidden; }
.photoview { flex-direction: column; touch-action: pan-y; }
.pv-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 0; }
.pv-load { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; background: rgba(255, 255, 255, .15); color: #fff; }
.pv-prev { left: 12px; }
.pv-next { right: 12px; }
.pv-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.pv-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: .9rem; font-variant-numeric: tabular-nums; pointer-events: none; }
@media (max-width: 600px) { .pv-nav { width: 40px; height: 40px; font-size: 1.6rem; } .pv-prev { left: 6px; } .pv-next { right: 6px; } }

/* Abzeichen-Seite */
.bd-hero { display: grid; gap: 16px; }
.bd-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bd-hero-top h1 { margin: 0 0 4px; }
.bd-ring { flex: none; display: grid; justify-items: center; line-height: 1.1; padding: 10px 18px; border-radius: var(--radius, 12px); background: var(--surface-2); }
.bd-ring strong { font-size: 1.8rem; }
.bd-ring span { font-size: .75rem; color: var(--muted); }
.bd-progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bd-progress::-webkit-progress-bar { background: var(--surface-2); }
.bd-progress::-webkit-progress-value { background: var(--primary); border-radius: 99px; }
.bd-progress::-moz-progress-bar { background: var(--primary); border-radius: 99px; }
.bd-streak { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius, 12px); }
.streak-flame { font-size: 2rem; }
.streak-n { font-weight: 800; font-size: 1.15rem; }
.chal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chal-step { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius, 12px); opacity: .7; }
.chal-step.done { opacity: 1; border-style: solid; border-color: var(--primary); background: var(--surface-2); }
.chal-ico { font-size: 1.8rem; }
.bd-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-filter .chip { cursor: pointer; }
.bd-filter .chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.bd-group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bd-group-h h2 { margin: 0; }
.bd-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-tile { display: grid; align-content: start; justify-items: center; gap: 4px; padding: 14px 10px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius, 12px); background: var(--surface); }
.badge-tile:not(.got) { background: var(--surface-2); }
.badge-tile:not(.got) .badge-sym { filter: grayscale(1); opacity: .45; }
.badge-tile:not(.got) strong { color: var(--muted); }
.badge-tile.got { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.badge-sym { font-size: 2.2rem; line-height: 1.1; }
.bd-state { margin-top: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.badge-tile.got .bd-state { color: var(--primary-dark, var(--primary)); }
[data-bd-filter-on="got"] .badge-tile[data-bd="open"], [data-bd-filter-on="open"] .badge-tile[data-bd="got"] { display: none; }
@media (max-width: 480px) { .badge-grid { grid-template-columns: repeat(2, 1fr); } }

/* Gesperrte (verwischte) Plus-Inhalte */
.plus-lock { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius, 12px); background: var(--surface-2); border: 1px dashed var(--border); }
.plus-lock-pic, .pw-lockico { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #8d6ba8, #c46b8d); filter: blur(.5px); }
.plus-lock-pic svg, .pw-lockico svg { width: 28px; height: 28px; }
.pw-locked { display: grid; place-items: center; background: linear-gradient(135deg, #8d6ba8, #c46b8d); aspect-ratio: 1; }
.pw-locked .pw-lockico { background: none; }
.plus-lock-txt p { margin: 4px 0 8px; }

/* Gruppenchats, Einmal-Bilder */
.av-group { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--primary); }
.chat-who .av-group { width: 40px; height: 40px; }
.av-group svg { width: 22px; height: 22px; }
.av-plus { background: linear-gradient(135deg, #8d6ba8, #c46b8d); color: #fff; }
.bubble .b-from { display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 700; color: var(--primary); }
.bubble.tip { align-self: center; max-width: 88%; display: grid; gap: 4px; text-align: left; background: color-mix(in srgb, #c46b8d 14%, var(--surface)); border: 1px dashed #c46b8d; color: inherit; }
.bubble.tip .tip-head { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #a24a70; display: flex; align-items: center; gap: 6px; }
.bubble.tip .tip-head svg { width: 14px; height: 14px; }
.once-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; background: var(--primary); color: #fff; }
.once-btn:disabled { opacity: .6; }
.once-state { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; opacity: .85; }
.once-btn svg, .once-state svg { width: 16px; height: 16px; }
.chat-once { font-size: .8rem; font-weight: 800; }
.chat-once.on { background: var(--primary); color: #fff; }
.chat-new .menu a svg { width: 16px; height: 16px; vertical-align: -3px; }

/* Antworten, Privatsphäre-Hinweis */
.comment.is-reply { margin-left: 34px; position: relative; }
.comment.is-reply::before { content: ''; position: absolute; left: -18px; top: 0; bottom: 50%; width: 12px; border-left: 2px solid var(--border); border-bottom: 2px solid var(--border); border-bottom-left-radius: 8px; }
.reply-box { display: inline; }
.reply-box summary { display: inline; cursor: pointer; color: var(--primary); font-weight: 600; list-style: none; }
.reply-box summary::-webkit-details-marker { display: none; }
.reply-box[open] > summary { margin-bottom: 6px; }
.reply-box .comment-form { margin-top: 6px; }
.privacy-info { display: inline-block; position: relative; vertical-align: middle; }
.privacy-info summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.privacy-info summary::-webkit-details-marker { display: none; }
.privacy-info summary:hover, .privacy-info[open] summary { background: var(--surface-2); color: var(--primary); }
.privacy-info summary svg { width: 18px; height: 18px; }
.privacy-pop { position: absolute; z-index: 30; left: 0; top: 32px; width: min(300px, 80vw); padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); font-size: .85rem; font-weight: 400; text-align: left; }
.privacy-pop p { margin: 6px 0 0; }


/* Wartungsseite */
.mt-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface-2); }
.mt-main { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.mt-card { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; }
.mt-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.mt-logo svg, .mt-logo img { height: 34px; width: auto; }
.mt-icon { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.mt-icon svg { width: 26px; height: 26px; }
.mt-card h1 { margin: 0 0 12px; font-size: clamp(1.5rem, 4vw, 1.9rem); }
.mt-reason { margin: 0 auto; max-width: 42ch; color: var(--ink); line-height: 1.6; white-space: normal; }
.mt-until { margin: 22px auto 0; display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: var(--radius); background: var(--surface-2); }
.mt-until span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mt-until strong { font-size: 1.05rem; }
.mt-note { margin: 24px 0 0; font-size: .88rem; color: var(--muted); }
.mt-foot { padding: 18px 16px 26px; text-align: center; }
.mt-foot nav { display: flex; gap: 20px; justify-content: center; font-size: .85rem; }
.mt-foot a { color: var(--muted); }

/* Admin: Umzug & Sicherungen */
.steps-list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.backup-parts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.backup-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.backup-actions form { margin: 0; }
