:root {
  --bg: #fbfbf9; --fg: #1b1b1a; --muted: #6d6d68; --line: #e4e3de; --card: #ffffff;
  --accent: #b3261e; --chip: #efeee9; --past: #b9b8b2; --orig: #1f5f8b;
  --blk-s: 60%; --blk-l: 92%; --blk-edge: 42%;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --fg: #ecebe6; --muted: #9a9993; --line: #2a2a28; --card: #1a1a19;
    --accent: #e5383b; --chip: #262624; --past: #55554f; --orig: #7cc0ef;
    --blk-s: 28%; --blk-l: 21%; --blk-edge: 62%; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --fg: #ecebe6; --muted: #9a9993; --line: #2a2a28; --card: #1a1a19;
  --accent: #e5383b; --chip: #262624; --past: #55554f; --orig: #7cc0ef;
  --blk-s: 28%; --blk-l: 21%; --blk-edge: 62%; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, header.top, footer { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

header.top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand-h { margin: 0; font-size: inherit; }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--fg); }
button.icon { background: none; border: 1px solid var(--line); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
button.icon svg { width: 16px; height: 16px; }
button.icon:disabled { opacity: .3; cursor: default; }
button.link { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--muted); cursor: pointer; }

h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 28px 0 12px; }

/* ---------- Startseite: Kinosaal-Foto + Glaskarte in Gold (Entwurf F7) ---------- */
.start header.top, .start footer { display: none; }
.start main { max-width: none; padding: 0; position: relative; z-index: 2; }
.start body { background: #140406; color: #fff4ec; }
.start-bg { display: none; }
.start .start-bg { display: block; }
.start-bg .photo { position: fixed; inset: -20px; z-index: 0;
  background: url(/img/redlights.jpg) center 30% / cover no-repeat; opacity: .9; filter: brightness(.75); }
.start-bg .tint { position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(20,4,6,.25), transparent 30%, transparent 70%, rgba(20,4,6,.7)); }
.setup { --gold-a: #f7dc94; --gold-b: #d6a03f;
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; }
.setup .start-card { display: grid; gap: 18px; padding: 30px 24px; border-radius: 28px; width: min(100%, 440px);
  background: rgba(26, 6, 9, .55); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(247, 220, 148, .28); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); color: #fff4ec; }
.setup .q { margin: 0; font-size: clamp(1.6rem, 5.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.setup .addr-row { position: relative; display: flex; align-items: center; background: rgba(255, 240, 230, .08); border-radius: 999px; padding-left: 18px; }
.setup .addr-row input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1.05rem; padding: 14px 0; color: inherit; }
.setup .addr-row input::placeholder { color: rgba(255, 235, 220, .55); }
.setup .gps { position: static; transform: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--gold-a); cursor: pointer; }
.setup .gps svg { width: 22px; height: 22px; }
.setup .modes { display: flex; gap: 8px; width: 100%; border: 0; border-radius: 0; overflow: visible; }
.setup .modes button { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border: 0; border-radius: 18px;
  background: rgba(255, 240, 230, .07); color: rgba(255, 240, 230, .82); font-weight: 600; font-size: .85rem; cursor: pointer; transition: transform .15s; }
