/* Anfrage: Ankauf in drei Schritten, Foto-Vorschau, Ankaufzettel, Vertrauensblock */
.anfrage { --af-grund: #14251C; --af-feld: #0E1B14; --af-linie: rgba(216, 184, 120, .24); --af-fehler: #F2A48E; }
.anfrage-raster { scroll-margin-top: 20px; }
.anfrage .kopfzeile { margin-bottom: var(--r4); }

/* ---------- Karte ---------- */
.af-karte { position: relative; scroll-margin-top: 10px; background: var(--af-grund); border: 1px solid var(--af-linie); border-radius: var(--ecke);
  padding: clamp(18px, 3.2vw, 40px); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .75); container-type: inline-size; }
.af-karte::before { content: ""; position: absolute; left: 8%; right: 8%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-hell), transparent); opacity: .7; }
.js .af-karte { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--aus-expo), transform .9s var(--aus-expo); }
.js .af-karte.da { opacity: 1; transform: none; }

/* ---------- Fortschritt ---------- */
.af-fortschritt { --af-stand: 0; position: relative; list-style: none; margin: 0 0 clamp(22px, 3.4vw, 36px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.af-fortschritt::before, .af-fortschritt::after { content: ""; position: absolute; top: 16px; left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: rgba(216, 184, 120, .2); }
.af-fortschritt::after { background: var(--gold-hell); transform-origin: left center; transform: scaleX(var(--af-stand)); transition: transform .7s var(--aus-expo); }
.af-fortschritt li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.af-punkt { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--af-grund); border: 1.5px solid rgba(216, 184, 120, .4);
  color: var(--hell-2); font-family: var(--antiqua); font-size: 1.05rem; line-height: 1; transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s; }
.af-punkt .ic { display: none; width: 17px; height: 17px; stroke-width: 2.4; }
.af-pname { font-size: .74rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--hell-3); transition: color .3s; }
.af-fortschritt li.jetzt .af-punkt { border-color: var(--gold-hell); color: var(--gold-hell); box-shadow: 0 0 0 5px rgba(216, 184, 120, .13); }
.af-fortschritt li.fertig .af-punkt { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--stein); }
.af-fortschritt li.fertig .af-punkt > span { display: none; }
.af-fortschritt li.fertig .af-punkt .ic { display: block; }
.af-fortschritt li.jetzt .af-pname, .af-fortschritt li.fertig .af-pname { color: var(--hell); }

/* ---------- Schritte ---------- */
.af-schritt h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.12; color: var(--hell); }
.af-schritt h3:focus, .af-schritt h3:focus-visible { outline: none; }
.af-hilfe { margin-top: 10px; color: var(--hell-2); font-size: 1rem; line-height: 1.5; max-width: 36em; }
.af-tipp { display: flex; gap: 10px; align-items: flex-start; }
.af-tipp .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--gold-hell); }

/* Kacheln (Mehrfachauswahl) */
.af-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.af-kachel { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.af-kachel.breit { grid-column: 1 / -1; }
@container (min-width: 430px) { .af-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 600px) { .af-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .af-kachel.breit { grid-column: span 2; } }
.af-kachel input, .af-chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.af-kachel-innen { position: relative; height: 100%; min-height: 152px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 18px 10px 14px; text-align: center; background: rgba(255, 255, 255, .03); border: 1px solid rgba(216, 184, 120, .24); border-radius: var(--ecke);
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.af-kachel-innen::before { content: ""; position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(216, 184, 120, .45); }
.af-kachel-bild { position: relative; flex: 1; width: 100%; min-height: 74px; display: flex; align-items: flex-end; justify-content: center; }
.af-kachel-bild::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -6px; height: 12px; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); }
.af-kachel-bild img, .af-kachel-bild svg { position: relative; z-index: 1; width: auto; height: auto; max-width: 86%; max-height: 82px; transition: transform .5s var(--aus-expo); }
.af-kachel-bild .af-zahn { width: 124px; max-width: 92%; max-height: 80px; }
.af-kachel-bild.gruppe img { max-width: 34%; max-height: 74px; margin-inline: -4px; }
.af-kachel-bild.gruppe img:nth-child(2) { max-height: 80px; z-index: 2; }
.af-kachel-name { min-height: 2.5em; display: flex; align-items: center; font-weight: 750; font-size: .98rem; line-height: 1.25; color: var(--hell); }
.af-kachel-haken { position: absolute; z-index: 2; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-hell); color: var(--stein);
  opacity: 0; transform: scale(.5); transition: opacity .2s, transform .35s var(--aus-expo); }
