:root {
  --bg: #EEF0E7;
  --card: #FFFFFF;
  --line: #D7DCCD;
  --line-soft: #E6E9DE;
  --field: #B9C1AC;
  --ink: #1F2A1E;
  --muted: #5B6656;
  --forest: #3F5C2F;
  --forest-ink: #2F4823;
  --moss: #DFE7D3;
  --clay: #A3441E;
  --clay-dark: #7E3216;
  --clay-soft: #F4E1D6;
  --clay-ink: #8A3618;
  --amber-soft: #F6EBC8;
  --amber-ink: #6B4E0E;
  --rain: #3E6A86;
  --rain-soft: #BFD0DB;
  --display: "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--clay); }
a:hover { color: var(--clay-dark); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.boot { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); text-align: center; padding: 24px; }
.boot img { border-radius: 18px; box-shadow: 0 8px 24px rgba(80, 30, 10, 0.2); animation: bootpulse 1.6s ease-in-out infinite; }
.boot b { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.boot span { font-size: 14px; }
@keyframes bootpulse { 50% { transform: scale(0.94); } }
@media (prefers-reduced-motion: reduce) { .boot img { animation: none; } }
.welcome { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--clay); margin-bottom: -12px; }

/* App-Rahmen */
.shell { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.main { flex: 1; padding-bottom: calc(84px + var(--safe-b)); }
.page { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 14px; }

.top { padding: calc(20px + var(--safe-t)) 20px 10px; }
.top h1 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.top p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

.subbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; padding: calc(10px + var(--safe-t)) 12px 8px; border-bottom: 1px solid var(--line); background: var(--bg); }
.subbar h1 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line); }
.tabbar-in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px 6px calc(8px + var(--safe-b)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
.tab.on { background: var(--clay-soft); color: var(--clay); font-weight: 700; }

/* Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card.tight { padding: 4px 14px; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.center { text-align: center; }

.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill.good { background: var(--moss); color: var(--forest-ink); }
.pill.mid { background: var(--amber-soft); color: var(--amber-ink); }
.pill.low { background: var(--clay-soft); color: var(--clay-ink); }
.pill.gray { background: var(--line-soft); color: #3A4436; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 600; font-size: 16px; }
.btn.primary { background: var(--clay); color: #fff; }
.btn.green { background: var(--forest); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--field); }
.btn.outline { background: var(--card); color: var(--forest-ink); border: 1px solid var(--forest); }
.btn.danger { background: var(--card); color: #9B2C1F; border: 1px solid #D9A79D; }
.btn.block { width: 100%; }
.btn:disabled { background: #DAD5CD; color: #4F4A44; border-color: transparent; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 8px 4px; min-height: 44px; color: var(--clay); font-weight: 600; font-size: 15px; }
.iconbtn { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink); flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .flabel { font-weight: 600; font-size: 15px; }
.input { width: 100%; border: 1px solid var(--field); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); font-size: 16px; }
textarea.input { resize: vertical; line-height: 1.45; min-height: 96px; }
.hint { font-size: 13px; color: var(--muted); }
.error { background: #FBE4DF; color: #8A2417; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--forest-ink); background: var(--moss); padding: 10px 12px; border-radius: 12px; }
.note svg { flex: none; margin-top: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; padding: 6px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--forest); margin: 1px 0 0; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Listen */
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 0; padding: 10px 0; min-height: 56px; color: var(--ink); border-top: 1px solid var(--line-soft); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; text-transform: uppercase; }

