/* 16 · CTA & Kontaktformular (Export s15.png, 1440 × 1096). Fotopanel 1280 × 896 ab y 100 (r40), Text ab x 120,
   Formularkarte 612 × 816 bei x 708 / y 140 (je 40 vom Panelrand, r36, Innenabstand 32). Zeilen: Label 20 + 6 + Feld 44,
   Zeilenabstand 24; Nachricht 130 hoch; Einwilligung +18; Knopf 66 hoch +16.
   Panel und Karte sind Geschwister (nicht verschachtelt), damit ihre Einstiege sich nicht addieren. */
.s16 { padding: 100px 0; }

.s16__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 612px);
  column-gap: 40px;
  align-items: start;
  min-height: 896px;
  padding: 40px;
}

/* ---------- Fotopanel ---------- */
.s16__panel {
  position: absolute; inset: 0;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-primary-950);
}
.s16__photo { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }

/* ---------- Text links ---------- */
.s16__copy { position: relative; padding-top: 24px; color: var(--text-on-dark); }
.s16__title { color: var(--text-on-dark); }

.s16__ticks { list-style: none; padding: 0; margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.s16__ticks li { display: flex; align-items: center; gap: 10px; }
.s16__tick { flex: none; width: 20px; height: 20px; }
.s16__tick circle { fill: var(--color-primary-300); }
.s16__tick path { fill: none; stroke: var(--color-primary-900); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.s16__talk { margin-top: 39px; color: var(--color-primary-200); width: fit-content; }
.s16__phone { display: inline-block; margin-top: 4px; color: var(--text-on-dark); white-space: nowrap; border-radius: 8px; }
.s16__phone:hover { color: var(--color-primary-100); }
.s16__phone:focus-visible { outline-color: var(--color-primary-300); }

/* ---------- Formularkarte ---------- */
.s16__card {
  position: relative;
  padding: 32px;
  border-radius: 36px;
  background: var(--surface);
  color: var(--text-primary);
}

.s16__row { margin-top: 24px; }
.s16__row:first-child { margin-top: 0; }
.s16__row--consent { margin-top: 18px; }
.s16__row--submit { margin-top: 16px; }
.s16__row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }

.s16__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s16__label { color: var(--color-neutral-700); }
.s16__label--msg { color: var(--text-secondary); }
.s16__req { margin-left: 3px; color: var(--color-warning-600); }

.s16__input {
  display: block;
  width: 100%; height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-neutral-300);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.s16__input::placeholder { color: var(--color-neutral-400); opacity: 1; }
.s16__input:hover { border-color: var(--color-neutral-400); }
.s16__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--color-primary-200); }
.s16__textarea { height: 130px; padding: 10px 14px; resize: vertical; min-height: 96px; }

.s16__select { position: relative; }
.s16__select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.s16__select select:invalid { color: var(--color-neutral-400); }
.s16__select option { color: var(--text-primary); }
.s16__chev {
  position: absolute; top: 10px; right: 14px; width: 24px; height: 24px; pointer-events: none;
  fill: none; stroke: var(--color-neutral-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Einwilligung */
.s16__consent { display: flex; align-items: center; gap: 12px; }
.s16__checkbox {
  -webkit-appearance: none; appearance: none;
  flex: none; position: relative;
  width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--brand);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.15s;
}
.s16__checkbox:checked { background: var(--brand); }
.s16__checkbox:checked::after {
  content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 5px; height: 10px;
  border: solid var(--text-on-dark); border-width: 0 2px 2px 0; rotate: 45deg;
}
.s16__checkbox:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.s16__consent-label { color: var(--text-secondary); cursor: pointer; }
.s16__consent-label a { text-decoration: underline; text-underline-offset: 2px; }
.s16__consent-label a:hover { color: var(--brand); }

/* Fehler */
.s16__err { margin-top: 4px; color: var(--color-warning-800); }
.s16__err:empty { display: none; }
.s16__input[aria-invalid="true"] { border-color: var(--color-warning-600); }
.s16__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--color-warning-100); }
.s16__checkbox[aria-invalid="true"] { border-color: var(--color-warning-600); }

/* Knopf + Status */
/* Knopf = Button primary · light · lg mit Pfeil (css/components/button.css); hier nur Breite + Sendezustand */
.s16__submit { width: 100%; white-space: normal; text-align: center; }
.s16__submit[disabled] { cursor: progress; opacity: 0.75; pointer-events: auto; }
.s16__status { margin-top: 12px; color: var(--color-warning-800); text-align: center; }
.s16__status:empty { display: none; }
.s16__captcha:not(:empty) { margin-bottom: 12px; display: flex; justify-content: center; }

.s16__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Erfolg */
.s16__done { min-height: 752px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 0 24px; }
.s16__done[hidden] { display: none; }
.s16__done:focus { outline: none; }
.s16__done-icon { width: 56px; height: 56px; }
.s16__done-icon circle { fill: var(--color-primary-100); }
.s16__done-icon path { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s16__done-title { color: var(--text-primary); }
.s16__done-text { max-width: 420px; color: var(--text-tertiary); }

/* Motion-Startzustände eigener Elemente (16-contact.js): Karte/Telefon mit Blur, Zeilen nur Versatz */
html.m-einflug .s16__card[data-m]:not(.m-done) { translate: 0 40px; scale: 0.97; filter: blur(6px); }
html.m-einflug .s16__phone[data-m]:not(.m-done) { translate: 0 24px; filter: blur(6px); }
html.m-einflug .s16__ticks li[data-m]:not(.m-done) { translate: 0 16px; }
html.m-einflug .s16 [data-s16-row][data-m]:not(.m-done) { translate: 0 14px; }

/* ---------- 1024–1439: fließend ---------- */
@media (max-width: 1279px) {
  .s16__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); column-gap: 32px; padding: 32px; }
}

/* ---------- < 1024: gestapelt, Karte unter dem Text ---------- */
@media (max-width: 1023px) {
  .s16 { padding: 80px 0; }
  .s16__stage { grid-template-columns: minmax(0, 1fr); row-gap: 40px; min-height: 0; padding: 48px 32px 32px; }
  .s16__copy { padding-top: 0; }
  .s16__card { max-width: 640px; width: 100%; justify-self: center; }
  .s16__done { min-height: 480px; }
}

@media (max-width: 767px) {
  .s16 { padding: 72px 0; }
  .s16__panel { border-radius: var(--radius-card); }
  .s16__photo { object-position: 30% 30%; }
  .s16__stage { padding: 32px 12px 12px; row-gap: 32px; }
  .s16__copy { padding: 0 8px; }
  .s16__ticks { margin-top: 24px; gap: 10px; }
  .s16__ticks li { align-items: flex-start; }
  .s16__tick { margin-top: 4px; }
  .s16__talk { margin-top: 28px; }
  .s16__card { padding: 24px 16px; border-radius: var(--radius-card); }
  .s16__row--2 { grid-template-columns: minmax(0, 1fr); }
  .s16__done { min-height: 360px; padding: 0 8px; }
}
