/* BFV GB/GA Core – „Nachweis nachreichen“ (assets/nachreichen.js). Optik der Feldbausteine (Präfix bfvf) in GB-Farben; alles unter
   #bfvgc-nr bzw. .bfvgc-teilen, damit Theme und WPBakery nichts verschieben. */
#bfvgc-nr, .bfvgc-teilen {
  --bfvf-akzent: #1d4e80; --bfvf-text: #1f2a37; --bfvf-leise: #5b6775; --bfvf-rand: #c7d1dc; --bfvf-rand-leicht: #e3e8ee;
  --bfvf-hover: #f3f6fa; --bfvf-radius: 10px; --bfvf-schrift: inherit;
  font-size: 16px; line-height: 1.5; color: var(--bfvf-text);
}
#bfvgc-nr { max-width: 760px; margin: 0 auto 48px; text-align: left; }
#bfvgc-nr *, .bfvgc-teilen * { box-sizing: border-box; }
#bfvgc-nr [hidden], .bfvgc-teilen [hidden] { display: none !important; }
#bfvgc-nr .bfvgc-karte { background: #fff; border: 1px solid var(--bfvf-rand-leicht); border-radius: 16px; padding: 28px 30px 26px; box-shadow: 0 6px 24px rgba(16, 42, 72, .06); }
#bfvgc-nr.bfvgc-nr--ss .bfvgc-karte { padding: 0; border: 0; box-shadow: none; background: none; }
#bfvgc-nr .bfvgc-titel { margin: 0 0 6px; font-size: 24px; line-height: 1.3; color: var(--bfvf-akzent); }
#bfvgc-nr .bfvgc-objekt { margin: 0 0 18px; color: var(--bfvf-leise); }
#bfvgc-nr .bfvgc-objekt strong { color: var(--bfvf-text); }
#bfvgc-nr .bfvgc-frage { margin: 0 0 10px; font-weight: 600; }
#bfvgc-nr .bfvgc-zwischen, .bfvgc-teilen .bfvgc-zwischen { margin: 22px 0 10px; font-size: 17px; line-height: 1.35; color: var(--bfvf-akzent); }
#bfvgc-nr p { margin: 0 0 12px; }
#bfvgc-nr .bfvgc-leise, .bfvgc-teilen .bfvgc-leise { font-size: 14px; color: var(--bfvf-leise); }
#bfvgc-nr .bfvgc-bereich { margin-top: 18px; }

/* Kacheln (Auswahl) */
#bfvgc-nr .bfvf-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 6px; }
#bfvgc-nr .bfvgc-kacheln--klein { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 14px; }
#bfvgc-nr button.bfvf-k { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--bfvf-rand); border-radius: var(--bfvf-radius); background: #fff; color: var(--bfvf-text); transition: border-color .15s, box-shadow .15s; }
#bfvgc-nr button.bfvf-k:hover { border-color: var(--bfvf-akzent); }
#bfvgc-nr button.bfvf-k:focus-visible { outline: 2px solid var(--bfvf-akzent); outline-offset: 2px; }
#bfvgc-nr button.bfvf-k.is-an { border-color: var(--bfvf-akzent); box-shadow: 0 0 0 3px rgba(29, 78, 128, .15); background: #f5f8fc; }
#bfvgc-nr .bfvf-k__r { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--bfvf-rand); border-radius: 50%; background: #fff; }
#bfvgc-nr .is-an .bfvf-k__r { border-color: var(--bfvf-akzent); box-shadow: inset 0 0 0 4px #fff; background: var(--bfvf-akzent); }
#bfvgc-nr .bfvf-k__x { display: flex; flex-direction: column; gap: 2px; }
#bfvgc-nr .bfvf-k__t { font-weight: 600; font-size: 16px; line-height: 1.35; }
#bfvgc-nr .bfvf-k__x small { font-size: 13.5px; line-height: 1.4; color: var(--bfvf-leise); }

