@font-face { font-family: InterLocal; src: url('fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* ===== AquaBot Design-System ===== */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1217; --sidebar: #0E1217; --card: #141A21; --input: #0E1217;
  --text: #F1F5F9; --muted: #9AA3AE; --border: #242B34; --line: #242B34; --hover: rgba(154,163,174,.08);
  --primary: #19CFD2; --primary-hover: #3DDADC; --primary-ink: #06191B; --primary-text: #19CFD2;
  --primary-soft: rgba(25,207,210,.12); --primary-ring: rgba(25,207,210,.30);
  --ok: #22C55E; --warn: #F59E0B; --err: #EF4444; --warn-text: #F59E0B; --err-text: #F87171;
  --bubble-user: rgba(25,207,210,.14); --bubble-user-border: rgba(25,207,210,.30);
  --shadow: 0 1px 2px rgba(0,0,0,.30), 0 10px 28px rgba(0,0,0,.20);
  --overlay: rgba(2,6,12,.66);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F7FA; --sidebar: #FFFFFF; --card: #FFFFFF; --input: #FFFFFF;
  --text: #0F172A; --muted: #64748B; --border: #E2E8F0; --line: #E2E8F0; --hover: rgba(15,23,42,.045);
  --primary: #19CFD2; --primary-text: #0B7C84; --primary-soft: rgba(25,207,210,.14); --primary-ring: rgba(25,207,210,.38);
  --warn-text: #B45309; --err-text: #DC2626;
  --bubble-user: rgba(25,207,210,.14); --bubble-user-border: rgba(0,160,163,.35);
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.06);
  --overlay: rgba(15,23,42,.45);
}
:root {
  --radius: 18px; --radius-sm: 14px; --topbar-h: 64px; --bottomnav-h: 64px; --ease: cubic-bezier(.2,.7,.2,1);
  --font-body: InterLocal, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: InterLocal, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; letter-spacing: -.02em; font-family: var(--font-head); }
h1 { font-size: 1.4rem; font-weight: 800; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); font-size: .9rem; }
.error { color: var(--err-text); font-size: .92rem; margin: .75rem 0 0; }
.warn { color: var(--warn-text); }
[hidden] { display: none !important; }
small { color: var(--muted); font-weight: 500; }
code { background: var(--hover); padding: .1rem .35rem; border-radius: 6px; font-size: .9em; }

.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Formulare ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: .6rem .85rem; color: var(--text);
  background: var(--input); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--muted) 55%, var(--border)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
}
textarea { resize: vertical; }
label { display: block; margin-bottom: 1rem; font-size: .82rem; font-weight: 500; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: .35rem; font-weight: 400; }
input[type=checkbox] { accent-color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .55rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text); font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .08s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--hover); border-color: color-mix(in srgb, var(--muted) 55%, var(--border)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, .tabs button:focus-visible, .chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; box-shadow: 0 6px 18px rgba(25,207,210,.18); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { color: var(--err-text); border-color: color-mix(in srgb, var(--err) 40%, var(--border)); }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 10%, transparent); border-color: var(--err); }
.btn.danger-solid { background: var(--err); border-color: var(--err); color: #fff; font-weight: 600; }
.btn.danger-solid:hover { background: #dc2626; border-color: #dc2626; }
.btn.small { min-height: 36px; padding: .3rem .8rem; font-size: .88rem; }
.btn.link { border: 0; background: none; color: var(--primary-text); }
.btn.link:hover { background: var(--primary-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.on { background: var(--err); border-color: var(--err); color: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .7; } }
.btn .ico { width: 18px; height: 18px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; min-width: 40px; padding: 0 .65rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn .lbl { font-size: .88rem; font-weight: 500; }
.i-sun, .i-moon { display: none; }
:root:not([data-theme="light"]) .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: block; }

/* ---------- Layout ---------- */
.shell { --side-w: 248px; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; transition: grid-template-columns .22s var(--ease); }
.side-collapsed .shell { --side-w: 76px; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1rem .75rem; background: var(--sidebar); border-right: 1px solid var(--border); z-index: 30; overflow: hidden;
}
.side-brand, .auth-brand { display: flex; align-items: center; gap: .7rem; padding: .25rem .5rem; }
.brand-text { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.logo {
  width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 11px;
  background: var(--primary-soft); color: var(--primary-text); border: 1px solid var(--primary-ring);
}
.logo-mobile { display: none; width: 34px; height: 34px; }
.tabs { display: flex; flex-direction: column; gap: .25rem; }
.tabs button {
  display: flex; align-items: center; gap: .8rem; min-height: 44px; padding: .55rem .75rem; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); font-weight: 500; cursor: pointer; text-align: left; white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.tabs button:hover { background: var(--hover); color: var(--text); }
.tabs button.active { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; box-shadow: inset 2px 0 0 var(--primary); }
.side-collapse {
  margin-top: auto; display: flex; align-items: center; gap: .8rem; min-height: 40px; padding: .5rem .75rem; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); cursor: pointer; font-size: .88rem; white-space: nowrap;
}
.side-collapse:hover { background: var(--hover); color: var(--text); }
.side-collapsed .side-collapse .ico { transform: rotate(180deg); }
.side-collapsed .brand-text, .side-collapsed .tabs button span, .side-collapsed .side-collapse span { display: none; }
.side-collapsed .tabs button, .side-collapsed .side-collapse, .side-collapsed .side-brand { justify-content: center; padding-left: 0; padding-right: 0; }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; gap: .75rem;
  padding: 0 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border);
}
.page-title { margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.top-actions select { width: min(280px, 42vw); min-height: 40px; padding-top: .4rem; padding-bottom: .4rem; }
main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 1.5rem; padding-bottom: 3rem; animation: fadeUp .28s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Karten ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1rem; box-shadow: var(--shadow);
}
.card > h2:first-child, .card > h3:first-child { margin-bottom: .6rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 160px; min-width: 0; }
.row > .btn { flex: 0 0 auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.grid2 label { margin: 0; }

.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin: .25rem 0 1rem; }
.chip {
  border: 1px solid var(--border); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 500; cursor: pointer;
  color: var(--muted); background: transparent; user-select: none; transition: all .15s var(--ease);
}
.chip:hover { color: var(--text); background: var(--hover); }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }
.legend { font-size: .82rem; color: var(--muted); display: flex; gap: 1.1rem; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-right: .4rem; vertical-align: 0; }

.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.chart-card { margin: 0; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.chart-card:hover { border-color: var(--primary-ring); }
.chart-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.chart-card .head h3 { margin: 0; color: var(--muted); font-weight: 500; font-size: .88rem; }
.chart-card .val { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chart-card .val small { font-size: .8rem; }
.chart-card .delta { font-size: .8rem; color: var(--muted); margin-top: .1rem; }
.chart-box { position: relative; height: 190px; margin-top: .75rem; }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: .15rem; background: var(--hover); border: 1px solid var(--border);
  border-radius: 8px; padding: .05rem .5rem; margin: 0 .3rem .3rem 0; font-size: .82rem; white-space: nowrap;
}
.pill button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 .3rem; font-size: 1rem; line-height: 1; }
.pill button:hover { color: var(--err-text); }

.result { background: var(--primary-soft); border: 1px solid var(--primary-ring); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-top: 1rem; }
.result .big { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.result p:last-child { margin-bottom: 0; }

/* ---------- Auth ---------- */
.auth {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(48rem 24rem at 50% -8%, rgba(25,207,210,.09), transparent 65%), var(--bg);
}
.auth-card { width: 100%; max-width: 400px; padding: 1.75rem; animation: fadeUp .35s var(--ease); }
.auth-brand { padding: 0; margin-bottom: .25rem; }
.auth-sub { margin-bottom: 1.5rem; }
.auth-card .btn { width: 100%; margin-top: .25rem; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h) - 3.5rem); height: calc(100dvh - var(--topbar-h) - 3.5rem); min-height: 420px; padding: 1rem; margin: 0; }
.chat-tools { display: flex; gap: .6rem .9rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; font-size: .88rem; }
.chat-tools label { margin: 0; display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-size: .88rem; flex: 1 1 220px; }
.chat-tools input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none; width: 40px; min-height: 0; height: 24px; padding: 0; margin: 0;
  border: 0; border-radius: 999px; background: var(--border); position: relative; cursor: pointer; transition: background .2s var(--ease);
}
.chat-tools input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.chat-tools input[type=checkbox]:checked { background: var(--primary); }
.chat-tools input[type=checkbox]:checked::after { transform: translateX(16px); }
.chat-tools input[type=checkbox]:focus-visible { box-shadow: 0 0 0 3px var(--primary-ring); }
.chat-log { flex: 1; overflow-y: auto; padding: .25rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: .7rem .95rem; border-radius: 16px; border: 1px solid var(--border); word-wrap: break-word; overflow-wrap: anywhere; animation: fadeUp .2s var(--ease); }
.msg.user { align-self: flex-end; background: var(--bubble-user); border-color: var(--bubble-user-border); border-bottom-right-radius: 5px; }
.msg.model { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 5px; }
.msg.error { align-self: center; color: var(--err-text); border-color: color-mix(in srgb, var(--err) 45%, var(--border)); background: color-mix(in srgb, var(--err) 8%, transparent); }
.msg p { margin: 0 0 .45rem; }
.msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: .2rem 0 .5rem 1.2rem; padding: 0; }
.msg li { margin-bottom: .15rem; }
.msg img { max-width: 100%; max-height: 260px; border-radius: 12px; display: block; margin-bottom: .5rem; }
.typing { color: var(--muted); }
.typing::after { content: '...'; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.chat-input { display: flex; gap: .5rem; align-items: flex-end; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.chat-input textarea { resize: none; min-height: 44px; max-height: 140px; }
.chat-input .btn { width: 44px; min-width: 44px; padding: 0; flex: none; }
.preview { display: flex; align-items: center; gap: .75rem; margin-top: .6rem; }
.preview img { height: 56px; border-radius: 10px; border: 1px solid var(--border); }
.notes { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem; font-size: .88rem; margin-bottom: .6rem; }
#memBox .card { box-shadow: none; background: var(--bg); }

/* ---------- Powered by ---------- */
.powered { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .72rem; text-decoration: none; opacity: .8; transition: opacity .15s var(--ease); }
.powered:hover { opacity: 1; }
.powered img { height: 20px; width: auto; max-width: 120px; display: block; object-fit: contain; }
.foot { display: flex; justify-content: center; padding: 0 1rem 1.5rem; margin-top: auto; }
.auth-foot { display: flex; justify-content: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ---------- Sprachgespräch ---------- */
body.vc-open { overflow: hidden; }
.vc {
  position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; padding: 1rem; padding-top: calc(1rem + env(safe-area-inset-top)); padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  background: radial-gradient(40rem 26rem at 50% 38%, rgba(25,207,210,.10), transparent 70%), var(--bg); animation: fade .2s ease-out;
}
.vc-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-head); font-size: 1.05rem; }
.vc-actions { display: flex; gap: .5rem; }
.vc-settings { max-width: 420px; width: 100%; margin: 1rem auto 0; }
.vc-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 0; text-align: center; }
.vc-badge { font-size: .85rem; color: var(--warn-text); font-family: var(--font-body, inherit); }
.vc-bottom { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-bottom: .5rem; }
.vc-orb { position: relative; width: 220px; height: 220px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.vc-orb .glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(25,207,210,.55), rgba(25,140,255,.18) 55%, transparent 72%); filter: blur(18px); opacity: .55; transition: opacity .4s; }
.vc-orb .core { position: relative; z-index: 2; width: 150px; height: 150px; border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%; background: radial-gradient(circle at 34% 28%, #c8fffd 0%, #19CFD2 38%, #1479c9 78%, #0b3d8a 100%); box-shadow: inset -10px -14px 30px rgba(5,30,90,.45), inset 8px 10px 22px rgba(255,255,255,.35), 0 0 60px rgba(25,207,210,.55); transition: transform .3s var(--ease), filter .3s; }
.vc-orb .ring { position: absolute; inset: 24px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; }
.vc[data-state="listening"] .core { animation: orbIdle 4s ease-in-out infinite; }
.vc[data-state="listening"] .ring { animation: ripple 2.4s ease-out infinite; }
.vc[data-state="listening"] .ring.r2 { animation-delay: 1.2s; }
.vc[data-state="thinking"] .core { animation: orbMorph 1.6s ease-in-out infinite; filter: saturate(.7) brightness(.9); }
.vc[data-state="thinking"] .glow { opacity: .3; }
.vc[data-state="speaking"] .core { animation: orbMorph 1.1s ease-in-out infinite, orbPulse .9s ease-in-out infinite; }
.vc[data-state="speaking"] .glow { opacity: .95; }
.vc[data-state="paused"] .core { filter: grayscale(.85) brightness(.7); box-shadow: none; }
.vc[data-state="paused"] .glow { opacity: .12; }
@keyframes orbIdle { 50% { transform: scale(1.05); } }
@keyframes orbPulse { 50% { transform: scale(1.1); } }
@keyframes orbMorph { 0%, 100% { border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%; } 33% { border-radius: 55% 45% 42% 58% / 48% 56% 44% 52%; } 66% { border-radius: 44% 56% 58% 42% / 56% 44% 56% 44%; } }
@keyframes ripple { 0% { transform: scale(.75); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
.vc-controls { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.vc-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .2s; }
.vc-btn:hover { transform: scale(1.06); }
.vc-btn .ico { width: 24px; height: 24px; }
.vc-btn.off { background: color-mix(in srgb, var(--err) 25%, var(--card)); color: var(--err-text); }
.vc-btn.end { background: #e5484d; border-color: #e5484d; color: #fff; }
/* Mikro-/Sprachknopf im Chat */
.voice-fab { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #04252a; background: none; padding: 0; }
.voice-fab .fab-orb { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #c8fffd, #19CFD2 42%, #1479c9 90%); box-shadow: 0 0 18px rgba(25,207,210,.5); }
.voice-fab .ico { position: relative; width: 22px; height: 22px; }
.voice-fab:hover .fab-orb { filter: brightness(1.1); }
.vc-status { font-weight: 600; color: var(--primary-text); min-height: 1.5em; }
.vc-caption { max-width: 560px; width: 100%; margin: 0; max-height: 34vh; overflow-y: auto; color: var(--text); font-size: 1.05rem; line-height: 1.5; padding: 0 .5rem; }
.vc[data-state="paused"] .vc-status { color: var(--warn-text); }

/* ---------- Dialog ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: var(--overlay); animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: fadeUp .2s var(--ease); }
.modal p { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.5; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Meldungen ---------- */
#toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; transform: translate(-50%, 8px); max-width: min(92vw, 460px);
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--ok);
  padding: .75rem 1rem; border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); font-size: .92rem;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-left-color: var(--err); }

/* ---------- Mobil / Tablet ---------- */
@media (max-width: 899px) {
  .shell { display: block; }
  .sidebar {
    position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; gap: 0; padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--border);
  }
  .side-brand, .side-collapse { display: none; }
  .tabs { flex-direction: row; width: 100%; gap: .1rem; }
  .tabs button, .side-collapsed .tabs button {
    flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: .2rem; min-height: 52px; padding: .35rem .1rem;
    font-size: .68rem; text-align: center;
  }
  .tabs button span, .side-collapsed .tabs button span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tabs button.active { box-shadow: none; }
  .content { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); }
  .topbar { padding: 0 1rem; padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .logo-mobile { display: inline-grid; }
  .page-title { display: none; }
  .top-actions { flex: 1; justify-content: flex-end; }
  .top-actions select { flex: 1; width: auto; max-width: none; }
  .icon-btn .lbl { display: none; }
  main { padding: 1rem; padding-bottom: 2rem; }
  .card { padding: 1rem; }
  .chat { height: calc(100vh - var(--topbar-h) - var(--bottomnav-h) - 2.5rem - env(safe-area-inset-bottom) - env(safe-area-inset-top)); height: calc(100dvh - var(--topbar-h) - var(--bottomnav-h) - 2.5rem - env(safe-area-inset-bottom) - env(safe-area-inset-top)); }
  .msg { max-width: 94%; }
  #toast { bottom: calc(var(--bottomnav-h) + 1rem + env(safe-area-inset-bottom)); }
  .charts { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-width: 1099px) { .top-actions select { width: min(220px, 30vw); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Gespeichert-Hinweise und Live-Status */
.msg.saved { align-self: flex-start; display: flex; flex-wrap: wrap; gap: .35rem; max-width: 92%; padding: 0; border: 0; background: none; }
.saved-chip { font-size: .85rem; padding: .25rem .65rem; border-radius: 999px; color: var(--primary-text); background: color-mix(in srgb, var(--primary) 14%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border)); }
.vc-diag { font-size: .8rem; min-height: 1.2em; margin: 0; max-width: 560px; }
.vc[data-state="thinking"] .vc-orb .core { animation: vcpulse 1.2s ease-in-out infinite; }
@keyframes vcpulse { 50% { transform: scale(.94); opacity: .85; } }
#vcStop { margin-top: .25rem; }
.vc-settings label { display: block; margin-bottom: .6rem; }
.vc-settings select { width: 100%; margin-top: .25rem; }

.fsearch { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; max-height: 320px; overflow-y: auto; background: var(--card, var(--bg)); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.sug-item { display: block; width: 100%; text-align: left; padding: .6rem .85rem; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; border-bottom: 1px solid var(--border); }
.sug-item small { display: block; color: var(--muted, var(--text)); opacity: .7; }
.sug-item:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.sug-item.web { color: var(--primary-text); font-weight: 600; }
.fert-info { margin: .25rem 0 1rem; padding: .85rem 1rem; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--primary) 7%, transparent); }
.fert-info h3 { margin: 0 0 .35rem; }
.fert-info > div { margin-top: .3rem; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3rem; width: 100%; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted, var(--text)); display: grid; place-items: center; cursor: pointer; }
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye:hover, .pw-eye.on { color: var(--primary-text); }

.quick { align-self: flex-start; display: flex; gap: .4rem; flex-wrap: wrap; }
.quick .chip { cursor: pointer; }
#tabs button.unread { position: relative; }
#tabs button.unread::after { content: ''; position: absolute; top: 8px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.chat-aq { display: inline-flex; align-items: center; gap: .4rem; }
.chat-aq select { width: auto; max-width: 200px; }

/* Chat-Eingabe: Textfeld volle Breite, Knöpfe darunter */
.chat-input { flex-wrap: wrap; align-items: center; gap: .6rem; }
.chat-input textarea { order: -1; flex: 1 1 100%; width: 100%; min-height: 48px; padding: .75rem 1rem; border-radius: 16px; line-height: 1.4; overflow-y: hidden; scrollbar-width: none; }
.chat-input textarea::-webkit-scrollbar { display: none; }
.chat-input .push { margin-left: auto; }

/* Kopfzeile: Auswahl darf schrumpfen, Logo bleibt frei */
.logo-mobile { flex: none; }
.top-actions { flex: 1 1 0; }
.top-actions select { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 899px) { .top-actions select { flex: 1 1 0; width: 100%; max-width: none; } .top-actions { gap: .4rem; } .topbar { gap: .6rem; } }

/* Chat-Eingabe: Sprach-Kugel mittig und größer, Senden direkt rechts daneben */
.chat-input { display: grid; grid-template-columns: 44px 44px 1fr 76px 1fr 44px 44px; gap: .5rem; align-items: center; }
.chat-input textarea { grid-column: 1 / -1; grid-row: 1; width: 100%; }
.chat-input #btnImg { grid-column: 1; grid-row: 2; }
.chat-input #micBtn { grid-column: 2; grid-row: 2; }
.chat-input .voice-fab { grid-column: 4; grid-row: 2; width: 76px; height: 76px; justify-self: center; }
.chat-input .voice-fab .ico { width: 30px; height: 30px; }
.chat-input .voice-fab .fab-orb { box-shadow: 0 0 28px rgba(25,207,210,.6); }
.chat-input .push { grid-column: 5; grid-row: 2; margin-left: 0; justify-self: start; }

.chat-input textarea { box-sizing: border-box; min-width: 0; }
.chat-input { max-width: 100%; }
.calc-search { margin-bottom: 1rem; }

.legal-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; font-size: .85rem; margin-top: .75rem; }
.legal-links a, .linkbtn { color: var(--muted, var(--text)); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.foot { flex-direction: column; align-items: center; gap: .5rem; }
.consent[hidden] { display: none !important; }
.consent { display: flex !important; gap: .6rem; align-items: flex-start; font-size: .85rem; line-height: 1.4; margin: .25rem 0 .75rem; }
.consent input { width: auto; margin-top: .2rem; flex: none; }
.ai-note { margin: .5rem 0 0; font-size: .78rem; opacity: .75; }
.ai-note a { color: inherit; }
.consent a { color: var(--primary-text); }

/* Chat-Eingabe im Stil von ChatGPT/Gemini: eine runde Zeile */
.chat .chat-input { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: .25rem; padding: .35rem .4rem; margin-top: .75rem; border: 1px solid var(--border); border-radius: 28px; background: var(--bg); }
.chat .chat-input textarea { grid-column: auto; grid-row: auto; order: 0; flex: 1 1 auto; width: auto; min-width: 0; min-height: 40px; max-height: 140px; padding: .6rem .35rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; font-size: 1rem; }
.chat .chat-input .btn { grid-column: auto; grid-row: auto; width: 40px; min-width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; flex: none; }
.chat .chat-input .btn:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.chat .chat-input .btn .ico { width: 22px; height: 22px; }
.chat .chat-input #btnSend { display: none; background: var(--primary); color: var(--primary-ink, #04252a); margin: 0; }
.chat .chat-input.has-text #btnSend { display: grid; place-items: center; }
.chat .chat-input.has-text .voice-fab { display: none; }
.chat .chat-input .voice-fab { grid-column: auto; grid-row: auto; width: 40px; height: 40px; margin: 0; align-self: flex-end; }
.chat .chat-input .voice-fab .ico { width: 20px; height: 20px; }
.chat .chat-input .voice-fab .fab-orb { box-shadow: 0 0 12px rgba(25,207,210,.55); }

/* Admin */
.aduser.off { opacity: .6; }
.adhead { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; }
.adbadges { display: flex; gap: .35rem; flex-wrap: wrap; }
.badge { font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--border); }
.badge.prem { color: var(--primary-text); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.badge.adm { color: #f59e0b; border-color: rgba(245,158,11,.5); }
.badge.dis { color: var(--err-text, #f87171); border-color: rgba(248,113,113,.5); }
.adstats, .adnote { font-size: .85rem; margin-top: .35rem; }
.adactions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.admodal label { display: block; margin-bottom: .75rem; }

.notice { padding: .65rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.45; color: var(--primary-text); background: color-mix(in srgb, var(--primary) 12%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border)); }

/* ===== Community (Profil, Forum, Nachrichten, Premium) ===== */
.icon-btn.has-badge { position: relative; }
.dot { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: .68rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.dot.big { position: static; flex: none; }
.prem-btn { color: var(--primary); }
.crown { width: 1.05em; height: 1.05em; color: var(--primary); vertical-align: -.15em; margin-left: .3em; flex: none; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--primary) 55%, transparent)); }
.av { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden; background: var(--primary-soft); color: var(--primary-text); font-weight: 700; border: 2px solid var(--border); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.prem { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent), 0 0 12px color-mix(in srgb, var(--primary) 45%, transparent); }
.av.xs { --s: 28px; font-size: .8rem; } .av.sm { --s: 42px; } .av.xl { --s: 88px; font-size: 2rem; }
.who { display: inline-flex; align-items: center; gap: .1rem; font-weight: 700; flex-wrap: wrap; }
.rb { margin-left: .4rem; font-size: .66rem; font-weight: 700; padding: .05rem .4rem; border-radius: 999px; border: 1px solid; text-transform: uppercase; letter-spacing: .03em; }
.rb.adm { color: #f59e0b; border-color: rgba(245,158,11,.55); } .rb.mod { color: var(--primary-text); border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.forum-top { display: flex; flex-direction: column; gap: .75rem; }
.forum-tools { display: flex; gap: .6rem; flex-wrap: wrap; } .forum-tools input { flex: 1 1 200px; }
.post { cursor: pointer; transition: border-color .15s var(--ease); } .post:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); } .post.full { cursor: default; }
.post-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .5rem; } .post-meta { display: flex; flex-direction: column; min-width: 0; }
.post-body { white-space: normal; overflow-wrap: anywhere; margin: .25rem 0 .6rem; }
.post-img { display: block; max-width: 100%; max-height: 420px; border-radius: var(--radius-sm); margin: .4rem 0 .6rem; object-fit: cover; border: 1px solid var(--border); }
.post.full .post-img { max-height: 640px; cursor: zoom-in; }
.post-foot { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; } .post-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-left: auto; }
.foot-c { display: inline-flex; align-items: center; gap: .3rem; }
.likebtn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1px solid var(--border); border-radius: 999px; padding: .25rem .75rem; cursor: pointer; color: var(--muted); }
.likebtn:hover { color: var(--text); } .likebtn.on { color: var(--primary); border-color: var(--primary); } .likebtn.on .ico { fill: currentColor; }
.comment { padding: .7rem 0; border-top: 1px solid var(--line); } .c-actions { display: flex; gap: .8rem; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: .85rem; text-decoration: underline; } .linkbtn:hover { color: var(--text); }
.c-form { display: flex; gap: .6rem; align-items: flex-end; margin-top: .8rem; } .c-form textarea { flex: 1; }
.notice.lock { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; } .notice a { color: inherit; font-weight: 700; }
.modal.wide { max-width: 560px; max-height: 92vh; overflow: auto; } .modal.lb { max-width: 92vw; background: none; border: 0; padding: 0; box-shadow: none; }
.modal label { display: block; margin-bottom: .7rem; } .lightbox { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.cp-img { display: flex; align-items: center; gap: .6rem; margin: .3rem 0; }
.thread { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: .7rem .2rem; cursor: pointer; }
.thread:hover { background: var(--hover); } .t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-top { display: flex; justify-content: space-between; gap: .5rem; } .t-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-head { display: flex; align-items: center; gap: .7rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); } .dm-head .post-meta { flex: 1; }
.dm-msgs { display: flex; flex-direction: column; gap: .5rem; max-height: 52vh; min-height: 160px; overflow-y: auto; padding: .8rem 0; }
.dm-b { max-width: 82%; padding: .55rem .8rem; border-radius: 16px; overflow-wrap: anywhere; border: 1px solid var(--border); }
.dm-b.mine { align-self: flex-end; background: var(--bubble-user); border-color: var(--bubble-user-border); } .dm-b.theirs { align-self: flex-start; background: var(--card); }
.dm-t { display: block; font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.profile-head { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; } .row-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.prem-hero { text-align: center; } .crown-big .crown { width: 3rem; height: 3rem; margin: 0 0 .4rem; }
.prem-price strong { font-size: 2rem; letter-spacing: -.02em; } .feat { list-style: none; padding: 0; margin: 1rem auto; max-width: 440px; text-align: left; }
.feat li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; } .feat .ico { color: var(--primary); margin-top: .1rem; } .feat.free .ico { color: var(--muted); }
.snap { margin: .5rem 0; padding: .6rem .8rem; border-left: 3px solid var(--primary); background: var(--hover); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
@media (max-width: 599px) { #btnTheme, #btnLogout { display: none; } .post-actions { margin-left: 0; } .dm-b { max-width: 92%; } }
.btn.primary .crown { color: var(--primary-ink); filter: none; margin: 0 .35em 0 0; }
.modal h2 .crown { margin: 0 .3em 0 0; }
@media (max-width: 1279px) { .icon-btn .lbl { display: none; } }
#btnProfile { padding: 0; display: inline-grid; place-items: center; }
#profIcon { display: grid; place-items: center; width: 100%; height: 100%; line-height: 0; }
#btnProfile .av.xs { --s: 32px; border-width: 2px; display: grid; }
#btnProfile .av img { border-radius: 50%; }
.lnk { cursor: pointer; } .who.lnk:hover { text-decoration: underline; text-decoration-color: var(--primary); }
.soc-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.soc { display: inline-flex; flex-direction: column; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; line-height: 1.25; }
.soc:hover { border-color: var(--primary); } .soc b { font-size: .88rem; } .soc small { color: var(--muted); }
.u-info h2 { margin-bottom: .2rem; }
.pill { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; font-weight: 600; padding: .15rem .65rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); margin-right: .35rem; }
.pill.prem { color: var(--primary-text); border-color: var(--primary); background: var(--primary-soft); } .pill .crown { margin: 0; }
.u-badges { margin: 0 0 .4rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .6rem; text-align: center; }
.stats > * { display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: .3rem; color: var(--text); text-decoration: none; }
.stats b { font-size: 1.4rem; font-family: var(--font-head); letter-spacing: -.02em; } .stats span { color: var(--muted); font-size: .8rem; }
.stats button { cursor: pointer; font: inherit; }
.post-stat .ico { width: 14px; height: 14px; vertical-align: -2px; }
.adminbox { border-color: color-mix(in srgb, #f59e0b 45%, var(--border)); }
.pill.ok { color: #16a34a; border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.12); } .pill.warn { color: var(--warn-text); border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.1); }
.forum-tools select { flex: 0 0 auto; width: auto; min-width: 140px; } h2 .pill, h3 .pill { vertical-align: middle; margin-right: .3rem; }
.msg a.forum-link { color: var(--primary-text); font-weight: 600; text-decoration: underline; }

/* ===== Aquarien-Übersicht ===== */
.aq-title { margin: 0 0 .8rem; }
.aq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.aq-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s var(--ease), transform .15s var(--ease); display: flex; flex-direction: column; }
.aq-card:hover, .aq-card:focus-visible { border-color: var(--primary); transform: translateY(-2px); outline: none; }
.aq-card.sel { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); box-shadow: 0 0 0 1px var(--primary-ring), var(--shadow); }
.aq-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--primary) 6%, var(--card))); display: grid; place-items: center; overflow: hidden; }
.aq-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aq-ph { width: 56px; height: 56px; color: var(--primary); opacity: .75; } .aq-ph svg { width: 100%; height: 100%; }
.aq-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.aq-body h3 { margin: 0; } .aq-body p { margin: 0; }
.aq-notes { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; margin-top: .25rem !important; }
.aq-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .7rem; }
.add-aq { padding: .8rem 1.1rem; border-style: dashed; background: transparent; box-shadow: none; }
.add-aq > summary { cursor: pointer; font-weight: 600; color: var(--primary-text); list-style: none; padding: .2rem 0; }
.add-aq > summary::-webkit-details-marker { display: none; }
.add-aq[open] > summary { margin-bottom: .8rem; }

/* ===== Startseite (Landing) ===== */
.auth.landing { display: block; padding: 0 1rem 2rem; background: radial-gradient(60rem 30rem at 70% -5%, rgba(25,207,210,.16), transparent 62%), radial-gradient(40rem 24rem at 0% 20%, rgba(25,207,210,.07), transparent 65%), var(--bg); }
.landing > * { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; }
.lp-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.lp-nav .btn { width: auto; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 400px); gap: 3rem; align-items: center; padding: 2rem 0 3rem; }
.lp-kicker { display: inline-block; max-width: 100%; line-height: 1.35; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-text); background: var(--primary-soft); border: 1px solid var(--primary-ring); padding: .25rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.lp-copy h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1rem; }
.grad { background: linear-gradient(90deg, #19CFD2, #5BE3E5 60%, #19CFD2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 1.08rem; color: var(--muted); max-width: 40rem; }
.lp-checks { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: .6rem; }
.lp-checks li { display: flex; gap: .65rem; align-items: flex-start; } .lp-checks .ico { color: var(--primary); margin-top: .15rem; }
.lp-cta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .lp-cta .btn { width: auto; padding-left: 1.6rem; padding-right: 1.6rem; }
.lp-more { color: var(--primary-text); font-weight: 600; text-decoration: none; } .lp-more:hover { text-decoration: underline; }
.lp-note { margin-top: 1rem; }
.landing .auth-card { max-width: none; justify-self: stretch; margin: 0; box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 0 0 1px var(--primary-ring); }
.auth-title { margin-bottom: 1rem; font-size: 1.3rem; }
.lp-sec { padding: 2.5rem 0; } .lp-sec > h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; letter-spacing: -.02em; margin-bottom: .4rem; }
.lp-sub { text-align: center; color: var(--muted); margin-bottom: 1.8rem; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.lp-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.lp-card:hover { border-color: var(--primary); transform: translateY(-2px); } .lp-card h3 { margin: .7rem 0 .3rem; } .lp-card p { color: var(--muted); margin: 0; font-size: .93rem; }
.lp-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); } .lp-ico .ico { width: 22px; height: 22px; }
.lp-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.lp-demo-copy h2 { text-align: left !important; } .lp-demo-copy p { color: var(--muted); }
.lp-mock { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .7rem; box-shadow: var(--shadow); position: relative; }
.lp-bub { padding: .7rem .95rem; border-radius: 16px; max-width: 92%; font-size: .93rem; line-height: 1.45; }
.lp-bub.user { background: var(--bubble-user); border: 1px solid var(--bubble-user-border); justify-self: end; }
.lp-bub.bot { background: var(--hover); border: 1px solid var(--border); }
.fake-link { color: var(--primary-text); font-weight: 600; text-decoration: underline; } .lp-cap { font-size: .72rem; color: var(--muted); justify-self: end; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 760px; margin: 1.5rem auto 0; }
.lp-plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.lp-plan.prem { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary-ring), 0 12px 40px rgba(25,207,210,.12); }
.lp-plan h3 { margin: 0; } .lp-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: .3rem 0 .8rem; } .lp-price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.lp-plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; } .lp-plan li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: .5rem; }
.lp-badge { position: absolute; top: -.75rem; right: 1rem; display: inline-flex; gap: .3rem; align-items: center; font-size: .75rem; font-weight: 700; background: var(--primary); color: var(--primary-ink); padding: .2rem .7rem; border-radius: 999px; } .lp-badge .ico { width: 14px; height: 14px; }
.lp-steps { text-align: center; } .lp-steps ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding: 0; margin: 1.5rem 0; text-align: left; }
.lp-steps li { counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 3.6rem; position: relative; display: grid; }
.lp-steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font-weight: 800; }
.lp-steps li span { color: var(--muted); font-size: .9rem; } .lp-steps .btn { width: auto; }
.lp-foot { border-top: 1px solid var(--border); padding-top: 1.2rem; }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 1.8rem; padding-top: .5rem; } .lp-demo { grid-template-columns: 1fr; gap: 1.5rem; }
  .landing .auth-card { order: 2; } .lp-copy { order: 1; }
}

/* Foto-Dialog */
.photo-modal { max-width: 560px; width: calc(100vw - 2rem); }
.photo-modal h3 { margin: 0 0 .8rem; }
.ph-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.ph-choice { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.1rem .6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s var(--ease), background .15s var(--ease); }
.ph-choice:hover, .ph-choice:focus-visible { border-color: var(--primary); background: var(--primary-soft); outline: none; }
.ph-choice span { font-size: 1.8rem; line-height: 1; } .ph-choice small { color: var(--muted); font-size: .8rem; text-align: center; }
.ph-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.ph-frame:active { cursor: grabbing; }
.ph-bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(18px) brightness(.8); pointer-events: none; }
.ph-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.ph-hint { margin: .5rem 0; font-size: .82rem; }
.ph-zoom { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; } .ph-zoom input { flex: 1; min-width: 0; accent-color: var(--primary); }

.check-row { display: flex; gap: .7rem; align-items: flex-start; margin: .9rem 0 .2rem; cursor: pointer; } .check-row input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--primary); flex: none; }

/* Sprach-Einstellungen als Blatt über dem Gespräch */
.vc-settings { position: fixed; inset: 0; z-index: 5; max-width: none; margin: 0; border-radius: 0; overflow-y: auto; padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); background: var(--card); }
.vc-settings > * { max-width: 460px; margin-left: auto; margin-right: auto; }
.vc-set-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; padding-top: env(safe-area-inset-top); }
.vc-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; max-width: 560px; margin: .6rem auto 0; padding: 0 .5rem; }
.vc-chip { display: inline-block; padding: .35rem .75rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); border: 1px solid var(--primary-ring); font-size: .85rem; text-decoration: none; }

.soc-list { gap: .6rem; }
.soc-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-ring); transition: transform .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.soc-ico:hover, .soc-ico:focus-visible { background: var(--primary); color: #fff; transform: translateY(-2px); outline: none; }
.soc-lab { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 600; } .soc-lab svg { flex: none; }

.wa-band { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--primary-ring); border-radius: var(--radius); background: var(--primary-soft); color: var(--text); text-decoration: none; margin: 1rem 0; transition: transform .15s var(--ease), border-color .15s var(--ease); }
.wa-band:hover, .wa-band:focus-visible { transform: translateY(-2px); border-color: var(--primary); outline: none; }
.wa-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; } .wa-ico svg { width: 26px; height: 26px; }
.wa-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; } .wa-text small { color: var(--muted); }
.wa-btn { flex: none; pointer-events: none; }
@media (max-width: 520px) { .wa-band { flex-wrap: wrap; } .wa-btn { width: 100%; text-align: center; } }

.wa-top { color: var(--primary); text-decoration: none; display: inline-grid; place-items: center; flex: none; } .wa-top:hover { background: var(--primary-soft); color: var(--primary); }
.topbar .wa-top + .page-title { margin-left: .25rem; }

.ph-cv { display: block; width: 100%; height: 100%; }
.photo-modal { overscroll-behavior: contain; max-height: 100dvh; overflow-y: auto; }
.modal-overlay { overscroll-behavior: contain; }
.wa-top .ico { width: 24px; height: 24px; }

.plain-link { color: inherit; text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 3px; }

/* AquaBot Guide */
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(5, 12, 20, .72), 0 0 0 2px var(--primary); pointer-events: none; transition: left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
.tour-card { position: fixed; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem 1rem; box-shadow: 0 24px 60px rgba(0,0,0,.45); transition: left .25s var(--ease), top .25s var(--ease); }
.tour-step { font-size: .78rem; margin-bottom: .2rem; }
.tour-title { margin: 0 0 .35rem; }
.tour-text { margin: 0 0 .8rem; line-height: 1.5; }
.tour-dots { display: flex; gap: .3rem; margin-bottom: .8rem; flex-wrap: wrap; } .tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); } .tour-dots span.on { background: var(--primary); width: 18px; border-radius: 4px; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; } .tour-nav { display: flex; gap: .5rem; margin-left: auto; }

/* App installieren */
.ig { max-width: 440px; }
.ig-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; } .ig-head img { border-radius: 14px; flex: none; } .ig-head h2 { margin: 0 0 .15rem; } .ig-head p { margin: 0; font-size: .9rem; }
.ig-steps { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .7rem; }
.ig-steps li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.5; }
.ig-steps svg { vertical-align: -4px; color: var(--primary); }
.ig-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.ig-big { width: 100%; padding: .85rem; font-size: 1.05rem; margin: .4rem 0 .6rem; }
.ig-note { font-size: .85rem; }
.ig-share { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .7rem 0; border-top: 1px solid var(--border); margin-top: .6rem; font-size: .88rem; }
.install-cta { width: 100%; margin-top: .6rem; color: var(--primary); border-color: var(--primary-ring); }
.install-cta .ico, .lp-nav-act .btn .ico { width: 18px; height: 18px; vertical-align: -3px; }
.lp-nav-act { display: flex; gap: .5rem; align-items: center; }
@media (max-width: 480px) { .lp-nav-act [data-install] { display: none; } }

.soc-card { text-align: center; } .soc-card .soc-list { justify-content: center; }
.tour-inst { margin: -.2rem 0 .8rem; }

