/* Dashboard Tools – mobile first, hell/dunkel */
:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #14161f;
  --muted: #5b6172;
  --border: #e2e5ee;
  --accent: #4f46e5;
  --accent-text: #ffffff;
  --accent-soft: #eceafd;
  --danger: #c62828;
  --danger-soft: #fdecea;
  --ok: #1b7f3b;
  --ok-soft: #e6f5ea;
  --warn: #8a5a00;
  --warn-soft: #fff3d6;
  --shadow: 0 1px 2px rgba(20, 22, 31, .06), 0 4px 14px rgba(20, 22, 31, .05);
  --radius: 14px;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117; --card: #171a23; --text: #e8eaf2; --muted: #9aa1b5; --border: #262b38;
    --accent: #8b93ff; --accent-text: #0f1117; --accent-soft: #23264a;
    --danger: #ff8a80; --danger-soft: #3a1d1d; --ok: #7ad394; --ok-soft: #16301f;
    --warn: #ffcf6b; --warn-soft: #3a2f12; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1117; --card: #171a23; --text: #e8eaf2; --muted: #9aa1b5; --border: #262b38;
  --accent: #8b93ff; --accent-text: #0f1117; --accent-soft: #23264a;
  --danger: #ff8a80; --danger-soft: #3a1d1d; --ok: #7ad394; --ok-soft: #16301f;
  --warn: #ffcf6b; --warn-soft: #3a2f12; --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.boot { text-align: center; color: var(--muted); padding: 4rem 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: .6rem; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: .9rem; }

/* Seitenrahmen */
.page { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
.page.narrow { max-width: 440px; padding-bottom: 32px; }
.page.center { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.demo-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .85rem; padding: 6px 12px; }

/* Karten */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.brand { text-align: center; margin-bottom: 18px; }
.brand .logo { font-size: 2.4rem; }
.brand h1 { margin: .2em 0 .1em; }

/* Knöpfe */
.btn {
  appearance: none; border: 1px solid var(--border); background: var(--card); color: var(--text);
  border-radius: 12px; padding: 12px 16px; min-height: 46px; cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 8px 12px; font-size: .9rem; border-radius: 10px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, .tile:focus-visible, .nav a:focus-visible, .tab:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent); cursor: pointer; text-decoration: underline; }