.af-kachel-haken .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.af-kachel input:checked + .af-kachel-innen { background: rgba(216, 184, 120, .11); border-color: var(--gold-hell); box-shadow: inset 0 0 0 1px var(--gold-hell); }
.af-kachel input:checked + .af-kachel-innen .af-kachel-haken { opacity: 1; transform: none; }
.af-kachel input:checked + .af-kachel-innen img, .af-kachel input:checked + .af-kachel-innen svg.af-zahn { transform: translateY(-4px) scale(1.05); }
.af-kachel input:focus-visible + .af-kachel-innen { outline: 2px solid var(--gold-hell); outline-offset: 3px; }
@media (hover: hover) { .af-kachel:hover .af-kachel-innen { border-color: rgba(216, 184, 120, .55); } }

/* Antwort am Tresen */
.af-antwort { display: flex; gap: 12px; margin-top: 18px; font-family: var(--antiqua); font-size: 1.1rem; line-height: 1.45; color: var(--hell); }
.af-antwort::before { content: ""; flex: none; width: 22px; height: 1px; margin-top: .78em; background: var(--gold-hell); }
.af-antwort:empty { margin: 0; }
.af-antwort:empty::before { display: none; }
.af-antwort b { font-weight: 400; font-style: italic; color: var(--gold-hell); }
.af-menge-antwort { margin-top: 14px; }

.af-stück { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding: 4px 4px 4px 14px; border: 1px dashed rgba(216, 184, 120, .45); border-radius: var(--ecke); color: var(--hell-2); font-size: .95rem; }
.af-stück b { color: var(--hell); font-weight: 700; }
.af-stück-weg { flex: none; width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--hell-2); border-radius: var(--ecke); }
.af-stück-weg .ic { width: 18px; height: 18px; }

/* Gruppen und Chips */
.af-gruppe { border: 0; margin: 26px 0 0; padding: 0; min-width: 0; }
.af-gruppe legend { padding: 0; margin-bottom: 12px; font-weight: 750; font-size: 1.02rem; color: var(--hell); }
.af-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.af-chip { position: relative; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.af-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(216, 184, 120, .38);
  color: var(--hell); font-weight: 650; font-size: .98rem; transition: background-color .2s, border-color .2s, color .2s; }
.af-chip .ic { width: 18px; height: 18px; color: var(--gold-hell); transition: color .2s; }
.af-chip input:checked + span { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--stein); }
.af-chip input:checked + span .ic { color: var(--stein); }
.af-chip input:focus-visible + span { outline: 2px solid var(--gold-hell); outline-offset: 3px; }
@media (hover: hover) { .af-chip:hover span { border-color: rgba(216, 184, 120, .7); } }

/* Navigation und Fehler */
.af-nav { display: flex; align-items: center; gap: 12px; margin-top: clamp(24px, 3vw, 34px); padding-top: clamp(18px, 2.4vw, 24px); border-top: 1px solid rgba(216, 184, 120, .14); }
.af-nav .af-weiter { margin-left: auto; }
.af-zurück { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 6px; border: 0; background: none; color: var(--hell-2); font-weight: 700; cursor: pointer; border-radius: var(--ecke); -webkit-tap-highlight-color: transparent; }
.af-zurück .ic { width: 20px; height: 20px; }
@media (hover: hover) { .af-zurück:hover { color: var(--hell); } }
.af-fehler { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--af-fehler); font-weight: 650; line-height: 1.45; }
.af-fehler:empty { margin: 0; }
.af-fehler .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 560px) {
  .af-nav { flex-wrap: wrap; gap: 6px; }
  .af-nav .af-weiter { order: -1; flex: 1 1 100%; margin-left: 0; padding-inline: 16px; }
  .af-nav .af-zurück { margin-inline: auto; padding: 0 16px 0 8px; }
}