/* Trends: Diagramm/Liste */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; align-self: end; background: var(--card); }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: .88rem; padding: .4rem .9rem; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--primary); color: #fff; font-weight: 600; }
.tl-table td, .tl-table th { padding: .45rem .6rem; } .tl-table td.warn b { color: var(--warn-text); }
.tlist .tablewrap { max-height: 380px; overflow-y: auto; }

/* Sprachmenü */
.lang-menu { position: fixed; z-index: 450; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.3); padding: .3rem; min-width: 170px; display: grid; }
.lang-menu button { display: flex; align-items: center; gap: .6rem; border: 0; background: none; color: var(--text); font: inherit; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; text-align: left; }
.lang-menu button:hover { background: var(--hover); } .lang-menu button.on { color: var(--primary); font-weight: 600; }

/* Premium-Test, Gutscheine, Rabattcodes */
.code-row { display: flex; gap: .5rem; } .code-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.trial-note { font-size: .85rem; margin-top: .6rem; }
.disc-pill { display: inline-block; margin: 0 0 .6rem; }
.admin-switch { margin: .2rem 0 .8rem; }
.pc-table td { vertical-align: top; } .pc-table tr.off { opacity: .5; } .pc-act { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; } .small { font-size: .8rem; }
@media (max-width: 640px) {
  .pc-table thead { display: none; }
  .pc-table, .pc-table tbody, .pc-table tr, .pc-table td { display: block; width: 100%; }
  .pc-table tr { padding: .7rem 0; border-bottom: 1px solid var(--border); }
  .pc-table td { padding: .15rem 0; border: 0; }
  .pc-table td:nth-child(3)::before { content: 'Eingelöst: '; color: var(--muted); }
  .pc-table td:nth-child(4)::before { content: 'Gültig bis: '; color: var(--muted); }
  .pc-act { justify-content: flex-start; margin-top: .4rem; }
}
:root[lang="en"] .pc-table td:nth-child(3)::before { content: 'Redeemed: '; }
:root[lang="en"] .pc-table td:nth-child(4)::before { content: 'Valid until: '; }

/* Admin: kompakte Benutzerliste */
.ad-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.ad-tools input { flex: 1 1 220px; min-width: 0; } .ad-tools select { flex: 0 0 auto; width: auto; }
.ad-segs { margin-top: .7rem; } .ad-segs .cnt { opacity: .65; font-size: .8em; margin-left: .2rem; }
.adlist-card { padding: .35rem .5rem; }
.adlist { display: block; }
.aduser { border-bottom: 1px solid var(--border); } .aduser:last-of-type { border-bottom: 0; }
.aduser > summary { list-style: none; display: flex; align-items: center; gap: .7rem; padding: .6rem .5rem; cursor: pointer; border-radius: 10px; }
.aduser > summary::-webkit-details-marker { display: none; }
.aduser > summary:hover { background: var(--hover); }
.ad-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--primary-soft); color: var(--primary-text); }
.ad-av.prem { box-shadow: 0 0 0 2px var(--primary); }
.ad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ad-main b, .ad-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-flags { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; } .ad-flags .badge { font-size: .68rem; padding: .05rem .45rem; }
.ad-last { flex: none; font-size: .78rem; min-width: 4.2rem; text-align: right; }
.ad-chev { flex: none; color: var(--muted); transition: transform .15s var(--ease); }
.aduser[open] .ad-chev { transform: rotate(180deg); }
.aduser[open] > summary { background: var(--hover); }
.ad-body { padding: .2rem .6rem .9rem 3.4rem; }
.ad-body .adstats .badge { margin-right: .35rem; }
.ad-more { width: 100%; margin: .5rem 0 .3rem; } .ad-empty { padding: .8rem; }
.err-text { color: var(--err-text, #f87171); }
@media (max-width: 560px) { .ad-last { display: none; } .ad-body { padding-left: .6rem; } .ad-flags .badge.prem { display: none; } }

/* Kostenlos-Modus */
.free-only { display: none; }
body.free-mode .free-only { display: block; }
body.free-mode .prem-only, body.free-mode #btnPremium { display: none !important; }
.lp-free { text-align: center; max-width: 640px; margin: 0 auto; padding: 2rem 1.2rem; border: 1px solid var(--primary-ring); border-radius: var(--radius); background: var(--primary-soft); }
.lp-free .lp-checks { text-align: left; display: inline-grid; margin: .6rem auto 1rem; }

/* ================= Belohnungen ================= */
.game-btn { width: auto !important; padding: 0 .6rem; gap: .2rem; display: inline-flex; align-items: center; font-weight: 700; font-size: .9rem; color: var(--muted); }
.game-btn .gb-flame { filter: grayscale(1) opacity(.6); transition: filter .2s; }
.game-btn.done { color: #f97316; } .game-btn.done .gb-flame { filter: none; }
.reward-pop { position: fixed; left: 50%; top: 18%; transform: translate(-50%, 0); z-index: 500; background: var(--card); color: var(--text); border: 1px solid var(--primary-ring); padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: rpop 1.9s var(--ease) forwards; pointer-events: none; }
@keyframes rpop { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -18px); } }
.celebrate { text-align: center; max-width: 380px; }
.cel-main { padding: .4rem 0 .8rem; } .cel-flame { font-size: 3.4rem; line-height: 1; animation: flame 1.2s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.12) rotate(3deg); } }
.cel-num { font-size: 2.6rem; font-weight: 800; line-height: 1.1; color: #f97316; } .cel-sub { color: var(--muted); }
.cel-coins { margin-top: .6rem; font-weight: 700; font-size: 1.15rem; }
.cel-line { margin: .5rem 0; } .cel-badge span { font-size: 1.6rem; vertical-align: -4px; }
.game-hero { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.gh-streak { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: .8rem 1rem; border-radius: var(--radius); background: color-mix(in srgb, #f97316 10%, var(--card)); border: 1px solid color-mix(in srgb, #f97316 35%, var(--border)); }
.gh-streak .gh-flame { font-size: 2rem; filter: grayscale(1) opacity(.5); } .gh-streak.on .gh-flame { filter: none; animation: flame 1.4s ease-in-out infinite alternate; }
.gh-streak b { font-size: 1.8rem; line-height: 1.1; color: #f97316; } .gh-streak small { color: var(--muted); font-size: .78rem; }
.gh-stats { flex: 1; min-width: 200px; display: grid; gap: .55rem; }
.gh-coins { font-size: 1.1rem; } .gh-coins b { font-size: 1.5rem; }
.xpbar { height: 9px; border-radius: 999px; background: var(--border); overflow: hidden; margin: .3rem 0 .15rem; } .xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #3b82f6); border-radius: inherit; transition: width .6s var(--ease); }
.frz .off { filter: grayscale(1) opacity(.3); }
.earn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.earn-list li { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; } .earn-list li:last-child { border: 0; } .earn-list b { white-space: nowrap; }
.shop-cats { margin-bottom: .8rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; }
.shop-item { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: .2rem .8rem; padding: .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.shop-item.eq { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary-ring); } .shop-item.locked { opacity: .6; }
.si-prev { grid-row: span 2; display: grid; place-items: center; } .si-body { display: flex; flex-direction: column; gap: .15rem; } .si-body small { font-size: .8rem; line-height: 1.35; }
.si-act { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.eq-tag { font-size: .75rem; color: var(--primary-text); font-weight: 700; }
.shop-ico { font-size: 1.8rem; } .av.md { --s: 52px; font-size: 1.2rem; }
.bn-prev { width: 52px; height: 52px; border-radius: 12px; display: block; }
.badge-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; }
.gbadge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .6rem .3rem; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--primary-ring); }
.gbadge .ge { font-size: 1.7rem; line-height: 1; } .gbadge small { font-size: .74rem; line-height: 1.2; }
.gbadge.lock { background: none; border-color: var(--border); opacity: .55; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; } .gal-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; display: block; }
.gal-cell { position: relative; } .gal-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.gal-add { aspect-ratio: 1; border: 2px dashed var(--primary-ring); border-radius: 10px; display: grid; place-items: center; font-size: 2rem; color: var(--primary); cursor: pointer; }
.push-prefs { margin: .3rem 0 .6rem; } .push-prefs .check-row { margin: .4rem 0; }
.u-title { margin: -.2rem 0 .3rem; color: var(--primary-text); font-weight: 600; font-style: italic; }
.u-game { display: flex; gap: .35rem; flex-wrap: wrap; margin: .2rem 0 .4rem; }
.lvl-pill { font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); border: 1px solid var(--primary-ring); text-decoration: none; }
.lvl-pill.streak { background: color-mix(in srgb, #f97316 12%, var(--card)); color: #ea580c; border-color: color-mix(in srgb, #f97316 40%, var(--border)); }
.lvl-pill.web:hover { background: var(--primary); color: #fff; }
.who .lvl { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .25em; margin-left: .3rem; border-radius: 6px; font-size: .68rem; font-weight: 800; background: var(--primary-soft); color: var(--primary-text); border: 1px solid var(--primary-ring); vertical-align: 1px; }
.who.nc { color: var(--primary); font-weight: 700; }
.stats.inner { box-shadow: none; margin: .8rem 0; }
.top-list { margin: 0; padding-left: 1.3rem; } .top-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.adm-shop { display: grid; gap: .4rem; }
.adm-si { display: grid; grid-template-columns: 1fr 110px auto auto; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.adm-si .si-name { display: flex; flex-direction: column; } .si-price { display: flex; align-items: center; gap: .3rem; margin: 0; } .si-price input { width: 80px; } .si-on { margin: 0; }
@media (max-width: 560px) { .adm-si { grid-template-columns: 1fr 1fr; } .adm-si .si-name { grid-column: 1 / -1; } }

/* Profilrahmen */
.av.fr { padding: 3px; background: var(--fr); box-shadow: 0 0 10px color-mix(in srgb, var(--frc, #19CFD2) 45%, transparent); }
.av.fr > * { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); object-fit: cover; }
.av.xl.fr { padding: 5px; } .av.xs.fr { padding: 2px; }
.fr-wave { --fr: conic-gradient(#19CFD2, #0ea5e9, #67e8f9, #19CFD2); --frc: #19CFD2; }
.fr-coral { --fr: conic-gradient(#fb7185, #fb923c, #fda4af, #fb7185); --frc: #fb7185; }
.fr-neon { --fr: linear-gradient(180deg, #38bdf8 0 50%, #ef4444 50% 100%); --frc: #38bdf8; }
.fr-gold { --fr: conic-gradient(#facc15, #b45309, #fde68a, #ca8a04, #facc15); --frc: #facc15; }
.fr-rainbow { --fr: conic-gradient(#ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); --frc: #a855f7; animation: frspin 6s linear infinite; }
.fr-rainbow > * { animation: frspin 6s linear infinite reverse; }
@keyframes frspin { to { transform: rotate(360deg); } }

/* Profil-Banner */
.bn-deepsea { background: radial-gradient(120% 140% at 20% 0%, #155e75, #0c1e3e 60%, #020617); }
.bn-jungle { background: linear-gradient(135deg, #14532d, #166534 40%, #3f6212 75%, #713f12); }
.bn-sunset { background: linear-gradient(135deg, #f97316, #db2777 50%, #6d28d9); }
.bn-aurora { background: linear-gradient(120deg, #0f172a, #0e7490, #22c55e, #7c3aed, #0f172a); background-size: 300% 300%; animation: aurora 12s ease infinite; }
@keyframes aurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .fr-rainbow, .fr-rainbow > *, .bn-aurora, .cel-flame, .gh-streak.on .gh-flame { animation: none; } }
@media (max-width: 420px) { .game-btn { padding: 0 .45rem; } }

/* Pflege */
.care-switch { margin-bottom: 1rem; }
.care-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .2rem; border-bottom: 1px solid var(--border); }
.care-item:last-child { border-bottom: 0; }
.ci-emo { font-size: 1.4rem; flex: none; width: 1.8rem; text-align: center; }
.ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; } .ci-main small { font-size: .8rem; }
.ci-act { display: flex; gap: .3rem; flex: none; }
.due { font-size: .8rem; color: var(--muted); } .due.today { color: var(--primary-text); font-weight: 700; } .due.over { color: var(--err-text, #f87171); font-weight: 700; }
.due-item { background: var(--primary-soft); border-radius: 12px; padding: .6rem .7rem; margin-bottom: .4rem; border: 0; }
.care-add { margin-top: .6rem; } .care-add summary { cursor: pointer; color: var(--primary-text); font-weight: 600; padding: .4rem 0; }
.care-log { margin-top: .8rem; }
#tabs button { position: relative; }
.care-dot { position: absolute; top: 4px; right: 50%; transform: translateX(16px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #f97316; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
@media (min-width: 900px) { .care-dot { position: static; transform: none; margin-left: auto; } }

.hist-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; } .hist-head h2 { margin: 0; } .hist-head label.btn { cursor: pointer; }

.err-list { display: grid; gap: .5rem; } .err-item { padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 10px; display: grid; gap: .3rem; }
.err-top { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; } .err-item code { font-size: .8rem; white-space: pre-wrap; word-break: break-word; background: var(--hover); padding: .3rem .5rem; border-radius: 6px; }

.tf-qr { width: 200px; height: 200px; display: block; margin: .5rem auto 1rem; border-radius: 8px; } .tf-steps { padding-left: 1.2rem; line-height: 1.5; } .tf-key { font-size: .95rem; letter-spacing: .05em; background: var(--hover); padding: .1rem .35rem; border-radius: 6px; word-break: break-all; }
.tf-codes { background: var(--hover); padding: .8rem 1rem; border-radius: 10px; font-size: 1.05rem; letter-spacing: .08em; line-height: 1.7; text-align: center; }

/* Profilkopf mit Banner (blendet nach unten aus) */
.profile-head.has-cover { position: relative; overflow: hidden; padding-top: 96px; }
.profile-head.has-cover > :not(.ph-cover) { position: relative; z-index: 1; }
.ph-cover { position: absolute; left: 0; right: 0; top: 0; height: 190px; background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%); }
.profile-head.has-cover .av.xl { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
@media (min-width: 700px) { .profile-head.has-cover { padding-top: 120px; } .ph-cover { height: 230px; } }
.preview-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; } .preview-bar span { flex: 1; min-width: 180px; }
#btnProfile .av.xs.fr { padding: 2px; }
.av.fr > span { background: color-mix(in srgb, var(--primary) 16%, var(--card)); }

.pv-preview { margin-top: .5rem; }

/* Posteingang & Tauschbörse */
.inbox-switch { margin-bottom: 1rem; } .cnt-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: .3rem; border-radius: 999px; background: #f97316; color: #fff; font-size: .7rem; font-weight: 800; }
.notif-list { display: grid; gap: .2rem; }
.notif { display: flex; gap: .7rem; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: .6rem .5rem; color: var(--text); font: inherit; cursor: pointer; }
.notif:hover { background: var(--hover); } .notif.new { background: var(--primary-soft); }
.notif-ico { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.n-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; } .n-text { line-height: 1.35; }
.pill.trade { font-weight: 700; } .trade-rules { grid-column: 1 / -1; font-size: .82rem; display: flex; gap: .5rem; }
.c-edit { margin: .4rem 0; }

/* ---------- Geräte, Statistik, Ankündigungen, Einstieg, Mitglieder ---------- */
.sess-list { display: grid; gap: .5rem; margin: .6rem 0; }
.sess-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 12px; }
.sess-item .badge { margin-left: .3rem; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: .8rem; }
.st-tile { padding: .7rem; border-radius: 12px; background: var(--primary-soft); display: flex; flex-direction: column; gap: .15rem; }
.st-tile b { font-size: 1.5rem; color: var(--primary-text); }
.st-tile span { font-size: .8rem; opacity: .75; }
.st-bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 1rem; overflow-x: auto; }
.st-col { flex: 1 0 22px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 22px; }
.st-bar { width: 70%; min-height: 2px; background: var(--primary); border-radius: 4px 4px 0 0; }
.st-v { font-size: .7rem; opacity: .8; }
.st-l { font-size: .62rem; opacity: .6; margin-top: 3px; white-space: nowrap; }
.st-feat { display: grid; gap: .45rem; }
.st-frow { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: .5rem; }
.st-frow b { text-align: right; }
.st-fbar { height: 10px; border-radius: 6px; background: rgba(127,127,127,.15); overflow: hidden; }
.st-fbar i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.an-list { display: grid; gap: .6rem; }
.an-item { padding: .6rem .75rem; border-left: 3px solid var(--primary); background: rgba(127,127,127,.06); border-radius: 8px; }
.an-item p { margin: .25rem 0; white-space: pre-wrap; }
.onb-modal { max-width: 480px; }
.onb-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: .6rem; }
.onb-dots span { width: 28px; height: 5px; border-radius: 3px; background: rgba(127,127,127,.3); }
.onb-dots span.on { background: var(--primary); }
.onb-vals label { flex: 1 1 120px; }
.mb-list { display: grid; gap: .6rem; }
.mb-card { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.mb-info { flex: 1; min-width: 0; }
.mb-bio { margin: .2rem 0; font-size: .9rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 520px) { .mb-card { flex-wrap: wrap; } .mb-card > .btn { margin-left: auto; } .st-frow { grid-template-columns: 90px 1fr 32px; } }
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Protokoll, Sicherung, Besatz, Tagebuch, Teilen, Erwähnungen, Galerie ---------- */
.al-list { display: grid; gap: .5rem; }
.al-item { padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: .2rem; }
.al-top { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.al-item code { white-space: pre-wrap; word-break: break-word; opacity: .8; }
.st-form .row label { flex: 1 1 140px; }
.stk-list { display: grid; gap: .4rem; margin-bottom: 1rem; }
.stk-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 12px; }
.stk-main { flex: 1; min-width: 0; }
.stk-qty { display: flex; gap: .3rem; }
.stk-qty .btn { min-width: 34px; padding-inline: .5rem; }
.dy-line { position: relative; display: grid; gap: 1rem; padding-left: 1.2rem; }
.dy-line::before { content: ''; position: absolute; left: .35rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--primary-soft); }
.dy-item { position: relative; }
.dy-dot { position: absolute; left: -1.1rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--card); }
.dy-top { display: flex; justify-content: space-between; align-items: center; }
.dy-img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin: .4rem 0; cursor: zoom-in; }
.dy-c p { margin: .3rem 0 0; white-space: pre-wrap; }
.share-box { margin-top: .8rem; display: grid; gap: .5rem; }
.share-box input { width: 100%; }
.aq-actions .btn.primary { order: -1; }
.mention { color: var(--primary-text); font-weight: 600; cursor: pointer; }
.mention-box { position: absolute; z-index: 3000; width: 260px; max-width: calc(100vw - 16px); background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: .3rem; display: grid; gap: 2px; }
.mention-box button { display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; border: 0; background: none; color: var(--text); border-radius: 8px; text-align: left; cursor: pointer; font: inherit; }
.mention-box button.on, .mention-box button:hover { background: var(--primary-soft); }
.post-img-wrap { position: relative; }
.img-more { position: absolute; right: .6rem; bottom: .9rem; background: rgba(0,0,0,.6); color: #fff; padding: .2rem .55rem; border-radius: 999px; font-size: .85rem; }
.post-gallery { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; margin: .6rem 0; }
.post-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; cursor: zoom-in; display: block; }
.post-gallery.n3 img:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.cp-prev { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.cp-th { position: relative; width: 92px; height: 92px; }
.cp-th img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.cp-rm { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--err); color: #fff; cursor: pointer; font-size: .75rem; }

/* Aquarium-Auswahl oben als Symbol */
.top-actions .aq-pick { position: relative; flex: 0 0 auto; cursor: pointer; }
.top-actions .aq-pick select { position: absolute; inset: 0; width: 100% !important; height: 100%; min-height: 0; max-width: none; flex: none; opacity: 0; cursor: pointer; padding: 0; border: 0; font-size: 16px; }
.aq-pick-tag { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: var(--primary-ink); font-size: .62rem; font-weight: 700; line-height: 18px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--bg); text-transform: uppercase; }
.aq-pick.gen .aq-pick-tag { background: var(--card); text-transform: none; }
.aq-pick:focus-within { box-shadow: 0 0 0 3px var(--primary-ring); }
.st-form label.last, .dy-form label.last { margin-bottom: .75rem; }
.st-form textarea, .dy-form textarea { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .25rem; }
.dy-form #dyPrev { margin: 0 0 .75rem; }
/* Symbol-Knopf: allgemeine label-Abstände aufheben (sonst verrutscht er auf dem Handy) */
.top-actions label.aq-pick { display: inline-flex; margin: 0 !important; height: 40px; width: 40px; min-width: 40px; padding: 0; font-size: inherit; color: var(--muted); align-self: center; box-sizing: border-box; }
.top-actions .aq-pick select { margin: 0 !important; top: 0; left: 0; -webkit-appearance: none; appearance: none; line-height: normal; }
.top-actions .aq-pick .ico { flex: none; }
/* Aquarium-Auswahl: Symbol + Name, füllt auf dem Handy die freie Breite */
.top-actions label.aq-pick { width: auto; min-width: 40px; max-width: 240px; padding: 0 .6rem; gap: .45rem; justify-content: flex-start; flex: 0 1 220px; }
.aq-pick-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--text); text-align: left; pointer-events: none; }
.aq-pick-chev { flex: none; opacity: .7; pointer-events: none; }
.aq-pick .aq-pick-tag { display: none; }
@media (max-width: 899px) { .top-actions label.aq-pick { flex: 1 1 auto; max-width: none; } .top-actions { flex: 1 1 auto; min-width: 0; } }
@media (max-width: 360px) { .aq-pick-name, .aq-pick-chev { display: none; } .top-actions label.aq-pick { flex: 0 0 40px; justify-content: center; padding: 0; } }
@media (max-width: 480px) { .aq-pick-chev { display: none; } .top-actions label.aq-pick { padding: 0 .5rem; gap: .35rem; } }
@media (max-width: 480px) { .aq-pick-name { font-size: .82rem; } .top-actions { gap: .35rem; } }
/* Aquarium-Auswahl: türkiser Fisch + Becken-Symbol */
.top-actions .aq-pick > .ico { color: var(--primary); }
.aq-pick-icon { font-size: 1.15rem; line-height: 1; pointer-events: none; flex: none; }
@media (max-width: 899px) {
  .aq-pick-name { display: none; }
  .top-actions label.aq-pick { justify-content: center; gap: .5rem; }
}
.aq-ic { margin-right: .35rem; }
.ic-field { margin-bottom: 1rem; }
.ic-lab { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: .4rem; }
.ic-grid { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .3rem; }
.ic-opt { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--input); font-size: 1.3rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color .15s, background .15s; }
.ic-opt:hover { border-color: var(--primary-ring); }
.ic-opt.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary-ring); }
/* Level-Zahl im Kreis exakt mittig */
.who .lvl { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; margin-left: .3rem;
  border-radius: 999px; font-size: 10.5px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; vertical-align: middle; text-align: center; }
/* Ziffern der Schrift sitzen optisch hoch: um 2,5px nach unten ausgleichen (gemessen) */
.who .lvl { padding: 2.5px 4px 0; text-decoration: none !important; }
.who.lnk:hover .lvl { text-decoration: none; }
.sess-item { flex-wrap: wrap; }
.sess-info { flex: 1 1 180px; min-width: 0; }
.sess-act { display: flex; gap: .4rem; flex-wrap: wrap; }
.sess-item.old { opacity: .75; }
.sess-old { margin-top: .8rem; }
.sess-old summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

/* Feedback-Knopf (Testphase): kleine Lasche am rechten Rand */
.fb-fab { position: fixed; right: 0; top: 46%; z-index: 900; transform: translateY(-50%); writing-mode: vertical-rl; rotate: 180deg;
  border: 1px solid var(--primary-ring); border-right: 0; background: var(--primary); color: var(--primary-ink); font: 700 .78rem/1 var(--font-body);
  letter-spacing: .06em; padding: .7rem .38rem; border-radius: 0 10px 10px 0; cursor: pointer; box-shadow: var(--shadow); opacity: .92; }
.fb-fab:hover { opacity: 1; }
.fb-kinds { margin: .4rem 0 .9rem; }
.fb-hint { margin-top: -.6rem; }
.fb-item.done { opacity: .7; }
.fb-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.fb-user { display: flex; align-items: center; gap: .4rem; margin: .5rem 0; flex-wrap: wrap; }
.fb-text { white-space: pre-wrap; margin: .3rem 0 .6rem; }
.fb-img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; margin-bottom: .5rem; cursor: zoom-in; }
.fb-meta { margin-bottom: .6rem; word-break: break-word; }
.tour ~ .fb-fab, body:has(.modal-overlay) .fb-fab { display: none; }
.rules-gate .check-row { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; font-weight: 500; color: var(--text); margin: 1rem 0; cursor: pointer; }
.rules-gate .check-row input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; }
.rules-gate a { color: var(--primary-text); }
.ad-av.img { padding: 0; overflow: hidden; cursor: zoom-in; }
.ad-av.img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bildbetrachter mit Wischen */
.viewer { position: fixed; inset: 0; z-index: 5000; background: rgba(2, 6, 10, .96); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; animation: vwIn .18s ease-out; }
@keyframes vwIn { from { opacity: 0 } to { opacity: 1 } }
body.vw-open { overflow: hidden; }
.vw-track { display: flex; height: 100%; will-change: transform; }
.vw-slide { flex: 0 0 100%; display: grid; place-items: center; padding: 56px 12px 64px; }
.vw-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; -webkit-user-drag: none; }
.vw-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; cursor: pointer; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.vw-nav.prev { left: 10px; } .vw-nav.next { right: 10px; }
.vw-nav:disabled { opacity: .2; cursor: default; }
@media (hover: none) { .vw-nav { display: none; } }
.vw-count { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: .95rem; background: rgba(255,255,255,.12); padding: .25rem .7rem; border-radius: 999px; }
.vw-dots { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.vw-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: transform .2s, background .2s; }
.vw-dots span.on { background: var(--primary); transform: scale(1.3); }

/* Galerie auffälliger */
.extras-card { border: 1px solid var(--primary-ring); background: linear-gradient(160deg, var(--primary-soft), transparent 55%), var(--card); }
.gal-h { margin: .4rem 0 .2rem; display: flex; align-items: baseline; gap: .5rem; }
.gal-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px dashed var(--primary-ring); color: var(--primary-text); cursor: pointer; border-radius: 12px; aspect-ratio: 1; }
.gal-add span { font-size: 1.8rem; line-height: 1; } .gal-add small { font-weight: 600; }
.gal-teaser { border: 1px dashed var(--primary-ring); }
.gal-grid img { cursor: zoom-in; }
.gal-add small { font-size: .8rem; }
.viewer { background: #03080c; }
body.vw-open .fb-fab { display: none; }
.thread.u-post { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.thread.u-post .t-main { flex: 1; min-width: 0; }
.u-post-go { flex: none; font-size: 1.6rem; line-height: 1; color: var(--primary-text); opacity: .8; transition: transform .15s; }
.thread.u-post:hover .u-post-go { transform: translateX(3px); opacity: 1; }
.thread.u-post { padding-right: .6rem; box-sizing: border-box; }
.thread.u-post .t-top { gap: .5rem; }
.u-post-go { margin-left: auto; padding-left: .2rem; }
/* Posteingang aufräumen */
.ib-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ib-row { display: flex; align-items: stretch; gap: .3rem; }
.ib-row > .thread, .ib-row > .notif { flex: 1; min-width: 0; }
.ib-del { flex: none; width: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; font-size: 1rem; opacity: .7; }
.ib-del:hover { background: var(--hover); color: var(--err-text); opacity: 1; }
.dm-head-act { margin-left: auto; display: flex; gap: .4rem; }
/* Samsung-Internet-Hinweis */
.samsung-bar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--bottomnav-h, 64px) + 14px + env(safe-area-inset-bottom)); z-index: 950; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--primary-ring); border-radius: 14px; padding: .7rem .8rem; box-shadow: var(--shadow); font-size: .88rem; color: var(--text); }
.samsung-bar > span { flex: 1 1 200px; }
.samsung-bar .sb-x { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: .3rem; }
#auth ~ .samsung-bar, body:not(:has(#app:not([hidden]))) .samsung-bar { bottom: calc(14px + env(safe-area-inset-bottom)); }
.ig-warn { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .8rem; }
a.btn.ig-big { display: block; text-align: center; text-decoration: none; margin: .4rem 0 .8rem; }
body:has(.modal-overlay) .samsung-bar, body:has(.viewer) .samsung-bar { display: none; }

/* Galerie: Gefällt mir & Kommentare */
.gal-th { position: relative; }
.gal-th img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.gal-stat { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; pointer-events: none; }
.viewer.has-bar .vw-dots { bottom: calc(84px + env(safe-area-inset-bottom)); }
.viewer.has-bar .vw-slide { padding-bottom: 120px; }
.vw-bar { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: .8rem; }
.vw-bar button { display: inline-flex; align-items: center; gap: .45rem; border: 0; border-radius: 999px; padding: .6rem 1.1rem; background: rgba(255,255,255,.14); color: #fff; font: 600 1rem/1 var(--font-body); cursor: pointer; }
.vw-bar .vl-h { font-size: 1.25rem; line-height: 1; }
.vw-like.on { background: rgba(244, 63, 94, .22); } .vw-like.on .vl-h { color: #fb7185; }
.vw-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 62%; display: flex; flex-direction: column; background: var(--card); color: var(--text); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.5); padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); animation: vsUp .22s ease-out; }
@keyframes vsUp { from { transform: translateY(40%); opacity: 0 } to { transform: none; opacity: 1 } }
.viewer.sheet-open .vw-bar, .viewer.sheet-open .vw-dots { display: none; }
.viewer.sheet-open .vw-slide { padding-bottom: 64%; }
.vs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.vs-x { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.vs-list { overflow-y: auto; flex: 1; display: grid; gap: .7rem; align-content: start; padding-bottom: .4rem; }
.vs-c { display: flex; gap: .55rem; }
.vs-cb { flex: 1; min-width: 0; }
.vs-top { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.vs-cb p { margin: .15rem 0; white-space: pre-wrap; word-break: break-word; }
.vs-act { display: flex; gap: .8rem; font-size: .8rem; }
.vs-form { display: flex; gap: .5rem; margin-top: .5rem; align-items: flex-end; }
.vs-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; }
body.vw-open .modal-overlay { z-index: 6000; }
.viewer { overflow: clip; } .vw-track { overflow: visible; }

/* Mitteilungs-Glocke & Aktivitäts-Liste */
.nt-pop { position: fixed; top: calc(var(--topbar-h) + 6px + env(safe-area-inset-top)); right: 10px; width: min(420px, calc(100vw - 20px)); max-height: min(70vh, 640px); z-index: 1200;
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: hidden; animation: ntIn .16s ease-out; }
@keyframes ntIn { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }
.nt-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem .5rem; }
.nt-list { overflow-y: auto; padding: 0 .4rem .5rem; }
.nt-sec { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .6rem .3rem; }
.nt-empty { padding: 1rem; }
.nt-row { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 12px; cursor: pointer; }
.nt-row:hover { background: var(--hover); }
.nt-row.new { background: var(--primary-soft); }
.nt-av { position: relative; flex: none; }
.nt-av .notif-ico { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.2rem; border-radius: 50%; background: var(--primary-soft); }
.nt-badge { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; background: var(--card); box-shadow: 0 0 0 2px var(--card); }
.nt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.nt-text { font-size: .9rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.nt-thumb { flex: none; width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.nt-fb { flex: none; }
/* Live-Einblendungen */
.nt-toasts { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 7000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.nt-toast { pointer-events: auto; width: min(440px, calc(100vw - 16px)); display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 16px; cursor: pointer;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--primary-ring); box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transform: translateY(-120%); opacity: 0; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.nt-toast.in { transform: none; opacity: 1; }
.likebtn.c-like { padding: .12rem .55rem; font-size: .8rem; border-color: transparent; }
.likebtn.c-like .ico { width: 15px; height: 15px; }
.likebtn.c-like span:empty { display: none; }
.likebtn.pop .ico { animation: likePop .3s ease-out; }
@keyframes likePop { 50% { transform: scale(1.35) } }
.c-actions { align-items: center; }
@media (max-width: 899px) { .topbar .wa-top { flex: 0 0 auto; } }
/* Schmale Handys: Leiste kompakter, damit sich nichts überlappt */
@media (max-width: 420px) {
  .topbar { gap: .3rem; padding-left: 10px; padding-right: 10px; }
  .top-actions { gap: .25rem !important; }
  .topbar .icon-btn { width: 36px; min-width: 36px; height: 36px; flex: 0 0 36px; max-width: 36px; padding: 0; }
  .top-actions .game-btn { width: auto; max-width: none; flex: 0 0 auto; padding: 0 .3rem; gap: .1rem; }
  .topbar .logo-mobile { width: 30px; }
  .topbar .logo-mobile { flex: 0 0 auto; }
}
/* Mobil: Aquarium-Knopf füllt die Lücke in der Leiste wieder aus (nur Becken-Symbol, mittig) */
@media (max-width: 899px) {
  .top-actions label.aq-pick, .topbar .top-actions label.aq-pick { flex: 1 1 auto; width: auto; max-width: none; min-width: 64px; height: 36px; padding: 0 .4rem; gap: .35rem; justify-content: center; }
}
/* Mitteilungen: Zeilenumbrüche (z. B. bei Ankündigungen) anzeigen */
.n-text > span:last-child, .nt-text { white-space: pre-line; }
@media (max-width: 380px) {
  .topbar .top-actions label.aq-pick { min-width: 50px; padding: 0 .2rem; gap: .15rem; }
  .top-actions .aq-pick > .ico { width: 18px; height: 18px; }
  .aq-pick-icon { font-size: 1rem; }
}
/* Profil-Zahlen anklickbar */
.stats .st-go { border-radius: 14px; padding: .55rem .3rem; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.stats .st-go:hover, .stats .st-go:focus-visible { background: var(--primary-soft, rgba(25,207,210,.1)); }
.stats .st-go:active { transform: scale(.96); background: var(--primary-soft, rgba(25,207,210,.14)); }
.stats .st-go span { color: var(--primary); font-weight: 500; }
/* Listen-Fenster: Follower / Folgt / Beiträge / Kommentare */
.fl-list, .ua-list { display: flex; flex-direction: column; gap: .35rem; max-height: 60vh; overflow-y: auto; margin: .25rem 0; }
.fl-row { display: flex; align-items: center; gap: .5rem; }
.fl-row .fl-go { flex: 1 1 auto; min-width: 0; margin: 0; }
.fl-row .fl-btn { flex: none; min-width: 92px; }
.ua-row { width: 100%; text-align: left; margin: 0; }
.ua-snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: italic; }
/* Profilkopf: Follower · Folgt · Likes */
.ph-nums { display: flex; flex-wrap: wrap; gap: .4rem; margin: .55rem 0 .2rem; }
.ph-num { display: inline-flex; align-items: baseline; gap: .3rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ph-num b { color: var(--text); font-size: .98rem; }
.ph-num:active { transform: scale(.96); }
.ph-num:hover { border-color: var(--primary); color: var(--primary); }
.ua-gal { align-items: center; }
.ua-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; margin-right: .6rem; }
/* Bio direkt im Profilkopf */
.ph-bio { margin: .5rem 0 .25rem; line-height: 1.45; color: var(--text); white-space: normal; overflow-wrap: anywhere; max-width: 60ch; }
/* Testphase: Bewerbung auf der Startseite */
.beta-box { margin: -.2rem 0 .9rem; padding: .8rem .9rem; border-radius: 14px; background: linear-gradient(135deg, rgba(25,207,210,.12), rgba(25,207,210,.04)); border: 1px solid rgba(25,207,210,.35); }
.beta-count { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.beta-count b { color: var(--primary); font-size: 1.1rem; }
.beta-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(25,207,210,.6); animation: betaPulse 1.6s infinite; flex: none; }
@keyframes betaPulse { 0% { box-shadow: 0 0 0 0 rgba(25,207,210,.55); } 70% { box-shadow: 0 0 0 9px rgba(25,207,210,0); } 100% { box-shadow: 0 0 0 0 rgba(25,207,210,0); } }
.beta-bar { height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; margin: .55rem 0 .5rem; }
.beta-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #6ee7ea); border-radius: 6px; transition: width .6s ease; }
.beta-box p { margin: 0; }
.beta-rules { margin: .2rem 0 .6rem; }
.beta-rules details { border: 1px solid var(--border); border-radius: 12px; padding: .55rem .8rem; margin-bottom: .6rem; background: var(--card); }
.beta-rules summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.beta-rules ul { margin: .5rem 0 .1rem; padding-left: 1.1rem; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.beta-rules li { margin-bottom: .3rem; }
.beta-rules li b { color: var(--text); }
#betaNoteRow textarea { margin-top: .3rem; }
.lp-beta-pill { display: inline-block; margin: .2rem 0 .9rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(25,207,210,.12); border: 1px solid rgba(25,207,210,.4); color: var(--text); font-size: .9rem; font-weight: 500; }
.lp-beta-pill b { color: var(--primary); }
/* Admin: Beta */
.bt-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; margin: .6rem 0 .2rem; }
.bt-stat b { display: block; font-size: 1.5rem; font-family: var(--font-head); }
.bt-stat span { color: var(--muted); font-size: .8rem; }
.bt-switch { margin: .8rem 0 .4rem; }
.bt-row { align-items: end; }
.bt-row input { max-width: 120px; }
.bt-item { padding: .8rem 0; border-top: 1px solid var(--border); }
.bt-item:first-of-type { border-top: 0; }
.bp-row { display: flex; gap: .35rem; align-items: center; }
.bp-row input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, monospace; }
/* Markenname AquaBot: Aqua weiß, Bot türkis */
.bt-aqua { color: var(--text); }
.bt-bot { color: var(--primary); }
.brand-word { white-space: nowrap; }
.btn.primary .bt-aqua, .btn.primary .bt-bot, .chip.on .bt-aqua, .chip.on .bt-bot { color: inherit; }
.btn.primary .bt-bot { font-weight: 800; }
.modal .check-row { display: flex; gap: .6rem; align-items: flex-start; margin: .35rem 0 .6rem; font-weight: 400; }
.modal .check-row input { width: auto; flex: none; margin: .2rem 0 0; min-height: 0; }
.bp-row .btn { white-space: nowrap; flex: none; }
/* Dünger per Foto */
.fs-card { border: 1px solid rgba(25,207,210,.35); background: linear-gradient(160deg, rgba(25,207,210,.10), transparent 60%), var(--card); }
.fs-top { display: flex; gap: .8rem; align-items: flex-start; }
.fs-top h2 { margin: 0 0 .25rem; }
.fs-top p { margin: 0; }
.fs-ico { font-size: 1.8rem; line-height: 1; flex: none; margin-top: .1rem; }
.fs-shots { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0 .2rem; }
.fs-th { position: relative; width: 72px; height: 72px; flex: none; }
.fs-th img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.fs-more { flex: 1 1 160px; }
.fs-empty { margin: 0; }
.fs-row { margin-top: .6rem; }
.fs-go { width: 100%; margin-top: .3rem; }
.fs-loading { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; color: var(--muted); }
.fs-loading .spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: fsSpin .8s linear infinite; }
@keyframes fsSpin { to { transform: rotate(360deg); } }
.fs-res { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.fs-prod { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.fs-prod b { font-size: 1.05rem; margin-right: .2rem; }
.fs-for { margin: .7rem 0 .4rem; }
.fs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.fs-grid.one { grid-template-columns: 1fr; }
.fs-grid > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .7rem .4rem; border-radius: 14px; background: rgba(25,207,210,.10); border: 1px solid rgba(25,207,210,.3); }
.fs-grid span { color: var(--muted); font-size: .8rem; }
.fs-grid b { font-size: 1.3rem; font-family: var(--font-head); color: var(--primary); }
.fs-grid small { color: var(--muted); font-size: .78rem; }
.fs-more-box { margin-top: .7rem; font-size: .9rem; }
.fs-more-box ul { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.nd-body { white-space: pre-line; line-height: 1.55; overflow-wrap: anywhere; max-height: 60vh; overflow-y: auto; }
/* Rechner: Süß-/Meerwasser umschalten und Meerwasser-Karten */
.calc-water { display: inline-flex; margin-bottom: .7rem; }
.reef-out { margin-top: .6rem; }
.reef-big { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(25,207,210,.10); border: 1px solid rgba(25,207,210,.3); margin: .4rem 0; }
.reef-big span { color: var(--muted); font-size: .85rem; }
.reef-big b { font-size: 1.6rem; font-family: var(--font-head); color: var(--primary); }
.reef-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; margin: .4rem 0; }
.reef-grid > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .7rem .4rem; border-radius: 14px; background: rgba(25,207,210,.10); border: 1px solid rgba(25,207,210,.3); }
.reef-grid span { color: var(--muted); font-size: .8rem; }
.reef-grid b { font-size: 1.15rem; font-family: var(--font-head); color: var(--primary); }
.reef-tips { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.reef-tips li { margin-bottom: .25rem; }
.reef-hint { margin: .5rem 0; padding: .55rem .8rem; border-radius: 12px; font-size: .9rem; }
.reef-hint.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); }
.reef-hint.warn { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4); }
.reef-card label small { display: block; margin-top: .3rem; font-weight: 400; }
/* Verlauf: Export-Knopf und Import (Label) exakt gleich groß */
.hist-head .row-actions { align-items: center; }
.hist-head .row-actions > .btn, .hist-head label.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; margin: 0; height: 40px; min-height: 40px; padding: 0 .9rem; font-size: .9rem; font-weight: 600; line-height: 1; color: var(--text); box-sizing: border-box; }
/* ICP-Analyse */
.icp-card { border: 1px solid rgba(25,207,210,.35); }
.icp-pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 1.5rem; }
.icp-pdf small { font-size: .6rem; color: var(--muted); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icp-res { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.icp-sum { margin: .6rem 0; line-height: 1.5; }
.icp-table { width: 100%; font-size: .88rem; }
.icp-table td { padding: .4rem .35rem; vertical-align: top; }
.icp-table td.num { white-space: nowrap; text-align: right; }
.icp-table tr.warn td { background: rgba(245,158,11,.08); }
.icp-table tr.bad td { background: rgba(239,68,68,.12); }
.icp-hist { margin-top: 1rem; }
.icp-hist h3 { margin: 0 0 .4rem; font-size: 1rem; }
.icp-old { width: 100%; text-align: left; }
/* Wasser-Rechner: aufklappbare Karten */
.wcard > summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; cursor: pointer; list-style: none; }
.wcard > summary::-webkit-details-marker { display: none; }
.wcard > summary h2 { margin: 0; font-size: 1.05rem; }
.wcard[open] > summary { margin-bottom: .6rem; }
.wcard[open] .fs-chev { transform: rotate(180deg) translateY(-3px); }
.wcard .fs-chev { flex: none; font-size: 1.3rem; color: var(--primary); transition: transform .2s; transform: translateY(-3px); }
.reef-grid small { color: var(--muted); font-size: .78rem; }
.fr-log { margin-top: .7rem; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: .2rem; }
/* Videos in Galerie, Betrachter und Forum */
.vw-slide video { max-width: 100%; max-height: 100%; border-radius: 10px; background: #000; }
.gal-grid > div, .gal-cell, .gal-th { position: relative; }
.gal-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px; pointer-events: none; box-shadow: 0 0 0 2px rgba(255,255,255,.75); backdrop-filter: blur(2px); }
.post-video { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; display: block; margin: .6rem 0; }
.post-img-wrap { position: relative; }
.vid-prog { margin-top: .8rem; }
.cp-vid { position: relative; width: 120px; height: 90px; }
.cp-vid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.chat-vid-badge { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; padding: 2px 6px; border-radius: 6px; }
/* Aquarium-Foto läuft unten weich aus (wie das Profilbanner) */
.aq-img img { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); }
.aq-img:has(img) { background: none; }
.media-pick { display: flex; flex-direction: column; gap: .55rem; margin: .4rem 0 .2rem; }
.media-pick .btn { justify-content: flex-start; width: 100%; padding: .85rem 1rem; font-size: 1rem; }
.media-pick small { margin-left: .3rem; font-weight: 400; }
/* Volumen: Literzahl oder Kantenmaße */
.vol-seg { display: flex; width: 100%; margin: .35rem 0 .45rem; }
.vol-seg button { flex: 1 1 0; }
.vol-dims { margin-top: .5rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--primary) 5%, var(--card)); font-weight: 400; color: var(--text); }
.vol-dims label { color: var(--muted); }
.vol-row { display: flex; align-items: flex-end; gap: .35rem; }
.vol-row label { flex: 1 1 0; min-width: 0; margin-bottom: .5rem; }
.vol-row span { padding-bottom: 1.1rem; color: var(--muted); }
.vol-sub { margin-bottom: .5rem; max-width: 180px; }
.vol-out b { color: var(--text); }
.vol-out span { display: block; font-size: .78rem; margin-top: .2rem; }
.vol-out .linkbtn { font-size: .78rem; padding: 0; }
input.vol-result { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.mail-edit { margin: .4rem 0 .6rem; border: 1px solid var(--border); border-radius: 12px; padding: .5rem .75rem; }
.mail-edit summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.mail-edit[open] summary { margin-bottom: .6rem; }
.mail-edit textarea { font-size: .85rem; line-height: 1.45; }

/* ---------- Anmeldung: Passkey / Google / Zwei-Faktor ---------- */
.auth-alt { display: grid; gap: .5rem; margin: .35rem 0 .2rem; }
.auth-alt[hidden] { display: none; }
.auth-or { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .82rem; margin: .2rem 0; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-card .auth-alt-btn { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: 0; background: var(--card); border: 1px solid var(--border); font-weight: 600; }
.auth-alt-btn[hidden] { display: none !important; }
.auth-alt-btn .aa-ico { width: 1.15rem; height: 1.15rem; font-size: 1.05rem; line-height: 1; flex: none; }
.mfa-modal { max-width: 420px; }
.mfa-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; }
.mfa-tabs[hidden] { display: none; }
.mfa-tabs .chip { cursor: pointer; font-size: .85rem; }
.mfa-body .mfa-big { width: 100%; padding: .85rem; font-size: 1.02rem; }
.mfa-code { display: grid; gap: .55rem; }
.mfa-code input { font-size: 1.4rem; letter-spacing: .2em; text-align: center; }
.mfa-modal .mfa-rec { font-size: .85rem; margin-top: .3rem; }
.mfa-card .mfa-row { display: flex; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--border); }
.mfa-card .mfa-row:first-of-type { margin-top: .4rem; }
.mfa-ico { font-size: 1.4rem; width: 2rem; text-align: center; flex: none; line-height: 1.3; }
.mfa-main { flex: 1; min-width: 0; }
.mfa-main p { margin: .15rem 0 .5rem; }
.mfa-ttl { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.mfa-on { font-size: .75rem; font-weight: 700; color: var(--ok, #16a34a); background: color-mix(in srgb, var(--ok, #16a34a) 14%, transparent); padding: .1rem .5rem; border-radius: 999px; }
.mfa-pks { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .3rem; font-size: .9rem; }
.mfa-pks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.mfa-pks .btn.link { padding: 0 .2rem; color: var(--err); }
.mfa-g { border-top: 1px solid var(--border); padding-top: .7rem; margin-bottom: 0; }
.mfa-modal .btn.link.mfa-rec { background: none; border: 0; box-shadow: none; width: auto; padding: .3rem 0; display: block; margin: .4rem auto 0; }

/* ---------- Beckengröße: Kantenmaße zuerst, Modellsuche, Hinweis ---------- */
.vol-field { display: block; }
.vol-seg button small { font-weight: 400; opacity: .8; font-size: .75rem; }
.vol-field > .vol-dims { margin: 0 0 .5rem; }
.vol-search { position: relative; margin-bottom: .55rem; }
.vol-search label { color: var(--text); font-weight: 600; }
.vol-hits { display: grid; gap: .3rem; margin-top: .35rem; max-height: 260px; overflow: auto; }
.vol-hits[hidden] { display: none; }
.vol-hit { display: grid; gap: .1rem; text-align: left; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.vol-hit:hover, .vol-hit:focus-visible { border-color: var(--primary); background: var(--primary-soft); outline: none; }
.vol-hit span { font-size: .82rem; color: var(--muted); font-weight: 400; }
.vol-hit i { color: var(--warn-text); font-style: normal; }
.vol-nohit { margin: .2rem 0 0; }
.vol-why { margin-top: .6rem; font-size: .88rem; font-weight: 400; }
.vol-why summary { cursor: pointer; color: var(--primary-text, var(--primary)); font-weight: 600; }
.vol-why ul, .vol-hint ul { padding-left: 1.1rem; margin: .4rem 0; line-height: 1.45; }
.vol-why li, .vol-hint li { margin-bottom: .3rem; }
.vol-hint { margin: .55rem 0 .3rem; padding: .8rem .9rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, var(--card)); font-size: .88rem; font-weight: 400; color: var(--text); }
.vol-hint[hidden] { display: none; }
.vol-hint-h { font-weight: 700; margin-bottom: .3rem; }
.vol-hint p { margin: .3rem 0; }
.vol-hint .btn { margin-top: .3rem; }
.onb-modal { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.vol-hint p, .vol-hint li, .vol-why p, .vol-why li, .vol-hint summary { font-size: .88rem; line-height: 1.45; font-weight: 400; }
.vol-hint b, .vol-why b { font-weight: 700; }
.vol-hint .vol-why summary { font-weight: 600; }
.vol-seg button { line-height: 1.2; }
.modal .vol-hits button, .modal .vol-hint .btn { margin-bottom: 0; }
.vol-seg button.on small { color: inherit; opacity: .85; }

/* ---------- Trends: moderne Karten mit Fadenkreuz ---------- */
.tc { padding: 1rem 1rem .6rem; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, var(--card)) 0%, var(--card) 70%); border-radius: 18px; }
.tc .tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.tc-name h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.tc-name small { display: block; color: var(--muted); font-size: .75rem; margin-top: .1rem; }
.tc-val { text-align: right; font-variant-numeric: tabular-nums; }
.tc-num { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; transition: color .15s; }
.tc-val > small { color: var(--muted); font-size: .8rem; }
.tc-sub { font-size: .75rem; color: var(--muted); margin-top: .1rem; min-height: 1em; }
.tc.out .tc-num { color: var(--warn-text); }
.tc.scrub .tc-num { color: var(--primary); }
.tc.scrub .tc-sub { color: var(--text); }
.tc .chart-box { height: 170px; margin-top: .4rem; }
.chart-box canvas { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.tscan-btn { width: 100%; margin: .6rem 0 .2rem; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 18%, var(--card)), var(--card)); border: 1px solid var(--primary-ring); font-weight: 700; }

/* ---------- Sofort-Hinweise & Trend-Scan ---------- */
.va-modal .va-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.va-head span { font-size: 1.8rem; }
.va-head h2 { margin: 0; }
.va-head.danger h2 { color: var(--err-text); }
.va-item { border-radius: 12px; padding: .75rem .9rem; margin-bottom: .6rem; border: 1px solid var(--border); border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--card)); }
.va-item.danger { border-left-color: var(--err); background: color-mix(in srgb, var(--err) 9%, var(--card)); }
.va-item h3 { margin: 0 0 .3rem; font-size: 1rem; }
.va-item p { margin: 0 0 .4rem; font-size: .9rem; line-height: 1.45; }
.va-item ol { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .9rem; line-height: 1.45; }
.va-do { font-size: .85rem; }
.ts-modal .ts-load { text-align: center; padding: 1rem 0; }
.ts-radar { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; border: 2px solid var(--primary-ring); position: relative; overflow: hidden; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 18%, transparent) 0 30%, transparent 31%); }
.ts-radar::after { content: ''; position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--primary) 70%, transparent) 100%); animation: tsSpin 1.4s linear infinite; }
@keyframes tsSpin { to { transform: rotate(360deg); } }
.ts-status { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; margin-bottom: .8rem; background: color-mix(in srgb, var(--ok) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.ts-status.warn { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.ts-status.danger { background: color-mix(in srgb, var(--err) 10%, var(--card)); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.ts-status > span { font-size: 1.7rem; line-height: 1; }
.ts-status h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.ts-status p { margin: 0; font-size: .92rem; line-height: 1.45; }
.ts-list { display: grid; gap: .5rem; margin-bottom: .8rem; }
.ts-f { padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.ts-f.warn { border-left: 4px solid var(--warn); } .ts-f.danger { border-left: 4px solid var(--err); } .ts-f.ok { border-left: 4px solid var(--ok); }
.ts-ft { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.ts-ft small { color: var(--muted); font-size: .75rem; margin-left: auto; }
.ts-f p { margin: .3rem 0 0; font-size: .9rem; line-height: 1.45; }
.ts-act { color: var(--text); font-weight: 600; }
.ts-sus, .ts-tips { margin-bottom: .8rem; font-size: .9rem; }
.ts-sus h3, .ts-tips h3 { font-size: .95rem; margin: 0 0 .3rem; }
.ts-tips ul { margin: 0; padding-left: 1.2rem; line-height: 1.45; }
.ai-note { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: .6rem; margin-top: .4rem; }

/* ---------- Katalog: Suche, Foto, Steckbrief ---------- */
.cat-pick { display: grid; gap: .55rem; }
.cat-tabs { width: 100%; display: flex; }
.cat-tabs button { flex: 1 1 0; padding: .4rem .3rem; font-size: .82rem; white-space: nowrap; }
.cat-bar { display: flex; gap: .45rem; }
.cat-bar .cat-q { flex: 1; min-width: 0; }
.cat-bar .cat-cam { flex: none; margin: 0; width: auto; white-space: nowrap; }
.cat-hits { display: grid; gap: .35rem; max-height: 330px; overflow: auto; }
.cat-hits[hidden] { display: none; }
.cat-hit { display: flex; align-items: center; gap: .65rem; text-align: left; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.cat-hit:hover, .cat-hit:focus-visible { border-color: var(--primary); background: var(--primary-soft); outline: none; }
.cat-hit img, .cat-hit .cat-ico { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 1.4rem; background: var(--hover); }
.cat-hit > span:not(.cat-ico) { display: grid; min-width: 0; }
.cat-hit small { color: var(--muted); font-style: italic; font-size: .78rem; }
.cat-hit em { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--primary-text, var(--primary)); border: 1px solid var(--primary-ring); border-radius: 999px; padding: .05rem .45rem; }
.cat-more { margin: .15rem 0 0; }
.cat-modal { max-width: 520px; max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.cat-hero { margin: -1.4rem -1.4rem .4rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 22%, var(--card)), var(--card)); }
.cat-hero img { width: 100%; height: 230px; object-fit: cover; display: block; }
.cat-hero-ph { height: 150px; display: grid; place-items: center; font-size: 4rem; }
.cat-credit { font-size: .68rem; color: var(--muted); margin: 0 0 .5rem; text-align: right; }
.cat-credit a { color: inherit; }
.cat-title h2 { margin: 0; }
.cat-title i { color: var(--muted); display: block; margin-top: .1rem; }
.cat-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin: .5rem 0 .2rem; }
.cat-tags .chip { cursor: default; font-size: .78rem; }
.cat-ai { border-color: var(--primary-ring); color: var(--primary-text, var(--primary)); }
.cat-photo { border-radius: 12px; padding: .65rem .8rem; margin: .6rem 0; font-size: .88rem; border: 1px solid var(--primary-ring); background: var(--primary-soft); }
.cat-photo.niedrig { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--card)); }
.cat-photo p { margin: .3rem 0 0; }
.cat-alts { margin-top: .45rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.cat-alts .chip { cursor: pointer; }
.cat-fit { border-radius: 12px; padding: .6rem .8rem; margin: .6rem 0; border: 1px solid var(--border); font-size: .88rem; }
.cat-fit p { margin: .3rem 0 0; } .cat-fit p.warn { color: var(--warn-text); font-weight: 600; } .cat-fit p.ok { color: var(--ok); }
.cat-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: .7rem 0; }
.cat-fact { display: grid; grid-template-columns: auto 1fr; column-gap: .45rem; align-items: center; padding: .55rem .65rem; border-radius: 12px; background: var(--hover); }
.cat-fact > span { grid-row: span 2; font-size: 1.15rem; }
.cat-fact small { color: var(--muted); font-size: .72rem; }
.cat-fact b { font-size: .86rem; line-height: 1.3; overflow-wrap: anywhere; }
.cat-notes { font-size: .9rem; line-height: 1.5; }
.cat-add { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: end; margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.cat-add button { grid-column: 1 / -1; }
.cat-add label { margin: 0; }
.st-manual summary { cursor: pointer; font-weight: 600; margin-bottom: .4rem; }
.stk-item { align-items: center; }
.stk-thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: var(--hover); cursor: pointer; display: grid; place-items: center; font-size: 1.3rem; margin-right: .55rem; }
.stk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stk-name { font-weight: 700; font-size: inherit; color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--muted); }
.onb-added { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0; }
.onb-added .chip { cursor: default; }
.modal p.cat-credit { font-size: .68rem; line-height: 1.3; margin: .35rem 0 .6rem; }
.modal p.ai-note { font-size: .78rem; line-height: 1.4; margin: .8rem 0 .4rem; }
.modal .cat-fit p, .modal .cat-photo p { font-size: .88rem; margin: .3rem 0 0; }
.modal p.cat-notes { font-size: .92rem; margin: .4rem 0 .6rem; }
.modal .va-item p, .modal .ts-f p, .modal .ts-status p, .modal .ts-sus p { margin-bottom: .3rem; }
.cat-fact.wide { grid-column: 1 / -1; }
.aqd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.aqd-tabs .chip { justify-content: center; text-align: center; padding: .55rem .6rem; }
.aqd-tabs .chip:first-child { grid-column: 1 / -1; font-weight: 700; }
.aq-actions .btn.primary[data-dv="stock"] { flex: 1 1 100%; }

/* ---------- Ausstattung beim Anlegen ---------- */
.setup-box { border: 1px solid var(--border); border-radius: 14px; padding: .7rem .85rem; margin: .4rem 0 .8rem; background: color-mix(in srgb, var(--primary) 4%, var(--card)); }
.setup-box > summary { cursor: pointer; font-weight: 700; }
.setup-box > summary small { font-weight: 400; color: var(--muted); }
.setup-box[open] > summary { margin-bottom: .4rem; }
.setup h4 { margin: .9rem 0 .45rem; font-size: .95rem; }
.setup h4 small { color: var(--muted); font-weight: 400; }
.setup-grid { display: grid; gap: .6rem; }
.setup-f { display: grid; gap: .3rem; position: relative; }
.setup-l { font-size: .85rem; font-weight: 600; color: var(--text); }
.setup-opts { display: flex; flex-wrap: wrap; gap: .3rem; }
.setup-opts .chip { cursor: pointer; font-size: .8rem; }
.setup-hits { display: grid; gap: .25rem; }
.setup-hits[hidden] { display: none; }
.setup-hit { text-align: left; padding: .4rem .6rem; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.setup-hit:hover { border-color: var(--primary); }
.setup-cat { color: var(--ok); font-size: .75rem; }
.setup-pend { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.setup-pend .chip { cursor: default; display: inline-flex; align-items: center; gap: .3rem; }
.setup-rm { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 .1rem; font-size: .8rem; opacity: .7; }
.setup-hint { margin: .2rem 0 .8rem; }
.modal .setup p.muted { font-size: .85rem; margin-bottom: .4rem; }
.setup-row { display: flex; gap: .4rem; }
.setup-row .setup-x { flex: 1; min-width: 0; }
.setup-row .setup-cam { flex: none; width: auto; margin: 0; padding: 0 .8rem; }
.setup-f.flash { animation: setupFlash 1.6s ease-out; border-radius: 10px; }
@keyframes setupFlash { 0%, 40% { box-shadow: 0 0 0 3px var(--primary-ring); background: var(--primary-soft); } 100% { box-shadow: 0 0 0 0 transparent; background: transparent; } }
.fprod-row { display: flex; gap: .4rem; }
.fprod-row > input { flex: 1; min-width: 0; }
.fprod-row .fprod-cam { flex: none; width: auto; margin: 0; white-space: nowrap; padding: 0 .85rem; }
.sug-head { padding: .55rem .85rem; font-size: .88rem; border-bottom: 1px solid var(--border); }
@media (max-width: 380px) { .fprod-cam span { display: none; } }
.cat-photo .cat-agree { color: var(--ok); font-weight: 600; }
.cat-photo .cat-disagree { color: var(--warn-text); font-weight: 600; }
.cat-photo [data-more] { margin-top: .5rem; }

/* ---------- Admin: Logins ---------- */
.lg-chk { display: flex; align-items: center; gap: .4rem; font-size: .88rem; white-space: nowrap; }
.lg-chk input { width: auto; margin: 0; }
.lg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .7rem; }
.lg-stats > div { background: var(--hover); border-radius: 12px; padding: .55rem .6rem; text-align: center; }
.lg-stats b { display: block; font-size: 1.3rem; }
.lg-stats small { color: var(--muted); font-size: .72rem; }
.lg-stats .warn b { color: var(--err-text); }
.lg-day { font-weight: 700; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 1rem 0 .3rem; }
.lg-day:first-child { margin-top: 0; }
.lg-row { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .2rem; border-top: 1px solid var(--border); }
.lg-row[data-lu] { cursor: pointer; }
.lg-row[data-lu]:hover { background: var(--hover); }
.lg-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 3.1rem; color: var(--text); }
.lg-main { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.lg-row.fail .lg-meth { color: var(--err-text); font-weight: 600; }
.lg-on { font-size: .7rem; font-weight: 700; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); border-radius: 999px; padding: 0 .4rem; }

/* ---------- AquaBot-Helfer ---------- */
.side-brand .logo, .topbar .logo { cursor: pointer; transition: transform .15s var(--ease); }
.side-brand .logo:active, .topbar .logo:active { transform: scale(.92); }
body:not(.helper-on) .topbar .logo, body:not(.helper-on) .side-brand .logo { opacity: .75; }
.helper-fab { position: fixed; right: 14px; bottom: 20px; z-index: 150; width: 68px; height: 68px; padding: 0; border: 0; background: none; border-radius: 50%;
  cursor: pointer; overflow: visible; animation: helperIn .45s var(--ease) both; transition: transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.hb-float { display: block; width: 100%; height: 100%; animation: hbFloat 3.4s ease-in-out infinite; }
.hb-face { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #1d4c58 0%, #10262e 55%, #0a1418 100%);
  border: 2px solid rgba(74, 233, 255, .55);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 4px rgba(25, 207, 210, .12), 0 0 18px rgba(25, 207, 210, .25), inset 0 -8px 16px rgba(0,0,0,.35), inset 0 6px 12px rgba(120, 240, 255, .08); }
.hb-face img, .hb-svg { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; display: block; }
.hb-face img { object-fit: cover; }
@keyframes hbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* Gesicht */
.hb-svg .hb-eye, .hb-svg .hb-arc, .hb-svg .hb-mouth, .hb-svg .hb-look { transform-box: fill-box; transform-origin: center; transition: opacity .15s, transform .25s var(--ease); }
.hb-svg .hb-eye { animation: hbBlink 5.2s infinite; }
.hb-svg .hb-r { animation-delay: .02s; }
@keyframes hbBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.hb-svg .hb-arc, .hb-svg .hb-flat, .hb-svg .hb-frown, .hb-svg .hb-shut, .hb-svg .hb-talk { opacity: 0; }
.m-wink .hb-r { opacity: 0; animation: none; } .m-wink .hb-ar { opacity: 1; }
.m-happy .hb-eye { opacity: 0; animation: none; } .m-happy .hb-arc { opacity: 1; }
.m-happy .hb-face, .m-wave .hb-face { animation: hbHop .5s var(--ease); }
@keyframes hbHop { 40% { transform: translateY(-6px) rotate(-4deg); } 70% { transform: translateY(0) rotate(2deg); } }
.m-think .hb-look { transform: translate(-6px, -7px); }
.m-think .hb-eye { transform: scaleY(.82); animation: none; }
.m-think .hb-smile { opacity: 0; } .m-think .hb-flat { opacity: 1; }
.m-think .hb-face { animation: hbTilt 2.4s ease-in-out infinite; }
@keyframes hbTilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
.m-sad .hb-smile { opacity: 0; } .m-sad .hb-frown { opacity: 1; }
.m-sad .hb-eye { transform: scaleY(.7) translateY(3px); animation: none; }
/* Winken und Gedankenblase */
.hb-hand { position: absolute; left: -12px; top: 2px; font-size: 1.35rem; opacity: 0; transform-origin: 70% 90%; pointer-events: none; }
.m-wave .hb-hand { animation: hbWave 2s ease-in-out; }
@keyframes hbWave { 0% { opacity: 0; transform: scale(.4) rotate(0); } 12% { opacity: 1; transform: scale(1) rotate(-12deg); } 25% { transform: rotate(18deg); } 40% { transform: rotate(-14deg); } 55% { transform: rotate(16deg); } 70% { transform: rotate(-6deg); opacity: 1; } 100% { opacity: 0; transform: rotate(0) scale(.8); } }
.hb-thought { position: absolute; left: -18px; top: -6px; display: flex; gap: 3px; padding: 5px 7px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s var(--ease); pointer-events: none; }
.hb-thought i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); animation: hpDot 1s infinite ease-in-out; }
.hb-thought i:nth-child(2) { animation-delay: .15s; } .hb-thought i:nth-child(3) { animation-delay: .3s; }
.m-think .hb-thought { opacity: 1; transform: none; }
.helper-fab:hover { transform: translateY(-2px); }
.helper-fab:active { transform: scale(.94); }
.helper-fab[hidden] { display: none; }
@keyframes helperIn { from { opacity: 0; transform: translateY(16px) scale(.8); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) { .helper-fab { bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 8px); right: 8px; width: 64px; height: 64px; } }
body:has(.modal-overlay) .helper-fab { display: none; }
.helper-panel { position: fixed; right: 16px; bottom: 92px; z-index: 160; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 140px));
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.helper-panel.on { opacity: 1; transform: none; }
@media (max-width: 899px) { .helper-panel { right: 12px; left: 12px; width: auto; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 72px); max-height: calc(100dvh - var(--bottomnav-h) - var(--topbar-h) - 100px); } }
.hp-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
.hp-head img { border-radius: 50%; background: #0b1218; object-fit: cover; }
.hp-head b { display: block; }
.hp-head small { color: var(--muted); font-size: .75rem; }
.hp-x { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: .3rem .5rem; border-radius: 8px; }
.hp-x:hover { background: var(--hover); }
.hp-msgs { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; overscroll-behavior: contain; }
.hp-msg { max-width: 88%; padding: .55rem .75rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.hp-msg.bot { background: var(--hover); border-bottom-left-radius: 4px; align-self: flex-start; }
.hp-msg.user { background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.hp-go { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.hp-go .btn { margin: 0; }
.hp-typing { display: flex; gap: .25rem; }
.hp-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: hpDot 1s infinite ease-in-out; }
.hp-typing span:nth-child(2) { animation-delay: .15s; } .hp-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hpDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.hp-chips { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0 .8rem; }
.hp-chips:not(:empty) { padding-bottom: .6rem; }
.hp-chips .chip { font-size: .78rem; cursor: pointer; }
.hp-form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--border); }
.hp-in { flex: 1; min-width: 0; margin: 0; }
.hp-send { flex: none; width: auto; margin: 0; padding: 0 .9rem; }
.help-flash { animation: helpFlash 2s ease-out; border-radius: 14px; }
@keyframes helpFlash { 0%, 35% { box-shadow: 0 0 0 3px var(--primary-ring); } 100% { box-shadow: 0 0 0 0 transparent; } }
.helper-intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: var(--overlay); opacity: 0; transition: opacity .25s; }
.helper-intro.on { opacity: 1; }
.hi-card { position: relative; width: min(400px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 1.2rem 1.3rem 1.1rem; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: translateY(18px); transition: transform .3s var(--ease); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.helper-intro.on .hi-card { transform: none; }
.hi-bot { width: 190px; height: auto; margin: -.2rem auto .3rem; display: block; filter: drop-shadow(0 10px 22px rgba(25, 207, 210, .25)); animation: hiWave 2.4s ease-in-out infinite; }
@keyframes hiWave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-3px); } }
.hi-card h2 { margin: .2rem 0 .5rem; }
.hi-card p { font-size: .95rem; line-height: 1.5; margin: 0 0 .7rem; }
.hi-card .modal-actions { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .hi-bot, .helper-fab, .hb-float, .hb-face, .hb-svg .hb-eye, .hb-hand, .hb-thought i { animation: none !important; } .m-wave .hb-hand { opacity: 1; } }

