/* PW Rohrreinigung Nord – Befund-Monitor (Anfrage), Abschnitt schwarz */
.an-raster { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1000px) { .an-raster { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 5vw, 80px); } }
@media (min-width: 1000px) and (min-height: 890px) { .an-links { position: sticky; top: calc(var(--kopf-h) + 16px); } }
.an-links { display: grid; gap: 16px; min-width: 0; }

/* ---------- Monitor ---------- */
.an-monitor { position: relative; padding: 8px 8px 0; border-radius: 16px; background: linear-gradient(180deg, #202428 0%, #0C0E10 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .9); }
@media (min-width: 760px) { .an-monitor { padding: 14px 14px 0; border-radius: 20px; } }
.an-schirm { position: relative; overflow: hidden; border-radius: 8px; background: #060708; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9); }
.an-bild { position: absolute; inset: 0; z-index: -3; background: #1A120B url("../bilder/anfrage/monitor.webp") center / cover no-repeat; }
.an-schirm::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 90% at 50% 45%, rgba(6, 7, 8, .35) 0%, rgba(6, 7, 8, .72) 70%, rgba(6, 7, 8, .9) 100%), linear-gradient(rgba(6, 7, 8, .26), rgba(6, 7, 8, .26)); }
.an-schirm::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0, rgba(0, 0, 0, .16) 1px, transparent 1px, transparent 3px); }
.an-band { position: absolute; left: 0; right: 0; top: 0; height: 32%; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(180deg, rgba(255, 240, 220, 0), rgba(255, 240, 220, .07) 60%, rgba(255, 240, 220, 0)); transform: translate3d(0, -100%, 0); }
.an-laeuft .an-band { animation: an-band 7s linear infinite; }
@keyframes an-band { to { transform: translate3d(0, 420%, 0); } }

.an-osd { position: relative; z-index: 1; display: grid; gap: 10px; padding: 12px 12px 12px; color: #F4F2EC; font-family: var(--mono);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 1px rgba(0, 0, 0, .9); }
@media (min-width: 760px) { .an-osd { padding: 18px 22px 16px; gap: 12px; } }
.an-oben, .an-unten { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; line-height: 1.3; letter-spacing: .04em; }
.an-oben > span:first-child { min-width: 0; }
.an-rec { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-align: right; }
.an-rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; flex: none; box-shadow: 0 0 6px rgba(255, 59, 48, .7); }
.an-laeuft .an-rec i { animation: an-rec 1.4s steps(2, jump-none) infinite; }
@keyframes an-rec { 50% { opacity: .15; } }
.an-unten { font-weight: 600; text-transform: none; padding-top: 8px; border-top: 1px solid rgba(244, 242, 236, .14); }
.an-status { min-width: 0; color: rgba(244, 242, 236, .8); }
.an-status[data-art="neu"] { color: var(--orange); }
.an-status[data-art="fertig"] { color: var(--orange); }
.an-zaehler { white-space: nowrap; color: rgba(244, 242, 236, .8); text-transform: uppercase; }
.an-zaehler b { color: #F4F2EC; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .an-oben, .an-unten { font-size: 13px; } }

.an-zeilen { margin: 0; display: grid; align-content: center; gap: 1px; }
.an-zeile { position: relative; display: grid; grid-template-columns: 8.6em minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 4px 6px; margin: 0 -6px; border-radius: 3px; font-size: 12.5px; line-height: 1.35; }
.an-zeile dt { color: rgba(244, 242, 236, .74); font-weight: 600; letter-spacing: .04em; }
.an-zeile dd { margin: 0; min-width: 0; font-weight: 700; letter-spacing: .02em; color: #FFFFFF; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.an-zeile.leer .an-wert::before { content: attr(data-leer); color: rgba(244, 242, 236, .56); font-weight: 600; }
.an-cursor { display: inline-block; width: .62em; height: 1.05em; margin-left: 3px; vertical-align: -.17em; background: var(--orange); opacity: 0; box-shadow: none; }
.an-zeile.aktiv { background: rgba(253, 79, 2, .16); box-shadow: inset 3px 0 0 var(--orange); }
.an-zeile:not(.aktiv) .an-cursor { display: none; }
.an-zeile.aktiv .an-cursor { opacity: 1; }
.an-laeuft .an-zeile.aktiv .an-cursor { animation: an-cursor 1.05s steps(2, jump-none) infinite; }
@keyframes an-cursor { 50% { opacity: 0; } }
.an-zeile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--orange); opacity: 0; pointer-events: none; }
.an-zeile.neu::after { animation: an-blink .5s ease-in-out 4; }
@keyframes an-blink { 50% { opacity: .32; } }
.an-tag { display: none; }
@media (min-width: 600px) {
  .an-zeile { grid-template-columns: 9em minmax(0, 1fr) auto; font-size: 14px; padding: 5px 8px; margin: 0 -8px; }
  .an-tag { display: block; grid-column: 3; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--orange); opacity: 0; transition: opacity .3s ease; white-space: nowrap; padding-left: 10px; }
  .an-zeile.neu .an-tag { opacity: 1; }
}
@media (min-width: 1200px) { .an-zeile { font-size: 15px; padding: 6px 8px; } }

