/* Reiseplaner – warmes, verspieltes Design. Mobile first, Dark Mode, Teen-Ansicht, Druck. */
:root {
  --bg: #fff8ef;
  --bg-2: #fdeedd;
  --surface: #ffffff;
  --surface-2: #fff4e8;
  --text: #1d2a44;
  --muted: #6b7590;
  --line: #f1e1cf;
  --accent: #f26b3a;
  --accent-ink: #ffffff;
  --blue: #2f80ed;
  --ok: #1f9d6b;
  --ok-bg: #e3f6ee;
  --warn: #b7791f;
  --warn-bg: #fff3d6;
  --danger: #d64545;
  --danger-bg: #fde8e8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 42, 68, .05), 0 8px 24px rgba(29, 42, 68, .07);
  --shadow-lg: 0 20px 60px rgba(29, 42, 68, .22);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tabbar-h: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121826;
    --bg-2: #182033;
    --surface: #1b2335;
    --surface-2: #222c42;
    --text: #eef1f8;
    --muted: #9aa5c0;
    --line: #2c3750;
    --ok-bg: #12352a;
    --warn-bg: #3a2f12;
    --danger-bg: #3d1d1d;
    --warn: #f1c25b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 400px at 50% -200px, var(--bg-2), transparent);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: .4em 0; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small, small { font-size: .82rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.big-emoji { font-size: 3rem; line-height: 1; }
.empty { color: var(--muted); padding: 1rem 0; }
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.loading { padding: 4rem 1rem; text-align: center; font-size: 1.2rem; color: var(--muted); animation: pulse 1.2s infinite alternate; }
@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

#app { max-width: 1180px; margin: 0 auto; padding: 0 16px calc(90px + env(safe-area-inset-bottom)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  border: 0; border-radius: 999px; padding: .62em 1.15em; cursor: pointer;
  background: var(--surface-2); color: var(--text); font-weight: 600; text-decoration: none;
  transition: transform .12s, background .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--danger); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.light { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); }
.btn.small { padding: .38em .85em; font-size: .88rem; }
.btn.big { padding: .85em 1.5em; font-size: 1.05rem; }
.link { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; text-decoration: underline; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; text-decoration: none; color: inherit;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.icon-btn.small { width: 32px; height: 32px; font-size: .9rem; }
.pill { display: inline-block; padding: .2em .7em; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill.hot { background: var(--accent); color: #fff; animation: wiggle .6s ease-in-out 2; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: .3em .8em;
  font-size: .85rem; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.chip.danger { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.chip.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }

.avatar {
  --c: var(--blue);
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent);
  font-size: 1rem; line-height: 1;
}
.avatar.sm { width: 24px; height: 24px; font-size: .8rem; }
.avatar.lg { width: 44px; height: 44px; font-size: 1.45rem; }
.avatar.xl { width: 60px; height: 60px; font-size: 2rem; }

.card { background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 1.6rem 0 .8rem; gap: 1rem; }
.two-col { display: grid; gap: 0 1rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.25fr 1fr; } }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }

.hint { border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem; background: var(--surface); box-shadow: var(--shadow); border-left: 5px solid var(--muted); }
.hint.warn { border-left-color: #e8a317; background: var(--warn-bg); }
.hint.danger { border-left-color: var(--danger); background: var(--danger-bg); }
.hint ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---------- Startseite ---------- */
.home-head { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0 1rem; }
.home-head h1 { font-size: 1.9rem; }
.next-hero {
  --c: var(--accent);
  display: flex; align-items: center; gap: 1rem; padding: 1.4rem; border-radius: 26px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #1d2a44));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--c) 35%, transparent); position: relative; overflow: hidden;
}
.next-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.next-hero small { opacity: .85; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.next-hero h2 { font-size: 1.6rem; }
.next-emoji { font-size: 3.2rem; }
.countdown-big { text-align: center; z-index: 1; }
.countdown-big b { display: block; font-size: 3rem; line-height: 1; }
.countdown-big span { font-size: .85rem; opacity: .9; }
.trip-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.trip-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s; }
.trip-card:hover { transform: translateY(-3px); }
.trip-card-cover { --c: var(--accent); height: 96px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #fff)); display: flex; align-items: flex-end; justify-content: space-between; padding: .7rem 1rem; }
.trip-card-emoji { font-size: 2.6rem; }
.trip-card-cover .pill { background: rgba(255, 255, 255, .9); color: #1d2a44; }
.trip-card-body { padding: .9rem 1rem 1rem; }
.trip-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; gap: .5rem; }
.home-foot { margin: 2rem 0; text-align: center; }

/* ---------- Reise-Kopf & Tabs ---------- */
.trip-head { position: sticky; top: 0; z-index: 20; margin: 0 -16px 1rem; padding: .5rem 16px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.trip-head-row { display: flex; align-items: center; gap: .25rem; min-height: 56px; }
.trip-head-title { flex: 1; min-width: 0; }
.trip-head-title h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-head-title p { margin: 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-head-title b { color: var(--c, var(--accent)); }
.save-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); padding: 0 .3rem; }
.save-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); transition: background .2s; }
.save-status[data-save-status="saving"] i, .save-status[data-save-status="pending"] i { background: #e8a317; animation: pulse .6s infinite alternate; }
.save-status[data-save-status="offline"] i, .save-status[data-save-status="error"] i { background: var(--danger); }
.save-status span { display: none; }
@media (min-width: 700px) { .save-status span { display: inline; } }
.kid-toggle.on { background: linear-gradient(135deg, #ffd1e8, #d6e4ff); }

.tabs { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.active { color: var(--text); border-bottom-color: var(--c, var(--accent)); }
.tab-icon { font-size: 1.1rem; }
@media (max-width: 699px) {
  /* backdrop-filter würde einen Containing Block für die fixe Tab-Leiste erzeugen */
  .trip-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; gap: 0;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom));
  }
  .tab { flex-direction: column; gap: .05rem; padding: .35rem .2rem; font-size: .66rem; border-bottom: 0; flex: 1; border-radius: 12px; }
  .tab-icon { font-size: 1.45rem; transition: transform .2s; }
  .tab.active { background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }
  .tab.active .tab-icon { transform: translateY(-2px) scale(1.08); }
}

/* ---------- Übersicht ---------- */
.hero {
  --c: var(--accent);
  border-radius: 26px; color: #fff; padding: 1.4rem; margin-bottom: 1rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #1d2a44));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--c) 30%, transparent);
}
.hero::before { content: ""; position: absolute; inset: auto -40px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero-text { display: flex; align-items: center; gap: 1rem; z-index: 1; min-width: 0; }
.hero-emoji { font-size: 3rem; }
.hero h2 { font-size: 1.5rem; }
.hero small { opacity: .85; font-weight: 600; }
.countdown { text-align: center; z-index: 1; }
.countdown b { display: block; font-size: 3.4rem; line-height: 1; }
.countdown small { display: block; opacity: .85; margin-top: .25rem; }
.hero.today { display: block; }
.today-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .35rem; z-index: 1; position: relative; }
.today-list li { background: rgba(255, 255, 255, .15); border-radius: 12px; padding: .5rem .8rem; }
.today-list b { display: inline-block; min-width: 3.2em; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border-radius: 16px; padding: .8rem .4rem; text-align: center; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.stat b { display: block; font-size: 1.45rem; }
.stat span { font-size: .78rem; color: var(--muted); }
.map { height: 320px; border-radius: 14px; overflow: hidden; background: var(--surface-2); margin-bottom: .8rem; z-index: 0; position: relative; }
.map-empty { display: grid; place-items: center; height: 100%; text-align: center; color: var(--muted); padding: 1rem; }
.map-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c), 0 4px 10px rgba(0, 0, 0, .25); font-size: 1.05rem; }
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; border-left: 3px dotted var(--line); }
.route li a { display: flex; align-items: center; gap: .8rem; padding: .4rem 0; text-decoration: none; color: inherit; position: relative; }
.route-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); font-size: 1.2rem; flex: none; }
.route b { display: block; }
.route small { color: var(--muted); }
.route li.now .route-dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.route li.past { opacity: .55; }
.clocks { display: flex; align-items: center; justify-content: space-around; text-align: center; }
.clock span { font-size: 1.6rem; display: block; }
.clock b { font-size: 1.8rem; display: block; font-variant-numeric: tabular-nums; }
.clock small { color: var(--muted); }
.clock-sep { font-size: 1.4rem; opacity: .6; }
.people { display: flex; flex-wrap: wrap; gap: 1rem; }
.person { display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .85rem; font-weight: 600; }
.todo-list, .deadline-list { list-style: none; margin: 0 0 .5rem; padding: 0; }
.todo { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.todo-text { flex: 1; text-align: left; background: none; border: 0; padding: .2rem 0; cursor: pointer; }
.todo-text small { display: block; color: var(--muted); }
.todo.late .todo-text small { color: var(--danger); font-weight: 700; }
.todo.done .todo-text { text-decoration: line-through; color: var(--muted); }
.deadline-list li { padding: .3rem 0; font-size: .9rem; }
.deadline-list li span { display: inline-block; min-width: 3.5em; font-weight: 700; }
.deadline-list li.late { color: var(--danger); }
h4.sub { margin: 1rem 0 .3rem; font-size: .9rem; color: var(--muted); }
details summary { cursor: pointer; padding: .4rem 0; }

/* Checkbox */
.check { position: relative; display: inline-block; width: 24px; height: 24px; flex: none; margin-top: 2px; cursor: pointer; }
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check span { position: absolute; inset: 0; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); transition: all .15s; }
.check input:checked + span { background: var(--ok); border-color: var(--ok); }
.check input:checked + span::after { content: "✓"; color: #fff; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: .9rem; }
.check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); }
.check.big { width: 30px; height: 30px; }
.check.big span { border-radius: 10px; }

