/* Indie Assist – 🧭 Unterwegs → 🔎 Erkunden (A-035 E-3): Erfassungsblatt nach Entwurf vorschau/erkunden-blatt-20261116.
   Symbole: gelbe Linien-Symbole (#ffd84a) auf Grün (#3f7306), roter Knopf → weißes Symbol. Dunkel über html.dark, hoher Kontrast über html.high-contrast. */
.erk, .erk-start {
  --erk-gr: #3f7306; --erk-gr2: #5c9d0a; --erk-ge: #ffd84a; --erk-rot: #b3261e; --erk-or: #fff4d6; --erk-orl: #c08a00; --erk-or-t: #5a4300;
  --erk-card: var(--d-card, #fff); --erk-text: var(--d-text, #1f2a22); --erk-mut: var(--d-muted, #5b655e); --erk-line: var(--d-line, #e3e5e0);
  --erk-grau: #eceee9; --erk-soft: #f4f5f2; --erk-chip-rand: #8d969a; --erk-fokus: #1a5fb4;
  color: var(--erk-text); font-size: 16px; line-height: 1.45;
}
.erk { container-type: inline-size; }
html.dark :is(.erk, .erk-start) { --erk-or: #3a3112; --erk-orl: #d9a520; --erk-or-t: #f4dc9a; --erk-grau: #2c312c; --erk-soft: #272b27; --erk-chip-rand: #8d968c; --erk-fokus: #8ab4ff; --erk-rot: #d0453c; }
.erk *, .erk *::before, .erk *::after { box-sizing: border-box; }
.erk-sr, .erk .erk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.erk-klein { font-size: 14px; color: var(--erk-mut); margin: 4px 0; }
.erk-mitte { text-align: center; }
.erk-h2 { margin: 0 0 4px; font-size: 19px; color: var(--erk-gr); }
html.dark .erk-h2, html.dark .erk-h3, html.dark .erk legend.erk-h3 { color: #a6d86a; }
.erk-h3, .erk legend.erk-h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--erk-gr); padding: 0; }

/* Symbole */
.erk-ic { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.erk-ic svg { width: 100%; height: 100%; display: block; }
.erk-feld { background: var(--erk-gr); color: var(--erk-ge); border-radius: 7px; width: 26px; height: 26px; padding: 4px; }

/* Knöpfe */
.erk-btn { font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 10px; background: var(--erk-gr); color: #fff; min-height: 48px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; line-height: 1.2; }
.erk-btn .erk-ic { color: var(--erk-ge); }
.erk-btn:disabled { opacity: .55; cursor: not-allowed; }
.erk-btn-rot { background: var(--erk-rot); }
.erk-btn-rot .erk-ic { color: #fff; }
.erk-btn-grau { background: var(--erk-grau); color: var(--erk-text); border: 1px solid var(--erk-line); }
.erk-btn-grau .erk-ic { color: var(--erk-gr); }
html.dark .erk-btn-grau .erk-ic { color: #a6d86a; }
.erk-gross { width: 100%; }
.erk-btn-icon { font: inherit; min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--erk-line); background: var(--erk-card); color: var(--erk-gr); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html.dark .erk-btn-icon { color: #a6d86a; }
.erk-btn-icon.erk-rot { background: var(--erk-rot); border-color: var(--erk-rot); color: #fff; }
.erk-btn-icon:disabled { opacity: .4; }
.erk :is(button, input, select, textarea, summary, a, audio):focus-visible, .erk-chip:has(input:focus-visible), .erk-foto-knopf:has(input:focus-visible) { outline: 3px solid var(--erk-fokus); outline-offset: 2px; }
.erk-reihe { display: flex; gap: 10px; flex-wrap: wrap; }
.erk-zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.erk-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.erk-zahl { background: var(--erk-ge); color: #2a3a05; border-radius: 999px; font-weight: 700; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; font-size: 15px; }

/* Auswahl-Chips: echte Radio/Checkbox (unsichtbar), gewählt = grün + Haken (nie nur Farbe) */
.erk-fs { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.erk-fs > legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 6px; }
.erk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.erk-chip { position: relative; font: inherit; font-size: 15px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--erk-chip-rand); background: var(--erk-card); color: var(--erk-text);
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.erk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.erk-chip .erk-an-ic { display: none; }
.erk-chip:has(input:checked) { background: var(--erk-gr); border-color: var(--erk-gr); color: #fff; }
.erk-chip:has(input:checked) .erk-an-ic { display: inline-flex; color: var(--erk-ge); }
/* H1: gemischter Ersatz (manche gleich, manche mit Umweg) – eigener Hinweis über den beiden „Welcher?“-Zeilen */
.erk-gemischt { display: flex; gap: 8px; align-items: center; margin: 6px 0 0; font-weight: 600; }
.erk-chip.erk-verm { border-style: dashed; border-color: var(--erk-orl); border-width: 2px; }
.erk-chip.erk-verm:has(input:checked) { background: var(--erk-or); color: var(--erk-text); }
.erk-chip.erk-verm:has(input:checked) .erk-an-ic { color: var(--erk-gr); }
html.dark .erk-chip.erk-verm:has(input:checked) .erk-an-ic { color: #a6d86a; }
.erk-chip.erk-vorschlag { border-style: dashed; }
.erk-chip-plus { border-style: solid; background: var(--erk-card); }
.erk-chip-plus .erk-ic { color: var(--erk-gr); }
.erk-chip-klein { min-height: 40px; font-size: 14px; padding: 0 10px; }
.erk-check { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 44px; }
.erk-check input { width: 22px; height: 22px; flex: none; }
.erk-label { display: block; font-weight: 700; font-size: 14px; margin: 8px 0 4px; }
.erk input[type="text"], .erk input[type="search"], .erk select, .erk textarea { font: inherit; width: 100%; min-height: 44px; border: 1px solid #8d969a; border-radius: 8px; padding: 8px 10px; background: var(--erk-card); color: var(--erk-text); }

/* Liste + Blatt */
.erk-raster { display: grid; gap: 14px; }
.erk-liste { background: var(--erk-card); border: 1px solid var(--erk-line); border-radius: 14px; padding: 14px; }
.erk-filter { border: 0; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.erk-stliste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.erk-st { width: 100%; font: inherit; text-align: left; border: 1px solid var(--erk-line); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px;
  background: var(--erk-card); color: var(--erk-text); cursor: pointer; }
.erk-st-an { border: 2px solid var(--erk-gr); background: #f2f7ea; }
html.dark .erk-st-an { background: #263320; border-color: #a6d86a; }
.erk-st-text b { display: block; }
.erk-st small { display: block; color: var(--erk-mut); font-size: 12.5px; font-weight: 400; }
.erk-st-p { font-size: 14px; font-weight: 700; color: var(--erk-gr); text-align: right; white-space: nowrap; }
html.dark .erk-st-p { color: #a6d86a; }
.erk-st-p.erk-o { color: #7a5a00; }
html.dark .erk-st-p.erk-o { color: #f4dc9a; }
.erk-blatt { min-width: 0; }
.erk-leer { padding: 20px; }
.erk.erk-offen .erk-raster > .erk-liste { display: none; }
.erk:not(.erk-offen) .erk-raster > .erk-blatt { display: none; }
.erk-tipp { display: flex; gap: 8px; align-items: flex-start; }
@container (min-width: 640px) {
  .erk .erk-raster { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); align-items: start; }
  .erk .erk-raster > .erk-liste, .erk.erk-offen .erk-raster > .erk-liste { display: block; position: sticky; top: 8px; max-height: calc(100vh - 24px - var(--erk-leiste-h, 150px)); overflow: auto; }
  .erk .erk-raster > .erk-blatt { display: block; }
  .erk-liste-tipp { display: none; }
}

/* Kopf */
.erk-kopf { background: linear-gradient(135deg, #2f5a05, #3f7306); color: #fff; padding: 12px 16px 14px; border-radius: 14px 14px 0 0; }
.erk-zurueck { font: inherit; font-size: 14px; background: none; border: 0; color: #fff; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.erk-zurueck .erk-ic { color: var(--erk-ge); }
.erk-kopf-h { margin: 0; font-size: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: #fff; }
.erk-kopf-h:focus { outline: none; } .erk-kopf-h:focus-visible { outline: 3px solid #fff; }
.erk-lin { display: inline-block; background: var(--erk-ge); color: #2a3a05; font-size: 13px; font-weight: 700; border-radius: 6px; padding: 1px 8px; }
.erk-fort { margin-top: 10px; font-size: 14px; }
.erk-balken { height: 10px; border-radius: 5px; background: rgba(255,255,255,.28); margin-top: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,.5); }
.erk-balken i { display: block; height: 100%; background: var(--erk-ge); border-radius: 5px; }
.erk-spei { margin: 8px 0 0; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.erk-spei .erk-ic { color: var(--erk-ge); }
.erk-inh { padding: 14px 0 20px; display: grid; gap: 14px; }

/* Hinweise */
.erk-test { background: var(--erk-or); border: 1px solid var(--erk-orl); border-left: 5px solid var(--erk-orl); border-radius: 10px; padding: 10px 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.erk-hilfe { background: var(--erk-card); border: 1px solid var(--erk-line); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.erk-hilfe b { color: var(--erk-gr); }
html.dark .erk-hilfe b { color: #a6d86a; }
.erk-hilfe ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 2px; }
.erk-verm-hinweis, .erk-hinweis-o { background: var(--erk-or); border-radius: 8px; padding: 6px 10px; font-size: 14px; color: var(--erk-or-t); display: flex; gap: 8px; align-items: center; margin: 0; }
.erk-ok { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 0; }
.erk-sperr { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--erk-rot); border-radius: 10px; padding: 8px 10px; font-size: 14px; margin: 0; }
.erk-spaeter { font-size: 14px; color: var(--erk-mut); display: flex; gap: 8px; align-items: center; border-top: 1px dashed var(--erk-line); padding-top: 10px; margin: 0; }
.erk-fehlerzeile { color: var(--erk-rot); font-size: 14px; display: flex; gap: 6px; align-items: center; margin: 0; }
html.dark .erk-fehlerzeile { color: #ff9e96; }
.erk-wartet { display: flex; gap: 6px; align-items: center; margin: 0; }
.erk-wartet .erk-ic { color: var(--erk-gr); }

/* Karten */
.erk-card { background: var(--erk-card); border: 1px solid var(--erk-line); border-top: 4px solid var(--erk-gr2); border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04); display: grid; gap: 12px; min-width: 0; }
.erk-card-o { border-top-color: var(--erk-orl); }
.erk-ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.erk-kenn { font-size: 20px; font-weight: 700; margin: 0; display: inline-flex; gap: 8px; align-items: center; color: var(--erk-text); }
.erk-kenn > .erk-ic { color: var(--erk-gr); }
html.dark .erk-kenn > .erk-ic { color: #a6d86a; }
.erk-stat { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #eef3e6; color: var(--erk-gr); display: inline-flex; gap: 5px; align-items: center; }
.erk-stat.erk-o { background: var(--erk-or); color: #6b4e00; }
html.dark .erk-stat { background: #263320; color: #a6d86a; } html.dark .erk-stat.erk-o { color: var(--erk-or-t); }
.erk-zit { background: var(--erk-soft); border-left: 4px solid #a9b2a3; border-radius: 6px; padding: 8px 10px; font-size: 14px; color: var(--erk-mut); margin: 0; }
.erk-zit small { display: block; font-weight: 700; color: var(--erk-text); margin-bottom: 2px; font-size: 13px; }
.erk-fotos { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; margin: 0; padding: 6px 0 0; }
.erk-thumb { position: relative; width: 84px; display: grid; gap: 4px; }
.erk-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--erk-line); background: linear-gradient(135deg, #cfd6c6, #e6eadf); display: block; }
.erk-thumb img.erk-img-weg { opacity: .4; }
.erk-thumb-x { position: absolute; right: -8px; top: -8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.erk-thumb-x .erk-ic { background: var(--erk-rot); color: #fff; border-radius: 50%; width: 26px; height: 26px; padding: 5px; border: 2px solid #fff; }
.erk-thumb-s, .erk-thumb-p { font-size: 12px; color: var(--erk-mut); display: flex; gap: 4px; align-items: center; line-height: 1.2; min-height: 24px; }
.erk-thumb-p input { width: 20px; height: 20px; flex: none; }
.erk-sprach { display: flex; gap: 10px; align-items: center; background: var(--erk-soft); border-radius: 10px; padding: 8px 10px; flex-wrap: wrap; }
.erk-sprach audio { flex: 1 1 180px; min-width: 0; height: 40px; }
.erk-sprach .erk-t { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.erk-rec { border: 2px solid var(--erk-rot); background: #fdecea; border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
html.dark .erk-rec { background: #3a1d1b; }
.erk-rec-t { color: var(--erk-rot); font-weight: 700; display: flex; gap: 8px; align-items: center; margin: 0; font-variant-numeric: tabular-nums; }
html.dark .erk-rec-t { color: #ff9e96; }
.erk-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--erk-rot); display: inline-block; animation: erk-blink 1s infinite; }
.erk-welle { display: flex; gap: 3px; align-items: center; height: 28px; }
.erk-welle i { width: 3px; height: 8px; background: var(--erk-rot); border-radius: 2px; animation: erk-welle .7s ease-in-out infinite alternate; }
@keyframes erk-welle { to { height: 26px; } }
@keyframes erk-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .erk-welle i, .erk-punkt { animation: none; } .erk-welle i { height: 14px; } }
.erk-paar { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--erk-line); }
.erk-paar-t { margin: 0; font-weight: 700; }
.erk-paar-t small { font-weight: 400; color: var(--erk-mut); }
.erk-mehr { border: 1px solid var(--erk-line); border-radius: 10px; padding: 0 12px; }
.erk-mehr[open] { padding-bottom: 12px; display: grid; gap: 10px; }
.erk-mehr > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 15px; }
.erk-rolli { margin-left: 18px; border: 1px solid var(--erk-line); border-left: 4px solid var(--erk-gr2); border-radius: 0 12px 12px 0; padding: 12px; display: grid; gap: 10px; background: var(--erk-soft); }
.erk-rt, .erk-form-t { font-weight: 700; display: flex; gap: 8px; align-items: center; margin: 0; }
.erk-form { border: 2px solid var(--erk-gr2); border-radius: 12px; padding: 12px; display: grid; gap: 6px; flex-basis: 100%; background: var(--erk-card); }
.erk-orte { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.erk-ort-z { display: flex; gap: 6px; align-items: center; }
.erk-ort-z input { flex: 1; min-width: 0; }
.erk-ersatz-l { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.erk-zus { margin: 0; padding-left: 18px; }

/* Leiste unten + Liste links: fest im Fenster (M1). Der Seiteninhalt .admin-content hat overflow-y:auto, scrollt selbst
   aber nie (es scrollt das Fenster) – damit wirkte „sticky“ dort nicht. Nur auf der Erkunden-Seite gilt darum
   overflow: visible; dann klebt beides am Fenster. */
.admin-content:has(#erkunden.page.active) { overflow: visible; }
.erk-leiste { position: sticky; bottom: 0; z-index: 5; background: var(--erk-card); border-top: 1px solid var(--erk-line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding: 10px 14px 14px; display: grid; gap: 8px; margin-top: 14px; border-radius: 14px 14px 0 0; }
@media (max-width: 768px) { .erk-leiste { bottom: calc(66px + env(safe-area-inset-bottom)); } }
.erk-kein { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; background: var(--erk-or); border-radius: 8px; padding: 8px 10px; color: var(--erk-or-t); }
.erk-meldung { display: flex; gap: 8px; align-items: center; font-size: 14px; border-radius: 8px; padding: 6px 8px; margin: 0; border: 2px solid var(--erk-orl); }
.erk-meldung > span { flex: 1; }
.erk-m-fehler { border-color: var(--erk-rot); }
/* Bitte entscheiden (Konflikte, nicht angenommen) – oben auf der Seite, Leiste und Kopf springen hierher (M1/M2) */
.erk-punkte { display: grid; gap: 8px; margin-bottom: 14px; background: var(--erk-card); border: 2px solid var(--erk-orl); border-radius: 14px; padding: 12px 14px; scroll-margin-top: 8px; }
.erk-punkte:focus { outline: none; } .erk-punkte:focus-visible { outline: 3px solid var(--erk-fokus); }
.erk-punkte > .erk-h2 { display: flex; gap: 8px; align-items: center; }
.erk-leiste-punkte { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; font-weight: 700; }
.erk-leiste-punkte > span:not(.erk-ic) { flex: 1; }
.erk-btn-klein { min-height: 44px; font-size: 14px; padding: 0 12px; }
.erk-link { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; min-height: 24px; }
.erk-spei-warn { background: rgba(0,0,0,.22); border-radius: 8px; padding: 4px 8px; font-weight: 700; }
.erk-spei-warn .erk-link { color: #fff; }
.erk-punkt-z { align-items: flex-start; }
.erk-ersatzfrage { gap: 10px; }
.erk-ersatz-satz { margin: 0; }
.erk-ersatz-satz i { font-style: normal; color: var(--erk-or-t); }
/* K7: Lotte (Hilfe-Figur) verdeckt hier sonst Knöpfe. Nur auf dieser Seite: Leiste lässt rechts Platz für Lotte,
   Lotte sitzt kleiner in der Leiste (Handy) bzw. neben dem Senden-Knopf (breit). */
html:not(.a11y-nolotte) .erk-leiste { padding-right: 92px; }
@media (max-width: 768px) {
  body:has(#erkunden.page.active) #helpFab { transform: scale(.72); transform-origin: bottom right; }
  html:not(.a11y-nolotte) .erk-leiste { padding-right: 70px; min-height: 92px; }
}
.erk-konflikt { border: 2px solid var(--erk-orl); border-radius: 10px; padding: 10px; display: grid; gap: 8px; font-size: 14px; }
.erk-konflikt p { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.erk-konflikt.erk-fehler { border-color: var(--erk-rot); }
.erk-start { display: grid; gap: 10px; border-left: 5px solid var(--erk-orl, #c08a00); }
.erk-start p { margin: 0; }
.erk-start .erk-btn { width: auto; }

/* Hoher Kontrast (theme.css macht alle Flächen schwarz, Schrift weiß): Auswahl über dicken gelben Rand + Haken, Fortschritt über gelben Rand */
html.high-contrast .erk { --erk-fokus: #ffe600; }
html.high-contrast .erk :is(.erk-chip, .erk-card, .erk-st, .erk-leiste, .erk-kein, .erk-test, .erk-verm-hinweis, .erk-hinweis-o, .erk-liste, .erk-hilfe, .erk-mehr, .erk-rolli, .erk-form, .erk-konflikt, .erk-sperr, .erk-meldung, .erk-balken) { border: 2px solid #fff !important; }
html.high-contrast .erk .erk-chip:has(input:checked) { border: 4px solid #ffe600 !important; }
html.high-contrast .erk .erk-chip.erk-verm { border-style: dashed !important; }
html.high-contrast .erk .erk-st-an { border: 4px solid #ffe600 !important; }
html.high-contrast .erk .erk-balken i { border-top: 10px solid #ffe600 !important; height: 0; }
html.high-contrast .erk .erk-btn-rot, html.high-contrast .erk .erk-rec, html.high-contrast .erk .erk-sperr { border: 3px solid #ff8c8c !important; }

/* Foto-Knopf = Datei-Feld im Knopf (Kamera direkt aus dem Tipp) */
.erk-foto-knopf { cursor: pointer; position: relative; }