/* ---------- Fotos ---------- */
.af-foto-feld { margin-top: 22px; border-radius: var(--ecke); transition: background-color .2s, box-shadow .2s; }
.af-foto-feld.drüber { background: rgba(216, 184, 120, .08); box-shadow: 0 0 0 2px var(--gold-hell); }
.af-foto-wahl { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.af-foto-wahl .knopf { flex: 1 1 180px; }
.af-maus { display: none; }
@media (hover: hover) and (pointer: fine) {
  .af-kamera { display: none; }
  .af-foto-wahl .knopf { flex: 0 1 auto; }
  .af-finger { display: none; }
  .af-maus { display: inline; }
}
.af-fotos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 560px) { .af-fotos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.af-foto { position: relative; aspect-ratio: 1; border-radius: var(--ecke); overflow: hidden; background: rgba(255, 255, 255, .05); }
.af-foto img { width: 100%; height: 100%; object-fit: cover; }
.af-foto.lädt { animation: af-puls 1s ease-in-out infinite alternate; }
@keyframes af-puls { from { opacity: .35; } to { opacity: .9; } }
.af-foto-weg { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; color: var(--hell); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.af-foto-weg::before { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(12, 14, 12, .8); box-shadow: 0 0 0 1px rgba(237, 230, 216, .25); }
.af-foto-weg .ic { position: relative; width: 16px; height: 16px; stroke-width: 2.4; }
.af-foto-weg:focus-visible { outline-offset: -4px; }
.af-foto.leer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: transparent; border: 1.5px dashed rgba(216, 184, 120, .32);
  color: var(--hell-2); font-size: .84rem; font-weight: 650; line-height: 1.2; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.af-foto.leer .ic { width: 24px; height: 24px; color: var(--gold-hell); }
.af-punze { display: inline-grid; place-items: center; height: 24px; padding: 0 9px; border: 1.5px solid var(--gold-hell); border-radius: 50%; color: var(--gold-hell); font-family: var(--antiqua); font-size: .86rem; letter-spacing: .04em; }
.af-foto-zahl { margin-top: 10px; color: var(--hell-3); font-size: .88rem; }
.af-foto-zahl:empty { display: none; }
.af-privat { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--hell-3); font-size: .9rem; line-height: 1.45; }
.af-privat .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-hell); }

/* ---------- Kontakt ---------- */
.af-felder { display: grid; gap: 18px; margin-top: 22px; }
.af-paar { display: grid; gap: 18px; }
@container (min-width: 560px) { .af-paar { grid-template-columns: 1fr 1fr; column-gap: 16px; } .af-kontakt-fehler { grid-column: 1 / -1; } }
.af-feld label { display: block; margin-bottom: 7px; font-weight: 750; font-size: .98rem; color: var(--hell); }
.af-frei { margin-left: 6px; font-weight: 600; font-size: .86rem; color: var(--hell-3); }
.af-feld input, .af-feld textarea { display: block; width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1.0625rem; line-height: 1.4; color: var(--hell);
  background: var(--af-feld); border: 1px solid rgba(216, 184, 120, .34); border-radius: var(--ecke); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s; }
.af-feld textarea { min-height: 104px; resize: vertical; }
.af-feld input::placeholder, .af-feld textarea::placeholder { color: var(--hell-3); opacity: 1; }
.af-feld input:focus, .af-feld textarea:focus { outline: none; border-color: var(--gold-hell); box-shadow: 0 0 0 3px rgba(216, 184, 120, .22); }
.af-feld input[aria-invalid="true"] { border-color: var(--af-fehler); }
.af-feld input:-webkit-autofill { -webkit-text-fill-color: var(--hell); box-shadow: 0 0 0 100px var(--af-feld) inset; caret-color: var(--hell); }
.af-feld-fehler { margin-top: 7px; color: var(--af-fehler); font-size: .94rem; font-weight: 600; line-height: 1.4; }
.af-feld-fehler:empty { display: none; }
.af-paar .af-kontakt-fehler { margin-top: -6px; }
.af-wege { margin-top: 4px; }
.af-wege .af-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.af-wege .af-chip { display: block; }
.af-wege .af-chip span { width: 100%; min-height: 66px; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 6px; border-radius: var(--ecke); font-size: .95rem; text-align: center; }
.af-wege .af-chip .ic { width: 20px; height: 20px; }
.af-datenschutz { margin-top: 20px; color: var(--hell-3); font-size: .9rem; line-height: 1.5; }
.af-datenschutz a { color: var(--gold-hell); font-weight: 650; text-decoration: underline; text-decoration-color: rgba(216, 184, 120, .5); text-underline-offset: 3px; padding-block: 13px; }

