/* ================================================================
   EdT – Gestaltung
   Neutral-modern mit sanften Farbakzenten, angelehnt an die
   iOS-Designsprache: Glas-Karten, große Rundungen, System-Schrift.
   Keine externen Fonts/CDNs (DSGVO) – alles lokal.
   ================================================================ */

:root {
  --ink:        #1d1d1f;
  --ink-soft:   #56565c;
  --ink-faint:  #8e8e93;
  --accent:     #0a7cff;
  --accent-ink: #0060d1;
  --mint:       #00b58c;
  --orange:     #ff9500;
  --pink:       #ff375f;
  --violet:     #af52de;
  --danger:     #ff3b30;
  --ok:         #34c759;

  --bg:         #f4f6fb;
  --card:       rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --stroke:     rgba(29, 29, 31, 0.08);
  --radius:     20px;
  --radius-s:   12px;
  --shadow:     0 10px 30px rgba(29, 29, 31, 0.07), 0 2px 8px rgba(29, 29, 31, 0.04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

/* Sanfter mehrfarbiger Hintergrund (fest, scrollt nicht mit) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 110% -10%, rgba(10, 124, 255, 0.14), transparent 60%),
    radial-gradient(50rem 36rem at -20% 10%, rgba(0, 181, 140, 0.12), transparent 60%),
    radial-gradient(44rem 34rem at 50% 120%, rgba(175, 82, 222, 0.10), transparent 60%),
    var(--bg);
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

/* ---------------- Seitengerüst ---------------- */
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 56px;
}
.wrap-narrow { max-width: 720px; }

/* ---------------- Glas-Karte ---------------- */
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, #2b90ff, var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 124, 255, 0.35);
}
.btn-primary:hover { background: linear-gradient(180deg, #3d9aff, #1a86ff); }
.btn-ghost {
  background: rgba(29, 29, 31, 0.055);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(29, 29, 31, 0.1); }
.btn-danger { background: rgba(255, 59, 48, 0.12); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 59, 48, 0.2); }
.btn-small { padding: 7px 14px; font-size: 0.85rem; }

/* ---------------- Formulare ---------------- */
label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-faint); font-size: 0.85rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], input[type="password"], input[type="url"],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-s);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 124, 255, 0.15);
}
textarea { resize: vertical; min-height: 110px; }

.field { margin-bottom: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 18px;
}

fieldset {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-s);
  padding: 16px;
  margin: 0 0 18px;
}
legend { font-weight: 650; padding: 0 8px; }

/* Häkchen & Radios etwas größer (Handy-Bedienung) */
input[type="checkbox"], input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  vertical-align: -4px;
  margin-right: 8px;
}
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.check-row input { flex: 0 0 auto; margin-top: 2px; }
.check-row label { font-weight: 500; margin: 0; }

