/* Tyra Lorena Events — dunkler Piraten-Look
   Farben und Schriften aus tl-tageslarp übernommen, Layout modernisiert. */

:root {
  --bg: #1d1d1d;
  --bg-karte: #262626;
  --bg-karte-hover: #2d2d2d;
  --rand: #3a3a3a;
  --text: #d3d3d3;
  --text-gedimmt: #999;
  --gold: #FACC2E;
  --gold-dunkel: #c9a316;
  --rot: #e05252;
  --gruen: #7bc47f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); }
a:hover { color: #fff; }

h1, h2, h3 { line-height: 1.2; }

/* ------------------------------------------------------------- Kopf/Fuß */

.seitenkopf { text-align: center; padding: 1.75rem 1rem 1.25rem; }
.kopf-link { text-decoration: none; color: inherit; display: inline-block; }
.kopf-logo { max-width: 280px; height: auto; }
.kopf-titel {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: var(--gold);
  margin-top: .25rem;
}
.kopf-claim {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .8rem;
  color: var(--text-gedimmt);
}

.inhalt {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.seitenfuss {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--rand);
  color: var(--text-gedimmt);
  font-size: .9rem;
}

/* ------------------------------------------------------------- Kacheln */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.kachel {
  background: var(--bg-karte);
  border: 1px solid var(--rand);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.kachel:hover { transform: translateY(-3px); border-color: var(--gold); color: inherit; }

.kachel-bild {
  aspect-ratio: 16 / 8;
  background: #151515 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kachel-bild img.platzhalter { max-width: 60%; max-height: 70%; width: auto; opacity: .5; }

.kachel-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.kachel-name { font-size: 1.3rem; font-weight: 600; color: #fff; }
.kachel-info { color: var(--text-gedimmt); font-size: .95rem; }
.kachel-fuss { margin-top: auto; padding-top: .6rem; }

.kachel.vergangen { opacity: .55; }
.kachel.vergangen:hover { opacity: .8; }

.badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-offen      { background: rgba(123, 196, 127, .15); color: var(--gruen); }
.badge-zu         { background: rgba(224, 82, 82, .15);  color: var(--rot); }
.badge-ausgebucht { background: rgba(250, 204, 46, .15); color: var(--gold); }
.badge-vergangen  { background: rgba(150, 150, 150, .15); color: var(--text-gedimmt); }

.zurueck {
  display: inline-block;
  margin-top: .5rem;
  color: var(--text-gedimmt);
  text-decoration: none;
  font-size: .95rem;
}
.zurueck:hover { color: var(--gold); }

/* ------------------------------------------------------------ Abschnitte */

.abschnitt { margin: 2.25rem 0; }
.abschnitt h2 {
  color: var(--gold);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--rand);
  padding-bottom: .35rem;
}
.abschnitt img { max-width: 100%; height: auto; }

.handschrift {
  font-family: 'Tangerine', cursive;
  font-size: 1.9rem;
  line-height: 1.35;
}

.event-titel {
  font-family: 'Great Vibes', cursive;
  font-weight: normal;
  font-size: 2.8rem;
  color: var(--gold);
  text-align: center;
  margin: .5rem 0 0;
}
.event-meta { text-align: center; color: var(--text-gedimmt); margin-bottom: 1rem; }

/* ------------------------------------------------------------- Formular */

.formular {
  background: var(--bg-karte);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.feld { margin-bottom: 1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .25rem; }
.feld .hinweis { color: var(--text-gedimmt); font-size: .85rem; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], select, textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid var(--rand);
  border-radius: 8px;
  color: var(--text);
  padding: .55rem .75rem;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}

.knopf {
  display: inline-block;
  background: var(--gold);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: .65rem 1.4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.knopf:hover { background: #ffd84d; color: #000; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf-sekundaer {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.knopf-sekundaer:hover { background: rgba(250, 204, 46, .1); color: var(--gold); }

.meldung { border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0; }
.meldung-ok     { background: rgba(123, 196, 127, .12); border: 1px solid var(--gruen); }
.meldung-fehler { background: rgba(224, 82, 82, .12);  border: 1px solid var(--rot); }

/* Optionsgruppen im Anmeldeformular */
.optionsgruppe { margin: 1.1rem 0; }
.optionsgruppe > .gruppen-name { font-weight: 700; margin-bottom: .35rem; }
.option {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: #1a1a1a;
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: .55rem .75rem;
  margin-bottom: .45rem;
  cursor: pointer;
}
.option:has(input:checked) { border-color: var(--gold); }
.option input { margin-top: .3rem; }
.option .o-name { font-weight: 600; }
.option .o-beschreibung { color: var(--text-gedimmt); font-size: .9rem; }
.option .o-preis { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--gold); }
.option.ausgebucht { opacity: .6; }
.option .o-frei { font-size: .8rem; }
.o-frei.knapp { color: var(--gold); }
.o-frei.voll { color: var(--rot); }

.person-karte {
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(255, 255, 255, .02);
}
.person-karte .person-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  font-weight: 700;
  color: var(--gold);
}

.summenleiste {
  position: sticky;
  bottom: 0;
  background: #161616;
  border-top: 2px solid var(--gold);
  padding: .7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: 10px 10px 0 0;
  font-size: 1.1rem;
}
.summenleiste .summe { font-weight: 800; color: var(--gold); font-size: 1.3rem; }

@media (max-width: 600px) {
  .kopf-titel { font-size: 2.4rem; }
  .event-titel { font-size: 2.2rem; }
  .handschrift { font-size: 1.6rem; }
}