/* ---------- Ankaufzettel ---------- */
.af-zettel-hülle { margin-top: 22px; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .45)); }
.af-zettel { position: relative; padding: clamp(24px, 3.4vw, 36px) clamp(18px, 3.2vw, 36px) clamp(22px, 3vw, 32px); background: var(--papier); color: var(--tinte); color-scheme: light;
  -webkit-mask: radial-gradient(circle at 8px 0, transparent 5px, #000 5.5px) 0 0 / 16px 10px repeat-x, linear-gradient(#000, #000) 0 10px / 100% calc(100% - 20px) no-repeat, radial-gradient(circle at 8px 10px, transparent 5px, #000 5.5px) 0 100% / 16px 10px repeat-x;
  mask: radial-gradient(circle at 8px 0, transparent 5px, #000 5.5px) 0 0 / 16px 10px repeat-x, linear-gradient(#000, #000) 0 10px / 100% calc(100% - 20px) no-repeat, radial-gradient(circle at 8px 10px, transparent 5px, #000 5.5px) 0 100% / 16px 10px repeat-x; }
.af-zettel-kopf { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 3px double rgba(122, 90, 46, .6); }
.af-zettel-marke { grid-row: 1 / span 3; width: 40px; height: 42px; background: var(--gold-tinte);
  -webkit-mask: url("../bilder/marke.svg") center / contain no-repeat; mask: url("../bilder/marke.svg") center / contain no-repeat; }
.af-zettel-haus { font-weight: 800; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-tinte); }
.af-zettel-titel { font-family: var(--antiqua); font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.15; color: var(--tinte); }
.af-zettel-datum { margin-top: 2px; font-size: .9rem; color: var(--tinte-2); }
.af-zettel-liste { margin: 4px 0 0; }
.af-zettel-liste > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px dotted rgba(94, 86, 74, .5); }
.af-zettel-liste dt { padding-top: .32em; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-2); }
.af-zettel-liste dd { margin: 0; font-family: var(--antiqua); font-size: 1.13rem; line-height: 1.38; color: var(--tinte); overflow-wrap: anywhere; }
.af-zettel-bilder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.af-zettel-bilder img { width: 46px; height: 46px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(94, 86, 74, .3); }
.af-zettel-fuss { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-top: 16px; font-size: .9rem; line-height: 1.5; color: var(--tinte-2); }
.af-zettel-fuss-text { flex: 1 1 240px; display: grid; gap: 4px; }
.af-stempel { flex: none; margin: 0 6px 4px auto; padding: 6px 12px; border: 2px solid #A8432C; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--papier), inset 0 0 0 3px #A8432C;
  color: #A8432C; font-weight: 800; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; transform: rotate(-9deg); opacity: .88; }
@media (max-width: 460px) {
  .af-zettel-liste > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .af-zettel-liste dt { padding-top: 0; }
}

.af-hinweis { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; background: rgba(216, 184, 120, .07); border: 1px solid rgba(216, 184, 120, .4);
  border-left: 3px solid var(--gold-hell); border-radius: var(--ecke); color: var(--hell); line-height: 1.5; }
.af-hinweis .ic { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--gold-hell); }
.af-hinweis b { color: var(--gold-hell); }
.af-ende { margin-top: 20px; }
@media (max-width: 560px) { .af-ende .knopf { flex: 1 1 100%; } }

/* ---------- Vertrauensblock ---------- */
.af-seite { margin-top: var(--r4); }
.af-gründe { list-style: none; margin: 0; padding: 0; }
.af-gründe li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid rgba(216, 184, 120, .16); }
.af-gründe li:last-child { border-bottom: 1px solid rgba(216, 184, 120, .16); }
.af-grund-sym { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(216, 184, 120, .42); color: var(--gold-hell); }
.af-grund-sym .ic { width: 20px; height: 20px; }
.af-gründe b { display: block; font-weight: 750; font-size: 1.04rem; line-height: 1.3; color: var(--hell); }
.af-gründe p { margin-top: 4px; color: var(--hell-2); font-size: .97rem; line-height: 1.5; }
.af-gründe .af-status { margin-top: 8px; color: var(--hell); }
.af-gründe .af-anfahrt { padding-block: 12px; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(216, 184, 120, .5); text-underline-offset: 3px; }
.af-tel { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--antiqua); font-size: 1.55rem; color: var(--gold-hell); text-decoration: none; }
@media (hover: hover) { .af-tel:hover { color: var(--gold-blass); } }
.af-stimme { margin: var(--r4) 0 0; padding-left: 20px; border-left: 2px solid rgba(216, 184, 120, .5); }
.af-stimme blockquote { margin: 0; font-family: var(--antiqua); font-style: italic; font-size: 1.18rem; line-height: 1.45; color: var(--hell); }
.af-stimme figcaption { margin-top: 8px; font-size: .9rem; color: var(--hell-3); }

/* ---------- Raster: Desktop zweispaltig ---------- */
@media (min-width: 1000px) {
  .anfrage-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: clamp(48px, 5.5vw, 88px); align-items: start; }
  .anfrage-raster > .kopfzeile { grid-column: 1; grid-row: 1; margin-bottom: var(--r4); }
  .anfrage .kopfzeile h2 { font-size: clamp(2.3rem, 3.4vw, 3.1rem); }
  .anfrage-form { display: contents; }
  .af-karte { grid-column: 2; grid-row: 1 / span 2; }
  .af-seite { grid-column: 1; grid-row: 2; margin-top: 0; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .af-gründe { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .af-gründe li:nth-last-child(2) { border-bottom: 1px solid rgba(216, 184, 120, .16); }
}

/* Absenden (Livebetrieb) */
.af-ende { margin-top: 22px; }
.af-neu-zeile { margin-top: 18px; }
.af-neu-zeile .textlink { background: none; border-width: 0 0 1px; cursor: pointer; font: inherit; font-weight: 650; min-height: 44px; padding: 0; }
