/* Farben – bei Bedarf hier an die Vereinsfarben anpassen */
:root {
  --wald: #2f6b3f;        /* Hauptfarbe (Buttons, Links) */
  --wald-dunkel: #1c4128;
  --nacht: #15262c;       /* Abendhimmel im Kopf */
  --laterne: #f2a93b;     /* Akzent */
  --grund: #eef2ec;
  --karte: #ffffff;
  --text: #1d2b24;
  --leise: #5b6b61;
  --rot: #a63a2b;
  --rand: #cfd9cf;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Kopf: Abendhimmel mit Laternen */
.kopf {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--nacht) 0%, #1f3d36 70%, var(--wald-dunkel) 100%);
  padding: 2.2rem 1.25rem 1.6rem;
}
.kopf-inhalt { position: relative; max-width: 38rem; margin: 0 auto; }
.logo { max-height: 56px; max-width: 200px; display: block; margin-bottom: .9rem; background: #fff; border-radius: 8px; padding: 4px 8px; }
.event { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.datum { margin: .25rem 0 0; color: #f6d9a6; font-weight: 600; }
.laternen span {
  position: absolute; top: 0; width: 26px; height: 32px; border-radius: 45%;
  background: radial-gradient(circle at 50% 45%, #ffe2a8 0%, var(--laterne) 45%, #d9782a 100%);
  box-shadow: 0 0 22px 6px rgba(242,169,59,.45);
  animation: schwingen 4s ease-in-out infinite alternate; transform-origin: 50% -40px;
}
.laternen span::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 40px; background: rgba(255,255,255,.35); }
.laternen span:nth-child(1) { right: 8%;  top: 22px; }
.laternen span:nth-child(2) { right: 20%; top: 46px; width: 20px; height: 25px; animation-delay: -1s; }
.laternen span:nth-child(3) { right: 32%; top: 16px; width: 16px; height: 20px; animation-delay: -2s; opacity: .8; }
.laternen span:nth-child(4) { right: 44%; top: 40px; width: 12px; height: 15px; animation-delay: -3s; opacity: .6; }
.laternen span:nth-child(5) { right: 2%;  top: 70px; width: 14px; height: 18px; animation-delay: -1.5s; opacity: .7; }
@keyframes schwingen { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .laternen span { animation: none; } }
@media (max-width: 520px) {
  .laternen span:nth-child(2), .laternen span:nth-child(3), .laternen span:nth-child(4) { display: none; }
  .laternen span:nth-child(1) { right: 4%; top: 8px; width: 18px; height: 22px; }
  .laternen span:nth-child(5) { right: 13%; top: 30px; width: 12px; height: 15px; }
  .kopf-inhalt { padding-right: 3rem; }
  .event { font-size: 1.6rem; }
}

/* Inhalt */
.inhalt { max-width: 38rem; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.admin .inhalt, .admin .kopf-inhalt { max-width: 60rem; }
h1 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 .4rem; }
h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.lead { color: var(--leise); margin: 0 0 1.4rem; }
.klein { font-size: .88rem; color: var(--leise); margin: .3rem 0 0; }
a { color: var(--wald); }

.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; padding: 1.25rem; }
label { display: block; font-weight: 650; margin: 0 0 .35rem; }
input[type=text], input:not([type]), input[type=password] {
  width: 100%; font: inherit; padding: .7rem .8rem; margin-bottom: 1.1rem;
  border: 1.5px solid var(--rand); border-radius: 10px; background: #fff; color: var(--text);
}
input:focus-visible, button:focus-visible, a:focus-visible, .station:focus-within {
  outline: 3px solid var(--laterne); outline-offset: 2px;
}
.check { display: flex; gap: .65rem; align-items: center; font-weight: 600; margin: 0; cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; accent-color: var(--wald); }

button, .knopf {
  display: inline-block; width: 100%; margin-top: 1.25rem; padding: .85rem 1rem;
  font: inherit; font-weight: 700; color: #fff; background: var(--wald);
  border: 0; border-radius: 10px; cursor: pointer; text-align: center; text-decoration: none;
}
button:hover, .knopf:hover { background: var(--wald-dunkel); }
.knopf-zweit {
  display: inline-block; padding: .6rem 1rem; border: 1.5px solid var(--wald); border-radius: 10px;
  color: var(--wald); font-weight: 650; text-decoration: none;
}

.fehler { background: #fbe9e6; color: var(--rot); border-left: 4px solid var(--rot); padding: .75rem 1rem; border-radius: 6px; }
.erfolg { background: #e5f1e7; color: var(--wald-dunkel); border-left: 4px solid var(--wald); padding: .75rem 1rem; border-radius: 6px; }

.hinweise { margin-top: 2rem; }
.hinweise ul { margin: 0; padding-left: 1.2rem; }
.hinweise li { margin-bottom: .3rem; }

/* Stationsauswahl */
.stationen { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.station {
  display: flex; gap: .85rem; align-items: flex-start; margin: 0; cursor: pointer; font-weight: 400;
  background: var(--karte); border: 1.5px solid var(--rand); border-radius: 12px; padding: .9rem 1rem;
}
.station input { margin-top: .25rem; width: 1.25rem; height: 1.25rem; accent-color: var(--wald); flex: none; }
.station:has(input:checked) { border-color: var(--laterne); box-shadow: 0 0 0 3px rgba(242,169,59,.3); background: #fffaf0; }
.station-text { display: grid; gap: .1rem; }
.frei { font-size: .9rem; color: var(--wald); font-weight: 650; }
.dabei { font-size: .9rem; color: var(--leise); }

.danke { text-align: left; }
.danke h1 { font-size: 2rem; }

/* Admin */
.admin-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.admin-leiste p { display: flex; gap: .5rem; margin: 0; }
.admin-leiste .knopf { width: auto; margin: 0; }
.stand { margin: 1.25rem 0; }
.stand p { margin: 0 0 .4rem; }
.balken { height: 10px; background: var(--rand); border-radius: 5px; overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--laterne); }
.tabelle { width: 100%; border-collapse: collapse; background: var(--karte); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.tabelle th, .tabelle td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
.tabelle th { background: #dfe7df; }
.tabelle .zahl { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabelle tr.voll td:first-child { box-shadow: inset 4px 0 0 var(--wald); }
.tabelle tr.leer td:first-child { box-shadow: inset 4px 0 0 var(--rot); }
.marke { font-size: .75rem; background: #e7ece6; color: var(--leise); padding: .05rem .4rem; border-radius: 4px; white-space: nowrap; }
.eintrag { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .15rem 0; }
.loeschen { width: auto; margin: 0; padding: .25rem .6rem; font-size: .8rem; font-weight: 600; background: transparent; color: var(--rot); border: 1px solid var(--rot); border-radius: 6px; }
.loeschen:hover { background: var(--rot); color: #fff; }
@media (max-width: 560px) { .tabelle th:nth-child(2), .tabelle td:nth-child(2) { display: none; } }
