/* =========================================================
   Kontakt-Seite und Danke-Seite (16.10.2026)
   Grundfläche wie der gelbe Hero der Unterseiten (.zh aus style.css), aber ohne Bild:
   links Text, rechts das Formular auf heller Karte (Designhinweis der Texterin).
   ========================================================= */

/* ---------- 1. Einstieg + Formular ---------- */
.kth__innen {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 6vw, 3rem);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}
.kth__text { display: grid; gap: clamp(.9rem, 1.8vw, 1.3rem); justify-items: start; align-content: start; }
.kth__titel .schrift { --spalt: var(--gelb); }
@media (min-width: 68.75em) {
  .kth__innen { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  /* Text bleibt neben dem langen Formular im Blick */
  .kth__text { position: sticky; top: calc(var(--kopf-h) + 2.5rem); padding-top: 1rem; }
  .kth__titel { font-size: clamp(3rem, 1rem + 3.6vw, 5.4rem); }
}

/* Formular-Karte: hell, mit Lackstreifen oben wie der Cookie-Hinweis */
.ktf {
  background: var(--weiss); border-radius: var(--rund);
  padding: clamp(1.6rem, 4vw, 2.75rem) clamp(1.1rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 24px 40px -20px rgb(0 0 0 / .45), 0 1px 0 rgb(0 0 0 / .08);
  background-image: linear-gradient(90deg, var(--rot) 0 33.33%, var(--blau) 33.33% 66.66%, var(--tuerkis) 66.66%);
  background-size: 100% 8px; background-repeat: no-repeat;
  scroll-margin-top: calc(var(--kopf-h) + 1rem);
}
.ktf__raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 1.25rem; }
@media (min-width: 40em) {
  .ktf__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feld--breit { grid-column: 1 / -1; }
}

.feld { display: grid; gap: .35rem; align-content: start; }
.feld label { font-size: var(--fs-klein); font-weight: 700; line-height: 1.3; }
.feld__pflicht { color: var(--rot); margin-left: .15em; }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 48px; margin: 0;
  padding: .65em .8em; font: inherit; font-size: var(--fs-text); line-height: 1.4; color: var(--schwarz);
  background: var(--weiss); border: 2px solid rgb(21 18 15 / .55); border-radius: var(--rund);
  transition: border-color .15s ease, background-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--schwarz); } }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--schwarz); background: var(--papier); }
.feld textarea { min-height: 9.5rem; resize: vertical; }
.feld ::placeholder { color: #6B6560; opacity: 1; }
.feld select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315120F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center; background-size: 1.1em;
}
.feld input[type="date"] { min-width: 0; }   /* iOS: Datumsfeld sonst breiter als die Spalte */
.feld [aria-invalid="true"] { border-color: var(--rot); background-color: rgb(158 49 34 / .06); }
.feld__fehler { color: var(--rot); font-size: var(--fs-klein); font-weight: 700; line-height: 1.35; }
.feld__fehler:empty { display: none; }
.feld__hilfe { font-size: var(--fs-klein); line-height: 1.4; color: #4A443E; }

/* Falle für Bots: aus dem Bild, aber nicht display:none (manche Bots überspringen versteckte Felder) */
.ktf__falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ktf__pflicht { margin-top: 1.1rem; font-size: var(--fs-klein); }

/* Spamschutz-Anzeige */
.ktf__schutz {
  display: flex; align-items: center; gap: .7rem; margin-top: 1rem;
  padding: .7rem .9rem; border: 2px dashed rgb(21 18 15 / .25); border-radius: var(--rund);
  font-size: var(--fs-klein); line-height: 1.35;
}
.ktf__schutz-zeichen {
  flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid rgb(21 18 15 / .55);
  display: grid; place-items: center;
}
.ktf__schutz[data-zustand="laeuft"] .ktf__schutz-zeichen { border-color: rgb(21 18 15 / .2); border-top-color: var(--schwarz); }
@media (prefers-reduced-motion: no-preference) {
  .ktf__schutz[data-zustand="laeuft"] .ktf__schutz-zeichen { animation: kt-dreh .8s linear infinite; }
  @keyframes kt-dreh { to { rotate: 360deg; } }
}
.ktf__schutz[data-zustand="fertig"] { border-style: solid; border-color: var(--tuerkis); }
.ktf__schutz[data-zustand="fertig"] .ktf__schutz-zeichen { background: var(--tuerkis); border-color: var(--tuerkis); }
.ktf__schutz[data-zustand="fertig"] .ktf__schutz-zeichen::after {
  content: ""; width: .6rem; height: .33rem; border: solid var(--weiss); border-width: 0 0 2.5px 2.5px; rotate: -45deg; translate: 0 -1px;
}
.ktf__schutz[data-zustand="fehler"] { border-style: solid; border-color: var(--rot); }
.ktf__schutz[data-zustand="fehler"] .ktf__schutz-zeichen { background: var(--rot); border-color: var(--rot); }
.ktf__schutz[data-zustand="fehler"] .ktf__schutz-zeichen::after { content: "!"; color: var(--weiss); font-weight: 800; font-size: .85rem; line-height: 1; }

.ktf__absenden { display: grid; gap: .8rem; justify-items: start; margin-top: 1.25rem; }
.ktf__absenden .knopf[aria-busy="true"] { opacity: .7; cursor: progress; }
.ktf__datenschutz { font-size: var(--fs-klein); max-width: 34rem; }
.ktf__datenschutz a { font-weight: 700; }
@media (min-width: 40em) {
  .ktf__absenden { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.25rem; }
}
@media (max-width: 39.9375em) {
  .ktf__absenden .knopf { width: 100%; }
}

.ktf__hinweis {
  margin-top: 1.1rem; padding: .8rem 1rem; border-left: 5px solid var(--rot); background: rgb(158 49 34 / .08);
  font-size: var(--fs-klein); font-weight: 600;
}
.ktf__hinweis a { color: inherit; }
.ktf__hinweis[hidden] { display: none; }

/* ---------- 2. Persönlicher Kontakt, Ablauf, Einsatzgebiet ---------- */
.kti { background: var(--creme); }
.kti__raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.75rem, 10vw, 3.5rem); }
.kti__block { --f: var(--gelb); display: grid; gap: .8rem; align-content: start; justify-items: start; padding-top: 1.2rem; border-top: 6px solid var(--f); }
.kti__titel { font-family: var(--schrift-plakat); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h4); line-height: 1.05; overflow-wrap: anywhere; }
.kti__block p { max-width: 34rem; }
@media (min-width: 56.25em) {
  .kti__raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); }
}

.kti__person { grid-template-columns: minmax(0, 1fr); }
.kti__name { font-weight: 800; font-size: var(--fs-lead); line-height: 1.2; }
.kti__kontakt { display: grid; gap: .45rem; }
.kti__kontakt a {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; text-decoration-color: var(--rot);
}
@media (hover: hover) and (pointer: fine) { .kti__kontakt a:hover { text-decoration-color: var(--schwarz); } }
.kti__kontakt svg { flex: none; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Danke-Seite ---------- */
.ktd__innen {
  display: grid; gap: clamp(1rem, 2vw, 1.4rem); justify-items: start; align-content: center;
  min-height: min(calc(100svh - var(--kopf-h) - 14px), 40rem); padding-block: clamp(3rem, 8vw, 6rem);
}
.ktd__titel .schrift { --spalt: var(--gelb); }
.ktd__knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