/* ---------- AquaBot im Sprachmodus ---------- */
.vc-orb.vc-has-bot .glow { inset: -10%; }
.vc-bot { position: relative; z-index: 2; width: 170px; height: 170px; display: block; animation: hbFloat 3.6s ease-in-out infinite; }
.vc-bot .hb-face { border-width: 3px; box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 8px rgba(25, 207, 210, .1), 0 0 50px rgba(25, 207, 210, .35), inset 0 -14px 26px rgba(0,0,0,.4), inset 0 10px 20px rgba(120, 240, 255, .1); }
.vc-orb.vc-has-bot .ring { inset: 20px; }
/* zuhören: aufmerksam, blinzelt */
.vc[data-state="listening"] .vc-bot .hb-look { transform: translateY(-2px); }
/* nachdenken */
.vc[data-state="thinking"] .vc-bot .hb-look { transform: translate(-7px, -8px); }
.vc[data-state="thinking"] .vc-bot .hb-eye { transform: scaleY(.82); animation: none; }
.vc[data-state="thinking"] .vc-bot .hb-smile { opacity: 0; }
.vc[data-state="thinking"] .vc-bot .hb-flat { opacity: 1; }
.vc[data-state="thinking"] .vc-bot .hb-face { animation: hbTilt 2.4s ease-in-out infinite; }
/* sprechen: Mund bewegt sich */
.vc[data-state="speaking"] .vc-bot .hb-smile { opacity: 0; }
.vc[data-state="speaking"] .vc-bot .hb-talk { opacity: 1; animation: hbTalk .9s infinite; }
.vc[data-state="speaking"] .vc-bot { animation: hbFloat 3.6s ease-in-out infinite, hbBounce .45s ease-in-out infinite; }
@keyframes hbTalk { 0% { transform: scaleY(.35) scaleX(.9); } 14% { transform: scaleY(1) scaleX(1); } 28% { transform: scaleY(.5); } 42% { transform: scaleY(.9) scaleX(1.05); } 56% { transform: scaleY(.3); } 70% { transform: scaleY(.8); } 85% { transform: scaleY(.45) scaleX(.95); } 100% { transform: scaleY(.35) scaleX(.9); } }
@keyframes hbBounce { 0%, 100% { margin-top: 0; } 50% { margin-top: -3px; } }
/* pausiert: schläft */
.vc[data-state="paused"] .vc-bot .hb-eye { opacity: 0; animation: none; }
.vc[data-state="paused"] .vc-bot .hb-shut { opacity: 1; }
.vc[data-state="paused"] .vc-bot .hb-smile { opacity: 0; }
.vc[data-state="paused"] .vc-bot .hb-flat { opacity: 1; }
.vc[data-state="paused"] .vc-bot { filter: grayscale(.6) brightness(.75); animation: none; }
@media (prefers-reduced-motion: reduce) { .vc-bot, .vc-bot .hb-face { animation: none !important; } }
/* lange Mitteilungen in der Liste kürzen, im Fenster komplett */
.notif .n-text > span:last-child { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.an-count { display: block; text-align: right; margin-top: .2rem; }

/* ================= Adminbereich (neu) ================= */
.admin-main .card > h2:first-child { margin-top: 0; }
.anav { position: relative; z-index: 2; margin: 0 0 .9rem; padding: .5rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.anav-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; }
.anav-g { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem .2rem; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); font: inherit; font-size: .74rem; cursor: pointer; transition: background .2s var(--ease, ease), color .2s; }
.anav-g:hover { background: var(--hover); color: var(--text); }
.anav-g.on { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.anav-i { font-size: 1.2rem; line-height: 1; }
.anav-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.anav-dot { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--err); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; }
.anav-subs { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid var(--border); gap: .35rem; }
.anav-subs .chip { padding: .35rem .7rem; font-size: .84rem; }
.anav-subs::-webkit-scrollbar { display: none; }
.anav-maint { display: block; width: 100%; margin-bottom: .45rem; padding: .45rem .6rem; border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 10px;
  background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn-text, var(--text)); font: inherit; font-size: .82rem; text-align: left; cursor: pointer; }

.ah-hero { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--card)), var(--card) 70%); }
.ah-hero h2 { margin: 0 0 .2rem; } .ah-hero p { margin: 0; }
.ah-quick { display: flex; gap: .4rem; flex-wrap: wrap; }
.ah-todo { display: grid; gap: .4rem; }
.ah-todo-i { display: grid; grid-template-columns: 2rem auto 1fr auto; align-items: center; gap: .55rem; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.ah-todo-i:hover { border-color: var(--primary); background: var(--hover); }
.ah-todo-i b { font-size: 1.1rem; color: var(--primary-text); }
.ah-ico { font-size: 1.25rem; text-align: center; } .ah-go { color: var(--muted); font-size: 1.3rem; }
.ah-done { padding: .9rem; text-align: center; border-radius: 12px; background: color-mix(in srgb, var(--ok) 12%, transparent); margin: 0; }
.ah-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .55rem; margin-top: .6rem; }
.ah-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .75rem .8rem; border: 1px solid var(--border); border-radius: 14px;
  background: var(--primary-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ah-tile:disabled { cursor: default; }
.ah-tile:not(:disabled):hover { border-color: var(--primary); }
.ah-tile b { font-size: 1.45rem; color: var(--primary-text); line-height: 1.1; }
.ah-tile span { font-size: .82rem; } .ah-tile small { font-size: .72rem; color: var(--muted); }
.ah-list { display: grid; gap: .25rem; } .ah-row { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .2rem; border-bottom: 1px solid var(--border); }
.ah-row:last-child { border-bottom: 0; } .ah-row span { overflow: hidden; text-overflow: ellipsis; }

.badge.warn { color: var(--warn-text, #f59e0b); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.ad-quick { padding-bottom: .55rem; border-bottom: 1px dashed var(--border); }
.ad-grp { display: grid; grid-template-columns: 5.6rem 1fr; gap: .5rem; align-items: start; margin-top: .55rem; }
.ad-grp .adactions { margin-top: 0; }
.ad-grp-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: .45rem; }
@media (max-width: 520px) { .ad-grp { grid-template-columns: 1fr; gap: .25rem; } .ad-grp-l { padding-top: 0; } }
.aw-prev { padding: .45rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--warn) 14%, transparent); }

.uv-modal { max-width: 560px; width: 100%; }
.uv-head { display: flex; gap: .8rem; align-items: center; }
.uv-head .ad-av { width: 56px; height: 56px; font-size: 1.4rem; flex: 0 0 auto; }
.uv-head h2 { margin: 0; } .uv-head p { margin: .1rem 0 .3rem; }
.uv-badges { display: flex; gap: .3rem; flex-wrap: wrap; }
.uv-note { margin: .8rem 0 .4rem; padding: .45rem .6rem; border-radius: 8px; background: var(--hover); }
.uv-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .6rem 0 .2rem; }
@media (max-width: 420px) { .uv-facts { grid-template-columns: repeat(2, 1fr); } }
.uv-f { padding: .5rem .55rem; border-radius: 10px; background: var(--primary-soft); display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.uv-f span { font-size: .7rem; color: var(--muted); } .uv-f b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.uv h3 { margin: 1rem 0 .4rem; font-size: 1rem; }
.uv-aq { padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 12px; margin-bottom: .45rem; }
.uv-aqh { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.uv-vals { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.uv-val { display: flex; flex-direction: column; padding: .3rem .5rem; border-radius: 8px; background: var(--hover); min-width: 4.4rem; }
.uv-val small { font-size: .66rem; color: var(--muted); } .uv-val b { font-size: .85rem; }
.uv-list { display: grid; gap: .3rem; }
.uv-li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .45rem .55rem; border-radius: 8px; background: var(--hover); }
.uv-li p { margin: 0; white-space: pre-wrap; } .uv-li small { white-space: nowrap; }
.uv-actions { flex-wrap: wrap; position: sticky; bottom: -1px; background: var(--card); padding-top: .6rem; }

.am-form select { width: 100%; }
.am-count { margin: -.2rem 0 .3rem; font-size: .85rem; color: var(--primary-text); font-weight: 600; min-height: 1.2em; }
.am-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .2rem; }
.an-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.an-planned { border-left-color: var(--warn); }
.an-planned .badge { display: block; width: fit-content; margin-bottom: .35rem; }

.ai-cap { height: 10px; border-radius: 6px; background: var(--hover); overflow: hidden; margin: .8rem 0 .3rem; }
.ai-cap span { display: block; height: 100%; background: var(--primary); border-radius: 6px; transition: width .4s; }
.ai-cap span.hot { background: var(--err); }
.ai-top { display: grid; gap: .1rem; }
.ai-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: .7rem; align-items: center; padding: .5rem .2rem; border-bottom: 1px solid var(--border); }
.ai-row:last-child { border-bottom: 0; }
.ai-who { display: flex; flex-direction: column; min-width: 0; } .ai-who b, .ai-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-num { display: flex; flex-direction: column; align-items: center; min-width: 2.6rem; } .ai-num small { font-size: .66rem; color: var(--muted); }

.cat-list { display: grid; gap: .1rem; }
.cat-it { display: grid; grid-template-columns: 44px 1fr auto; gap: .65rem; align-items: center; padding: .55rem .2rem; border-bottom: 1px solid var(--border); }
.cat-it:last-child { border-bottom: 0; }
.cat-em { width: 44px; height: 44px; border-radius: 10px; background: var(--hover); display: grid; place-items: center; font-size: 1.4rem; overflow: hidden; }
.cat-em img { width: 100%; height: 100%; object-fit: cover; }
.cat-tx { display: flex; flex-direction: column; min-width: 0; } .cat-tx b, .cat-tx small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-act { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 420px) { .cat-it { grid-template-columns: 44px 1fr; } .cat-act { grid-column: 1 / -1; justify-content: flex-start; } }
.cat-modal { max-width: 520px; } .cat-edit .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }

.mt-state { display: flex; align-items: center; gap: .55rem; padding: .7rem .85rem; border-radius: 12px; background: color-mix(in srgb, var(--ok) 12%, transparent); margin: .3rem 0 .6rem; }
.mt-state.on { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.mt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.mt-state.on .mt-dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 25%, transparent); animation: mtPulse 1.6s ease-in-out infinite; }
@keyframes mtPulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--warn) 5%, transparent); } }

