/* === Formulare – Basisschema === */

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === Formulargruppen === */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  width: 100%;
}

/* === Labels === */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px; /* Weniger Abstand zum Eingabefeld */
  color: #1f2937;
  line-height: 1.2;
  position: relative;
}

/* Pflichtfeld-Kennzeichnung – nur roter Kreis, kein Stern */
label.required::after {
  content: none; /* Stern vollständig deaktiviert */
}

/* Der rote Kreis mit „!“ */
label.required .req {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
  vertical-align: middle;
  user-select: none;
}

/* === Eingabefelder === */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #111827;
  background-color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* === Zweispaltiges Layout für Formularabschnitte ===
   Verwende im Markup einen Wrapper um die betreffenden Felder:
   <div class="form-grid-2"> ... </div>
*/
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 16px; /* Zeilen- und Spaltenabstand */
  align-items: start;
}

.form-grid-2 .form-group {
  margin-bottom: 0; /* Abstand übernimmt das Grid-Gap */
}

/* Element optional über beide Spalten spannen */
.form-grid-2 .col-span-2 {
  grid-column: 1 / -1;
}

/* Mobile: automatisch einspaltig */
@media (max-width: 700px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid-2 .col-span-2 {
    grid-column: auto;
  }
}

/* === Tooltip / Info-Icons in Formularen === */
.form-group .info-wrap {
  margin-left: 4px; /* Gleicher Abstand wie roter Kreis */
  vertical-align: middle;
}

.form-group .info-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin-left: 4px;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 6px rgba(37,99,235,.25);
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
  vertical-align: middle;
}

.form-group .info-icon:hover,
.form-group .info-icon:focus {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* === Fehlermeldungen === */
.form-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
}

/* === Buttons im Formular ===
   WICHTIG: Wir stylen hier NICHT mehr global alle <button>,
   damit der Glas-Glow aus components.css unangetastet bleibt.
   Wenn du im Formular absichtlich einen „einfachen“ Button willst,
   gib ihm z. B. die Klasse .btn-plain und style die hier. */

/* Beispiel für bewusste Plain-Buttons (optional, aktuell nicht genutzt):
.form-group .btn-plain {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
}
*/

/* === Textarea === */
textarea {
  resize: vertical;
  min-height: 80px;
}

/* === Select-Felder === */
select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%