.setup .modes button + button { border-left: 0; }
.setup .modes button svg { width: 22px; height: 22px; }
.setup .modes button[aria-checked="true"] { background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); color: #2a1504; transform: translateY(-1px); }
.setup .range { display: grid; gap: 10px; }
.setup .range-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup .range output { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.setup .more { border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; background: rgba(255, 240, 230, .12); color: #fff4ec; }
.setup input[type=range] { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border-radius: 99px; margin: 0;
  background: linear-gradient(90deg, var(--gold-a), var(--gold-b)) 0 / var(--p, 50%) 100% no-repeat, rgba(255, 240, 230, .14); }
.setup input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff8f0; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); cursor: grab; }
.setup input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff8f0; border: 0; }
.setup input[type=range]:focus { outline: none; }
.setup input[type=range]:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.setup .msg { margin: 0; color: #ffc2b0; font-size: .9rem; }
.setup .msg:empty { display: none; }
.setup .primary { padding: 16px; border: 0; border-radius: 999px; font-weight: 800; font-size: 1.05rem; cursor: pointer;
  background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); color: #2a1504; box-shadow: 0 10px 30px rgba(247, 220, 148, .3); }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: max-content; }
.seg button { background: var(--card); border: 0; padding: 8px 14px; cursor: pointer; }
.seg.small button { padding: 5px 10px; font-size: .9rem; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-checked="true"] { background: var(--fg); color: var(--bg); }

/* ---------- Ergebnis-Kopf ---------- */
.summary { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.summary:hover { border-color: var(--fg); }
.summary .back { width: 18px; height: 18px; flex: none; color: var(--muted); }
.summary #sum-text { flex: 1; min-width: 0; }
.summary .edit-label { flex: none; font-size: .85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fg); color: var(--bg); }
h1 a { color: inherit; text-decoration: none; }
.lang { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }
.lang select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); }
a.cname { text-decoration: none; }
a.cname:hover { color: var(--accent); }
.cinema-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; background: var(--card); }
.cinema-box summary { cursor: pointer; color: var(--muted); }
.cinema-list { list-style: none; margin: 8px 0 4px; padding: 0; columns: 2 340px; column-gap: 28px; }
.cinema-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; break-inside: avoid; border-top: 1px solid var(--line); }
.cinema-list label { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.cinema-list .cn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cinema-list .ca { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cinema-list .cm { font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.route { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.route:hover { color: var(--accent); border-color: currentColor; }
.route svg { width: 15px; height: 15px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 4px 0 10px; }
.toolbar .sort { margin-left: auto; }
.sort { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }
.sort select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); }

.tag { display: inline-block; font-size: .68rem; line-height: 1.5; padding: 0 4px; border-radius: 4px; background: var(--chip); margin-left: 4px; font-weight: 600; vertical-align: 1px; }
.tag.orig { background: var(--orig); color: var(--bg); }
.ratings { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; font-weight: 600; margin-top: 4px; }
.ratings a { text-decoration: none; }
.ratings a:hover { text-decoration: underline; }

/* ---------- Tage: Tabs + wischbare Tagesseiten ---------- */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); padding: 10px 0; margin: 0 -16px; padding-inline: 16px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-width: 64px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-weight: 600; line-height: 1.2; text-align: center; }
.tabs button small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tabs button[aria-selected="true"] small { color: inherit; opacity: .75; }

