:root {
  --red: #ba2427;
  --red-dark: #891618;
  --red-darker: #4e0c0d;
  --red-soft: #f6e5e5;
  --ink: #191919;
  --muted: #726565;
  --paper: #fffaf6;
  --white: #ffffff;
  --line: rgba(78, 12, 13, 0.16);
  --shadow: 0 18px 48px rgba(78, 12, 13, 0.16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: radial-gradient(circle at top right, rgba(186, 36, 39, .11), transparent 32rem), var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(186,36,39,.3); outline-offset: 3px; }
.hidden { display: none !important; }

.app-shell { min-height: 100dvh; padding-bottom: 96px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px; background: rgba(255,250,246,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; min-width: 0; gap: 12px; }
.brand-logo { width: 62px; height: 44px; object-fit: cover; object-position: center; border-radius: 10px; box-shadow: 0 4px 16px rgba(78,12,13,.18); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-family: Georgia, serif; font-size: 1.12rem; }
.brand-copy span { color: var(--muted); font-size: .74rem; margin-top: 5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.club-button { display: flex; align-items: center; gap: 9px; min-height: 48px; max-width: 240px; padding: 6px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 16px; }
.club-button-copy { display: flex; min-width: 0; flex-direction: column; text-align: left; line-height: 1.08; }
.club-button-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-button-copy small { margin-top: 4px; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.sync-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #aaa; box-shadow: 0 0 0 4px rgba(120,120,120,.12); }
.sync-dot.online { background: #2c9a55; box-shadow: 0 0 0 4px rgba(44,154,85,.13); }
.sync-dot.offline { background: #c43b3e; box-shadow: 0 0 0 4px rgba(196,59,62,.13); }
.sync-dot.syncing { background: #d59426; box-shadow: 0 0 0 4px rgba(213,148,38,.14); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.86); } }
.compact-button { min-height: 44px; padding-inline: 13px; }

main { width: min(1080px, calc(100% - 28px)); margin: 24px auto 0; }
.view { display: none; animation: viewIn .25s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


.home-return-wrap {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 14px;
}
.home-return-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px 0 11px;
  color: var(--red-dark);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(137,22,24,.22);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(78,12,13,.08);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.home-return-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: var(--red);
}
.home-return-button:hover {
  transform: translateY(-1px);
  background: var(--white);
  box-shadow: 0 9px 22px rgba(78,12,13,.12);
}
.home-return-button:active { transform: translateY(0); }

.hero-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  min-height: 210px; padding: 28px; color: var(--white); background: linear-gradient(135deg, var(--red-dark), var(--red)); border-radius: 30px; box-shadow: var(--shadow);
}
.hero-card::after { content: ""; position: absolute; width: 220px; height: 220px; border: 48px solid rgba(255,255,255,.07); border-radius: 50%; right: -80px; top: -110px; }
.hero-card h1, .section-heading h1, .section-heading h2, .dialog-card h2 { font-family: Georgia, "Times New Roman", serif; margin: 0; }
.hero-card h1 { font-size: clamp(2.1rem, 5vw, 4.4rem); }
.hero-card p:not(.eyebrow) { max-width: 680px; margin: 12px 0 0; line-height: 1.55; color: rgba(255,255,255,.86); }
.hero-symbols { font-size: clamp(2.4rem, 8vw, 6.5rem); letter-spacing: -.22em; opacity: .28; transform: rotate(-7deg); }
.eyebrow { margin: 0 0 8px; font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.hero-card .eyebrow { color: rgba(255,255,255,.74); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.stat-card, .panel { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(78,12,13,.08); }
.stat-card { padding: 20px; min-width: 0; }
.stat-card span { display: block; color: var(--muted); font-size: .84rem; }
.stat-card strong { display: block; overflow: hidden; margin-top: 6px; font-family: Georgia, serif; font-size: clamp(1.35rem, 3vw, 2rem); text-overflow: ellipsis; white-space: nowrap; }
.panel { padding: 24px; margin-top: 18px; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.primary-action {
  display: flex; align-items: center; gap: 14px; min-height: 112px; padding: 20px; border: 0; border-radius: var(--radius); color: var(--white); text-align: left;
  background: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.14); transition: transform .18s ease, box-shadow .18s ease;
}
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.primary-action:nth-child(2) { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.primary-action.hall-action { background: linear-gradient(135deg, #5e4711, #b58a2a); }
.primary-action strong, .primary-action small { display: block; }
.primary-action strong { font-size: 1.08rem; }
.primary-action small { margin-top: 5px; color: rgba(255,255,255,.72); }
.action-icon { font-size: 2rem; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.section-heading h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.section-heading h2 { font-size: 1.65rem; }
.section-heading.compact { margin-bottom: 12px; }
.lead { color: var(--muted); line-height: 1.6; margin: -4px 0 18px; }

button { border: 0; border-radius: 16px; min-height: 46px; padding: 0 18px; font-weight: 800; }
.accent-button { color: white; background: linear-gradient(135deg, var(--red-dark), var(--red)); box-shadow: 0 8px 18px rgba(137,22,24,.22); }
.ghost-button { background: white; color: var(--ink); border: 1px solid var(--line); }
.danger-button { color: white; background: #171717; }
.wide { width: 100%; }
.icon-button { min-width: 42px; padding: 0; font-size: 1.7rem; background: transparent; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
.member-card { position: relative; overflow: hidden; padding: 14px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 24px rgba(78,12,13,.08); }
.member-photo { width: 100%; aspect-ratio: 1; border-radius: 18px; object-fit: cover; background: var(--red-soft); }
.member-fallback { display: grid; place-items: center; font-family: Georgia, serif; font-size: 2.7rem; font-weight: 800; color: var(--red-dark); }
.member-name { display: block; margin-top: 10px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.member-delete { position: absolute; top: 22px; right: 22px; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; color: white; background: rgba(0,0,0,.72); }
.selectable .member-card { cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.selectable .member-card.selected { border: 3px solid var(--red); padding: 12px; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(137,22,24,.18); }
.select-mark { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 34px; height: 34px; color: transparent; background: rgba(255,255,255,.88); border: 2px solid var(--line); border-radius: 50%; }
.member-card.selected .select-mark { color: white; background: var(--red); border-color: var(--red); }
.sticky-action { position: sticky; bottom: 96px; margin-top: 20px; padding: 10px; background: rgba(255,250,246,.9); backdrop-filter: blur(14px); border-radius: 20px; }

.game-heading { align-items: center; }
.timer { flex: 0 0 auto; padding: 10px 15px; border-radius: 999px; color: var(--red-dark); background: var(--red-soft); font-weight: 900; font-variant-numeric: tabular-nums; }
.scoreboard { display: grid; gap: 10px; }
.score-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; color: white; background: #171717; border-radius: 20px; }
.score-row.leader { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.score-avatar { width: 52px; height: 52px; border-radius: 15px; object-fit: cover; background: rgba(255,255,255,.14); }
.score-info strong, .score-info small { display: block; }
.score-info small { color: rgba(255,255,255,.68); margin-top: 3px; }
.score-value { font-family: Georgia, serif; font-size: 2rem; font-weight: 800; }
.round-panel { margin-top: 16px; }
.round-form { display: grid; gap: 10px; margin: 12px 0 14px; }
.round-input-row { display: grid; grid-template-columns: 48px minmax(0,1fr) 110px; align-items: center; gap: 12px; padding: 10px; background: var(--red-soft); border-radius: 18px; }
.round-input-row img, .round-input-row .mini-fallback { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; }
.mini-fallback { display: grid; place-items: center; color: var(--red-dark); background: rgba(255,255,255,.7); font-weight: 900; }
.round-input-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-input-row input { width: 100%; min-height: 44px; padding: 0 10px; text-align: center; font-size: 1.1rem; font-weight: 900; border: 1px solid rgba(78,12,13,.18); border-radius: 12px; background: white; }
.game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 22px; }

.history-list { display: grid; gap: 14px; }
.history-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(78,12,13,.08); }
.history-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.history-head h3 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; }
.history-head time { color: var(--muted); font-size: .8rem; }
.history-scores { display: grid; gap: 7px; margin-top: 14px; }
.history-score { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 12px; background: var(--red-soft); }
.history-score.winner { color: white; background: var(--red-dark); }
.history-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.text-button { min-height: 34px; padding: 0 8px; background: transparent; color: var(--red-dark); }
.empty-state { min-height: 140px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 2px dashed rgba(78,12,13,.18); border-radius: 20px; padding: 24px; }

.award-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.award-card { min-width: 0; padding: 16px; color: white; background: linear-gradient(145deg, #171717, #35302a); border-radius: 22px; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.award-card:first-child { background: linear-gradient(145deg, #6a4e10, #bd912c); }
.award-icon { display: block; font-size: 1.55rem; margin-bottom: -10px; text-align: right; }
.award-avatar { width: 58px; height: 58px; object-fit: cover; border-radius: 18px; background: rgba(255,255,255,.16); }
.award-card small, .award-card strong, .award-card span:not(.award-icon) { display: block; }
.award-card small { margin-top: 10px; color: rgba(255,255,255,.64); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.award-card strong { margin-top: 4px; overflow: hidden; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; }
.award-card span:not(.award-icon) { margin-top: 5px; color: rgba(255,255,255,.86); font-size: .82rem; }
.hall-panel { overflow: hidden; }
.ranking-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.ranking-row { display: grid; grid-template-columns: 70px minmax(190px, 1.6fr) repeat(4, minmax(80px, .65fr)); align-items: center; min-width: 760px; min-height: 66px; border-top: 1px solid var(--line); }
.ranking-row:first-child { border-top: 0; }
.ranking-row > * { padding: 10px 14px; }
.ranking-head { min-height: 46px; color: var(--muted); background: var(--red-soft); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.ranking-row.top-1 { background: rgba(181,138,42,.15); }
.ranking-row.top-2 { background: rgba(100,100,100,.07); }
.ranking-row.top-3 { background: rgba(143,86,40,.08); }
.rank-number { font-family: Georgia, serif; font-size: 1.45rem; text-align: center; }
.rank-player { display: flex; align-items: center; min-width: 0; gap: 10px; }
.rank-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-avatar { flex: 0 0 auto; width: 42px; height: 42px; object-fit: cover; border-radius: 13px; background: var(--red-soft); }

.bottom-nav {
  position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(6, 1fr);
  width: min(820px, calc(100% - 24px)); padding: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: rgba(20,20,20,.94); box-shadow: 0 18px 40px rgba(0,0,0,.26); backdrop-filter: blur(18px);
}
.nav-item { display: grid; place-items: center; gap: 2px; min-height: 56px; padding: 5px 6px; color: rgba(255,255,255,.55); background: transparent; border-radius: 16px; font-size: .66rem; }
.nav-item span { font-size: 1.18rem; }
.nav-item.active { color: white; background: var(--red); }
.game-nav { transform: translateY(-13px); min-height: 64px; border-radius: 20px; background: var(--red-dark); color: white; box-shadow: 0 8px 22px rgba(137,22,24,.38); }
.game-nav.active { background: var(--red); }

dialog { width: min(520px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 26px; background: transparent; }
dialog::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(5px); }
.dialog-card { display: grid; gap: 16px; padding: 24px; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-card label { display: grid; gap: 7px; font-weight: 850; }
.dialog-card input[type="text"], .dialog-card input[type="file"], .dialog-card input[type="date"], .dialog-card input[type="time"], .dialog-card textarea, .dialog-card select { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.dialog-card textarea { resize: vertical; line-height: 1.55; }
.photo-preview-wrap { position: relative; min-height: 190px; overflow: hidden; border: 2px dashed rgba(78,12,13,.18); border-radius: 20px; background: white; }
.photo-preview { display: none; width: 100%; height: 230px; object-fit: cover; }
.photo-preview.visible { display: block; }
.photo-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.small-dialog { text-align: left; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 110px; transform: translate(-50%, 20px); max-width: calc(100% - 28px); padding: 12px 18px; color: white; background: #171717; border-radius: 14px; opacity: 0; pointer-events: none; transition: .22s ease; box-shadow: 0 10px 30px rgba(0,0,0,.22); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.club-access-dialog { width: min(900px, calc(100% - 24px)); }
.access-card { padding: 28px; }
.access-logo { width: min(320px, 78%); max-height: 150px; object-fit: contain; justify-self: center; border-radius: 18px; }
.access-intro { text-align: center; }
.access-intro > p:not(.eyebrow) { margin: 10px auto 0; max-width: 620px; color: var(--muted); line-height: 1.55; }
.access-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.access-box { display: grid; gap: 14px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 20px; }
.access-box h3 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; }
.access-box label { display: grid; gap: 7px; font-weight: 850; }
.access-box input { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
#clubCodeInput { font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.privacy-note { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: center; }
.club-code-card { display: grid; gap: 8px; padding: 20px; text-align: center; color: white; background: linear-gradient(135deg, var(--red-dark), var(--red)); border-radius: 22px; }
.club-code-card span { color: rgba(255,255,255,.7); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.club-code-card strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1.8rem, 8vw, 3.1rem); letter-spacing: .08em; }
.club-code-card .accent-button { background: white; color: var(--red-dark); box-shadow: none; }
.connection-row { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .award-grid { grid-template-columns: repeat(2, 1fr); }
  .award-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  main { width: min(100% - 20px, 1080px); margin-top: 14px; }
  .topbar { padding-inline: 12px; }
  .brand-logo { width: 52px; height: 38px; }
  .brand-copy strong { font-size: .98rem; }
  .brand-copy span { display: none; }
  .club-button { max-width: 178px; min-height: 44px; padding-inline: 9px; }
  .club-button-copy strong { font-size: .78rem; }
  .club-button-copy small { font-size: .61rem; }
  .hero-card { grid-template-columns: 1fr; min-height: 235px; padding: 22px; }
  .hero-symbols { position: absolute; right: 18px; bottom: 12px; }
  .action-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .panel { padding: 18px; }
  .round-input-row { grid-template-columns: 44px minmax(0,1fr) 86px; gap: 8px; }
  .game-actions { grid-template-columns: 1fr; }
  .topbar > .ghost-button, .topbar-actions > .ghost-button { display: none; }
  .access-columns { grid-template-columns: 1fr; }
  .access-card { padding: 20px; }
  .access-logo { max-height: 105px; }
  .award-grid { grid-template-columns: 1fr; }
  .award-card:last-child { grid-column: auto; }
  .nav-item { font-size: .57rem; padding-inline: 2px; }
  .bottom-nav { width: calc(100% - 16px); }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 15px; }
  .member-grid { gap: 9px; }
  .member-card { padding: 10px; border-radius: 18px; }
  .member-photo { border-radius: 14px; }
  .member-delete, .select-mark { top: 15px; right: 15px; }
}

@media (min-width: 850px) {
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
}

.setup-hint { margin: 0; padding: 12px 14px; color: #8c1c1f; background: #fdeaea; border-radius: 14px; text-align: center; font-size: .86rem; font-weight: 750; }
.setup-hint a { color: inherit; }

/* Version 3: Clubberichte, Reisen, Chat und Kalender */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.expanded-actions { grid-template-columns: repeat(3, 1fr); }
.expanded-actions .primary-action:nth-child(2) { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.expanded-actions .primary-action:nth-child(5) { background: #171717; }
.chat-action { background: linear-gradient(135deg, #26364a, #385f7c) !important; }
.calendar-action { background: linear-gradient(135deg, #3e4b25, #74893c) !important; }
.home-highlight-panel { overflow: hidden; }
.compact-event-list { min-height: 90px; }
.compact-event-list:not(.empty-state) { display: grid; gap: 8px; }
.compact-event-row { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 15px; background: var(--red-soft); }
.compact-event-date { display: grid; place-items: center; min-height: 52px; color: white; background: var(--red-dark); border-radius: 13px; font-weight: 900; text-align: center; line-height: 1.05; }
.compact-event-date small { display: block; opacity: .75; font-size: .62rem; text-transform: uppercase; }
.compact-event-copy { min-width: 0; }
.compact-event-copy strong, .compact-event-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-event-copy small { color: var(--muted); margin-top: 4px; }

.content-section-heading { display: flex; align-items: center; gap: 13px; margin: 24px 0 12px; }
.content-section-heading > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--red-soft); font-size: 1.45rem; }
.content-section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.7rem; }
.content-section-heading .eyebrow { margin-bottom: 4px; }
.trip-heading { margin-top: 34px; }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trip-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.content-card { position: relative; display: flex; flex-direction: column; min-height: 290px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(78,12,13,.09); }
.content-card .content-icon { font-size: 1.8rem; }
.content-card h3 { margin: 14px 0 0; font-family: Georgia, serif; font-size: 1.55rem; }
.content-card .content-headline { margin: 9px 0 0; color: var(--red-dark); font-weight: 900; }
.content-card .content-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.content-card .content-body { flex: 1; margin: 16px 0 18px; color: #493d3d; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.content-card .content-empty { color: var(--muted); font-style: italic; }
.content-card .edit-content-button { align-self: flex-start; margin-top: auto; }
.trip-card { min-height: 340px; overflow: hidden; color: white; border: 0; background: linear-gradient(145deg, var(--red-dark), var(--red)); }
.trip-card::after { content: ""; position: absolute; right: -74px; top: -70px; width: 220px; height: 220px; border: 42px solid rgba(255,255,255,.06); border-radius: 50%; }
.trip-card.day-trip { background: linear-gradient(145deg, #171717, #423535); }
.trip-card .content-meta, .trip-card .content-body { color: rgba(255,255,255,.8); }
.trip-card .content-headline { color: white; font-size: 1.08rem; }
.trip-card .ghost-button { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.trip-badge { display: inline-flex; align-self: flex-start; padding: 7px 10px; border-radius: 999px; color: var(--red-dark); background: white; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.trip-card.day-trip .trip-badge { color: #171717; }
.trip-booking { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.1); white-space: pre-wrap; font-size: .84rem; line-height: 1.5; }
.wide-dialog { width: min(760px, calc(100% - 24px)); }
.form-grid { display: grid; gap: 14px; }
.two-column-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label { display: flex !important; align-items: center; gap: 10px; }
.checkbox-label input { width: 20px; height: 20px; }

.panel-inline { padding: 13px 16px; margin-bottom: 14px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 20px rgba(78,12,13,.07); }
.chat-identity { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; }
.signed-in-avatar-wrap { display: grid; place-items: center; flex: 0 0 auto; }
.signed-in-avatar { width: 54px; height: 54px; object-fit: cover; border-radius: 17px; background: var(--red-soft); }
.chat-identity-copy, .device-profile-card > div:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.chat-identity-copy small, .device-profile-card small { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.chat-identity-copy strong, .device-profile-card strong { overflow: hidden; color: var(--red-dark); font-family: Georgia, serif; font-size: 1.18rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-identity-copy span, .device-profile-card span { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.chat-composer textarea:disabled { cursor: not-allowed; background: #f2ece8; color: var(--muted); }
.device-profile-card { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; margin: 15px 0; padding: 14px; background: var(--red-soft); border: 1px solid var(--line); border-radius: 18px; }
.device-profile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.device-profile-actions .ghost-button { flex: 1 1 190px; }
.device-profile-actions .text-button { flex: 0 1 auto; }
.member-login-dialog { width: min(560px, calc(100% - 24px)); }
.compact-lead { margin-top: 0; font-size: .92rem; }
.member-login-list { display: grid; gap: 9px; max-height: min(56vh, 520px); overflow-y: auto; margin: 16px 0; padding: 2px; }
.member-login-option { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 9px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 17px; text-align: left; box-shadow: 0 5px 16px rgba(78,12,13,.05); }
.member-login-option:hover, .member-login-option:focus-visible { border-color: var(--red); transform: translateY(-1px); }
.member-login-option.current { background: var(--red-soft); border-color: var(--red); }
.login-avatar { width: 50px; height: 50px; object-fit: cover; border-radius: 15px; background: var(--red-soft); }
.member-login-option > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.member-login-option strong { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.member-login-option small { color: var(--muted); font-size: .72rem; }
.login-check { color: var(--red); font-size: 1.35rem; font-weight: 900; }
.chat-list { display: flex; flex-direction: column; gap: 12px; min-height: 360px; max-height: min(65vh, 720px); overflow-y: auto; padding: 18px; background: rgba(255,255,255,.68); border: 1px solid var(--line); border-radius: 24px; box-shadow: inset 0 0 34px rgba(78,12,13,.04); }
.chat-list.empty-state { display: grid; }
.chat-message { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: flex-start; gap: 10px; max-width: min(780px, 94%); }
.chat-message.own-message { align-self: flex-end; grid-template-columns: minmax(0,1fr) 46px; }
.chat-message.own-message .chat-avatar { order: 2; }
.chat-avatar { width: 46px; height: 46px; object-fit: cover; border-radius: 15px; background: var(--red-soft); }
.chat-bubble { min-width: 0; padding: 13px 15px; background: white; border: 1px solid var(--line); border-radius: 6px 20px 20px 20px; box-shadow: 0 6px 20px rgba(78,12,13,.07); }
.own-message .chat-bubble { color: white; background: linear-gradient(145deg, var(--red-dark), var(--red)); border: 0; border-radius: 20px 6px 20px 20px; }
.chat-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.chat-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-meta time { color: var(--muted); font-size: .68rem; white-space: nowrap; }
.own-message .chat-meta time { color: rgba(255,255,255,.68); }
.chat-text { margin: 8px 0 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message-actions { display: flex; justify-content: flex-end; margin-top: 7px; }
.chat-message-actions button { min-height: 28px; color: var(--muted); font-size: .68rem; }
.own-message .chat-message-actions button { color: rgba(255,255,255,.75); }
.chat-poll { margin-top: 12px; padding: 12px; color: var(--ink); background: rgba(255,255,255,.94); border-radius: 16px; }
.chat-poll h4 { margin: 0 0 10px; font-size: 1rem; }
.poll-option { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; position: relative; overflow: hidden; width: 100%; min-height: 48px; margin-top: 7px; padding: 9px 12px; color: var(--ink); background: var(--red-soft); border: 1px solid transparent; text-align: left; }
.poll-option::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--poll-width, 0%); background: rgba(186,36,39,.15); }
.poll-option > * { position: relative; z-index: 1; }
.poll-option.selected { border-color: var(--red); }
.poll-option .poll-count { white-space: nowrap; font-size: .78rem; }
.poll-total { display: block; margin-top: 9px; color: var(--muted); font-size: .72rem; }
.chat-composer { position: sticky; bottom: 94px; z-index: 5; margin-top: 14px; padding: 14px; }
.chat-composer textarea { width: 100%; min-height: 84px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; resize: vertical; line-height: 1.5; }
.composer-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.poll-composer { display: grid; gap: 11px; margin-top: 12px; padding: 14px; background: var(--red-soft); border-radius: 17px; }
.poll-composer label { display: grid; gap: 6px; font-weight: 850; }
.poll-composer input { width: 100%; min-height: 46px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; }
.composer-head { display: flex; align-items: center; justify-content: space-between; }
.small-icon { min-width: 32px; min-height: 32px; font-size: 1.25rem; }
.poll-option-inputs { display: grid; gap: 8px; }
.poll-option-input-row { display: grid; grid-template-columns: minmax(0,1fr) 36px; gap: 7px; }
.poll-option-input-row button { min-width: 36px; min-height: 42px; padding: 0; background: transparent; color: var(--red-dark); font-size: 1.2rem; }

.calendar-toolbar { display: grid; grid-template-columns: 52px minmax(0,1fr) 52px; align-items: center; gap: 10px; margin-bottom: 12px; }
.calendar-toolbar h2 { margin: 0; text-align: center; font-family: Georgia, serif; font-size: clamp(1.45rem, 4vw, 2rem); }
.calendar-arrow { min-width: 52px; padding: 0; font-size: 1.8rem; }
.calendar-panel { margin-top: 0; padding: 14px; overflow-x: auto; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(95px, 1fr)); min-width: 665px; }
.calendar-weekdays span { padding: 7px; color: var(--muted); font-size: .72rem; font-weight: 900; text-align: center; text-transform: uppercase; }
.calendar-day { position: relative; min-height: 112px; padding: 8px; background: white; border: 1px solid var(--line); text-align: left; border-radius: 0; }
.calendar-day:nth-child(7n+1) { border-radius: 14px 0 0 14px; }
.calendar-day:nth-child(7n) { border-radius: 0 14px 14px 0; }
.calendar-day.outside-month { background: rgba(255,255,255,.42); color: #ac9d9d; }
.calendar-day.today { box-shadow: inset 0 0 0 3px var(--red); }
.calendar-day-number { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; font-weight: 900; }
.calendar-day.today .calendar-day-number { color: white; background: var(--red); }
.calendar-day-events { display: grid; gap: 4px; margin-top: 5px; }
.calendar-event-chip { overflow: hidden; padding: 4px 6px; color: white; background: var(--red-dark); border-radius: 7px; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-more { color: var(--muted); font-size: .64rem; }
.event-list { display: grid; gap: 11px; }
.event-card { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.event-date-block { display: grid; place-items: center; min-height: 68px; padding: 7px; color: white; background: linear-gradient(145deg, var(--red-dark), var(--red)); border-radius: 15px; text-align: center; }
.event-date-block strong { font-family: Georgia, serif; font-size: 1.5rem; line-height: 1; }
.event-date-block span { margin-top: 3px; font-size: .67rem; font-weight: 900; text-transform: uppercase; }
.event-copy { min-width: 0; }
.event-copy h3 { margin: 0; font-family: Georgia, serif; font-size: 1.22rem; }
.event-copy p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; white-space: pre-wrap; }
.event-copy .event-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 6px; color: var(--red-dark); font-size: .78rem; font-weight: 750; }
.event-actions { display: flex; flex-direction: column; gap: 5px; }
.event-actions button { min-height: 34px; padding: 0 9px; font-size: .74rem; }
.event-empty { min-height: 120px; }

@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr 1fr; }
  .trip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .expanded-actions { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .content-card { min-height: 250px; }
  .two-column-fields { grid-template-columns: 1fr; }
  .chat-identity { grid-template-columns: auto minmax(0,1fr); align-items: center; }
  .chat-identity .accent-button { grid-column: 1 / -1; width: 100%; }
  .chat-heading { align-items: flex-start; }
  .chat-heading .ghost-button { min-width: 46px; overflow: hidden; padding: 0 11px; white-space: nowrap; }
  .chat-list { padding: 12px; }
  .chat-message { max-width: 100%; grid-template-columns: 38px minmax(0,1fr); }
  .chat-message.own-message { grid-template-columns: minmax(0,1fr) 38px; }
  .chat-avatar { width: 38px; height: 38px; border-radius: 12px; }
  .chat-composer { bottom: 86px; }
  .event-card { grid-template-columns: 62px minmax(0,1fr); }
  .event-date-block { min-height: 60px; }
  .event-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .compact-event-row { grid-template-columns: 58px minmax(0,1fr); }
  .compact-event-row > .text-button { grid-column: 1 / -1; justify-self: end; }
  .bottom-nav { overflow-x: auto; grid-template-columns: repeat(6, minmax(58px, 1fr)); }
  .nav-item { font-size: .52rem; }
}

@media (max-width: 430px) {
  .content-card { padding: 18px; }
  .composer-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .event-card { gap: 10px; padding: 10px; }
}

/* Version 4: Bierwart, PDF-Bibliothek, Berechtigungen und Web Push */
.permission-note { display: block; margin: 0 0 13px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.trip-card .permission-note { color: rgba(255,255,255,.72); }
.pdf-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; margin: 0 0 13px; padding: 9px 11px; color: var(--red-dark); background: var(--red-soft); border: 1px solid rgba(143,23,25,.12); border-radius: 12px; font-size: .8rem; font-weight: 900; text-decoration: none; }
.pdf-link:hover { border-color: var(--red); }
.trip-card .pdf-link { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.content-access-box, .pdf-upload-box { display: grid; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--red-soft); }
.content-access-box { grid-template-columns: minmax(190px,.7fr) minmax(0,1.3fr); }
.content-access-box > label, .pdf-upload-box > label { display: grid; align-content: start; gap: 7px; font-weight: 850; }
.content-access-box select, .pdf-upload-box input[type="file"] { width: 100%; min-height: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.content-access-box p, .pdf-upload-box p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.permission-member { display: grid !important; grid-template-columns: 20px 32px minmax(0,1fr); align-items: center; gap: 8px; min-height: 46px; padding: 7px 9px; background: white; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; }
.permission-member input { width: 18px; height: 18px; }
.permission-avatar { width: 32px; height: 32px; object-fit: cover; border-radius: 10px; background: #f0dede; }
.permission-avatar.member-fallback { display: grid; place-items: center; color: white; background: var(--red); font-size: .65rem; font-weight: 900; }
.compact-empty { min-height: 52px; padding: 10px; }
.pdf-upload-box { background: white; }
.pdf-state { min-height: 44px; padding: 10px 12px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; font-size: .82rem; line-height: 1.45; }
.pdf-state a { color: var(--red-dark); font-weight: 900; }
.push-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.push-panel > div { display: grid; gap: 4px; }
.push-panel small { color: var(--muted); line-height: 1.4; }
.push-panel.push-enabled { border-color: rgba(56,128,78,.35); background: #f0f8f2; }
.push-panel.push-enabled .ghost-button { color: #275f38; border-color: rgba(39,95,56,.3); background: white; }

@media (max-width: 1100px) {
  .report-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .content-access-box { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .push-panel { align-items: stretch; flex-direction: column; }
  .push-panel .ghost-button { width: 100%; }
}


@media (max-width: 520px) {
  .home-return-button { min-height: 40px; padding-inline: 10px 13px; font-size: .86rem; }
  .home-return-button svg { width: 20px; height: 20px; }
}

/* Version 6: Kids Mode mit Snake */
.kids-action {
  background: linear-gradient(135deg, #12665d, #27a38d) !important;
}
.kids-heading { align-items: center; }
.kids-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: #12665d;
  background: #e6f7f2;
  border: 1px solid rgba(18,102,93,.18);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.kids-game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 18px;
  align-items: start;
}
.kids-game-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: white;
  background: radial-gradient(circle at 85% 12%, rgba(244,211,94,.18), transparent 30%), linear-gradient(145deg, #101a16, #152c25);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(16,42,35,.22);
}
.kids-game-topline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.kids-game-topline > div {
  padding: 11px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.kids-game-topline span,
.kids-game-topline strong { display: block; }
.kids-game-topline span { color: rgba(255,255,255,.66); font-size: .72rem; }
.kids-game-topline strong { margin-top: 2px; font-family: Georgia, serif; font-size: 1.65rem; }
.snake-board-wrap {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
}
#snakeCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  background: #101a16;
  border: 3px solid rgba(255,255,255,.12);
  border-radius: 24px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.28), 0 12px 28px rgba(0,0,0,.22);
  touch-action: none;
  outline: none;
}
#snakeCanvas:focus-visible { box-shadow: 0 0 0 4px rgba(244,211,94,.35), inset 0 0 40px rgba(0,0,0,.28); }
.snake-overlay {
  position: absolute;
  inset: 3px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 28px;
  color: white;
  text-align: center;
  background: rgba(6,19,15,.72);
  backdrop-filter: blur(5px);
  border-radius: 21px;
  transition: opacity .18s ease;
}
.snake-overlay.hidden { display: none; }
.snake-overlay strong { font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 3.4rem); }
.snake-overlay span { max-width: 390px; color: rgba(255,255,255,.78); line-height: 1.5; }
.kids-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 9px;
  width: min(100%, 560px);
  margin: 14px auto 0;
}
.kids-start-button,
.kids-secondary-button {
  min-height: 50px;
  border-radius: 15px;
}
.kids-start-button {
  color: #142017;
  background: linear-gradient(135deg, #f4d35e, #f0ad2c);
  box-shadow: 0 8px 18px rgba(240,173,44,.2);
}
.kids-secondary-button {
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.13);
}
.snake-dpad {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  grid-template-rows: repeat(2, 62px);
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
}
.snake-dpad button {
  min-width: 68px;
  min-height: 62px;
  padding: 0;
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  font-size: 1.45rem;
  box-shadow: 0 7px 14px rgba(0,0,0,.13);
  user-select: none;
  -webkit-user-select: none;
}
.snake-dpad button:active { transform: translateY(2px); background: rgba(244,211,94,.24); }
.snake-dpad button[data-snake-direction="up"] { grid-column: 2; grid-row: 1; }
.snake-dpad button[data-snake-direction="left"] { grid-column: 1; grid-row: 2; }
.snake-dpad button[data-snake-direction="down"] { grid-column: 2; grid-row: 2; }
.snake-dpad button[data-snake-direction="right"] { grid-column: 3; grid-row: 2; }
.kids-options {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 17px;
  color: rgba(255,255,255,.74);
  font-size: .8rem;
  font-weight: 800;
}
.kids-options label { display: flex; align-items: center; gap: 8px; }
.kids-options select {
  min-height: 40px;
  padding: 0 34px 0 10px;
  color: white;
  background: #203b33;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
}
.kids-options input { width: 19px; height: 19px; accent-color: #f4d35e; }
.kids-info-card {
  position: sticky;
  top: 102px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(78,12,13,.09);
}
.kids-info-icon { display: block; font-size: 3rem; margin-bottom: 10px; }
.kids-info-card h2 { margin: 0; font-family: Georgia, serif; font-size: 1.75rem; }
.kids-info-card p { color: var(--muted); line-height: 1.6; }
.kids-info-card ul { display: grid; gap: 8px; margin: 18px 0; padding-left: 20px; line-height: 1.45; }
.kids-joke { padding: 13px 14px; color: #12665d !important; background: #e9f7f3; border-radius: 15px; font-weight: 800; }
.kids-game-card:fullscreen {
  display: grid;
  align-content: center;
  width: 100vw;
  min-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-radius: 0;
}
.kids-game-card:fullscreen .snake-board-wrap { width: min(65vh, 78vw, 620px); }
.kids-game-card:fullscreen .kids-game-topline,
.kids-game-card:fullscreen .kids-toolbar { width: min(65vh, 78vw, 620px); margin-inline: auto; }
.kids-game-card:fullscreen .snake-dpad { margin-top: 12px; }

@media (max-width: 850px) {
  .kids-game-shell { grid-template-columns: 1fr; }
  .kids-info-card { position: static; }
}

@media (max-width: 560px) {
  .kids-heading { align-items: flex-start; }
  .kids-badge { min-height: 34px; padding-inline: 10px; font-size: .66rem; }
  .kids-game-card { padding: 11px; border-radius: 22px; }
  .kids-game-topline > div { padding: 9px 11px; }
  .kids-game-topline strong { font-size: 1.35rem; }
  #snakeCanvas { border-radius: 18px; }
  .snake-overlay { border-radius: 15px; }
  .kids-toolbar { grid-template-columns: 1fr 1fr; }
  .kids-toolbar .kids-start-button { grid-column: 1 / -1; }
  .snake-dpad { grid-template-columns: repeat(3, 62px); grid-template-rows: repeat(2, 57px); }
  .snake-dpad button { min-width: 62px; min-height: 57px; border-radius: 16px; }
  .kids-options { align-items: stretch; flex-direction: column; }
  .kids-options label { justify-content: space-between; }
  .kids-info-card { padding: 20px; }
}


/* Version 7: festes Geräteprofil für Chat und Abstimmungen */