/* Formulare */
.field { display: block; }
.field > span { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg);
}
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tabs { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 3px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* Hinweise */
.msg { border-radius: 12px; padding: 10px 12px; font-size: .92rem; margin: 0 0 12px; }
.msg.error { background: var(--danger-soft); color: var(--danger); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.info { background: var(--accent-soft); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }

/* Kopf, Navigation */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.top h1 { margin: 0; font-size: 1.35rem; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
}
.nav-inner { display: flex; width: 100%; max-width: 760px; }
.nav a {
  flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: .78rem; color: var(--muted); text-decoration: none; position: relative;
}
.nav a .ico { font-size: 1.3rem; line-height: 1; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav .dot { position: absolute; top: 9px; left: calc(50% + 10px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Kacheln */
.fm-up-row .linkbtn { text-decoration: none; color: var(--text); }
.emo { display: inline-flex; vertical-align: -.2em; margin-right: .1em; }
.emo svg { display: block; }
.tool-ico { display: inline-flex; vertical-align: -.12em; }
.tool-ico svg { display: block; }
.tile.arranging { cursor: default; }
.tile.arranging { position: relative; }
.tile-bar { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tile-grip, .tile-size { font: inherit; font-size: .8rem; font-weight: 600; line-height: 1; padding: 8px 10px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); box-shadow: var(--shadow); white-space: nowrap; }
.tile-grip { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.tile-size { cursor: pointer; }
.tile-size[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: transparent; }
.tile.dragging { position: relative; z-index: 20; opacity: .92; box-shadow: 0 12px 30px rgba(0,0,0,.35); pointer-events: none; transition: none; }
.tiles .tile { transition: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); min-height: 140px;
}
.tile .ico { font-size: 2rem; line-height: 1; }
.tile strong { font-size: 1.05rem; }
.tile .desc { color: var(--muted); font-size: .85rem; }
.tile:active { transform: translateY(1px); }

/* Listen */
.list > * + * { margin-top: 10px; }
.item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.item .name { font-weight: 700; overflow-wrap: anywhere; }
.item .mail { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Schalter */
.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .15s; }
.switch i::after { content: ""; position: absolute; width: 24px; height: 24px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.frow:first-of-type { border-top: 0; }

/* Dialog / Sheet */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--card); width: 100%; max-width: 640px; max-height: 88vh; overflow: auto;
  border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 20px; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: .92rem; max-width: 90vw; }
.toast.error { background: var(--danger); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty .ico { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── Tool Zufall ─────────────────────────────────────── */
.rnd-card { text-align: center; display: flex; flex-direction: column; gap: 16px; }
.rnd-result { font-size: 1.6rem; font-weight: 700; min-height: 2.2rem; margin: 0; letter-spacing: -.01em; }
.rnd-result.big { font-size: 2.6rem; overflow-wrap: anywhere; line-height: 1.15; min-height: 3rem; }
.rnd-result.spinning { opacity: .55; }
.rnd-count { margin: -8px 0 0; }
.rnd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rnd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.rnd-card textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); resize: vertical; min-height: 140px; }
.rnd-order { text-align: left; margin: 0; padding-left: 1.6rem; display: grid; gap: 6px; }
.rnd-order:empty { display: none; }

.coin-stage { perspective: 800px; display: flex; justify-content: center; padding: 14px 0 4px; }
.coin { width: 150px; height: 150px; position: relative; transform-style: preserve-3d; transition: transform 1.25s cubic-bezier(.2, .7, .2, 1); cursor: pointer; }
.coin-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #5b4310;
  background: repeating-conic-gradient(from 0deg, #d9b968 0 3deg, #c3a04f 3deg 6deg);          /* geriffelter Rand */
  box-shadow: 0 14px 26px rgba(0,0,0,.20), 0 2px 4px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.35); }
.coin-face::before { content: ''; position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #f6e6b0 0%, #e3c677 38%, #cfae5c 72%, #bd9944 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,.55), inset 0 -3px 7px rgba(110,75,10,.35), 0 0 0 1px rgba(110,75,10,.28); }
.coin-face::after { content: ''; position: absolute; inset: 20px; border-radius: 50%; border: 1.5px solid rgba(110,75,10,.28); box-shadow: 0 1px 0 rgba(255,255,255,.4); }
.coin-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.coin-crown { width: 50px; height: 50px; fill: currentColor; filter: drop-shadow(0 1px 0 rgba(255,255,255,.45)); }
.coin-one { font: 700 3.1rem/1 Georgia, 'Times New Roman', serif; }
.coin-label { font-size: .66rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; }
.coin-face.back { transform: rotateY(180deg); }
.coin-stage::after { content: none; }

.dice-stage { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; min-height: 92px; align-items: center; padding: 6px 0; }
.die { width: 76px; height: 76px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow), inset 0 -3px 0 rgba(0,0,0,.05); display: flex; align-items: center; justify-content: center; }
.die.rolling { animation: dieShake .14s linear infinite; }
.die-num { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pips { width: 52px; height: 52px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.pips i { display: block; width: 12px; height: 12px; margin: auto; border-radius: 50%; background: transparent; }
.pips i.on { background: var(--text); }
@keyframes dieShake { 0% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-3px); } 100% { transform: rotate(-6deg) translateY(0); } }

.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper-btn { width: 44px; padding: 0; font-size: 1.2rem; }
.stepper-val { min-width: 1.5rem; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { .die.rolling { animation: none; } .coin { transition: none; } }

/* ── Tool Split ──────────────────────────────────────── */
.split-title { font-size: 1.05rem; overflow-wrap: anywhere; }
.split-group { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); cursor: pointer; min-height: 60px; }
.split-group strong { flex: 1; font-size: 1.02rem; }
.split-gico { font-size: 1.6rem; }
.split-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.split-row input, .split-row select, .card .field select, .split-for, .sheet .split-row select { min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); width: 100%; }
.split-row > select:first-child { width: auto; }
.split-emoji { width: 64px !important; text-align: center; }
.split-form-note { margin: 0; }
.split-parts { display: grid; gap: 4px; }
.split-part { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 2px 4px; }
.split-part input[type=checkbox], .split-check input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.split-val { width: 96px; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); text-align: right; }
.split-info { min-height: 1.2em; margin: 6px 0 0; }
.split-for { margin: 0; border: 1px solid var(--border); padding: 8px 12px 10px; }
.split-for legend { font-size: .875rem; font-weight: 600; padding: 0 6px; }
.split-checks { display: grid; gap: 4px; }
.split-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.split-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.split-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.split-item strong { overflow-wrap: anywhere; }
.split-cat { font-size: 1.3rem; width: 1.6rem; text-align: center; flex: none; }
.split-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.split-amt.pos { color: var(--ok); } .split-amt.neg { color: var(--danger); }
.split-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.split-x:hover { background: var(--danger-soft); color: var(--danger); }
.split-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.split-rate .split-val { width: 110px; }
.split-round summary { cursor: pointer; font-weight: 600; }
.split-round > * + * { margin-top: 10px; }
.sheet h2 { margin: 0; font-size: 1.15rem; }

.split-modes { justify-content: flex-start; margin: 6px 0 8px; }

/* Split: Erweiterungen */
.split-item.tap { cursor: pointer; }
.split-item.tap:active { background: var(--bg); }
.split-item.tap:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }
.split-gico.big { font-size: 2rem; width: 56px; height: 46px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.split-name { display: flex; gap: 10px; align-items: center; }
.emoji-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.emoji-btn { min-height: 46px; font-size: 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); cursor: pointer; }
.emoji-btn[aria-pressed="true"] { border-color: currentColor; background: var(--bg); box-shadow: inset 0 0 0 1px currentColor; }
.split-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.split-photo { display: block; width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); }
.split-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.split-kpis div { display: flex; flex-direction: column; gap: 2px; }
.split-kpis strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.split-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.split-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.split-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 4px; }
.split-bar i { display: block; height: 100%; background: currentColor; opacity: .75; border-radius: 3px; }