/* ---------------- Tabellen ---------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.tbl th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}
.tbl td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.05);
  vertical-align: top;
}
.tbl tbody tr:hover { background: rgba(10, 124, 255, 0.045); }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------------- Kleinteile ---------------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue   { background: rgba(10, 124, 255, 0.13);  color: var(--accent-ink); }
.badge-mint   { background: rgba(0, 181, 140, 0.14);   color: #007a5e; }
.badge-orange { background: rgba(255, 149, 0, 0.16);   color: #b26800; }
.badge-pink   { background: rgba(255, 55, 95, 0.12);   color: #c81e45; }
.badge-violet { background: rgba(175, 82, 222, 0.14);  color: #8e30c9; }
.badge-gray   { background: rgba(29, 29, 31, 0.07);    color: var(--ink-soft); }
.badge-ok     { background: rgba(52, 199, 89, 0.16);   color: #1e7e3e; }
.badge-danger { background: rgba(255, 59, 48, 0.13);   color: var(--danger); }

.flash {
  padding: 14px 18px;
  border-radius: var(--radius-s);
  margin-bottom: 16px;
  font-weight: 500;
}
.flash-ok     { background: rgba(52, 199, 89, 0.14);  color: #156a33; }
.flash-error  { background: rgba(255, 59, 48, 0.12);  color: #b3251c; }
.flash-info   { background: rgba(10, 124, 255, 0.11); color: var(--accent-ink); }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.kpi .num { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.kpi .lbl { color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; }

/* ---------------- Öffentlicher Kopf ---------------- */
.site-head {
  padding: 26px 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.site-title { flex: 1 1 auto; }
.site-title .eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.site-title h1 { margin: 0; }
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.site-nav a:hover { text-decoration: none; background: #fff; }
.site-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.site-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  color: var(--ink-faint);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.logo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo-row img { height: 44px; width: auto; }

/* ---------------- Admin-Gerüst ---------------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  flex: 0 0 224px;
  padding: 22px 14px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}
.admin-side .brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 6px 12px 16px;
  font-size: 1.05rem;
}
.admin-side nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.94rem;
  margin-bottom: 2px;
}
.admin-side nav a:hover { background: rgba(29, 29, 31, 0.06); text-decoration: none; }
.admin-side nav a.active { background: var(--ink); color: #fff; }
.admin-side .side-sep {
  margin: 14px 12px 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  font-weight: 650;
}
.admin-main { flex: 1 1 auto; padding: 26px 26px 60px; min-width: 0; }
.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-topline h1 { margin: 0; font-size: 1.6rem; }
.admin-user { color: var(--ink-soft); font-size: 0.9rem; display: flex; align-items: center; gap: 12px; }

@media (max-width: 860px) {
  .admin-shell { display: block; }
  .admin-side {
    position: static;
    height: auto;
    padding: 12px 14px 0;
  }
  .admin-side nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 10px; }
  .admin-side nav a { white-space: nowrap; }
  .admin-side .side-sep { display: none; }
  .admin-main { padding: 16px 16px 48px; }
}

/* ---------------- Wunsch-Matrix (Anmeldeformular) ---------------- */
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Der Hinweis aufs seitliche Schieben gilt nur, wenn die Tabelle nicht ganz passt */
.matrix-wischen { display: none; }
@media (max-width: 700px) { .matrix-wischen { display: block; } }
table.matrix { border-collapse: collapse; width: 100%; min-width: 560px; }
.matrix th, .matrix td { padding: 8px 6px; text-align: center; }
.matrix th { font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; }
.matrix td:first-child, .matrix th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: rgba(255,255,255,0.92);
  border-radius: 8px 0 0 8px;
  min-width: 130px;
  font-weight: 550;
}
.matrix tbody tr { border-top: 1px solid rgba(29,29,31,0.05); }
.matrix input[type="radio"] { margin: 0; width: 22px; height: 22px; }

/* ---------------- Anwesenheitsliste am Handy ---------------- */
/* Aus der Tabellenzeile wird eine kleine Karte pro Kind – kein
   seitliches Scrollen beim Abhaken in der Sporthalle. */
@media (max-width: 700px) {
  table.att thead { display: none; }
  table.att tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--stroke);
  }
  table.att td {
    display: block;
    border: 0 !important;
    padding: 3px 0 !important;
    white-space: normal !important;
  }
  table.att td label { margin-bottom: 6px; }
}

