/* ============================================================
   Feuerwehr × Dart — „Gerätehaus & Dartkneipe"
   Typo: Oswald (DIN-1451-Anmutung, Fahrzeugbeschriftung) + Barlow
   Farben: RAL-3000-Rot, Sisal-Creme (Boardsegmente),
           Board-Grün (Doppelring), Warnwesten-Gelb (nur „gesetzt")
   Signature: Startplatz-Tafel (6×6, Anwesenheitstafel)
   ============================================================ */
:root {
  --nacht: #101114;        /* Kneipen-Dunkel */
  --karte: #191b20;
  --rand: #2c2f36;
  --ral3000: #b0271d;      /* Feuerwehrrot */
  --leuchtrot: #e8402a;
  --sisal: #efe5cb;        /* Dartboard-Creme */
  --boardgruen: #2e9e63;   /* Doppelring-Grün */
  --gelb: #ffd447;         /* Warnwesten-Gelb */
  --text: #cdd0d6;
  --text-dim: #8d919b;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  font-size: 1.02rem;
  background: var(--nacht);
  /* Spotlight überm Board */
  background-image: radial-gradient(ellipse 90% 55% at 50% -12%, rgba(239, 229, 203, .09), transparent 60%);
  color: var(--text);
  min-height: 100vh;
}
.wrap { display: flex; flex-direction: column; align-items: center; padding: 2.2rem 1rem 3rem; }
.card {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}
.card.breit { max-width: 820px; }
.card-inner { padding: 1.8rem 2rem 2.2rem; }
.footer { color: var(--text-dim); font-size: .85rem; margin-top: 1.3rem; letter-spacing: .12em; text-transform: uppercase; }

/* --- Fahrzeugtür-Panel (Hero-Kopf) --- */
.tuer {
  background: linear-gradient(178deg, var(--leuchtrot) -40%, var(--ral3000) 55%);
  padding: 1.5rem 2rem 1.3rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
/* Kuppinger Mond – zwinkerndes Wahrzeichen als Tür-Emblem */
.mond { width: 76px; height: auto; flex: none; margin-bottom: 4px;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .3)); }
.tuer.schmal { padding: 1rem 2rem .85rem; }
.tuer.schmal h1 { font-size: 1.5rem; }
.tuer.schmal .mond { width: 48px; }
/* Standard-Kopf ohne Tür: nur Reflexstreifen */
.balken {
  height: 8px;
  background: repeating-linear-gradient(-55deg,
    #f6f2e7 0 14px, #d7d2c4 14px 17px, var(--ral3000) 17px 31px, #7c1712 31px 34px);
}
.tuer .eyebrow {
  margin: 0 0 .2rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.tuer h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 2.9rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
}
.tuer h1 .jahr { color: var(--gelb); }
.tuer .termin {
  margin: .45rem 0 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: .98rem;
  color: rgba(255, 255, 255, .94);
}
/* Reflexstreifen an der Unterkante */
.tuer::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-55deg,
    #f6f2e7 0 14px, #d7d2c4 14px 17px, var(--ral3000) 17px 31px, #7c1712 31px 34px);
  opacity: .95;
}

