/* Flowlee · Kontaktseite /kontakt/ mit Formular (19.10.2026, Dennis + ChatGPT-Abstimmung)
   Kompakter Anthrazit-Einstieg, dann sofort das Formular auf Weiß. Terminlink vor dem Formular.
   Pflicht: Name, E-Mail, Nachricht, Einwilligung (Einwilligung bleibt, bis Dennis die Rechtsgrundlage geklärt hat).
   Leistungen als kompakte Mehrfachauswahl, freiwillig. Felder 16px (kein iOS-Zoom), Tippflächen ≥ 48px.
   Button in Form und Schrift wie die übrigen. Mobile-first; Desktop später. */

/* ---------- Formularfläche ---------- */

.anfrage {
  --a-pad: clamp(20px, 5.6vw, 40px);
  --a-text: #000000;
  --a-grau: #5C5E66;
  --a-rand: rgb(0 0 0 / .18);
  --a-violett: #641AFF;
  --a-fehler: #C0262D;
  background: #FFFFFF;
  color: var(--a-text);
  font-family: "Onest", system-ui, sans-serif;
  padding: 32px var(--a-pad) 64px;
}

.anfrage__termin {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgb(0 0 0 / .1);
  font-size: 16px;
  line-height: 1.5;
  color: var(--a-grau);
}

.anfrage__termin a {
  font-weight: 700;
  color: var(--a-violett);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  white-space: nowrap;
}

/* Nach dem Senden blendet formular.js / jobs-formular.js das Formular per hidden aus – display: flex unten
   würde das überstimmen (Live-Test 20.10.2026: Formular blieb nach „Angekommen.“ ausgefüllt stehen). */
.formular[hidden], .formular__danke[hidden], .formular__fehler[hidden] { display: none !important; }

.formular {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.feld label,
.feld legend {
  padding: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.feld__pflicht {
  color: var(--a-violett);
}

.feld__optional {
  font-weight: 400;
  color: var(--a-grau);
  margin-left: 4px;
}

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--a-rand);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--a-text);
  font: inherit;
  font-size: 16px;                    /* verhindert das Heranzoomen auf dem iPhone */
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.feld textarea {
  min-height: 132px;
  resize: vertical;
}

.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--a-violett);
  box-shadow: 0 0 0 3px rgb(100 26 255 / .18);
}

.feld__hinweis {
  margin: 0;
  font-size: 14px;
  color: var(--a-grau);
}

.feld__fehler {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--a-fehler);
}

.feld.hat-fehler input,
.feld.hat-fehler textarea {
  border-color: var(--a-fehler);
}

/* ---------- Leistungen: kompakte Auswahlflächen, mehrere möglich ---------- */

.feld--wahl legend {
  margin-bottom: 8px;
}

.wahlen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wahl {
  position: relative;
  font-weight: 500 !important;
}

.wahl input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wahl span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--a-rand);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.wahl input:checked + span {
  background: var(--a-violett);
  border-color: var(--a-violett);
  color: #FFFFFF;
}

.wahl input:focus-visible + span {
  outline: 3px solid var(--a-text);
  outline-offset: 2px;
}

/* ---------- Einwilligung ---------- */

.einwilligung {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--a-grau);
  cursor: pointer;
}

.einwilligung input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--a-violett);
}

.einwilligung a {
  color: var(--a-text);
}

/* Spamschutz: für Menschen unsichtbar */
.formular__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Senden: gleiche Form wie die übrigen Buttons ---------- */