/* Druck (Teilnehmerlisten etc.) */
@media print {
  body::before { display: none; }
  .site-nav, .admin-side, .btn, .no-print { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ================================================================
   Startseite – „Liquid Glass“
   Lebendiger, langsam treibender Farbverlauf im Hintergrund;
   Inhalte auf stark milchigen Glas-Flächen -> beste Lesbarkeit.
   Nur CSS, keine externen Medien (DSGVO).
   ================================================================ */
body.landing::before { display: none; }   /* eigene Bühne statt Standard-Verlauf */

.lg-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(180deg, #edf3fd 0%, #f5f1fb 55%, #edfaf4 100%);
}
.lg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.lg-blob-1 { width: 46vw; height: 46vw; min-width: 420px; min-height: 420px; left: -12vw; top: -14vh;
  background: radial-gradient(circle at 30% 30%, #7db8ff, rgba(125, 184, 255, 0) 70%);
  animation: lg-drift-1 26s ease-in-out infinite alternate; }
.lg-blob-2 { width: 40vw; height: 40vw; min-width: 380px; min-height: 380px; right: -10vw; top: 2vh;
  background: radial-gradient(circle at 60% 40%, #cda9f5, rgba(205, 169, 245, 0) 70%);
  animation: lg-drift-2 32s ease-in-out infinite alternate; }
.lg-blob-3 { width: 44vw; height: 44vw; min-width: 400px; min-height: 400px; left: 6vw; bottom: -18vh;
  background: radial-gradient(circle at 40% 60%, #7fe3c4, rgba(127, 227, 196, 0) 70%);
  animation: lg-drift-3 30s ease-in-out infinite alternate; }
.lg-blob-4 { width: 26vw; height: 26vw; min-width: 260px; min-height: 260px; right: 14vw; bottom: 4vh;
  background: radial-gradient(circle at 50% 50%, #ffd29d, rgba(255, 210, 157, 0) 70%);
  animation: lg-drift-4 24s ease-in-out infinite alternate; opacity: 0.5; }

@keyframes lg-drift-1 { to { transform: translate(9vw, 7vh)  scale(1.08); } }
@keyframes lg-drift-2 { to { transform: translate(-7vw, 9vh) scale(0.94); } }
@keyframes lg-drift-3 { to { transform: translate(6vw, -8vh) scale(1.06); } }
@keyframes lg-drift-4 { to { transform: translate(-8vw, -6vh) scale(1.12); } }

/* Glas-Fläche: milchig + Backdrop-Blur, feiner Lichtkantenschimmer oben */
.lg-glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.44));
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(29, 29, 31, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* Ohne Backdrop-Filter-Unterstützung: deckender = weiterhin gut lesbar */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .lg-glass { background: rgba(255, 255, 255, 0.92); }
}

/* Hero */
.lg-hero { padding: 36px 36px 30px; margin-bottom: 8px; overflow: hidden; }
.lg-hero h2 {
  font-size: clamp(1.65rem, 4.6vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.lg-grad-word {
  background: linear-gradient(92deg, var(--accent), var(--violet) 60%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lg-hero .lead { font-size: 1.07rem; max-width: 62ch; }
.lg-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.btn-hero { padding: 14px 30px; font-size: 1.05rem; box-shadow: 0 10px 26px rgba(10, 124, 255, 0.4); }
/* Ruhiger Hinweiskasten über dem Angebots-Raster */
.lg-note {
  padding: 16px 20px;
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Anmeldeschluss – bewusst auffällig, damit ihn niemand übersieht */
.lg-deadline {
  /* bewusst kein Flexbox: so bricht der Text auf schmalen Handys normal um */
  display: inline-block;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: #7a3d00;
  background: rgba(255, 243, 220, 0.92);
  border: 1.5px solid #e8a33d;
  box-shadow: 0 4px 14px rgba(232, 163, 61, 0.25);
}
.lg-deadline strong { color: #5c2d00; }
.lg-deadline.is-soon {
  color: #8a1f1f;
  background: rgba(255, 232, 232, 0.94);
  border-color: #e06060;
  box-shadow: 0 4px 14px rgba(224, 96, 96, 0.28);
}
.lg-deadline.is-soon strong { color: #6d1414; }

.lg-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.lg-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 3px 10px rgba(29, 29, 31, 0.06);
}
.lg-hero .logo-row { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(29, 29, 31, 0.07); }

/* Abschnitts-Titel mit Farbbalken */
.lg-section-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 16px; }
.lg-section-title h2 { margin: 0; }
.lg-section-title .bar {
  height: 6px;
  flex: 0 0 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
}

/* Workshop-Karten */
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.lg-card {
  padding: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: lg-in 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.lg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px rgba(29, 29, 31, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@keyframes lg-in { from { opacity: 0; transform: translateY(16px); } }

.lg-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 14px rgba(29, 29, 31, 0.14);
  margin-bottom: 12px;
}
.gi-blue   { background: linear-gradient(135deg, #8ec4ff, #0a7cff); }
.gi-mint   { background: linear-gradient(135deg, #8af0d3, #00b58c); }
.gi-violet { background: linear-gradient(135deg, #d9b3f5, #af52de); }
.gi-orange { background: linear-gradient(135deg, #ffd9a1, #ff9500); }
.gi-pink   { background: linear-gradient(135deg, #ffb3c4, #ff375f); }

.lg-meta { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Karte mit Foto: Bild oben, Text darunter auf Glas -> immer gut lesbar */
.lg-card-photo { padding: 0; overflow: hidden; }
.lg-card-photo .lg-card-body { padding: 16px 20px 20px; }
.lg-photo { position: relative; height: 150px; background: rgba(29, 29, 31, 0.06); }
.lg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-photo-tag { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.9); }
.lg-music { margin-bottom: 6px; }

/* Bewegung nur für Nutzer, die Bewegung wollen */
@media (prefers-reduced-motion: reduce) {
  .lg-blob { animation: none !important; }
  .lg-card { animation: none; }
  .lg-card:hover { transform: none; }
}
@media (max-width: 700px) {
  .lg-hero { padding: 26px 20px 22px; }
  .lg-blob { filter: blur(54px); }
}
@media print {
  .lg-bg { display: none; }
}
