/* BFV Feldbausteine – Grundoptik fuer Portale ohne eigene Gestaltung der Bausteine (Praefix bfvf-).
   JG/MG nutzen das Praefix bfvjg und ihre eigene Optik (umab.css) – diese Datei greift dort nicht.
   Das Portal setzt nur die Variablen (Farben, Schrift, Radius), z. B. MD: --bfvf-akzent: var(--signal-dunkel). */
:root {
  --bfvf-schrift: inherit;
  --bfvf-text: #1f2328;
  --bfvf-leise: #5f6b73;
  --bfvf-flaeche: #fff;
  --bfvf-hover: #f2f6f8;
  --bfvf-rand: #c2cdd2;
  --bfvf-rand-leicht: #e3e9ec;
  --bfvf-akzent: #00919c;
  --bfvf-radius: 10px;
  --bfvf-voll-grund: #f4f6f7;
  --bfvf-schatten: 0 14px 34px rgba(10, 26, 36, .12);
}

/* Adresse mit Suche */
.bfvf-adr__s { margin: 0 0 18px; }
.bfvf-adr__s > .bfvf-f__l { display: block; margin: 0 0 6px; font-family: var(--bfvf-schrift); font-weight: 600; font-size: 14.5px; color: var(--bfvf-text); }
.bfvf-adr__s .bfvf-pf { color: #a32e24; }
.bfvf-adr__f { position: relative; }
.bfvf-adr__f input {
  width: 100%; box-sizing: border-box; margin: 0; padding: 13px 14px; padding-inline-start: 44px;
  font-family: var(--bfvf-schrift); font-size: 16.5px; color: var(--bfvf-text);
  background: var(--bfvf-flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546C77' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 14px 50% / 18px 18px;
  border: 1px solid var(--bfvf-rand); border-radius: var(--bfvf-radius);
  -webkit-appearance: none; appearance: none;
}
[dir="rtl"] .bfvf-adr__f input { background-position: calc(100% - 14px) 50%; }
.bfvf-adr__f input:focus { outline: 2px solid var(--bfvf-akzent); outline-offset: 1px; border-color: var(--bfvf-akzent); }
.bfvf-adr__f input::-webkit-search-cancel-button, .bfvf-adr__f input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.bfvf-adr__l { margin: 6px 0 0; padding: 6px; list-style: none; background: var(--bfvf-flaeche); border: 1px solid var(--bfvf-rand-leicht); border-radius: var(--bfvf-radius); box-shadow: var(--bfvf-schatten); }
.bfvf-adr__l li { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 10px 12px; border-radius: calc(var(--bfvf-radius) - 3px); cursor: pointer; font-family: var(--bfvf-schrift); font-size: 15px; line-height: 1.35; color: var(--bfvf-text); }
.bfvf-adr__l li small { font-size: 13.5px; color: var(--bfvf-leise); }
.bfvf-adr__l li.is-akt, .bfvf-adr__l li:hover { background: var(--bfvf-hover); }
.bfvf-adr__l li.is-leer { cursor: default; color: var(--bfvf-leise); background: none; }
.bfvf-adr__l li.bfvf-adr__man { border-top: 1px solid var(--bfvf-rand-leicht); margin-top: 4px; padding-top: 12px; }
.bfvf-adr__l li.bfvf-adr__man:first-child { border-top: 0; margin-top: 0; padding-top: 10px; }
.bfvf-adr__l li.bfvf-adr__man b { color: var(--bfvf-akzent); }
.bfvf-adr__wahl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--bfvf-rand); border-radius: var(--bfvf-radius); background: var(--bfvf-flaeche); font-family: var(--bfvf-schrift); font-size: 16.5px; color: var(--bfvf-text); }
.bfvf-adr__aendern, .bfvf-adr__zu { flex: none; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; color: var(--bfvf-akzent); font-family: var(--bfvf-schrift); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bfvf-adr__kopf { display: none; }
.bfvf-adr__s[hidden], .bfvf-adr__l[hidden], .bfvf-adr__wahl[hidden], .bfvf-adr__f[hidden] { display: none !important; }
.bfvf-adr__raster.is-zu { display: none !important; }
.bfvf-adr[data-modus="gewaehlt"] .bfvf-adr__raster:not(.is-zu) { margin-top: 14px; }
/* Handy: Suche im Vollbild, damit Vorschlaege nicht unter der Tastatur liegen */
@media (max-width: 767px) {
  html body .bfvf-adr__s.voll { position: fixed !important; inset: 0 !important; z-index: 2147483000 !important; margin: 0 !important; padding: 14px 16px 32px !important; background: var(--bfvf-voll-grund) !important; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html body .bfvf-adr__s.voll .bfvf-adr__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-family: var(--bfvf-schrift); font-weight: 600; font-size: 17px; color: var(--bfvf-text); }
  html body .bfvf-adr__s.voll > .bfvf-f__l { display: none !important; }
  html body .bfvf-adr__s.voll .bfvf-adr__l { margin-top: 10px; box-shadow: none; }
  html body .bfvf-adr__s.voll .bfvf-adr__l li { padding: 13px 12px; }
  html body.bfvf-adr-offen { overflow: hidden !important; }
}

/* E-Mail: Tippfehler-Hinweis */
.bfvf-mailtipp { margin: 4px 0 0; font-family: var(--bfvf-schrift); font-size: 14px; line-height: 1.45; color: var(--bfvf-text); }
.bfvf-mailtipp[hidden] { display: none; }
.bfvf-mailtipp__k { padding: 0; margin: 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--bfvf-akzent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Ausweis-Aufnahme (Vorlage GA /ausweis-demo/): Wege, Seiten-Kacheln, Kamera mit Rahmen */
.bfvf-aw { display: flex; flex-direction: column; gap: 12px; font-family: var(--bfvf-schrift); color: var(--bfvf-text); }
.bfvf-aw * { box-sizing: border-box; }
.bfvf-aw[hidden], .bfvf-aw [hidden] { display: none !important; }
.bfvf-aw__wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bfvf-aw__weg { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--bfvf-rand); border-radius: var(--bfvf-radius); background: var(--bfvf-flaeche); }
.bfvf-aw__weg b { font-size: 16px; font-weight: 600; }
.bfvf-aw__weg span { font-size: 13.5px; line-height: 1.4; color: var(--bfvf-leise); }
.bfvf-aw__weg.is-an { border-color: var(--bfvf-akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bfvf-akzent) 18%, transparent); }
.bfvf-aw__weg:focus-visible { outline: 2px solid var(--bfvf-akzent); outline-offset: 2px; }
.bfvf-aw__panel { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--bfvf-rand-leicht); border-radius: var(--bfvf-radius); background: var(--bfvf-flaeche); }
.bfvf-aw__seiten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bfvf-aw__seite { position: relative; aspect-ratio: 1.586; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; border: 2px dashed var(--bfvf-rand); border-radius: calc(var(--bfvf-radius) - 2px); background: var(--bfvf-hover); color: var(--bfvf-leise); font-size: 13.5px; text-align: center; }
label.bfvf-aw__seite { cursor: pointer; }
.bfvf-aw__seite.is-da { border-style: solid; border-color: var(--bfvf-akzent); padding: 0; }
.bfvf-aw__seite img { width: 100%; height: 100%; object-fit: cover; }
.bfvf-aw__tag { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(10, 26, 36, .78); color: #fff; font-size: 11.5px; font-weight: 600; }
.bfvf-aw__knopf { all: unset; box-sizing: border-box; cursor: pointer; display: block; text-align: center; padding: 12px 16px; min-height: 46px; border-radius: var(--bfvf-radius); background: var(--bfvf-akzent); color: #fff; font-weight: 600; font-size: 16px; }
.bfvf-aw__knopf--zwei { background: var(--bfvf-flaeche); color: var(--bfvf-akzent); border: 1.5px solid var(--bfvf-akzent); }
.bfvf-aw__knopf:focus-visible { outline: 2px solid var(--bfvf-akzent); outline-offset: 2px; }
.bfvf-aw__hinweis, .bfvf-aw__status { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--bfvf-leise); }
.bfvf-aw__eine { all: unset; cursor: pointer; align-self: flex-start; color: var(--bfvf-akzent); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.bfvf-cam { position: fixed; inset: 0; z-index: 2147483647; display: flex; flex-direction: column; background: #000; font-family: var(--bfvf-schrift); }
.bfvf-cam[hidden] { display: none !important; }
.bfvf-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bfvf-cam__maske { position: absolute; inset: 0; pointer-events: none; }
.bfvf-cam__rahmen { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: min(88vw, 62vh * 1.586); aspect-ratio: 1.586; border: 3px solid #fff; border-radius: 16px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .55); }
.bfvf-cam__rahmen::before, .bfvf-cam__rahmen::after { content: ""; position: absolute; width: 34px; height: 34px; border: 5px solid #ffdc0f; }
.bfvf-cam__rahmen::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.bfvf-cam__rahmen::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.bfvf-cam__titel { position: absolute; left: 0; right: 0; top: max(18px, env(safe-area-inset-top)); text-align: center; color: #fff; font-weight: 700; font-size: 20px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.bfvf-cam__titel small { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; opacity: .9; }
.bfvf-cam__schritte { position: absolute; left: 0; right: 0; top: calc(44% + min(44vw, 31vh) + 18px); display: flex; justify-content: center; gap: 8px; }
.bfvf-cam__schritte span { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; color: #fff; font-size: 13px; }
.bfvf-cam__schritte span.is-an { background: #ffdc0f; border-color: #ffdc0f; color: #0a1a24; font-weight: 700; }
.bfvf-cam__schritte span.is-ok { background: #1f7a4d; border-color: #1f7a4d; }
.bfvf-cam__lokal { position: absolute; left: 0; right: 0; top: calc(44% + min(44vw, 31vh) + 56px); padding: 0 16px; text-align: center; color: #fff; font-size: 13px; opacity: .9; }
.bfvf-cam__leiste { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px max(22px, env(safe-area-inset-bottom)); }
.bfvf-cam__ausl { all: unset; flex: 0 0 74px; width: 74px; height: 74px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .35); cursor: pointer; }
.bfvf-cam__txt { all: unset; min-width: 90px; color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; }
.bfvf-cam__txt:last-child { text-align: right; }
.bfvf-cam__blitz { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.bfvf-cam__blitz.is-an { opacity: .8; transition: none; }
.bfvf-cam__fehler { position: absolute; left: 20px; right: 20px; top: 40%; color: #fff; text-align: center; font-size: 16px; }
.bfvf-cam__fehler[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bfvf-cam__blitz { transition: none; } }

/* Upload-Feld: lange Dateinamen umbrechen statt die Seite zu verbreitern (User 28.10.2026) */
.bfvf-up__l { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.bfvf-up__l li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bfvf-up__n { flex: 1 1 auto; min-width: 0; }
.bfvf-up__n b { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }

/* Auswahl aus einer Liste mit Flaggen (wahl(), z. B. Land; seit v1.181.0 – MD meldete am 02.11.2026 eine ungestylte Liste:
   die Optik lag bisher nur in den Portal-Motoren mit Praefix bfvjg). Die Liste haengt am body (position fixed, lege() in felder.js). */
.bfvf-wahl { position: relative; }
.bfvf-wahl__feld { position: relative; }
.bfvf-wahl__kopf { display: none; }
.bfvf-wahl__f { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; }
.bfvf-wahl__f img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.bfvf-wahl__i { width: 100%; box-sizing: border-box; }
.bfvf-wahl__i.mit-flagge { padding-left: 50px !important; }
body > ul.bfvf-wahl__l, .bfvf-wahl ul.bfvf-wahl__l { position: fixed; z-index: 100000; overflow-y: auto; margin: 0 !important; padding: 6px !important; list-style: none !important; background: var(--bfvf-flaeche); border: 1px solid var(--bfvf-rand-leicht); border-radius: var(--bfvf-radius); box-shadow: var(--bfvf-schatten); font-family: var(--bfvf-schrift); }
ul.bfvf-wahl__l[hidden] { display: none !important; }
ul.bfvf-wahl__l li { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 9px 12px !important; border-radius: calc(var(--bfvf-radius) - 2px); cursor: pointer; font-size: 15px; line-height: 1.35; color: var(--bfvf-text); list-style: none !important; }
ul.bfvf-wahl__l li::before, ul.bfvf-wahl__l li::marker { content: none !important; }
ul.bfvf-wahl__l li img { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; flex: none; }
ul.bfvf-wahl__l li span { flex: 1; min-width: 0; text-align: start; }
ul.bfvf-wahl__l li i { font-style: normal; font-weight: 700; color: var(--bfvf-akzent); }
ul.bfvf-wahl__l li.is-akt, ul.bfvf-wahl__l li:hover { background: var(--bfvf-hover); }
ul.bfvf-wahl__l li.is-leer { cursor: default; color: var(--bfvf-leise); }
@media (max-width: 767px) {
  html body .bfvf-wahl.voll { position: fixed !important; inset: 0 !important; z-index: 2147483000 !important; margin: 0 !important; padding: 14px 16px 32px !important; background: var(--bfvf-voll-grund) !important; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html body .bfvf-wahl.voll .bfvf-wahl__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-family: var(--bfvf-schrift); font-weight: 600; font-size: 17px; color: var(--bfvf-text); }
  html body .bfvf-wahl.voll .bfvf-wahl__zu { padding: 6px 2px; color: var(--bfvf-akzent); font-weight: 600; font-size: 15px; cursor: pointer; touch-action: manipulation; }
  html body .bfvf-wahl.voll ul.bfvf-wahl__l { position: static !important; max-height: none !important; margin: 10px 0 0 !important; box-shadow: none !important; }
  html body .bfvf-wahl.voll ul.bfvf-wahl__l li { padding: 13px 12px !important; }
}

