/* Quellenangabe Q8 gelesen und gelernt Start */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&display=swap");
/* Quellenangabe Q8 gelesen und gelernt Ende */

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

:root {
  --blau: #00529f;
  --blau-light: #e8f0f9;
  --gelb: #febe10;
  --rot: #ee324e;
  --schwarz: #020203;
  --grau-1: #f7f8fa;
  --grau-2: #f0f1f4;
  --grau-rand: #dde0e8;
  --text-main: #1a1a1a;
  --text-soft: #6b7280;
  --weiss: #ffffff;
  --font: "Space Grotesk", sans-serif;
  --radius: 6px;
  --max-width: 760px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text-main);
  background: var(--grau-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- HEADER ---- */
header {
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-rand);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blau);
}

.header-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--schwarz);
  line-height: 1.2;
}

/* ---- MAIN ---- */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 36px auto 52px;
  padding: 0 20px;
}

/* ---- PAGE INTRO ---- */
.page-intro {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grau-rand);
}

.page-intro h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--schwarz);
  margin-bottom: 8px;
}

.page-intro p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.7;
}

.req-note {
  color: var(--rot);
  font-size: 0.8rem;
}

/* ---- ALERT BANNER ---- */
.alert-error {
  background: #fff5f6;
  border-left: 3px solid var(--rot);
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rot);
}

/* ---- FORM SECTIONS ---- */
.form-section {
  background: var(--weiss);
  border: 1px solid var(--grau-rand);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.section-head {
  padding: 14px 24px;
  border-bottom: 1px solid var(--grau-rand);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-tag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blau);
  color: var(--weiss);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-head h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-body {
  padding: 24px;
}

/* ---- GRID LAYOUTS ---- */
.grid-2,
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ---- FIELD ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.field label .req {
  color: var(--rot);
  margin-left: 2px;
}

/* ---- INPUTS ---- */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-main);
  background: var(--weiss);
  border: 1px solid var(--grau-rand);
  border-radius: var(--radius);
  padding: 10px 14px;
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%2300529F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.1);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(238, 50, 78, 0.08);
}

/* ---- RADIO PILLS ---- */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--grau-rand);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-main);
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s;
  user-select: none;
}

.radio-pill:hover {
  border-color: var(--blau);
  background: var(--blau-light);
}

.radio-pill input[type="radio"] {
  accent-color: var(--blau);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---- FEHLER ---- */
.err {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--rot);
  margin-top: 2px;
}

.err::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  background: var(--rot);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M4 1v4M4 6.5v.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Fehlermeldung */
.js-err {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--rot);
  margin-top: 2px;
}

/* ---- SUBMIT ---- */
.form-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
}

.btn-submit {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--schwarz);
  background: var(--gelb);
  border: none;
  border-radius: var(--radius);
  padding: 12px 36px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition:
    background 0.12s,
    transform 0.1s;
}

.btn-submit:hover {
  background: #e5aa00;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Quellenangabe Q12 KI-generiert Start */
/* ---- BESTÄTIGUNG ---- */
.confirm-wrap {
  background: var(--weiss);
  border: 1px solid var(--grau-rand);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.confirm-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blau);
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirm-check svg {
  width: 26px;
  height: 26px;
}

.confirm-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--schwarz);
  margin-bottom: 10px;
}

.confirm-wrap > p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

.confirm-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  text-align: left;
  background: var(--grau-1);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.confirm-dl dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blau);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 0;
}

.confirm-dl dd {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-main);
  padding: 2px 0;
}

.btn-back {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blau);
  text-decoration: none;
  border: 1px solid var(--blau);
  border-radius: var(--radius);
  padding: 10px 24px;
  transition:
    background 0.12s,
    color 0.12s;
}

.btn-back:hover {
  background: var(--blau);
  color: var(--weiss);
}
/* Quellenangabe Q12 KI-generiert Ende */

/* ---- FOOTER ---- */
footer {
  background: var(--weiss);
  border-top: 1px solid var(--grau-rand);
  padding: 18px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-soft);
}

.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--blau);
  text-decoration: none;
  transition: opacity 0.12s;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Quellenangabe Q6 gelesen und gelernt Start */
/* ---- RESPONSIVE ---- */
@media (min-width: 580px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .section-body {
    padding: 28px 32px;
  }

  .header-inner {
    padding: 20px 32px;
  }
}
/* Quellenangabe Q6 gelesen und gelernt Ende */

/* Quellenangabe Q10 KI-generiert Start */
/* ---- STEPPER ---- */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 0 4px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 2px solid var(--grau-rand);
  background: var(--weiss);
  color: var(--text-soft);
  transition: all 0.2s;
}

.step span {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-soft);
  white-space: nowrap;
}

.step.active .step-dot {
  background: var(--blau);
  border-color: var(--blau);
  color: var(--weiss);
}

.step.active span {
  color: var(--blau);
  font-weight: 500;
}

.step.done .step-dot {
  background: var(--blau);
  border-color: var(--blau);
  color: var(--weiss);
  font-size: 0.9rem;
}

.step.done span {
  color: var(--text-soft);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--grau-rand);
  margin: 0 8px;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.step-line.done {
  background: var(--blau);
}
/* Quellenangabe Q10 KI-generiert Ende */

/* Quellenangabe Q11 KI-generiert Start */
/* ---- EVENT OPTIONEN ---- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--grau-rand);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s;
}

.event-option:hover {
  border-color: var(--blau);
  background: var(--blau-light);
}

.event-option input[type="radio"] {
  accent-color: var(--blau);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-info strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
}

.event-info span {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-soft);
}
/* Quellenangabe Q11 KI-generiert Ende */

/* ---- FIELD HINT ---- */
.field-hint {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1.5;
}

/* ---- FOOTER ZWEI BUTTONS ---- */
.form-footer.two {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-back-step {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blau);
  background: var(--weiss);
  border: 1px solid var(--blau);
  border-radius: var(--radius);
  padding: 11px 24px;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}

.btn-back-step:hover {
  background: var(--blau);
  color: var(--weiss);
}