/* Felder */
#bfvgc-nr .bfvf-f { display: block; margin: 0 0 14px; }
#bfvgc-nr .bfvf-f__l { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14.5px; color: var(--bfvf-text); }
#bfvgc-nr .bfvf-pf { color: #a32e24; }
#bfvgc-nr input.bfvf-i, #bfvgc-nr textarea.bfvf-i, #bfvgc-nr select.bfvf-i {
  display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; font: inherit; font-size: 16.5px; color: var(--bfvf-text);
  background: #fff; border: 1px solid var(--bfvf-rand); border-radius: var(--bfvf-radius); box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none;
}
#bfvgc-nr .bfvf-i:focus { border-color: var(--bfvf-akzent); box-shadow: 0 0 0 3px rgba(29, 78, 128, .15); }
#bfvgc-nr .bfvf-f__h { display: block; margin-top: 6px; font-size: 13.5px; color: var(--bfvf-leise); }
#bfvgc-nr .bfvgc-feldfehler { display: block; margin-top: 6px; font-size: 13.5px; color: #a32e24; }
#bfvgc-nr .bfvgc-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
#bfvgc-nr .bfvgc-raster--drei { grid-template-columns: 1fr 1fr 1fr; }
/* Anschrift: Straße | Hausnr. und PLZ | Ort (die Adresssuche der Bausteine legt den Raster in .bfvf-adr__raster) */
#bfvgc-nr .bfvgc-raster--adr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#bfvgc-nr .bfvgc-raster--adr > .g3 { grid-column: span 3; }
#bfvgc-nr .bfvgc-raster--adr > .g1 { grid-column: span 1; }
#bfvgc-nr .bfvf-adr { margin: 0 0 4px; }

/* Upload */
#bfvgc-nr .bfvf-up { margin: 4px 0 12px; }
#bfvgc-nr .bfvf-up__i { display: none !important; }
#bfvgc-nr button.bfvf-up__k { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 22px 16px; border: 2px dashed var(--bfvf-rand); border-radius: var(--bfvf-radius); background: var(--bfvf-hover); color: var(--bfvf-akzent); text-align: center; transition: border-color .15s; }
#bfvgc-nr button.bfvf-up__k:hover, #bfvgc-nr button.bfvf-up__k:focus-visible { border-color: var(--bfvf-akzent); }
#bfvgc-nr .bfvf-up__k svg { width: 28px; height: 28px; }
#bfvgc-nr .bfvf-up__k span { font-weight: 600; font-size: 16px; }
#bfvgc-nr .bfvf-up__k small { font-size: 13px; color: var(--bfvf-leise); }
#bfvgc-nr .bfvf-up__s { margin: 8px 0 0; font-size: 14px; color: var(--bfvf-leise); }
#bfvgc-nr .bfvf-up__s:empty { display: none; }
#bfvgc-nr .bfvf-up__l li { padding: 8px 10px; border: 1px solid var(--bfvf-rand-leicht); border-radius: var(--bfvf-radius); background: #fff; }
#bfvgc-nr .bfvf-up__v { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bfvf-hover); color: var(--bfvf-akzent); }
#bfvgc-nr .bfvf-up__v svg { width: 22px; height: 22px; }
#bfvgc-nr button.bfvf-up__x { all: unset; cursor: pointer; flex: 0 0 34px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--bfvf-leise); }
#bfvgc-nr button.bfvf-up__x:hover { background: #fdecea; color: #a32e24; }
#bfvgc-nr .bfvf-up__x svg { width: 18px; height: 18px; }