.an-gehaeuse { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 34px; padding: 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stahl); }
.an-tasten { display: inline-flex; gap: 8px; align-items: center; }
.an-tasten i { width: 14px; height: 6px; border-radius: 3px; background: #2C3237; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.an-tasten .an-power { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px rgba(253, 79, 2, .8); }
.an-monitor.fertig .an-power { background: var(--frei); box-shadow: 0 0 8px rgba(59, 219, 140, .8); }

.an-hinweise { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--stahl); }
.an-hinweise li { display: flex; gap: 10px; align-items: flex-start; }
@media (min-width: 760px) { .an-hinweise { font-size: 14px; gap: 8px; } }
.an-hinweise svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--stahl); }

/* ---------- Formular ---------- */
.an-form { min-width: 0; }
.an-kopf-stufen { display: none; }
.an-form.stufen .an-kopf-stufen { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.an-fortschritt { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.an-fortschritt i { height: 4px; border-radius: 2px; background: var(--graphit-3); transform-origin: 0 50%; transition: background-color .3s ease; }
.an-fortschritt i.an { background: var(--orange); }
.an-info { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--stahl); white-space: nowrap; }
.an-info b { color: var(--weiss); }

.an-schritt { display: grid; gap: 20px; }
.an-schritt + .an-schritt { margin-top: 40px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .1); }
.an-form.stufen .an-schritt { display: none; margin: 0; padding: 0; border: 0; }
.an-form.stufen .an-schritt.aktiv { display: grid; animation: an-rein .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes an-rein { from { opacity: 0; transform: translate3d(18px, 0, 0); } }
.an-schritt-senden { display: none; }
.an-form.stufen .an-schritt-senden.aktiv { display: grid; }
.an-s-titel { display: flex; align-items: baseline; gap: 12px; font-size: clamp(24px, 3vw, 30px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; outline: none; }
.an-s-titel span { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--orange); }

.an-gruppe, .an-feld { display: grid; gap: 10px; min-width: 0; }
.an-label { margin: 0; font-size: 15px; font-weight: 700; color: var(--weiss); }
.an-label small { font-weight: 400; font-size: 14px; color: var(--stahl); margin-left: 4px; }
.an-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.an-chip { display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #5F676F; background: transparent; color: var(--weiss); font-size: 15px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.an-chip:hover { border-color: #8A939B; }
.an-chip:active { transform: scale(.96); }
.an-chip-haken { width: 0; height: 18px; opacity: 0; transition: width .2s ease, opacity .2s ease, margin .2s ease; }
.an-chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--schwarz); }
.an-chip[aria-pressed="true"] .an-chip-haken { width: 18px; opacity: 1; margin-right: 6px; }
@media (min-width: 760px) { .an-chip { min-height: 46px; padding: 0 16px; font-size: 16px; } }

.an-feld input, .an-feld textarea { width: 100%; min-height: 54px; padding: 13px 16px; border-radius: var(--runde); border: 1.5px solid #5F676F; background: var(--graphit); color: var(--weiss); font: inherit; font-size: 18px; line-height: 1.4; -webkit-appearance: none; appearance: none; transition: border-color .18s ease, box-shadow .18s ease; }
.an-feld textarea { resize: vertical; min-height: 84px; }
.an-feld input::placeholder, .an-feld textarea::placeholder { color: #8D969D; opacity: 1; }
.an-feld input:focus, .an-feld textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(253, 79, 2, .28); }
.an-reihe { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 10px; }

.an-optionen { display: grid; gap: 10px; }
.an-option { display: grid; grid-template-columns: 26px 1fr 22px; align-items: center; gap: 14px; min-height: 62px; padding: 0 18px; border-radius: 10px; border: 1.5px solid #5F676F; background: var(--graphit); color: var(--weiss); font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.an-option:hover { border-color: #8A939B; }
.an-option:active { transform: scale(.985); }
.an-op-sym { width: 24px; height: 24px; color: var(--stahl); }
.an-punkt { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #59616A; position: relative; }
.an-option[aria-pressed="true"] { border-color: var(--orange); background: rgba(253, 79, 2, .12); }
.an-option[aria-pressed="true"] .an-op-sym { color: var(--orange); }
.an-option[aria-pressed="true"] .an-punkt { border-color: var(--orange); }
.an-option[aria-pressed="true"] .an-punkt::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }
.an-tipp { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--graphit-2); font-size: 15px; line-height: 1.5; color: var(--weiss); }
.an-tipp svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--orange); }
.an-tipp a { color: var(--orange); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

.an-nav { display: none; }
.an-form.stufen .an-nav { display: flex; gap: 10px; margin-top: 4px; }
.an-nav .knopf { flex: 1; }
.an-nav .an-zurueck { flex: 0 0 auto; padding: 0 18px; }
.an-nav .an-weiter { justify-content: space-between; }

/* ---------- Senden ---------- */
.an-senden { display: grid; gap: 12px; min-width: 0; }
.an-platz-senden .an-senden { padding: 22px; border-radius: 14px; background: var(--graphit); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.an-platz-senden .an-s-titel { display: none; }
.an-offen { margin: 0; font-size: 15px; line-height: 1.5; color: var(--stahl); }
.an-offen.fertig { color: var(--weiss); }
.an-wege { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .an-wege { grid-template-columns: 1fr 1fr; } }
.an-weg { min-height: 56px; padding: 0 14px; font-size: 16px; text-align: center; }
.an-anruf { width: 100%; color: var(--weiss); }
.an-foto { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--stahl); }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .an-laeuft .an-band, .an-laeuft .an-rec i, .an-laeuft .an-zeile.aktiv .an-cursor, .an-zeile.neu::after { animation: none; }
  .an-form.stufen .an-schritt.aktiv { animation: none; }
  .an-zeile.neu::after { opacity: .2; }
}