.ex-list { display: grid; gap: .5rem; margin: .4rem 0 .8rem; }
.ex-it { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .7rem; align-items: center; padding: .8rem .85rem; border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); text-decoration: none; background: var(--card); transition: border-color .2s, background .2s; }
.ex-it:hover { border-color: var(--primary); background: var(--hover); }
.ex-it span:nth-child(2) { display: flex; flex-direction: column; gap: .1rem; }
.ex-ico { font-size: 1.5rem; text-align: center; } .ex-dl { font-size: 1.2rem; }

.maint-screen { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 1.5rem; background: var(--bg); }
.maint-box { max-width: 380px; text-align: center; }
.maint-box img { border-radius: 50%; animation: maintFloat 4s ease-in-out infinite; }
.maint-box h1 { margin: .8rem 0 .4rem; font-size: 1.5rem; } .maint-box p { color: var(--muted); margin-bottom: 1.2rem; }
@keyframes maintFloat { 50% { transform: translateY(-6px); } }

.admin-main .ad-tools { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.admin-main .ad-tools input { grid-column: 1 / -1; }
.admin-main .ad-tools select { width: 100%; }
.admin-main .ad-tools #adNew { white-space: nowrap; }

/* Katalog-Werkstatt */
.cw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .2rem 0 .8rem; }
.cw-stats div { display: flex; flex-direction: column; align-items: center; padding: .55rem .2rem; border-radius: 12px; background: var(--primary-soft); text-align: center; }
.cw-stats b { font-size: 1.25rem; color: var(--primary-text); } .cw-stats span { font-size: .7rem; color: var(--muted); line-height: 1.2; }
.cw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (max-width: 400px) { .cw-actions { grid-template-columns: 1fr; } }
.cw-src { margin-top: .8rem; border: 1px solid var(--border); border-radius: 12px; padding: .55rem .7rem; }
.cw-src summary { cursor: pointer; font-size: .88rem; }
.cw-src-list { display: grid; gap: .3rem; margin: .6rem 0 .4rem; }
.cw-src-i { display: grid; grid-template-columns: 1.4rem auto 1fr; gap: .45rem; align-items: baseline; font-size: .88rem; opacity: .7; }
.cw-src-i.on { opacity: 1; } .cw-src-i small { overflow: hidden; text-overflow: ellipsis; }
.cw-bulk { margin: .6rem 0 0; }
.cat-it.has-prop { grid-template-columns: 44px 1fr auto; }
.cat-prop { grid-column: 1 / -1; margin-top: .4rem; padding: .65rem .7rem; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.cat-prop-h { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .4rem; }
.cat-prop p { margin: .35rem 0; } .cat-prop a, .cat-srcline a, .cat-sources a { color: var(--primary-text); }
.cat-srcline { grid-column: 1 / -1; margin: .2rem 0 0; }
.cat-warn { color: var(--warn-text, var(--text)); }
.cd-list { display: grid; gap: .25rem; }
.cd-row { display: grid; grid-template-columns: 6.5rem 1fr auto 1fr; gap: .4rem; align-items: baseline; font-size: .86rem; }
.cd-k { color: var(--muted); font-size: .76rem; }
.cd-old { text-decoration: line-through; opacity: .65; overflow-wrap: anywhere; } .cd-new { font-weight: 600; overflow-wrap: anywhere; } .cd-arrow { color: var(--muted); }
@media (max-width: 420px) { .cd-row { grid-template-columns: 1fr auto 1fr; } .cd-k { grid-column: 1 / -1; } }
.cat-srcbtn { margin-top: .6rem; }
.cr-modal { max-width: 480px; width: 100%; }
.cr-bar { height: 10px; border-radius: 6px; background: var(--hover); overflow: hidden; margin: .5rem 0; }
.cr-bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .4s; }
.cr-now { font-size: .9rem; min-height: 2.6em; }
.cr-log { display: grid; gap: .25rem; max-height: 45vh; overflow: auto; }
.cr-i { display: grid; grid-template-columns: 1.5rem 1fr; column-gap: .4rem; padding: .35rem .5rem; border-radius: 8px; background: var(--hover); font-size: .86rem; }
.cr-i small { grid-column: 2; color: var(--muted); }
.cg-list { display: grid; gap: .2rem; max-height: 55vh; overflow: auto; margin: .4rem 0; }
.cg-i { padding: .4rem .3rem; border-bottom: 1px solid var(--border); }
.cat-sources { font-size: .82rem; color: var(--muted); margin: .5rem 0 .2rem; }

/* Zoomen im Bildbetrachter */
.vw-slide img { transform-origin: center center; will-change: transform; cursor: zoom-in; touch-action: none; }
.viewer.zoomed .vw-slide img { cursor: grab; border-radius: 0; }
.viewer.zoomed .vw-nav, .viewer.zoomed .vw-dots, .viewer.zoomed .vw-count { opacity: 0; pointer-events: none; transition: opacity .2s; }
.viewer.zoomed .vw-slide { overflow: visible; }
.vw-sheet, .vs-list { touch-action: pan-y; }
.vw-slide video { touch-action: auto; }

/* ===== Offline ===== */
.off-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 900; display: flex; gap: .45rem; align-items: center;
  max-width: calc(100vw - 24px); padding: .5rem .85rem; border-radius: 999px; background: #1e293b; color: #f1f5f9; font-size: .82rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pill.pending { opacity: .75; border-style: dashed; }

/* ===== Teststreifen ===== */
.strip-btn { display: flex; align-items: center; gap: .7rem; width: 100%; margin: .2rem 0 .9rem; padding: .7rem .9rem; border: 1px dashed var(--primary-ring); background: var(--primary-soft); text-align: left; font-size: 1.3rem; }
.strip-btn span { display: flex; flex-direction: column; font-size: .92rem; } .strip-btn small { color: var(--muted); font-size: .78rem; font-weight: 400; }
.sr-modal { max-width: 440px; width: 100%; }
.sr-list { display: grid; gap: .35rem; margin: .4rem 0; }
.modal label.sr-row, .sr-row { display: grid; grid-template-columns: 1fr 6.5rem 3rem; gap: .5rem; align-items: center; margin: 0 !important; }
.sr-row input { width: 100%; }
.sr-row input { padding: .4rem .5rem; } .sr-l { font-size: .9rem; } .sr-u { font-size: .78rem; }
.sr-alt { grid-column: 1 / -1; margin-top: -.25rem; padding-left: 1.6rem; }
.sr-s { display: inline-block; min-width: 1.4rem; font-weight: 700; font-size: .78rem; text-align: center; border-radius: 6px; color: var(--muted); }
.sr-s.ok { color: var(--ok-text, #16a34a); } .sr-s.warn { color: #fff; background: var(--warn); }
.sr-note { background: var(--hover); padding: .45rem .6rem; border-radius: 8px; }
input.sr-filled { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

/* ===== Gesundheit ===== */
.hs-disc { margin-top: .7rem; }
.hs-res h4 { margin: 1rem 0 .3rem; }
.hs-res ul { margin: .2rem 0 .2rem 1.1rem; padding: 0; } .hs-res li { margin: .2rem 0; }
.hs-top { display: flex; gap: .8rem; align-items: flex-start; }
.hs-img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; cursor: zoom-in; }
.hs-top h3 { margin: 0 0 .2rem; }
.hs-urgent { margin: .8rem 0; padding: .6rem .75rem; border-radius: 10px; background: color-mix(in srgb, var(--err) 14%, transparent); border: 1px solid color-mix(in srgb, var(--err) 40%, transparent); }
.hs-poss { display: grid; gap: .35rem; }
.hs-p { border: 1px solid var(--border); border-radius: 10px; padding: .5rem .65rem; border-left-width: 4px; }
.hs-p summary { cursor: pointer; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.hs-p.hs-hi { border-left-color: var(--err); } .hs-p.hs-mid { border-left-color: var(--warn); } .hs-p.hs-lo { border-left-color: var(--border); }
.hs-lk { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.hs-p p { margin: .4rem 0 .2rem; }
.hs-vet { padding: .5rem .65rem; border-radius: 10px; background: var(--primary-soft); }

/* ===== Gemeinsam & Urlaub ===== */
.aq-shared { margin: .15rem 0 .3rem; font-size: .82rem; color: var(--primary-text); }
.tm-list { display: grid; gap: .3rem; margin: .5rem 0 .8rem; }
.tm-row { display: grid; grid-template-columns: 1.8rem 1fr auto auto; gap: .5rem; align-items: center; padding: .45rem .55rem; border-radius: 10px; background: var(--hover); }
.tm-row.pend { opacity: .8; } .tm-row small { font-size: .74rem; }
.tm-av { font-size: 1.15rem; text-align: center; }
@media (max-width: 420px) { .tm-row { grid-template-columns: 1.8rem 1fr auto; } .tm-row small { grid-column: 2; grid-row: 2; } .tm-row .btn { grid-row: 1 / span 2; grid-column: 3; } }
.tm-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; }
.tm-form label { margin: 0; }
.vac-card .row { gap: .5rem; }
.vac-log { display: grid; gap: .3rem; }
.vac-li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .4rem; padding: .4rem .5rem; border-radius: 8px; background: var(--hover); font-size: .88rem; }

/* ===== Wochenplan ===== */
.wk-day { padding-top: .75rem; padding-bottom: .75rem; }
.wk-day h3 { margin: 0 0 .4rem; font-size: 1rem; }
.wk-day.today { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-ring); }
.wk-day.empty { opacity: .7; } .wk-day.empty p { margin: 0; }
.wk-over { border-color: color-mix(in srgb, var(--err) 50%, transparent); }
.wk-it { display: grid; grid-template-columns: 2rem 1fr auto; gap: .5rem; align-items: center; padding: .4rem 0; border-top: 1px dashed var(--border); }
.wk-it:first-of-type { border-top: 0; }
.wk-e { font-size: 1.3rem; text-align: center; } .wk-m { display: flex; flex-direction: column; min-width: 0; }
.wk-it.over b { color: var(--err-text, var(--err)); }

/* ===== Meine Daten ===== */
.md-dl { display: grid; gap: .4rem; margin: .5rem 0; }
.md-dl .btn { justify-content: flex-start; text-align: left; }
.md-rep { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.md-rep select { min-width: 0; }

/* ===== Selbsttest & Android ===== */
.stv { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: 12px; margin: .3rem 0 .6rem; }
.stv b { font-size: 1.1rem; } .stv small { color: var(--muted); }
.stv.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); } .stv.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); } .stv.fail { background: color-mix(in srgb, var(--err) 14%, transparent); }
.st-list { display: grid; gap: .1rem; }
.st-row { display: grid; grid-template-columns: 1.6rem 1fr; gap: .45rem; padding: .45rem .2rem; border-bottom: 1px solid var(--border); }
.st-row:last-child { border-bottom: 0; }
.st-tx { display: flex; flex-direction: column; min-width: 0; } .st-tx small { color: var(--muted); overflow-wrap: anywhere; }
.st-row.fail .st-tx b { color: var(--err-text, var(--err)); }
.st-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: stSpin .8s linear infinite; margin: 1rem auto; }
@keyframes stSpin { to { transform: rotate(360deg); } }
.and-steps { padding-left: 1.2rem; display: grid; gap: .45rem; } .and-steps li { line-height: 1.45; }
.and-steps code, .and-form + p code { font-size: .82em; background: var(--hover); padding: .05rem .3rem; border-radius: 5px; overflow-wrap: anywhere; }
.ig-play { display: block; text-align: center; margin-bottom: .3rem; }
.ig-or { text-align: center; margin: .2rem 0 .6rem; }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin-top: .4rem; }
.shot { display: flex; flex-direction: column; gap: .25rem; align-items: center; }
.shot img { width: 100%; aspect-ratio: 9 / 19; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.shot-add { justify-content: center; aspect-ratio: 9 / 19; border: 2px dashed var(--border); border-radius: 10px; cursor: pointer; text-align: center; padding: .4rem; margin: 0; }
.shot-add span { font-size: 1.8rem; color: var(--primary-text); }

/* Links in Texten (Forum, Nachrichten, Mitteilungen) */
.post-body a, .nd-body a, .dm-b a, .an-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; word-break: break-word; }
.dm-b.mine a { color: inherit; }
.an-linkbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.2rem 0 .7rem; }