/* Kästen */
#bfvgc-nr .bfvgc-info { margin: 0 0 16px; padding: 14px 16px; border-left: 4px solid var(--bfvf-akzent); border-radius: 8px; background: #f3f7fb; font-size: 15px; }
#bfvgc-nr .bfvgc-info p { margin: 0 0 6px; }
#bfvgc-nr .bfvgc-info p:last-child { margin: 0; }
#bfvgc-nr .bfvgc-info ul, #bfvgc-nr ul.bfvgc-liste { margin: 4px 0 0 20px; padding: 0; }
#bfvgc-nr .bfvgc-info li, #bfvgc-nr ul.bfvgc-liste li { margin: 2px 0; }
#bfvgc-nr ul.bfvgc-liste { margin-bottom: 4px; font-weight: 600; }
#bfvgc-nr .bfvgc-block { padding: 12px 14px; border-radius: 8px; background: var(--bfvf-hover); font-weight: 600; margin-bottom: 14px; }
.bfvgc-teilen { margin: 26px 0 0; padding: 18px 18px 14px; border: 1px solid var(--bfvf-rand-leicht); border-radius: 12px; background: #fafbfd; font-size: 15px; }
.bfvgc-teilen .bfvgc-zwischen { margin-top: 0; }
.bfvgc-teilen p { margin: 0 0 12px; }
.bfvgc-teilen--ss { margin-bottom: 18px; }

/* Haken, Knöpfe, Fehler */
#bfvgc-nr label.bfvgc-haken { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 10px; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
#bfvgc-nr label.bfvgc-haken input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bfvf-akzent); }
#bfvgc-nr .bfvgc-fehler { min-height: 0; margin: 8px 0 10px; color: #a32e24; font-weight: 600; }
#bfvgc-nr .bfvgc-fehler:empty { display: none; }
#bfvgc-nr button.bfvgc-knopf, #bfvgc-nr a.bfvgc-knopf, .bfvgc-teilen button.bfvgc-knopf {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-block; padding: 14px 28px; border-radius: var(--bfvf-radius);
  background: var(--bfvf-akzent); color: #fff !important; font-weight: 700; font-size: 16.5px; text-align: center; transition: background .15s;
}
#bfvgc-nr button.bfvgc-knopf:hover, #bfvgc-nr a.bfvgc-knopf:hover { background: #163d65; }
#bfvgc-nr button.bfvgc-knopf[disabled] { opacity: .7; cursor: wait; }
#bfvgc-nr .bfvgc-knopf:focus-visible, .bfvgc-teilen .bfvgc-knopf:focus-visible { outline: 2px solid var(--bfvf-akzent); outline-offset: 2px; }
#bfvgc-nr button.bfvgc-knopf.bfvgc-knopf--zweit, #bfvgc-nr a.bfvgc-knopf.bfvgc-knopf--zweit, .bfvgc-teilen button.bfvgc-knopf.bfvgc-knopf--zweit { background: #fff !important; color: var(--bfvf-akzent) !important; border: 1.5px solid var(--bfvf-akzent); padding: 11px 20px !important; font-size: 15.5px !important; }
#bfvgc-nr .bfvgc-sig { margin: 0 0 6px; }

/* Ergebnis-Meldungen */
#bfvgc-nr .bfvgc-meldung { padding-left: 18px; border-left: 5px solid var(--bfvf-akzent); }
#bfvgc-nr .bfvgc-meldung--ok { border-left-color: #2e7d4f; }
#bfvgc-nr .bfvgc-meldung--fehler { border-left-color: #a32e24; }
#bfvgc-nr .bfvgc-meldung--info { border-left-color: #c58a12; }
#bfvgc-nr .bfvgc-meldung a:not(.bfvgc-knopf) { color: var(--bfvf-akzent); text-decoration: underline; }

@media (max-width: 599px) {
  #bfvgc-nr .bfvgc-karte { padding: 20px 16px; border-radius: 12px; }
  #bfvgc-nr .bfvgc-titel { font-size: 20px; }
  #bfvgc-nr .bfvgc-raster:not(.bfvgc-raster--adr), #bfvgc-nr .bfvgc-raster--drei { grid-template-columns: 1fr; }
  #bfvgc-nr button.bfvgc-knopf { display: block; width: 100%; }
  /* PLZ braucht am Handy mehr als ein Viertel (fünf Ziffern) */
  #bfvgc-nr .bfvgc-raster--adr { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  #bfvgc-nr .bfvgc-raster--adr > .g3:nth-child(1) { grid-column: span 6; }
  #bfvgc-nr .bfvgc-raster--adr > .g1:nth-child(2) { grid-column: span 2; }
  #bfvgc-nr .bfvgc-raster--adr > .g1:nth-child(3) { grid-column: span 3; }
  #bfvgc-nr .bfvgc-raster--adr > .g3:nth-child(4) { grid-column: span 5; }
}