.emoji-grid[hidden] { display: none; }
button.split-gico.big { cursor: pointer; padding: 0; }
.ico-svg { vertical-align: -3px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.ico-svg line { fill: none; }

/* King's Cup */
.kc-hero { text-align: center; display: grid; gap: 12px; padding: 24px 16px; }
.kc-crown { font-size: 3rem; }
.kc-basics summary { cursor: pointer; font-weight: 600; }
.kc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.kc-list li { display: flex; gap: 12px; align-items: flex-start; }
.kc-list li > span { font-size: 1.3rem; width: 1.6em; text-align: center; flex: none; }
.kc-stage { min-height: 250px; display: grid; place-items: center; }
.kc-card { position: relative; width: 150px; height: 214px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.12); color: var(--text, inherit); display: grid; place-items: center; }
.kc-card.red { color: #c0392b; }
.kc-pip { font-size: 4.2rem; line-height: 1; }
.kc-corner { position: absolute; top: 10px; left: 13px; display: flex; flex-direction: column; align-items: center; font-weight: 700; line-height: 1.05; font-size: 1.15rem; }
.kc-corner.end { top: auto; left: auto; bottom: 10px; right: 13px; transform: rotate(180deg); }
.kc-kings { color: var(--muted); font-weight: 600; }
.kc-ruletext p { margin: 6px 0 0; }
.kc-final { color: var(--danger, #c0392b); font-weight: 700; }

.offline-bar { position: sticky; top: 0; z-index: 20; text-align: center; font-size: .85rem; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--border); color: var(--muted); }

.split-review-card { display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%; cursor: pointer; border-color: currentColor; font: inherit; color: inherit; }
.split-hint { margin: 0; text-align: center; }
.badge { font-size: .72rem; }

.rights-more { margin-top: 10px; }
.rights-more summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 6px 0; }
.rights-more.dim { opacity: .5; }

/* Restaurant Roulette */
.rr-cui summary { cursor: pointer; padding: 6px 0; color: var(--muted); font-size: .95rem; }
.rr-cui-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding: 8px 2px; }
.rr-counter { margin: 0; }
.rr-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; width: 100%; padding: 18px 14px; cursor: pointer; font: inherit; color: inherit; animation: rr-in .35s ease-out both; }
.rr-pick strong { font-size: 1.15rem; }
.rr-pick:first-child { border-color: currentColor; }
.rr-pick-ico { font-size: 1.9rem; }
.rr-spin { text-align: center; padding: 26px 14px; font-size: 1.1rem; opacity: .7; }
@keyframes rr-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rr-pick { animation: none; } }

