/* ==========================================================================
   Huisman – Anfrage-Assistent (anfrage.html, Skript: anfrage.js)
   Fokus-Seite: kein Menü, kein Seitenfuß (Rahmen in site.css). Eine große Karte in der Mitte,
   „Ihre Angaben“ an ihrem Fuß, Ansprechpartner und Vertrauen als schmale Leiste darunter.
   ========================================================================== */
.af-seitenkopf { padding-block: clamp(22px, 3.6vw, 52px) clamp(24px, 3.6vw, 48px); }
.af-buehne { max-width: 1180px; }
.af-intro { max-width: 880px; margin: 0 auto clamp(18px, 2.6vw, 32px); text-align: center; }
.af-titel { margin: 10px 0 8px; font: 900 clamp(2.2rem, 1.25rem + 3.1vw, 4.1rem)/.92 var(--font-display); text-transform: uppercase; }
.af-titel .u { position: relative; display: inline-block; color: var(--green); }
.af-intro .lead { margin-inline: auto; }
@media (max-width: 560px) {
  .af-intro .eyebrow { font-size: .7rem; letter-spacing: .06em; }
  .af-intro .eyebrow::before { display: none; }   /* mittig und einzeilig – der Strich davor stünde schief */
}

/* ---------- Formular-Karte ---------- */
.af { padding: clamp(18px, 3.8vw, 54px); background: #fff; border: 1px solid var(--line); border-radius: clamp(20px, 2.4vw, 32px); box-shadow: var(--shadow-2); }
.af-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "zurueck stand" "balken balken"; align-items: center; row-gap: 14px; margin-bottom: clamp(20px, 3.2vw, 38px); }
.af-kopf[hidden] { display: none; }
.af-fortschritt { grid-area: balken; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.af-fortschritt i { height: 8px; border-radius: 99px; background: var(--line); transition: background .35s; }
.af-fortschritt i.an { background: var(--green); }
.af-stand { grid-area: stand; font: 500 .82rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.af-zurueck { grid-area: zurueck; margin-right: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font: 600 .95rem/1 var(--font-body); color: var(--ink); cursor: pointer; }
.af-zurueck:hover { border-color: var(--green); color: var(--green); }
.af-zurueck svg { width: 1em; height: 1em; transform: rotate(180deg); }

.af-schritt { min-width: 0; margin: 0; padding: 0; border: 0; }
.af-frage { margin-bottom: 10px; padding: 0; font: 900 clamp(2rem, 1.15rem + 2.9vw, 3.8rem)/.95 var(--font-display); text-transform: uppercase; text-wrap: balance; outline: none; }
.af-hinweis { max-width: 62ch; margin-bottom: clamp(18px, 2.6vw, 30px); font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
@media (max-width: 560px) { .af-hinweis { font-size: 1rem; } }
.af-rein { animation: af-rein .38s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes af-rein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Foto-Kacheln (Aufgabe, Trägerfahrzeug) ---------- */
.af-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 18px); }
@media (max-width: 760px) { .af-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.af-kachel { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1.5px solid var(--line-2); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.af-kachel:hover { border-color: var(--green); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.af-kachel input, .af-chip input, .af-maschine input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.af-bild { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dew); }
.af-bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.af-kachel:hover .af-bild img { transform: scale(1.05); }
.af-symbol { display: grid; place-items: center; height: 100%; color: var(--green); background: repeating-linear-gradient(135deg, rgba(11, 122, 62, .05) 0 10px, transparent 10px 20px), var(--dew); }
.af-symbol svg { width: 52px; height: 52px; }
.af-text { display: grid; align-content: start; gap: 3px; padding: 13px 15px 15px; }
.af-text b { font: 700 clamp(1rem, .94rem + .3vw, 1.15rem)/1.25 var(--font-body); }
.af-text small { font-size: .88rem; color: var(--ink-3); }
.af-haken { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(15, 42, 27, .3); transform: scale(0); transition: transform .28s cubic-bezier(.3, 1.6, .6, 1); }
.af-haken svg { width: 16px; height: 16px; }
.af-kachel.gewaehlt { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 122, 62, .2); }
.af-kachel.gewaehlt .af-haken { transform: scale(1); }
.af-kachel input:focus-visible ~ .af-bild { outline: 3px solid var(--yellow); outline-offset: -3px; }
/* Quer: eine Zeile über die ganze Breite, Symbol links (z. B. „Noch offen“ beim Trägerfahrzeug) */
.af-kachel-quer { grid-column: 1 / -1; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: none; }
.af-kachel-quer .af-bild { aspect-ratio: auto; min-height: 66px; }
.af-kachel-quer .af-symbol svg { width: 30px; height: 30px; }
.af-kachel-quer .af-text { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 2px 10px; padding: 14px 56px 14px 18px; }
.af-kachel-quer .af-haken { top: 50%; margin-top: -16px; right: 14px; }
.af-kachel-quer:hover { transform: none; }

/* ---------- Auswahl-Chips (Graben, Vorhaben) ---------- */
.af-gruppe { margin-bottom: 20px; }
.af-gruppe-titel { display: block; margin-bottom: 10px; font: 500 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.af-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.af-chip { position: relative; cursor: pointer; }
.af-chip span { display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 11px 19px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 1.02rem; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.af-chip span svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.af-chip:hover span { border-color: var(--green); }
.af-chip.gewaehlt span { border-color: var(--green); background: var(--green); color: #fff; }
.af-chip.gewaehlt span svg { color: #fff; }
.af-chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.af-chips-gross { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.af-chips-gross .af-chip span { width: 100%; min-height: 66px; padding-inline: 20px; border-radius: 16px; font-size: 1.06rem; }
.af-chips-gross .af-chip span svg { width: 24px; height: 24px; }

/* ---------- Grabenquerschnitt ---------- */
.af-graben-raster { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
@media (max-width: 760px) { .af-graben-raster { grid-template-columns: minmax(0, 1fr); } .af-graben { max-width: 400px; } }
.af-graben { padding: 10px; border-radius: 18px; background: var(--dew); }
.af-graben svg { display: block; width: 100%; height: auto; }
.af-g-luft { fill: #fff; }
.af-g-boden { fill: #A98457; transition: fill .35s; }
.af-g-gras { fill: #6FB24F; }
.af-g-steine circle { fill: #6E5134; opacity: 0; transition: opacity .35s; }
.af-g-schnitt { fill: #F4EDDC; stroke: var(--ink); stroke-width: 1.5; }
.af-g-mass { stroke: var(--green); stroke-width: 2; }
.af-g-text { font: 600 13px/1 var(--font-mono); fill: var(--ink); }
.af-unklar .af-g-schnitt { stroke-dasharray: 5 4; }
[data-boden="sandig"] .af-g-boden { fill: #D7BC85; }
[data-boden="lehmig"] .af-g-boden { fill: #7A5A3A; }
[data-boden="steinig"] .af-g-boden { fill: #A98457; }
[data-boden="steinig"] .af-g-steine circle { opacity: 1; }

.af-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(20px, 2.6vw, 30px); }
.af-aktionen[hidden] { display: none; }
.af-aktionen .btn { font-size: 1.05rem; }
.af-leise { padding: 12px 0; border: 0; background: none; font: 600 1rem/1 var(--font-body); color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.af-leise:hover { color: var(--green); }

/* ---------- Letzter Schritt: links die Empfehlung (Querkarten), rechts gleich das Kontaktfeld ---------- */
.af-abschluss { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .af-abschluss { grid-template-columns: minmax(0, 1fr); } }
.af-empfehlung { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 561px) and (max-width: 900px) { .af-empfehlung { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.af-tipp { margin-top: 16px; padding: 2px 0 2px 14px; border-left: 3px solid var(--yellow); font-size: .94rem; line-height: 1.45; color: var(--ink-2); }
.af-maschine-karte { display: grid; align-content: start; gap: 8px; }
.af-maschine { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr); grid-template-areas: "bild text" "merken merken"; overflow: hidden; border: 1.5px solid var(--line-2); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.af-maschine:hover { border-color: var(--green); }
.af-maschine-bild { grid-area: bild; position: relative; display: block; min-height: 118px; overflow: hidden; background: var(--dew); }
.af-maschine-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.af-maschine-bild .af-symbol svg { width: 40px; height: 40px; }
.af-maschine .af-haken { top: 8px; right: auto; left: 8px; width: 28px; height: 28px; }
.af-maschine-text { grid-area: text; display: grid; justify-items: start; align-content: start; gap: 5px; padding: 12px 14px 12px; }
.af-maschine-text b { font: 800 1.45rem/1 var(--font-display); text-transform: uppercase; }
.af-maschine-text small { font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.af-maschine-text .m-data { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.af-maschine-text .chip { padding: 5px 8px; font-size: .74rem; white-space: normal; text-align: left; line-height: 1.2; }
@media (max-width: 560px) {
  .af-maschine { grid-template-columns: 96px minmax(0, 1fr); }
  .af-maschine-text { padding: 11px 12px; }
  .af-maschine-text b { font-size: 1.3rem; }
}
.af-merken { grid-area: merken; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.af-merken::before { content: ''; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; background: #fff center / 12px no-repeat; }
.af-maschine.gewaehlt { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 122, 62, .2); }
.af-maschine.gewaehlt .af-haken { transform: scale(1); }
.af-maschine.gewaehlt .af-merken { color: var(--green); }
.af-maschine.gewaehlt .af-merken::before { border-color: var(--green); background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.af-maschine input:focus-visible ~ .af-maschine-bild { outline: 3px solid var(--yellow); outline-offset: -3px; }
.af-maschine-karte .link-arrow { justify-self: start; font-size: .92rem; }
.af-andere { display: grid; align-content: center; justify-items: start; gap: 10px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 18px; color: var(--ink-2); }

/* ---------- Kontakt ---------- */
.af-kontakt { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 32px); border: 1px solid var(--dew-2); border-radius: 22px; background: var(--dew); }
.af-kontakt-titel { font: 800 clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem)/1.02 var(--font-display); text-transform: uppercase; }
.af-kontakt .field { align-content: start; }   /* Felder nebeneinander gleich hoch, auch wenn eines eine Hinweiszeile hat */
.af-kontakt .field label { font-size: .92rem; }
.af-kontakt .field input, .af-kontakt .field select, .af-kontakt .field textarea { padding: 15px 16px; font-size: 1.06rem; border-radius: 12px; }
.af-kontakt .check { font-size: .95rem; }
.af-kontakt .check input { width: 20px; height: 20px; margin-top: 1px; }
.af-plz { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; }
.af-erkannt { display: block; min-height: 1.2em; font-size: .86rem; font-weight: 600; color: var(--green); }
.af-senden { justify-self: start; padding-top: .95em; padding-bottom: .95em; font-size: 1.14rem; }
.af-sendet { opacity: .65; pointer-events: none; }
@media (max-width: 560px) { .af-senden { justify-self: stretch; justify-content: space-between; } }
.af-klein { font-size: .88rem; color: var(--ink-3); }

/* ---------- Ihre Angaben (Fuß der Karte, ab Schritt 2) ---------- */
.af-angaben { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 16px; margin-top: clamp(24px, 3.2vw, 40px); padding-top: 18px; border-top: 1px solid var(--line); }
.af-angaben[hidden] { display: none; }
@media (max-width: 560px) { .af-angaben { grid-template-columns: minmax(0, 1fr); } }
.af-angaben-titel { font: 500 .76rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.af-angaben dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.af-angaben dl > div { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 8px 6px 14px; border: 1px solid var(--dew-2); border-radius: 19px; background: var(--dew); font-size: .92rem; transition: border-color .2s; }
.af-angaben dl > div:hover { border-color: var(--green); }
.af-angaben dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.af-angaben dd { margin: 0; font-weight: 600; }
.af-aendern { padding: 4px 6px; border: 0; background: none; font: 600 .84rem/1 var(--font-body); color: var(--green); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.af-aendern::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }   /* ganze Zeile anklickbar */

/* ---------- Danke ---------- */
.af-fertig { display: grid; justify-items: start; gap: 18px; outline: none; }
.af-fertig-haken { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; animation: af-pop .55s cubic-bezier(.3, 1.6, .6, 1) both; }
.af-fertig-haken svg { width: 36px; height: 36px; }
.af-fertig h2 { font: 900 clamp(2.2rem, 1.3rem + 3vw, 4rem)/.95 var(--font-display); text-transform: uppercase; }
.af-weiter-liste { display: grid; gap: 14px; margin: 4px 0 6px; counter-reset: af; }
.af-weiter-liste li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; counter-increment: af; }
.af-weiter-liste li::before { content: counter(af); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dew); color: var(--green); font: 800 1.2rem/1 var(--font-display); }
.af-weiter-liste b { font-weight: 700; }
.af-weiter-liste span { font-size: .95rem; color: var(--ink-2); }
@keyframes af-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Ansprechpartner und Vertrauen (unter der Karte) ---------- */
.af-vertrauen-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 48px; margin-top: clamp(18px, 2.6vw, 30px); padding-inline: clamp(4px, 1.8vw, 24px); }
.af-person { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.af-person .avatar { width: 52px; height: 52px; font-size: 1.05rem; }
.af-person-text { display: grid; gap: 2px; }
.af-person-text b { font-weight: 700; }
.af-person-text span { font-size: .9rem; color: var(--ink-2); }
.af-person-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; transition: border-color .2s; }
.af-person-tel:hover { border-color: var(--green); }
.af-person-tel svg { width: 16px; height: 16px; color: var(--green); }
.af-vertrauen { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; }
.af-vertrauen li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-2); }
.af-vertrauen svg { flex: none; width: 18px; height: 18px; color: var(--green); }
@media (max-width: 760px) {
  .af-vertrauen-leiste { flex-direction: column; align-items: flex-start; }
  .af-person { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
  .af-person-tel { grid-column: 2; justify-self: start; }
  .af-vertrauen { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .af-rein, .af-fertig-haken { animation: none; }
  .af-kachel, .af-bild img, .af-haken, .af-fortschritt i { transition: none; }
}
