/* Holz Adrian 2027 – Anfrage-Zentrale (templates/anfrage.php): Stile aus dem Entwurf (holz-adrian-viral/anfrage.css), mit werkzeuge/wp-test/css-scope.mjs auf .ha27-anf beschränkt.
   Teile für „Meine Anfragen“ und die interne Ansicht bleiben ungenutzt stehen (im echten Shop speichert die Seite keine Anfragen). */

/* --anf-rand: Rahmen von Feldern, Kacheln und Auswahl-Chips (kräftiger als --line-d, damit sie sich vom Grund abheben: mindestens 3:1) */
.ha27-anf.anf { --anf-fehler: #a3321f; --anf-rand: rgba(10,35,25,.5); background: var(--sawdust); }
.ha27-anf.anf:focus { outline: none; }
.ha27-anf.anf [hidden] { display: none !important; }

/* ---------- Kopfband ---------- */
.ha27-anf .anf-head { position: relative; overflow: hidden; isolation: isolate; background: var(--forest); border-bottom: 1px solid var(--line);
  padding-block: clamp(1rem, 2.4vw, 2rem) clamp(1.5rem, 3.6vw, 3rem); }
.ha27-anf .anf-head::before { content: ""; position: absolute; z-index: -1; right: -14vw; top: -40%; width: min(820px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 26px, rgba(226,191,140,.085) 26px 27.5px); opacity: .9; }
.ha27-anf .anf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; font-family: var(--mono); font-size: 13px; letter-spacing: .03em; margin-bottom: clamp(1rem, 2.4vw, 1.8rem); }
.ha27-anf .anf-crumbs a { opacity: .7; transition: color .2s, opacity .2s; }
.ha27-anf .anf-crumbs a:hover { color: var(--spray); opacity: 1; }
.ha27-anf .anf-crumbs [aria-hidden] { opacity: .35; }
.ha27-anf .anf-crumbs [aria-current] { opacity: .95; }
.ha27-anf .anf-head .eyebrow { color: var(--pine); }
.ha27-anf .anf-title { margin-top: .7rem; font-weight: 900; font-stretch: 68%; text-transform: uppercase; line-height: .88; letter-spacing: -.005em;
  font-size: clamp(2.5rem, 1rem + 5.6vw, 6.2rem); overflow-wrap: break-word; }
.ha27-anf .anf-title .outline { color: transparent; -webkit-text-stroke: 1.6px var(--sawdust); }
.ha27-anf .anf-title:focus { outline: none; }
.ha27-anf .anf-lead { margin-top: 1.1rem; max-width: 42rem; font-size: clamp(1rem, .96rem + .3vw, 1.25rem); line-height: 1.5; opacity: .85; }
.ha27-anf .anf-erreich { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .8rem; margin-top: 1.2rem; padding: .2rem 1rem .2rem .9rem; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; font: 13px/1.4 var(--mono); max-width: 100%; }
.ha27-anf .anf-erreich__punkt { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--pine); background: transparent; }
.ha27-anf .anf-erreich.is-offen .anf-erreich__punkt { border-color: var(--green-light); background: var(--green-light); }
.ha27-anf .anf-erreich a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.ha27-anf .anf-herkunft { margin-top: .5rem; font: 13px/1.4 var(--mono); opacity: .9; }
.ha27-anf .anf-herkunft a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--pine); text-underline-offset: 3px; }

