/* =========================================================
   Tonys 40. Geburtstag – Styles
   Stil: angelehnt an Apple – viel Weißraum, große Typo, Glas-Navigation,
   Apple-Blau als Akzent, helle & dunkle Abschnitte. Beamer = .dark
   ========================================================= */
:root {
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, .08);
  --accent-2: #2997ff;
  --link: #0066cc;
  --grad: linear-gradient(90deg, #0071e3 0%, #7d4cdb 40%, #e2457a 75%, #ff9f0a 100%);

  --bg: #f5f5f7;
  --bg2: #ffffff;
  --card: #ffffff;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --ok: #1d8f3a;
  --bad: #d70015;

  --a: #ff3b30; --b: #0071e3; --c: #ff9f0a; --d: #34c759;

  --radius: 20px;
  --shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);

  /* alte Namen (Kompatibilität mit Inline-Styles) */
  --gold: var(--accent); --gold2: var(--accent-2); --pink: var(--accent); --teal: var(--b);
}
.dark {
  --bg: #000000;
  --bg2: #1c1c1e;
  --card: #1c1c1e;
  --line: #3a3a3c;
  --line-soft: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --accent-soft: rgba(41, 151, 255, .18);
  --accent: #2997ff;
  --link: #2997ff;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.47;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px 40px; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.card h2:first-child { margin-top: 0; }
.card.narrow { margin-left: auto; margin-right: auto; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > input { flex: 1 1 220px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .card { padding: 20px; } }
.section-head { text-align: center; margin: 56px 0 8px; }
.section-head h2 { font-size: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow { font-weight: 600; font-size: 1.05rem; letter-spacing: 0; margin-bottom: 6px; display: inline-block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Vollbreite Abschnitte (wie apple.com) ---------- */
.band { padding: 80px 22px; text-align: center; }
.band.white { background: #fff; }
.band.gray { background: var(--bg); }
.band.black { background: #000; color: #f5f5f7; }
.band.black .muted, .band.black .lead { color: #a1a1a6; }
.band.black a { color: #2997ff; }
.band h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 12px; }
.band .inner { max-width: 980px; margin: 0 auto; }
.band .card h2 { font-size: 1.6rem; margin-bottom: .5em; }
.games3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.games3 > div { background: #1c1c1e; border-radius: 24px; padding: 32px 28px; }
.games3 .num { font-size: .85rem; color: #a1a1a6; font-weight: 600; }
.games3 h3 { font-size: 1.5rem; margin: 10px 0 8px; color: #f5f5f7; }
.games3 .when { display: inline-block; font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; margin-top: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .games3 { grid-template-columns: 1fr; } .band { padding: 56px 18px; } }

/* ---------- Glas-Navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 52px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.brand { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.brand:hover { text-decoration: none; }
.brand40 {
  background: var(--text); color: #fff; border-radius: 7px;
  font-size: .8rem; font-weight: 800; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar nav { display: flex; gap: 2px; flex: 1; min-width: 0; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .topbar nav { justify-content: flex-start; } }
.topbar nav a { color: var(--text); opacity: .8; padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: .875rem; }
.topbar nav a:hover { opacity: 1; text-decoration: none; }
.topbar nav a.active { opacity: 1; font-weight: 600; }
.memenu { position: relative; }
.memenu summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; color: var(--text); }
.memenu summary::-webkit-details-marker { display: none; }
@media (max-width: 520px) { .memenu .nm { display: none; } .memenu summary { padding: 6px 8px; } }   /* schmale Handys: Platz fürs Menüband */
.memenu[open] summary, .memenu summary:hover { background: var(--line-soft); }
.memenu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 190px; z-index: 50; display: flex; flex-direction: column; }
.memenu .menu a, .memenu .menu button { text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: .9rem; }
.memenu .menu a:hover, .memenu .menu button:hover { background: var(--line-soft); text-decoration: none; }
.me { white-space: nowrap; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.linkbtn { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
@media (max-width: 600px) { .brand span:last-child { display: none; } .topbar { gap: 8px; padding: 0 12px; } .topbar nav a { padding: 6px 8px; } }
@media (max-width: 420px) { .topbar { gap: 6px; padding: 0 10px; } .topbar nav a { padding: 6px 6px; font-size: .8rem; } }
@media (max-width: 440px) { .topbar nav a[data-start] { display: none; } }   /* schmale Handys: „40“-Logo führt zur Übersicht */

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 64px 0 24px; }
.big40 {
  font-size: clamp(7rem, 22vw, 13rem); font-weight: 800; line-height: .9; letter-spacing: -.06em;
  display: inline-block; padding-right: .06em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 8px 0 12px; }
/* Feiertag: Begrüßung groß und im Farbverlauf wie die 40 */
.hero h1.willkommen { font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 4px 0 8px;
  background-image: linear-gradient(90deg, #0071e3, #7d4cdb, #e2457a, #ff9f0a, #e2457a, #7d4cdb, #0071e3); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fxUp .8s cubic-bezier(.2, .8, .2, 1) .25s both, fxShimmer 8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero h1.willkommen { animation: none; } }
.hero .lead.hallo { font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 600; color: var(--text); margin-top: 6px; min-height: 1.3em; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 2.4vw, 1.35rem); margin: 0 auto; max-width: 640px; }
.hero-cta { display: flex; justify-content: center; gap: 20px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.more::after { content: ' ›'; }
.countdown { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.countdown div { background: var(--card); border-radius: 18px; padding: 14px 18px; min-width: 88px; box-shadow: var(--shadow); }
.countdown b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .78rem; color: var(--muted); }

/* ---------- Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.tile {
  display: block; color: var(--text);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: scale(1.02); text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,.05), 0 20px 40px rgba(0,0,0,.08); }
.tile .ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.tile b { display: block; margin-top: 16px; font-size: 1.1rem; }
/* Feiertag: vier gleich große Kacheln (Handy: 2 × 2) */
.tiles.vier { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .tiles.vier { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tiles.vier .tile { padding: 18px; } .tiles.vier .tile span:not(.go) { font-size: .85rem; } }
/* Gästebuch-Kachel hervorheben, bis die Familie etwas eingetragen hat */
.tile.hot { background: linear-gradient(135deg, #e2457a, #7d4cdb 60%, #0071e3); color: #fff; box-shadow: 0 10px 30px rgba(125, 76, 219, .35); }
.tile.hot span, .tile.hot .go { color: rgba(255, 255, 255, .92); }
.tile.hot .ico { background: rgba(255, 255, 255, .2); }
/* Menükarte */
.menukarte { text-align: left; margin-top: 32px; }
.menukarte .gang { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 16px; }
.menukarte h3 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.menukarte .gericht { padding: 10px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 3px; }
.menukarte .gericht:last-child { border-bottom: 0; }
.menukarte .gericht b { font-size: 1.05rem; }
.menukarte .gericht span { color: var(--muted); font-size: .92rem; }
.menukarte .veg { font-size: .72rem; font-weight: 600; color: var(--ok); background: rgba(52, 199, 89, .12); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.tile span { color: var(--muted); font-size: .92rem; }
.tile .go { color: var(--link); font-size: .92rem; margin-top: 8px; display: inline-block; }

/* ---------- Programm ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .t small { display: block; color: var(--muted); font-weight: 400; }
.timeline b { font-size: 1.05rem; }
.timeline .tag { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.timeline .slots { list-style: none; padding: 0; margin: 8px 0 0; }
.timeline .slots li { display: flex; gap: 12px; padding: 4px 0; border: 0; font-size: .92rem; color: var(--muted); }
.timeline .slots li span:first-child { min-width: 46px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 74px 1fr; gap: 12px; } }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 600; margin: 20px 0 8px; font-size: .95rem; }
input[type=text], input:not([type]), input[type=number], input[type=password], textarea, select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 96px; resize: vertical; }
.form-section { border-top: 1px solid var(--line-soft); margin-top: 28px; padding-top: 8px; }
.form-section > h3 { margin-top: 20px; }
.hint { color: var(--muted); font-size: .88rem; margin: -2px 0 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 980px; padding: 12px 24px;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.pink { background: var(--accent); }
.btn.teal { background: var(--text); color: var(--bg2); }
.btn.danger { background: var(--bad); }
.btn.small { padding: 7px 16px; font-size: .88rem; }
.btn.block { width: 100%; padding: 15px 24px; font-size: 1.05rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }

/* Segmented Control */
.seg { display: flex; gap: 4px; background: var(--line-soft); padding: 4px; border-radius: 14px; flex-wrap: wrap; }
.seg label { flex: 1 1 0; margin: 0; min-width: 0; }
.seg input { display: none; }
.seg span {
  display: block; text-align: center; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font-weight: 500; color: var(--text); transition: background .15s, box-shadow .15s;
}
.seg input:checked + span { background: var(--bg2); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); font-weight: 600; }
.seg input:disabled + span { opacity: .35; cursor: not-allowed; }

/* Chips (Mehrfachauswahl) */
.chips-sel { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-sel label { margin: 0; font-weight: 500; }
.chips-sel input { display: none; }
.chips-sel span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; background: var(--bg2); }
.chips-sel input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.stepper { display: flex; align-items: center; background: var(--line-soft); border-radius: 14px; width: max-content; padding: 4px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--bg2); color: var(--accent); font-size: 1.4rem; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.stepper input { width: 60px; border: 0; background: transparent; text-align: center; font-size: 1.25rem; font-weight: 600; padding: 0; height: 44px; -moz-appearance: textfield; box-shadow: none !important; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.person {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin: 8px 0;
}
.person input { border: 0; padding: 10px 4px; box-shadow: none !important; min-width: 0; }
@media (max-width: 420px) { .person { gap: 8px; padding: 6px 10px; } .person .veggie { font-size: .82rem; } }
html, body { overflow-x: hidden; }
.badge { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.badge.kind { background: rgba(0, 113, 227, .1); color: var(--b); }
.veggie { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; margin: 0; cursor: pointer; white-space: nowrap; }
.veggie.beamer-wahl { white-space: normal; flex-wrap: wrap; margin: 16px 0 4px; font-size: 1rem; }
.veggie input { width: 20px; height: 20px; accent-color: var(--accent); }

.alert { background: #fff8e6; border: 1px solid rgba(255, 159, 10, .35); color: var(--text); padding: 14px 16px; border-radius: 14px; margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.dark .alert { background: rgba(255, 159, 10, .12); }
.info { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin-top: 14px; font-size: .95rem; }
.info b { color: var(--accent); }
.success { text-align: center; padding: 12px 0; }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2.2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.summary { list-style: none; padding: 0; display: inline-block; text-align: left; }
.summary li { padding: 4px 0; }

/* ---------- Gästebuch ---------- */
.cam { position: relative; width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 1; background: #1d1d1f; border-radius: var(--radius); overflow: hidden; }
.cam canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.cam .placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #a1a1a6; text-align: center; padding: 20px; }
.cam .placeholder .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.toolbar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.toolbar button {
  flex: 0 0 auto; font: inherit; font-size: .9rem; cursor: pointer; border-radius: 999px; padding: 8px 16px;
  background: var(--bg2); color: var(--text); border: 1px solid var(--line);
}
.toolbar button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.toolbar.stickers button { font-size: 1.5rem; padding: 4px 12px; }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.entry { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.entry img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.entry .fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.entry .fotos img:first-child:nth-last-child(odd) { grid-column: 1 / -1; }   /* bei 3 oder 5 Fotos: erstes groß */
.entry .txt { padding: 14px 16px; }
/* Gästebuch: gesammelte Fotos vor dem Speichern */
.album { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.album .th { position: relative; width: 72px; height: 72px; }
.album .th img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.album .th button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #1d1d1f; color: #fff; font-size: .8rem; cursor: pointer; line-height: 24px; padding: 0; }
.entry .who { font-weight: 600; }
.entry .when { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ---------- Spiel (Handy) ---------- */
.game-wrap { max-width: 520px; margin: 0 auto; padding: 16px 18px; min-height: calc(100vh - 52px); display: flex; flex-direction: column; }
.game-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 14px; font-weight: 500; }
.game-q { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 20px; line-height: 1.2; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; max-height: 440px; }
.ans {
  border: 0; border-radius: 22px; font: inherit; font-weight: 600; font-size: 1.05rem; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; min-height: 120px;
  transition: transform .1s, opacity .2s; box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.ans:active { transform: scale(.96); }
.ans .l { font-size: 1.8rem; font-weight: 800; opacity: .9; }
.ans.A { background: var(--a); } .ans.B { background: var(--b); } .ans.C { background: var(--c); } .ans.D { background: var(--d); }
.ans.dim { opacity: .25; }
.timerbar { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; margin: 8px 0 14px; }
.timerbar div { height: 100%; background: var(--accent); width: 100%; transition: width .25s linear; border-radius: 99px; }
.bigmsg { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.bigmsg .emo { font-size: 4.5rem; line-height: 1; }
.bigmsg h2 { font-size: 2rem; margin: 6px 0; }
.pts { font-size: 3rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.numinput { font-size: 2.2rem !important; text-align: center; font-weight: 700; padding: 18px !important; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }

/* ---------- Tabellen / Admin ---------- */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; }
tfoot td { font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi { background: var(--bg); border-radius: 16px; padding: 16px; }
.kpi b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.kpi span { color: var(--muted); font-size: .85rem; }
.tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; background: var(--line-soft); padding: 4px; border-radius: 14px; margin-top: 24px; }
.tabs button { font: inherit; font-size: .92rem; cursor: pointer; background: transparent; color: var(--text); border: 0; border-radius: 10px; padding: 8px 16px; }
.tabs button.on { background: var(--bg2); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.scroll { overflow-x: auto; }

.qr-fallback { background: #fff; color: #1d1d1f; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 8px; font-weight: 600; }

.footer { text-align: center; color: var(--muted); font-size: .78rem; padding: 40px 0 10px; border-top: 1px solid var(--line-soft); margin-top: 40px; }

/* ---------- Admin-Hinweisleiste ---------- */
.adminbar { background: #1d1d1f; color: #f5f5f7; font-size: .8rem; text-align: center; padding: 7px 14px; line-height: 1.5; }
.adminbar a, .adminbar .linkbtn { color: #2997ff; font-size: .8rem; margin-left: 6px; }

/* ---------- Vorab-Modus: Einladung & Countdown ---------- */
.vorab { min-height: calc(100vh - 52px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; text-align: center; }
.vorab .inner { max-width: 640px; width: 100%; }
.invite-text { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.55; margin: 22px auto 0; max-width: 560px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0 0; text-align: center; }
.facts > div { background: var(--card); border-radius: 18px; padding: 18px 14px; box-shadow: var(--shadow); }
.facts .fi { font-size: 1.6rem; line-height: 1; }
.facts b { display: block; margin-top: 6px; }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.vorab .card { text-align: left; margin-top: 36px; }
.countdown.xl div { min-width: 110px; padding: 20px 22px; }
.countdown.xl b { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.secret { margin-top: 32px; color: var(--muted); }
.vorab-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: .95rem; }

/* ---------- Login: Name + PLZ ---------- */
.login-form { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: center; }
@media (max-width: 520px) { .login-form { grid-template-columns: 1fr 90px; } .login-form .btn { grid-column: 1 / -1; } }
.invite-form { display: grid; grid-template-columns: 1fr 120px auto; gap: 10px; align-items: center; }
@media (max-width: 520px) { .invite-form { grid-template-columns: 1fr 90px; } .invite-form .btn { grid-column: 1 / -1; } }
#itable .plz-edit { width: 100px; padding: 6px 10px; margin: 0; }
#iFilter span { white-space: nowrap; }
#iFilter label { flex: 0 0 auto; }

/* =========================================================
   Animationen (bei "Bewegung reduzieren" automatisch aus)
   ========================================================= */
/* Gestaffeltes Einblenden: .fx-in + .d2 … .d6 */
.fx-in { animation: fxUp .8s cubic-bezier(.2, .8, .2, 1) both; }
.fx-in.d2 { animation-delay: .25s; } .fx-in.d3 { animation-delay: .4s; } .fx-in.d4 { animation-delay: .55s; }
.fx-in.d5 { animation-delay: .7s; } .fx-in.d6 { animation-delay: .85s; }
@keyframes fxUp { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Die große 40: reinploppen, schimmernder Verlauf, sanftes Schweben */
.big40, .eyebrow { background-image: linear-gradient(90deg, #0071e3, #7d4cdb, #e2457a, #ff9f0a, #e2457a, #7d4cdb, #0071e3); background-size: 300% 100%; }
.big40.fx-pop { animation: fxPop 1.1s cubic-bezier(.34, 1.56, .64, 1) .1s both, fxShimmer 6s linear 1.2s infinite, fxFloat 4s ease-in-out 1.2s infinite; }
@keyframes fxPop { 0% { opacity: 0; transform: scale(.3) rotate(-12deg); } 60% { opacity: 1; transform: scale(1.08) rotate(3deg); } 100% { transform: none; } }
@keyframes fxShimmer { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
@keyframes fxFloat { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.eyebrow { animation: fxShimmer 8s linear infinite; }

/* Glanz-Effekt auf Buttons */
.fx-shine { position: relative; overflow: hidden; }
.fx-shine::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: fxShine 3.2s ease-in-out 1.5s infinite;
}
@keyframes fxShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.fx-shine:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px rgba(0, 113, 227, .35); }
.btn { transition: background .15s, transform .2s, box-shadow .2s; }

/* Countdown: Ziffer hüpft beim Wechsel */
.countdown div { transition: transform .25s; }
.countdown div:hover { transform: translateY(-4px); }
.countdown b.fx-tick { animation: fxTick .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes fxTick { 0% { transform: translateY(-40%) scale(.7); opacity: 0; color: #e2457a; } 100% { transform: none; opacity: 1; } }
.fx-party { display: inline-block; animation: pulse 1.4s ease-in-out infinite; font-size: 1.8rem; }

/* Fakten-Kärtchen & Kacheln: Icon wackelt beim Drüberfahren */
.facts > div { transition: transform .25s, box-shadow .25s; }
.facts > div:hover { transform: translateY(-6px); box-shadow: 0 6px 14px rgba(0,0,0,.06), 0 22px 44px rgba(0,0,0,.1); }
.facts > div:hover .fi, .tile:hover .ico { animation: fxWiggle .6s ease-in-out; }
.fi, .tile .ico { display: inline-block; }
.tile .ico { display: flex; }
@keyframes fxWiggle { 25% { transform: rotate(-14deg) scale(1.15); } 50% { transform: rotate(10deg) scale(1.15); } 75% { transform: rotate(-6deg); } }
.games3 > div { transition: transform .3s, background .3s; }
.games3 > div:hover { transform: translateY(-6px); background: #2c2c2e; }

/* Beim Scrollen einblenden */
.fx-reveal { opacity: 0; transform: translateY(36px) scale(.98); transition: opacity .7s ease var(--fx-delay, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--fx-delay, 0ms); }
.fx-reveal.fx-shown { opacity: 1; transform: none; }
.tile.fx-reveal.fx-shown:hover { transform: scale(1.02); transition-delay: 0ms; }
.games3 > div.fx-reveal.fx-shown:hover { transform: translateY(-6px); transition-delay: 0ms; }

/* Erfolgs-Häkchen */
.success .check { animation: fxPop .8s cubic-bezier(.34, 1.56, .64, 1) both; }
.success { animation: fxUp .6s ease both; }

/* Konfetti-Leinwand */
.fx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

/* Luftballons */
.fx-host { position: relative; overflow: hidden; isolation: isolate; }
.fx-host > :not(.fx-balloons) { position: relative; z-index: 1; }
.fx-balloons { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fx-balloons i {
  position: absolute; bottom: -160px; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7) 0 8%, transparent 22%), var(--c);
  animation-name: fxRise, fxSway; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate;
}
.fx-balloons i::after { /* Schnur */
  content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 70px;
  background: linear-gradient(var(--c), transparent); opacity: .6;
}
@keyframes fxRise { from { bottom: -160px; } to { bottom: calc(100% + 160px); } }
@keyframes fxSway { from { transform: translateX(-18px) rotate(-6deg); } to { transform: translateX(18px) rotate(6deg); } }

@media (prefers-reduced-motion: reduce) {
  .fx-in, .big40.fx-pop, .eyebrow, .fx-shine::after, .success, .success .check, .countdown b.fx-tick { animation: none !important; }
  .fx-reveal { opacity: 1; transform: none; }
}
.eyebrow.fx-in { animation: fxUp .8s cubic-bezier(.2, .8, .2, 1) both, fxShimmer 8s linear infinite; }
#loginCard.hidden + h2 { margin-top: 0 !important; }   /* Feiertag ohne Beitrag: kein Leerraum, wo die Karte war */