/* ---------- Ablauf ---------- */
.plan-toolbar { position: sticky; top: 104px; z-index: 10; margin: -0.5rem -16px .8rem; padding: .4rem 16px .5rem; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 699px) { .plan-toolbar { top: 57px; } }
.day-strip { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .2rem 0; }
.day-strip::-webkit-scrollbar { display: none; }
.day-chip { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: .35rem .3rem; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: inherit; line-height: 1.1; }
.day-chip small { font-size: .68rem; color: var(--muted); text-transform: uppercase; }
.day-chip b { font-size: 1.05rem; }
.day-chip span { font-size: .95rem; }
.day-chip.today { box-shadow: 0 0 0 2px var(--accent); }
.day-chip.active { background: var(--text); color: var(--bg); }
.day-chip.active small { color: inherit; opacity: .7; }
.plan-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .75rem; color: var(--muted); margin-top: .35rem; }
.days { display: grid; gap: 1rem; }
.day { --dc: var(--accent); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 200px; border-top: 5px solid var(--dc); }
@media (max-width: 699px) { .day { scroll-margin-top: 140px; } }
.day.is-today { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.day.is-past { opacity: .8; }
.day-head { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1rem .6rem; }
.day-badge { flex: none; width: 52px; text-align: center; background: color-mix(in srgb, var(--dc) 14%, var(--surface)); color: var(--dc); border-radius: 14px; padding: .3rem 0; line-height: 1; }
.day-badge small { display: block; font-size: .65rem; text-transform: uppercase; font-weight: 800; letter-spacing: .05em; }
.day-badge b { font-size: 1.5rem; }
.day-title { flex: 1; min-width: 0; }
.day-title > small { color: var(--muted); }
.day-title h3 { font-size: 1.15rem; margin: .1rem 0 .3rem; }
.day-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .84rem; color: var(--muted); align-items: center; }
.day-meta .ok { color: var(--ok); }
.warn-chip { border: 0; border-radius: 999px; padding: .15em .7em; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: .8rem; cursor: pointer; }
.items { list-style: none; margin: 0; padding: 0 .6rem .4rem; }
.item { display: flex; align-items: center; gap: .3rem; border-radius: 14px; transition: background .15s; }
.item:hover { background: var(--surface-2); }
.item-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: .6rem; text-align: left; background: none; border: 0; padding: .55rem .4rem; cursor: pointer; }
.item-time { flex: none; width: 3.4rem; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; padding-top: .1rem; }
.item-time small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.item-emoji { font-size: 1.35rem; line-height: 1.2; width: 1.7rem; text-align: center; flex: none; }
.item-body { display: flex; flex-direction: column; min-width: 0; }
.item-title { font-weight: 600; }
.item-notes { color: var(--muted); margin-top: .15rem; }
.item.status-idea .item-title { color: color-mix(in srgb, var(--text) 75%, transparent); }
.item.status-done .item-title { text-decoration: line-through; text-decoration-color: var(--ok); }
.booking-ev { background: color-mix(in srgb, var(--blue) 7%, transparent); margin: .15rem 0; }
.booking-ev.todo { background: var(--warn-bg); }
.kidpick { filter: drop-shadow(0 0 4px #ffd34d); }
.status-chip { flex: none; border: 0; border-radius: 999px; padding: .2em .65em; font-size: .74rem; font-weight: 700; cursor: pointer; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.status-chip.s-planned { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.status-chip.s-booked, .status-chip.bs-booked, .status-chip.bs-paid { background: var(--ok-bg); color: var(--ok); }
.status-chip.s-done { background: color-mix(in srgb, #9b51e0 15%, transparent); color: #9b51e0; }
.status-chip.bs-todo { background: var(--warn-bg); color: var(--warn); }
.status-chip.bs-cancelled { text-decoration: line-through; }
.day-notes { margin: 0 1rem .6rem; font-size: .9rem; color: var(--muted); }
.fact { margin: .4rem 1rem .8rem; padding: .7rem .9rem; border-radius: 14px; background: linear-gradient(135deg, #fff6d6, #ffe9f1); color: #5a3d00; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .fact { background: linear-gradient(135deg, #3a3214, #3a1f2c); color: #ffe6a8; } }
.day-foot { padding: 0 1rem .9rem; }
@media (max-width: 560px) { .status-chip { display: none; } .kid .status-chip { display: none; } }

/* ---------- Buchungen ---------- */
.booking-summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.progress-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.progress-ring b { position: relative; font-size: .9rem; }
.filter-bar { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .8rem; scrollbar-width: none; }
.bookings { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) { .bookings { grid-template-columns: 1fr; } }
.booking { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 140px; }
.booking.b-todo { border: 2px dashed color-mix(in srgb, #e8a317 60%, transparent); }
.booking.b-cancelled { opacity: .5; }
.booking header { display: flex; align-items: flex-start; gap: .7rem; padding: 1rem 1rem .5rem; }
.booking-icon { font-size: 1.8rem; line-height: 1; }
.booking-body { padding: 0 1rem .6rem; flex: 1; }
.booking dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: .4rem 0; font-size: .9rem; }
.booking dl div { display: contents; }
.booking dt { color: var(--muted); }
.booking dd { margin: 0; }
.route-line { font-size: 1.05rem; }
.route-line span { color: var(--muted); padding: 0 .3rem; }
.code { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; border-radius: 12px; padding: .55rem .8rem; margin: .4rem 0; background: var(--surface-2); cursor: pointer; text-align: left; }
.code small { color: var(--muted); }
.code b { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .08em; flex: 1; }
.booking-notes { font-size: .88rem; color: var(--muted); }
.files { list-style: none; padding: 0; margin: .4rem 0; }
.files li { display: flex; align-items: center; justify-content: space-between; }
.booking footer { display: flex; flex-wrap: wrap; gap: .3rem; padding: .6rem .8rem .8rem; border-top: 1px solid var(--line); }

/* ---------- Tagebuch ---------- */
.diary-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.diary-day { margin: 1.4rem 0; }
.diary-day-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; font-size: 1rem; }
.entry { background: var(--surface); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-bottom: .8rem; }
.entry header { display: flex; align-items: center; gap: .7rem; }
.entry header small { display: block; }
.entry-text { white-space: normal; font-size: 1.02rem; margin: .7rem 0; }
.entry-best { background: var(--surface-2); border-radius: 12px; padding: .5rem .8rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin-top: .6rem; }
.photo { border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.drawing { background: #fffdf8; }
.photo.drawing img { object-fit: contain; }
.who-picker { display: flex; flex-wrap: wrap; gap: .6rem; }
.who { display: flex; flex-direction: column; align-items: center; gap: .2rem; border: 2px solid transparent; background: var(--surface-2); border-radius: 16px; padding: .5rem .7rem; cursor: pointer; font-weight: 600; font-size: .85rem; }
.who.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.mood-picker { display: flex; flex-wrap: wrap; gap: .3rem; }
.mood { font-size: 1.8rem; border: 0; background: none; cursor: pointer; border-radius: 12px; padding: .1rem .3rem; filter: grayscale(.6); opacity: .65; transition: transform .15s; }
.mood.on { filter: none; opacity: 1; transform: scale(1.25); background: var(--surface-2); }
.star-picker { display: flex; gap: .1rem; margin-top: .3rem; }
.star { font-size: 2rem; border: 0; background: none; cursor: pointer; color: var(--line); padding: 0 .1rem; }
.star.on { color: #f5b301; }
.photo-edit { display: flex; flex-wrap: wrap; gap: .5rem; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; font-size: .7rem; }
.add-photo { width: 84px; height: 84px; border-radius: 12px; border: 2px dashed var(--line); background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.6rem; }
.add-photo span { font-size: .75rem; color: var(--muted); }
.draw-canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; background: #fffdf8; touch-action: none; box-shadow: inset 0 0 0 2px var(--line); cursor: crosshair; display: block; }
.draw-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 3px var(--text); transform: scale(1.1); }
.size { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.size i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--text); display: block; }
.size.on { box-shadow: 0 0 0 2px var(--text); }
.draw-tools .sep { width: 1px; height: 26px; background: var(--line); margin: 0 .2rem; }
.lightbox img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 12px; background: #000; }
.lightbox-bar { display: flex; gap: .5rem; margin-top: .6rem; }
.lightbox .btn.light { background: var(--surface-2); color: var(--text); }

/* ---------- Packliste ---------- */
.pack-people { display: flex; gap: .6rem; overflow-x: auto; padding: .3rem .1rem .8rem; scrollbar-width: none; }
.pack-person { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .8rem .5rem; border: 2px solid transparent; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; font-weight: 600; font-size: .85rem; }
.pack-person.on { border-color: var(--accent); }
.pack-person.complete { background: var(--ok-bg); }
.pack-person .bar { width: 100%; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pack-person .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.pack-add { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pack-add input { flex: 1 1 200px; }
.pack-add select { flex: 0 1 auto; }
.pack-group h3 { font-size: 1rem; margin-bottom: .4rem; }
.pack-list { list-style: none; margin: 0; padding: 0; }
.pack-list li { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.pack-list li:last-child { border-bottom: 0; }
.pack-list li.done .grow { text-decoration: line-through; color: var(--muted); }

/* ---------- Abenteuer (Kinder) ---------- */
.kid-hero {
  --c: var(--accent);
  border-radius: 28px; padding: 1.6rem; margin-bottom: 1rem; color: #fff; display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(135deg, #6d5dfc, var(--c));
  box-shadow: 0 16px 40px rgba(109, 93, 252, .3);
}
.kid-moon { font-size: 4rem; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-4deg); } }
.kid-count { font-size: 4.5rem; line-height: 1; display: block; }
.kid-big { font-size: 1.5rem; font-weight: 800; margin: 0; }
.moons { width: 100%; font-size: 1.3rem; letter-spacing: .1em; word-break: break-all; }
.kid-hero.today { display: grid; gap: 1rem; }
@media (min-width: 700px) { .kid-hero.today { grid-template-columns: 1fr 1fr; } }
.kid-day { background: rgba(255, 255, 255, .15); border-radius: 20px; padding: 1rem; }
.kid-day small { font-weight: 700; opacity: .9; }
.kid-day h3 { font-size: 1.3rem; margin: .2rem 0 .7rem; }
.kid-items { display: flex; flex-wrap: wrap; gap: .5rem; }
.kid-item { display: flex; flex-direction: column; align-items: center; width: 92px; text-align: center; background: rgba(255, 255, 255, .2); border-radius: 16px; padding: .5rem .3rem; }
.kid-item b { font-size: 2rem; }
.kid-item small { font-size: .72rem; line-height: 1.15; }
.passport { background: linear-gradient(160deg, #1e3a6e, #2d4f8f); color: #fff; }
.passport .muted { color: rgba(255, 255, 255, .7); }
.passport .pill { background: rgba(255, 255, 255, .18); }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .8rem; margin-top: .6rem; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .4rem; text-align: center; transform: rotate(var(--r)); transition: transform .2s;
}
.stamp:hover { transform: rotate(0) scale(1.05); }
.stamp-emoji { font-size: 1.7rem; line-height: 1; }
.stamp-name { font-size: .7rem; font-weight: 800; line-height: 1.1; margin-top: .2rem; text-transform: uppercase; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stamp small { font-size: .62rem; opacity: .75; }
.stamp.locked { opacity: .55; }
.stamp.got { border: 3px solid #ff8a65; background: rgba(255, 138, 101, .18); box-shadow: inset 0 0 0 4px rgba(255, 138, 101, .35); animation: stampIn .35s ease-out; }
.stamp.got .stamp-name { color: #ffd0c2; }
@keyframes stampIn { from { transform: scale(1.6) rotate(-20deg); opacity: 0; } }
.bingo { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: .4rem; }
.bingo-cell {
  aspect-ratio: 1; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; padding: .25rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; transition: transform .12s, background .2s;
}
.bingo-cell span { font-size: clamp(1.3rem, 5vw, 2rem); line-height: 1; }
.bingo-cell small { font-size: clamp(.55rem, 1.9vw, .72rem); line-height: 1.1; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bingo-cell:active { transform: scale(.94); }
.bingo-cell.on { background: color-mix(in srgb, #1f9d6b 18%, var(--surface)); border-color: var(--ok); }
.bingo-cell.on span { animation: pop .3s; }
.bingo-cell.line { background: linear-gradient(135deg, #ffd34d, #ff8a65); border-color: transparent; color: #3b2300; }
@keyframes pop { 50% { transform: scale(1.4); } }
.challenges { list-style: none; margin: 0 0 .6rem; padding: 0; }
.challenges li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.ch-emoji { font-size: 1.5rem; }
.ch-players { display: flex; gap: .2rem; }
.ch-player { border: 0; background: none; padding: 2px; cursor: pointer; border-radius: 50%; filter: grayscale(1); opacity: .45; transition: all .2s; }
.ch-player.on { filter: none; opacity: 1; transform: scale(1.1); }
.fact-card { background: linear-gradient(135deg, #fff6d6, #ffe3ee); color: #3b2a00; }
@media (prefers-color-scheme: dark) { .fact-card { background: linear-gradient(135deg, #3a3214, #3a1f2c); color: #ffe6a8; } .fact-card .muted { color: #e9cf8f; } }
.fact-place { font-weight: 800; margin: 0; }
.fact-text { font-size: 1.15rem; margin: .4rem 0 .9rem; }
.kid-clock .clocks { margin-top: .5rem; }

/* Teen-Ansicht: ohne Verwaltungs-Kram */
body.kid { font-size: 18px; }
body.kid .adult-only { display: none !important; }
body.kid .item-time { font-size: 1rem; }
body.kid .item-emoji { font-size: 1.8rem; width: 2.2rem; }
body.kid .day-title h3 { font-size: 1.35rem; }

/* ---------- Formulare & Modal ---------- */
dialog#modal {
  border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog#modal.wide { width: min(780px, calc(100vw - 24px)); }
dialog#confirm { border: 0; padding: 0; border-radius: 22px; width: min(400px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog#confirm::backdrop { background: rgba(18, 24, 38, .35); }
dialog#modal::backdrop { background: rgba(18, 24, 38, .45); backdrop-filter: blur(3px); }
dialog#modal[open] { animation: modalIn .2s ease-out; }
@keyframes modalIn { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.modal-inner { padding: 1.1rem 1.2rem 1.2rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; gap: .5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; }
.field { grid-column: 1 / -1; margin-bottom: .7rem; }
.field.half { grid-column: span 1; }
@media (max-width: 480px) { .field.half { grid-column: 1 / -1; } }
.field > label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .3rem; }
.form-heading { grid-column: 1 / -1; margin: .6rem 0 .4rem; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 2px solid transparent; border-radius: 12px; padding: .6rem .75rem;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); background: var(--surface); }
textarea { resize: vertical; min-height: 2.6rem; }
.hint { font-size: inherit; }
small.hint { display: block; color: var(--muted); margin-top: .2rem; font-size: .76rem; border: 0; box-shadow: none; padding: 0; background: none; }
.check-field { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; font-weight: 600; cursor: pointer; }
.check-field input { width: 22px; height: 22px; accent-color: var(--accent); }
.form-actions { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.emoji-input { font-size: 1.4rem; width: 5rem; text-align: center; }
.emoji-field { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; }
.emoji-suggest { display: flex; flex-wrap: wrap; gap: .15rem; flex: 1; }
.emoji-suggest button { border: 0; background: none; font-size: 1.3rem; cursor: pointer; border-radius: 8px; padding: .1rem .2rem; }
.emoji-suggest button:hover { background: var(--surface-2); }
.color-field { display: flex; gap: .5rem; }
.color-field input { position: absolute; opacity: 0; width: 1px; }
.color-field span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.color-field input:checked + span { box-shadow: 0 0 0 3px var(--text); }
.loc-row { display: flex; gap: .4rem; }
.loc-info { font-size: .78rem; margin-top: .25rem; }
.geo-results { display: grid; gap: .25rem; margin-top: .3rem; }
.geo-hit { text-align: left; border: 0; background: var(--surface-2); border-radius: 10px; padding: .45rem .6rem; font-size: .82rem; cursor: pointer; }
.geo-hit:hover { background: color-mix(in srgb, var(--blue) 15%, var(--surface)); }
.confirm-text { font-size: 1.1rem; font-weight: 600; }
.menu-list { display: grid; gap: .3rem; }
.menu-list button { text-align: left; border: 0; background: var(--surface-2); border-radius: 14px; padding: .75rem 1rem; cursor: pointer; font-weight: 700; }
.menu-list button small { display: block; font-weight: 500; color: var(--muted); }
.menu-list button:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.menu-list .danger { color: var(--danger); }
.traveler-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.traveler-list li { display: flex; align-items: center; gap: .8rem; padding: .5rem; border-radius: 14px; background: var(--surface-2); }
.traveler-list small { display: block; }

/* ---------- Toast & Konfetti ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg);
  transition: all .25s; z-index: 1000; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: #fff; border-radius: 18px; }
@media (min-width: 700px) { #toast { bottom: 28px; } }
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2000; display: none; }
#confetti.on { display: block; }
.error-page { text-align: center; padding: 4rem 1rem; }

/* ---------- Druck ---------- */
.print-page { max-width: 900px; margin: 0 auto; padding: 1rem 0; }
.print-bar { display: flex; gap: .5rem; margin-bottom: 1.5rem; position: sticky; top: 0; padding: .6rem 0; background: var(--bg); z-index: 5; }
.print-cover { margin-bottom: 1.5rem; }
.print-cover h1 { font-size: 2rem; }
.print-page h2 { margin: 1.6rem 0 .6rem; }
.print-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); }
.print-table th, .print-table td { border-bottom: 1px solid var(--line); padding: .5rem; vertical-align: top; text-align: left; }
.print-table tbody th { width: 110px; font-weight: 500; }
.print-table ul { margin: .3rem 0 0; padding-left: 1rem; }
.print-table code { font-family: var(--mono); background: var(--surface-2); padding: 0 .3em; border-radius: 4px; }
.book-cover { --c: var(--accent); text-align: center; padding: 3rem 1rem; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #1d2a44)); margin-bottom: 2rem; }
.book-cover h1 { font-size: 2.4rem; }
.book-emoji { font-size: 5rem; }
.book-route { opacity: .85; font-size: .9rem; }
.book-day { margin-bottom: 2rem; }
.book-day h2 span { font-size: .8em; color: var(--accent); }
.book-date { color: var(--muted); margin-top: 0; }
.book-entry { margin: 1rem 0; }
.book-entry h3 small { font-weight: 400; }
.book-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; }
.book-photos img { width: 100%; border-radius: 10px; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .no-print, .tabs, .trip-head, #toast { display: none !important; }
  #app { padding: 0; max-width: none; }
  .print-table, .print-table th, .print-table td { background: #fff; }
  .print-table tr, .book-entry, .book-photos img { break-inside: avoid; }
  .book-day { break-before: page; }
  .book-cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
}

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

/* ---------- Feinschliff nach UX-Review ---------- */
.hint-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.hint-row .chips { display: inline-flex; align-items: center; margin-left: .4rem; vertical-align: middle; }
.bingo { max-width: 560px; margin: 0 auto; }
@media (max-width: 699px) {
  .hide-sm { display: none; }
  .plan-legend { display: none; }
  .trip-head-title h1 { font-size: 1.05rem; }
}
.two-col > .col { min-width: 0; }
@media (max-width: 420px) { .stamps { grid-template-columns: repeat(3, 1fr); gap: .5rem; } .stamp-emoji { font-size: 1.4rem; } }
.bingo { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.bingo-cell small { overflow-wrap: anywhere; hyphens: auto; }
.lodging-gaps summary { cursor: pointer; list-style: none; }
.lodging-gaps summary::-webkit-details-marker { display: none; }
.lodging-gaps summary::after { content: " ▾"; color: var(--muted); }
.lodging-gaps[open] summary::after { content: " ▴"; }
@media (max-width: 560px) { .booking-summary > .btn { width: 100%; } }

/* ---------- v2: Login, Gäste, Familie, Teens ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; }
.auth-card { width: min(420px, 100%); background: var(--surface); border-radius: 26px; padding: 2rem 1.6rem; box-shadow: var(--shadow-lg); display: grid; gap: .2rem; }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card > p { text-align: center; }
.auth-card .btn { margin-top: .6rem; width: 100%; }
.auth-logo { font-size: 3.4rem; text-align: center; }
.auth-error { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: .5rem .8rem; font-weight: 600; }
.user-chip { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; margin-left: .3rem; }
.home-head { gap: .5rem; }
.home-head > div:first-child { flex: 1; }
.guest-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.guest-list li { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--surface-2); border-radius: 16px; padding: .8rem; }
.guest-list small { display: block; }
.guest-url { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); word-break: break-all; margin-top: .2rem; }
.guest-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.guest { max-width: 860px; margin: 0 auto; padding: 1rem 0 3rem; }
.guest-hero { display: block; }
.guest-people { opacity: .9; }
.guest-now { display: flex; align-items: center; gap: 1rem; }
.guest-highlights { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .6rem; }
.guest-foot { text-align: center; margin-top: 2rem; }
.route li.future { opacity: .55; }
.map-pin.future span { opacity: .6; }
body.guest-mode #app { padding-bottom: 2rem; }
.entry-song { background: color-mix(in srgb, #9b51e0 10%, var(--surface)); border-radius: 12px; padding: .45rem .8rem; }
.birthday { margin: 0 1rem .6rem; padding: .6rem .9rem; border-radius: 14px; background: linear-gradient(135deg, #ffe3ee, #e3ecff); color: #3b2a55; font-weight: 600; }
.birthday-hint { border-left-color: #e0457b; background: linear-gradient(135deg, #ffe3ee, #fff3d6); color: #3b2a55; }
@media (prefers-color-scheme: dark) { .birthday, .birthday-hint { background: linear-gradient(135deg, #3d1f33, #1f2a45); color: #ffd6e6; } }
.leaderboard { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .25rem; }
.leaderboard li { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem; border-radius: 10px; background: var(--surface-2); }
.ch-player:disabled { cursor: default; }
.person small { font-weight: 500; }
.item-detail-notes { background: var(--surface-2); border-radius: 12px; padding: .7rem .9rem; }
.hidden { display: none !important; }
body.kid { font-size: 16px; }

.guest .route li { display: flex; align-items: center; gap: .8rem; padding: .4rem 0; position: relative; }
.leaderboard { display: flex; flex-wrap: wrap; gap: .35rem; }
.leaderboard li { padding: .25rem .6rem .25rem .4rem; border-radius: 999px; }
.leaderboard li.zero { opacity: .55; }
@media (max-width: 560px) {
  .challenges li { flex-wrap: wrap; }
  .challenges .ch-players { width: 100%; padding-left: 2.1rem; }
}