/* ---------- Inhalt ---------- */
.ha27-anf .anf-body { background: var(--sawdust); color: var(--ink); padding-block: clamp(1.2rem, 3.2vw, 2.8rem) clamp(4.2rem, 7vw, 5.6rem); }
.ha27-anf .anf-body :focus-visible { outline-color: var(--spray-dark); }
.ha27-anf .anf-body a { text-underline-offset: 3px; }
.ha27-anf .anf-note { margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.ha27-anf .anf-note--klein { font: 13px/1.5 var(--mono); opacity: .72; }
.ha27-anf .anf-note--ruhig { margin-bottom: 1rem; opacity: .85; }
.ha27-anf .anf-note a, .ha27-anf .anf-card p a, .ha27-anf .anf-leer a:not(.btn):not(.anf-btn-sek) { text-decoration: underline; text-decoration-color: var(--spray-dark); }
.ha27-anf .anf-note a:hover, .ha27-anf .anf-card p a:hover { color: var(--spray-dark); }
.ha27-anf .anf-note--warn { margin: 0 0 1rem; padding: .7rem .9rem; border-left: 4px solid var(--warn); background: rgba(163,50,31,.09); font-size: 14px; }
.ha27-anf .anf-hint { margin: 0; font: 13px/1.5 var(--mono); opacity: .7; overflow-wrap: anywhere; }
.ha27-anf .anf-err { margin: 0; color: var(--anf-fehler); font: 700 13.5px/1.45 var(--mono); }
.ha27-anf .anf-err::before { content: "! "; }
.ha27-anf .anf-msg { margin: 0; min-height: 1.4em; font: 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.ha27-anf .anf-msg--gross { font-size: 14.5px; font-weight: 700; }
.ha27-anf .anf-msg.is-fehler { color: var(--anf-fehler); font-weight: 700; }
.ha27-anf .anf-msg.is-ok { color: var(--green); font-weight: 700; }

/* ---------- Themen ---------- */
.ha27-anf .anf-themenbox { display: grid; gap: 1rem; margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.ha27-anf .anf-themen__h { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: .95; }
.ha27-anf .anf-themen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.ha27-anf .anf-thema { position: relative; display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: .15rem .8rem; align-items: center; min-height: 96px; padding: .85rem 2.4rem .85rem .9rem;
  background: #fff; border: 2px solid var(--anf-rand); border-radius: 6px; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .35s var(--ease); }
.ha27-anf .anf-thema:hover { border-color: var(--ink); transform: translateY(-2px); }
.ha27-anf .anf-thema input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ha27-anf .anf-thema input:focus-visible { outline: 3px solid var(--spray-dark); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; }   /* weißer Saum: der Ring hebt sich auch auf getöntem Grund ab (≥ 3:1) */
.ha27-anf .anf-thema__ic { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--sawdust-2); color: var(--green); transition: background .2s, color .2s; }
.ha27-anf .anf-thema__ic svg { width: 1.6rem; height: 1.6rem; }
.ha27-anf .anf-thema__t { display: grid; gap: .1rem; min-width: 0; }
.ha27-anf .anf-thema__t b { font-weight: 800; font-stretch: 90%; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.ha27-anf .anf-thema__t small { font-size: 13.5px; line-height: 1.35; opacity: .72; overflow-wrap: anywhere; }
.ha27-anf .anf-thema__ok { position: absolute; right: .6rem; top: .6rem; display: none; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--pine); color: var(--forest); }
.ha27-anf .anf-thema__ok svg { width: 1rem; height: 1rem; }
.ha27-anf .anf-thema.is-gewaehlt { background: var(--forest); border-color: var(--forest); color: var(--sawdust); }
.ha27-anf .anf-thema.is-gewaehlt .anf-thema__ic { background: rgba(226,191,140,.16); color: var(--pine); }
.ha27-anf .anf-thema.is-gewaehlt .anf-thema__ok { display: grid; }
.ha27-anf .anf-thema.is-gewaehlt:hover { transform: none; }
.ha27-anf .anf-aendern { justify-self: start; }
.ha27-anf .anf-themen__note { max-width: 46rem; opacity: .85; }
.ha27-anf .anf-wahl { margin: 0 0 1rem; font: 14px/1.5 var(--mono); opacity: .75; }

/* ---------- Raster ---------- */
.ha27-anf .anf-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1rem, 2.6vw, 2.4rem); align-items: start; }
.ha27-anf .anf-stack { display: grid; gap: clamp(1rem, 2vw, 1.4rem); min-width: 0; align-content: start; }
.ha27-anf .anf-side { position: sticky; top: calc(var(--ha27-stick) + 1rem); display: grid; gap: 1.2rem; padding: clamp(1.2rem, 2.4vw, 1.8rem); background: var(--forest); color: var(--sawdust); border-radius: 8px; box-shadow: 0 24px 40px -28px rgba(10,35,25,.7); min-width: 0; }
.ha27-anf .anf-side__h { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); line-height: .95; }
.ha27-anf .anf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.ha27-anf .anf-steps li { position: relative; display: grid; gap: .15rem; padding-left: 2.7rem; counter-increment: s; }
.ha27-anf .anf-steps li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.95rem; height: 1.95rem; display: grid; place-items: center; border: 2px solid var(--pine); border-radius: 50%; color: var(--pine); font: 700 13px var(--mono); }
.ha27-anf .anf-steps b { font-weight: 800; font-stretch: 90%; font-size: 1.1rem; line-height: 1.25; }
.ha27-anf .anf-steps span { font-size: 14.5px; line-height: 1.5; opacity: .78; }
.ha27-anf .anf-trust { display: grid; gap: .15rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); font: 13px/1.5 var(--mono); }
.ha27-anf .anf-trust b { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 1rem; }
.ha27-anf .anf-trust span { opacity: .75; }
.ha27-anf .anf-trust a { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; color: var(--pine); font-weight: 700; font-size: 1.15rem; text-decoration: underline; text-decoration-color: var(--pine); }
.ha27-anf .anf-side__link { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--pine); font: 700 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Karten und Felder ---------- */
.ha27-anf .anf-card { display: grid; gap: 1.05rem; align-content: start; min-width: 0; padding: clamp(1.1rem, 2.4vw, 2rem); background: var(--card); color: var(--ink); border-radius: 8px;
  box-shadow: 0 1px 0 rgba(10,35,25,.08), 0 24px 40px -30px rgba(10,35,25,.5); }
