/* Das Anfrage-Fenster: auf jeder Seite gleich, eingebunden über anfrage.js. */
/* ---------- Anfrage: zieht vom Knopf aus über den Schirm ---------- */
.anfrage { position: fixed; inset: 0; z-index: 80; }
.anfrage[hidden] { display: none; }
.anf-flaeche {
  position: absolute; inset: 0;
  background: var(--weiss);
  clip-path: circle(0% at var(--ax, 8%) var(--ay, 96%));
  transition: clip-path 1.15s cubic-bezier(.22,1,.28,1);
  overflow-y: auto;
}
.anfrage.auf .anf-flaeche { clip-path: circle(150% at var(--ax, 8%) var(--ay, 96%)); }
/* beim Zugehen etwas zügiger, damit es nicht zäh wirkt */
.anfrage.zu .anf-flaeche { transition-duration: .8s; transition-timing-function: cubic-bezier(.5,0,.3,1); }

.anf-zu {
  position: fixed; top: 26px; right: var(--rand); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: 1px solid var(--linie); color: var(--ink);
  font-size: 19px; line-height: 1; cursor: pointer; opacity: 0;
  transition: background .4s, border-color .4s, color .4s, transform .4s, opacity .6s ease;
}
.anfrage.auf .anf-zu { opacity: 1; transition-delay: 0s, 0s, 0s, 0s, .35s; }
.anf-zu:hover { background: var(--ink); border-color: var(--ink); color: var(--weiss); transform: rotate(90deg); }

.anf-innen {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  width: min(720px, 100%); margin: 0 auto;
  padding: 96px var(--rand);
}
.anf-innen > *, .anf-form > * { opacity: 0; }

.anf-augen {
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--grau);
}
.anf-titel {
  margin-top: 20px;
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 500; line-height: 1.06; letter-spacing: -0.03em;
}
.anf-text { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--grau); }

.anf-form {
  margin-top: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px;
}
.anf-breit, .anf-wahl, .anf-senden, .anf-hinweis { grid-column: 1 / -1; }

.anf-feld { display: block; }
.anf-feld > span {
  display: block; margin-bottom: 9px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grau);
}
.anf-feld input, .anf-feld textarea {
  width: 100%; padding: 9px 0;
  background: none; border: 0; border-bottom: 1px solid var(--linie);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .4s;
  resize: none;
}
.anf-feld input:focus, .anf-feld textarea:focus { outline: 0; border-bottom-color: var(--ink); }
.anf-feld input:user-invalid, .anf-feld textarea:user-invalid { border-bottom-color: #B4553E; }

.anf-wahl { border: 0; padding: 0; }
.anf-wahl legend {
  padding: 0; margin-bottom: 12px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grau);
}
.anf-marken { display: flex; flex-wrap: wrap; gap: 9px; }
.anf-marken label { cursor: pointer; }
.anf-marken input { position: absolute; opacity: 0; width: 0; height: 0; }
.anf-marken span {
  display: inline-block; padding: 9px 17px; border-radius: 100px;
  border: 1px solid var(--linie);
  font-size: 12.5px; color: var(--grau);
  transition: background .35s, color .35s, border-color .35s;
}
.anf-marken label:hover span { border-color: rgba(20,24,15,.3); color: var(--ink); }
.anf-marken input:checked + span { background: var(--gruen); border-color: var(--gruen); color: var(--weiss); }
.anf-marken input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.anf-senden {
  justify-self: start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 32px; border-radius: 100px;
  background: var(--ink); border: 1px solid var(--ink); color: var(--weiss);
  font: inherit; font-size: 11.5px; letter-spacing: .19em; text-transform: uppercase;
  cursor: pointer;
  transition: background .4s, color .4s;
}
.anf-senden span { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.anf-senden:hover { background: var(--gruen); border-color: var(--gruen); }
.anf-senden:hover span { transform: translateX(5px); }

.anf-hinweis { font-size: 13px; line-height: 1.5; color: var(--grau); min-height: 1.4em; }
.anf-hinweis.fehler { color: #B4553E; }
.anf-direkt { margin-top: 34px; font-size: 13px; color: var(--grau); }
.anf-direkt a { border-bottom: 1px solid var(--linie); padding-bottom: 2px; }
.anf-direkt a:hover { border-bottom-color: var(--ink); }

body.anfrage-auf { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .anf-flaeche { transition: none; }
  .anf-innen > *, .anf-form > * { opacity: 1; }
}

@media (max-width: 900px) {
  .anf-innen { padding: 84px var(--rand) 56px; justify-content: flex-start; }
  .anf-form { grid-template-columns: 1fr; gap: 22px; }
  .anf-zu { top: 16px; right: 14px; width: 38px; height: 38px; font-size: 16px; }
  .anf-titel { font-size: 30px; }
}


/* ---------- die Schrift, die für uns spricht ---------- */
.rede { height: 210svh; }
.rede-haft {
  position: sticky; top: 0; height: 100svh; margin-top: -8svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px var(--rand);
  text-align: center;
}
.rede-augen {
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--grau);
  margin-bottom: 40px;
}
.rede-satz {
  max-width: 19ch;
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 500; line-height: 1.16; letter-spacing: -0.028em;
  text-wrap: balance;
}
.rede-satz .rw {
  display: inline-block;
  color: rgba(20,24,15,.13);
  transition: color .05s linear;   /* die Schleife setzt die Farbe, kein Nachlauf */
}
.rede-link {
  margin-top: 52px; opacity: 0;
  font-size: 10.5px; letter-spacing: .19em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--linie); padding-bottom: 5px;
}
.rede-link span { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.rede-link:hover { border-bottom-color: var(--ink); }
.rede-link:hover span { transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
  .rede-satz .rw { color: var(--ink); }
  .rede-link { opacity: 1; }
}

@media (max-width: 900px) {
  .rede { height: 190svh; }
  .rede-haft { padding: 84px var(--rand); }
  .rede-satz { max-width: 16ch; font-size: clamp(26px, 7.4vw, 40px); }
  .rede-augen { margin-bottom: 28px; }
  .rede-link { margin-top: 38px; }
}


/* ---------- Abschnitte gleiten ineinander ---------- */
.gleitet { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  .gleitet { transform: none !important; opacity: 1 !important; }
}




/* die Falle für Maschinen sieht niemand und niemand springt hinein */
.anf-falle {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* ist die Anfrage draussen, tritt das Formular ab und der Hinweis bleibt */
.anf-form.anf-fertig > *:not(.anf-hinweis) {
  opacity: 0; transform: translateY(-6px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.anf-form.anf-fertig {
  min-height: 0;
}
.anf-form.anf-fertig .anf-hinweis {
  font-size: 15px; line-height: 1.6; color: var(--ink);
  padding-top: 6px;
}
