/* Tippgemeinschaft – Gold als Hauptfarbe, Dunkelblau als Akzent, schmale Versal-Überschriften, ruhige Flächen. */
@import url("/static/fonts/fonts.css");

:root {
  --bg: #0d0e12;
  --surface: #15171d;
  --surface-2: #1d2028;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f2f4;
  --muted: #8c919b;
  --faint: #5f646e;
  --accent: #f5b800;
  --accent-ink: #1a1500;
  --accent-soft: rgba(245, 184, 0, 0.14);
  --blue: #7f9cf5; /* Dunkelblau #1E3A8A, im Dunkelmodus aufgehellt */
  --blue-soft: rgba(127, 156, 245, 0.14);
  --danger: #e5484d;
  --good: #22b07d;
  --good-soft: rgba(34, 176, 125, 0.12);
  --warn: #e9a23b;
  --warn-soft: rgba(233, 162, 59, 0.14);
  --radius: 14px;
  /* iPhone meldet in Homescreen-Apps beim Start oft einen zu großen Wert (WebKit) – auf die echte
     Höhe des Home-Balkens begrenzen, sonst schwebt die Leiste unten */
  --safe-bottom: min(34px, env(safe-area-inset-bottom, 0px));
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", -apple-system, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4f1;
    --surface: #ffffff;
    --surface-2: #ececea;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.16);
    --text: #121317;
    --muted: #5d616b;
    --faint: #8d9099;
    --accent: #f5b800;
    --accent-soft: rgba(245, 184, 0, 0.16);
    --blue: #1e3a8a;
    --blue-soft: rgba(30, 58, 138, 0.09);
    --good-soft: rgba(34, 176, 125, 0.12);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* sonst überschreiben display-Regeln das hidden-Attribut */
/* touch-action: manipulation = kein Zoom per Doppeltipp (eigene Doppeltipp-Herzen funktionieren weiter) */
html { -webkit-text-size-adjust: 100%; height: 100%; overflow: hidden; overflow: clip; overscroll-behavior: none; touch-action: manipulation; }
* { touch-action: manipulation; }
/* App-Gerüst wie bei nativen Apps: Kopf und Navigation stehen fest, nur .scroll bewegt sich.
   (Mit position:fixed verschiebt das iPhone die Leisten beim Gummiband-Scrollen.) */
body {
  margin: 0;
  /* fest an alle vier Bildschirmkanten: unabhängig davon, wie das iPhone 100vh/100dvh
     im Homescreen-Modus berechnet – sonst bleibt unter der Leiste ein Streifen frei */
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow: clip; /* clip statt hidden: auch kein Verschieben per scrollIntoView/Tastatur */
  overscroll-behavior: none;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
#dock:empty { display: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
h1 { font-size: 2rem; letter-spacing: 0.01em; }
h2 { font-size: 1.2rem; letter-spacing: 0.03em; }
h3 { font-size: 1.02rem; letter-spacing: 0.02em; font-weight: 600; }
p { margin: 0; }
small { color: var(--muted); font-size: 0.82rem; }
.muted { color: var(--muted); font-size: 0.92rem; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 700; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ Gerüst */
/* Kein Kopf mehr – nur der Platz unter Uhr/Dynamic Island, damit nichts darunter verschwindet */
.topbar {
  flex: none; position: relative; z-index: 20;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { border-radius: 7px; }
main { max-width: 640px; margin: 0 auto; padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 6px; }
.page-head .actions { display: flex; gap: 6px; }

.tabbar {
  flex: none; position: relative; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  /* Wie native Tab-Leisten: Inhalt direkt über dem Home-Balken, nicht den vollen Sicherheitsabstand obendrauf */
  padding: 4px 6px max(6px, calc(var(--safe-bottom) - 14px));
  background: var(--surface);
  margin-bottom: 0;
  border-top: 1px solid var(--line);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 0 2px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--faint);
}
.tabbar a .icon { width: 23px; height: 23px; }
.tabbar a.active { color: var(--text); }
.tabbar a.active .icon { color: var(--accent); }
.tab-badge {
  position: absolute; top: 0; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.66rem; font-weight: 700; display: grid; place-items: center;
}

/* ------------------------------------------------------------ Bausteine */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.card.flat { padding: 0; overflow: hidden; gap: 0; }
.card.hero { border-top: 3px solid var(--accent); }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 8px 2px -6px; }
.section-title h2 { font-size: 0.78rem; font-family: var(--font); font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.pill.red { background: var(--accent-soft); color: var(--accent); }
.pill.green { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 11px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; font-size: 1rem;
}
.btn:active { transform: scale(0.985); }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.white { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 4px; min-height: 36px; font-weight: 600; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 0.9rem; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 40px; min-height: 40px; padding: 0; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

input[type=text], input[type=email], input[type=search], input[type=date], input[type=number], input[type=tel], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); outline: none; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
label.field > input, label.field > select { color: var(--text); font-weight: 400; }
.pin-input { font-family: var(--font-display); font-size: 1.8rem !important; letter-spacing: 0.5em; text-align: center; font-weight: 700; }
.code-input { font-family: var(--font-display); font-size: 1.6rem !important; letter-spacing: 0.25em; text-align: center; text-transform: uppercase; font-weight: 700; }

.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: 0.2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: 0.2s; }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::after { transform: translateX(18px); }

.seg { display: flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button {
  flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px;
  font-weight: 600; font-size: 0.9rem; color: var(--muted); cursor: pointer;
}
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }

.list { display: flex; flex-direction: column; }
.list > .item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; text-decoration: none;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; width: 100%;
}
.list > .item:last-child { border-bottom: 0; }
.item .flag { font-size: 1.3rem; width: 28px; text-align: center; }
.item .chev { color: var(--faint); display: flex; }
.item b { font-weight: 600; }

table.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.num { font-family: var(--font-display); font-size: 1.05rem; }
.table tr.me td { background: var(--accent-soft); }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rank { width: 34px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--muted); }
.rank.r1 { color: var(--accent); }