.carousel { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; transition: height .2s; margin: 0 -16px; }
.carousel::-webkit-scrollbar { display: none; }
.dp { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 0 16px 8px; }
.dp-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 8px; color: var(--muted); font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.card { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.poster { width: 128px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; background: var(--chip); display: block; }
.ci { min-width: 0; }
.ci h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.ci .ot { font-size: .82rem; font-style: italic; }
.ci .meta { font-size: .82rem; margin-top: 2px; }
.cin { margin-top: 10px; }
.cname { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.t { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }
.t:hover { border-color: var(--fg); }
.t .tag { margin-left: 2px; }
.t.past { opacity: .4; }
.legend { margin: 18px 0 0; }
#empty { padding: 24px 0; }

@media (max-width: 560px) {
  .card { grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; }
  .poster { width: 96px; }
  h1 { font-size: 1.6rem; margin-top: 20px; }
}

footer { padding-top: 32px; padding-bottom: 40px; }

/* ---------- Kinoseite ---------- */
.kino { max-width: 900px; }
.backlink { display: inline-block; margin-top: 18px; text-decoration: none; color: var(--muted); font-weight: 600; }
.backlink:hover { color: var(--fg); }
.kino h1 { margin: 8px 0 4px; }
.kino h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.kino-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.btn { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; font-weight: 600; font-size: .92rem; }
.btn:hover { border-color: var(--fg); }
.route-box { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px; }
.route-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 10px; }
.route-sum { font-size: .95rem; }
.map { height: min(52vh, 460px); border-radius: 10px; overflow: hidden; background: var(--chip); z-index: 0; }
.steps { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: .92rem; }
.steps li { padding-left: 4px; }
.steps li small { margin-left: 8px; }
.pday { font-size: 1rem; margin: 18px 0 6px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plist li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plist .pt { font-weight: 600; min-width: 200px; flex: 1; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.7) invert(1) contrast(.9) hue-rotate(180deg) saturate(.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: brightness(.7) invert(1) contrast(.9) hue-rotate(180deg) saturate(.5); } }

/* ---------- Pill-Leiste + Auswahlblätter (Muster aus der Watchlist-App) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 6px; padding: 2px 16px 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; cursor: pointer; font: inherit; font-weight: 500; font-size: .85rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); white-space: nowrap; }
.chip:hover { border-color: var(--fg); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-count { background: #2a2a2a; border-color: #2a2a2a; color: #fff; font-weight: 600; cursor: default; }
.chip-count.on { cursor: pointer; background: var(--accent); border-color: var(--accent); }
.chip-search { font-weight: 600; }
.chip-reset { color: var(--muted); border-style: dashed; }
dialog.sheet { margin: auto auto 0; width: min(100%, 560px); max-width: 100%; max-height: 80dvh; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 18px 18px 0 0; background: var(--bg); color: var(--fg); box-shadow: 0 -10px 40px rgba(0,0,0,.25); overflow: auto; }
dialog.sheet[open] { animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .5; } }
dialog.sheet::backdrop { background: rgba(0,0,0,.4); }
.sheet-handle { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 4px; }
.sheet-head h2 { margin: 0; font-size: 1.1rem; }
.sheet-body { padding: 4px 16px 8px; display: grid; gap: 14px; }
.sheet-done { display: block; width: calc(100% - 32px); margin: 4px 16px 0; padding: 13px; border: 0; border-radius: 12px; background: var(--fg); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; }
.opts { display: grid; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt span { flex: 1; }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.rg { display: grid; gap: 6px; }
.rg span { display: flex; justify-content: space-between; }
.rg input[type=range] { width: 100%; accent-color: var(--accent); }
.sheet .cinema-list { columns: 1; margin: 0; }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 18px; } }

/* ---------- Filmkarten im Hero-Stil der Watchlist ---------- */
.card { position: relative; overflow: hidden; display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid rgba(0,0,0,.15); background: #2a2a2c; color: #fff; box-shadow: 0 10px 30px -14px rgba(0,0,0,.5); cursor: pointer; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card .card-bg, .fd-hero .card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(.5) saturate(1.1); transform: scale(1.2); z-index: 0; pointer-events: none; }
.card .poster { position: relative; z-index: 1; width: 128px; height: 100%; min-height: 192px; align-self: stretch; object-fit: cover; object-position: center top; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.5); background: rgba(255,255,255,.08); }
.card .ci { position: relative; z-index: 1; }
.card .ftitle { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.card .muted, .card .meta, .card .ot { color: rgba(255,255,255,.78); }
.card .cname { color: #fff; }
.card .cname small { color: rgba(255,255,255,.7); }
.card .t, .film-dlg .t { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.card .t:hover, .film-dlg .t:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.card .tag:not(.orig) { background: rgba(255,255,255,.2); color: #fff; }
.card .tag.orig { background: #7cc0ef; color: #0b1a26; }
@media (max-width: 560px) {
  .card { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
  .card .poster { width: 96px; min-height: 144px; }
}

/* Bewertungs-Pille ("two pills" aus der Watchlist) */
.ratings.two { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; font-size: .72rem; }
.ratings.two .one { display: inline-flex; align-items: center; height: 24px; padding: 0 10px 0 9px; gap: 7px; border-radius: 999px; white-space: nowrap; line-height: 1; font-weight: 600;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); color: #fff; }
.ratings.two .sep { width: 1px; height: 12px; background: rgba(255,255,255,.3); flex: none; }
.ratings.two .rating { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; color: inherit; }
.ratings.two .rating b { font-size: inherit; }
.logo-imdb { background: #f5c518; color: #000; font-weight: 800; font-size: .54rem; letter-spacing: -.02em; padding: 1px 3px; border-radius: 3px; line-height: 1.2; }
.logo-tmdb { background: #01b4e4; color: #fff; font-weight: 800; font-size: .54rem; padding: 1px 3px; border-radius: 3px; line-height: 1.2; }
.logo-rt { width: 15px; height: 15px; margin-left: -2px; }
.logo-mc-mark { width: 15px; height: 15px; }

/* ---------- Film-Detail ---------- */
dialog.film-dlg { width: min(100%, 720px); max-width: 100%; max-height: 92dvh; padding: 0; border: 0; border-radius: 20px; background: var(--bg); color: var(--fg); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
dialog.film-dlg::backdrop { background: rgba(0,0,0,.6); }
.film-body { max-height: 92dvh; overflow: auto; }
.fd-hero { position: relative; overflow: hidden; background: #2a2a2c; color: #fff; }
.fd-player { position: relative; z-index: 1; aspect-ratio: 16/9; background: #000; }
.fd-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fd-top { position: relative; z-index: 1; display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px; }
.fd-top .poster { width: 140px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.fd-info h2 { margin: 0; font-size: 1.4rem; line-height: 1.2; padding-right: 36px; }
.fd-info .ot { font-style: italic; color: rgba(255,255,255,.75); font-size: .9rem; }
.fd-info .meta { color: rgba(255,255,255,.8); font-size: .85rem; margin-top: 3px; }
.fd-actions { margin-top: 12px; }
.fd-trailer { padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: #111; font: inherit; font-weight: 700; cursor: pointer; }
.fd-trailer:disabled { opacity: .7; }
.fd-text { padding: 6px 18px 22px; }
.fd-text h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.fd-day h4 { margin: 14px 0 4px; font-size: .9rem; color: var(--muted); }
.film-dlg .t { background: var(--card); border-color: var(--line); color: var(--fg); }
.film-dlg .t:hover { border-color: var(--fg); background: var(--card); }
@media (max-width: 560px) {
  dialog.film-dlg { margin: auto auto 0; border-radius: 18px 18px 0 0; }
  .fd-top { grid-template-columns: 100px 1fr; gap: 12px; padding: 14px; }
  .fd-top .poster { width: 100px; }
  .fd-info h2 { font-size: 1.15rem; }
}

/* ---------- Suche, Kino-Pill, Kino-Blatt, Genres, rote Regler ---------- */
.qbox { position: relative; margin: 2px 0 8px; }
.qbox svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.qbox input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); font: inherit; outline: none; }
.qbox input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.chip-kinos { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-kinos svg { width: 15px; height: 15px; }
/* Regler überall in der Hauptfarbe (Rot), mit gefüllter Spur */
input[type=range]:not(#max) { appearance: none; -webkit-appearance: none; height: 8px; border-radius: 99px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--p, 0%) 100% no-repeat, var(--chip); accent-color: var(--accent); }
input[type=range]:not(#max)::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 1px 6px rgba(0,0,0,.35); cursor: grab; }
input[type=range]:not(#max)::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
input[type=range]:not(#max)::-moz-range-progress { background: var(--accent); height: 8px; border-radius: 99px; }
.reach { display: grid; gap: 12px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.reach-from { font-size: .92rem; }
.reach-mode { display: flex; width: 100%; }
.reach-mode button { flex: 1; padding: 8px 4px; }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--muted); }
.cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cl li { display: flex; align-items: center; gap: 8px; }
.cl-row { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; min-width: 0; transition: border-color .15s, background .15s; }
.cl-row:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.cl-row input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; margin: 0; cursor: pointer; }
.cl-row input:checked { background: var(--accent); border-color: var(--accent); }
.cl-row input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.cl-txt { flex: 1; display: grid; min-width: 0; }
.cl-txt .cn { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-txt .ca { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-row .cm { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.genre-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip input { position: absolute; opacity: 0; pointer-events: none; }
.gchip span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: .9rem; }
.gchip span small { color: var(--muted); margin-left: 3px; }
.gchip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.gchip input:checked + span small { color: rgba(255,255,255,.8); }
.gchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.cname .loc { width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; }
.mi { width: 18px; height: 18px; vertical-align: -4px; }
.reach-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.qbox { margin-top: 10px; }

.brand .city { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: .8em; letter-spacing: 0; }

/* Startseite: Ecken wie Entwurf B2 (Niklas 2026-10-10), ohne Ticket-Kerben */
.setup .addr-row { border-radius: 8px; }
.setup .modes button { border-radius: 6px; }
.setup .primary { border-radius: 6px; padding: 18px; }
.setup .more { border-radius: 6px; }
.setup input[type=range] { height: 6px; border-radius: 2px; }

/* Startseite zarter (Niklas 2026-10-10): kleinere Karte, Schrift und Felder, mehr Rand */
.setup { padding: max(40px, 8vh) 28px; }
.setup .start-card { width: min(100%, 360px); gap: 14px; padding: 22px 20px; border-radius: 20px; }
.setup .q { font-size: clamp(1.2rem, 4.6vw, 1.5rem); line-height: 1.2; }
.setup .addr-row { padding-left: 14px; }
.setup .addr-row input { font-size: 1rem; padding: 10px 0; } /* 16px: verhindert Auto-Zoom auf iOS */
.setup .gps { width: 40px; height: 40px; }
.setup .gps svg, .setup .modes button svg { width: 18px; height: 18px; }
.setup .modes { gap: 6px; }
.setup .modes button { padding: 9px 4px; font-size: .8rem; gap: 3px; }
.setup .range { gap: 8px; }
.setup .range output { font-size: 1.8rem; }
.setup .more { padding: 4px 10px; font-size: .8rem; }
.setup .primary { padding: 13px; font-size: .95rem; }

/* ---------- Barrierefreiheit ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:where(a, button, input, select, summary, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.setup :where(a, button, input):focus-visible { outline-color: #f7dc94; }
.card :where(a, button):focus-visible, .film-dlg :where(a, button):focus-visible { outline-color: #fff; }
.ftitle { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.fopen { all: unset; cursor: pointer; text-align: left; color: inherit; font: inherit; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.fopen:hover { text-decoration: underline; text-underline-offset: 3px; }
.fopen:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 3px; }
.logo-tmdb { background: #0d253f; color: #90cea1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .chip.on, .tabs button[aria-selected="true"], .cl-row input:checked { forced-color-adjust: none; outline: 2px solid CanvasText; }
}
.start .skip { display: none; }

/* Startseite: kleinere Elemente, aber mehr Luft dazwischen (Niklas 2026-10-10) */
.setup .start-card { gap: 24px; padding: 34px 28px 30px; width: min(100%, 380px); }
.setup .q { margin-bottom: 4px; }
.setup .modes { gap: 10px; }
.setup .range { gap: 12px; }
.setup .primary { margin-top: 6px; }
.setup .addr-row { margin-bottom: 4px; } /* gleicher Abstand unter dem Feld wie zur Frage darüber */

/* Ladezustand Startkarte */
.setup.busy .start-card > *:not(.primary) { opacity: .45; transition: opacity .2s; }
.setup .primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.setup .primary:disabled { cursor: progress; }
.setup.busy .primary { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--gold-a), var(--gold-b), var(--gold-a)); animation: shimmer 1.4s linear infinite; }
.reel { width: 20px; height: 20px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Cover nicht strecken (Niklas 2026-10-10): festes 2:3-Format, oben ausgerichtet; ist die Karte höher, bleibt darunter Platz */
.card .poster { height: auto; min-height: 0; aspect-ratio: 2 / 3; align-self: start; object-position: center; }

/* ---------- Trailer-Player wie in der Watchlist (Ambilight, Play-Overlay, Fortschrittsleiste) ---------- */
:root { --play-size: 56px; --play-bg-alpha: .41; --play-blur: 1px; --play-icon-alpha: .84; --play-border-alpha: .32; --play-shadow-alpha: .38; --amb-blur: 13px; --amb-sat: 1; --amb-bright: .9; --amb-overscan: 2; }
.film-dlg .player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.player-ambient { position: absolute; inset: calc(var(--amb-overscan) * -1%); width: calc(100% + var(--amb-overscan) * 2%); height: calc(100% + var(--amb-overscan) * 2%); filter: blur(var(--amb-blur)) saturate(var(--amb-sat)) brightness(var(--amb-bright)); }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,.55)); }
.player-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #2b2f3a, #111); }
.play-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: var(--play-size); height: var(--play-size); border-radius: 50%; border: 1px solid rgba(255,255,255,var(--play-border-alpha)); background: rgba(17,17,17,var(--play-bg-alpha)); color: rgba(255,255,255,var(--play-icon-alpha)); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,var(--play-shadow-alpha)); backdrop-filter: blur(var(--play-blur)); -webkit-backdrop-filter: blur(var(--play-blur)); transition: transform .15s, background .15s; z-index: 2; padding: 0; }
.play-overlay:hover { background: rgba(17,17,17,.61); transform: translate(-50%, -50%) scale(1.06); }
.play-overlay svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.play-overlay.loading svg { animation: spin 1s linear infinite; opacity: .6; }
.player-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); z-index: 2; }
.player-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 3%; min-width: 8px; border-radius: 2px; background: #fff; }
.player-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.player.playing .play-overlay, .player.playing .player-bar, .player.playing .player-ambient, .player.playing .player-poster { display: none; }
.film-dlg .fd-info { padding: 16px 18px 0; }
.film-dlg .fd-info h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; padding-right: 0; }
.film-dlg .fd-info .ot { font-style: italic; color: var(--muted); font-size: .9rem; }
.film-dlg .fd-info .meta { color: var(--muted); font-size: .85rem; margin-top: 3px; }
/* Bewertungs-Pille im Dialog auf hellem/dunklem Grund lesbar */
.film-dlg .ratings.two .one { background: var(--card); border-color: var(--line); box-shadow: none; color: var(--fg); }
.film-dlg .ratings.two .sep { background: var(--line); }

.home-dot { width: 16px; height: 16px; border-radius: 50%; background: #e5383b; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.map .mapboxgl-popup-content { color: #111; }

/* Kino-Blatt: ganze Zeile inkl. Standort-Symbol ist der Kasten; Regler gut greifbar */
.cl li.cl-item { display: flex; align-items: center; gap: 4px; padding: 0 6px 0 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card); transition: border-color .15s, background .15s; }
.cl li.cl-item.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.cl li.cl-item .cl-row, .cl li.cl-item .cl-row:has(input:checked) { border: 0; background: none; border-radius: 14px; }
.cl li.cl-item .route { border: 0; width: 40px; height: 40px; }
.sheet input[type=range] { height: 32px; background-clip: content-box; padding: 12px 0; box-sizing: border-box; touch-action: pan-y; cursor: pointer; }
.sheet input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; }
.sheet input[type=range]::-moz-range-thumb { width: 24px; height: 24px; }
.sheet .rg { padding: 4px 0; }

/* Regler: schmale Spur, große unsichtbare Anfassfläche (WebKit/Blink über die Track-Pseudo-Elemente) */
input[type=range]:not(#max) { height: 32px; padding: 0; background: transparent; }
input[type=range]:not(#max)::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--p, 0%) 100% no-repeat, var(--chip); }
input[type=range]:not(#max)::-webkit-slider-thumb { margin-top: -10px; width: 28px; height: 28px; }
input[type=range]:not(#max)::-moz-range-track { height: 8px; border-radius: 99px; background: var(--chip); }
input[type=range]:not(#max)::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
.sheet input[type=range] { padding: 0; background: transparent; }

/* Filme-Pill klappt die Filter aus */
.chip-films { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.chip-films svg:first-child { width: 15px; height: 15px; }
.chip-films .chev { width: 14px; height: 14px; transition: transform .2s; }
.chip-films[aria-expanded="true"] .chev { transform: rotate(180deg); }
.chip-films.active { border-color: var(--accent); }
.chip-films .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.filter-group { display: inline-flex; gap: 8px; }
.filter-group[hidden] { display: none !important; }
.filter-group.open > * { animation: chip-in .22s ease-out both; }
.filter-group.open > *:nth-child(2) { animation-delay: .03s; } .filter-group.open > *:nth-child(3) { animation-delay: .06s; }
.filter-group.open > *:nth-child(4) { animation-delay: .09s; } .filter-group.open > *:nth-child(5) { animation-delay: .12s; } .filter-group.open > *:nth-child(6) { animation-delay: .15s; }
@keyframes chip-in { from { opacity: 0; transform: translateX(-12px); } }

/* Film-Detail: eigene Kopfleiste, X an der Stelle des Hell/Dunkel-Schalters */
dialog.film-dlg { display: none; flex-direction: column; }
dialog.film-dlg[open] { display: flex; }
.fd-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 6; }
.fd-bar-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-bar .icon svg { width: 16px; height: 16px; }
.film-body { flex: 1; min-height: 0; max-height: none; outline: none; }
dialog.film-dlg { max-height: 92dvh; }
@media (max-width: 560px) {
  dialog.film-dlg { margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .fd-bar { height: 56px; padding: 0 16px; }
}

.fd-text .plot { margin: 12px 0 2px; line-height: 1.5; }
.fd-text .plot.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-more { font-weight: 600; margin-bottom: 6px; }

/* ---------- Kinoseite: schlichte Karte, Programm darunter ---------- */
.kino .map { height: min(36vh, 300px); }
/* OSM-Ersatz stilisiert: Graustufen, weniger Kontrast */
.kino .leaflet-tile-pane { filter: grayscale(1) contrast(.85) brightness(1.06); }
:root[data-theme="dark"] .kino .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(.8) brightness(.75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kino .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(.8) brightness(.75); } }
.route-box .route-head { margin-bottom: 8px; }
.kprog h2 { margin: 28px 0 10px; }
.kdays { position: static; margin: 0 -16px 12px; border-bottom: 0; padding-top: 0; }
.kfilms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.kfilm { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.kposter { width: 72px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--chip); }
.kinfo { min-width: 0; }
.kinfo h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; }
.kinfo .meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.kinfo .times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kinfo .ratings.two .one { background: var(--bg); border-color: var(--line); box-shadow: none; color: var(--fg); }
.kinfo .ratings.two .sep { background: var(--line); }

/* Film-Detail (Korrektur Niklas): Sheet von unten bis unter die Kopfzeile, ohne eigene Titelleiste;
   nur das X schwebt in der Kopfzeile an der Stelle des Hell/Dunkel-Schalters. */
.fd-bar { display: none !important; }
dialog.film-dlg { overflow: visible; }
dialog.film-dlg::backdrop { background: rgba(0,0,0,.55); }
.film-body { max-height: inherit; overflow: auto; border-radius: inherit; }
.fd-x { position: fixed; top: 11px; right: max(16px, calc((100vw - 1240px) / 2 + 16px)); z-index: 10;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.fd-x svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  dialog.film-dlg { margin: 56px 0 0; width: 100vw; max-width: 100vw; height: calc(100dvh - 56px); max-height: calc(100dvh - 56px); border-radius: 18px 18px 0 0; }
  dialog.film-dlg[open] { animation: sheet-in .28s cubic-bezier(.2,.8,.2,1); }
  .film-body { max-height: calc(100dvh - 56px); }
}
@media (min-width: 561px) { dialog.film-dlg { margin-top: 72px; max-height: calc(100dvh - 96px); } .film-body { max-height: calc(100dvh - 96px); } }
@keyframes sheet-in { from { transform: translateY(100%); } }

/* Nur programmatisch fokussierbare Container (tabindex="-1": Ergebnisliste, Detailinhalt) nie mit Fokusrahmen —
   sonst zeichnet Chrome/iOS beim Antippen leerer Flächen einen roten Rahmen um ganze Bereiche. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none !important; }
section:focus, main:focus, dialog:focus, .film-body:focus { outline: none !important; }
* { -webkit-tap-highlight-color: transparent; }

/* X im Film-Detail deckt den Hell/Dunkel-Schalter vollständig ab (höhere Spezifität als button.icon) */
dialog.film-dlg button.fd-x { background: var(--bg); width: 38px; height: 38px; top: 9px; right: max(14px, calc((100vw - 1240px) / 2 + 14px)); border: 1px solid var(--line); box-shadow: 0 0 0 4px var(--bg), 0 2px 10px rgba(0,0,0,.25); }

/* ===== Startseite schwarz-weiß wie die Ergebnisseite (Niklas 2026-10-10, Basis Entwurf SW1) ===== */
.start body { background: var(--bg); color: var(--fg); }
.start-bg { display: none !important; }
.setup .start-card { background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 60px -30px rgba(0,0,0,.35); color: var(--fg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.start-brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: -10px; }
.start-brand span { font-weight: 500; color: var(--muted); font-size: .85em; margin-left: 4px; }
.setup .q { color: var(--fg); }
.setup .addr-row { background: var(--bg); border: 1px solid var(--line); }
.setup .addr-row input::placeholder { color: var(--muted); }
.setup .gps { color: var(--muted); }
.setup .modes button { background: var(--bg); border: 1px solid var(--line); color: var(--fg); }
.setup .modes button[aria-checked="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: none; }
.setup .range output { color: var(--fg); }
.setup .more { background: var(--bg); border: 1px solid var(--line); color: var(--fg); }
.setup input[type=range] { height: 28px; background: transparent; }
.setup input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(var(--fg), var(--fg)) 0 / var(--p, 50%) 100% no-repeat, var(--chip); }
.setup input[type=range]::-webkit-slider-thumb { margin-top: -9px; width: 24px; height: 24px; background: var(--fg); border: 3px solid var(--card); box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.setup input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--chip); }
.setup input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--fg); }
.setup input[type=range]::-moz-range-thumb { width: 20px; height: 20px; background: var(--fg); border: 3px solid var(--card); }
.setup :where(a, button, input):focus-visible { outline-color: var(--accent); }
.setup .msg { color: var(--accent); }
/* Cover-Mosaik-Knopf mit Rand */
.setup .primary.go { position: relative; overflow: hidden; isolation: isolate; height: 56px; padding: 0; border-radius: 14px; color: #fff; background: #111;
  border: 2px solid var(--fg); box-shadow: inset 0 0 0 2px var(--card); }
.setup .go .mosaic { position: absolute; inset: 0; display: flex; gap: 2px; z-index: -2; animation: pan 40s linear infinite; }
.setup .go .mosaic img { height: 100%; aspect-ratio: 2 / 3; object-fit: cover; flex: none; }
.setup .go::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.45), rgba(0,0,0,.72)); }
.setup .go .go-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.setup.busy .primary.go { animation: none; background-image: none; }
@keyframes pan { to { transform: translateX(-50%); } }

/* Verkehrsmittel-Dropdown neben der Minutenzahl */
.setup .range-head { justify-content: flex-start; gap: 10px; }
.setup .range-head .more { margin-left: auto; }
.mode-dd { position: relative; }
.mode-btn { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 6px 0 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); cursor: pointer; }
.mode-btn svg { width: 22px; height: 22px; }
.mode-btn .caret { width: 15px; height: 15px; color: var(--muted); transition: transform .15s; }
.mode-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.mode-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; list-style: none; margin: 0; padding: 4px; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.mode-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.mode-list li svg { width: 20px; height: 20px; }
.mode-list li:hover, .mode-list li:focus { background: var(--chip); outline: none; }
.mode-list li[aria-selected="true"] { font-weight: 700; }
.mode-list li[aria-selected="true"]::after { content: "✓"; margin-left: auto; }
.start-brand { font-size: clamp(1.7rem, 7vw, 2.1rem); letter-spacing: -.03em; margin-bottom: -4px; line-height: 1.1; }
.start-brand span { font-size: .6em; }
.mode-btn .mode-txt { font-weight: 600; font-size: .95rem; margin: 0 2px 0 6px; }
.mode-btn { padding: 0 8px 0 10px; }
.setup .range output { font-size: 1.35rem; }
.setup .range-head { gap: 8px; }
.setup .mit { color: var(--muted); font-weight: 500; }

/* Regler-Griff am Anschlag: wächst auf doppelte Größe, zeigt „+?“ und ist der „Mehr Zeit“-Knopf */
:root { --plus-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ctext x='20' y='33' text-anchor='middle' font-family='system-ui,-apple-system,sans-serif' font-weight='800' font-size='26' fill='%23ffffff'%3E+%3C/text%3E%3Ctext x='33' y='23' text-anchor='middle' font-family='system-ui,-apple-system,sans-serif' font-weight='800' font-size='16' fill='%23ffffff'%3E%3F%3C/text%3E%3C/svg%3E"); }
:root[data-theme="dark"] { --plus-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ctext x='20' y='33' text-anchor='middle' font-family='system-ui,-apple-system,sans-serif' font-weight='800' font-size='26' fill='%231a1a19'%3E+%3C/text%3E%3Ctext x='33' y='23' text-anchor='middle' font-family='system-ui,-apple-system,sans-serif' font-weight='800' font-size='16' fill='%231a1a19'%3E%3F%3C/text%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --plus-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ctext x='20' y='33' text-anchor='middle' font-family='system-ui,-apple-system,sans-serif' font-weight='800' font-size='26' fill='%231a1a19'%3E+%3C/text%3E%3Ctext x='33' y='23' text-anchor='middle' font-family='system-ui,-apple-system,sans-serif' font-weight='800' font-size='16' fill='%231a1a19'%3E%3F%3C/text%3E%3C/svg%3E"); } }
.setup input[type=range]::-webkit-slider-thumb { transition: width .28s cubic-bezier(.3,1.6,.5,1), height .28s cubic-bezier(.3,1.6,.5,1), margin-top .28s cubic-bezier(.3,1.6,.5,1); }
.setup input[type=range].at-max::-webkit-slider-thumb { width: 48px; height: 48px; margin-top: -21px; background: var(--fg) var(--plus-img) center / 100% no-repeat; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.setup input[type=range].at-max::-moz-range-thumb { width: 42px; height: 42px; background: var(--fg) var(--plus-img) center / 100% no-repeat; cursor: pointer; }
.setup input[type=range].at-max { height: 52px; }
.setup .more { display: none !important; }

/* Mehr-Zeit-Knopf liegt genau über dem vergrößerten Griff am rechten Ende */
.range-wrap { position: relative; }
.more-thumb { position: absolute; right: -12px; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; padding: 0;
  background: var(--fg); color: var(--card); font: 800 1.35rem/1 ui-sans-serif, system-ui, sans-serif; cursor: pointer; touch-action: none;
  box-shadow: 0 0 0 3px var(--card), 0 2px 12px rgba(0,0,0,.35); display: grid; place-items: center; animation: thumb-pop .32s cubic-bezier(.3,1.6,.5,1); }
.more-thumb sup { font-size: .55em; vertical-align: .9em; margin-left: 1px; }
.more-thumb[hidden] { display: none; }
@keyframes thumb-pop { from { transform: scale(.5); } }
/* der echte Griff darunter bleibt klein, damit nichts doppelt erscheint */
.setup input[type=range].at-max::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; background: var(--fg); }
.setup input[type=range].at-max::-moz-range-thumb { width: 20px; height: 20px; background: var(--fg); }
.setup input[type=range].at-max { height: 28px; }
