:root {
  --pink: #FF00AA;
  --pink-hover: #E60099;
  --black: #111;
  --dark: #1a1a1a;
  --white: #fff;
  --gray: #f5f5f5;
  --text: #222;
  --muted: #555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3 {
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo img { height: 55px; width: auto; }

nav ul { display: flex; list-style: none; gap: 28px; flex-wrap: wrap; }
nav a { text-decoration: none; color: #111; font-weight: 600; }
nav a:hover,
nav a:focus-visible { color: var(--pink); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
}

.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover,
.btn-pink:focus-visible { background: var(--pink-hover); }

.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover,
.btn-outline:focus-visible { background: rgba(255, 255, 255, .12); }

.btn-ghost {
  background: transparent;
  color: var(--pink);
  border: 2px solid var(--pink);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--pink); color: #fff; }

/* Hero */
.hero {
  position: relative;
  height: 88vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .15));
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: .88;
  margin-bottom: 18px;
}

.hero h1 .the {
  font-size: .42em;
  display: block;
  font-weight: 400;
  letter-spacing: 6px;
}

.hero h1 .rep { color: var(--pink); }

.hero-date {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.date-big {
  font-family: "Oswald", system-ui, sans-serif;
  font-size: clamp(4.5rem, 12vw, 7rem);
  color: var(--pink);
  font-weight: 700;
  line-height: .9;
}

.date-details {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1.15rem;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 80px 0; scroll-margin-top: 96px; }
.hero { scroll-margin-top: 96px; }
.section-dark { background: var(--dark); color: #fff; }
.section-alt { background: var(--gray); }

.section h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 18px;
}

.lead {
  text-align: center;
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 45px;
  color: var(--muted);
}

.section-dark .lead { color: #ccc; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.feature {
  background: var(--gray);
  padding: 28px;
  border-radius: 8px;
  text-align: center;
}

.section-dark .feature { background: #222; }

.feature h3 { color: var(--pink); margin-bottom: 8px; }

.feature a { color: var(--pink); font-weight: 600; text-decoration: none; }
.feature a:hover,
.feature a:focus-visible { text-decoration: underline; }

.info-box {
  background: var(--pink);
  color: #fff;
  text-align: center;
  padding: 28px;
  border-radius: 8px;
  max-width: 580px;
  margin: 0 auto;
}

.info-box-title {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Infos */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
@media (min-width: 900px) {
  .infos-grid { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
  background: #fff;
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.info-card h3 {
  color: var(--pink);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.info-card p { margin-bottom: 8px; }
.info-card p:last-child { margin-bottom: 0; }

.info-card a { color: var(--pink); font-weight: 600; text-decoration: none; }
.info-card a:hover,
.info-card a:focus-visible { text-decoration: underline; }

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.flyer-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.flyer-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: zoom-in;
}

/* Tickets */
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.ticket-card {
  background: #fff;
  color: #111;
  padding: 28px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
}

.ticket-card.featured { border: 3px solid var(--pink); }

.price {
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 2.8rem;
  color: var(--pink);
  font-weight: 700;
  margin: 12px 0 18px;
}

.ticket-card ul { list-style: none; text-align: left; margin-bottom: 16px; flex: 1; }
.ticket-card li { padding: 7px 0; border-bottom: 1px solid #eee; }
.crossed { text-decoration: line-through; color: #999; }

.ticket-note {
  color: var(--pink);
  font-size: .9rem;
  margin: 0 0 16px;
  font-weight: 600;
}

/* Shirts */
.shirts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.shirt {
  background: var(--gray);
  padding: 18px;
  border-radius: 8px;
  text-align: center;
}

.shirt button.shirt-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.shirt img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 10px;
}

.shirt p { font-weight: 600; }
.shirt-hint { font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: 4px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(920px, 100%);
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-weight: 600;
}

/* Form */
.registration-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-block {
  background: #222;
  padding: 22px;
  border-radius: 8px;
}

.form-block h3 {
  color: var(--pink);
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.form-row:last-child { margin-bottom: 0; }

.field { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.field-full { width: 100%; min-width: 100%; }

.field label,
.checkbox label,
.radio-group legend {
  font-size: .9rem;
  font-weight: 600;
}

.required { color: var(--pink); }

input, select, textarea, button { font-family: inherit; }

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  padding: 13px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  background: #fff;
  color: #111;
}

textarea { min-height: 90px; resize: vertical; }

input:disabled,
select:disabled {
  background: #ddd;
  color: #777;
}

.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; }
.checkbox input { margin-top: 4px; flex: 0 0 auto; width: auto; }
.checkbox a { color: var(--pink); }

.radio-group { border: 0; margin: 0 0 12px; }
.radio-group div { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 8px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.radio-group input { width: auto; }

.child-names { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.ticket-item { position: relative; }
.ticket-item + .ticket-item { margin-top: 14px; }

.ticket-remove {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #aaa;
  cursor: pointer;
  font-size: .9rem;
  text-decoration: underline;
}
.ticket-remove:hover { color: #fff; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-error {
  background: #4a1020;
  color: #ffd0de;
  padding: 12px 16px;
  border-radius: 6px;
  display: none;
}
.form-error.is-visible { display: block; }

.form-success {
  display: none;
  background: #14301c;
  color: #d8ffe4;
  padding: 22px;
  border-radius: 8px;
}
.form-success.is-visible { display: block; }
.form-success h3 { color: #7dffa4; margin-bottom: 10px; }
.form-success pre {
  white-space: pre-wrap;
  background: #0d1f12;
  padding: 14px;
  border-radius: 4px;
  margin-top: 12px;
  font-size: .9rem;
}

.legal-note { font-size: .85rem; color: #bbb; margin-top: 8px; }

/* Footer */
footer { background: #111; color: #fff; padding: 45px 0 20px; }

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { height: 64px; width: auto; }

footer a { color: var(--pink); text-decoration: none; }
footer a:hover,
footer a:focus-visible { text-decoration: underline; }

.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 18px;
  color: #888;
  font-size: .9rem;
}

.copyright a { color: #bbb; }
.footer-legal { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }


/* Teilnehmer-Barometer */
.barometer {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  padding: 28px 0 26px;
  border-top: 3px solid var(--pink);
  flex: 0 0 auto;
  backdrop-filter: blur(4px);
}

.barometer-kicker {
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--pink);
  font-size: .95rem;
  margin-bottom: 8px;
  text-align: center;
}

.barometer-num { color: var(--pink); }

.barometer-status {
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  text-align: center;
  line-height: 1.25;
  margin-bottom: 18px;
}

.barometer-track {
  height: 18px;
  background: #2a2a2a;
  border-radius: 999px;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.barometer-fill {
  height: 100%;
  width: 14.286%; /* Fallback 5 von 35, ohne JS */
  background: linear-gradient(90deg, #c40080, var(--pink));
  border-radius: 999px;
  transform-origin: left center;
  transition: width 1.1s ease-out;
}

.barometer.is-animated .barometer-fill {
  /* width comes from JS via --barometer-pct */
}

.barometer-hint {
  text-align: center;
  color: #aaa;
  font-size: .95rem;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .barometer { padding: 22px 0 20px; }
  .barometer-track { height: 14px; }
}

/* Legal pages */
.legal-page { padding: 60px 0 80px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.legal-page h2 {
  text-align: left;
  font-size: 1.3rem;
  margin: 28px 0 10px;
  text-transform: none;
  letter-spacing: 0;
}
.legal-page p, .legal-page li { margin-bottom: 10px; max-width: 800px; }
.legal-page ul { margin: 0 0 16px 22px; }
.placeholder-box {
  background: #fff3c4;
  border-left: 4px solid #e6b800;
  padding: 14px 16px;
  margin: 16px 0 24px;
  color: #222;
}

/* Responsive */
@media (max-width: 700px) {
  header { padding: 8px 0; }
  .logo img { height: 44px; }
  .header-content { flex-direction: column; gap: 8px; }
  .header-content > .btn { display: none; }
  nav ul { gap: 14px; justify-content: center; }
  .hero { height: auto; min-height: 0; padding: 70px 0 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .section { padding: 56px 0; scroll-margin-top: 110px; }
  .form-block { padding: 16px; }
  .ticket-remove { position: static; margin-bottom: 10px; }
}
