/* ── Variablen ── */
:root {
  --black:      #1a1a1a;
  --gold:       #F5C400;
  --gold-dark:  #d4a800;
  --white:      #ffffff;
  --gray-light: #f4f4f4;
  --gray-mid:   #e0e0e0;
  --text:       #333333;
  --text-muted: #666666;
  --error:      #cc0000;
  --radius:     6px;
  --shadow:     0 2px 8px rgba(0,0,0,0.10);
  --max-width:  960px;
}

/* ── Reset & Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--gray-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--white);
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--white);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--gold); }

.btn-nav {
  background: var(--gold);
  color: var(--black) !important;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--gold-dark) !important; }

/* ── Main & Footer ── */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.2rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--gold-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary.btn-large {
  font-size: 1.1rem;
  padding: 0.9rem 2.4rem;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--black);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.8rem;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover { background: var(--gray-light); }

/* ── Landing / Hero ── */
.hero {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  background-image: linear-gradient(135deg, #1a1a1a 60%, #2e2600 100%);
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--white);
}

.detail-icon { font-size: 1.2rem; }

/* ── Formular-Seite ── */
.form-page { max-width: 680px; margin: 0 auto; }

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--black);
}

.form-subtitle {
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-error {
  background: #fff0f0;
  border: 1px solid var(--error);
  color: var(--error);
}

/* ── Formular-Abschnitte ── */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1.4rem;
}

/* ── Felder ── */
.field-group { margin-bottom: 1.2rem; }
.field-group:last-child { margin-bottom: 0; }

.field-group label,
.group-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,196,0,0.2);
}

.field-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.field-error {
  display: block;
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 0.3rem;
}

/* ── Checkbox-Felder ── */
.field-group--checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  background: var(--gray-light);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  flex: 1;
  margin-bottom: 0 !important;
}

.form-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.price-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: normal;
}

.capacity-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}

.capacity-ok   { background: #e6f4ea; color: #1e6e30; }
.capacity-low  { background: #fff3cd; color: #856404; }
.capacity-full { background: #f8d7da; color: #842029; }

/* ── T-Shirt Grid ── */
.shirt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.shirt-size {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.shirt-size label {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0 !important;
}

.shirt-size .form-input {
  text-align: center;
  padding: 0.5rem 0.3rem;
}

/* ── Warenkorb-Abschnitt ── */
.cart-section { border: 2px solid var(--gold); }

.cart-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 0.5rem 0;
}

.cart-items {
  list-style: none;
  margin-bottom: 0.8rem;
}

.cart-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 0.95rem;
}

.cart-item-name { flex: 1; font-weight: 500; }
.cart-item-unit { color: var(--text-muted); font-size: 0.82rem; }
.cart-item-amount { font-weight: 600; white-space: nowrap; }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gold);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.6rem;
}

.cart-total-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
}

.cart-total-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--black);
}

/* ── Formular-Aktionen ── */
.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

/* ── Bestätigungsseite ── */
.confirm-page {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.confirm-header { margin-bottom: 2rem; }

.confirm-icon {
  width: 64px;
  height: 64px;
  background: var(--gold);
  color: var(--black);
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.confirm-header h1 {
  font-size: 1.8rem;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.confirm-header p { color: var(--text-muted); }

.confirm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  text-align: left;
}

.confirm-card h2 {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1.2rem;
}

.summary-table { width: 100%; border-collapse: collapse; }

.summary-table th,
.summary-table td {
  padding: 0.55rem 0;
  font-size: 0.95rem;
  vertical-align: top;
}

.summary-table th {
  width: 40%;
  color: var(--text-muted);
  font-weight: 500;
  padding-right: 1rem;
}

.summary-table tr { border-bottom: 1px solid var(--gray-mid); }
.summary-table tr:last-child { border-bottom: none; }

.confirm-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gold);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 700;
}

.total-amount { font-size: 1.5rem; font-weight: 800; }

.confirm-actions { margin-top: 1rem; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-title { font-size: 1.7rem; }
  .event-details { gap: 1rem; }
  .shirt-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 0 1rem; }
  .main-content { padding: 1.2rem 1rem; }
  .form-section { padding: 1.2rem; }
}