.countdown { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: 0.01em; }
.big-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; }

/* ------------------------------------------------------------ Einladen / Anmelden / Verwalten */
.code-display { font-family: var(--font-display); font-weight: 700; font-size: 3rem; letter-spacing: 0.12em; text-align: center; line-height: 1; }
.qr { width: 190px; height: 190px; border-radius: 12px; background: #fff; padding: 8px; align-self: center; }
.welcome-logo { width: 72px; height: 72px; border-radius: 18px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps > div { display: flex; gap: 12px; align-items: flex-start; }
.steps > div::before {
  counter-increment: s; content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2);
  font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; color: var(--accent);
}
.member { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.member:first-child { border-top: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.menu { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 12px; overflow: hidden; }
.menu button { border: 0; background: none; text-align: left; padding: 12px 14px; font-weight: 600; cursor: pointer; border-top: 1px solid var(--line); }
.menu button:first-child { border-top: 0; }
.menu button.danger { color: var(--danger); }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.toggle-row:first-child { border-top: 0; }
.toggle-row .grow b { font-weight: 600; }

/* ------------------------------------------------------------ Sheets (Aktionsmenü, Bestätigung, Vollbild) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow: auto;
}
.sheet-backdrop { animation: fade-in 0.16s ease-out; }
.sheet-backdrop .sheet { animation: slide-up 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); }
.sheet-backdrop.closing { opacity: 0; transition: opacity 0.16s; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0.6; } }
.action-sheet { gap: 10px; }
.sheet-title { text-align: center; color: var(--muted); font-size: 0.88rem; white-space: pre-line; padding: 2px 8px 4px; }
.emoji-row { display: flex; justify-content: space-between; background: var(--surface-2); border-radius: 999px; padding: 6px 10px; }
.emoji-btn { border: 0; background: none; font-size: 1.75rem; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; transition: transform 0.12s; }
.emoji-btn:active { transform: scale(1.25); }
.emoji-btn.active { background: var(--line-strong); }
.menu button { display: flex; align-items: center; gap: 12px; }
.menu button .icon { width: 19px; height: 19px; color: var(--muted); }
.menu button.danger .icon { color: var(--danger); }
.btn.danger { background: var(--danger); color: #fff; }
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.95); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 16px; animation: fade-in 0.15s;
}
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; transition: transform 0.1s; }
.lightbox p { color: #fff; text-align: center; }
.lightbox-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; background: rgba(255, 255, 255, 0.15) !important; color: #fff !important; }

/* ------------------------------------------------------------ Meldungen */
#toast {
  position: fixed; left: 50%; bottom: calc(88px + var(--safe-bottom)); transform: translateX(-50%) translateY(16px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 11px; font-weight: 600; font-size: 0.92rem;
  opacity: 0; pointer-events: none; transition: 0.22s; z-index: 70; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#banner:empty { display: none; }
#banner { max-width: 640px; margin: 4px auto 0; padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.notice {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; text-decoration: none;
}
.notice > .icon { color: var(--accent); }
.notice.warn { border-color: var(--warn); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; word-break: break-all; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
@media (min-width: 720px) {
  .tabbar { width: 640px; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 18px; padding: 6px; }
  #toast { bottom: 96px; }
}

/* ================================================================== Bewegung */
@keyframes pop-in { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
@keyframes tab-bounce { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-4px) scale(1.12); } 100% { transform: none; } }
@keyframes busy-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 56px 0; } }
@keyframes float-up { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* Druck-Feedback auf allem Antippbaren */
.btn, .item, .notice, .seg button, .tabbar a, .badge, .plan, .chip-link, .logo-card, .emoji-btn {
  transition: transform 0.12s ease, background-color 0.18s, border-color 0.18s, opacity 0.18s;
}
.btn:active, .item:active, a.notice:active, .seg button:active, .badge:active, .plan:active, .chip-link:active { transform: scale(0.97); }
.tabbar a:active .icon { transform: scale(0.88); }

/* Navigation: aktiver Reiter hüpft, Leuchtpunkt darunter */
.tabbar a .icon { transition: transform 0.15s, color 0.2s; }
.tabbar a.active .icon { animation: tab-bounce 0.38s cubic-bezier(.2,.8,.2,1); }
.tabbar a::after {
  content: ""; position: absolute; bottom: -1px; left: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%) scale(0); transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.tabbar a.active::after { transform: translateX(-50%) scale(1); }
.tab-badge { animation: pop-in 0.35s cubic-bezier(.2,.8,.2,1); }

/* Ladebalken oben, wenn eine Seite länger braucht */
.topbar::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transform: translateX(-100%);
}
body.busy .topbar::after { opacity: 1; animation: busy-bar 0.9s ease-in-out infinite; }
.loading { color: transparent; height: 160px; border-radius: var(--radius); margin-top: 8px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }

/* Toast federt rein */
#toast { transition: opacity 0.22s, transform 0.3s cubic-bezier(.2,1.4,.4,1); }

/* Hinweise und Banner */
#banner > * { animation: rise 0.35s cubic-bezier(.2,.8,.2,1); }

/* Countdown: letzte Stunde pulsiert */
.countdown.urgent { color: var(--accent); }
.btn.pulse { animation: pulse-ring 1.6s ease-out infinite; }

/* ------------------------------------------------------------ Feier-Overlay */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }
.celebrate {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease-out;
}
.celebrate.closing { opacity: 0; transition: opacity 0.2s; }
.celebrate-stripes {
  position: absolute; left: 0; right: 0; top: calc(50% - 150px); height: 18px; opacity: 0.18;
  background: repeating-linear-gradient(90deg, var(--text) 0 14px, transparent 14px 28px),
              repeating-linear-gradient(90deg, transparent 0 14px, var(--text) 14px 28px);
  background-size: 56px 9px; background-position: 0 0, 0 9px; background-repeat: repeat-x;
  animation: stripes 1.2s linear infinite;
}
.celebrate-card {
  position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--accent);
  border-radius: 20px; padding: 28px 24px 18px; width: min(360px, 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: pop-in 0.5s cubic-bezier(.2,.8,.2,1);
}
.celebrate-card h1 { font-size: 2.1rem; }
.celebrate-emoji { font-size: 4rem; line-height: 1; animation: pop-in 0.6s 0.1s cubic-bezier(.2,1.6,.4,1) backwards; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.celebrate-points { font-size: 2.6rem; color: var(--good); line-height: 1; }
.celebrate-hint { margin-top: 10px; color: var(--faint); }
.celebrate .recap { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.celebrate .recap > div { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; animation: rise 0.4s backwards; }


@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

/* Kompakte Hinweise oben */
.notice.slim { padding: 8px 6px 8px 12px; font-size: 0.86rem; gap: 10px; }
.notice.slim .btn.icon-only { width: 32px; height: 32px; }
.test-strip { text-align: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 4px 8px; }
.jumps { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.jump { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 3px 9px; font-size: 0.72rem; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; gap: 5px; align-items: center; transition: transform .12s, border-color .3s, color .3s; }
.jump span { color: var(--faint); font-variant-numeric: tabular-nums; }
.jump.done { border-color: color-mix(in srgb, var(--good) 50%, transparent); color: var(--good); }
.jump.done span { color: var(--good); }
.jump:active { transform: scale(0.94); }

/* Leiste unten: Hintergrund läuft immer bis zur Bildschirmkante weiter – auch wenn das iPhone
   beim Kaltstart falsche Maße meldet, bleibt darunter kein Spalt */
.tabbar::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 120px; background: var(--surface); }
html { background: var(--surface); }
@media (min-width: 720px) { .tabbar::before { display: none; } html { background: var(--bg); } }

/* Eingabefelder mindestens 16 px – sonst zoomt iOS beim Antippen hinein */
input, select, textarea { font-size: max(16px, 1em); }
/* Keine Mindesthöhe erzwingen: mit opaker Statusleiste ist das Fenster kürzer als der Bildschirm
   (z. B. 797 statt 844 px) – „100lvh“ schob die Leiste unten aus dem Bild (gemessen 06.10.2026). */

/* ------------------------------------------------------------ Einladen, Homescreen-Anleitung, Hilfe, Einführung */
.msg-preview { white-space: pre-wrap; font-family: var(--font); font-size: 0.85rem; background: var(--surface-2); border-radius: 12px; padding: 12px; margin: 0; line-height: 1.45; }
.install { gap: 12px; }
.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.install-step { display: flex; gap: 12px; align-items: flex-start; animation: rise 0.4s backwards; }
.install-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.ios-share { display: inline-grid; place-items: center; vertical-align: -3px; color: #0a84ff; }
.login-card { border-top: 3px solid var(--accent); }
.help summary .icon { transition: transform .2s; transform: rotate(90deg); color: var(--muted); }
.help[open] summary .icon { transform: rotate(-90deg); }
.help-emoji { font-size: 1.4rem; }
.help-list { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.help-list li::marker { color: var(--accent); }
.intro { position: fixed; inset: 0; z-index: 88; background: var(--bg); display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; padding: calc(env(safe-area-inset-top, 0px) + 24px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px); animation: fade-in 0.3s; }
.intro.closing { opacity: 0; transition: opacity 0.2s; }
.intro-skip { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; }
.intro-stage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; min-height: 260px; justify-content: center; }
.intro-emoji { font-size: 4.5rem; animation: pop-in 0.5s cubic-bezier(.2,1.6,.4,1); }
.intro-dots { display: flex; justify-content: center; gap: 6px; }
.intro-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--surface-2); transition: width .3s, background-color .3s; }
.intro-dots span.on { width: 22px; background: var(--accent); }

/* Tastatur offen: Leiste unten weg, Eingabezeile sitzt direkt über der Tastatur.
   min-height zurücksetzen – sonst hält „100lvh“ (Homescreen-App) die volle Höhe und die Zeile liegt unter der Tastatur */
html.kb-open, body.kb-open { min-height: 0 !important; }
body.kb-open .tabbar { display: none; }
body.kb-open .tabbar::before { display: none; }
body.kb-open .composer { padding-bottom: 8px; }



/* ------------------------------------------------------------ Zahlenwähler und Kugeln */
.balls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.balls-plus { color: var(--muted); font-weight: 700; padding: 0 2px; }
.ball {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1;
  border: 2px solid var(--accent); color: var(--accent); background: transparent; font-variant-numeric: tabular-nums;
}
.ball.hit { background: var(--accent); color: var(--accent-ink); }
.ball.euro { border-color: var(--blue); color: var(--blue); }
.ball.euro.hit { background: var(--blue); color: var(--bg); }
.ball.miss { opacity: 0.55; }

.numberpicker { display: flex; flex-direction: column; gap: 8px; }
.np-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 2px 0; }
.np-count { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.np-count.full { color: var(--good); }
.np-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); margin: 0 -12px; /* bis nah an den Kartenrand: mehr Breite je Zahl */ }
/* Höhe 44 px; bei 375 px Breite sind die 10 Spalten gut 33 px breit (≥ 40 px erst ab etwa 440 px Bildschirmbreite) */
.np-cell {
  min-height: 44px; min-width: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--text); font: inherit; -webkit-tap-highlight-color: transparent;
}
.np-cell > span {
  display: grid; place-items: center; width: min(32px, 90%); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.np-cell:active > span { transform: scale(0.92); }
.np-cell.on > span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* Eurozahlen in Blau wie die Kugeln */
.np-grid.euro .np-cell.on > span { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.np-actions { margin-top: 6px; }