.ha27-anf .anf-card__h { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: .95; }
.ha27-anf .anf-card__h--klein { font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.9rem); }
.ha27-anf .anf-card__h:focus { outline: none; }
.ha27-anf .anf-card--demo { background: transparent; box-shadow: none; border: 2px dashed var(--line-d); }
.ha27-anf .anf-leer { max-width: 40rem; }
.ha27-anf .anf-leer p { margin: 0; line-height: 1.6; }
.ha27-anf .anf-tel { font-weight: 800; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--spray-dark); }
.ha27-anf .anf-abschnitt { margin: .3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-d); font: 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--walnut); }

.ha27-anf .anf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem .85rem; }
.ha27-anf .anf-row[data-fuer~="besuch"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.ha27-anf .anf-row[data-fuer~="besuch"] > .anf-fld[hidden] { display: none; }
/* nebeneinander stehende Felder mit unterschiedlich langen Beschriftungen: die Eingabefelder sollen auf einer Linie liegen */
@media (min-width: 641px) {
  .ha27-anf .anf-row[data-fuer~="besuch"] > .anf-fld > label { display: flex; align-items: flex-end; min-height: 2.7em; }
}
.ha27-anf .anf-fld { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.ha27-anf .anf-fld--kurz2 { max-width: 18rem; }
.ha27-anf fieldset.anf-fld { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.ha27-anf .anf-fld > label, .ha27-anf .anf-fld > legend { display: block; padding: 0; font: 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.ha27-anf fieldset.anf-fld > legend { margin-bottom: .55rem; }
.ha27-anf fieldset.anf-fld > .anf-err { margin-top: .5rem; }
.ha27-anf .anf-fld > label.anf-check { display: flex; font: inherit; letter-spacing: 0; text-transform: none; opacity: 1; }
.ha27-anf .anf-fld input[type="text"], .ha27-anf .anf-fld input[type="email"], .ha27-anf .anf-fld input[type="tel"], .ha27-anf .anf-fld input[type="date"], .ha27-anf .anf-fld textarea, .ha27-anf .anf-fld select {
  width: 100%; min-width: 0; height: 52px; border: 2px solid var(--anf-rand); background: #fff; color: var(--ink); padding: 0 .9rem; border-radius: 0; font: 16px/1.25 var(--mono); transition: border-color .2s; }
.ha27-anf .anf-fld textarea { height: auto; min-height: 8.5rem; padding: .7rem .9rem; resize: vertical; line-height: 1.45; }
.ha27-anf .anf-fld select { -webkit-appearance: none; appearance: none; padding-right: 2.6rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230a2319' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .85rem center / 14px 14px; }
.ha27-anf .anf-fld input:focus, .ha27-anf .anf-fld textarea:focus, .ha27-anf .anf-fld select:focus { outline: none; border-color: var(--ink); }
.ha27-anf .anf-fld input:focus-visible, .ha27-anf .anf-fld textarea:focus-visible, .ha27-anf .anf-fld select:focus-visible { outline: 2px solid var(--spray-dark); outline-offset: 1px; box-shadow: 0 0 0 4px #fff; }   /* kräftiger Ring mit weißem Saum statt halbtransparentem Schein (der hatte nur 1,7:1) */
.ha27-anf .anf-fld input::placeholder, .ha27-anf .anf-fld textarea::placeholder { color: rgba(10,35,25,.65); opacity: 1; }
.ha27-anf .anf-fld input[aria-invalid="true"], .ha27-anf .anf-fld textarea[aria-invalid="true"], .ha27-anf .anf-fld select[aria-invalid="true"] { border-color: var(--anf-fehler); background-color: #fff7f4; }
.ha27-anf .anf-fld input[type="file"] { width: 100%; padding: .7rem; border: 2px dashed var(--anf-rand); background: #fff; font: 14px var(--mono); min-height: 52px; }
.ha27-anf .anf-fld input[type="file"]:focus-visible { outline: 2px solid var(--spray-dark); outline-offset: 2px; }

/* Auswahl als Chips (echte Radiofelder, per Tastatur bedienbar) */
.ha27-anf .anf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ha27-anf .anf-chip { position: relative; display: inline-flex; max-width: 100%; }
.ha27-anf .anf-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ha27-anf .anf-chip span { display: inline-flex; align-items: center; min-height: 46px; max-width: 100%; padding: .4rem 1.05rem; border: 2px solid var(--anf-rand); border-radius: 999px; background: #fff; font-weight: 700; font-stretch: 90%; font-size: 15.5px; line-height: 1.2; transition: border-color .2s, background .2s, color .2s; }
.ha27-anf .anf-chip:hover span { border-color: var(--ink); }
.ha27-anf .anf-chip input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--sawdust); }
.ha27-anf .anf-chip input:focus-visible + span { outline: 2px solid var(--spray-dark); outline-offset: 2px; }
.ha27-anf fieldset[aria-invalid="true"] .anf-chip span { border-color: var(--anf-fehler); }

.ha27-anf .anf-check { display: flex; align-items: flex-start; gap: .7rem; min-height: 44px; font: 15.5px/1.45 var(--display); cursor: pointer; }
.ha27-anf .anf-check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--forest); cursor: pointer; }
.ha27-anf .anf-check input[aria-invalid="true"] { outline: 2px solid var(--anf-fehler); outline-offset: 1px; }
.ha27-anf .anf-check a { text-decoration: underline; text-decoration-color: var(--spray-dark); }
.ha27-anf .anf-haken { display: grid; gap: .5rem; }
.ha27-anf .anf-anhang { display: grid; gap: .2rem; padding: .7rem .9rem; background: var(--sawdust-2); border-radius: 6px; }
.ha27-anf .anf-hint--kontakt { margin-top: -.4rem; }

/* Chip „zu klären“ / „Annahme“ (gestrichelt, wie „Beispiel“ im Konto) */
.ha27-anf .anf-chip-hinweis { display: inline-block; padding: .15em .65em; border: 1.5px dashed var(--walnut); border-radius: 999px; font: 700 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--walnut); white-space: nowrap; }

/* Weg der Anfrage */
.ha27-anf .anf-route { display: grid; gap: .35rem; padding: .9rem 1.1rem; background: #fff; border: 2px solid var(--line-d); border-left: 6px solid var(--green); border-radius: 6px; }
.ha27-anf .anf-route--karte { background: var(--sawdust); }
.ha27-anf .anf-route p { margin: 0; }
.ha27-anf .anf-route__k { font: 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ha27-anf .anf-route__z { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.ha27-anf .anf-route__z b { font-weight: 800; font-stretch: 85%; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.ha27-anf .anf-route__h { font-size: 14px; line-height: 1.5; opacity: .82; }
.ha27-anf .anf-route__e { font: 13px/1.5 var(--mono); }
.ha27-anf .anf-route__e.is-offen::before, .ha27-anf .anf-route__e.is-zu::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: .5rem; border-radius: 50%; border: 2px solid var(--walnut); vertical-align: 0; }
.ha27-anf .anf-route__e.is-offen::before { border-color: var(--green); background: var(--green); }

/* Knöpfe */
.ha27-anf .anf-body .btn { max-width: 100%; height: auto; min-height: 58px; padding-block: .6rem; white-space: normal; text-align: left; }
.ha27-anf .anf-body .btn:disabled { opacity: .55; cursor: default; transform: none; }
.ha27-anf .anf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: .3rem; }
.ha27-anf .anf-foot--unten { margin-top: clamp(1.2rem, 3vw, 2rem); }
.ha27-anf .anf-btn-sek { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .55rem 1.25rem; border: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-d);
  font: 800 14px/1.2 var(--display); font-stretch: 88%; letter-spacing: .04em; text-transform: uppercase; text-align: center; cursor: pointer; transition: box-shadow .2s, background .2s; }
.ha27-anf .anf-btn-sek:hover { box-shadow: inset 0 0 0 2px var(--ink); background: rgba(10,35,25,.04); }
.ha27-anf .anf-btn-sek:disabled { opacity: .5; cursor: default; }
.ha27-anf .anf-btn-sek--leise { box-shadow: none; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .75; }
.ha27-anf .anf-btn-sek--leise:hover { box-shadow: none; opacity: 1; background: transparent; }
.ha27-anf .anf-entwurf { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: 0; font: 13px/1.5 var(--mono); opacity: .9; }
.ha27-anf .anf-stempel { display: inline-block; padding: .35em .65em; border: 2px solid var(--walnut); border-radius: 3px; color: var(--walnut); font: 700 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ha27-anf .anf-stempel--hell { border-color: var(--pine); color: var(--pine); }

/* ---------- Anhänge ---------- */
.ha27-anf .anf-dateien { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ha27-anf .anf-dateien:empty { display: none; }
.ha27-anf .anf-dateien li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .5rem .5rem .5rem .5rem; background: #fff; border: 1px solid var(--line-d); border-radius: 4px; }
.ha27-anf .anf-dateien__bild { width: 56px; height: 56px; display: grid; place-items: center; background: var(--sawdust-2); border-radius: 3px; overflow: hidden; font: 700 13px var(--mono); letter-spacing: .08em; color: var(--walnut); }
.ha27-anf .anf-dateien__bild img { width: 100%; height: 100%; object-fit: cover; }
.ha27-anf .anf-dateien__t { display: grid; gap: .1rem; min-width: 0; }
.ha27-anf .anf-dateien__t b { font-weight: 800; font-stretch: 90%; font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.ha27-anf .anf-dateien__t small { font: 13px/1.4 var(--mono); opacity: .7; overflow-wrap: anywhere; }
.ha27-anf .anf-dateien__x { min-width: 44px; min-height: 44px; padding: 0 .7rem; border: 0; background: transparent; color: var(--ink); font: 700 13px var(--mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ha27-anf .anf-dateien__x:hover { color: var(--spray-dark); }

/* Reklamation */
.ha27-anf .anf-rekl { display: grid; gap: 1.05rem; }
.ha27-anf .anf-rpos { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ha27-anf .anf-rpos li { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: .5rem .8rem; align-items: center; padding: .4rem .7rem; background: #fff; border: 2px solid var(--line-d); border-radius: 4px; }
.ha27-anf .anf-rpos li.is-an { border-color: var(--forest); }
.ha27-anf .anf-rpos .anf-check { min-height: 44px; font-size: 15px; }
.ha27-anf .anf-rpos__m { display: grid; gap: .2rem; }
.ha27-anf .anf-rpos__m label { font: 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.ha27-anf .anf-rpos__m input { width: 100%; height: 44px; border: 2px solid var(--anf-rand); background: #fff; padding: 0 .6rem; font: 16px var(--mono); border-radius: 0; }
.ha27-anf .anf-rpos__m input:disabled { opacity: .45; }
.ha27-anf .anf-rpos__m input[aria-invalid="true"] { border-color: var(--anf-fehler); background: #fff7f4; }
.ha27-anf .anf-acc { background: var(--card); border: 1px solid var(--line-d); border-radius: 8px; }
.ha27-anf .anf-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: .8rem 1.2rem; cursor: pointer; list-style: none; font-weight: 800; font-stretch: 88%; font-size: 1.05rem; line-height: 1.25; }
.ha27-anf .anf-acc summary::-webkit-details-marker { display: none; }
.ha27-anf .anf-acc summary::after { content: "+"; flex: none; font: 400 1.4rem var(--mono); color: var(--spray-dark); }
.ha27-anf .anf-acc[open] summary::after { content: "–"; }
.ha27-anf .anf-acc[open] summary { border-bottom: 1px solid var(--line-d); }
.ha27-anf .anf-acc__body { display: grid; gap: .9rem; padding: 1rem 1.2rem 1.3rem; }

/* Prüfliste „Beim Abladen“ */
.ha27-anf .anf-pruefliste { display: grid; gap: .8rem; padding: 1.1rem 1.2rem; background: #fffdf8; border: 2px dashed var(--line-d); border-radius: 6px; color: var(--forest); }
.ha27-anf .anf-pruefliste p, .ha27-anf .anf-pruefliste h3, .ha27-anf .anf-pruefliste ul { margin: 0; }
.ha27-anf .anf-pl__marke { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .02em; line-height: 1; }
.ha27-anf .anf-pl__marke small { font: 400 13px var(--mono); letter-spacing: .08em; opacity: .7; margin-left: .4em; text-transform: none; }
.ha27-anf .anf-pl__h { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: .95; }
.ha27-anf .anf-pl__liste { list-style: none; padding: 0; display: grid; gap: .9rem; }
.ha27-anf .anf-pl__liste li { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: .1rem .8rem; align-items: start; }
.ha27-anf .anf-pl__box { grid-row: 1 / span 2; width: 1.5rem; height: 1.5rem; margin-top: .1rem; border: 2.5px solid var(--forest); border-radius: 3px; background: #fff; }
.ha27-anf .anf-pl__liste b { font-weight: 800; font-stretch: 90%; font-size: 1.08rem; line-height: 1.25; }
.ha27-anf .anf-pl__liste span:not(.anf-pl__box) { font-size: 14.5px; line-height: 1.5; opacity: .85; }
.ha27-anf .anf-pl__fuss { padding-top: .7rem; border-top: 1px solid rgba(10,35,25,.3); font: 13px/1.5 var(--mono); }

/* ---------- Vorgang ---------- */
.ha27-anf .anf-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin: 0 0 clamp(1rem, 2.4vw, 1.6rem); padding: 1.1rem 1.3rem; background: var(--forest); color: var(--sawdust); border-left: 7px solid var(--green-light); border-radius: 8px; box-shadow: 0 24px 40px -28px rgba(10,35,25,.7); }
.ha27-anf .anf-banner > div { display: grid; gap: .15rem; min-width: 0; }
.ha27-anf .anf-banner b { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1; overflow-wrap: anywhere; }
.ha27-anf .anf-banner span:not(.anf-stempel) { font-size: 14.5px; opacity: .8; }
.ha27-anf .anf-banner:focus { outline: none; }
.ha27-anf .anf-banner--ruhig { border-left-color: var(--pine); }
.ha27-anf .anf-kopfkarte__k { margin: 0; font: 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.ha27-anf .anf-nummer { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(3rem, 1.6rem + 6vw, 6rem); line-height: .85; letter-spacing: -.005em; overflow-wrap: anywhere; }
.ha27-anf .anf-kopfkarte__m { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: 0; font: 13.5px/1.5 var(--mono); }
.ha27-anf .anf-kopfkarte__m [aria-hidden] { opacity: .4; }

.ha27-anf .anf-status { display: inline-block; padding: .2em .75em; border: 2px solid var(--line-d); border-radius: 999px; background: #fff; font: 700 13px/1.4 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.ha27-anf .anf-status.is-neu { border-color: var(--ink); }
.ha27-anf .anf-status.is-bearbeitung { border-color: var(--rule); background: var(--rule); color: var(--forest); }
.ha27-anf .anf-status.is-rueckfrage { border-color: var(--warn); background: rgba(163,50,31,.16); color: var(--warn); }
.ha27-anf .anf-status.is-angebot { border-color: var(--green); background: var(--green); color: var(--card); }
.ha27-anf .anf-status.is-erledigt { border-color: var(--line-d); background: var(--sawdust-2); color: var(--walnut); }

.ha27-anf .anf-weg { list-style: none; margin: .4rem 0 .2rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ha27-anf .anf-weg li { position: relative; display: grid; justify-items: center; align-content: start; gap: .3rem; text-align: center; padding-inline: .15rem; }
.ha27-anf .anf-weg li::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; background: var(--line-d); z-index: 0; }
.ha27-anf .anf-weg li:first-child::before { display: none; }
.ha27-anf .anf-weg li.is-done::before, .ha27-anf .anf-weg li.is-aktiv::before { background: var(--green); }
.ha27-anf .anf-weg__punkt { position: relative; z-index: 1; width: 25px; height: 25px; border-radius: 50%; border: 3px solid var(--line-d); background: var(--card); box-sizing: border-box; background-position: center; background-repeat: no-repeat; background-size: 62%; }
.ha27-anf .anf-weg li.is-done .anf-weg__punkt { 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 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7' fill='none' stroke='%23fbf8f2' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ha27-anf .anf-weg li.is-aktiv .anf-weg__punkt { border-color: var(--forest); background-color: var(--rule); box-shadow: 0 0 0 5px rgba(241,204,121,.35); }
.ha27-anf .anf-weg li.is-aktiv.is-rueckfrage .anf-weg__punkt { background-color: rgba(163,50,31,.9); border-color: var(--warn); box-shadow: 0 0 0 5px rgba(163,50,31,.25); }
.ha27-anf .anf-weg__t { font: 700 13px/1.3 var(--mono); overflow-wrap: anywhere; }
.ha27-anf .anf-weg li.is-offen .anf-weg__t { font-weight: 400; opacity: .6; }

.ha27-anf .anf-jetzt { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; counter-reset: j; }
.ha27-anf .anf-jetzt li { position: relative; display: grid; gap: .1rem; padding-left: 2.6rem; counter-increment: j; }
.ha27-anf .anf-jetzt li::before { content: counter(j); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border: 2px solid var(--green); border-radius: 50%; color: var(--green); font: 700 13px var(--mono); }
.ha27-anf .anf-jetzt b { font-weight: 800; font-stretch: 90%; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.ha27-anf .anf-jetzt span { font-size: 14.5px; line-height: 1.5; opacity: .8; overflow-wrap: anywhere; }

.ha27-anf .anf-daten { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1rem; margin: 0; font-size: 15px; line-height: 1.4; }
.ha27-anf .anf-daten dt { font: 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.ha27-anf .anf-daten dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; white-space: pre-line; }
.ha27-anf .anf-pos { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ha27-anf .anf-pos li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; min-width: 0; padding: .45rem .6rem; background: #fff; border: 1px solid var(--line-d); border-radius: 4px; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ha27-anf .anf-pos b { font-weight: 800; font-stretch: 90%; overflow-wrap: anywhere; }
.ha27-anf .anf-pos small { font: 13px/1.4 var(--mono); opacity: .7; overflow-wrap: anywhere; }
.ha27-anf .anf-untertitel { margin: .4rem 0 .2rem; font: 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--walnut); }

.ha27-anf .anf-mail { background: #fff; border: 1px solid var(--line-d); border-radius: 6px; overflow: hidden; }
.ha27-anf .anf-mail__kopf { display: grid; gap: .1rem; padding: .75rem 1rem; background: var(--sawdust-2); font: 13px/1.55 var(--mono); overflow-wrap: anywhere; }
.ha27-anf .anf-mail__body { padding: 1.1rem 1.2rem 1.3rem; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.ha27-anf .anf-mail__body p { margin: 0 0 .85rem; }
.ha27-anf .anf-mail__body > :last-child { margin-bottom: 0; }
.ha27-anf .anf-mono { font-family: var(--mono); }

/* ---------- Meine Anfragen ---------- */
.ha27-anf .anf-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ha27-anf .anf-fchip { display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: .4rem 1.05rem; border: 2px solid var(--anf-rand); border-radius: 999px; background: #fff; color: var(--ink); font: 700 15px/1.2 var(--display); font-stretch: 90%; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.ha27-anf .anf-fchip:hover { border-color: var(--ink); }
.ha27-anf .anf-fchip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--sawdust); }
.ha27-anf .anf-fchip span { font: 400 13px var(--mono); opacity: .8; }
.ha27-anf .anf-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ha27-anf .anf-karte { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: .3rem 1.2rem; align-items: center; min-height: 84px; padding: .9rem 1.1rem; background: var(--card); color: var(--ink); border: 2px solid var(--line-d); border-radius: 6px; transition: border-color .2s, transform .35s var(--ease); }
.ha27-anf .anf-karte:hover { border-color: var(--ink); transform: translateX(3px); }
.ha27-anf .anf-karte__nr { font: 700 1.25rem/1.1 var(--mono); }
.ha27-anf .anf-karte__t { display: grid; gap: .15rem; min-width: 0; }
.ha27-anf .anf-karte__t b { font-weight: 800; font-stretch: 90%; font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.ha27-anf .anf-karte__t span { font-size: 14px; line-height: 1.4; opacity: .75; overflow-wrap: anywhere; }
.ha27-anf .anf-karte__r { display: grid; gap: .3rem; justify-items: end; text-align: right; }
.ha27-anf .anf-karte__r small { font: 13px var(--mono); opacity: .7; }
.ha27-anf .anf-beispiel { display: inline-block; margin-left: .5rem; vertical-align: .15em; padding: .1em .55em; border: 1.5px dashed var(--walnut); border-radius: 999px; font: 700 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--walnut); }

/* ---------- Druck (Prüfliste) ---------- */
.ha27-anf .anf-druckflaeche { display: none; }
@media print {
  body.anf-druck > *:not(.anf-druckflaeche) { display: none !important; }
  body.anf-druck::after { display: none !important; }
  body.anf-druck { background: #fff !important; color: var(--forest); }
  body.anf-druck .anf-druckflaeche { display: block !important; padding: 0; }
  body.anf-druck .anf-pruefliste { border: 0; padding: 0; background: #fff; gap: 1.2rem; }
  body.anf-druck .anf-pl__h { font-size: 36px; }
  body.anf-druck .anf-pl__box { width: 1.9rem; height: 1.9rem; }
  body.anf-druck .anf-pl__liste li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  body.anf-druck .anf-pl__liste b { font-size: 1.3rem; }
  body.anf-druck .anf-pl__liste span:not(.anf-pl__box) { font-size: 1.05rem; }
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
  .ha27-anf .anf-themen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ha27-anf .anf-grid { grid-template-columns: minmax(0, 1fr); }
  .ha27-anf .anf-side { position: static; }
  .ha27-anf .anf-karte { grid-template-columns: 7rem minmax(0, 1fr); }
  .ha27-anf .anf-karte__r { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; justify-items: start; text-align: left; }
}
@media (max-width: 860px) {
  .ha27-anf .anf-themen.is-kompakt { grid-template-columns: 1fr; }
  .ha27-anf .anf-themen.is-kompakt .anf-thema:not(.is-gewaehlt) { display: none; }
}
@media (max-width: 640px) {
  .ha27-anf .anf-crumbs { display: none; }
  .ha27-anf .anf-head { padding-block: 1.1rem 1.5rem; }
  .ha27-anf .anf-lead { margin-top: .8rem; font-size: 1rem; }
  .ha27-anf .anf-row, .ha27-anf .anf-row[data-fuer~="besuch"] { grid-template-columns: 1fr; }
  .ha27-anf .anf-fld--kurz2 { max-width: none; }
  .ha27-anf .anf-steps { gap: .7rem; }
  .ha27-anf .anf-steps span { display: none; }
  .ha27-anf .anf-steps li { padding-left: 2.4rem; }
  .ha27-anf .anf-foot .btn, .ha27-anf .anf-banner .btn { width: 100%; justify-content: space-between; }
  .ha27-anf .anf-daten { grid-template-columns: 1fr; gap: .1rem; }
  .ha27-anf .anf-daten dd { margin-bottom: .5rem; }
  .ha27-anf .anf-rpos li { grid-template-columns: 1fr; }
  .ha27-anf .anf-weg { grid-auto-flow: row; grid-auto-columns: auto; margin: .5rem 0 .3rem .1rem; }
  .ha27-anf .anf-weg li { grid-template-columns: 25px minmax(0, 1fr); align-items: center; justify-items: start; column-gap: .7rem; text-align: left; padding: 0 0 .85rem; min-height: 25px; }
  .ha27-anf .anf-weg li:last-child { padding-bottom: 0; }
  .ha27-anf .anf-weg li::before { display: none; }
  .ha27-anf .anf-weg li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 25px; bottom: 0; width: 3px; background: var(--line-d); }
  .ha27-anf .anf-weg li.is-done:not(:last-child)::after { background: var(--green); }
  .ha27-anf .anf-weg__t { font-size: 13px; overflow-wrap: normal; }
  .ha27-anf .anf-karte { grid-template-columns: 1fr; }
  .ha27-anf .anf-dateien li { grid-template-columns: 56px minmax(0, 1fr); }
  .ha27-anf .anf-dateien__x { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .ha27-anf .anf-themen { grid-template-columns: 1fr; }
  .ha27-anf .anf-thema { min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .ha27-anf .anf-thema, .ha27-anf .anf-thema:hover, .ha27-anf .anf-karte, .ha27-anf .anf-karte:hover, .ha27-anf .anf-chip span, .ha27-anf .anf-fchip { transition: none; transform: none; }
}

/* =====================================================================
   Interne Ansicht (anfragen.html): Spalten, nur lokale Daten
   ===================================================================== */
.ha27-anf .anb-warn { display: grid; gap: .2rem; margin: 0 0 1.2rem; padding: .9rem 1.1rem; background: rgba(163,50,31,.09); border-left: 5px solid var(--warn); border-radius: 4px; font-size: 14.5px; line-height: 1.5; }
.ha27-anf .anb-warn b { font: 700 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.ha27-anf .anb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.ha27-anf .anb-scroll { overflow-x: auto; padding-bottom: .8rem; -webkit-overflow-scrolling: touch; }
.ha27-anf .anb-brett { display: grid; grid-template-columns: repeat(7, minmax(15.5rem, 1fr)); gap: .8rem; min-width: min-content; align-items: start; }
.ha27-anf .anb-spalte { display: grid; gap: .6rem; align-content: start; padding: .7rem; background: var(--sawdust-2); border-radius: 8px; min-height: 8rem; }
.ha27-anf .anb-spalte__k { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: 0; font: 700 12.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ha27-anf .anb-spalte__k span { font-weight: 400; opacity: .7; }
.ha27-anf .anb-spalte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ha27-anf .anb-karte { display: grid; gap: .4rem; padding: .7rem .8rem; background: var(--card); border: 1px solid var(--line-d); border-radius: 6px; font-size: 14px; line-height: 1.4; }
.ha27-anf .anb-karte.is-ueberfaellig { border-color: var(--spray-dark); box-shadow: inset 4px 0 0 var(--spray-dark); }
.ha27-anf .anb-karte__k { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; }
.ha27-anf .anb-karte__k a { font: 700 14px var(--mono); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 32px; }
.ha27-anf .anb-karte__k small { font: 13px var(--mono); opacity: .7; }
.ha27-anf .anb-karte b { font-weight: 800; font-stretch: 90%; overflow-wrap: anywhere; }
.ha27-anf .anb-karte p { margin: 0; overflow-wrap: anywhere; opacity: .85; }
.ha27-anf .anb-karte label { display: grid; gap: .15rem; font: 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.ha27-anf .anb-karte select, .ha27-anf .anb-karte input, .ha27-anf .anb-karte textarea { width: 100%; min-width: 0; min-height: 44px; border: 2px solid var(--anf-rand); background: #fff; color: var(--ink); padding: .3rem .5rem; font: 16px/1.3 var(--mono); border-radius: 0; text-transform: none; letter-spacing: 0; }
.ha27-anf .anb-karte textarea { min-height: 3.2rem; resize: vertical; }
.ha27-anf .anb-karte select:focus-visible, .ha27-anf .anb-karte input:focus-visible, .ha27-anf .anb-karte textarea:focus-visible { outline: 2px solid var(--spray-dark); outline-offset: 1px; }
.ha27-anf .anb-leer { margin: 0; padding: .5rem; font: 13px var(--mono); opacity: .55; }
.ha27-anf .anb-hinweis { margin: .6rem 0 0; font: 13px/1.5 var(--mono); opacity: .8; }
@media (max-width: 640px) {
  .ha27-anf .anb-brett { grid-template-columns: repeat(7, minmax(17rem, 1fr)); }
}

/* Ergänzungen fürs Theme: Grundbausteine aus style.css des Entwurfs, die rahmen.css nicht hat */
.ha27-anf .eyebrow { color: var(--pine); }
.ha27-anf [hidden] { display: none !important; }
.ha27-anf .anf-dateien li button { min-height: 36px; }

/* Freiwillige Felder (07.11.2026) */
.ha27-anf .anf-opt { font-weight: 400; opacity: .7; }
