/* Anfrageformular (Niko 26.09.2026). Hell auf den Leistungsseiten (Schluss-Abschnitt), .is-dunkel auf der Startseite.
   27.09.2026 (Niko: „Beschriftungen in die Felder, damit das Formular kompakter wirkt"): Die Beschriftung
   steht im Feld und rutscht beim Ausfuellen nach oben. Sie bleibt dabei sichtbar — das ist der Unterschied
   zu einem blossen Platzhalter, der beim Tippen verschwindet und den Nutzer raten laesst, was er eintraegt. */
.anfrage { scroll-margin-top: calc(var(--nav-height, 72px) + 24px); --af-text: var(--ink); --af-leise: rgba(10,10,10,.6); --af-linie: rgba(10,10,10,.22); --af-feld: #fff; margin: 32px 0 48px; max-width: 720px; }
.anfrage.is-dunkel { --af-text: var(--white); --af-leise: var(--white-55); --af-linie: rgba(255,255,255,.22); --af-feld: rgba(255,255,255,.04); margin: 64px 0 0; max-width: none; }
.anfrage-form { display: grid; grid-template-columns: 1fr; gap: 14px; color: var(--af-text); }
@media (min-width: 768px) { .anfrage-form { grid-template-columns: 1fr 1fr; gap: 16px 20px; } .anfrage-voll { grid-column: 1 / -1; } }
.anfrage-feld { position: relative; display: block; }
.anfrage-feld label {
  position: absolute; left: 17px; top: 15px; font-size: 16px; line-height: 1.25; color: var(--af-leise);
  pointer-events: none; transform-origin: left top; max-width: calc(100% - 52px); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: transform var(--dur-fast, .15s) ease, color var(--dur-fast, .15s) ease;
}
/* Die Pflichtmarke traegt auf hellem Grund die Schriftfarbe des Labels: das Violett des Akzents
   misst dort 2,26:1 gegen Weiss (gemessen 27.09.2026, WCAG verlangt 4,5:1). Auf dunklem Grund
   liegt dasselbe Violett bei 7,27:1 und bleibt. Keine neue Farbe, nur die schon danebenstehende. */
.anfrage-feld label .pflicht { color: var(--af-leise); }
.anfrage.is-dunkel .anfrage-feld label .pflicht { color: var(--accent); }
.anfrage-feld input, .anfrage-feld select, .anfrage-feld textarea {
  font: inherit; font-size: 16px; color: var(--af-text); background: var(--af-feld);
  border: 1px solid var(--af-linie); border-radius: 0; padding: 23px 16px 7px; width: 100%; box-sizing: border-box;
  transition: border-color var(--dur-fast, .15s) ease;
}
.anfrage-feld select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A78BFA' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.anfrage.is-dunkel .anfrage-feld select option { color: var(--ink); }
.anfrage-feld textarea { min-height: 116px; resize: vertical; padding-top: 25px; }
.anfrage-feld input:focus, .anfrage-feld select:focus, .anfrage-feld textarea:focus { outline: none; border-color: var(--accent); }
/* Beschriftung nach oben, sobald das Feld angetippt oder gefuellt ist. Beim Auswahlfeld haengt es
   an :valid — es ist Pflichtfeld, also ungueltig, solange nichts gewaehlt wurde. */
.anfrage-feld input:focus + label, .anfrage-feld input:not(:placeholder-shown) + label,
.anfrage-feld input:-webkit-autofill + label,
.anfrage-feld textarea:focus + label, .anfrage-feld textarea:not(:placeholder-shown) + label,
.anfrage-feld select:focus + label, .anfrage-feld select:valid + label {
  transform: translateY(-9px) scale(.75);
}
.anfrage-feld input:focus + label, .anfrage-feld textarea:focus + label, .anfrage-feld select:focus + label { color: var(--accent); }
/* Der Hinweistext im Nachrichtenfeld wuerde unter der Beschriftung liegen, solange das Feld leer ist.
   Er erscheint deshalb erst beim Antippen, wenn die Beschriftung schon oben steht. */
.anfrage-feld textarea::placeholder { color: transparent; }
.anfrage-feld textarea:focus::placeholder { color: var(--af-leise); }
.anfrage-einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--af-leise); margin-top: 2px; }
.anfrage-einwilligung input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.anfrage-einwilligung a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.anfrage-fuss { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.anfrage.is-dunkel .btn-inquiry { background: var(--accent); color: var(--ink-deep); border-color: var(--accent); }
.anfrage.is-dunkel .btn-inquiry:hover { background: var(--white); border-color: var(--white); }
.anfrage .btn-inquiry[disabled] { opacity: .6; cursor: wait; }
.anfrage-status { margin: 0; font-size: 14px; color: var(--af-leise); }
.anfrage-status.is-fehler { color: var(--error); }
.anfrage-danke { grid-column: 1 / -1; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; margin: 0; }
.anfrage-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.anfrage-tel { color: var(--af-text); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .anfrage-feld label { transition: none; } }
/* Eigene Pflichtfeld-Hinweise statt Browser-Blase (Niko 27.09.2026). Feldrand in --error (Grafik, 3:1 reicht),
   der Text selbst in Schriftfarbe: #ff5a52 misst auf Weiss unter 4,5:1 und waere als Text nicht lesbar genug. */
.anfrage-feld [aria-invalid="true"] { border-color: var(--error); }
.anfrage-feld [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.anfrage-hinweis { display: flex; gap: 8px; align-items: baseline; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--af-text); }
.anfrage-hinweis::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--error); transform: translateY(-1px); }
.anfrage-hinweis.is-einwilligung { margin: -6px 0 0 30px; }
.anfrage-einwilligung input[aria-invalid="true"] { outline: 1px solid var(--error); outline-offset: 2px; }