.rr-review { padding: 10px 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.rr-review:first-of-type { border-top: 0; }
.rr-badge { min-width: 38px; text-align: center; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.rr-score-big { display: flex; align-items: baseline; gap: 2px; font-size: 1.7rem; }
.rr-score { display: grid; grid-template-columns: 1fr 1.4fr 28px; align-items: center; gap: 10px; }
.rr-score.dim { opacity: .35; }
.rr-score input[type=range] { width: 100%; accent-color: currentColor; }
.rr-val { font-weight: 700; text-align: right; }
.rr-solo summary { cursor: pointer; font-weight: 600; }
.rr-solo form { margin-top: 12px; }
.rr-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rr-pos { width: 1.6em; text-align: center; font-weight: 700; color: var(--muted); }

/* Restaurant Roulette – Teil 3 */
.rr .tabs { overflow-x: auto; scrollbar-width: none; }
.rr .tabs::-webkit-scrollbar { display: none; }
.rr .tabs .tab { flex: 0 0 auto; white-space: nowrap; }
.rr-react { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rr-em { min-height: 32px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font: inherit; font-size: .9rem; cursor: pointer; color: inherit; }
.rr-em[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.rr-event { display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.rr-note.pinned { border-color: currentColor; }
.rr-poll-opt { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; color: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.rr-poll-opt i { position: absolute; inset: 0 auto 0 0; background: currentColor; opacity: .12; }
.rr-poll-opt[aria-pressed="true"] { border-color: currentColor; font-weight: 700; }
.rr-poll-opt:disabled { cursor: default; opacity: .85; }
.rr-poll-l, .rr-poll-n { position: relative; }
.rr-poll-n { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.rr-quiz-opt { min-height: 46px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.rr-quiz-opt:disabled { cursor: default; }
.rr-quiz-opt.right { border-color: currentColor; font-weight: 700; }
.rr-quiz-opt.wrong { opacity: .6; text-decoration: line-through; }
.rr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rr-stats .card { display: grid; gap: 2px; text-align: center; padding: 12px 6px; }
.rr-big { font-size: 1.5rem; }

/* Rezepte */
.rc-card { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 10px; }
.rc-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--bg); }
.rc-noimg { display: grid; place-items: center; font-size: 1.6rem; border: 1px solid var(--border); }
.rc-cover { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.rc-chips { justify-content: flex-start; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.sm { min-height: 30px; padding: 2px 10px; font-size: .85rem; }
.rc-ing { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid var(--border); }
.rc-amt { font-weight: 600; text-align: right; }
.rc-step { display: flex; align-items: center; gap: 8px; }
.rc-serv { min-width: 6.5em; text-align: center; font-size: .9rem; }
.rc-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-file .split-photo { max-width: 100%; }
.rc-have summary { cursor: pointer; font-weight: 600; }
.rc .btn[aria-pressed="true"] { border-color: currentColor; }
.rc input[type=search], .rc input[type=text], .rc input[type=url], .rc input[type=number], .rc textarea, .rc select { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font: inherit; color: inherit; }
.rc textarea { resize: vertical; }
.rc input[type=file] { width: 100%; }

/* Film & Serien */
.fm-card { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 10px; }
.fm-poster { width: 56px; height: 84px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--bg); }
.fm-poster-big { width: 110px; height: 165px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--bg); }
.fm-noimg { display: grid; place-items: center; font-size: 1.6rem; border: 1px solid var(--border); }
.fm-poster-big.fm-noimg { font-size: 2.6rem; }
.fm-head { display: flex; gap: 14px; align-items: flex-start; }
.film input[type=search], .film input[type=text], .film input[type=url], .film input[type=number], .film textarea, .film select { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font: inherit; color: inherit; }
.film textarea { resize: vertical; }
.film .btn[aria-pressed="true"] { border-color: currentColor; font-weight: 700; }
.fm-filter summary { cursor: pointer; font-weight: 600; }
.overlay input[type=search], .overlay input[type=url], .overlay input[type=number], .overlay textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font: inherit; color: inherit; }
.overlay textarea { resize: vertical; }
[hidden] { display: none !important; }

/* Reisen */
.tr-card { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.tr-val { white-space: pre-wrap; word-break: break-word; }
#tr-print { display: none; }
@media print {
  body.print-travel > *:not(#tr-print) { display: none !important; }
  body.print-travel #tr-print { display: block !important; color: #000; background: #fff; font: 14px/1.5 system-ui, sans-serif; padding: 16px; }
  #tr-print h1 { font-size: 22px; margin: 0 0 4px; } #tr-print h2 { font-size: 16px; margin: 16px 0 4px; border-bottom: 1px solid #999; } #tr-print pre { white-space: pre-wrap; font: inherit; margin: 0; } #tr-print p { margin: 2px 0; }
}

/* LoRa */
.lora-log { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; min-height: 140px; overflow-y: auto; padding: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.lora-msg { align-self: flex-start; max-width: 85%; padding: 7px 11px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); overflow-wrap: anywhere; }
.lora-msg.mine { align-self: flex-end; background: var(--accent-soft); }
.lora-from { font-size: .72rem; font-weight: 700; color: var(--muted); }
.lora-meta { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.lora-empty { margin: auto; }
.lora-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.lora-map { width: 100%; height: 360px; border-radius: 12px; display: block; touch-action: manipulation; }
.lora-map-card { display: flex; flex-direction: column; gap: 8px; }
.lora-node { border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lora-node > .row { width: 100%; }
.lora-err { color: var(--danger); font-size: .9rem; }
.lora-sosbtn { padding-block: 16px; font-size: 1.1rem; }
.lora-steps { padding-left: 1.2rem; display: grid; gap: 4px; }

/* Installationshinweis */
.install-hint { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 460px; margin: 0 auto; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0, 0, 0, .28); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.install-hint p { margin: 0; }
.install-actions { flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Kacheln mit Bild */
.tile-photo { height: 84px; overflow: hidden; background: var(--border); }
.tile-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
a.tile:hover .tile-photo-img { transform: scale(1.04); }
.tile .tile-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; flex: 1; }
.tile.wide .tile-photo { height: 110px; }
.tile-row { display: flex; gap: 12px; align-items: stretch; padding: 12px 14px 14px; }
.tile-row .tile-body { padding: 0; }
/* Breite Kacheln mit Inhalt */
.tile.wide { grid-column: 1 / -1; }
.tile-img { width: 72px; height: 108px; object-fit: cover; border-radius: 8px; flex: none; background: var(--border); }
.tile-hot { font-size: .72rem; font-weight: 700; color: var(--accent); }
.tile-hl { font-weight: 700; overflow-wrap: anywhere; }

/* ── Design-Stil „Modern“ (dunkel, große Bilder). „Klassisch“ ist alles oben; hier nur Zusätze. ── */
.tile-badge, .tile-arrow, .top-sub, .top-profile { display: none; }
.top-title { min-width: 0; flex: 1; }
:root[data-style="modern"] {
  --bg: #090c17; --card: #121728; --text: #f3f5fc; --muted: #aab2c9; --border: rgba(255,255,255,.1);
  --accent: #8b93ff; --accent-text: #0b0d18; --accent-soft: #232750; --shadow: none; --radius: 26px;
}
:root[data-style="modern"] body { background: radial-gradient(120% 60% at 50% -10%, #1c2250 0%, #090c17 55%) fixed, #090c17; }
:root[data-style="modern"] .top { align-items: flex-start; margin-bottom: 18px; }
:root[data-style="modern"] .top h1 { font-size: 2rem; line-height: 1.1; }
:root[data-style="modern"] .top-sub { display: block; margin: 4px 0 0; color: var(--muted); font-size: 1.05rem; }
:root[data-style="modern"] .top-profile { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 1.3rem; flex: none; }
:root[data-style="modern"] .tiles { gap: 14px; }
:root[data-style="modern"] .tile { position: relative; min-height: 210px; border-radius: 26px; border: 1px solid rgba(255,255,255,.12); background: #0d1120; color: #fff; justify-content: flex-end; isolation: isolate; --glow: #8b93ff; }
:root[data-style="modern"] .tile .tile-photo { position: absolute; inset: 0; height: auto; z-index: -2; background: #0d1120; }
:root[data-style="modern"] .tile .tile-photo-img { filter: saturate(1.05) contrast(1.02); }
:root[data-style="modern"] .tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,9,18,.05) 20%, rgba(7,9,18,.55) 58%, rgba(7,9,18,.92) 100%); }
:root[data-style="modern"] .tile::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, var(--glow) 0%, transparent 70%); opacity: .55; pointer-events: none; }
:root[data-style="modern"] .tile .tile-body { flex: none; padding: 0 64px 16px 16px; gap: 6px; }
:root[data-style="modern"] .tile strong { font-size: 1.25rem; line-height: 1.15; color: #fff; }
:root[data-style="modern"] .tile .desc { color: #c9cee0; font-size: .92rem; }
:root[data-style="modern"] .tile .tile-hl { color: #fff; }
:root[data-style="modern"] .tile .tile-badge { display: flex; position: absolute; top: 14px; left: 14px; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(12,15,28,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 1.45rem; color: #fff; }
:root[data-style="modern"] .tile .tile-arrow { display: flex; position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(10,12,24,.85); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 1.1rem; }
:root[data-style="modern"] .tile.arranging .tile-badge { display: none; }
:root[data-style="modern"] .tile.arranging .tile-arrow { display: none; }
:root[data-style="modern"] .tile.arranging .tile-body { padding-right: 16px; }
:root[data-style="modern"] .tile-row { padding: 0 16px 16px; }
:root[data-style="modern"] .tile.wide { min-height: 240px; }
:root[data-style="modern"] .tile.wide .tile-photo { height: auto; }
:root[data-style="modern"] .tile-row .tile-body { padding: 0; }
:root[data-style="modern"] .tile-grip, :root[data-style="modern"] .tile-size { background: rgba(12,15,28,.78); color: #fff; border-color: rgba(255,255,255,.16); }
:root[data-style="modern"] .tile.tool-film { --glow: #f59e0b; }
:root[data-style="modern"] .tile.tool-rr { --glow: #ef4444; }
:root[data-style="modern"] .tile.tool-recipes { --glow: #22c55e; }
:root[data-style="modern"] .tile.tool-random { --glow: #3b82f6; }
:root[data-style="modern"] .tile.tool-split { --glow: #8b5cf6; }
:root[data-style="modern"] .tile.tool-kingscup { --glow: #16a34a; }
:root[data-style="modern"] .tile.tool-rowing { --glow: #06b6d4; }
:root[data-style="modern"] .tile.tool-lora { --glow: #14b8a6; }
:root[data-style="modern"] .tile.tool-travel { --glow: #f97316; }
:root[data-style="modern"] .nav { background: transparent; border-top: 0; padding: 0 10px calc(8px + env(safe-area-inset-bottom)); pointer-events: none; }
:root[data-style="modern"] .nav-inner { pointer-events: auto; background: rgba(18,22,40,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 30px; }
:root[data-style="modern"] .nav a[aria-current="page"] { color: var(--accent); }
:root[data-style="modern"] .top h1 { font-size: 1.7rem; }
:root[data-style="modern"] .top-sub { font-size: .95rem; }
:root[data-style="modern"] .top-profile { width: 46px; height: 46px; }
:root[data-style="modern"] .tile { min-height: 260px; }
:root[data-style="modern"] .tile::before { background: linear-gradient(180deg, rgba(7,9,18,.0) 12%, rgba(7,9,18,.62) 48%, rgba(7,9,18,.95) 100%); }
:root[data-style="modern"] .tile .tile-body { padding: 0 14px 14px; }
:root[data-style="modern"] .tile strong { font-size: 1.12rem; }
:root[data-style="modern"] .tile .desc { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 44px; }
:root[data-style="modern"] .tile .tile-arrow { width: 36px; height: 36px; right: 12px; bottom: 12px; font-size: 1rem; }
:root[data-style="modern"] .tile .tile-badge { width: 42px; height: 42px; font-size: 1.25rem; }
:root[data-style="modern"] .top h1 { font-size: 1.5rem; }

/* Film-Startseite */
.fm-sec { gap: 8px; }
.fm-sec-h { margin: 6px 0 0; font-size: 1.05rem; }
.fm-strip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.fm-strip-item { flex: none; width: 108px; display: flex; flex-direction: column; gap: 4px; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; scroll-snap-align: start; cursor: pointer; }
.fm-strip-item strong { font-size: .88rem; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-strip-img { width: 108px; height: 162px; object-fit: cover; border-radius: 12px; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.fm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.fm-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fm-stat strong { font-size: 1.3rem; }