/* Forum: Team-Kategorie, Markierungen, angeheftete Themen */
.post.pinned { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: color-mix(in srgb, var(--primary) 6%, var(--card)); }
.post.team-post { border-left: 4px solid var(--primary); }
.post.flagged-wichtig { border-left: 4px solid #ef4444; }
.pill.pin { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.pill.flag { font-weight: 700; }
.pill.flag-wichtig { background: rgba(239, 68, 68, .16); color: #ef4444; }
.pill.flag-info { background: rgba(59, 130, 246, .16); color: #3b82f6; }
.pill.flag-anleitung { background: rgba(34, 197, 94, .16); color: #16a34a; }
.pill.flag-update { background: rgba(168, 85, 247, .16); color: #a855f7; }
.pill.flag-regeln { background: rgba(245, 158, 11, .18); color: #d97706; }
.pill.flag-umfrage { background: rgba(236, 72, 153, .16); color: #db2777; }
.post h3 .pill, .post h2 .pill { margin-right: .3rem; vertical-align: middle; }
.cp-staff { border: 1px dashed var(--border); border-radius: 12px; padding: .6rem .8rem; margin: .4rem 0; display: grid; gap: .3rem; }
.flag-pick { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0; }

.emo { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-style: normal; }

.post-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 .2rem; }
.post-badges .pill { margin: 0; }
.post-badges + h2, .post-badges + h3 { margin-top: .2rem; }
.kc { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35em; height: 1.35em; padding: 0 .2em; margin-right: .15em; border-radius: .3em; background: var(--primary); color: #04252a; font-weight: 800; font-size: .85em; line-height: 1; vertical-align: .1em; }

/* Startseite: App aufs Handy holen */
.lp-get-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1rem; }
.lp-get-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; }
.lp-get-card h3 { margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lp-get-card p { margin: 0; }
.lp-get-card > .btn { align-self: flex-start; margin-top: .3rem; }
.lp-get-ico { font-size: 2rem; line-height: 1; }
.lp-get-steps { margin: .2rem 0; padding-left: 1.1rem; display: grid; gap: .25rem; color: var(--muted); }
.pt-steps li > span:last-child { display: block; }
.pt-steps .btn { margin-top: .4rem; }
.ig-test { border: 1px solid var(--border); border-radius: 14px; padding: .8rem .9rem; margin-bottom: .4rem; }
/* Smartes Installations-Fenster (unten) */
.nudge { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0); transition: background .3s; pointer-events: none; }
.nudge.in { background: rgba(0, 0, 0, .45); pointer-events: auto; }
.nudge-card { position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 1.1rem 1.15rem calc(1rem + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); box-shadow: 0 -12px 40px rgba(0, 0, 0, .35); }
.nudge.in .nudge-card { transform: none; }
.nudge-head { display: flex; align-items: center; gap: .75rem; margin: 0 2rem .5rem 0; }
.nudge-head img { border-radius: 12px; }
.nudge-head h3 { margin: 0; font-size: 1.12rem; }
.nudge-x { position: absolute; top: .7rem; right: .8rem; background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: .3rem; }
.nudge-act { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.nudge-act:empty { display: none; }
.nudge-foot { display: flex; justify-content: space-between; margin-top: .7rem; }
@media (min-width: 900px) { .nudge { align-items: flex-end; justify-content: flex-end; padding: 1.2rem; } .nudge-card { border-radius: 20px; border-bottom: 1px solid var(--border); } }
.and-test { border: 1px solid var(--border); border-radius: 14px; padding: .6rem .9rem .8rem; margin: .4rem 0 .8rem; display: grid; gap: .4rem; }
.and-test legend { font-weight: 700; padding: 0 .3rem; }

/* „Jetzt bei Google Play“-Knopf */
.gp-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1.05rem .45rem .8rem; margin-top: .45rem; border-radius: 12px; background: #000; color: #fff !important; border: 1px solid #5f6368; text-decoration: none !important; line-height: 1.1; transition: transform .15s; }
.gp-badge:active { transform: scale(.97); }
.gp-badge .gp-ico { flex: none; color: var(--primary); }
.gp-badge span { display: flex; flex-direction: column; }
.gp-badge small { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.gp-badge b { font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; }
.lp-get-card > .gp-badge { align-self: flex-start; }
.and-test { min-width: 0; max-width: 100%; }
.and-test > * { min-width: 0; }
.and-url, .and-form code { overflow-wrap: anywhere; word-break: break-all; white-space: normal; }

/* ================= Community-Belohnungen (v137) ================= */
.av.lg { --s: 64px; font-size: 1.5rem; }
/* Reiter */
.g-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin: 0 0 1rem; position: sticky; top: calc(var(--topbar-h, 64px) + 4px); z-index: 5; background: var(--bg); padding: .3rem 0; }
.g-tab { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .2rem; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--muted); cursor: pointer; font: inherit; }
.g-tab span { font-size: 1.25rem; line-height: 1; } .g-tab small { font-size: .74rem; font-weight: 600; }
.g-tab.on { border-color: var(--primary); color: var(--text); background: color-mix(in srgb, var(--primary) 14%, var(--card)); box-shadow: 0 0 0 1px var(--primary-ring); }
.gh-boost { margin-left: .5rem; font-size: .78rem; vertical-align: middle; }
/* Schatztruhe */
.chest-card { display: flex; align-items: center; gap: .9rem; }
.chest-card.ready { border-color: color-mix(in srgb, #f59e0b 55%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, #f59e0b 10%, var(--card)), var(--card)); }
.chest-ico { font-size: 2.6rem; line-height: 1; flex: none; }
.chest-card.ready .chest-ico { animation: chestBob 2.2s ease-in-out infinite; }
.chest-ico.shake { animation: chestShake .5s linear infinite !important; }
.chest-txt { flex: 1; min-width: 0; } .chest-txt h3 { margin: 0 0 .15rem; } .chest-txt p { margin: 0; font-size: .9rem; }
@keyframes chestBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes chestShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.08); } 75% { transform: rotate(12deg) scale(1.08); } }
.chest-win .cw-burst { font-size: 4rem; animation: burst .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.chest-win .cw-tier { font-weight: 800; letter-spacing: .04em; margin: .2rem 0 0; color: var(--primary); }
.chest-win.t-jackpot .cw-tier { color: #f59e0b; font-size: 1.3rem; } .chest-win.t-epic .cw-tier { color: #a855f7; }
@keyframes burst { from { transform: scale(.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* Missionen */
.quests { display: grid; gap: .55rem; }
.quest { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 14px; }
.quest.done { border-color: var(--primary); } .quest.claimed { opacity: .65; }
.q-main { flex: 1; min-width: 0; display: grid; gap: .25rem; } .q-main span { font-size: .93rem; }
.q-bar { height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; } .q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #22c55e); border-radius: inherit; }
.quest-bonus { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--border); font-weight: 600; }
.quest-bonus.claimed { opacity: .65; }
.rank-teaser { display: flex; align-items: center; gap: .8rem; cursor: pointer; }
.rank-teaser > div { flex: 1; display: grid; gap: .1rem; } .rt-ico { font-size: 2rem; } .rt-go { font-size: 1.6rem; color: var(--muted); }
.earn-card summary { cursor: pointer; list-style: none; } .earn-card summary::-webkit-details-marker { display: none; }
.earn-card summary::after { content: '▾'; float: right; color: var(--muted); } .earn-card[open] summary::after { content: '▴'; }
.earn-card[open] summary { margin-bottom: .6rem; }
/* Rangliste */
.rank-kinds { margin-bottom: .4rem; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: .45rem; margin: 1rem 0 .8rem; }
.pod { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; cursor: pointer; min-width: 0; position: relative; }
.pod.empty { visibility: hidden; }
.pod-name { font-size: .88rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pod small { color: var(--muted); font-size: .78rem; }
.pod-step { width: 100%; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #0b1a22; margin-top: .25rem; }
.pod.p1 .pod-step { height: 82px; background: linear-gradient(180deg, #fde68a, #f59e0b); }
.pod.p2 .pod-step { height: 60px; background: linear-gradient(180deg, #e5e7eb, #9ca3af); }
.pod.p3 .pod-step { height: 46px; background: linear-gradient(180deg, #fdba74, #c2410c); }
.pod.me .pod-name { color: var(--primary); }
.pod-crown { position: absolute; top: -1.3rem; font-size: 1.4rem; animation: chestBob 2.4s ease-in-out infinite; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.rank-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 12px; cursor: pointer; }
.rank-list li:nth-child(odd) { background: color-mix(in srgb, var(--text) 4%, transparent); }
.rank-list li.me { background: color-mix(in srgb, var(--primary) 16%, transparent); box-shadow: inset 0 0 0 1px var(--primary-ring); }
.rank-list .rk { width: 2rem; text-align: center; font-weight: 800; color: var(--muted); }
.rank-list .rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list b { font-size: .88rem; white-space: nowrap; }
.rank-me { margin-top: .8rem; padding: .7rem .8rem; border-radius: 12px; background: var(--primary-soft); text-align: center; }
.rank-hide { margin-top: .6rem; }
/* Shop */
.shop-aff { margin: 0; font-size: .85rem; }
.shop-item.owned:not(.eq) { border-style: dashed; }
.pet-prev { font-size: 2.1rem; }
.name-prev { font-weight: 800; font-size: .95rem; display: inline-block; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Abzeichen + Sprechblase */
.badge-prog { margin: .2rem 0 .9rem; }
.badge-row.big { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
button.gbadge { font: inherit; color: inherit; cursor: pointer; position: relative; transition: transform .15s; }
button.gbadge:active { transform: scale(.94); }
.gbadge.lock .ge { filter: grayscale(1); opacity: .45; }
.gbadge.sc { box-shadow: 0 0 0 2px var(--primary); }
.gb-prog { width: 80%; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: .15rem; } .gb-prog i { display: block; height: 100%; background: var(--primary); }
.gb-pin { position: absolute; top: .2rem; right: .3rem; font-size: .8rem; }
.b-pop { position: absolute; z-index: 9500; background: var(--card); color: var(--text); border: 1px solid var(--primary-ring); border-radius: 16px; padding: .8rem .9rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); display: grid; gap: .45rem; opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .18s, transform .18s; }
.b-pop.in { opacity: 1; transform: none; }
.b-pop::after { content: ''; position: absolute; left: calc(var(--ax, 50%) - 9px); width: 16px; height: 16px; background: var(--card); border: 1px solid var(--primary-ring); transform: rotate(45deg); }
.b-pop.up::after { bottom: -9px; border-top: 0; border-left: 0; } .b-pop.down::after { top: -9px; border-bottom: 0; border-right: 0; }
.bp-head { display: flex; align-items: center; gap: .6rem; } .bp-head > div { display: grid; } .bp-emo { font-size: 2.2rem; line-height: 1; }
.bp-how { margin: 0; font-size: .92rem; line-height: 1.45; }
.bp-rar { color: var(--muted); }
.b-pop .btn { justify-self: start; }
/* Vitrine im Profil */
.sc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.sc-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .9rem .4rem; border-radius: 16px; border: 1px solid var(--primary-ring); background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 16%, var(--card)), var(--card)); color: inherit; font: inherit; cursor: pointer; text-align: center; }
.sc-item .ge { font-size: 2.2rem; line-height: 1; } .sc-item b { font-size: .82rem; }
/* Meins */
.mine-prev { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.mine-prev.has-cover { padding-top: 110px; } .mine-prev .ph-cover { height: 150px; }
.mine-prev.has-cover > :not(.ph-cover) { position: relative; z-index: 1; }
.mine-prev .u-info h2 { margin: 0; }
.eq-list { display: grid; gap: .5rem; }
.eq-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; } .eq-row select { max-width: 60%; }
.eq-l { font-weight: 600; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; }
.hist li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.hist li span { display: grid; } .hist li:last-child { border: 0; }
.hist .pos { color: #22c55e; } .hist .neg { color: #ef4444; }
.gift-amt { margin: .3rem 0 .6rem; }
/* Begleiter neben dem Namen */
.who .pet { margin-left: .25rem; font-size: .95em; display: inline-block; animation: petSwim 3.2s ease-in-out infinite; }
@keyframes petSwim { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(2px) rotate(-6deg); } }
/* Namensstile */
.who.ns .wn, .name-prev { font-weight: 700; }
.ns-coral .wn, .name-prev.ns-coral { color: #fb7185; }
.ns-gold .wn, .name-prev.ns-gold { background: linear-gradient(90deg, #fde68a, #f59e0b, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ns-ocean .wn, .name-prev.ns-ocean { background: linear-gradient(90deg, #19CFD2, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ns-rainbow .wn, .name-prev.ns-rainbow { background: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nsRain 4s linear infinite; }
@keyframes nsRain { to { background-position: 200% 0; } }
/* Neue Rahmen */
.fr-ice { --fr: conic-gradient(#e0f2fe, #7dd3fc, #ffffff, #38bdf8, #e0f2fe); --frc: #7dd3fc; }
.fr-jungle { --fr: conic-gradient(#14532d, #22c55e, #84cc16, #166534, #14532d); --frc: #22c55e; }
.fr-lava { --fr: conic-gradient(#7f1d1d, #ef4444, #f97316, #facc15, #7f1d1d); --frc: #f97316; }
.fr-pearl { --fr: conic-gradient(#fdf2f8, #e0e7ff, #cffafe, #fef9c3, #fce7f3, #fdf2f8); --frc: #e0e7ff; }
.fr-reef { --fr: conic-gradient(#f472b6, #fb923c, #a78bfa, #2dd4bf, #f472b6); --frc: #f472b6; animation: frPulse 2.4s ease-in-out infinite; }
.fr-galaxy { --fr: conic-gradient(#1e1b4b, #7c3aed, #19CFD2, #312e81, #c026d3, #1e1b4b); --frc: #7c3aed; animation: frspin 8s linear infinite; }
.fr-galaxy > * { animation: frspin 8s linear infinite reverse; }
@keyframes frPulse { 0%, 100% { box-shadow: 0 0 6px color-mix(in srgb, var(--frc) 40%, transparent); } 50% { box-shadow: 0 0 18px var(--frc); } }
/* Neue Banner */
.bn-lagoon { background: linear-gradient(160deg, #a5f3fc, #22d3ee 45%, #0891b2); }
.bn-moss { background: radial-gradient(110% 120% at 80% 0%, #a3e635, #4d7c0f 50%, #1a2e05); }
.bn-night { background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 60%, #e0f2fe, transparent), radial-gradient(1px 1px at 35% 70%, #fff, transparent), radial-gradient(1.2px 1.2px at 90% 25%, #fff, transparent), linear-gradient(180deg, #0b1026, #1e3a8a); }
.bn-bubbles { background: linear-gradient(180deg, #0e7490, #0c4a6e); }
.bn-bubbles::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 200%;
  background-image: radial-gradient(circle at 12% 20%, rgba(255,255,255,.45) 0 5px, rgba(255,255,255,.12) 6px, transparent 8px), radial-gradient(circle at 30% 70%, rgba(255,255,255,.4) 0 3px, transparent 5px), radial-gradient(circle at 48% 40%, rgba(255,255,255,.4) 0 7px, rgba(255,255,255,.1) 8px, transparent 10px), radial-gradient(circle at 66% 85%, rgba(255,255,255,.35) 0 4px, transparent 6px), radial-gradient(circle at 80% 30%, rgba(255,255,255,.45) 0 5px, transparent 7px), radial-gradient(circle at 92% 60%, rgba(255,255,255,.3) 0 3px, transparent 5px), radial-gradient(circle at 22% 95%, rgba(255,255,255,.35) 0 6px, transparent 8px), radial-gradient(circle at 58% 8%, rgba(255,255,255,.3) 0 3px, transparent 5px);
  background-size: 100% 50%; background-repeat: repeat-y; animation: bubbles 8s linear infinite; }
.bn-prev.bn-bubbles::before { background-size: 100% 50%; transform-origin: top; }
@keyframes bubbles { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.bn-gold { background: radial-gradient(1.5px 1.5px at 15% 40%, #fde68a, transparent), radial-gradient(2px 2px at 55% 25%, #facc15, transparent), radial-gradient(1.5px 1.5px at 80% 70%, #fde68a, transparent), linear-gradient(135deg, #1c1917, #422006 50%, #a16207); }
@media (prefers-reduced-motion: reduce) { .fr-reef, .fr-galaxy, .fr-galaxy > *, .bn-bubbles, .ns-rainbow .wn, .who .pet, .chest-card.ready .chest-ico, .pod-crown { animation: none; } }
@media (max-width: 420px) { .g-tab small { font-size: .66rem; } .podium .av.lg { --s: 52px; } }
.shop-aff, .eq-list .check-row, .rank-hide { display: flex; align-items: center; gap: .5rem; }
.shop-aff input, .eq-list .check-row input, .rank-hide input { flex: none; margin: 0; }
.ib-head { flex-wrap: wrap; }

/* ===== Animierte Banner (v138) ===== */
.bn { overflow: hidden; } .bn:not(.ph-cover) { position: relative; }
.bn::before, .bn::after { pointer-events: none; }
/* Lichtspiel */
.bn-caustics { background: linear-gradient(180deg, #0891b2, #075985 70%, #0c4a6e); }
.bn-caustics::before, .bn-caustics::after { content: ''; position: absolute; inset: -50%; background: repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.0) 0 14px, rgba(255,255,255,.22) 16px, rgba(255,255,255,0) 19px); mix-blend-mode: screen; animation: caus1 9s ease-in-out infinite alternate; }
.bn-caustics::after { background: repeating-radial-gradient(circle at 70% 60%, rgba(186,230,253,0) 0 18px, rgba(186,230,253,.18) 20px, rgba(186,230,253,0) 24px); animation: caus2 11s ease-in-out infinite alternate; }
@keyframes caus1 { to { transform: translate(12%, 8%) rotate(8deg) scale(1.1); } }
@keyframes caus2 { to { transform: translate(-10%, -6%) rotate(-10deg) scale(1.15); } }
/* Sonnenstrahlen */
.bn-sunrays { background: linear-gradient(180deg, #38bdf8, #0369a1 60%, #0c4a6e); }
.bn-sunrays::after { content: ''; position: absolute; left: 50%; top: -120%; width: 300%; aspect-ratio: 1; transform: translateX(-50%); background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.32) 0 4deg, rgba(255,255,255,0) 4deg 14deg); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 70%); mask-image: radial-gradient(closest-side, #000 20%, transparent 70%); animation: rays 40s linear infinite; }
@keyframes rays { to { transform: translateX(-50%) rotate(360deg); } }
/* Seetang-Wald */
.bn-kelp { background: linear-gradient(180deg, #0e7490, #134e4a 70%, #052e16); }
.bn-kelp::before, .bn-kelp::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -5%; height: 115%; transform-origin: 50% 100%;
  background: radial-gradient(ellipse 5% 60% at 8% 100%, #15803d 60%, transparent 62%), radial-gradient(ellipse 4% 75% at 22% 100%, #166534 60%, transparent 62%), radial-gradient(ellipse 5% 55% at 38% 100%, #22c55e 60%, transparent 62%), radial-gradient(ellipse 4% 80% at 55% 100%, #15803d 60%, transparent 62%), radial-gradient(ellipse 5% 65% at 72% 100%, #16a34a 60%, transparent 62%), radial-gradient(ellipse 4% 70% at 90% 100%, #166534 60%, transparent 62%);
  animation: kelp 5s ease-in-out infinite alternate; }
.bn-kelp::after { opacity: .6; filter: blur(1px); transform: scaleX(-1); animation-duration: 6.5s; animation-delay: -2s; }
@keyframes kelp { from { transform: skewX(-6deg); } to { transform: skewX(6deg); } }
/* Fischschwarm */
.bn-school { background: linear-gradient(180deg, #0ea5e9, #0369a1 55%, #082f49); }
.bn-school::after { content: '🐟 🐠  🐟 🐟   🐠 🐟  🐟'; position: absolute; top: 28%; left: 0; white-space: nowrap; font-size: 26px; letter-spacing: 4px; animation: school 14s linear infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.bn-prev.bn-school::after { font-size: 11px; letter-spacing: 1px; top: 35%; animation-duration: 6s; }
@keyframes school { from { transform: translateX(-110%) translateY(0); } 50% { transform: translateX(10%) translateY(-8px); } to { transform: translateX(110%) translateY(0); } }
/* Lavalampe */
.bn-lava { background: radial-gradient(circle at 20% 30%, #f97316 0 18%, transparent 30%), radial-gradient(circle at 70% 60%, #db2777 0 20%, transparent 34%), radial-gradient(circle at 45% 85%, #facc15 0 14%, transparent 26%), linear-gradient(160deg, #4c0519, #7c2d12); background-size: 200% 200%, 220% 220%, 180% 180%, 100% 100%; animation: lavaMove 14s ease-in-out infinite alternate; filter: saturate(1.15); }
@keyframes lavaMove { 0% { background-position: 0% 0%, 100% 50%, 30% 100%, 0 0; } 50% { background-position: 60% 80%, 20% 10%, 90% 30%, 0 0; } 100% { background-position: 100% 30%, 60% 90%, 10% 0%, 0 0; } }
/* Leuchtplankton */
.bn-plankton { background: radial-gradient(120% 100% at 50% 0%, #0c4a6e, #020617 70%); }
.bn-plankton::before, .bn-plankton::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 10% 20%, #5eead4, transparent), radial-gradient(1.5px 1.5px at 25% 65%, #67e8f9, transparent), radial-gradient(2px 2px at 40% 35%, #a7f3d0, transparent), radial-gradient(1.5px 1.5px at 55% 80%, #5eead4, transparent), radial-gradient(2px 2px at 70% 25%, #67e8f9, transparent), radial-gradient(1.5px 1.5px at 85% 55%, #a7f3d0, transparent), radial-gradient(2px 2px at 92% 85%, #5eead4, transparent), radial-gradient(1.5px 1.5px at 33% 90%, #67e8f9, transparent); filter: drop-shadow(0 0 3px #2dd4bf); animation: twinkle 3s ease-in-out infinite alternate; }
.bn-plankton::after { transform: translate(7%, 11%) scale(1.2); animation-delay: -1.5s; animation-duration: 4s; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
/* Quallen */
.bn-jelly { background: linear-gradient(180deg, #1e1b4b, #3b0764 60%, #0f172a); }
.bn-jelly::before, .bn-jelly::after { content: ''; position: absolute; width: 15%; max-width: 70px; aspect-ratio: 1 / 1.1; border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 35%, rgba(251,207,232,.95), rgba(236,72,153,.55) 45%, rgba(236,72,153,0) 70%); box-shadow: 0 0 24px rgba(244,114,182,.6); left: 18%; bottom: -40%; animation: jelly 9s ease-in-out infinite; }
.bn-jelly::after { width: 10%; max-width: 48px; left: 64%; animation-duration: 12s; animation-delay: -5s; background: radial-gradient(circle at 50% 35%, rgba(224,231,255,.95), rgba(129,140,248,.55) 45%, rgba(129,140,248,0) 70%); box-shadow: 0 0 20px rgba(165,180,252,.6); }
@keyframes jelly { 0% { transform: translateY(0) scaleY(1); opacity: 0; } 10% { opacity: 1; } 25% { transform: translateY(-60%) scaleY(.85); } 50% { transform: translateY(-140%) scaleY(1.05); } 75% { transform: translateY(-220%) scaleY(.85); } 90% { opacity: 1; } 100% { transform: translateY(-320%) scaleY(1); opacity: 0; } }

/* ===== Animierte Namen (v138) ===== */
.ns-neon .wn, .name-prev.ns-neon { color: #a5f3fc; text-shadow: 0 0 4px #19CFD2, 0 0 10px #19CFD2, 0 0 18px #0891b2; animation: neonFlick 4s linear infinite; }
@keyframes neonFlick { 0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; } 20%, 62% { opacity: .45; } }
.ns-wave .wn, .name-prev.ns-wave { background: repeating-linear-gradient(90deg, #19CFD2 0, #3b82f6 25%, #67e8f9 50%, #19CFD2 75%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nsRain 2.5s linear infinite; }
.ns-fire .wn, .name-prev.ns-fire { background: linear-gradient(0deg, #dc2626, #f97316 40%, #fde047 80%); background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fireUp 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 4px rgba(249,115,22,.6)); }
@keyframes fireUp { from { background-position: 0 0; } to { background-position: 0 100%; } }
.ns-frost .wn, .name-prev.ns-frost { background: linear-gradient(110deg, #7dd3fc 0 40%, #ffffff 48%, #7dd3fc 56% 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 2.8s ease-in-out infinite; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.ns-bio .wn, .name-prev.ns-bio { color: #6ee7b7; animation: bioPulse 2.4s ease-in-out infinite; }
@keyframes bioPulse { 0%, 100% { text-shadow: 0 0 2px #10b981; color: #6ee7b7; } 50% { text-shadow: 0 0 10px #34d399, 0 0 20px #059669; color: #d1fae5; } }
.ns-galaxy .wn, .name-prev.ns-galaxy { background: linear-gradient(90deg, #7c3aed, #db2777, #19CFD2, #7c3aed); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nsRain 5s ease-in-out infinite alternate; filter: drop-shadow(0 0 3px rgba(124,58,237,.5)); }
.ns-goldshine .wn, .name-prev.ns-goldshine { background: linear-gradient(110deg, #b45309 0 35%, #fde68a 45%, #fffbeb 50%, #fde68a 55%, #ca8a04 65% 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bn-bubbles::before, .bn-caustics::before, .bn-caustics::after, .bn-sunrays::after, .bn-kelp::before, .bn-kelp::after, .bn-school::after, .bn-lava, .bn-plankton::before, .bn-plankton::after, .bn-jelly::before, .bn-jelly::after,
  .ns-neon .wn, .ns-wave .wn, .ns-fire .wn, .ns-frost .wn, .ns-bio .wn, .ns-galaxy .wn, .ns-goldshine .wn, .name-prev { animation: none; } }

/* Galaxie-Rahmen in weiteren Farben (v139) */
.fr-gxteal { --fr: conic-gradient(#042f2e, #19CFD2, #0e7490, #67e8f9, #134e4a, #042f2e); --frc: #19CFD2; }
.fr-gxocean { --fr: conic-gradient(#172554, #3b82f6, #bae6fd, #1d4ed8, #0c4a6e, #172554); --frc: #3b82f6; }
.fr-gxemerald { --fr: conic-gradient(#022c22, #10b981, #a3e635, #047857, #14532d, #022c22); --frc: #10b981; }
.fr-gxrose { --fr: conic-gradient(#4a044e, #ec4899, #f9a8d4, #a855f7, #831843, #4a044e); --frc: #ec4899; }
.fr-gxfire { --fr: conic-gradient(#450a0a, #ef4444, #f97316, #facc15, #b91c1c, #450a0a); --frc: #f97316; }
.fr-gxteal, .fr-gxocean, .fr-gxemerald, .fr-gxrose, .fr-gxfire { animation: frspin 8s linear infinite; }
.fr-gxteal > *, .fr-gxocean > *, .fr-gxemerald > *, .fr-gxrose > *, .fr-gxfire > * { animation: frspin 8s linear infinite reverse; }
@media (prefers-reduced-motion: reduce) { .fr-gxteal, .fr-gxocean, .fr-gxemerald, .fr-gxrose, .fr-gxfire, .fr-gxteal > *, .fr-gxocean > *, .fr-gxemerald > *, .fr-gxrose > *, .fr-gxfire > * { animation: none; } }

/* ===== Animierte Begleiter (v140) ===== */
.pet-x { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; vertical-align: -.36em; margin-left: .3rem; animation: none; }
.pet-x svg, .pet-x img { width: 100%; height: 100%; display: block; overflow: visible; }
.pet-prev .pet-x { width: 2.6rem; height: 2.6rem; margin: 0; }
.pet-prev .pet { font-size: inherit; margin: 0; }
/* Luftblasen */
.pet-bubbles circle { fill: rgba(165, 243, 252, .35); stroke: #67e8f9; stroke-width: 1; transform-box: fill-box; animation: pbRise 2.4s ease-in infinite; }
.pet-bubbles .pb2 { animation-delay: -.8s; } .pet-bubbles .pb3 { animation-delay: -1.6s; }
@keyframes pbRise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-16px) scale(1.1); opacity: 0; } }
/* Neonsalmler */
.pet-tetra .pt-swim { transform-origin: 14px 10px; animation: ptSwim 1.6s ease-in-out infinite; }
.pet-tetra .pt-tail { transform-origin: 22px 10px; animation: ptTail .35s ease-in-out infinite alternate; }
.pet-tetra .pt-glow { filter: drop-shadow(0 0 1.5px #22d3ee); animation: ptGlow 2s ease-in-out infinite; }
@keyframes ptSwim { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(-2px) rotate(-4deg); } }
@keyframes ptTail { from { transform: scaleY(.7); } to { transform: scaleY(1.15); } }
@keyframes ptGlow { 0%, 100% { opacity: .8; } 50% { opacity: 1; stroke: #67e8f9; } }
/* Axolotl */
.pet-axolotl .pa-gl { transform-origin: 5px 11px; animation: paGill 1.2s ease-in-out infinite alternate; }
.pet-axolotl .pa-gr { transform-origin: 23px 11px; animation: paGill 1.2s ease-in-out infinite alternate-reverse; }
.pet-axolotl .pa-eyes { transform-origin: 14px 10.5px; animation: paBlink 4s infinite; }
@keyframes paGill { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes paBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
/* Leuchtqualle */
.pet-jelly .pj-body { animation: pjFloat 3s ease-in-out infinite; filter: drop-shadow(0 0 2.5px #f472b6); }
.pet-jelly .pj-bell { transform-origin: 12px 12px; animation: pjPulse 1.5s ease-in-out infinite; }
.pet-jelly .pj-tent path { animation: pjTent 1.5s ease-in-out infinite alternate; transform-origin: 12px 12px; }
@keyframes pjFloat { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-2px); } }
@keyframes pjPulse { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.08, .86); } }
@keyframes pjTent { from { transform: skewX(-8deg); } to { transform: skewX(8deg); } }
/* Anglerfisch */
.pet-angler svg { animation: pgBob 2.6s ease-in-out infinite; }
.pet-angler .pg-lure { filter: drop-shadow(0 0 3px #fde047); animation: pgLure 1.8s ease-in-out infinite; }
@keyframes pgBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px) rotate(-3deg); } }
@keyframes pgLure { 0%, 40%, 100% { opacity: 1; } 50%, 60% { opacity: .25; } }
/* Mini-AquaBot */
.pet-bot img { animation: botBob 2.2s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(25, 207, 210, .6)); }
@keyframes botBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-2px) rotate(4deg); } }
/* AquaBot Live */
.pet-botlive { width: 1.7em; height: 1.7em; vertical-align: -.45em; }
.pet-prev .pet-botlive { width: 3rem; height: 3rem; }
.pbl { position: relative; display: block; width: 100%; height: 100%; animation: botBob 2.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(25, 207, 210, .7)); }
.pbl img, .pbl-eyes { position: absolute; inset: 0; width: 100%; height: 100%; }
.pbl-e { transform-box: fill-box; transform-origin: center; animation: botBlink 3.6s infinite; filter: drop-shadow(0 0 6px #22d3ee); }
.pbl-look { animation: botLook 6s ease-in-out infinite; }
@keyframes botBlink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.1); } }
@keyframes botLook { 0%, 20%, 100% { transform: translateX(0); } 30%, 45% { transform: translateX(-14px); } 60%, 75% { transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .pet-x *, .pet-x svg, .pet-x img, .pbl { animation: none !important; } }

/* Fotos in Forum-Antworten (v141) */
.c-form { align-items: flex-end; }
.c-in { flex: 1; min-width: 0; display: grid; gap: .4rem; } .c-in textarea { width: 100%; }
.c-prev:empty { display: none; } .c-prev .cp-th { width: 64px; height: 64px; }
.c-btns { display: flex; flex-direction: column; gap: .4rem; }
.c-photo { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: .55rem .7rem; }
.c-photo svg { width: 20px; height: 20px; } .c-photo.full { opacity: .4; pointer-events: none; }
.c-imgs { display: grid; gap: .35rem; margin: .35rem 0 .2rem; max-width: 420px; }
.c-imgs.n1 { grid-template-columns: 1fr; } .c-imgs.n2 { grid-template-columns: 1fr 1fr; } .c-imgs.n3 { grid-template-columns: repeat(3, 1fr); }
.c-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: var(--border); }
.c-imgs.n1 .c-img { aspect-ratio: auto; max-height: 320px; }
/* Antwortfeld: Text oben, darunter Foto-Knopf links und Senden rechts (v142) */
#cForm.c-form { display: grid; grid-template-columns: 1fr; gap: .5rem; align-items: stretch; }
#cForm .c-in textarea { min-height: 3.2rem; }
#cForm .c-btns { flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; }
#cForm .c-photo { width: 46px; height: 46px; padding: 0; border-radius: 14px; flex: none; }
#cForm .c-btns .btn.primary { padding-left: 1.4rem; padding-right: 1.4rem; }
#cForm .c-btns > * { margin: 0; } #cForm .c-btns .btn.primary { height: 46px; }

/* ===== Weitere animierte Begleiter (v143) ===== */
.pet-starfish .ps-star { transform-origin: 12px 12px; animation: psSpin 9s linear infinite; }
.pet-starfish .ps-spark { transform-box: fill-box; transform-origin: center; animation: psSpark 2s ease-in-out infinite; }
@keyframes psSpin { to { transform: rotate(360deg); } }
@keyframes psSpark { 0%, 100% { transform: scale(.2); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
.pet-redshrimp .pr-a1 { transform-origin: 6px 9px; animation: prAnt 1.4s ease-in-out infinite alternate; }
.pet-redshrimp .pr-a2 { transform-origin: 6px 9px; animation: prAnt 1.1s ease-in-out infinite alternate-reverse; }
.pet-redshrimp .pr-legs { animation: prLegs .5s ease-in-out infinite alternate; }
.pet-redshrimp .pr-tail { transform-origin: 23px 15px; animation: ptTail .9s ease-in-out infinite alternate; }
@keyframes prAnt { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
@keyframes prLegs { from { transform: translateX(-.4px); } to { transform: translateX(.4px); } }
.pet-puffy .pp-body { transform-origin: 12px 12px; animation: ppPuff 4s ease-in-out infinite; }
.pet-puffy .pp-spikes { transform-origin: 12px 12px; animation: ppSpikes 4s ease-in-out infinite; }
.pet-puffy .pp-fin { transform-origin: 20px 12px; animation: ptTail .4s ease-in-out infinite alternate; }
@keyframes ppPuff { 0%, 55%, 100% { transform: scale(.82); } 65%, 85% { transform: scale(1.12); } }
@keyframes ppSpikes { 0%, 55%, 100% { opacity: 0; } 65%, 85% { opacity: 1; } }
.pet-seahorse .psh { transform-origin: 10px 15px; animation: pshBob 2.8s ease-in-out infinite; }
.pet-seahorse .psh-fin { animation: pjTent .3s linear infinite alternate; transform-origin: 7px 15px; }
@keyframes pshBob { 0%, 100% { transform: translateY(1px) rotate(-4deg); } 50% { transform: translateY(-1.5px) rotate(4deg); } }
.pet-seaturtle svg { animation: pgBob 3s ease-in-out infinite; }
.pet-seaturtle .pst-fl1 { transform-box: fill-box; transform-origin: 100% 100%; animation: pstRow 1.4s ease-in-out infinite alternate; }
.pet-seaturtle .pst-fl2 { transform-box: fill-box; transform-origin: 100% 0%; animation: pstRow 1.4s ease-in-out infinite alternate-reverse; }
.pet-seaturtle .pst-head { animation: prLegs 1.2s ease-in-out infinite alternate; }
@keyframes pstRow { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }
.pet-octo svg { animation: pgBob 2.4s ease-in-out infinite; }
.pet-octo .po-arms path { transform-origin: 12px 14px; animation: poWave 1.2s ease-in-out infinite alternate; }
.pet-octo .po-a2, .pet-octo .po-a4 { animation-direction: alternate-reverse !important; }
@keyframes poWave { from { transform: skewX(-10deg); } to { transform: skewX(10deg); } }
.pet-betta svg { animation: pgBob 3.4s ease-in-out infinite; }
.pet-betta .pbt-tail { transform-origin: 17px 12px; animation: pbtTail 1.6s ease-in-out infinite alternate; }
.pet-betta .pbt-dorsal { transform-origin: 14px 7px; animation: poWave 1.8s ease-in-out infinite alternate; }
.pet-betta .pbt-anal { transform-origin: 14px 15px; animation: poWave 1.8s ease-in-out infinite alternate-reverse; }
@keyframes pbtTail { from { transform: skewY(-6deg) scaleX(.92); } to { transform: skewY(6deg) scaleX(1.05); } }
.pet-clam .pcl-top { transform-origin: 3px 15px; animation: pclOpen 4s ease-in-out infinite; }
.pet-clam .pcl-pearl { filter: drop-shadow(0 0 2px #e0e7ff); animation: pclGlow 4s ease-in-out infinite; }
@keyframes pclOpen { 0%, 20%, 100% { transform: rotate(0); } 40%, 75% { transform: rotate(-32deg); } }
@keyframes pclGlow { 0%, 25%, 100% { filter: none; } 45%, 70% { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #a5b4fc); } }
.pet-discus .pds { transform-origin: 14px 13px; animation: pdsFloat 4s ease-in-out infinite; }
.pet-discus .pds-tail { transform-origin: 21px 13px; animation: ptTail .7s ease-in-out infinite alternate; }
@keyframes pdsFloat { 0%, 100% { transform: translateY(1px) rotate(-3deg); } 50% { transform: translateY(-1.5px) rotate(3deg); } }
#cForm .c-media { display: flex; gap: .4rem; }
#cForm .c-photo svg { width: 21px; height: 21px; }
/* Kamera, Galerie und Senden auf einer Linie (v145) */
#cForm .c-btns { display: flex; align-items: center; }
#cForm .c-media { align-items: center; }
#cForm .c-media label.c-photo { margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; min-height: 46px; padding: 0; line-height: 1; gap: 0; font-size: inherit; }
#cForm .c-btns .btn.primary { margin: 0 !important; height: 46px; min-height: 46px; display: inline-flex; align-items: center; }

/* Shop-Gruppen */
.shop-group { grid-column: 1 / -1; margin: .6rem 0 0; font-size: .95rem; color: var(--muted); }
.shop-group:first-child { margin-top: 0; }
/* ===== Effekt-Begleiter (v146) ===== */
.pet-sparkle .sk { fill: #e0f2fe; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 2px #67e8f9); animation: skTw 2.4s ease-in-out infinite; }
.pet-sparkle .s2 { animation-delay: -.8s; fill: #a5f3fc; } .pet-sparkle .s3 { animation-delay: -1.6s; fill: #ffffff; }
@keyframes skTw { 0%, 100% { transform: scale(.15) rotate(0); opacity: 0; } 40% { transform: scale(1) rotate(45deg); opacity: 1; } 70% { transform: scale(.4) rotate(90deg); opacity: .2; } }
.pet-ripple .rp { fill: none; stroke: #67e8f9; stroke-width: 1.1; transform-box: fill-box; transform-origin: center; animation: rpOut 2.7s ease-out infinite; opacity: 0; }
.pet-ripple .r2 { animation-delay: -.9s; } .pet-ripple .r3 { animation-delay: -1.8s; }
@keyframes rpOut { 0% { transform: scale(.1); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.pet-drop .dr-drop { animation: drFall 2.2s cubic-bezier(.5, 0, 1, 1) infinite; filter: drop-shadow(0 0 2px #22d3ee); }
.pet-drop .dr-ring { fill: none; stroke: #67e8f9; stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: 0; animation: drRing 2.2s ease-out infinite; }
.pet-drop .d2 { animation-delay: .25s; }
@keyframes drFall { 0% { transform: translateY(-2px); opacity: 0; } 15% { opacity: 1; } 55% { transform: translateY(11px); opacity: 1; } 60%, 100% { transform: translateY(11px) scale(.3); opacity: 0; } }
@keyframes drRing { 0%, 55% { transform: scale(.1); opacity: 0; } 60% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.pet-fireflies .ff { fill: #fef08a; filter: drop-shadow(0 0 2.5px #facc15); animation: ffDrift 4s ease-in-out infinite; }
.pet-fireflies .f2 { animation-duration: 5s; animation-delay: -1.2s; fill: #a5f3fc; filter: drop-shadow(0 0 2.5px #22d3ee); }
.pet-fireflies .f3 { animation-duration: 4.6s; animation-delay: -2.4s; }
@keyframes ffDrift { 0%, 100% { transform: translate(0, 0); opacity: .35; } 25% { transform: translate(2px, -3px); opacity: 1; } 50% { transform: translate(-1px, -5px); opacity: .6; } 75% { transform: translate(-3px, -1px); opacity: 1; } }
.pet-orbit .ob-ring { transform-origin: 12px 12px; animation: psSpin 3s linear infinite; }
.pet-orbit .ob-ring circle { filter: drop-shadow(0 0 2px #67e8f9); }
.pet-orbit .ob-core { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 3px #19CFD2); animation: obCore 1.5s ease-in-out infinite alternate; }
@keyframes obCore { from { transform: scale(.85); } to { transform: scale(1.15); } }
.pet-swirl .sw { transform-origin: 12px 12px; animation: psSpin 4s linear infinite reverse; filter: drop-shadow(0 0 2px rgba(25, 207, 210, .7)); }
.pet-pulse .pl-line { stroke-dasharray: 30 100; filter: drop-shadow(0 0 2px #19CFD2); animation: plRun 1.8s linear infinite; }
@keyframes plRun { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }
.pet-sprout .spr { transform-origin: 12px 27px; animation: sprSway 3.6s ease-in-out infinite alternate; }
.pet-sprout .spl { transform-box: fill-box; animation: sprLeaf 2.4s ease-in-out infinite alternate; }
.pet-sprout .l1 { transform-origin: 100% 100%; } .pet-sprout .l2 { transform-origin: 0% 100%; animation-delay: -.8s; } .pet-sprout .l3 { transform-origin: 50% 100%; animation-delay: -1.6s; }
@keyframes sprSway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes sprLeaf { from { transform: rotate(-5deg); } to { transform: rotate(7deg); } }
.pet-aurora .au { animation: auFlow 4s ease-in-out infinite alternate; filter: drop-shadow(0 0 2.5px rgba(168, 85, 247, .6)); }
.pet-aurora .a2 { animation-duration: 5.5s; animation-direction: alternate-reverse; }
@keyframes auFlow { from { transform: translateY(1.5px) skewX(-8deg); opacity: .6; } to { transform: translateY(-1.5px) skewX(8deg); opacity: 1; } }

/* Handy: Eingabefelder mindestens 16px groß, sonst zoomen manche Browser beim Antippen ins Bild (v149) */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: 16px; }
}
/* Kommentar bearbeiten: Textfeld über die ganze Breite, Knöpfe darunter rechts (v154) */
.comment .c-edit.c-form { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: center; margin-top: .4rem; }
.comment .c-edit.c-form textarea { grid-column: 1 / -1; width: 100%; min-height: 6.5rem; }
.comment .c-edit.c-form .btn { margin: 0; }
.comment .c-edit.c-form .btn:first-of-type { grid-column: 2; }

/* ---------- AquaBot-Helfer: Sprache ---------- */
.hp-ava { flex: none; width: 42px; height: 42px; display: block; }
.hp-ava .hb-face { border-width: 2px; }
.hp-snd { margin-left: auto; border: 0; background: none; font-size: 1.05rem; cursor: pointer; padding: .3rem .45rem; border-radius: 8px; line-height: 1; }
.hp-snd:hover { background: var(--hover); }
.hp-snd + .hp-x { margin-left: 0; }
.hp-mic { flex: none; width: 46px; height: 46px; margin: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.hp-form { align-items: center; }
.hp-send { height: 46px; }
.hp-in { height: 46px; }
.helper-panel.listening .hp-mic { background: #e5484d; border-color: #e5484d; color: #fff; animation: hvPulse 1.2s ease-out infinite; }
.helper-panel.listening .hp-sub { color: #e5484d; font-weight: 600; }
.helper-panel.listening .hp-ava .hb-look { transform: translateY(-2px); }
@keyframes hvPulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 100% { box-shadow: 0 0 0 14px rgba(229, 72, 77, 0); } }
.helper-fab.talking .hb-smile, .helper-panel.talking .hp-ava .hb-smile { opacity: 0; }
.helper-fab.talking .hb-talk, .helper-panel.talking .hp-ava .hb-talk { opacity: 1; animation: hbTalk .9s infinite; }
.helper-fab.talking .hb-float { animation: hbFloat 3.4s ease-in-out infinite, hbBounce .45s ease-in-out infinite; }
.helper-fab .hb-float { position: relative; }
.helper-fab.talking .hb-float::after { content: ''; position: absolute; inset: -4px; transform-origin: 50% 50%; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(74, 233, 255, .55); animation: hvRing 1.1s ease-out infinite; pointer-events: none; }
@keyframes hvRing { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.22); opacity: 0; } }
.hv-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; margin: .4rem 0 .6rem; }
.hv-row label { flex: 1 1 200px; margin: 0; }
.hv-row select { margin: 0; }
.hv-row .btn { margin: 0; }
@media (prefers-reduced-motion: reduce) { .helper-fab.talking .hb-float::after, .helper-panel.listening .hp-mic { animation: none !important; } }
.av-form { display: grid; gap: .7rem; }
.av-form label { margin: 0; }
.av-presets { margin-top: -.3rem; }
.av-presets .chip { cursor: pointer; }

/* ---------- KI-Knopf in der Mitte der unteren Leiste (nur Handy/Tablet) ---------- */
@media (max-width: 899px) {
  .sidebar { overflow: visible; }
  #tabs button[data-tab="tanks"] { order: 1; } #tabs button[data-tab="trends"] { order: 2; } #tabs button[data-tab="values"] { order: 3; }
  #tabs button[data-tab="chat"] { order: 4; } #tabs button[data-tab="ferts"] { order: 5; } #tabs button[data-tab="calc"] { order: 6; } #tabs button[data-tab="forum"] { order: 7; }
  /* KI in der Mitte: dezent hervorgehoben, bleibt komplett innerhalb der Leiste */
  #tabs button[data-tab="chat"] { color: var(--primary-text); font-weight: 700; z-index: 0; background: none; }
  #tabs button[data-tab="chat"]::before {
    content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%;
    background: linear-gradient(180deg, rgba(25, 207, 210, .16), rgba(25, 207, 210, .07));
    border: 1px solid rgba(25, 207, 210, .38);
    box-shadow: 0 2px 10px rgba(25, 207, 210, .12), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  }
  #tabs button[data-tab="chat"] .ico { stroke-width: 2.2; }
  #tabs button[data-tab="chat"]:hover, #tabs button[data-tab="chat"].active { background: none; color: var(--primary-text); }
  #tabs button[data-tab="chat"].active::before { background: linear-gradient(180deg, rgba(25, 207, 210, .26), rgba(25, 207, 210, .12)); border-color: rgba(25, 207, 210, .6); box-shadow: 0 2px 14px rgba(25, 207, 210, .22), inset 0 1px 0 rgba(255, 255, 255, .08); }
  #tabs button[data-tab="chat"].unread::after { top: calc(50% - 22px); right: calc(50% - 22px); }
}

/* ---------- Forum: Antworten auf Kommentare ---------- */
.c-thread + .c-thread { margin-top: .2rem; }
.c-replies { position: relative; margin: .2rem 0 .3rem 1.15rem; padding-left: .85rem; border-left: 2px solid var(--primary-ring); display: flex; flex-direction: column; gap: .1rem; }
.c-replies .comment.c-reply { padding-top: .55rem; padding-bottom: .45rem; }
.c-replies .comment.c-reply .avatar { width: 26px; height: 26px; font-size: .7rem; }
.c-replies .c-form { margin-top: .4rem; }
.c-replybtn { font-weight: 600; color: var(--primary-text); }
.c-form.c-replying { padding: .55rem; border: 1px solid var(--primary-ring); border-radius: 14px; background: var(--primary-soft); }
.c-replyto { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--primary-text); margin-bottom: .1rem; }
.c-actions { flex-wrap: wrap; row-gap: .3rem; }
.c-actions > * { white-space: nowrap; }
.c-actions { column-gap: .7rem; }

/* Folgen-Knopf im Forum */
.post-head .post-meta { flex: 1 1 auto; }
.fol-btn { flex: none; margin-left: auto; align-self: center; border: 1px solid var(--primary-ring); background: var(--primary-soft); color: var(--primary-text);
  font: inherit; font-size: .78rem; font-weight: 700; line-height: 1; padding: .42rem .7rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.fol-btn:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.fol-btn.on { background: transparent; color: var(--muted); border-color: var(--border); font-weight: 600; }
.fol-btn.on:hover { color: var(--text); background: var(--hover); border-color: var(--border); }
.fol-btn:disabled { opacity: .6; }
.fol-btn.pop { animation: folPop .35s var(--ease); }
@keyframes folPop { 40% { transform: scale(1.12); } }
.comment .fol-btn { font-size: .72rem; padding: .34rem .6rem; }

/* Kommentar-Formular: Foto-Knöpfe und Senden einheitlich */
#cForm .c-btns { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
#cForm .c-media { display: flex; align-items: center; gap: .5rem; }
#cForm .c-media label.c-photo, #cForm .c-btns .btn.primary { box-sizing: border-box; height: 46px !important; min-height: 46px !important; margin: 0 !important; border-radius: 14px; }
#cForm .c-media label.c-photo { width: 46px !important; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center;
  background: var(--input); border: 1px solid var(--border); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease); }
#cForm .c-media label.c-photo:hover, #cForm .c-media label.c-photo:active { border-color: var(--primary-ring); color: var(--primary-text); background: var(--primary-soft); }
#cForm .c-media label.c-photo svg { width: 21px; height: 21px; display: block; }
#cForm .c-btns .btn.primary { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: 0 1.25rem !important; font-size: .95rem; line-height: 1; }
#cForm.c-replying .c-media label.c-photo { background: var(--card); }
.lang-menu .lang-opt { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem .45rem; margin-top: .25rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); cursor: pointer; }
.lang-menu .lang-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }

/* Mitteilungen: nie breiter als der Bildschirm (sonst zoomt das Handy heraus) */
.notif-list { grid-template-columns: minmax(0, 1fr); }
.ib-row { min-width: 0; }
.n-main, .n-text, .nt-main, .nt-text { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

/* ---------- Community & Minispiele ---------- */
.g-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; }
.g-tab small { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pl-week .pl-wbar { position: relative; height: 26px; border-radius: 13px; background: var(--input); border: 1px solid var(--border); overflow: hidden; margin: .6rem 0 .5rem; }
.pl-week .pl-wbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #19CFD2, #4FF0A8); border-radius: 13px; transition: width .6s var(--ease); }
.pl-week .pl-wbar span { position: relative; display: block; text-align: center; line-height: 24px; font-size: .82rem; font-weight: 700; color: var(--text); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pl-wfoot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.pl-oq { display: grid; gap: .35rem; margin: .5rem 0; }
.pl-q { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .6rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; cursor: pointer; }
.pl-q > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-q b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pl-q:hover { border-color: var(--primary-ring); }
.pl-go, .rt-go { margin-left: auto; color: var(--muted); font-size: 1.3rem; }
.pl-ref { background: linear-gradient(160deg, color-mix(in srgb, #19CFD2 12%, var(--card)), var(--card) 60%); }
.pl-ref-top { display: flex; gap: .8rem; align-items: flex-start; }
.pl-ref-top h3 { margin: 0 0 .2rem; }
.pl-gift { font-size: 2rem; line-height: 1; }
.pl-link { display: flex; gap: .4rem; margin: .7rem 0 .5rem; }
.pl-link input { flex: 1; min-width: 0; margin: 0; font-size: .85rem; }
.pl-link .btn { margin: 0; }
.pl-ref-act { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pl-ref-act .btn { margin: 0; flex: 1 1 auto; justify-content: center; }
.pl-teaser { display: flex; align-items: center; gap: .8rem; cursor: pointer; }
.pl-teaser > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff5d6c; color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.pl-intro { padding-top: .7rem; padding-bottom: .7rem; }
.pl-intro p { margin: 0; }
.pl-dots { display: inline-flex; gap: 5px; }
.pl-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.pl-dots i.ok { background: #3ddc97; } .pl-dots i.bad { background: #ff5d6c; } .pl-dots i.cur { box-shadow: 0 0 0 2px var(--primary-ring); }
.pl-q-text { font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin: .4rem 0 .7rem; }
.pl-opts { display: grid; gap: .45rem; }
.pl-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-opt { text-align: left; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; line-height: 1.3; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.pl-opt:hover:not(:disabled) { border-color: var(--primary-ring); background: var(--primary-soft); }
.pl-opt.right { border-color: #3ddc97; background: color-mix(in srgb, #3ddc97 16%, var(--input)); }
.pl-opt.wrong { border-color: #ff5d6c; background: color-mix(in srgb, #ff5d6c 14%, var(--input)); }
.pl-opt.dim { opacity: .55; }
.pl-opt:disabled { cursor: default; }
.pl-why { margin: .7rem 0 .4rem; padding: .65rem .75rem; border-radius: 12px; background: var(--input); border-left: 3px solid var(--primary); line-height: 1.45; }
.pl-why.ok { border-left-color: #3ddc97; } .pl-why.bad { border-left-color: #ff5d6c; }
.pl-done { text-align: center; }
.pl-big { font-size: 2.1rem; font-weight: 800; margin: .2rem 0; line-height: 1.1; }
.pl-big small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pl-review { text-align: left; margin-top: .6rem; }
.pl-review summary { cursor: pointer; color: var(--primary-text); font-weight: 600; }
.pl-rv { padding: .5rem 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .15rem; }
.pl-rv small { color: var(--muted); line-height: 1.4; }
.pl-hints { margin: .4rem 0 .8rem; padding-left: 1.3rem; display: grid; gap: .35rem; line-height: 1.45; }
.pl-drop { display: flex; gap: 1rem; align-items: center; }
.pl-tube { width: 74px; height: 185px; flex: none; color: var(--text); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
.pl-drop-side { flex: 1; min-width: 0; }
.pl-drop-side label { display: block; margin: .4rem 0; }
.pl-drop-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.pl-drop-btns .btn { margin: 0; flex: 1 1 auto; justify-content: center; }
.ref-invite { display: flex; gap: .7rem; align-items: center; margin: 0 0 1rem; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--primary-ring); background: var(--primary-soft); }
.ref-invite .ri-ico { font-size: 1.7rem; }
.ref-invite div { display: flex; flex-direction: column; gap: .15rem; }
.ref-invite small { color: var(--muted); line-height: 1.4; }
.pl-test-name { font-weight: 700; margin: 0 0 .2rem; }
.pl-test-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 .4rem; }
.pl-test-chips span { padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--border); background: var(--input); font-size: .8rem; font-weight: 700; }
.pl-read { display: flex; gap: .9rem; align-items: center; margin: .5rem 0 .3rem; }
.pl-chart { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.pl-sw { display: flex; align-items: center; gap: .5rem; padding: .35rem .45rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.pl-sw i { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.pl-sw small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.pl-sw.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-ring); background: var(--primary-soft); }
.pl-bot { display: flex; gap: .75rem; align-items: flex-start; margin: .8rem 0 .4rem; padding: .8rem .9rem; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(160deg, color-mix(in srgb, #19CFD2 10%, var(--input)), var(--input)); }
.pl-bot.lvl-warn { border-color: rgba(255, 184, 77, .55); }
.pl-bot.lvl-bad { border-color: rgba(255, 93, 108, .6); background: linear-gradient(160deg, color-mix(in srgb, #ff5d6c 10%, var(--input)), var(--input)); }
.pl-bot-face { width: 46px; height: 46px; flex: none; display: block; }
.pl-bot p { margin: .25rem 0 0; line-height: 1.45; }
.pl-bot-tag { display: inline-block; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(61, 220, 151, .16); color: #3ddc97; vertical-align: middle; }
.pl-bot.lvl-warn .pl-bot-tag { background: rgba(255, 184, 77, .16); color: #ffb84d; }
.pl-bot.lvl-bad .pl-bot-tag { background: rgba(255, 93, 108, .16); color: #ff5d6c; }
.pl-drop-next { align-items: center; justify-content: space-between; }
.pl-empty { display: flex; gap: .7rem; align-items: center; margin: .5rem 0 .3rem; padding: .7rem .8rem; border-radius: 12px; background: var(--input); }
.pl-empty span { font-size: 1.5rem; }
.pl-empty p { margin: 0; line-height: 1.45; color: var(--muted); }
/* Tester-Schritte: einheitliche Knöpfe, AquaBot zeigt nacheinander auf 1, 2, 3 */
.pt-steps { position: relative; gap: .9rem; }
.pt-steps li { transition: opacity .3s var(--ease); }
.pt-steps .pt-txt { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; min-width: 0; }
.pt-steps .pt-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 230px; max-width: 100%; min-height: 50px; margin: 0; padding: .5rem 1rem; border-radius: 14px; font-size: 1rem; font-weight: 700; transition: transform .15s var(--ease), box-shadow .3s var(--ease); }
.pt-steps .gp-badge.pt-btn { justify-content: flex-start; }
.pt-steps li > .ig-n { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.pt-steps li.pt-cur > .ig-n { box-shadow: 0 0 0 5px var(--primary-ring); transform: scale(1.12); }
.pt-steps li.pt-cur .pt-btn { box-shadow: 0 0 0 3px var(--primary-ring), 0 8px 22px rgba(25, 207, 210, .35); }
.pt-steps .pt-btn.pt-tap { transform: scale(.94); }
.pt-ok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #3ddc97; color: #06291b; font-size: .75rem; }
.pt-bot { position: absolute; left: 0; top: 0; width: 38px; height: 38px; pointer-events: none; z-index: 2; opacity: 0; transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .4s; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.pt-bot.on { opacity: 1; }
.pt-bot img { width: 100%; height: 100%; border-radius: 50%; display: block; animation: ptFloat 2.4s ease-in-out infinite; }
.pt-bot.tap img { animation: ptTapBot .42s ease-in-out; }
@keyframes ptFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
@keyframes ptTapBot { 0% { transform: translateX(0); } 45% { transform: translateX(-12px) scale(.92); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .pt-bot { display: none; } }

/* Kein eckiges Aufblitzen beim Antippen (Android) und kein Fokus-Rahmen nach Klick oder Tipp.
   Mit der Tastatur bleibt der Fokus-Rahmen sichtbar (Barrierefreiheit). */
html, body, * , *::before, *::after { -webkit-tap-highlight-color: transparent; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible), [role="button"]:focus:not(:focus-visible), [tabindex]:focus:not(:focus-visible), label:focus:not(:focus-visible), summary:focus:not(:focus-visible) { outline: none; }
input[type=checkbox]:focus:not(:focus-visible), input[type=radio]:focus:not(:focus-visible) { outline: none; box-shadow: none; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }

/* ---------- Aquarium-Symbole: animiert und Beckenfoto ---------- */
.aq-ic-photo { width: 1.5em; height: 1.5em; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: -.35em; box-shadow: 0 0 0 2px var(--primary-ring); }
.aq-ic-anim { display: inline-flex; vertical-align: -.35em; }
.aq-ic-anim .pet-x { margin: 0; width: 1.5em; height: 1.5em; }
.aq-pick-icon { display: inline-flex; align-items: center; }
.aq-pick-icon .aq-ic-photo, .aq-pick-icon .pet-x { width: 24px; height: 24px; vertical-align: middle; }
.ic-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: .4rem; }
.ic-gh { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: var(--muted); margin: .45rem 0 0; }
.ic-gh:first-child { margin-top: 0; }
.ic-groups .ic-opt { width: auto; height: 46px; }
.ic-opt .aq-ic-anim .pet-x { width: 30px; height: 30px; }
.ic-opt.ic-photo { grid-column: span 3; gap: .45rem; padding: 0 .6rem; justify-content: flex-start; font-size: 1.1rem; }
.ic-opt.ic-photo .aq-ic-photo { width: 32px; height: 32px; }
.ic-opt.ic-photo small { font-size: .78rem; color: var(--muted); }
.ic-opt:disabled { opacity: .55; cursor: not-allowed; }

/* Steckbrief: freie Quellen */
.cat-title .cat-aka, .modal .cat-title p.cat-aka { margin: .15rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.cat-wiki { margin: .6rem 0; padding: .65rem .8rem; border-radius: 12px; background: var(--card2, rgba(127,127,127,.08)); border: 1px solid var(--line, rgba(127,127,127,.18)); }
.cat-wiki b { font-size: .85rem; }
.cat-wiki p, .modal .cat-wiki p { margin: .3rem 0 .4rem; font-size: .88rem; line-height: 1.5; }
.cat-wiki small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.4; }
.cat-wiki a { color: inherit; text-decoration: underline; }
.cat-water { margin-top: .4rem; }
.cat-hit .cw-t { border: 0; font-weight: 600; font-style: normal; font-size: .68rem; padding: .1rem .4rem; border-radius: 999px; white-space: nowrap; margin-left: auto; }
.cat-hit .cw-t.salt { background: rgba(56,140,255,.16); color: #4ea1ff; }
.cat-hit .cw-t.brack { background: rgba(214,170,60,.18); color: #c9952a; }
.cat-hit .cw-t + em { margin-left: .3rem; }
.cg-groups { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .6rem; margin: .1rem 0 .5rem; font-size: .88rem; }
.cg-all { font-size: .95rem; }
.cg-h { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; padding: .2rem .3rem; position: sticky; top: 0; background: var(--card); z-index: 1; }
@media (max-width: 380px) { .cg-groups { grid-template-columns: 1fr; } }
.cj { margin: .5rem 0 .7rem; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--primary-ring, var(--border)); background: var(--hover); }
.cj.done { border-color: var(--border); }
.cj-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.cj p { margin: .45rem 0; }
.cj-log summary { cursor: pointer; font-size: .85rem; margin-bottom: .3rem; }
.cj-log { max-height: 40vh; overflow: auto; }

/* Fenster nie höher als der Bildschirm, Knöpfe unten immer erreichbar */
.modal { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.modal > .modal-actions { position: sticky; bottom: -1.4rem; z-index: 2; background: var(--card); margin: .6rem 0 -1.4rem; padding: .7rem 0 1.4rem; box-shadow: 0 -10px 14px -10px rgba(0,0,0,.35); }
.modal.lb > .modal-actions { position: static; box-shadow: none; }
.admodal .cg-groups label { margin: 0; padding: .3rem 0; font-size: .82rem; line-height: 1.25; }
.admodal .cg-all { margin-bottom: .3rem; }
.admodal .cg-direct span { font-size: .82rem; }
.admodal p.small, .modal .admodal p.small { font-size: .8rem; line-height: 1.4; }

/* Links im Text: Titel in Türkis */
a.ext-link, a[data-applink] { color: var(--primary-text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary-text) 45%, transparent); text-underline-offset: 2px; word-break: break-word; }
a.ext-link[data-nobrand] { font-weight: 500; }
/* Kasten zum Benennen von Links beim Schreiben */
.lt-panel { margin: .4rem 0 .7rem; padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--primary-ring, var(--border)); background: var(--primary-soft, var(--hover)); font-size: .85rem; }
.lt-h { font-weight: 600; margin-bottom: .4rem; }
.lt-row + .lt-row { margin-top: .5rem; }
.lt-u { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: .2rem; }
.lt-in { display: flex; gap: .35rem; align-items: center; }
.lt-in input { flex: 1; min-width: 0; padding: .45rem .6rem; font-size: .9rem; margin: 0; }
.lt-in .btn { flex: none; min-width: 38px; padding: .4rem .55rem; }
.lt-hint { font-size: .72rem; margin-top: .45rem; }

/* Links mit Titel als moderner Knopf (wie der KI-Knopf unten, aber eckig-abgerundet) */
a.ext-link:not([data-nobrand]), a[data-applink]:not([data-nobrand]) {
  position: relative; display: inline-flex; align-items: center; gap: .3em; overflow: hidden; isolation: isolate;
  margin: .12em .08em; padding: .22em .62em .24em; border-radius: 10px; line-height: 1.3; vertical-align: baseline;
  color: var(--primary-text); font-weight: 650; text-decoration: none;
  background: linear-gradient(180deg, rgba(25, 207, 210, .18), rgba(25, 207, 210, .07));
  border: 1px solid rgba(25, 207, 210, .42);
  box-shadow: 0 2px 10px rgba(25, 207, 210, .16), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
a.ext-link:not([data-nobrand])::after { content: '↗'; font-size: .85em; opacity: .8; transition: transform .2s var(--ease); }
a[data-applink]:not([data-nobrand])::after { content: '›'; font-size: 1.05em; opacity: .8; transition: transform .2s var(--ease); }
/* sanfter Lichtschimmer, der ab und zu über den Knopf läuft */
a.ext-link:not([data-nobrand])::before, a[data-applink]:not([data-nobrand])::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-18deg); animation: lnkShine 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes lnkShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
a.ext-link:not([data-nobrand]):hover, a[data-applink]:not([data-nobrand]):hover {
  transform: translateY(-1px); border-color: rgba(25, 207, 210, .65);
  background: linear-gradient(180deg, rgba(25, 207, 210, .26), rgba(25, 207, 210, .12));
  box-shadow: 0 5px 16px rgba(25, 207, 210, .26), inset 0 1px 0 rgba(255, 255, 255, .09);
}
a.ext-link:not([data-nobrand]):hover::after { transform: translate(2px, -2px); }
a[data-applink]:not([data-nobrand]):hover::after { transform: translateX(2px); }
a.ext-link:not([data-nobrand]):active, a[data-applink]:not([data-nobrand]):active { transform: scale(.96); box-shadow: 0 1px 6px rgba(25, 207, 210, .2); }
@media (prefers-reduced-motion: reduce) { a.ext-link::before, a[data-applink]::before { animation: none; display: none; } }
.dm-b.mine a.ext-link, .dm-b.mine a[data-applink] { color: var(--primary-text); }
.cw-bulk { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; } .cw-bulk .muted { flex-basis: 100%; }

/* Nachrichten: Eingabe oben, Knöpfe darunter – wie bei den Kommentaren im Forum */
.m-form.c-form { display: grid; grid-template-columns: 1fr; gap: .5rem; align-items: stretch; }
.m-form .c-in textarea { min-height: 3.2rem; }
.m-form .c-btns { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; }
.m-form .c-btns > * { margin: 0; }
.m-form .c-media { display: flex; align-items: center; gap: .5rem; }
.m-form .c-media label.c-photo { margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 14px; flex: none; line-height: 1; gap: 0; }
.m-form .c-photo svg { width: 21px; height: 21px; }
.m-form .c-btns .btn.primary { margin: 0 !important; height: 46px; min-height: 46px; display: inline-flex; align-items: center; padding-left: 1.4rem; padding-right: 1.4rem; }
/* Textfeld wächst beim Schreiben mit */
.c-form textarea.grow { resize: none; overflow-y: hidden; transition: height .12s ease; }
/* Fotos und Videos in Nachrichten */
.dm-b.has-media { padding: .35rem .35rem .5rem; }
.dm-b.has-media > div:not(.dm-imgs):not(.vp), .dm-b.has-media .dm-t { padding: 0 .45rem; }
.dm-imgs { display: grid; gap: 3px; border-radius: 12px; overflow: hidden; margin-bottom: .35rem; }
.dm-imgs.n2 { grid-template-columns: 1fr 1fr; } .dm-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.dm-imgs img { width: 100%; max-height: 300px; aspect-ratio: auto; object-fit: cover; display: block; cursor: zoom-in; background: var(--hover); }
.dm-imgs.n2 img, .dm-imgs.n3 img { aspect-ratio: 1; height: auto; }
.dm-video { display: block; width: 100%; max-height: 360px; border-radius: 12px; background: #000; margin-bottom: .35rem; }
.cp-vid { position: relative; }
.cp-play { position: absolute; left: 4px; bottom: 4px; font-size: .65rem; padding: .1rem .35rem; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; }

/* Sprachnachrichten */
/* Player im KI-Stil (vpHtml in extras.js) */
.vp { display: flex; align-items: center; gap: .55rem; width: 100%; max-width: 340px; padding: .35rem .7rem .35rem .35rem; margin: .3rem 0; border-radius: 999px; background: linear-gradient(135deg, rgba(25,207,210,.16), rgba(20,26,33,.55)); border: 1px solid var(--primary-ring); box-shadow: 0 0 14px rgba(25,207,210,.14); }
.vp.dm-vp { min-width: 230px; margin: 0 0 .3rem; padding: .3rem .7rem .3rem .3rem; }
.vp.dm-vp .vp-btn { width: 34px; height: 34px; }
.modal-actions .vp.nd-vp { flex: 1 1 100%; max-width: none; margin: 0 0 .3rem; }
.vp-btn { flex: 0 0 auto; min-width: 0; min-height: 0; padding: 0; margin: 0; line-height: 1; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: .8rem; color: var(--primary-ink); background: radial-gradient(circle at 34% 28%, #c8fffd, #19CFD2 42%, #1479c9 90%); box-shadow: 0 0 16px rgba(25,207,210,.5); }
.vp-btn:hover { filter: brightness(1.08); }
.vp.playing .vp-btn { box-shadow: 0 0 24px rgba(25,207,210,.8); }
.vp-bar { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--border); cursor: pointer; }
.vp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--primary); box-shadow: 0 0 8px rgba(25,207,210,.6); }
.vp-t { flex: 0 0 auto; min-width: 2.3rem; text-align: right; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vp audio { display: none; }
.nd-audio { margin: .3rem 0 .6rem; }
.an-aud .vp { max-width: 100%; }
.cp-aud { position: relative; display: flex; flex-direction: column; gap: .3rem; flex: 1 1 100%; padding: .5rem .6rem; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--primary-ring); font-size: .8rem; }
.cp-aud .cp-rm { top: -8px; right: -8px; }
.an-aud { display: grid; gap: .4rem; padding: .6rem .7rem; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--primary-ring); margin: -.2rem 0 .8rem; font-size: .85rem; }
.an-linkbar { flex-wrap: wrap; }
.m-form .c-media { gap: .4rem; }
.m-form .c-media .c-photo { color: inherit; }
/* Aufnahme-Fenster */
.vr { text-align: center; }
.vr-mic { position: relative; width: 92px; height: 92px; margin: .4rem auto .6rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.3rem;
  background: linear-gradient(180deg, rgba(25,207,210,.25), rgba(25,207,210,.1)); border: 1px solid rgba(25,207,210,.55); box-shadow: 0 6px 24px rgba(25,207,210,.25); }
.vr-mic span { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(25,207,210,.5); animation: vrPulse 1.8s ease-out infinite; }
.vr-mic span + span { animation-delay: .9s; }
@keyframes vrPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.vr-time { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primary-text); }
.vr-bars { display: flex; justify-content: center; align-items: center; gap: 3px; height: 40px; margin: .6rem 0 .9rem; }
.vr-bars i { width: 4px; height: 100%; border-radius: 3px; background: var(--primary); transform: scaleY(.15); transition: transform .08s linear; }
@media (prefers-reduced-motion: reduce) { .vr-mic span { animation: none; } }

/* Feedback: gleitet entspannt von rechts herein (wie eine Seitenleiste) */
.modal-overlay.fb-ov { place-items: stretch end; padding: 0; animation: fbFade .35s ease-out; }
.modal.fb-drawer { height: 100dvh; max-height: 100dvh; width: min(440px, 92vw); max-width: none; border-radius: 22px 0 0 22px; border-right: 0;
  padding-top: max(1.4rem, env(safe-area-inset-top)); padding-bottom: max(1.4rem, env(safe-area-inset-bottom));
  box-shadow: -18px 0 50px rgba(0,0,0,.35); animation: fbIn .55s cubic-bezier(.22, 1, .36, 1) both; }
.modal-overlay.fb-ov.out { animation: fbFadeOut .32s ease-in forwards; }
.modal-overlay.fb-ov.out .fb-drawer { animation: fbOut .32s cubic-bezier(.55, 0, .75, .2) forwards; }
@keyframes fbIn { from { transform: translateX(105%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fbOut { from { transform: none; } to { transform: translateX(105%); } }
@keyframes fbFade { from { background: transparent; } }
@keyframes fbFadeOut { to { background: transparent; } }
.modal.fb-drawer > .modal-actions { bottom: calc(-1 * max(1.4rem, env(safe-area-inset-bottom))); padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); margin-bottom: calc(-1 * max(1.4rem, env(safe-area-inset-bottom))); }
@media (prefers-reduced-motion: reduce) { .modal.fb-drawer, .modal-overlay.fb-ov.out .fb-drawer { animation-duration: .01s; } }

/* Startseite: Arten-Lexikon und häufige Fragen */
.lp-lex-links { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.lp-lex-links a { padding: .45rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.lp-lex { text-align: center; }
.lp-faq { max-width: 760px; margin-left: auto; margin-right: auto; }
.lp-faq details { padding: .8rem 1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--border); margin-bottom: .5rem; }
.lp-faq summary { cursor: pointer; font-weight: 650; }
.lp-faq p { margin: .5rem 0 0; line-height: 1.6; color: var(--muted); }
.lp-about { max-width: 640px; margin: 0 auto .8rem; text-align: center; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.lp-about a { color: inherit; }
.cat-share { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 .4rem; }
.cat-share .btn { text-decoration: none; }
.lp-lex-count { display: inline-flex; align-items: baseline; gap: .35rem; margin: .2rem 0 .6rem; padding: .3rem .8rem; border-radius: 999px; background: var(--primary-soft); border: 1px solid var(--primary-ring); color: var(--primary-text); font-size: .95rem; }
.lp-lex-count b { font-size: 1.2rem; } .lp-lex-count span { color: var(--muted); }
.cat-hero { position: relative; }
.cat-ai-img { position: absolute; left: .6rem; top: .6rem; z-index: 2; padding: .2rem .55rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 600; backdrop-filter: blur(4px); }

/* Wassertest: Röhrchen schütteln, Tropfen fallen lassen */
.pl-tube-wrap { display: inline-block; flex: none; transform-origin: 50% 85%; }
.pl-tube { overflow: visible; }
.pl-tube-wrap.shaking { animation: tbShake 4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes tbShake {
  0% { transform: none; }
  4% { transform: translateY(-14px) rotate(0); }
  8% { transform: translateY(-14px) rotate(-22deg); }
  12% { transform: translateY(-10px) rotate(24deg); }
  16% { transform: translateY(-16px) rotate(-26deg); }
  20% { transform: translateY(-10px) rotate(25deg); }
  24% { transform: translateY(-16px) rotate(-24deg); }
  28% { transform: translateY(-10px) rotate(22deg); }
  32% { transform: translateY(-14px) rotate(-20deg); }
  36% { transform: translateY(-8px) rotate(16deg); }
  40% { transform: translateY(-6px) rotate(-9deg); }
  44% { transform: translateY(-3px) rotate(5deg); }
  48% { transform: translateY(-1px) rotate(-2deg); }
  52%, 100% { transform: none; }
}
/* Flüssigkeit schwappt gegen die Bewegung */
.pl-tube-wrap.shaking .tb-liq { animation: tbSlosh 4s ease-in-out both; transform-box: view-box; }
@keyframes tbSlosh {
  0%, 4% { transform: none; }
  8% { transform: rotate(18deg) translateY(-6px); } 12% { transform: rotate(-20deg) translateY(-10px); } 16% { transform: rotate(22deg) translateY(-6px); }
  20% { transform: rotate(-21deg) translateY(-10px); } 24% { transform: rotate(20deg) translateY(-6px); } 28% { transform: rotate(-18deg) translateY(-8px); }
  32% { transform: rotate(16deg) translateY(-4px); } 36% { transform: rotate(-12deg) translateY(-3px); } 40% { transform: rotate(8deg); }
  44% { transform: rotate(-5deg); } 48% { transform: rotate(3deg); } 54% { transform: rotate(-1deg); } 60%, 100% { transform: none; }
}
/* Farbe entwickelt sich langsam nach dem Schütteln */
.tb-mix { opacity: 0; animation: tbMix 4s ease-out forwards; }
@keyframes tbMix { 0%, 20% { opacity: 0; } 50% { opacity: .55; } 100% { opacity: 1; } }
/* Bläschen */
.tb-bub { fill: rgba(255,255,255,.75); opacity: 0; animation: tbBub 1.4s ease-in 3; }
@keyframes tbBub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-120px); opacity: 0; } }
/* Stopfen setzt sich drauf */
.tb-cap { animation: tbCap .35s ease-out both; }
@keyframes tbCap { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
/* fallender Tropfen und kleine Welle */
.tb-drip { animation: tbDrip .55s cubic-bezier(.55,0,1,.45) forwards; }
@keyframes tbDrip { 0% { transform: translateY(-10px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--drop-y, 120px)); opacity: 0; } }
.tb-ripple { opacity: 0; transform-box: fill-box; transform-origin: center; animation: tbRipple .6s ease-out .45s forwards; }
@keyframes tbRipple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4); } }
.pl-tube-wrap.dripping .tb-liq { animation: tbBob .5s ease-out .48s; transform-box: view-box; }
@keyframes tbBob { 0% { transform: translateY(0); } 40% { transform: translateY(2px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pl-tube-wrap.shaking, .pl-tube-wrap.shaking .tb-liq, .tb-bub, .tb-drip { animation-duration: .01s !important; } .tb-mix { animation: none; opacity: 1; } }
/* Fehlerprotokoll: lange Adressen umbrechen statt die Seite zu verschieben */
.err-list { grid-template-columns: minmax(0, 1fr); }
.err-item { min-width: 0; }
.err-item code, .err-item small { overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.err-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
/* Seite nie seitlich verschiebbar */
html, body { overflow-x: clip; }
/* Wissensdatenbank */
.kb-list { display: grid; gap: .6rem; }
.kb-item { padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--border); background: var(--card); min-width: 0; }
.kb-item.ok { border-color: var(--primary-ring); }
.kb-q { display: flex; flex-direction: column; gap: .15rem; margin-bottom: .4rem; }
.kb-a { font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); opacity: .9; max-height: 9rem; overflow: auto; margin-bottom: .4rem; }

/* ===== Arten-Memory ===== */
.mm-hud { display: flex; justify-content: space-between; gap: .5rem; margin: .2rem 0 .7rem; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mm-hud b { color: var(--text); font-weight: 700; }
.mm-grid { gap: .4rem !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 460px; margin: 0 auto; gap: .5rem; perspective: 900px; transition: opacity .3s var(--ease); }
.mm-grid.loading { opacity: .45; pointer-events: none; }
.mm-card { position: relative; aspect-ratio: 1 / 1.08; padding: 0; border: 0; background: none; cursor: pointer; min-height: 0; -webkit-tap-highlight-color: transparent; }
.mm-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3,.9,.3,1.15); }
.mm-card.up .mm-in { transform: rotateY(180deg); }
.mm-back, .mm-face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.mm-back { display: grid; place-items: center; color: rgba(25,207,210,.55); border: 1px solid rgba(25,207,210,.22);
  background: radial-gradient(120% 80% at 30% 0%, rgba(25,207,210,.16), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px), linear-gradient(160deg, #18222c, #0f151b); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.mm-back svg { width: 54%; opacity: .9; }
.mm-card:not(.up):hover .mm-back { border-color: rgba(25,207,210,.45); }
.mm-face { transform: rotateY(180deg); background: #111820; border: 1px solid var(--border); }
.mm-face img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mm-face .mm-bg { object-fit: cover; filter: blur(10px) brightness(.55) saturate(1.1); transform: scale(1.25); }
.mm-face .mm-ph { object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.mm-face.name { display: flex; flex-direction: column; justify-content: center; gap: .25rem; padding: .4rem .35rem; text-align: left; border-top: 2px solid var(--primary); background: linear-gradient(180deg, rgba(25,207,210,.08), #111820 55%); }
.mm-face.name b { font-size: .8rem; line-height: 1.2; font-weight: 700; color: var(--text); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.mm-face.name small { font-size: .6rem; line-height: 1.2; font-style: italic; color: var(--muted); overflow-wrap: normal; word-break: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-card.hit .mm-face { border-color: rgba(61,220,151,.75); box-shadow: 0 0 0 1px rgba(61,220,151,.4), 0 0 18px rgba(61,220,151,.25); }
.mm-card.hit .mm-in { animation: mmHit .45s var(--ease); }
.mm-card.miss .mm-in { animation: mmMiss .4s ease; }
.mm-grid.won .mm-card .mm-in { animation: mmWave .7s var(--ease) both; }
.mm-grid.won .mm-card:nth-child(4n+2) .mm-in { animation-delay: .06s; } .mm-grid.won .mm-card:nth-child(4n+3) .mm-in { animation-delay: .12s; } .mm-grid.won .mm-card:nth-child(4n) .mm-in { animation-delay: .18s; }
@keyframes mmHit { 0% { transform: rotateY(180deg) scale(1); } 45% { transform: rotateY(180deg) scale(1.07); } 100% { transform: rotateY(180deg) scale(1); } }
@keyframes mmMiss { 0%, 100% { transform: rotateY(180deg) translateX(0); } 25% { transform: rotateY(180deg) translateX(-5px); } 75% { transform: rotateY(180deg) translateX(5px); } }
@keyframes mmWave { 0% { transform: rotateY(180deg) translateY(0); } 40% { transform: rotateY(180deg) translateY(-8px); } 100% { transform: rotateY(180deg) translateY(0); } }
.mm-tip { margin: .6rem 0 0; text-align: center; }
.mm-preview { display: flex; gap: .45rem; margin: .4rem 0 .6rem; perspective: 700px; }
.mm-card.mini { width: 54px; flex: none; cursor: default; }
.mm-card.mini .mm-face.name b { font-size: .5rem; }
.mm-preview .mm-card.mini:nth-child(2) .mm-in { animation: mmPeek 3.6s ease-in-out infinite; }
@keyframes mmPeek { 0%, 35% { transform: rotateY(0); } 50%, 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.mm-res-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .3rem 0 .5rem; }
.mm-res-top > div { display: flex; flex-direction: column; align-items: center; padding: .6rem .3rem; border-radius: 12px; background: var(--input); border: 1px solid var(--border); }
.mm-kpi { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mm-res-top small { color: var(--muted); font-size: .72rem; }
.mm-sp-h { margin: .7rem 0 .4rem; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mm-sp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.mm-chip { display: flex; align-items: center; gap: .5rem; padding: .3rem; min-height: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; font-size: .78rem; text-align: left; cursor: pointer; }
.mm-chip:hover { border-color: var(--primary-ring); }
.mm-chip img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.mm-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Algen-Jäger ===== */
.ag-hud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; margin: .2rem 0 .6rem; }
.ag-num { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.ag-num b { font-size: 1.35rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ag-num b.bump { animation: agBump .25s var(--ease); }
.ag-num small, .ag-meter small { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.ag-clock.hot b { color: #ffb44c; }
.ag-meter { display: flex; flex-direction: column; align-items: stretch; }
.ag-meter-bar { height: 8px; border-radius: 6px; background: var(--input); border: 1px solid var(--border); overflow: hidden; }
.ag-meter-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4f9d69, #a3b14a); transition: width .15s linear; }
.ag-meter-bar.hot i { background: linear-gradient(90deg, #a3b14a, #e0703b); }
.ag-meter small { text-align: center; }
@keyframes agBump { 50% { transform: scale(1.25); } }
.ag-tank { --murk: 0; position: relative; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; border-radius: 14px; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background: linear-gradient(180deg, #0d3b4a 0%, #0b2c3a 55%, #0a2230 100%); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), inset 0 -30px 60px rgba(0,0,0,.35); }
.ag-tank::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(70,110,40,var(--murk)); mix-blend-mode: multiply; transition: background .3s; }
.ag-tank::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07) 0 18%, transparent 30% 100%); }
.ag-rays { position: absolute; inset: -20% -10% 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(100deg, transparent 0 40px, rgba(180,240,255,.06) 40px 70px, transparent 70px 120px); animation: agRays 9s ease-in-out infinite alternate; }
@keyframes agRays { from { transform: translateX(-4%) skewX(-3deg); } to { transform: translateX(4%) skewX(3deg); } }
.ag-plants { position: absolute; left: 0; right: 0; bottom: 9%; width: 100%; height: 45%; opacity: .8; pointer-events: none; }
.ag-plants path { transform-origin: bottom; animation: agSway 5s ease-in-out infinite alternate; }
.ag-plants path:nth-child(2n) { animation-duration: 6.5s; }
@keyframes agSway { from { transform: skewX(-2deg); } to { transform: skewX(2deg); } }
.ag-sand { position: absolute; left: 0; right: 0; bottom: 0; height: 11%; pointer-events: none; background: linear-gradient(180deg, #3b3a30, #26261f); box-shadow: 0 -6px 14px rgba(0,0,0,.25); }
.ag-bub i { position: absolute; bottom: 8%; width: 5px; height: 5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: agBub 6s linear infinite; pointer-events: none; }
.ag-bub i:nth-child(1) { left: 18%; } .ag-bub i:nth-child(2) { left: 22%; animation-delay: 1.4s; width: 4px; height: 4px; } .ag-bub i:nth-child(3) { left: 76%; animation-delay: 2.6s; } .ag-bub i:nth-child(4) { left: 80%; animation-delay: 4s; width: 3px; height: 3px; }
@keyframes agBub { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-260px); opacity: 0; } }
.ag-layer { position: absolute; inset: 0; z-index: 2; }
.alg { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%) rotate(var(--rot)); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; cursor: pointer; animation: agIn .35s var(--ease); }
.alg.green { background: radial-gradient(circle at 30% 38%, rgba(150,200,105,.55) 0 7%, transparent 10%), radial-gradient(circle at 64% 30%, rgba(150,200,105,.5) 0 6%, transparent 9%), radial-gradient(circle at 58% 66%, rgba(140,195,95,.5) 0 8%, transparent 11%), radial-gradient(circle at 36% 68%, rgba(140,195,95,.45) 0 5%, transparent 8%), radial-gradient(circle at 48% 48%, rgba(104,164,68,.9), rgba(82,142,58,.65) 42%, rgba(70,130,50,.28) 62%, transparent 72%); filter: blur(.4px); }
.alg.diatom { background: repeating-radial-gradient(circle at 40% 40%, rgba(255,230,190,.08) 0 1px, transparent 1px 3px), radial-gradient(circle at 50% 50%, rgba(168,128,72,.85), rgba(140,104,58,.6) 48%, rgba(120,90,50,.2) 66%, transparent 72%); }
.alg.beard { border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(25,30,28,.95) 0 6deg, rgba(55,65,58,.75) 6deg 11deg); -webkit-mask: radial-gradient(circle, #000 52%, transparent 72%); mask: radial-gradient(circle, #000 52%, transparent 72%); }
.alg.hit { animation: agHit .25s var(--ease); }
.alg.gone { animation: agGone .38s var(--ease) forwards; pointer-events: none; }
@keyframes agIn { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(.3); } }
@keyframes agHit { 50% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(.8); filter: brightness(1.6); } }
@keyframes agGone { to { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--rot) + 40deg)) scale(.2); filter: blur(3px); } }
.ag-p { position: absolute; width: 5px; height: 5px; border-radius: 50%; pointer-events: none; animation: agP .5s ease-out forwards; }
.ag-p.green { background: #8bc163; } .ag-p.diatom { background: #b48c52; } .ag-p.beard { background: #4a554d; }
@keyframes agP { from { transform: translate(-50%, -50%); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; } }
.ag-plus { position: absolute; transform: translate(-50%, -50%); font-size: .8rem; font-weight: 800; color: #d8ffe9; text-shadow: 0 1px 3px rgba(0,0,0,.5); pointer-events: none; animation: agPlus .7s ease-out forwards; }
@keyframes agPlus { to { transform: translate(-50%, -150%); opacity: 0; } }
.ag-count { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font-size: 3.4rem; font-weight: 800; color: rgba(255,255,255,.9); text-shadow: 0 4px 24px rgba(0,0,0,.4); pointer-events: none; }
.ag-count.pop { animation: agCount .6s var(--ease); }
@keyframes agCount { from { transform: scale(1.5); opacity: 0; } }
.ag-over { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; text-align: center; padding: 1rem;
  background: radial-gradient(circle, rgba(8,20,28,.55), rgba(8,20,28,.82)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: agFade .4s var(--ease); }
.ag-over.idle { background: linear-gradient(180deg, transparent 40%, rgba(8,20,28,.6)); backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: flex-end; }
.ag-over-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); font-weight: 700; }
.ag-over-n { font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.ag-over small { color: rgba(255,255,255,.8); }
@keyframes agFade { from { opacity: 0; } }
.ag-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; font-size: .75rem; color: rgba(255,255,255,.85); }
.ag-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg.green { background: radial-gradient(circle, #7eba54 40%, transparent 72%); } .lg.diatom { background: radial-gradient(circle, #a88048 40%, transparent 72%); }
.lg.beard { background: repeating-conic-gradient(#1b201d 0 20deg, #4a554d 20deg 40deg); -webkit-mask: radial-gradient(circle, #000 50%, transparent 72%); mask: radial-gradient(circle, #000 50%, transparent 72%); }
.ag-tank.won { box-shadow: 0 0 0 2px rgba(61,220,151,.5), 0 0 30px rgba(61,220,151,.2); transition: box-shadow .4s; }
.ag-tank.lost .ag-layer { animation: agLost .8s ease forwards; }
@keyframes agLost { to { filter: saturate(1.4) brightness(.8); } }
@media (prefers-reduced-motion: reduce) { .ag-rays, .ag-plants path, .ag-bub i, .mm-preview .mm-in { animation: none !important; } .mm-in { transition-duration: .01s; } }

/* Algen-Jäger: Fische, Leben, Schlussminute */
.ag-fish { position: absolute; left: 0; top: 0; z-index: 3; cursor: pointer; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); will-change: transform; }
.ag-fish svg { display: block; width: 100%; height: auto; }
.ag-fish.scared { filter: drop-shadow(0 0 6px rgba(255,93,108,.9)); }
.ag-meter-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .2rem; }
.ag-meter-foot small { margin-top: 0; }
.ag-lives { display: inline-flex; gap: 3px; color: #3ff0ff; }
.ag-lives .gone { display: inline-flex; gap: 3px; color: var(--border); }
.agf { width: 16px; height: 8px; display: block; }
.lg-fish { display: inline-flex; align-items: center; gap: .35rem; color: #ffb3bb; }
.lg-fish .agf { color: #3ff0ff; width: 18px; height: 9px; }
.ag-plus.bad { color: #ff8e98; }
.ag-tank.ouch { animation: agOuch .45s ease; }
@keyframes agOuch { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); } 30% { box-shadow: inset 0 0 0 3px rgba(255,93,108,.85), 0 0 24px rgba(255,93,108,.35); transform: translateX(-3px); } 60% { transform: translateX(3px); } }
.ag-tank.final { border-color: rgba(255,180,76,.45); }
.ag-tank.final .ag-rays { animation-duration: 3s; opacity: .35; }
.ag-clock.hot b { animation: agPulse 1s ease-in-out infinite; }
@keyframes agPulse { 50% { opacity: .55; } }


/* ===== Joker ===== */
.jk-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; align-items: center; }
.jk-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 0; padding: .35rem .6rem .35rem .4rem; border-radius: 999px; border: 1px solid var(--primary-ring); background: linear-gradient(135deg, rgba(25,207,210,.14), rgba(20,26,33,.4)); color: var(--text); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.jk-btn:hover:not(:disabled) { box-shadow: 0 0 14px rgba(25,207,210,.3); transform: translateY(-1px); }
.jk-btn:disabled { opacity: .4; cursor: default; }
.jk-btn.used { opacity: .55; border-color: rgba(61,220,151,.5); }
.jk-ico { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); font-size: .85rem; }
.jk-n { font-variant-numeric: tabular-nums; color: var(--primary-text); font-weight: 800; }
.jk-shop { border: 0; background: none; color: var(--primary-text); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; padding: .2rem .3rem; min-height: 0; }
.jk-have { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .5rem 0 0; }
.jk-own { font-size: .72rem; color: var(--muted); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.pl-opt.struck { opacity: .35; text-decoration: line-through; text-decoration-color: #ff5d6c; text-decoration-thickness: 2px; animation: jkStrike .4s var(--ease); }
@keyframes jkStrike { from { opacity: 1; transform: translateX(-4px); } }
.mm-card.glow .mm-back { border-color: #ffd36b; box-shadow: 0 0 0 2px rgba(255,211,107,.7), 0 0 22px rgba(255,211,107,.45); animation: jkGlow .65s ease-in-out 4; }
@keyframes jkGlow { 50% { box-shadow: 0 0 0 1px rgba(255,211,107,.3), 0 0 6px rgba(255,211,107,.2); } }
.mm-card.xray .mm-face { box-shadow: inset 0 0 0 2px rgba(120,200,255,.6); }

/* ===== Algen-Jäger: Ziel, Stufen, Joker ===== */
.ag-goal { display: flex; gap: .7rem; align-items: center; margin: .2rem 0 .7rem; padding: .6rem .75rem; border-radius: 12px; border: 1px solid rgba(255,211,107,.35); background: linear-gradient(135deg, rgba(255,211,107,.12), rgba(20,26,33,.2)); }
.ag-goal > span { font-size: 1.5rem; }
.ag-goal div { display: flex; flex-direction: column; gap: .1rem; }
.ag-goal small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.ag-lvl { font-size: .74rem; font-weight: 800; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 999px; background: var(--input); border: 1px solid var(--border); color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-lvl.up { animation: agBump .4s var(--ease); }
.ag-lvl.l1 { color: #b8e07a; border-color: rgba(184,224,122,.4); } .ag-lvl.l2 { color: #ffd36b; border-color: rgba(255,211,107,.45); }
.ag-lvl.l3, .ag-lvl.l4 { color: #ffb44c; border-color: rgba(255,180,76,.55); } .ag-lvl.l5, .ag-lvl.l6 { color: #ff6b6b; border-color: rgba(255,107,107,.6); background: rgba(255,93,108,.1); }
.ag-tank[data-lvl="3"], .ag-tank[data-lvl="4"] { border-color: rgba(255,180,76,.45); }
.ag-tank[data-lvl="5"], .ag-tank[data-lvl="6"] { border-color: rgba(255,93,108,.55); box-shadow: 0 0 20px rgba(255,93,108,.15), inset 0 -30px 60px rgba(0,0,0,.35); }
.ag-tank[data-lvl="5"] .ag-rays, .ag-tank[data-lvl="6"] .ag-rays { animation-duration: 2.5s; }
.ag-banner { position: absolute; left: 50%; top: 14%; z-index: 5; transform: translate(-50%, -10px); display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem .9rem; border-radius: 12px; background: rgba(8,20,28,.78); border: 1px solid rgba(25,207,210,.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; text-align: center; pointer-events: none; opacity: 0; white-space: nowrap; }
.ag-banner b { font-size: .95rem; } .ag-banner span { font-size: .72rem; color: rgba(255,255,255,.8); }
.ag-banner.show { animation: agBanner 2.2s var(--ease) forwards; }
.ag-banner.hard { border-color: rgba(255,93,108,.6); } .ag-banner.hard b { color: #ff9aa3; }
.ag-banner.cool { border-color: rgba(120,200,255,.6); }
@keyframes agBanner { 0% { opacity: 0; transform: translate(-50%, -10px) scale(.95); } 12%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.ag-tank.cool::after { background: rgba(110,180,255,.16); mix-blend-mode: screen; }
.ag-magnet { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; filter: drop-shadow(0 0 10px rgba(63,240,255,.55)); animation: agIn .3s var(--ease); }
.ag-magnet svg, .ag-pleco svg { display: block; width: 100%; height: auto; }
.ag-magnet.out { opacity: 0; transition: opacity .35s; }
.ag-pleco { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.ag-over.win { background: radial-gradient(circle, rgba(40,32,6,.55), rgba(8,20,28,.85)); }
.ag-over.win .ag-over-k { color: #ffd36b; }
.ag-over-c { font-size: 1.1rem; color: #ffd36b; margin-top: .2rem; }

/* ================= Festtage ================= */
/* --- Rahmen --- */
.fr-tannenzweig { --fr: radial-gradient(circle at 18% 18%, #ef4444 0 7%, transparent 8%), radial-gradient(circle at 82% 26%, #facc15 0 7%, transparent 8%), radial-gradient(circle at 26% 84%, #facc15 0 6%, transparent 7%), radial-gradient(circle at 84% 78%, #ef4444 0 7%, transparent 8%), radial-gradient(circle at 50% 4%, #fde68a 0 5%, transparent 6%), conic-gradient(#14532d, #166534, #15803d, #14532d, #166534, #15803d, #14532d); --frc: #22c55e; }
.fr-zuckerstange { --fr: repeating-conic-gradient(#dc2626 0 15deg, #fff 15deg 30deg); --frc: #ef4444; }
.fr-lichterkette { --fr: repeating-conic-gradient(#ef4444 0 15deg, #1f2937 15deg 30deg, #facc15 30deg 45deg, #1f2937 45deg 60deg, #3b82f6 60deg 75deg, #1f2937 75deg 90deg, #22c55e 90deg 105deg, #1f2937 105deg 120deg); --frc: #facc15; animation: frspin 6s steps(24) infinite; }
.fr-lichterkette > * { animation: frspin 6s steps(24) infinite reverse; }
.fr-schneekugel { --fr: conic-gradient(#e0f2fe, #ffffff, #bae6fd, #f0f9ff, #7dd3fc, #ffffff, #e0f2fe); --frc: #e0f2fe; animation: frPulse 3s ease-in-out infinite; }
.fr-weihnachtsstern { --fr: conic-gradient(#fde68a, #f59e0b, #fff7d6, #b45309, #fde68a, #fbbf24, #fffbeb, #d97706, #fde68a); --frc: #fbbf24; animation: frspin 5s linear infinite, frPulse 2s ease-in-out infinite; }
.fr-weihnachtsstern > * { animation: frspin 5s linear infinite reverse; }
.fr-osterei { --fr: conic-gradient(#fbcfe8, #bfdbfe, #bbf7d0, #fef08a, #ddd6fe, #fbcfe8); --frc: #f9a8d4; }
.fr-fruehling { --fr: radial-gradient(circle at 20% 20%, #fff 0 6%, transparent 7%), radial-gradient(circle at 80% 70%, #fff 0 6%, transparent 7%), conic-gradient(#fbcfe8, #f9a8d4, #fdf2f8, #f472b6, #fbcfe8); --frc: #f472b6; animation: frPulse 2.6s ease-in-out infinite; }
.fr-kuerbis { --fr: repeating-conic-gradient(#f97316 0 20deg, #9a3412 20deg 24deg); --frc: #f97316; }
.fr-geist { --fr: conic-gradient(#2e1065, #a855f7, #e9d5ff, #7c3aed, #2e1065); --frc: #a855f7; animation: frPulse 2.2s ease-in-out infinite; }
.fr-wunderkerze { --fr: repeating-conic-gradient(#fffbeb 0 6deg, #f59e0b 6deg 12deg, #fde68a 12deg 18deg, #b45309 18deg 24deg); --frc: #fbbf24; animation: frspin 2.4s linear infinite; }
.fr-wunderkerze > * { animation: frspin 2.4s linear infinite reverse; }
.fr-sekt { --fr: radial-gradient(circle at 30% 20%, #fff 0 4%, transparent 5%), radial-gradient(circle at 70% 80%, #fff 0 4%, transparent 5%), conic-gradient(#fde68a, #fef9c3, #eab308, #fffbeb, #ca8a04, #fde68a); --frc: #eab308; }
/* --- Banner --- */
.bn-winternacht { background: radial-gradient(ellipse 60% 30% at 20% 100%, #e2e8f0 0 60%, transparent 61%), radial-gradient(ellipse 70% 35% at 85% 105%, #f1f5f9 0 60%, transparent 61%), linear-gradient(180deg, #0b1026 0%, #1e293b 70%, #334155 100%); }
.bn-winternacht::before, .bn-fruehling::before, .bn-mitternacht::before { content: ''; position: absolute; inset: -100% 0 0; background-image: radial-gradient(2px 2px at 10% 10%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 30%, #fff, transparent), radial-gradient(2.5px 2.5px at 55% 15%, #fff, transparent), radial-gradient(1.5px 1.5px at 75% 40%, #fff, transparent), radial-gradient(2px 2px at 90% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 20% 60%, #fff, transparent), radial-gradient(2px 2px at 65% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 85%, #fff, transparent); background-size: 100% 50%; animation: bnSnow 9s linear infinite; }
@keyframes bnSnow { to { transform: translateY(50%); } }
.bn-weihnachtsmarkt { background: radial-gradient(circle at 15% 35%, rgba(253,224,71,.55) 0 4%, transparent 9%), radial-gradient(circle at 35% 20%, rgba(251,146,60,.5) 0 3%, transparent 8%), radial-gradient(circle at 60% 40%, rgba(253,224,71,.45) 0 5%, transparent 11%), radial-gradient(circle at 82% 25%, rgba(248,113,113,.5) 0 3%, transparent 8%), radial-gradient(circle at 90% 60%, rgba(253,224,71,.4) 0 4%, transparent 10%), linear-gradient(160deg, #450a0a, #7f1d1d 55%, #422006); }
.bn-kamin { background: linear-gradient(180deg, #1c1008, #2a160a 60%, #120a05); }
.bn-kamin::before { content: ''; position: absolute; left: 20%; right: 20%; bottom: -20%; height: 90%; background: radial-gradient(ellipse at 50% 100%, #fde047, #f97316 35%, #b91c1c 60%, transparent 72%); filter: blur(8px); animation: bnFlicker 1.6s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes bnFlicker { 0% { transform: scaleY(.92) scaleX(1); opacity: .85; } 50% { transform: scaleY(1.06) scaleX(.96); opacity: 1; } 100% { transform: scaleY(.97) scaleX(1.03); opacity: .9; } }
.bn-osterwiese { background: radial-gradient(ellipse 5% 8% at 20% 82%, #f9a8d4 0 95%, transparent 100%), radial-gradient(ellipse 5% 8% at 38% 86%, #93c5fd 0 95%, transparent 100%), radial-gradient(ellipse 5% 8% at 63% 84%, #fde047 0 95%, transparent 100%), radial-gradient(ellipse 5% 8% at 82% 87%, #c4b5fd 0 95%, transparent 100%), linear-gradient(180deg, #bae6fd 0%, #e0f2fe 55%, #65a30d 56%, #3f6212 100%); }
.bn-fruehling { background: linear-gradient(180deg, #fde68a, #fbcfe8 50%, #c4b5fd); }
.bn-fruehling::before { background-image: radial-gradient(3px 2px at 10% 10%, #fff, transparent), radial-gradient(3px 2px at 30% 30%, #fbcfe8, transparent), radial-gradient(3px 2px at 55% 15%, #fff, transparent), radial-gradient(3px 2px at 75% 40%, #f9a8d4, transparent), radial-gradient(3px 2px at 90% 20%, #fff, transparent), radial-gradient(3px 2px at 20% 60%, #f9a8d4, transparent); animation-duration: 12s; }
.bn-spukschloss { background: radial-gradient(circle at 78% 30%, #fef9c3 0 9%, rgba(254,249,195,.25) 11%, transparent 18%), linear-gradient(180deg, #1e1b4b, #312e81 55%, #0f0a1e); }
.bn-spukschloss::after { content: '🦇   🦇      🦇'; position: absolute; left: 12%; top: 18%; font-size: 1rem; letter-spacing: .2em; opacity: .75; filter: grayscale(1) brightness(.3); animation: bnBats 7s ease-in-out infinite alternate; }
@keyframes bnBats { to { transform: translate(18px, -6px); } }
.bn-nebel { background: linear-gradient(120deg, #1e1b4b, #581c87, #6b21a8, #312e81, #1e1b4b); background-size: 300% 300%; animation: aurora 10s ease infinite; }
.bn-feuerwerk { background: radial-gradient(circle at 25% 30%, rgba(250,204,21,.9) 0 2%, rgba(250,204,21,.3) 6%, transparent 13%), radial-gradient(circle at 70% 25%, rgba(244,114,182,.9) 0 2%, rgba(244,114,182,.3) 6%, transparent 14%), radial-gradient(circle at 50% 55%, rgba(56,189,248,.8) 0 2%, rgba(56,189,248,.25) 6%, transparent 12%), linear-gradient(180deg, #020617, #0f172a 70%, #1e293b); animation: bnBurst 2.4s ease-in-out infinite; }
@keyframes bnBurst { 50% { filter: brightness(1.35) saturate(1.2); } }
.bn-mitternacht { background: linear-gradient(180deg, #0b1026, #1e3a8a); }
.bn-mitternacht::before { background-image: radial-gradient(3px 3px at 10% 10%, #facc15, transparent), radial-gradient(2px 2px at 30% 30%, #fde68a, transparent), radial-gradient(3px 3px at 55% 15%, #fbbf24, transparent), radial-gradient(2px 2px at 75% 40%, #fff7d6, transparent), radial-gradient(3px 3px at 90% 20%, #facc15, transparent), radial-gradient(2px 2px at 20% 60%, #fde68a, transparent), radial-gradient(3px 3px at 65% 70%, #fbbf24, transparent); animation-duration: 14s; }
.bn-eisblumen { background: repeating-conic-gradient(from 0deg at 25% 40%, rgba(255,255,255,.18) 0 4deg, transparent 4deg 30deg), repeating-conic-gradient(from 10deg at 75% 60%, rgba(255,255,255,.15) 0 3deg, transparent 3deg 24deg), linear-gradient(160deg, #e0f2fe, #7dd3fc 50%, #0369a1); }
@media (prefers-reduced-motion: reduce) { .fr-lichterkette, .fr-lichterkette > *, .fr-schneekugel, .fr-weihnachtsstern, .fr-weihnachtsstern > *, .fr-fruehling, .fr-geist, .fr-wunderkerze, .fr-wunderkerze > *, .bn-winternacht::before, .bn-fruehling::before, .bn-mitternacht::before, .bn-kamin::before, .bn-spukschloss::after, .bn-nebel, .bn-feuerwerk { animation: none !important; } }
.sea-tag { display: inline-block; margin-top: .25rem; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--muted); width: max-content; }
.sea-tag.advent { color: #fbbf24; border-color: rgba(251,191,36,.45); }

/* --- Kopfleiste schmücken --- */
body.sea-xmas .topbar::after, body.sea-easter .topbar::after, body.sea-halloween .topbar::after, body.sea-newyear .topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 8px; pointer-events: none; z-index: 2; }
body.sea-xmas .topbar::after { background: radial-gradient(circle at 6px 4px, #ef4444 0 2.6px, transparent 3.2px) 0 0 / 48px 8px repeat-x, radial-gradient(circle at 18px 4px, #facc15 0 2.6px, transparent 3.2px) 0 0 / 48px 8px repeat-x, radial-gradient(circle at 30px 4px, #22c55e 0 2.6px, transparent 3.2px) 0 0 / 48px 8px repeat-x, radial-gradient(circle at 42px 4px, #3b82f6 0 2.6px, transparent 3.2px) 0 0 / 48px 8px repeat-x; animation: seaLights 1.4s steps(2) infinite; filter: drop-shadow(0 0 3px rgba(250,204,21,.6)); }
@keyframes seaLights { 50% { opacity: .55; filter: drop-shadow(0 0 1px rgba(250,204,21,.3)); } }
body.sea-easter .topbar::after { height: 3px; bottom: -1px; background: linear-gradient(90deg, #fbcfe8, #bfdbfe, #bbf7d0, #fef08a, #ddd6fe, #fbcfe8); }
body.sea-halloween .topbar::after { height: 3px; bottom: -1px; background: repeating-linear-gradient(90deg, #f97316 0 18px, #7c3aed 18px 36px); box-shadow: 0 0 8px rgba(249,115,22,.5); }
body.sea-newyear .topbar::after { height: 3px; bottom: -1px; background: linear-gradient(90deg, transparent, #facc15, #fff7d6, #facc15, transparent); background-size: 200% 100%; animation: seaShine 3s linear infinite; }
@keyframes seaShine { to { background-position: -200% 0; } }
.sea-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }
@media (prefers-reduced-motion: reduce) { body[class*="sea-"] .topbar::after { animation: none; } }

/* --- Feuerwerk --- */
.sea-fw { position: fixed; inset: 0; z-index: 9000; pointer-events: none; background: radial-gradient(ellipse at 50% 120%, rgba(8,12,30,.35), rgba(2,4,14,.55)); animation: agFade .6s ease; }
.sea-fw.out { opacity: 0; transition: opacity .5s; }
.sea-fw canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sea-fw-txt { position: absolute; left: 0; right: 0; top: 18%; text-align: center; font-size: clamp(1.8rem, 7vw, 3.4rem); font-weight: 800; color: #fff7d6; text-shadow: 0 0 24px rgba(250,204,21,.7), 0 2px 6px rgba(0,0,0,.5); letter-spacing: .02em; animation: seaTxt 3s ease-in-out infinite; }
@keyframes seaTxt { 50% { transform: scale(1.05); text-shadow: 0 0 40px rgba(250,204,21,.9), 0 2px 6px rgba(0,0,0,.5); } }
.sea-fw-x { pointer-events: auto; position: absolute; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(8,12,30,.7); color: #fff; font: inherit; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* --- Sammel-Event --- */
.sea-find { position: fixed; z-index: 45; width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0; min-height: 0; font-size: 2rem; line-height: 1; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%); cursor: pointer; animation: seaPop .5s cubic-bezier(.3,1.6,.5,1), seaWob 1.8s ease-in-out .5s infinite; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.sea-find.got { animation: seaGot .55s ease forwards; } .sea-find.out { opacity: 0; transform: scale(.4); transition: all .4s; }
@keyframes seaPop { from { transform: scale(0) rotate(-30deg); } }
@keyframes seaWob { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-4px); } }
@keyframes seaGot { 40% { transform: scale(1.5); } 100% { transform: scale(0) translateY(-40px); opacity: 0; } }

/* --- Spiele: Gruß + Adventskalender --- */
.sea-card[hidden] { display: none; }
.sea-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; padding: .2rem 0 .1rem; }
.sea-bar > div { flex: 1 1 60%; display: flex; flex-direction: column; gap: .1rem; } .sea-bar small { color: var(--muted); font-size: .78rem; }
.sea-bar-i { font-size: 1.8rem; }
.sea-bar .chip { flex: none; }
.adv-card-wrap .sea-bar { padding-bottom: .7rem; margin-bottom: .7rem; border-bottom: 1px solid var(--border); }
.adv-card-wrap { background: radial-gradient(120% 80% at 50% 0%, rgba(185,28,28,.18), transparent 60%), var(--card); border-color: rgba(239,68,68,.25); }
.adv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }
.adv-head h3 { margin: 0; } .adv-head small { color: var(--muted); font-size: .78rem; }
.adv-test { color: #fbbf24; }
.adv-prog { flex: 0 0 34%; height: 6px; border-radius: 6px; background: var(--input); overflow: hidden; border: 1px solid var(--border); }
.adv-prog i { display: block; height: 100%; background: linear-gradient(90deg, #dc2626, #facc15); }
.adv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; perspective: 700px; }
@media (max-width: 340px) { .adv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .adv-leaf b { font-size: .95rem; } .adv-in { font-size: .95rem; } }
.adv-door { position: relative; aspect-ratio: 1 / 1.05; border: 0; padding: 0; min-height: 0; background: none; cursor: default; }
.adv-in { position: absolute; inset: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: .1rem; font-size: 1.15rem; background: radial-gradient(circle at 50% 40%, rgba(250,204,21,.25), rgba(15,10,10,.9) 70%); box-shadow: inset 0 2px 8px rgba(0,0,0,.6); }
.adv-in i { font-style: normal; }
.adv-leaf { position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center; transform-origin: left center; transition: transform .7s cubic-bezier(.3,.9,.3,1.05), box-shadow .3s; backface-visibility: hidden;
  background: radial-gradient(120% 90% at 30% 0%, rgba(255,255,255,.12), transparent 50%), linear-gradient(160deg, #991b1b, #7f1d1d 60%, #5c1414); border: 1px solid rgba(250,204,21,.25); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.adv-leaf b { font-size: 1.15rem; font-weight: 800; color: #fde68a; text-shadow: 0 1px 2px rgba(0,0,0,.5); font-variant-numeric: tabular-nums; }
.adv-leaf em { position: absolute; top: 3px; right: 5px; font-style: normal; font-size: .7rem; color: #facc15; }
.adv-door.sp .adv-leaf { background: radial-gradient(120% 90% at 30% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(160deg, #a16207, #854d0e 60%, #713f12); border-color: rgba(253,224,71,.6); }
.adv-door:nth-child(3n+2):not(.sp) .adv-leaf { background: radial-gradient(120% 90% at 30% 0%, rgba(255,255,255,.12), transparent 50%), linear-gradient(160deg, #166534, #14532d 60%, #0f3d22); }
.adv-door.can { cursor: pointer; }
.adv-door.can .adv-leaf { box-shadow: 0 0 0 1px rgba(253,224,71,.45), 0 4px 12px rgba(0,0,0,.4); }
.adv-door.can:hover .adv-leaf { transform: rotateY(-14deg); }
.adv-door.today .adv-leaf { animation: advGlow 1.8s ease-in-out infinite; }
@keyframes advGlow { 50% { box-shadow: 0 0 0 2px #fde68a, 0 0 18px rgba(253,224,71,.6); } }
.adv-door:not(.can):not(.open) .adv-leaf { filter: saturate(.55) brightness(.75); }
.adv-door.open .adv-leaf, .adv-door.opening .adv-leaf { transform: rotateY(-108deg); box-shadow: none; }
.adv-door.open .adv-leaf { opacity: .0; }
.adv-foot { margin: .7rem 0 0; }
.adv-reveal { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; padding: 1rem; background: rgba(4,8,14,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: agFade .3s ease; }
.adv-card { position: relative; width: min(340px, 100%); padding: 1.6rem 1.2rem 1.2rem; border-radius: 18px; text-align: center; display: flex; flex-direction: column; gap: .55rem; align-items: stretch;
  background: radial-gradient(120% 70% at 50% 0%, rgba(250,204,21,.22), transparent 60%), linear-gradient(170deg, #3b0d0d, #1a0b0b); border: 1px solid rgba(250,204,21,.4); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(250,204,21,.15); animation: advIn .5s cubic-bezier(.3,1.4,.5,1); }
@keyframes advIn { from { transform: scale(.7) translateY(20px); opacity: 0; } }
.adv-num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #3b0d0d; background: radial-gradient(circle at 35% 30%, #fff7d6, #facc15 60%, #b45309); box-shadow: 0 4px 14px rgba(250,204,21,.5); }
.adv-gift { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(250,204,21,.22); text-align: left; animation: advGift .5s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(.35s + var(--d)); color: #fff; }
.adv-gift span { font-size: 1.6rem; } .adv-gift b { font-size: .92rem; }
.adv-gift.sub { margin-left: 1.4rem; padding: .4rem .7rem; } .adv-gift.sub span { font-size: 1.2rem; } .adv-gift.sub b { font-weight: 600; font-size: .85rem; }
.adv-gift.chest span { animation: advChest .6s ease-in-out 2; animation-delay: calc(.4s + var(--d)); }
@keyframes advGift { from { transform: translateY(14px) scale(.9); opacity: 0; } }
@keyframes advChest { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }
.adv-card .btn { margin-top: .4rem; }
/* --- Admin --- */
.sea-tg { display: flex; gap: .6rem; align-items: flex-start; margin: .7rem 0; } .sea-tg input { flex: none; margin-top: .25rem; }
.sea-live { color: #fbbf24; font-weight: 700; }
.sea-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; margin-top: .7rem; }
.sea-it { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: 12px; background: var(--input); border: 1px solid var(--border); }
.sea-it > div { display: flex; flex-direction: column; min-width: 0; } .sea-it b { font-size: .85rem; } .sea-it small { font-size: .72rem; }
.adv-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .35rem; }
.adv-plan > div { display: flex; gap: .55rem; align-items: center; padding: .4rem .55rem; border-radius: 10px; background: var(--input); border: 1px solid var(--border); font-size: .82rem; }
.adv-plan > div b { min-width: 1.6rem; height: 1.6rem; border-radius: 6px; display: grid; place-items: center; background: #7f1d1d; color: #fde68a; font-size: .78rem; }
.adv-plan > div.sp { border-color: rgba(250,204,21,.45); } .adv-plan > div.sp b { background: #a16207; }

.sea-teaser { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--text); border: 1px solid rgba(250,204,21,.4); background: radial-gradient(120% 120% at 0% 0%, rgba(220,38,38,.28), transparent 60%), linear-gradient(135deg, rgba(22,101,52,.25), var(--card)); }
.sea-teaser > span { font-size: 2rem; animation: seaWob 2.4s ease-in-out infinite; }
.sea-teaser > div { flex: 1; display: flex; flex-direction: column; } .sea-teaser small { color: var(--muted); }
.sea-teaser > em { font-style: normal; font-size: 1.6rem; color: #fde68a; }
.sea-nudge { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(420px, calc(100vw - 32px)); display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, rgba(220,38,38,.45), transparent 60%), linear-gradient(135deg, #3b0d0d, #14281b); border: 1px solid rgba(250,204,21,.45); box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: seaNudgeIn .5s cubic-bezier(.3,1.4,.5,1); }
.sea-nudge.out { opacity: 0; transform: translate(-50%, 20px); transition: all .4s; }
.sea-nudge > div { flex: 1; display: flex; flex-direction: column; min-width: 0; } .sea-nudge small { color: rgba(255,255,255,.75); }
.sea-nudge-i { font-size: 1.8rem; animation: seaWob 2s ease-in-out infinite; }
.sea-nudge-x { border: 0; background: none; color: rgba(255,255,255,.7); font-size: 1rem; cursor: pointer; padding: .2rem; min-height: 0; }
@keyframes seaNudgeIn { from { opacity: 0; transform: translate(-50%, 30px); } }

/* ===== Aquarium-Kategorien ===== */
.aq-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0 .2rem; }
.aq-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--input); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.aq-tag.st { color: var(--muted); }
.aq-tag.grp { border-color: var(--primary-ring); color: var(--primary-text); }
.aq-tag.p-zucht, .aq-tag.p-aufzucht { border-color: rgba(250,204,21,.45); background: rgba(250,204,21,.08); }
.aq-tag.p-quarantaene { border-color: rgba(255,93,108,.45); background: rgba(255,93,108,.08); }
.aq-tag.p-garnelen { border-color: rgba(251,113,133,.4); }
.aq-tag.p-riff { border-color: rgba(56,189,248,.45); background: rgba(56,189,248,.08); }
.aq-tag.p-pflanzen, .aq-tag.p-gesellschaft { border-color: rgba(61,220,151,.4); }
.aq-filter { margin: 0 0 .9rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
.aq-filter::-webkit-scrollbar { display: none; }
.aq-filter .chip { flex: none; } .aq-filter .chip small { opacity: .65; margin-left: .15rem; }
.aq-grp-h { display: flex; align-items: center; gap: .5rem; margin: 1.1rem 0 .6rem; padding: .45rem .5rem .45rem .45rem; border-radius: 16px; border: 1px solid var(--primary-ring); background: linear-gradient(135deg, rgba(25,207,210,.12), var(--card)); }
.aq-grp-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .3rem .4rem; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 0; }
.aq-grp-h.solo { border: 0; background: none; padding: 0 .1rem; justify-content: space-between; }
.aq-grp-h.solo h3 { margin: 0; font-size: 1rem; color: var(--muted); }
.aq-grp-i { font-size: 1.5rem; } .aq-grp-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.aq-grp-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-grp-t small { color: var(--muted); font-size: .76rem; } .aq-grp-c { font-size: 1.05rem; color: var(--muted); }
.aq-grp-add { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--primary-ring); background: rgba(25,207,210,.14); color: var(--primary-text); font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.aq-vt { flex: none; display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--input); border: 1px solid var(--border); }
.aq-vt button { width: 32px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.aq-vt button svg { width: 14px; height: 14px; fill: currentColor; }
.aq-vt button.on { background: var(--primary); color: var(--primary-ink); box-shadow: 0 0 10px rgba(25,207,210,.35); }
.aq-solo-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .7rem; }
/* Kacheln */
.aq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .55rem; margin-bottom: 1rem; }
.aq-tile { position: relative; display: flex; flex-direction: column; gap: .1rem; padding: .35rem .35rem .55rem; min-height: 0; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--ease), border-color .15s, box-shadow .15s; animation: aqtIn .35s var(--ease) both; }
.aq-tile:hover { border-color: var(--primary-ring); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.aq-tile:active { transform: scale(.97); }
.aq-tile.sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 0 16px rgba(25,207,210,.25); }
.aqt-th { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .78; border-radius: 10px; overflow: hidden; margin-bottom: .3rem;
  background: radial-gradient(90% 90% at 30% 20%, rgba(25,207,210,.22), transparent 60%), linear-gradient(160deg, #13303a, #0d1a22); }
.aq-tile.p-zucht .aqt-th, .aq-tile.p-aufzucht .aqt-th { background: radial-gradient(90% 90% at 30% 20%, rgba(250,204,21,.22), transparent 60%), linear-gradient(160deg, #2c2614, #15130b); }
.aq-tile.p-quarantaene .aqt-th { background: radial-gradient(90% 90% at 30% 20%, rgba(255,93,108,.2), transparent 60%), linear-gradient(160deg, #2c171b, #140c0e); }
.aq-tile.p-garnelen .aqt-th { background: radial-gradient(90% 90% at 30% 20%, rgba(251,113,133,.22), transparent 60%), linear-gradient(160deg, #2a1820, #140c10); }
.aq-tile.p-riff .aqt-th { background: radial-gradient(90% 90% at 30% 20%, rgba(56,189,248,.25), transparent 60%), linear-gradient(160deg, #0f2740, #0a1522); }
.aq-tile.p-pflanzen .aqt-th, .aq-tile.p-gesellschaft .aqt-th { background: radial-gradient(90% 90% at 30% 20%, rgba(61,220,151,.22), transparent 60%), linear-gradient(160deg, #13301f, #0b1a12); }
.aqt-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aqt-ic { font-size: 1.9rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.aqt-ic img, .aqt-ic svg { width: 40px; height: 40px; }
.aqt-p { position: absolute; left: 4px; bottom: 4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; background: rgba(8,14,20,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.aqt-sh { position: absolute; right: 4px; top: 4px; font-size: .7rem; padding: 2px 4px; border-radius: 6px; background: rgba(8,14,20,.72); }
.aqt-n { font-size: .8rem; font-weight: 700; line-height: 1.2; padding: 0 .15rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.aqt-m { font-size: .7rem; color: var(--muted); padding: 0 .15rem; font-variant-numeric: tabular-nums; }
@keyframes aqtIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.aq-tile:nth-child(n+2) { animation-delay: .02s; } .aq-tile:nth-child(n+6) { animation-delay: .05s; } .aq-tile:nth-child(n+12) { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) { .aq-tile { animation: none; } }
/* Aktionsmenü einer Kachel */
.aq-sheet { max-width: 440px; }
.aqs-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.aqs-head > div { display: flex; flex-direction: column; min-width: 0; }
.aqs-th { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-size: 2rem; background: linear-gradient(160deg, #13303a, #0d1a22); }
.aqs-th img { width: 100%; height: 100%; object-fit: cover; }
.aqs-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.aqs-btn { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: .5rem .6rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; text-align: center; }
.aqs-btn.main { grid-column: 1 / -1; background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.aqs-btn.danger { color: #ff8e98; border-color: rgba(255,93,108,.4); }
.aq-cat-row { align-items: flex-end; }
.aq-grp-pick { margin: -.3rem 0 .6rem; }
.aq-multi[hidden] { display: none; }
.aq-multi input { max-width: 110px; }
.aqd-head .aq-tags { margin-bottom: .4rem; }
/* in Anlagen ohne Foto kein großer Platzhalter, damit viele Becken übersichtlich bleiben */
.aq-grid.in-grp .aq-img:has(.aq-ph) { display: none; }

/* Mehrere Becken auf einmal */
.aq-multi { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: .4rem 0 .9rem; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--primary-ring); background: rgba(25,207,210,.07); }
.aq-multi[hidden] { display: none; }
.aq-multi-l { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.aq-multi-l small { font-size: .74rem; line-height: 1.35; }
.aq-multi-prev { color: var(--primary-text); font-weight: 600; }
.aq-step { flex: none; display: inline-flex; align-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--input); overflow: hidden; }
.aq-step button { width: 36px; height: 40px; min-height: 0; padding: 0; border: 0; background: none; color: var(--primary-text); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.aq-step input { width: 52px !important; max-width: 52px !important; height: 40px; min-height: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.aq-step input::-webkit-outer-spin-button, .aq-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.aq-dup-q { margin: -.3rem 0 .4rem; }
.aqd-top { justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.aqd-quick:has(.aqd-qr) { grid-template-columns: 1fr 1fr auto; }
.aqd-quick .aqd-qr { width: auto; }
.aq-progress { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9500; width: min(360px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr auto; gap: .4rem .6rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; background: var(--card); border: 1px solid var(--primary-ring); box-shadow: 0 12px 30px rgba(0,0,0,.45); font-size: .85rem; }
.aq-progress div { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--input); overflow: hidden; }
.aq-progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.aq-progress b { font-variant-numeric: tabular-nums; }
.aq-multi { flex-wrap: wrap; } .aq-multi-l { flex: 1 1 200px; }
.aqd-top { display: flex; flex-direction: row; align-items: center; }
.aqd-quick { flex: 1 1 100%; } .aqd-quick .btn { flex: 1 1 auto; }
.aqd-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; } .aqd-quick .btn { width: 100%; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aqd-head h2 { margin-top: .6rem; }

/* eigene Kategorie-Symbole */
.aq-svg { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.15em; }
.aq-tag .aq-svg { width: 15px; height: 15px; }
.aq-tag.p-zucht .aq-svg, .aq-tag.p-aufzucht .aq-svg, .aq-grp-k .k-zucht, .aq-grp-k .k-aufzucht { color: #facc15; }
.aq-tag.p-quarantaene .aq-svg, .aq-grp-k .k-quarantaene { color: #ff8e98; }
.aq-tag.p-garnelen .aq-svg, .aq-grp-k .k-garnelen { color: #fb7185; }
.aq-tag.p-riff .aq-svg, .aq-grp-k .k-riff { color: #38bdf8; }
.aq-tag.p-pflanzen .aq-svg, .aq-tag.p-gesellschaft .aq-svg, .aq-tag.p-art .aq-svg, .aq-grp-k .k-pflanzen, .aq-grp-k .k-gesellschaft, .aq-grp-k .k-art { color: #4ade80; }
.aq-tag.p-kaltwasser .aq-svg, .aq-grp-k .k-kaltwasser { color: #93c5fd; }
.aq-tag.st .aq-svg { color: var(--primary-text); }
.aq-tag.grp .aq-svg, .aq-grp-pick .aq-svg, .aq-filter .aq-svg { color: var(--primary-text); }
.aq-grp-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(25,207,210,.14); color: var(--primary-text); }
.aq-grp-i .aq-svg { width: 24px; height: 24px; }
.aq-grp-k { display: inline-flex; gap: .25rem; vertical-align: middle; } .aq-grp-k .aq-svg { width: 14px; height: 14px; }
.aqt-ic .aq-svg.big { width: 38px; height: 38px; color: rgba(255,255,255,.85); }
.aq-tile.p-zucht .aqt-ic .aq-svg, .aq-tile.p-aufzucht .aqt-ic .aq-svg { color: #fde68a; }
.aq-tile.p-quarantaene .aqt-ic .aq-svg { color: #fecdd3; } .aq-tile.p-riff .aqt-ic .aq-svg { color: #bae6fd; } .aq-tile.p-garnelen .aqt-ic .aq-svg { color: #fecdd3; }
.aqt-p { color: #fff; } .aqt-p .aq-svg { width: 14px; height: 14px; }
.aq-grp-add svg { width: 18px; height: 18px; fill: currentColor; }
.aqs-th.grp { color: var(--primary-text); background: rgba(25,207,210,.14); } .aqs-th.grp .aq-svg { width: 34px; height: 34px; }
.aqs-btn.wide { grid-column: 1 / -1; }
.danger-note { border: 1px solid rgba(255,93,108,.5); background: rgba(255,93,108,.08); border-radius: 12px; padding: .7rem .8rem; margin: .2rem 0 .8rem; font-size: .88rem; line-height: 1.45; }
.danger-note, .danger-note b { color: var(--text); } .danger-note b { color: #ff8e98; }
.aq-grp-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }

/* ---------- Zuchtanlagen: Werte/Pflege für alle, Zucht-Logbuch ---------- */
.gp-modal { max-width: 560px; }
.gp-modal h2 .aq-svg, .br-card h3 .aq-svg, .aqs-btn .aq-svg, .aqd-tabs .aq-svg { width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.gp-pick { border: 1px solid var(--border); border-radius: 14px; padding: .6rem .7rem; margin: .4rem 0 .7rem; background: var(--input); }
.gp-pick-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .45rem; font-size: .9rem; }
.gp-list { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 150px; overflow-y: auto; }
.gp-it { display: inline-flex !important; align-items: center; gap: .35rem; margin: 0 !important; padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: .84rem; cursor: pointer; }
.gp-it input { width: auto; margin: 0; accent-color: var(--primary); }
.gp-it:has(input:not(:checked)) { opacity: .5; }
.gv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; margin: .6rem 0; }
.gv-f { margin: 0 !important; }
.gv-f span { display: flex; justify-content: space-between; gap: .3rem; font-size: .82rem; font-weight: 600; }
.gv-f small { color: var(--muted); font-weight: 400; }
.gv-f input { text-align: center; font-variant-numeric: tabular-nums; }
.gc-mode { display: flex; width: 100%; margin: .2rem 0 .3rem; }
.gc-mode button { flex: 1; }
.br-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-top: .6rem; }
.br-tile { border: 1px solid var(--border); border-radius: 14px; padding: .55rem .3rem; text-align: center; background: var(--input); }
.br-tile b { display: block; font-size: 1.35rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.br-tile span { font-size: .74rem; color: var(--muted); }
.br-last { margin: .6rem 0 0; }
.br-evs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.br-ev { display: inline-flex; align-items: center; gap: .3rem; padding: .42rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; font-size: .82rem; cursor: pointer; transition: transform .12s, background .15s; }
.br-ev:active { transform: scale(.96); }
.br-ev.on { background: var(--primary); color: var(--primary-ink, #fff); border-color: transparent; font-weight: 600; }
.br-month { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .8rem 0 .3rem; font-weight: 700; }
.br-month:first-child { margin-top: 0; }
.br-it { display: flex; align-items: flex-start; gap: .55rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.br-it:last-child { border-bottom: 0; }
.br-i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--input); font-size: 1rem; }
.br-m { flex: 1; min-width: 0; }
.br-q { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 999px; background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); font-size: .8rem; text-align: center; }
.br-note { font-size: .85rem; margin-top: .15rem; }
@media (max-width: 420px) { .br-tiles { grid-template-columns: repeat(2, 1fr); } }
.br-i .aq-svg { width: 20px; height: 20px; color: var(--primary); }
.br-ev .aq-svg { width: 16px; height: 16px; }
.gp-it { min-height: 0; line-height: 1.2; padding: .32rem .65rem .32rem .5rem !important; }
.gp-it input[type=checkbox] { width: 16px !important; height: 16px !important; min-height: 0 !important; padding: 0 !important; flex: none; }
.gp-it span { white-space: nowrap; }
.gc-mode button { white-space: nowrap; padding: .45rem .5rem; }
.aqd-qr { padding: .35rem .55rem; }
.aqd-qr svg { width: 18px; height: 18px; display: block; }
.aqd-quick:has(.aqd-qr) { grid-template-columns: 1fr 1fr auto; }
.aqd-quick .aqd-qr { width: auto; }
.st-frow > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-frow { grid-template-columns: minmax(90px, 40%) 1fr 36px; }
.br-spw { position: relative; flex: 2 1 200px; }
.br-spw > label { margin: 0; }
.br-sphits { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.35); padding: .35rem; }
.br-sphits .cat-hit { width: 100%; }
.br-sp-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .35rem .5rem .2rem; }
.br-sp-own .cat-ico .aq-svg { width: 20px; height: 20px; color: var(--primary); }
.br-sp-wait { padding: .3rem .5rem; margin: 0; }
.br-sphits:not([hidden]) { display: flex; flex-direction: column; gap: .3rem; }
.aq-card-acts { margin-top: .8rem; }
.aqs-acts > .aqs-btn.danger:nth-child(even) { grid-column: 1 / -1; }
.aqs-btn .aq-svg { width: 1.15em; height: 1.15em; }
/* Mitteilungs-Fenster darf nie seitlich verrutschen */
.nt-pop { left: 10px; right: 10px; width: auto; max-width: 420px; margin-left: auto; overflow: clip; }
.nt-head { min-width: 0; }
.nt-list { overflow-x: hidden; overscroll-behavior: contain; }
.nt-row { min-width: 0; max-width: 100%; }
/* große Ansicht: Einstellungen sanft ausklappen */
.aq-more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -.45rem; transition: grid-template-rows .38s cubic-bezier(.2,.8,.2,1), opacity .28s ease, margin-top .38s cubic-bezier(.2,.8,.2,1); }
.aq-more-in { min-height: 0; overflow: hidden; }
.aq-more-in > .aqs-acts { padding-top: .1rem; transform: translateY(-8px); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.more-open > .aq-more { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.more-open > .aq-more .aq-more-in > .aqs-acts { transform: none; }
/* „Weitere Einstellungen“: schlichte Zeile mit türkisem Pfeil unter den Knöpfen */
/* v238: Zucht-Logbuch + Kosten nebeneinander */
.aq-more-btn { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .1rem; padding: .45rem .5rem; border: 0; background: none; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.aq-more-btn:active { background: var(--hover); }
.aq-more-chev { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--primary-ink, #04252a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); transition: transform .35s cubic-bezier(.2,.8,.2,1); animation: aqChevHint 2.4s ease-in-out 1s 2; }
.aq-more-chev svg { width: 16px; height: 16px; }
@keyframes aqChevHint { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }
.more-open > .aq-more-btn { color: var(--text); }
.more-open > .aq-more-btn .aq-more-chev { transform: rotate(180deg); animation: none; }
@media (prefers-reduced-motion: reduce) { .aq-more, .aq-more-in > .aqs-acts, .aq-more-chev { transition: none; } }
.aq-more .aqs-acts > .aqs-btn.danger:nth-child(even) { grid-column: auto; }
.aq-more .aqs-acts > .aqs-btn.danger:nth-child(odd) { grid-column: 1 / -1; }

/* Diagramme: Karten dürfen nie breiter als der Bildschirm werden (sonst wächst das Diagramm endlos) */
.charts > * { min-width: 0; max-width: 100%; }
.chart-card { min-width: 0; overflow: hidden; }
.chart-card .head { min-width: 0; }
.chart-card .head > * { min-width: 0; }
.chart-box { width: 100%; max-width: 100%; overflow: hidden; }
.chart-box canvas { max-width: 100% !important; }
/* Messwert-Verlauf als Liste */
.hist-list { display: flex; flex-direction: column; }
.hist-it { padding: .7rem 0; border-bottom: 1px solid var(--border); }
.hist-rest > .hist-it:last-child { border-bottom: 0; }
.hist-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .45rem; }
.hist-top b { font-size: .92rem; font-variant-numeric: tabular-nums; }
.hist-del { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255,93,108,.35); background: none; color: #ff8e98; cursor: pointer; }
.hist-del svg { width: 17px; height: 17px; }
.hist-del:active { background: rgba(255,93,108,.12); }
.hist-vals { display: flex; flex-wrap: wrap; gap: .35rem; }
.hist-vals .pill { margin: 0; max-width: 100%; }
.hist-more-btn { margin-top: .4rem; }
.hist-list .aq-more { margin-top: 0; }
.list-more-btn { margin-top: .4rem; width: 100%; }
.list-rest { display: flex; flex-direction: column; gap: inherit; }
.care-log .list-rest { gap: .45rem; padding-top: .45rem; }
.dy-line .aq-more { margin-top: 0; }
.fert-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.fert-p { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fert-row .pill { margin: 0; }
.fert-n { display: block; margin-top: .3rem; overflow-wrap: anywhere; }
.hist-del .ico, .hist-del svg { width: 17px; height: 17px; }
/* ---------- Forum-Übersicht aufgeräumt ---------- */
.forum-top .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -.2rem; padding: 0 .2rem .15rem; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.forum-top .chips::-webkit-scrollbar { display: none; }
.forum-top .chips .chip { flex: none; white-space: nowrap; }
.forum-tools { flex-direction: column; gap: .55rem; }
.ft-search { display: flex; gap: .5rem; }
.ft-search input { flex: 1 1 auto; min-width: 0; }
.ft-search select { flex: none; width: auto; min-width: 0; }
.ft-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; }
.ft-btns .btn { width: 100%; justify-content: center; }
.ft-btns .btn:only-child { grid-column: 1 / -1; }
#fList { display: flex; flex-direction: column; gap: .8rem; }
#fList > .post { margin: 0; }
.post:not(.full) .post-head { margin-bottom: .35rem; }
.post:not(.full) h3 { font-size: 1.08rem; line-height: 1.3; margin: .15rem 0 .3rem; overflow-wrap: anywhere; }
.post:not(.full) .post-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .92rem; line-height: 1.45; margin: 0 0 .65rem; }
.post-foot { padding-top: .55rem; border-top: 1px solid var(--border); }
.pm { display: grid; gap: 4px; margin: 0 0 .7rem; border-radius: 14px; overflow: hidden; }
.pm-c { position: relative; display: block; min-width: 0; overflow: hidden; background: #0b1218; }
.pm-c img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post:hover .pm-c img { transform: scale(1.02); }
.pm1 .pm-c { aspect-ratio: 16 / 10; }
.pm2 { grid-template-columns: 1fr 1fr; }
.pm2 .pm-c { aspect-ratio: 1; }
.pm3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; }
.pm3 .pm-c:first-child { grid-row: 1 / 3; }
.pm-more { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(5, 12, 18, .55); color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.pm .gal-play { z-index: 1; }
.pm-none { padding: 1.2rem; place-items: center; background: var(--input); }
/* ---------- Trends: Woche, Prognose, zweiter Wert, Vergleich ---------- */
.t-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.t-acts .tscan-btn { flex: 1 1 220px; }
.t-acts #tCmp { flex: 1 1 160px; }
.legend i.lg-dot { width: 9px !important; height: 9px !important; border-radius: 50% !important; }
.legend i.lg-dash { width: 16px !important; height: 0 !important; border-top: 2px dashed rgba(25,207,210,.8); background: none !important; border-radius: 0 !important; }
.tw-card .tw-h { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.tw-card h3 { margin: 0; }
.tw-sum { margin: .35rem 0 .7rem; font-weight: 600; }
.tw-card.warn .tw-sum { color: #fbbf24; }
.tw-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tw-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .05rem; padding: .4rem .7rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; cursor: pointer; min-width: 74px; }
.tw-chip b { font-size: .82rem; }
.tw-chip span { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tw-chip.ok span { color: #4ade80; }
.tw-chip.mv span { color: var(--primary); }
.tw-chip.out { border-color: rgba(251,191,36,.5); }
.tw-chip.out span { color: #fbbf24; }
.tc-pred { margin-top: .55rem; padding: .5rem .7rem; border-radius: 12px; background: color-mix(in srgb, var(--primary) 9%, transparent); font-size: .84rem; line-height: 1.4; }
.tc-pred.warn { background: rgba(251,191,36,.1); }
.tc-ovl { display: flex; align-items: center; gap: .4rem; margin: .5rem 0 0 !important; }
.tc-ov { flex: 1; min-width: 0; font-size: .84rem; padding: .4rem .6rem; color: var(--muted); }
.tc-ov-dot { width: 10px; height: 10px; border-radius: 50%; background: #c4a5ff; flex: none; }
.cmp-grps, .cmp-tanks { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.cmp-grps .aq-svg { width: 1em; height: 1em; vertical-align: -.15em; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .84rem; }
.cmp-l { display: inline-flex; align-items: center; gap: .35rem; }
.cmp-l i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cmp-box { height: 260px !important; }
/* Trend: Pfeile für Messpunkte + Werte dazulegen */
.tc-step { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .45rem; }
.tc-step button { width: 44px; height: 34px; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--primary); font-size: 1.35rem; line-height: 1; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; -webkit-tap-highlight-color: transparent; }
.tc-step button:active { transform: scale(.94); background: color-mix(in srgb, var(--primary) 14%, var(--input)); }
.tc-step-l { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-ovs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .55rem; }
.tc-ovs-l { font-size: .76rem; color: var(--muted); margin-right: .1rem; }
.tc-ovc { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.tc-ovc i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .45; }
.tc-ovc.on { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.tc-ovc.on i { opacity: 1; }
.tc-ovv { font-variant-numeric: tabular-nums; color: var(--c); }
.tc-ovc:not(.on) .tc-ovv { display: none; }
.tc-rng { margin-top: .45rem; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.tc-rng.warn { color: #fbbf24; }
/* Markierungen als echte Knöpfe über dem Diagramm */
.tc .chart-box { overflow: visible; }
.tc-mlayer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.tc-mbtn { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; background: transparent; padding: 0; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tc-mbtn:active, .tc-mbtn:focus-visible { background: rgba(255,255,255,.14); outline: none; }
.chart-box canvas { touch-action: manipulation !important; }
.tc-day { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .45rem; font-size: .8rem; }
.tc-dayb { border: 1px solid var(--border); background: var(--input); color: var(--text); border-radius: 999px; padding: .28rem .65rem; font: inherit; font-size: .78rem; cursor: pointer; }
.tc-dayb::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; vertical-align: .05em; background: #f5aa28; }
.tc-dayb.k-water::before { background: #19CFD2; }
.tc-dayb.k-breed::before { background: #f472b6; }
/* Fenster für Markierungen */
.tc-mpop { position: absolute; z-index: 5; min-width: 170px; max-width: min(260px, 92%); max-height: 160px; overflow-y: auto; padding: .5rem .6rem; border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, #000); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(4px) scale(.97); transition: opacity .18s ease, transform .18s ease; }
.tc-mpop.on { opacity: 1; transform: none; }
.mp-r { display: flex; gap: .5rem; align-items: flex-start; padding: .3rem 0; }
.mp-r + .mp-r { border-top: 1px solid var(--border); }
.mp-r > i { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: .35rem; }
.mp-r div { display: flex; flex-direction: column; min-width: 0; font-size: .8rem; line-height: 1.35; }
.mp-r b { font-size: .84rem; }
.mp-r small { color: var(--muted); overflow-wrap: anywhere; }
.mp-r em { font-style: normal; color: var(--muted); font-size: .72rem; }
/* Markierungs-Fenster: fest über der Seite, Platz für mind. 5 Einträge */
.tc-mpop { position: fixed !important; z-index: 1200; width: min(330px, 92vw); min-width: 0; max-width: none; max-height: min(62vh, 470px); overflow-y: auto; overscroll-behavior: contain; padding: .55rem .75rem; }
.mp-r div { font-size: .84rem; }
/* Trend-Karte antippbar → große Ansicht */
.tc-tap .tc-head { cursor: pointer; }
.tc-open { margin-left: .35rem; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--border); background: var(--input); color: var(--primary); font-size: .95rem; line-height: 1; cursor: pointer; vertical-align: .15em; padding: 0; }
.tc-big .chart-box { height: 300px !important; }
.tf-top .row-actions { margin-bottom: .6rem; }
.tl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: .4rem 0 .6rem; }
.tl-stats div { text-align: center; border: 1px solid var(--border); border-radius: 12px; padding: .5rem .3rem; background: var(--input); }
.tl-stats b { display: block; font-size: 1.15rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.tl-stats span { font-size: .72rem; color: var(--muted); }
.tl-list { display: flex; flex-direction: column; }
.tl-day { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: .8rem 0 .25rem; }
.tl-list > .tl-day:first-child, .tl-list .list-rest > .tl-day:first-child { margin-top: .2rem; }
.tl-it { display: flex; align-items: flex-start; gap: .55rem; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.tl-it > i { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: .35rem; background: var(--primary); }
.tl-it.k-out > i { background: #fbbf24; } .tl-it.k-fert > i { background: #f5aa28; } .tl-it.k-water > i { background: #19CFD2; box-shadow: 0 0 0 3px rgba(25,207,210,.2); } .tl-it.k-breed > i { background: #f472b6; }
.tl-it > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; }
.tl-it small { flex-basis: 100%; color: var(--muted); overflow-wrap: anywhere; }
.tl-it em { flex: none; font-style: normal; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-d { font-size: .78rem; } .tl-d.up { color: #fb923c; } .tl-d.dn { color: #60a5fa; }
.tl-w { font-size: .74rem; color: #fbbf24; }
/* Details-Fenster: immer mittig unten, nie abgeschnitten */
.tc-mpop { left: 50% !important; right: auto !important; top: auto !important; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100vw - 24px)) !important; max-height: min(58vh, 480px); margin: 0; transform: translate(-50%, 12px) !important; border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.tc-mpop.on { transform: translate(-50%, 0) !important; }
.mp-h { position: sticky; top: -.55rem; display: flex; align-items: center; justify-content: space-between; margin: -.55rem -.75rem .2rem; padding: .5rem .75rem .4rem; background: inherit; border-bottom: 1px solid var(--border); z-index: 1; }
.mp-h b { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mp-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--input); color: var(--text); cursor: pointer; font-size: .85rem; }
/* große Trend-Ansicht: Abstand zwischen den Karten */
.tc-big { margin-bottom: 1rem !important; }
.tl-card { margin-top: 1rem; }
.tf-top { margin-bottom: 1rem; }
/* Details-Fenster: links und rechts fest 12 px Abstand (kein 100vw, das auf manchen Handys breiter ist als der Bildschirm) */
.tc-mpop { left: 12px !important; right: 12px !important; width: auto !important; max-width: 420px !important; margin: 0 auto !important; transform: translateY(12px) !important; box-sizing: border-box; }
.tc-mpop.on { transform: none !important; }
.mp-x { width: 28px; height: 28px; font-size: .8rem; flex: none; }
.mp-h b { font-size: .74rem; }
.trade-near { margin-top: .7rem; padding: .65rem .75rem; border-radius: 14px; border: 1px solid var(--border); background: var(--input); display: flex; flex-direction: column; gap: .4rem; }
.tn-row { display: flex; gap: .5rem; }
.tn-row input { width: 7.5em; flex: none; }
.tn-row select { flex: 1; min-width: 0; }
/* ---------- Besatz-Planer ---------- */
.plan-card #plGo { width: 100%; margin-top: .3rem; }
.pl-intro { margin: .8rem 0 .4rem; font-weight: 600; }
.pl-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.pl-it { display: grid; grid-template-columns: 64px 1fr; gap: .6rem; padding: .6rem; border: 1px solid var(--border); border-radius: 14px; background: var(--input); }
.pl-it.done { opacity: .6; }
.pl-it > img, .pl-e { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; font-size: 1.8rem; background: var(--card); }
.pl-m { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.pl-m p { margin: .25rem 0 0; }
.pl-tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .2rem; }
.pl-tags span { font-size: .7rem; padding: .1rem .45rem; border-radius: 999px; background: var(--card); color: var(--muted); }
.pl-act { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pl-ok { color: #4ade80; font-weight: 600; font-size: .85rem; }
.pl-tips { margin: .6rem 0; padding-left: 1.1rem; font-size: .86rem; }
/* ---------- Kosten ---------- */
.cost-tiles { grid-template-columns: repeat(3, 1fr) !important; }
.cost-tiles b { font-size: 1.05rem !important; }
.cost-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 120px; margin: .9rem 0 .3rem; }
.cb { display: flex; flex-direction: column; align-items: center; gap: .2rem; height: 100%; }
.cb-col { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; background: var(--input); }
.cb-p { background: #fbbf24; display: block; } .cb-i { background: var(--primary); display: block; }
.cb small { font-size: .62rem; color: var(--muted); }
.cost-kwh { display: flex; flex-direction: column; justify-content: center; }
.cost-pw { display: flex; flex-direction: column; gap: .35rem; margin: .5rem 0; }
.cpw { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 12px; }
.cpw > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cpw > span { font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-sug { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .3rem 0 .5rem; }
.cost-form { display: grid; grid-template-columns: 1fr 70px 76px auto; gap: .4rem; margin: .4rem 0 .3rem; }
.cost-cats { margin: .6rem 0; }
/* ---------- Zeitraffer ---------- */
.lp-h { display: flex; flex-direction: column; gap: .15rem; }
.lp-h h3 { margin: 0; }
.lp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .6rem; }
.lp-modal { max-width: 640px; }
.lp-stage, .ba-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; }
.lp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .55s ease; }
.lp-stage img.on { opacity: 1; }
.lp-date { position: absolute; left: .6rem; bottom: .6rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .82rem; font-variant-numeric: tabular-nums; }
.lp-range, .ba-range { width: 100%; margin: .7rem 0 .3rem; accent-color: var(--primary); }
.lp-ctl { display: flex; gap: .5rem; justify-content: space-between; }
.lp-ctl select { flex: 1; }
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.6); pointer-events: none; }
.ba-line span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #04252a; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.ba-l { position: absolute; top: .5rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; }
.ba-l1 { left: .5rem; } .ba-l2 { right: .5rem; }
/* ---------- Behandlung ---------- */
.hf-chk { display: flex !important; align-items: center; gap: .4rem; }
.hf-chk input { width: auto; }
.hc { padding: .7rem 0; border-bottom: 1px solid var(--border); }
.hc:last-child { border-bottom: 0; }
.hc-h { display: flex; flex-direction: column; }
.hc-line { display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0; scrollbar-width: thin; }
.hc-pt { flex: none; width: 92px; display: flex; flex-direction: column; gap: .2rem; font-size: .72rem; color: var(--muted); }
.hc-pt img { width: 92px; height: 70px; object-fit: cover; border-radius: 10px; margin: 0; }
.hc-noimg { width: 92px; height: 70px; border-radius: 10px; background: var(--input); display: grid; place-items: center; font-size: 1.4rem; }
.hc-pt em { font-style: normal; color: var(--text); overflow-wrap: anywhere; }
.hc-done summary { cursor: pointer; color: var(--muted); margin-top: .5rem; }
/* ---------- Becken des Monats ---------- */
.potm-teaser, .album-teaser { display: flex; align-items: center; gap: .75rem; cursor: pointer; border-color: color-mix(in srgb, #fbbf24 40%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, #fbbf24 10%, var(--card)), var(--card)); }
.album-teaser { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 10%, var(--card)), var(--card)); }
.potm-teaser > div, .album-teaser > div { flex: 1; display: flex; flex-direction: column; }
.pt-ico { font-size: 1.8rem; }
.potm-list { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.potm-e { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--input); }
.potm-e.voted { border-color: #4ade80; } .potm-e.mine { border-color: var(--primary); }
.potm-e img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin: 0; cursor: zoom-in; }
.pe-m { padding: .6rem .75rem 0; display: flex; flex-direction: column; }
.pe-m p { margin: .3rem 0 0; }
.pe-act { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem .7rem; justify-content: flex-end; }
.pe-v { margin-right: auto; font-weight: 700; }
.potm-prev .potm-e { border-color: #fbbf24; }
/* ---------- Sammelalbum ---------- */
.al-prog { display: flex; align-items: center; gap: .6rem; margin: .4rem 0; }
.al-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--input); overflow: hidden; }
.al-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #4ade80); border-radius: 999px; }
.al-rar { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; margin-bottom: .4rem; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .5rem; margin-top: .8rem; }
.al-c { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .5rem .4rem .55rem; border-radius: 14px; border: 2px solid var(--border); background: var(--card); min-width: 0; }
.al-c img, .al-e, .al-q { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: grid; place-items: center; font-size: 2rem; background: var(--input); margin: 0; }
.al-q { font-size: 2rem; font-weight: 800; color: var(--muted); opacity: .6; }
.al-c b { font-size: .76rem; line-height: 1.2; overflow-wrap: anywhere; }
.al-c small { font-size: .64rem; color: var(--muted); line-height: 1.2; }
.al-c.miss { opacity: .55; }
.al-c.ar-rare { border-color: #60a5fa; } .al-c.ar-epic { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,.15), 0 0 16px rgba(192,132,252,.25); }
.al-c.ar-epic.has::after { content: '💎'; position: absolute; top: .3rem; right: .3rem; font-size: .8rem; }
.cost-cats .st-frow { grid-template-columns: minmax(90px, 38%) 1fr auto; }
.cost-cats .st-frow b { white-space: nowrap; }
/* Favoriten-Stern im Forum */
.savebtn { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; padding: .3rem .55rem; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s, transform .15s; }
.savebtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .15s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.savebtn.on { color: #fbbf24; }
.savebtn.on svg { fill: #fbbf24; transform: scale(1.12); }
.savebtn:active svg { transform: scale(.85); }
.post.full .savebtn { border-color: var(--border); }

/* v238: Forum-Kategorien als ausklappbares Menü */
.fcat { display: flex; flex-direction: column; }
.fc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .45rem; }
.fc-q, .fc-tg, .fc-c { font: inherit; font-size: .84rem; font-weight: 600; color: var(--text); background: var(--input); border: 1px solid var(--border); border-radius: 999px; padding: .5rem .8rem; min-height: 40px; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.fc-q.on, .fc-c.on { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.fc-q { padding: .5rem .4rem; }
.fc-tg { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; border-radius: 14px; padding: .45rem .5rem .45rem .9rem; color: var(--text); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.fc-tg b { color: var(--primary); font-weight: 700; }
.fc-chev { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); flex: none; }
.fc-l { overflow: hidden; text-overflow: ellipsis; }
.fc-tg.on { background: color-mix(in srgb, var(--primary) 16%, var(--input)); }
.fc-chev svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fcat.open .fc-chev svg { transform: rotate(180deg); }
.fc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.2,.8,.2,1); }
.fcat.open .fc-panel { grid-template-rows: 1fr; }
.fc-in { overflow: hidden; min-height: 0; }
.fc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding-top: .55rem; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .38s cubic-bezier(.2,.8,.2,1); }
.fcat.open .fc-grid { opacity: 1; transform: none; }
.fc-c { border-radius: 12px; text-align: left; white-space: normal; line-height: 1.25; padding: .55rem .7rem; }
@media (max-width: 360px) { .fc-q, .fc-tg { padding: .45rem .6rem; font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .fc-panel, .fc-grid, .fc-chev svg { transition: none; } }

/* v239: Einblendungen ohne 100vw (auf manchen Handys breiter als der sichtbare Bildschirm) – fester Rand links/rechts */
.nt-toasts { left: 0; right: 0; padding: 0 12px; box-sizing: border-box; overflow: hidden; }
.nt-toast { width: 100%; max-width: 440px; box-sizing: border-box; }
#toast { left: 12px; right: 12px; margin: 0 auto; width: fit-content; max-width: min(460px, calc(100% - 24px)); box-sizing: border-box; transform: translateY(8px); overflow-wrap: anywhere; }
#toast.show { transform: none; }
.sea-nudge, .aq-progress { left: 12px; right: 12px; margin: 0 auto; width: auto; max-width: 420px; transform: none; box-sizing: border-box; }
.aq-progress { max-width: 360px; }
.sea-nudge.out { transform: translateY(20px); }
.sea-nudge { animation-name: seaNudgeIn2; } @keyframes seaNudgeIn2 { from { opacity: 0; transform: translateY(30px); } }

/* v239: Pflege-Bereich – klare Umschaltung Wochenplan / Pflege / Düngung */
.care-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--input); border: 1px solid var(--border); margin-bottom: .55rem; }
.cs-b { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 42px; padding: .45rem .3rem; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.cs-b span { font-size: 1.05em; }
.cs-b.on { background: var(--primary); color: var(--primary-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); }
.care-hint { display: flex; gap: .5rem; align-items: flex-start; margin: 0 .2rem 1rem; font-size: .84rem; line-height: 1.4; color: var(--muted); }
.care-hint > span { flex: none; }
.care-fertlink { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; margin-top: .8rem; padding: .65rem .85rem; border-radius: 12px; border: 1px dashed color-mix(in srgb, #f5aa28 55%, var(--border)); background: color-mix(in srgb, #f5aa28 8%, transparent); color: var(--text); font: inherit; font-size: .86rem; font-weight: 600; text-align: left; cursor: pointer; }
.care-fertlink b { color: #f5aa28; }
.care-fnote { grid-column: 1 / -1; margin: 0; padding: .5rem .7rem; border-radius: 10px; background: color-mix(in srgb, #f5aa28 10%, transparent); font-size: .82rem; color: var(--text); }
@media (max-width: 360px) { .cs-b { font-size: .8rem; gap: .2rem; } }

/* v241: Foto-Dialog ohne 100vw (ragte auf manchen Handys rechts aus dem Bildschirm) */
.photo-modal { width: 100%; max-width: 560px; box-sizing: border-box; }
.ph-choices > * { min-width: 0; }
.ph-choice small { overflow-wrap: anywhere; }

/* v242: Zurück-Knopf über der Überschrift mit Luft nach unten */
.potm-head > .row-actions, .album-head > .row-actions { margin: 0 0 .9rem; }
.potm-head > .row-actions + h2, .album-head > .row-actions + h2 { margin-top: 0; }

/* v243: AquaBot-Helfer – nur wenige Beispielfragen, nichts ragt aus dem Kasten */
.helper-panel { overflow: hidden; }
.hp-msgs { min-height: 0; }
.hp-chips { flex: none; max-height: 40%; overflow-y: auto; overscroll-behavior: contain; }
.hp-chips .chip { max-width: 100%; text-align: left; white-space: normal; line-height: 1.3; }
.hp-chips .hp-more { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: transparent; }
.hp-form { flex: none; }

/* v247: Katalog-Werkstatt – Quellen-Liste: Hinweis unter dem Namen statt zerquetscht daneben */
.cw-src-i { display: grid !important; grid-template-columns: 1.6em minmax(0, 1fr); column-gap: .5rem; row-gap: .1rem; align-items: start; }
.cw-src-i > span { grid-row: 1 / span 2; }
.cw-src-i > b, .cw-src-i > small { grid-column: 2; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.cw-src-i > small { display: block; }

/* v255: Einnahmen & Gesamtübersicht Kosten */
.cost-tiles4 { grid-template-columns: repeat(2, 1fr) !important; }
.cost-tiles4 .br-tile small { font-size: .7rem; color: var(--muted); }
.cost-inc b, .inc-amt { color: #4ade80 !important; }
.cost-plus b, b.cost-plus { color: #4ade80 !important; }
.cb-col { position: relative; }
.cb-in { position: absolute; right: 0; bottom: 0; width: 38%; background: #4ade80; border-radius: 4px 4px 0 0; box-shadow: -1px 0 0 var(--bg, #0b0f14); }
.cost-all-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: .8rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.cost-all-btn b { color: var(--primary); }
.co-h { margin: 1rem 0 .5rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.co-h small { font-size: .75rem; font-weight: 500; }
.co-list { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .6rem; }
.co-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; width: 100%; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.co-n { display: flex; flex-direction: column; min-width: 0; }
.co-n small { overflow-wrap: anywhere; }
.co-v { white-space: nowrap; font-size: 1rem; }
.co-modal { max-width: 560px; }

/* v256: Steckbrief-Korrekturen & unsichere Vorschläge */
.cat-fix-btn { display: flex; align-items: center; gap: .7rem; width: 100%; margin: .7rem 0 .4rem; padding: .6rem .75rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .25s; }
.cat-fix-btn:active { transform: scale(.985); }
.cat-fix-btn:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.cfb-ico { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--primary) 45%, transparent)); animation: cfbPulse 2.8s ease-in-out infinite; }
@keyframes cfbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.cfb-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.cfb-t b { font-size: .95rem; }
.cfb-t small { color: var(--muted); font-size: .8rem; }
.cfb-arr { width: 20px; height: 20px; flex: none; color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .cfb-ico { animation: none; } }
.cfx { display: flex; flex-direction: column; gap: .55rem; }
.cfx-r { display: grid; grid-template-columns: minmax(7.5rem, 1.3fr) minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .4rem; }
.cfx-r > span { font-size: .9rem; }
.cfx-r input { min-width: 0; text-align: center; }
.cfx-r .cfx-one { grid-column: 2 / -1; }
.cfx-r em { font-style: normal; color: var(--muted); }
.cfx-modal { max-width: 520px; }
.cw-red { border-color: color-mix(in srgb, #f87171 55%, var(--border)) !important; color: #fca5a5 !important; }
.cw-redbox { margin: .7rem 0; padding: .75rem .85rem; border-radius: 12px; border: 1px solid color-mix(in srgb, #f87171 40%, var(--border)); background: color-mix(in srgb, #f87171 7%, transparent); }
.cw-redbox p { margin: .35rem 0 .55rem; }
.cfb-diff { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .4rem; }
.cfb-diff > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: baseline; font-size: .88rem; }
.cfb-diff s { color: var(--muted); }
.cfb-diff b { color: #4ade80; }
.cfb-same { color: #fbbf24; }
.cfb-it { display: block !important; }
.cfb-it .cat-tx { display: flex; flex-direction: column; margin-bottom: .45rem; }
.cfb-it .cat-tx > * { white-space: normal; overflow: visible; text-overflow: clip; }

/* v257: Erfahrungswerte aus echten Becken */
.cat-practice { margin: .6rem 0; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--border); background: var(--input); display: flex; flex-direction: column; gap: .35rem; }
.cpr-list { display: flex; flex-direction: column; gap: .25rem; margin: .2rem 0; }
.cpr-r { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: baseline; font-size: .9rem; }
.cpr-r small { min-width: 4.5rem; text-align: right; }
.cpr-r.off b { color: #fbbf24; }
.crv-card .btn { margin-top: .3rem; }
.crv-modal { max-width: 620px; }

/* v257: Arten-Lexikon in der App */
.lex-bar { display: flex; align-items: center; gap: .6rem; width: 100%; margin: 0 0 .9rem; padding: .5rem .75rem; border-radius: 14px; border: 1px solid var(--border); background: color-mix(in srgb, var(--primary) 6%, var(--card, transparent)); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s; }
.lex-bar:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.lex-ico { font-size: 1.25rem; line-height: 1; }
.lex-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.lex-t b { font-size: .92rem; }
.lex-t small { color: var(--muted); font-size: .78rem; }
.lex-bar svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.lex-modal { max-width: 640px; }
.lex-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lex-h h2 { margin: 0; }
.lex-q { width: 100%; margin: .7rem 0 .5rem; }
.lex-k, .lex-w { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; }
.lex-n { margin: .3rem 0; }
.lex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.lex-it { display: flex; flex-direction: column; gap: .35rem; padding: .4rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.lex-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: color-mix(in srgb, var(--primary) 8%, transparent); font-size: 2rem; }
.lex-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lex-tx { display: flex; flex-direction: column; min-width: 0; padding: 0 .2rem .15rem; }
.lex-tx b { font-size: .88rem; line-height: 1.25; overflow-wrap: anywhere; }
.lex-tx i { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lex-more { width: 100%; margin-top: .7rem; }
@media (min-width: 520px) { .lex-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lex-k .chip, .lex-w .chip { font-size: .8rem; padding: .3rem .65rem; min-height: 32px; }

/* ===== v258: Notfall-Knopf neben dem Lexikon ===== */
.lex-row { display: flex; gap: .5rem; align-items: stretch; margin: 0 0 .9rem; }
.lex-row .lex-bar { margin: 0; flex: 1; min-width: 0; }
.sos-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; flex: none; width: 4.6rem; border-radius: 14px; border: 1px solid color-mix(in srgb, #f87171 50%, var(--border)); background: color-mix(in srgb, #f87171 12%, transparent); color: #fca5a5; font: inherit; cursor: pointer; }
.sos-btn span { font-size: 1.2rem; line-height: 1; }
.sos-btn b { font-size: .72rem; }
.sos-list { display: grid; grid-template-columns: 1fr; gap: .45rem; margin: .6rem 0; }
.sos-it { display: flex; align-items: center; gap: .7rem; padding: .75rem .85rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sos-it span { font-size: 1.5rem; }
.sos-steps { padding-left: 1.3rem; display: flex; flex-direction: column; gap: .55rem; line-height: 1.45; }
.sos-steps li::marker { color: #f87171; font-weight: 800; }
.sos-modal h2 { margin-top: .3rem; }

/* ===== Gesundheitswert ===== */
.f3-box { display: flex; flex-direction: column; gap: 0; }
.sc-card { padding-bottom: .7rem; }
.sc-head { display: flex; align-items: center; gap: .8rem; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sc-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sc-t small { color: var(--muted); }
.sc-chev { width: 20px; height: 20px; color: var(--primary); transition: transform .3s; flex: none; }
.sc-card.open .sc-chev { transform: rotate(180deg); }
.sc-ring { flex: none; }
.sc-ring .sc-bg { fill: none; stroke: var(--input); stroke-width: 6; }
.sc-ring .sc-fg { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.sc-ring text { fill: var(--text); font-weight: 800; font-size: 15px; }
.sc-ring.top .sc-fg { stroke: #4ade80; } .sc-ring.ok .sc-fg { stroke: var(--primary); } .sc-ring.mid .sc-fg { stroke: #fbbf24; } .sc-ring.low .sc-fg { stroke: #f87171; }
.sc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.sc-card.open .sc-more { grid-template-rows: 1fr; }
.sc-in { overflow: hidden; min-height: 0; }
.sc-p { display: flex; flex-direction: column; gap: .2rem; padding-top: .6rem; }
.sc-pl { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.sc-bar, .cy-prog, .sp-bar { display: block; height: 6px; border-radius: 99px; background: var(--input); overflow: hidden; }
.sc-bar i, .cy-prog i, .sp-bar i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.sc-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.sc-pill { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.35rem; padding: 0 .35rem; margin-left: .4rem; border-radius: 99px; font-size: .72rem; font-weight: 800; vertical-align: middle; color: #06141a; }
.sc-pill.top { background: #4ade80; } .sc-pill.ok { background: var(--primary); } .sc-pill.mid { background: #fbbf24; } .sc-pill.low { background: #f87171; }
.aqt-th .sc-pill { position: absolute; left: 6px; bottom: 6px; margin: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.aqt-th { position: relative; }

/* ===== Einfahrphase & Algen-Plan ===== */
.cy-h { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.cy-prog { margin: .5rem 0 .2rem; }
.cy-card.ready .cy-prog i { background: #4ade80; }
.cy-prog.al i { background: #4ade80; }
.cy-card h3 { margin: .7rem 0 .2rem; }
.cy-card.peak { border-color: color-mix(in srgb, #fbbf24 45%, var(--border)); }
.cy-card.ready { border-color: color-mix(in srgb, #4ade80 50%, var(--border)); }
.cy-bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin: .6rem 0 .2rem; }
.cy-bars span { flex: 1; min-width: 6px; border-radius: 3px 3px 0 0; background: var(--primary); opacity: .85; }
.cy-bars span.mid { background: #fbbf24; } .cy-bars span.hi { background: #f87171; }
.cy-todo { padding-left: 1.2rem; margin: .5rem 0; font-size: .9rem; display: flex; flex-direction: column; gap: .25rem; }
.cy-offer { border-style: dashed; }
.al-steps { display: flex; flex-direction: column; gap: .35rem; margin: .6rem 0; }
.al-step { display: flex; gap: .55rem; align-items: flex-start; padding: .45rem .55rem; border-radius: 10px; border: 1px solid var(--border); font-size: .9rem; cursor: pointer; }
.al-step input { margin-top: .2rem; flex: none; width: 20px; height: 20px; }
.al-step small { display: block; color: var(--muted); font-size: .72rem; }
.al-step.due { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.al-step.done { opacity: .55; text-decoration: line-through; }
.al-types { display: grid; grid-template-columns: 1fr; gap: .4rem; margin-top: .5rem; }
.al-type { display: grid; grid-template-columns: 2rem 1fr; column-gap: .5rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.al-type span { grid-row: span 2; font-size: 1.4rem; }
.al-found { margin: .7rem 0; padding: .7rem .8rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); }
.al-manual { margin: .7rem 0; }
.al-res:empty { display: none; }

/* ===== Paten-Programm ===== */
.mt-card hr { border: 0; border-top: 1px solid var(--border); margin: .8rem 0; }
.mt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .4rem; align-items: center; padding: .35rem 0; }
.mt-row small { grid-column: 1; grid-row: 2; }
.mt-row b { overflow-wrap: anywhere; }

/* ===== Vorräte ===== */
.sp-card summary { cursor: pointer; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.sp-list { display: flex; flex-direction: column; gap: .45rem; margin: .5rem 0; }
.sp-it { display: flex; flex-direction: column; gap: .3rem; padding: .55rem .65rem; border-radius: 12px; border: 1px solid var(--border); }
.sp-it.warn { border-color: color-mix(in srgb, #fbbf24 55%, var(--border)); }
.sp-it.warn .sp-bar i { background: #fbbf24; }
.sp-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sp-top b { overflow-wrap: anywhere; }
.sp-btns { display: flex; gap: .3rem; align-items: center; flex: none; }
.sp-form { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.sp-size span { display: flex; gap: .3rem; }
.sp-size input { min-width: 0; flex: 1; }
.sp-size select { width: 4.4rem; flex: none; }

/* ===== Börsen & Treffen ===== */
.ev-zip { display: flex; gap: .4rem; align-items: flex-end; flex-wrap: wrap; margin: .5rem 0 .8rem; }
.ev-zip label { flex: 1; min-width: 9rem; }
.ev-it { display: flex; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--border); }
.ev-it:first-of-type { border-top: 0; }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.2rem; height: 3.4rem; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, transparent); }
.ev-date b { font-size: 1.25rem; line-height: 1; color: var(--primary); }
.ev-date small { font-size: .72rem; color: var(--muted); }
.ev-tx { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ev-tx small { overflow-wrap: anywhere; }
.ev-acts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.ev-form { display: flex; flex-direction: column; gap: .5rem; }

/* ===== Doppelte Steckbriefe ===== */
.dp-list { display: flex; flex-direction: column; gap: .7rem; margin: .6rem 0; }
.dp-g { padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: .35rem; }
.dp-it { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; }
.dp-it input { margin-top: .25rem; flex: none; }
.dp-it span { display: flex; flex-direction: column; min-width: 0; }
.dp-it i { color: var(--muted); }
.dp-it { flex-direction: row !important; align-items: flex-start !important; }
.dp-it input[type=radio] { width: 20px !important; height: 20px !important; min-width: 20px; padding: 0 !important; margin: .2rem 0 0; flex: none; }
.dp-warn { color: #fbbf24; font-size: .82rem; margin: 0; }
.sos-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sos-seg { margin: .2rem 0 .6rem; align-self: flex-start; }
.sos-h .sos-seg { margin: 0; }
.sos-seg button { padding: .35rem .7rem; font-size: .82rem; }

/* ===== v260: Lexikon- und Notfall-Knopf im modernen Verlauf-Design ===== */
.lex-row .lex-bar { padding: .6rem .8rem; border-radius: 16px; border: 1px solid var(--primary-ring, color-mix(in srgb, var(--primary) 40%, var(--border)));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, var(--card)), var(--card) 75%);
  box-shadow: 0 4px 14px -8px color-mix(in srgb, var(--primary) 60%, transparent); transition: transform .15s, border-color .2s; }
.lex-row .lex-ico { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none; border-radius: 12px; font-size: 1.2rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 30%, transparent), color-mix(in srgb, var(--primary) 8%, transparent)); }
.lex-row .lex-bar svg { width: 1.7rem; height: 1.7rem; padding: .3rem; border-radius: 999px; background: color-mix(in srgb, var(--primary) 14%, transparent); }
.lex-row .sos-btn { width: 4.8rem; border-radius: 16px; border: 1px solid color-mix(in srgb, #ef4444 45%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, #ef4444 24%, var(--card)), var(--card) 80%);
  color: color-mix(in srgb, #ef4444 55%, var(--text)); box-shadow: 0 4px 14px -8px rgba(239, 68, 68, .7); transition: transform .15s; }
.lex-row .sos-btn span { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 12px; font-size: 1.1rem;
  background: linear-gradient(160deg, rgba(239, 68, 68, .32), rgba(239, 68, 68, .08)); }
.lex-row .sos-btn b { font-size: .74rem; margin-top: .15rem; }
.lex-row .lex-bar:active, .lex-row .sos-btn:active { transform: scale(.97); }
.sos-ico { width: 1.7rem; height: 1.7rem; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.lex-row .sos-btn span .sos-ico { animation: sosBob 3.5s ease-in-out infinite; }
@keyframes sosBob { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(-8deg) translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .lex-row .sos-btn span .sos-ico { animation: none; } }
.sos-title { display: flex; align-items: center; gap: .5rem; }
.sos-ico.sm { width: 1.5rem; height: 1.5rem; }
.lex-row .sos-btn { width: 4.6rem; }
.sos-mark { display: inline-grid; place-items: center; padding: .35rem .5rem; border-radius: 10px; font-weight: 900; font-size: 1.05rem; letter-spacing: .08em; line-height: 1; color: #fff;
  background: linear-gradient(160deg, #f87171, #dc2626); box-shadow: 0 3px 10px -4px rgba(220, 38, 38, .8), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.lex-row .sos-btn .sos-mark { width: auto; height: auto; background: linear-gradient(160deg, #f87171, #dc2626); }
.sos-mark.sm { font-size: .85rem; padding: .3rem .42rem; border-radius: 8px; }
/* v261: SOS im Becken-Menü */
.aqs-mainrow { grid-column: 1 / -1; display: flex; gap: .45rem; align-items: stretch; }
.aqs-mainrow .aqs-btn.main { flex: 1; min-width: 0; }
.aqs-btn.aqs-sos { flex: none; width: 4.4rem; padding: .3rem; border-color: color-mix(in srgb, #ef4444 45%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, #ef4444 24%, var(--card)), var(--card) 85%); box-shadow: 0 4px 14px -8px rgba(239, 68, 68, .7); }
.aqs-btn.aqs-sos:active { transform: scale(.96); }
.sos-for { margin: -.2rem 0 .6rem; font-size: .88rem; color: var(--muted); }
.sos-for b { color: var(--text); }
.sos-other { border-style: dashed !important; }
.sos-wt { display: inline-block; margin-left: .3rem; padding: .12rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 600; vertical-align: .05em;
  background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--text); }
.sos-wt.salt { background: color-mix(in srgb, #3b82f6 22%, transparent); }
/* v263: Börsen & Treffen – Kopf und PLZ-Filter sauber ausgerichtet */
.ev-top { display: flex; margin: 0 0 .8rem; }
.ev-h { margin: 0 0 .35rem; }
.ev-zl { display: block; margin: .9rem 0 .35rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.ev-zip { display: flex !important; flex-wrap: nowrap !important; gap: .5rem; align-items: stretch !important; margin: 0 0 .9rem !important; }
.ev-zip input { flex: 1; min-width: 0; margin: 0 !important; }
.ev-zip .btn { flex: none; margin: 0 !important; min-height: 0; align-self: stretch; padding-inline: 1.1rem; }
.ev-all { margin: -.4rem 0 .9rem; }
.ev-add { width: 100%; }
.ev-form { gap: .65rem !important; }
.ev-form label { display: flex; flex-direction: column; gap: .3rem; margin: 0 !important; font-size: .86rem; font-weight: 600; color: var(--muted); min-width: 0; }
.ev-form label small { font-size: inherit; font-weight: 500; }
.ev-form label input, .ev-form label select, .ev-form label textarea { margin: 0 !important; width: 100%; min-width: 0; }
.ev-form .row { display: grid !important; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 0 !important; }
.ev-form .row.ev-r12 { grid-template-columns: 1fr 1.8fr; }
.ev-form input[type=date] { padding-inline: .6rem; font-size: .9rem; }

/* ===== v264: Messe-Rallye ===== */
.rl-wait { position: fixed; z-index: 9999; left: .6rem; right: .6rem; top: .6rem; padding: .75rem .9rem; border-radius: 14px; font-size: .9rem; line-height: 1.4;
  background: linear-gradient(120deg, #0f1c24, #12404a); color: #e6f4f6; border: 1px solid var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.rl-banner { display: flex; align-items: center; gap: .7rem; width: 100%; margin: 0 0 .9rem; padding: .65rem .8rem; border-radius: 16px; cursor: pointer; font: inherit; text-align: left; color: var(--text);
  border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, #f59e0b 18%, var(--card)), var(--card) 75%); box-shadow: 0 4px 14px -8px rgba(245,158,11,.7); }
.rl-b-ico { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none; border-radius: 12px; font-size: 1.25rem; background: linear-gradient(160deg, rgba(245,158,11,.35), rgba(245,158,11,.08)); }
.rl-b-t { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: .15rem; }
.rl-b-t b { font-size: .92rem; } .rl-b-t small { color: var(--muted); font-size: .78rem; }
.rl-b-bar, .rl-sbar { display: block; height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: .2rem; }
.rl-b-bar i, .rl-sbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, var(--primary)); }
.rl-b-go { font-size: 1.4rem; color: var(--muted); }
.rl-top { display: flex; margin: 0 0 .7rem; }
.rl-hero { background: linear-gradient(150deg, color-mix(in srgb, #f59e0b 14%, var(--card)), var(--card) 65%); }
.rl-head { display: flex; align-items: center; gap: .9rem; }
.rl-head h2 { margin: 0 0 .15rem; }
.rl-ring { --p: 0; width: 4.4rem; height: 4.4rem; flex: none; border-radius: 50%; display: grid; place-items: center; align-content: center; position: relative;
  background: conic-gradient(#f59e0b calc(var(--p) * 1%), var(--border) 0); }
.rl-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.rl-ring b, .rl-ring small { position: relative; line-height: 1; } .rl-ring b { font-size: 1.3rem; } .rl-ring small { font-size: .72rem; color: var(--muted); }
.rl-info { margin: .7rem 0 .3rem; font-size: .9rem; }
.rl-testbar { border: 1px dashed #fbbf24; background: color-mix(in srgb, #fbbf24 8%, var(--card)); }
.rl-testbar p { margin: .3rem 0 .5rem; }
.rl-testnote { color: #fbbf24; font-size: .88rem; }
.rl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
@media (min-width: 560px) { .rl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rl-st { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: .8rem .5rem .7rem; border-radius: 14px;
  border: 1.5px dashed var(--border); background: var(--input); min-width: 0; }
.rl-st b { font-size: .84rem; line-height: 1.25; overflow-wrap: anywhere; } .rl-st small { font-size: .72rem; color: var(--muted); }
.rl-stamp { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-weight: 800; font-size: 1.05rem; color: var(--muted); border: 2px dashed var(--border); }
.rl-st.on { border-style: solid; border-color: color-mix(in srgb, #22c55e 50%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, #22c55e 14%, var(--card)), var(--card)); }
.rl-st.on .rl-stamp { border: 0; color: #fff; font-size: 1.3rem; background: radial-gradient(circle at 35% 30%, #4ade80, #16a34a); transform: rotate(-12deg); box-shadow: 0 3px 10px -3px rgba(22,163,74,.8); }
.rl-st.flash .rl-stamp { animation: rlStamp .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes rlStamp { 0% { transform: scale(2.2) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(-12deg); opacity: 1; } }
.rl-tbtn { margin-top: .25rem; font-size: .74rem !important; padding: .25rem .55rem !important; min-height: 0 !important; border-color: #fbbf24 !important; }
.rl-act { text-align: center; }
.rl-scanbtn { width: 100%; font-size: 1rem; padding-block: .8rem; }
.rl-act p { margin: .6rem 0; }
.rl-manual summary { cursor: pointer; color: var(--muted); font-size: .86rem; }
.rl-mform { display: flex; gap: .45rem; margin-top: .5rem; } .rl-mform input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }
.rl-queue { font-size: .86rem; color: #fbbf24; }
.rl-cam { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; }
.rl-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-frame { position: absolute; inset: 18%; border: 3px solid var(--primary); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.rl-win { position: relative; text-align: center; overflow: hidden; }
.rl-win-ico { font-size: 3.6rem; animation: rlStamp .7s cubic-bezier(.2,1.6,.4,1); }
.rl-win h2 { margin: .2rem 0 .4rem; }
.rl-win-prize { padding: .55rem .7rem; border-radius: 12px; background: color-mix(in srgb, #f59e0b 14%, transparent); }
.rl-confetti { position: absolute; inset: 0; pointer-events: none; }
.rl-confetti i { position: absolute; top: -10px; left: calc(var(--i) * 4.2%); width: 7px; height: 11px; border-radius: 2px; opacity: .9;
  background: hsl(calc(var(--i) * 47), 85%, 60%); animation: rlConf 2.4s ease-in calc(var(--i) * -0.09s) 2 both; }
@keyframes rlConf { 0% { transform: translateY(-20px) rotate(0); } 100% { transform: translateY(420px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rl-confetti, .rl-st.flash .rl-stamp, .rl-win-ico { animation: none; } }
/* Admin */
.rl-row-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.rl-row-h h2, .rl-row-h h3 { margin: 0 0 .2rem; }
.rl-pill { display: inline-block; margin-top: .3rem; padding: .15rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--input); color: var(--muted); }
.rl-pill.live { background: color-mix(in srgb, #22c55e 20%, transparent); color: #4ade80; }
.rl-pill.wait { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #fbbf24; }
.rl-switch { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; flex: none; }
.rl-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rl-sw { width: 50px; height: 28px; border-radius: 99px; background: var(--border); position: relative; transition: background .2s; }
.rl-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.rl-switch input:checked + .rl-sw { background: #22c55e; }
.rl-switch input:checked + .rl-sw::after { transform: translateX(22px); }
.rl-switch input:focus-visible + .rl-sw { outline: 2px solid var(--primary); outline-offset: 2px; }
.rl-switch b { font-size: .8rem; min-width: 2.2em; }
.rl-btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.rl-btns .btn { text-decoration: none; }
.rl-new summary { list-style: none; display: inline-flex; cursor: pointer; } .rl-new summary::-webkit-details-marker { display: none; }
.rl-new[open] summary { margin-bottom: .8rem; }
.rl-aform, .rl-sform { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.rl-aform label, .rl-sform label { display: flex; flex-direction: column; gap: .3rem; margin: 0; font-size: .86rem; font-weight: 600; color: var(--muted); min-width: 0; }
.rl-aform label small, .rl-sform label small { font-weight: 500; }
.rl-aform input, .rl-aform textarea, .rl-sform input { margin: 0 !important; width: 100%; min-width: 0; }
.rl-aform .row, .rl-sform .row { display: grid !important; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 0 !important; }
.rl-chk-in { display: flex; gap: .45rem; align-items: flex-start; font-weight: 400; }
.rl-chk-in input { width: auto !important; margin-top: .15rem !important; }
.rl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .5rem; }
.rl-stats div { text-align: center; padding: .6rem .3rem; border-radius: 12px; background: var(--input); }
.rl-stats b { display: block; font-size: 1.4rem; color: var(--primary); } .rl-stats small { font-size: .76rem; color: var(--muted); }
.rl-slist { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .6rem; }
.rl-srow { display: flex; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: 12px; background: var(--input); border: 1px solid var(--border); }
.rl-snr { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; flex: none; border-radius: 50%; font-weight: 700; font-size: .85rem; background: color-mix(in srgb, #f59e0b 20%, transparent); color: #fbbf24; }
.rl-stx { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: .1rem; } .rl-stx b { font-size: .9rem; overflow-wrap: anywhere; } .rl-stx small { font-size: .74rem; overflow-wrap: anywhere; }
.rl-stx code { font-size: .72rem; }
.rl-sact { display: grid; grid-template-columns: repeat(2, auto); gap: .25rem; flex: none; }
.rl-sact .btn { min-height: 0; padding: .3rem .5rem; font-size: .8rem; }
.rl-sform .row.rl-r21 { grid-template-columns: 1fr 6rem; align-items: end; }
/* v266: schwaches Netz */
.off-bar.slow { background: linear-gradient(120deg, #3a2a05, #4a3606); color: #fde68a; border-color: rgba(251, 191, 36, .45); }
.off-bar .ob-x { flex: none; margin-left: .2rem; width: 1.7rem; height: 1.7rem; padding: 0; border-radius: 50%; border: 0; cursor: pointer; font-size: .85rem; line-height: 1;
  background: rgba(255, 255, 255, .12); color: inherit; }
.off-bar .ob-x:active { transform: scale(.92); }
/* v267: Netz-Leiste als schmale Leiste über der Navigation (statt rundem Klecks), wegklickbar */
#offBar.off-bar { left: .6rem; right: .6rem; transform: none; width: auto; max-width: 560px; margin: 0 auto; border-radius: 14px;
  padding: .5rem .5rem .5rem .75rem; gap: .55rem; align-items: center; font-size: .84rem; line-height: 1.35; text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
#offBar .ob-i { flex: none; font-size: 1.05rem; }
#offBar .ob-t { flex: 1; min-width: 0; }
#offBar .ob-x { margin-left: auto; }
