/* =====================================================================
   aufbau.css — nur für die „Im Aufbau“-Seite (aufbau.php)
   ---------------------------------------------------------------------
   Ergänzt style.css um das Wenige, was die fertige Seite nicht braucht:
   eine zentrierte Karte und ein Eingabefeld. Farben, Schriften, Knöpfe
   und Abstände kommen unverändert aus style.css — die Vorschau soll wie
   dieselbe Seite aussehen, nur eben verschlossen.

   Diese Datei wird zusammen mit aufbau.php gelöscht, wenn die Seite
   öffentlich wird. Siehe README-Deploy.md, Abschnitt 6.
   ===================================================================== */

.aufbau {
  background: var(--c-surface);
}

.aufbau__mitte {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem) var(--gutter);
}

.aufbau__karte {
  width: 100%;
  max-width: 34rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

/* --- Marke oben in der Karte ---------------------------------------- */
.aufbau__marke {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--f-sans);
  font-weight: 600;
  margin: 0 0 2rem;
}
.aufbau__marke .brand__mark { width: 32px; height: 32px; flex: none; }
.aufbau__marke .brand__ort {
  font-weight: 400;
  color: var(--c-muted);
  white-space: nowrap;
}

/* --- Überschriften und Text ----------------------------------------- */
.aufbau__karte h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin: .4rem 0 0; }
.aufbau__karte .lead { margin-top: 1rem; }

.aufbau__frage {
  font-size: 1.2rem;
  margin: 2.25rem 0 .5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-line);
}

/* --- Rückmeldungen --------------------------------------------------- */
/* Beide Meldungen tragen zusätzlich ein Wortsymbol, damit sie nicht
   allein über die Farbe erkennbar sind (WCAG 1.4.1). */
.aufbau__fehler,
.aufbau__ok {
  font-size: var(--fs-small);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  margin: 1.25rem 0 0;
  border: 1px solid;
}
.aufbau__fehler {
  background: var(--c-note-bg);
  border-color: var(--c-note-line);
  color: var(--c-note-text);
}
.aufbau__fehler::before { content: "Fehler: "; font-weight: 700; }
.aufbau__ok {
  background: var(--c-surface);
  border-color: var(--c-line);
  color: var(--c-text);
}

/* --- Formular -------------------------------------------------------- */
.aufbau__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  margin: 1.25rem 0 1rem;
}
@media (min-width: 30em) {
  .aufbau__form { flex-direction: row; align-items: flex-end; }
  .aufbau__form .feld { flex: 1; }
}

.feld { display: flex; flex-direction: column; gap: .35rem; }
.feld__label {
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 600;
}
.feld__eingabe {
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  min-height: 52px;               /* gleiche Höhe wie .btn */
  padding: .7rem .9rem;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  width: 100%;
}
.feld__eingabe:focus-visible {
  outline: 3px solid var(--c-accent-2-deep);
  outline-offset: 2px;
  border-color: var(--c-accent-2-deep);
}
.feld__eingabe[aria-invalid="true"] { border-color: var(--c-note-line); }

.aufbau__form .btn { flex: none; }

/* --- Fuß der Karte --------------------------------------------------- */
.aufbau__kontakt {
  font-size: var(--fs-small);
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-line);
}

.aufbau__rechtliches ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: var(--fs-small);
}
.aufbau__rechtliches a { color: var(--c-muted); }
