/* Siteartist: Seite "Projekt anfragen" und ihre Danke-Seite. Baut auf stil.css auf
   (Kopf, Fuss, Knoepfe, Farben). Felder mit mindestens 16 px Schrift, damit das Handy
   nicht hineinzoomt; scroll-margin haelt jedes Feld unter dem schwebenden Kopf frei. */

.anfrage {
  position: relative;
  padding: clamp(40px, 6vw, 104px) 0 var(--abstand);
  isolation: isolate;
}
/* leiser Glutschein hinter der Karte */
.anfrage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(900px, 90vw);
  height: 640px;
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.11), transparent 70%);
  pointer-events: none;
}

.anfrage-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}

.anfrage-kopf { position: sticky; top: 124px; }
.anfrage-ober {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glut);
}
.anfrage-titel { max-width: 13ch; }
.anfrage-satz {
  margin-top: 22px;
  max-width: 34ch;
  color: var(--grau-hell);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}
.anfrage-punkte {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--linie);
  color: var(--grau);
  font-size: 15px;
  line-height: 1.35;
}
.anfrage-punkte li { display: flex; flex-direction: column; gap: 4px; }
.anfrage-punkte b { color: var(--kreide); font-size: 1.55rem; font-weight: 300; letter-spacing: -0.01em; }

/* ---------- Karte mit dem Formular ---------- */
.anfrage-karte {
  border-radius: 20px;
  padding: clamp(22px, 3.2vw, 44px);
  background: linear-gradient(180deg, #121214, #0C0C0E);
  box-shadow:
    0 0 0 1px var(--linie),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 50px 90px -56px rgba(255, 138, 61, 0.28);
}

.formular {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 18px;
}
.formular[hidden] { display: none; }

.feld { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.feld--breit { grid-column: 1 / -1; }

.feld > label,
.wahl legend {
  padding: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--kreide);
}
.freiwillig { margin-left: 6px; color: var(--grau); font-weight: 400; font-size: 13.5px; }

.feld input,
.feld textarea {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--linie-stark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--kreide);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  scroll-margin-top: 112px;
  scroll-margin-bottom: 32px;
}
.feld textarea { min-height: 148px; resize: vertical; line-height: 1.55; }
.feld input::placeholder,
.feld textarea::placeholder { color: #7A7A76; opacity: 1; }
.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--glut);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .feld input:hover:not(:focus),
  .feld textarea:hover:not(:focus) { border-color: rgba(255, 255, 255, 0.28); }
}
/* Autofill des Browsers im dunklen Look */
.feld input:-webkit-autofill {
  -webkit-text-fill-color: var(--kreide);
  -webkit-box-shadow: 0 0 0 100px #1A1714 inset;
  caret-color: var(--glut);
}
.feld [aria-invalid="true"] { border-color: #FF7A4D; }
.feld-fehler { margin: 0; font-size: 14px; line-height: 1.4; color: #FFB48A; }
.feld-fehler[hidden] { display: none; }

/* ---------- Auswahl "Worum geht es?" als Schalter ---------- */
.wahl legend { margin-bottom: 8px; }
.wahl-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.wahl-reihe input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.wahl-reihe label {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--linie-stark);
  color: var(--grau-hell);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  scroll-margin-top: 112px;
}
.wahl-reihe input:checked + label {
  background: rgba(255, 138, 61, 0.12);
  box-shadow: inset 0 0 0 1px var(--glut);
  color: var(--kreide);
}
.wahl-reihe input:focus-visible + label { outline: 1.5px solid var(--glut); outline-offset: 3px; }
.wahl-reihe label:active { background: rgba(255, 255, 255, 0.05); }
@media (hover: hover) and (pointer: fine) {
  .wahl-reihe input:not(:checked) + label:hover { color: var(--kreide); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
}

/* ---------- Spamschutz, Absenden ---------- */
.pruefung { min-width: 0; }

.absenden { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.absenden .knopf { height: 52px; padding: 0 28px; font-size: 15.5px; border: 0; cursor: pointer; font-family: inherit; }
.absenden .knopf:disabled { opacity: 0.6; cursor: progress; }
.datenschutz-hinweis { flex: 1 1 240px; margin: 0; color: var(--grau); font-size: 14px; line-height: 1.5; }
.datenschutz-hinweis a,
.meldung a:not(.knopf) {
  color: var(--kreide);
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 61, 0.55);
  text-underline-offset: 3px;
}

.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Danke und Umweg ---------- */
.meldung { scroll-margin-top: 112px; }
.meldung[hidden] { display: none; }
.meldung:focus { outline: none; }
.meldung p { color: var(--grau-hell); }
.meldung-titel {
  margin-bottom: 10px;
  color: var(--kreide) !important;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
}
.meldung .knopf { margin-top: 28px; }
.meldung--umweg {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 122, 77, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 77, 0.35);
}
.meldung--umweg .meldung-titel { font-size: 1.125rem; font-weight: 500; margin-bottom: 6px; }

/* Danke-Seite ohne JavaScript: Karte allein, mittig */
.anfrage--danke .anfrage-karte { max-width: 640px; }

/* ---------- Breiten ---------- */
@media (max-width: 960px) {
  .anfrage-raster { grid-template-columns: 1fr; gap: 36px; }
  .anfrage-kopf { position: static; }
  .anfrage-titel { max-width: 16ch; }
  .anfrage-punkte { margin-top: 28px; padding-top: 22px; }
}

@media (max-width: 680px) {
  .anfrage { padding-top: 28px; }
  .anfrage-karte { margin-inline: calc(-1 * var(--rand) + 8px); padding: 22px 18px 24px; border-radius: 18px; }
  .formular { grid-template-columns: 1fr; gap: 20px; }
  .wahl-reihe label { flex: 1 1 auto; justify-content: center; }
  .absenden .knopf { width: 100%; }
  .meldung .knopf { width: 100%; }
}
