:root {
  --navy: #010080;
  --yellow: #f9e717;
  --bg: #f4f5fa;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --good: #16a34a;
  --shadow: 0 1px 3px rgba(1, 0, 128, 0.08), 0 8px 24px rgba(1, 0, 128, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--navy); }

header.site {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.brand .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(249, 231, 23, 0.25);
}
nav.top a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
nav.top a:hover { background: rgba(255,255,255,0.12); }
nav.top a.active { background: var(--yellow); color: var(--navy); }

.wrap { max-width: 980px; margin: 0 auto; padding: 1rem 1.2rem; }

h1 { font-size: 1.5rem; margin: 0.2rem 0 0.2rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.8rem; }
.subtitle { color: var(--muted); margin-top: 0; }

/* Geld-Hero mit Füll-Animation */
.money-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a0a9e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
  margin: 1.2rem 0;
}
.money-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.money-label { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2px; }
.money-max { color: var(--yellow); font-weight: 700; font-size: 0.9rem; }
.money-amount { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin: 0.2rem 0 0.7rem; }
.money-amount #moneyValue { font-variant-numeric: tabular-nums; }
.money-bar {
  height: 18px; border-radius: 999px; background: rgba(255,255,255,0.16);
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}
.money-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #fff3a0);
  border-radius: 999px;
  width: 0;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(249, 231, 23, 0.55);
}
.money-breakdown { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.8rem; font-size: 0.92rem; }
.money-breakdown .bd-item { display: flex; align-items: center; gap: 0.4rem; }
.money-breakdown .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.money-breakdown .dot.navy { background: #fff; border: 2px solid var(--yellow); }
.money-breakdown .dot.yellow { background: var(--yellow); }
@media (prefers-reduced-motion: reduce) {
  .money-fill { transition: none; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-card .label { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin-top: 0.2rem; }
.stat-card .hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
.stat-card.accent { border-top: 4px solid var(--yellow); }

section { margin: 1.8rem 0; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
th { background: #fafafe; color: var(--navy); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.rank-1 td:first-child { font-weight: 700; }

.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge.gold { background: var(--yellow); color: var(--navy); }
.badge.navy { background: var(--navy); color: #fff; }
.badge.soft { background: #eef0fb; color: var(--navy); }
.badge.green { background: #dcfce7; color: var(--good); }

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 0.9rem; }
.group-card { background: var(--card); border:1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem; box-shadow: var(--shadow); }
.group-card .ghead { display:flex; justify-content: space-between; align-items:center; margin-bottom: 0.4rem; }
.group-card .gname { font-weight: 700; }
.group-card ul { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.group-card li { display:flex; justify-content: space-between; padding: 0.2rem 0; font-size: 0.92rem; border-top: 1px dashed var(--border); }
.group-card li:first-child { border-top: none; }
.group-card li .pn { color: var(--text); }
.group-card li .pc { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Formular / Admin */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--navy); color: #fff; border: none;
  padding: 0.55rem 1rem; border-radius: 9px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn.secondary { background: #eef0fb; color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn.danger { background: #fee2e2; color: #b91c1c; }
.btn.small { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: default; }

label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.3rem; }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 9px;
  font-size: 1rem; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(1,0,128,0.25); border-color: var(--navy); }
.field { margin-bottom: 1rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 160px; }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 0.4rem 0.8rem; }
.pcheck {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem;
  border: 1px solid var(--border); border-radius: 9px; cursor: pointer; background:#fff; user-select: none;
}
.pcheck input { width: auto; }
.pcheck.checked { border-color: var(--navy); background: #f3f3ff; }
.pcheck .grp { color: var(--muted); font-size: 0.75rem; margin-left: auto; }

.inline-check { display:flex; align-items:center; gap:0.5rem; }
.inline-check input { width:auto; }

.notice { padding: 0.7rem 1rem; border-radius: 9px; font-size: 0.92rem; margin: 0.6rem 0; }
.notice.error { background:#fee2e2; color:#b91c1c; }
.notice.ok { background:#dcfce7; color: var(--good); }
.hidden { display: none !important; }

.muted { color: var(--muted); }
footer.site { text-align:center; color: var(--muted); font-size: 0.85rem; padding: 2rem 1rem; }

.event-row .meta { color: var(--muted); font-size: 0.85rem; }
.toolbar { display:flex; gap:0.5rem; flex-wrap: wrap; align-items:center; margin-bottom: 1rem; }
.spacer { flex: 1; }

.login-box { max-width: 360px; margin: 3rem auto; }