/* --- Startplatz-Tafel (Signature) --- */
.tafel { margin: 1.5rem 0 .4rem; }
.tafel-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tafel-kopf h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sisal);
}
.tafel-kopf .zahl {
  font-family: var(--display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  color: var(--boardgruen);
}
.tafel-kopf .zahl.voll { color: var(--leuchtrot); }
.slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: .7rem;
}
.slot {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  border: 1px dashed #3a3e47;
  background: transparent;
  animation: slot-ein .3s ease-out backwards;
}
.slot.belegt {
  border: 1px solid #8c1f17;
  border-bottom-width: 3px;
  background: linear-gradient(180deg, var(--leuchtrot) -60%, var(--ral3000) 70%);
  color: #fff;
}
.slot.gesetzt { box-shadow: inset 0 0 0 2px var(--gelb); }
.slot:nth-child(6n+1) { animation-delay: .02s; } .slot:nth-child(6n+2) { animation-delay: .05s; }
.slot:nth-child(6n+3) { animation-delay: .08s; } .slot:nth-child(6n+4) { animation-delay: .11s; }
.slot:nth-child(6n+5) { animation-delay: .14s; } .slot:nth-child(6n+6) { animation-delay: .17s; }
@keyframes slot-ein { from { opacity: 0; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .slot { animation: none; } }
.legende { display: flex; gap: 1.2rem; margin-top: .7rem; font-size: .78rem; color: var(--text-dim); }
.legende span::before {
  content: ""; display: inline-block; width: .72em; height: .72em; border-radius: 3px;
  margin-right: .4em; vertical-align: -1px;
}
.legende .l-belegt::before { background: var(--ral3000); }
.legende .l-frei::before { border: 1px dashed #3a3e47; }
.legende .l-gesetzt::before { background: var(--karte); box-shadow: inset 0 0 0 2px var(--gelb); }

/* --- Überschriften im Inhalt --- */
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; }
h1 { font-size: 1.7rem; font-weight: 600; color: var(--sisal); margin: .2rem 0 1rem; }
h2 { font-size: 1.25rem; font-weight: 500; color: var(--sisal); }
h2 .jahr { color: var(--leuchtrot); }
h3 {
  font-family: var(--display); font-weight: 500; font-size: .82rem;
  margin: 1.8rem 0 .6rem; text-transform: uppercase;
  letter-spacing: .22em; color: var(--sisal);
  border-bottom: 1px solid var(--rand); padding-bottom: .4rem;
}

/* --- Formulare --- */
form { margin-top: 1.2rem; }
label {
  display: block; margin-bottom: .95rem; font-weight: 600; font-size: .78rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em;
}
input {
  display: block; width: 100%; padding: .68rem .75rem; margin-top: .35rem;
  border: 1px solid var(--rand); border-radius: 7px; font-size: 1.05rem;
  font-family: var(--body);
  background: #101114; color: var(--sisal);
}
input:focus { outline: 2px solid var(--leuchtrot); outline-offset: 1px; border-color: transparent; }
textarea {
  display: block; width: 100%; padding: .68rem .75rem; margin-top: .35rem;
  border: 1px solid var(--rand); border-radius: 7px; font-size: .95rem;
  font-family: var(--body); line-height: 1.45;
  background: #101114; color: var(--sisal); resize: vertical;
}
textarea:focus { outline: 2px solid var(--leuchtrot); outline-offset: 1px; border-color: transparent; }
.fliess { white-space: pre-line; }
/* Zustimmungs-Haken (Datenschutz, Teilnahmebedingungen) */
label.check {
  display: flex; align-items: flex-start; gap: .65rem;
  text-transform: none; letter-spacing: 0; font-weight: 400;
  font-size: .92rem; color: var(--text); margin: 1rem 0;
}
label.check input {
  display: inline-block; width: 1.2rem; height: 1.2rem; margin: .1rem 0 0;
  accent-color: var(--ral3000); flex: none;
}
button {
  font-family: var(--display);
  background: linear-gradient(180deg, var(--leuchtrot) -30%, var(--ral3000) 80%);
  color: #fff; border: 0; border-bottom: 3px solid #7c1712; border-radius: 7px;
  padding: .8rem 1.6rem; font-size: 1.05rem; font-weight: 500; cursor: pointer;
  text-transform: uppercase; letter-spacing: .12em;
}
button:hover { filter: brightness(1.13); }
button:focus-visible { outline: 2px solid var(--gelb); outline-offset: 2px; }
button:active { transform: translateY(1px); border-bottom-width: 2px; }
button.warn {
  background: transparent; border: 1px solid var(--rand); color: var(--text);
}
button.warn:hover { border-color: var(--leuchtrot); color: var(--leuchtrot); filter: none; }

/* --- Status & Hinweise --- */
.status { padding: .85rem 1rem; border-radius: 7px; border-left: 4px solid; font-size: 1.05rem; }
.status.frei { background: rgba(46, 158, 99, .12); border-color: var(--boardgruen); }
.status.voll { background: rgba(232, 64, 42, .12); border-color: var(--leuchtrot); }
.hinweis {
  background: rgba(255, 212, 71, .09); border-left: 4px solid var(--gelb);
  padding: .85rem 1rem; border-radius: 7px;
}
.klein { font-size: .85rem; color: var(--text-dim); }
a { color: var(--sisal); text-decoration-color: var(--leuchtrot); text-underline-offset: 3px; }
a:hover { color: #fff; }

/* --- Ergebnis: Startplatz-Badge (Bullseye) --- */
.badge-platz {
  width: 148px; height: 148px; margin: 1.4rem auto .5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, var(--ral3000) 0 42%, var(--sisal) 42% 49%,
              var(--karte) 49% 100%);
  border: 5px solid var(--ral3000);
  box-shadow: 0 0 0 5px #0c0d0f, 0 0 46px rgba(232, 64, 42, .28);
}
.badge-platz .nr {
  font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5);
  font-variant-numeric: tabular-nums;
}
.badge-lbl {
  font-family: var(--display); font-weight: 500; font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--sisal);
  text-align: center; margin: 0 0 1.4rem;
}
.badge-platz.warte {
  background: radial-gradient(circle, #46392a 0 42%, var(--sisal) 42% 49%, var(--karte) 49% 100%);
  border-color: var(--gelb);
  box-shadow: 0 0 0 5px #0c0d0f, 0 0 40px rgba(255, 212, 71, .18);
}

/* --- Tabellen (Admin) --- */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th {
  font-family: var(--display); font-weight: 500; color: var(--text-dim);
  text-transform: uppercase; font-size: .7rem; letter-spacing: .14em;
}
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--rand); }
td { font-variant-numeric: tabular-nums; }
td form { margin: 0; }
td button { padding: .3rem .7rem; font-size: .72rem; letter-spacing: .08em; }
.tag {
  background: var(--gelb); color: #101114; border-radius: 4px;
  padding: .1rem .45rem; font-size: .7rem; font-weight: 700;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .08em;
}

@media (max-width: 420px) {
  .card-inner { padding: 1.4rem 1.2rem 1.8rem; }
  .tuer { padding: 1.2rem 1.2rem 1.1rem; }
  .slots { gap: 5px; }
}
/* Admin-Tabellen auf schmalen Screens horizontal scrollbar statt gequetscht */
@media (max-width: 640px) {
  table { display: block; overflow-x: auto; }
}
