:root {
  --navy:      #1B3A6B;
  --navy-dark: #142d54;
  --navy-card: rgba(255,255,255,0.07);
  --white:     #ffffff;
  --muted:     rgba(255,255,255,0.75);
  --accent:    #ffffff;
  --radius:    10px;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy-dark);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  position: relative;
}
.test-banner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ff4444;
  text-shadow: 0 0 8px rgba(255,68,68,0.5);
  pointer-events: none;
}
.site-header h1 {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.site-header .subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}
.back-btn {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.back-btn:hover { color: var(--white); }

/* ── Hauptinhalt ────────────────────────────────────────────────────────── */
.main { max-width: 900px; margin: 0 auto; padding: 28px 20px 60px; }

/* ── Filter ─────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-btn {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-weight: bold;
}

/* ── Kurs-Karten ────────────────────────────────────────────────────────── */
.kurse-liste { display: flex; flex-direction: column; gap: 20px; }

.kurs-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.kurs-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.kurs-badge {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 3px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.kurs-titel {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 12px;
}
.kurs-info { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.kurs-info-row { font-size: 0.9rem; }
.kurs-info-row .lbl {
  font-weight: bold;
  margin-right: 6px;
}
.kurs-info-row .val { color: var(--muted); }

.btn-anmelden {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-weight: bold;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.btn-anmelden:hover { opacity: 0.88; }

/* ── Kurs-Kopf auf Anmeldeseite ─────────────────────────────────────────── */
.kurs-header {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.kurs-header h2 { font-size: 1.3rem; margin-bottom: 6px; }
.kurs-header .kurs-meta { color: var(--muted); font-size: 0.9rem; }

/* ── Formular ───────────────────────────────────────────────────────────── */
.form-section {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.form-section h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.form-group label .req { color: #ff8080; margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.95rem;
}
.form-control:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
}
.form-control::placeholder { color: rgba(255,255,255,0.4); }

.radio-group { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}
.radio-label input[type="radio"] { accent-color: var(--white); width: 17px; height: 17px; }

.partner-block {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 18px;
  padding-top: 18px;
  display: none;
}
.partner-block.visible { display: block; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--white); width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.checkbox-label a { color: var(--white); text-decoration: underline; }

.storno-text {
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  background: var(--white);
  color: var(--navy);
  font-weight: bold;
  font-size: 1rem;
  padding: 13px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.btn-submit:hover:not(:disabled) { opacity: 0.88; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Bestätigungsseite ──────────────────────────────────────────────────── */
.result-box {
  text-align: center;
  padding: 48px 24px;
}
.result-icon { font-size: 4rem; margin-bottom: 20px; }
.result-title { font-size: 1.6rem; font-weight: bold; margin-bottom: 12px; }
.result-text { color: var(--muted); font-size: 1rem; max-width: 480px; margin: 0 auto 28px; }
.btn-back {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-weight: bold;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* ── Ladeindikator ──────────────────────────────────────────────────────── */
.loading { text-align: center; padding: 48px; color: var(--muted); }
.spinner {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  background: rgba(200,0,0,0.2);
  border: 1px solid rgba(255,100,100,0.4);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}
.error-msg.visible { display: block; }

.keine-kurse { text-align: center; color: var(--muted); padding: 48px 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .main { padding: 20px 14px 48px; }
  .kurs-card { padding: 16px; }
  .form-section { padding: 16px; }
  .kurs-card-top { flex-direction: column; }
  .radio-group { flex-direction: column; gap: 10px; }
}


.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  margin-top: 40px;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #e0e0e0;
}