.formular__senden {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  min-height: 58px;
  margin-top: 4px;
  padding: 16px 22px 16px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--a-violett);
  color: #FFFFFF;
  font: inherit;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.formular__senden svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.formular__senden:hover { background: #5214E0; }
.formular__senden:hover svg { transform: translateX(4px); }
.formular__senden:active { transform: translateY(1px); }
.formular__senden:focus-visible { outline: 3px solid var(--a-text); outline-offset: 4px; }
.formular__senden[disabled] { opacity: .7; cursor: progress; }

.formular__fehler {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgb(192 38 45 / .08);
  color: var(--a-fehler);
  font-size: 15px;
  line-height: 1.5;
}

.formular__fehler a { color: inherit; }

/* ---------- Bestätigung ---------- */

.formular__danke {
  padding: 28px 0 8px;
  font-size: 17px;
  line-height: 1.55;
}

.formular__danke p { margin: 0; }

.formular__danke-titel {
  margin-bottom: 8px !important;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
}

/* ---------- Direkt: Mail und Telefon wie auf der Startseite, hier auf Weiß ---------- */

.anfrage__direkt {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgb(0 0 0 / .1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.anfrage__direkt-titel {
  margin: 0;
  font-size: 15px;
  color: var(--a-grau);
}

.anfrage .kontakt__weg {
  color: var(--a-text);
  font-size: clamp(20px, 5.6vw, 24px);
}

.anfrage .kontakt__weg:hover { color: var(--a-violett); }

/* WhatsApp hervorgehoben (Dennis, 19.10.): türkiser Kreis mit dunklem Zeichen, Schrift schwarz (Türkis auf Weiß trägt keinen Text),
   türkise Unterkante wie Mail/Telefon; beim Antippen dunkles Türkis. Kein Button – „Anfrage senden“ bleibt dominant. */
.anfrage .kontakt__weg--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
  padding-bottom: 0;
}

.whatsapp__zeichen {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #00C8BE;
  color: #0D0E11;
}

.whatsapp__zeichen svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.anfrage .kontakt__weg--whatsapp {
  text-decoration: underline;
  text-decoration-color: #00C8BE;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.anfrage .kontakt__weg--whatsapp:hover,
.anfrage .kontakt__weg--whatsapp:active {
  color: #0A8F88;
}

@media (prefers-reduced-motion: reduce) {
  .formular__senden,
  .formular__senden svg,
  .wahl span,
  .feld input,
  .feld textarea { transition: none; }
}

/* ---------- Ergänzung 20.10.2026: Formular der Zielseiten (LpFormular.astro) ----------
   Gleiche Felder, Farben und Abstände wie /kontakt/. Neu nur: Auswahlfeld, Aufklappbereich für freiwillige Angaben,
   Blocküberschriften, Überschrift auf weißer Fläche, Terminkarte. Keine neue Gestaltung. */
.feld select {
  width: 100%;
  min-height: 52px;
  padding: 13px 40px 13px 14px;
  border: 1px solid var(--a-rand);
  border-radius: 10px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235C5E66' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  color: var(--a-text);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.feld select:focus { outline: none; border-color: var(--a-violett); box-shadow: 0 0 0 3px rgb(100 26 255 / .18); }
.feld.hat-fehler select { border-color: var(--a-fehler); }

.lp-anfrage { padding-top: 64px; scroll-margin-top: 96px; }

.lp-anfrage__titel {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: clamp(28px, 8.2vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lp-anfrage__text {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--a-grau);
  max-width: 36em;
}

.lp-block__titel {
  margin: 12px 0 -6px;
  font-weight: 800;
  font-size: 17px;
}

.lp-mehr { border-top: 1px solid rgb(0 0 0 / .1); border-bottom: 1px solid rgb(0 0 0 / .1); }
.lp-mehr summary { min-height: 48px; display: flex; align-items: center; gap: .3em; font-weight: 600; font-size: 15px; cursor: pointer; }
.lp-mehr summary:focus-visible { outline: 3px solid var(--a-text); outline-offset: 2px; }
.lp-mehr__felder { display: flex; flex-direction: column; gap: 20px; padding: 4px 0 20px; }

.lp-vorknopf { margin: 0; font-size: 14px; line-height: 1.5; color: var(--a-grau); }

.lp-termin__text, .lp-termin__zeiten { margin: 0; font-size: 15px; line-height: 1.5; color: var(--a-grau); }

/* 44 px Tippfläche: Unterstreichung als Textdekoration (Upload-Prüfung 20.10.2026) */
.lp-termin__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 17px;
  color: var(--a-violett);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

