/*
 * Redesign WT-1 (Technik-Welle) - Anfragestrecke / RFQ.
 *
 * Minimal-additive Ergaenzung fuer die neuen Elemente der Kontakt-Webform
 * (Sektionen, Datei-Upload, DSGVO-Einwilligung). Die Grundstile fuer Feld,
 * Label, Fehlermeldung und den blauen Absendeknopf liefern bereits
 * structure.css und buttons.css - hier werden nur die Bausteine ruhig
 * gestellt, die dort noch nicht vorkommen. Alles streng auf die
 * Kontakt-Webform gescoped, damit keine andere Form beeinflusst wird.
 *
 * Laedt zuletzt (nach suche.css), Radius 0, #006ABC bleibt dem Submit
 * vorbehalten.
 */

/* --- Sektionen: ruhige MB-Zwischenueberschrift statt grosser H2 --- */
body .webform-submission-kontakt-onlineanfrage-form .webform-section {
  margin-block-start: var(--feb-space-8);
  padding-block-start: var(--feb-space-6);
  border-block-start: 1px solid var(--feb-border);
}

body .webform-submission-kontakt-onlineanfrage-form .webform-section-title {
  margin: 0 0 var(--feb-space-2) 0;
  padding: 0;
  font-size: var(--feb-fs-xs);
  font-weight: var(--feb-fw-semibold);
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--feb-text-secondary);
}

body .webform-submission-kontakt-onlineanfrage-form .webform-section > .description,
body .webform-submission-kontakt-onlineanfrage-form .webform-section-wrapper > .description {
  margin-block-end: var(--feb-space-5);
}

/* --- Datei-Upload: neutrale Flaeche, Radius 0 --- */
body .webform-submission-kontakt-onlineanfrage-form .form-managed-file,
body .webform-submission-kontakt-onlineanfrage-form .js-form-managed-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--feb-space-3);
}

body .webform-submission-kontakt-onlineanfrage-form input[type="file"] {
  flex: 1 1 16rem;
  min-height: var(--feb-control-h);
  padding: var(--feb-space-2) var(--feb-space-3);
  border: 1px solid var(--feb-border-strong);
  border-radius: var(--feb-radius);
  background: var(--feb-white);
  color: var(--feb-text);
  font-size: var(--feb-fs-body);
}

body .webform-submission-kontakt-onlineanfrage-form input[type="file"]:is(:focus, :focus-visible) {
  border-color: var(--feb-ink);
  outline: var(--feb-focus-width) solid var(--feb-focus);
  outline-offset: 0;
}

/* Upload-/Entfernen-Knopf: sekundaer (nicht das Submit-Blau) */
body .webform-submission-kontakt-onlineanfrage-form .form-managed-file .button,
body .webform-submission-kontakt-onlineanfrage-form .js-form-managed-file .button,
body .webform-submission-kontakt-onlineanfrage-form .webform-file-remove-button {
  height: var(--feb-control-h);
  min-height: var(--feb-control-h);
  margin: 0;
  padding: 0 var(--feb-space-4);
  border: 1px solid var(--feb-ink);
  border-radius: var(--feb-radius);
  background: var(--feb-white);
  color: var(--feb-ink);
  font-weight: var(--feb-fw-semibold);
  box-shadow: none;
  transition: background-color var(--feb-dur-fast) var(--feb-ease),
              color var(--feb-dur-fast) var(--feb-ease);
}

body .webform-submission-kontakt-onlineanfrage-form .form-managed-file .button:is(:hover, :focus-visible),
body .webform-submission-kontakt-onlineanfrage-form .js-form-managed-file .button:is(:hover, :focus-visible),
body .webform-submission-kontakt-onlineanfrage-form .webform-file-remove-button:is(:hover, :focus-visible) {
  background: var(--feb-ink);
  color: var(--feb-white);
}

/* Liste bereits hochgeladener Dateien */
body .webform-submission-kontakt-onlineanfrage-form .file {
  font-size: var(--feb-fs-body);
  color: var(--feb-text);
}

/* --- DSGVO-Einwilligung: Fliesstext-Label mit klar erkennbarem Link --- */
body .webform-submission-kontakt-onlineanfrage-form .form-item-datenschutz-einwilligung .form-check-label a,
body .webform-submission-kontakt-onlineanfrage-form .js-form-item-datenschutz-einwilligung .form-check-label a {
  color: var(--feb-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body .webform-submission-kontakt-onlineanfrage-form .form-item-datenschutz-einwilligung {
  margin-block-start: var(--feb-space-6);
}