.suggest { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.suggest button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 0; border-top: 1px solid var(--line-soft); background: #fff; padding: 9px 14px; min-height: 44px; color: var(--ink); }
.suggest button:first-child { border-top: 0; }
.suggest .alt { background: #F7F8F3; color: var(--clay); font-weight: 600; font-size: 14px; }
.warn { color: #9B2C1F; font-weight: 600; }

/* Fund-Karten */
.findcard { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; color: var(--ink); }
.findcard .ph { height: 128px; width: 100%; }
.findcard .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; width: 100%; }
.findcard .art { font-weight: 600; font-size: 15px; line-height: 1.25; }
.ph { background: #8E7A62; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #2B2A26; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .slide { flex: none; width: 100%; scroll-snap-align: center; height: min(78vw, 400px); display: flex; align-items: center; justify-content: center; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--field); }

.photos-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photos-pick .slot { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #F7F8F3; }
.photos-pick .slot img { width: 100%; height: 100%; object-fit: cover; }
.photos-pick .rm { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(20, 24, 18, 0.75); color: #fff; display: flex; align-items: center; justify-content: center; }
.photos-pick .add { aspect-ratio: 1; border: 2px dashed var(--field); border-radius: 12px; background: #F7F8F3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--forest-ink); font-weight: 600; font-size: 13px; position: relative; overflow: hidden; }
.photos-pick .add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Wetter */
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 104px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.bar i { display: block; width: 100%; max-width: 28px; border-radius: 6px; background: var(--rain-soft); }
.bar i.wet { background: var(--rain); }
.bar b { font-size: 12px; font-weight: 500; }
.bar b.wet { font-weight: 700; }
.bar small { font-size: 11px; color: var(--muted); }

.season-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.season-row .grow { min-width: 0; }

/* Kommentare */
.comment { display: flex; gap: 10px; align-items: flex-start; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; flex: 1; min-width: 0; }
.bubble .who { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.bubble .txt { font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .del { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 0; min-height: 0; }

.stat { padding: 12px 14px; }
.stat b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; }
.stat span { font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--safe-b)); z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }

.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 20px; gap: 22px; max-width: 440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand b { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line-soft); padding: 4px; border-radius: 14px; }
.seg button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.skeleton { background: linear-gradient(90deg, #E3E6DA, #EEF0E7, #E3E6DA); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* Essbar / Giftig */
.eat { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: #fff; vertical-align: middle; }
.eat.e { background: #3B7A2A; }
.eat.g { background: #C2412D; }
.eat.t { background: #7A1212; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #7A1212; }
.eat.u { background: #7D8378; }
.eat-label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 4px 10px 4px 4px; border-radius: 999px; }
.eat-label.e { background: #DFEBD6; color: #2B5A1E; }
.eat-label.g, .eat-label.t { background: #F8DDD7; color: #8A2417; }
.eat-label.u { background: var(--line-soft); color: #3A4436; }
.pubtag { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 24, 18, 0.72); color: #fff; display: flex; align-items: center; justify-content: center; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Artenseiten */
.slink { color: inherit; text-decoration: underline; text-decoration-color: rgba(163, 68, 30, 0.45); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.slink:hover { color: var(--clay); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.mon { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 54px; border-radius: 6px; background: var(--line-soft); padding: 3px 0; }
.mon.on { background: #B9D3A0; }
.mon i { display: block; width: 60%; border-radius: 3px; background: var(--clay); }
.mon span { font-size: 11px; font-weight: 600; color: var(--muted); }
.mon.on span { color: #1F3A14; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); }
.chip.on { background: var(--clay); border-color: var(--clay); color: #fff; }
a.list-row { color: var(--ink); }

/* Entdecken-Raster */
.tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile .ph { width: 100%; aspect-ratio: 1; border: 0; border-radius: 12px; padding: 0; }
.tile-name { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; line-height: 1.2; min-width: 0; }
.tile-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-user { background: none; border: 0; padding: 0; text-align: left; font-size: 12px; color: var(--clay); font-weight: 600; min-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab { font-size: 11px; }

/* Profilfoto */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cropper { position: relative; overflow: hidden; border-radius: 16px; background: #2B2A26; touch-action: none; cursor: grab; user-select: none; }
.cropper img { position: absolute; max-width: none; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(20, 24, 18, 0.55); border: 2px solid rgba(255, 255, 255, 0.85); pointer-events: none; }

/* Benachrichtigung und Challenge */
.tab-ic { position: relative; display: inline-flex; }
.badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #C2412D; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.challenge { border: 2px solid #E9C9B7; }

/* KI-Vorschlag */
.ki { border-color: #E9C9B7; }
.ki-row { display: flex; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.ki-row .grow { flex: 1; min-width: 0; }
.ki-warn { display: flex; gap: 8px; align-items: flex-start; background: #F8DDD7; color: #8A2417; border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.ki-warn svg { flex: none; margin-top: 2px; }

/* Video-Hinweis */
.video-hint { display: flex; gap: 12px; align-items: center; margin-top: 6px; padding: 12px; border-radius: 12px; background: #F8DDD7; color: #8A2417; text-decoration: none; line-height: 1.35; }
.video-hint:hover { color: #6E1B11; background: #F4D0C8; }
.video-play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #C2412D; color: #fff; display: flex; align-items: center; justify-content: center; }

/* Mitteilungen */
.top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.top-txt { min-width: 0; }
.iconbtn.bell { margin: -6px -10px 0 0; color: var(--ink); }
.iconbtn.bell .tab-ic { position: relative; display: inline-flex; }
.inbox-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line-soft); padding: 14px 0; color: var(--ink); font: inherit; cursor: pointer; }
.inbox-row:first-child { border-top: 0; }
.inbox-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inbox-row .line { font-size: 15px; line-height: 1.35; }
.inbox-row .quote { font-size: 14px; color: #3A4436; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inbox-row .when { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.inbox-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #C2412D; display: inline-block; }
.inbox-row.neu .line b:first-child { color: var(--clay, #A3441E); }
.inbox-row[disabled] { opacity: .6; }
.ithumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: var(--line-soft); }
.ithumb img { width: 100%; height: 100%; object-fit: cover; }
.empty-inbox { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; }
.empty-inbox .ic { color: var(--muted); }
.empty-inbox p { margin: 0; font-size: 14px; line-height: 1.45; }

/* Kommentarfeld wächst mit */
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose .btn { height: 48px; }
textarea.input.autogrow { resize: none; min-height: 48px; height: 48px; max-height: 180px; overflow-y: hidden; line-height: 1.4; }

/* Erwähnungen */
.mention { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--clay); cursor: pointer; }
.avbtn { background: none; border: 0; padding: 0; border-radius: 50%; flex: none; cursor: pointer; }
.owner-tag { margin-left: 6px; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--moss, #E3EBD8); color: var(--forest-ink, #2E4422); vertical-align: 1px; }
.who-r { display: inline-flex; align-items: center; gap: 10px; }
.when-s { font-size: 12px; color: var(--muted); font-weight: 400; }
.compose-wrap { position: relative; }
.mention-list { position: absolute; left: 0; right: 56px; bottom: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(31,42,30,.14); padding: 4px; z-index: 20; }
.mention-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: none; border: 0; border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; min-height: 44px; }
.mention-list button:hover, .mention-list button:focus-visible { background: var(--line-soft); }
.mention-empty { padding: 10px 12px; font-size: 14px; color: var(--muted); }

/* Nutzername ändern */
.at-input { position: relative; }
.at-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.at-input .input { padding-left: 32px; }
.name-hint { margin: 6px 2px 0; display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.name-hint.ok { color: var(--forest); font-weight: 600; }
.name-hint.bad { color: #B3261E; font-weight: 600; }

/* Fundbuch-Button in der Mitte (Kreis mit Buch + Plus) */
.tab-ic.fab-ic { width: 22px; height: 22px; }
.tab-ic .fab { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--clay); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(163, 68, 30, .3); transition: background .15s, transform .15s; }
.tab.tab-fab.on { background: transparent; }
.tab.tab-fab.on .fab { background: var(--clay-dark); }
.tab.tab-fab:active .fab { transform: translateX(-50%) scale(.94); }

/* Bestimmungshilfe */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip { flex: none; }
.note.warn { background: #FBEFD9; color: #6B4A12; }
.note.help { background: var(--clay-soft); color: var(--clay-ink, #7E3216); }
.tip { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.tip svg { flex: none; margin-top: 2px; color: var(--clay); }
.tip.strong { color: var(--clay-ink, #7E3216); background: var(--clay-soft); padding: 9px 11px; border-radius: 12px; }
.qtag { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: #C98A1B; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.qtag.unbestimmt { background: #6E7568; }
.qtag.inline { position: static; width: 16px; height: 16px; font-size: 11px; box-shadow: none; display: inline-flex; }
.hslider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-padding: 0 16px; }
.hslider::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 74%; max-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 0; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.hph { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; width: 100%; }
.hph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stag { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: #fff; background: #C98A1B; }
.stag.unbestimmt { background: #5E6659; }
.hbody { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.htitle { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htitle .muted { font-weight: 500; }
.hmeta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.hmeta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcount { display: inline-flex; align-items: center; gap: 4px; color: var(--clay); font-weight: 600; flex: none; }
.chips.compact { gap: 6px; }
.chips.compact .chip { padding: 0 11px; font-size: 13px; min-height: 34px; }

/* Namensvorschlag "Keine Idee" */
.suggest button.unknown { background: #F1F2EC; border-bottom: 1px solid var(--line); }
.seg .qtag.inline { width: 16px; height: 16px; font-size: 11px; }

/* Vorschlag übernehmen */
.adopt-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.adopt { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--forest); color: var(--forest); background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 32px; }
.adopt-box { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--moss, #E3EBD8); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.adopt-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adopt-btns .btn { min-height: 38px; padding: 0 12px; font-size: 14px; width: auto; }

/* Zähler "Geholfen" */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grid4 .stat { padding: 10px 10px; }
.grid4 .stat b { font-size: 22px; }
.grid4 .stat span { font-size: 12px; }
.stat.helped { border-color: #D9B8A6; background: #FBF1EB; }
.stat.helped b { color: var(--clay); }

/* Entdecken: Regler Freunde / Alle */
.wer-spacer { height: 56px; }
.wer-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(82px + var(--safe-b)); z-index: 9; display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 18px rgba(31,42,30,.16); }
.wer-bar button { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.wer-bar button.on { background: var(--forest); color: #fff; }

/* Doppelgänger */
.vw.giftig { background: #FBEAE6; margin: 0 -8px; padding: 4px 8px; border-radius: 10px; }

/* Wikipedia & Bilder im Lexikon */
.hero { width: 100%; aspect-ratio: 4 / 3; max-height: 360px; background: #DCD6C8; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credit { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.extlink { color: var(--clay); font-weight: 600; text-decoration: none; }
.cstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.cstrip::-webkit-scrollbar { display: none; }
.cph { position: relative; flex: none; width: 104px; height: 104px; border: 0; border-radius: 12px; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cph img { width: 100%; height: 100%; object-fit: cover; }
.cph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard .wteaser p { margin: 0 0 8px; line-height: 1.55; font-size: 15px; }
.wcard .wteaser { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.wiki p { margin: 0 0 10px; line-height: 1.6; font-size: 15.5px; }
.wiki h3 { font-family: var(--display); font-size: 20px; margin: 18px 0 6px; }
.wiki h4 { font-size: 16px; margin: 12px 0 4px; }
.wtitle { font-family: var(--display); font-size: 26px; margin: 4px 0 2px; }
.wfoot { font-size: 12.5px; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.note.wsrc { background: #EEF0F4; color: #3E4A5C; }
.lexthumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; }
.cwrap { flex: none; width: 104px; display: flex; flex-direction: column; gap: 2px; }
.cname { font-size: 13px; min-height: 28px; padding: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Melden, Blockieren, Moderation */
.report-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; align-self: flex-start; min-height: 36px; padding: 0; }
.person-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.bubble .del.melden { color: var(--muted); }
.radio-row { cursor: pointer; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--clay); flex: none; }
.danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.mod-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-btns .btn { min-height: 38px; padding: 0 12px; font-size: 14px; width: auto; }
