
/* ============================
   GRUNDEINSTELLUNGEN
   ============================ */
:root {
  --text-color: #93546e;
  --accent: #93546e;
  --bg-accent: #efefef;

  --topband-height: 25mm;   /* Weißer Rand oben */
  --topband-shadow: 2mm;    /* Schatten */
}

* { box-sizing: border-box; }


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-accent);
  color: var(--text-color);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, sans-serif;
}

/* ============================
   OBERER BALKEN (Header) - LOGO WIRKLICH ZENTRIERT
   ============================ */

.page-header {
  height: var(--topband-height);
  background: #fff;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 3cm;
  margin-top: 0mm; /* Topband um 5mm nach unten verschieben */

}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--topband-shadow));
  height: var(--topband-shadow);
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0));
}

.logo {
  max-height: calc(var(--topband-height) - 8mm); /* Logo deutlich kleiner als Header */
  max-width: calc(100vw - 6cm);
  height: auto;
  width: auto;
  object-fit: contain;

  margin: auto 0; /* Explizite vertikale Zentrierung */
}



/* ============================
   HAUPTCONTAINER
   ============================ */

main {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: calc(var(--topband-shadow) + 5mm);
}

.form-container {
  width: 60%;
  max-width: 900px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  margin-bottom: 20mm;
}

/* ============================
   FORMULARELEMENTE – GLOBAL
   ============================ */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: var(--text-color);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid #e6c5d3;
  border-color: #e6c5d3;
}

.error-msg {
  color: #9f2b2b;
  margin-top: 6px;
}

/* ============================
   FORMULARTITEL
   ============================ */

.form-title {
  margin: 0 0 20px 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color); /* #93546e */
  text-align: left;
  letter-spacing: 0.5px;
}

/* ============================
   VORNAME + NACHNAME (Variante 2)
   ============================ */

.field-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Mobil: untereinander */
@media (max-width: 900px) {
  .field-row-two {
    grid-template-columns: 1fr;
  }
}

/* ============================
   PLZ + ORT (Option B)
   ============================ */

.field-row-plz-ort {
  display: grid;
  grid-template-columns: 120px 1fr;  /* PLZ schmal → Ort breit */
  gap: 12px;
}

.field-row-plz-ort input#plz {
  width: 100%;
  max-width: 120px;
}

.field-row-plz-ort input#ort {
  width: 100%;
}

/* Mobil → untereinander */
@media (max-width: 900px) {
  .field-row-plz-ort {
    grid-template-columns: 1fr;
  }

  .field-row-plz-ort input#plz {
    max-width: 120px; /* PLZ bleibt schmal */
  }
}

@media (max-width: 900px) {
  .page-header {
    padding-left: 1cm; /* Weniger Abstand auf kleineren Bildschirmen */
  }
  
  .logo {
    max-height: 12mm; /* Kleineres Logo auf mobilen Geräten */
    max-width: calc(100vw - 2cm); /* Angepasste maximale Breite */
  }
}

@media (max-width: 600px) {
  .page-header {
    padding-left: 0.5cm; /* Noch weniger Abstand auf sehr kleinen Bildschirmen */
  }
  
  .logo {
    max-height: 10mm;
    max-width: calc(100vw - 1cm);
  }
}

/* ============================
   CHECKBOXEN / RADIO
   ============================ */

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

legend {
  font-weight: 600;
  margin-bottom: 6px;
}

/* ============================
   BUTTON
   ============================ */

.actions {
  margin-top: 22px;
}

.actions button {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.actions button:hover {
  filter: brightness(1.05);
}

/* ============================
   MELDUNGEN
   ============================ */

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: bold;
}

.alert.success {
  background: #e6fff0;
  color: #1e7f3b;
  border: 1px solid #b6f0ce;
}

.alert.error {
  background: #ffecec;
  color: #9f2b2b;
  border: 1px solid #f4b7b7;
}

/* ============================
   TRENNLINIE
   ============================ */

.section-divider {
  height: 1px;
  background-color: var(--text-color); /* #93546e */
  margin: 20px 0; /* 20px Abstand vor und nach der Linie */
  width: 100%;
}

/* ============================
   ERFOLGSSEITE
   ============================ */

.success-message {
  text-align: center;
  margin: 20px 0;
}

.success-message h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.email-info {
  color: #1e7f3b;
  font-weight: 600;
}

.email-error {
  color: #9f2b2b;
  font-weight: 600;
}

.anmeldung-details {
  margin: 20px 0;
}

.anmeldung-details h4 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.detail-row {
  display: flex;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row .label {
  font-weight: 600;
  min-width: 150px;
  color: var(--text-color);
}

.detail-row .value {
  flex: 1;
  color: #333;
}

.redirect-info {
  text-align: center;
  margin-top: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.redirect-info a {
  color: var(--accent);
  text-decoration: none;
}

.redirect-info a:hover {
  text-decoration: underline;
}

#countdown {
  font-weight: bold;
  color: var(--accent);
}
