/* ==========================================================================
   VARIOFIT public - Layout der Konfigurator-Oberfläche (Fragment)
   Zweck:   NUR Layout, Regler, 3D-Overlay und Tabellen. Karten (.oa-card*), Eingabefelder (.form-control) und
            Knöpfe (.btn .btn-primary) liefert das Homepage-Template. Alles Eigene: Präfix vfpub-, gescopet unter .vfpub.
   Farben:  #006aac #005590 #444 #dee2e6 #f8f9fa #fff (Template-CI) - keine weiteren.
   Hinweis: Das Template setzt global "* {margin:0; padding:0}" und eigene table-/input-Regeln; deshalb werden
            Abstände und Tabellen hier unter .vfpub ausdrücklich gesetzt.
   ========================================================================== */

.vfpub, .vfpub *, .vfpub *::before, .vfpub *::after { box-sizing: border-box; }
.vfpub [hidden] { display: none !important; }
.vfpub { color: #444; font-family: inherit; }

/* --- Raster: mobil einspaltig (3D oben), Desktop (>= 992 px) zwei Spalten --- */
.vfpub .vfpub-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.vfpub .vfpub-karte-3d { order: -1; }
.vfpub .vfpub-raster .oa-card, .vfpub .vfpub-karte-konfig { margin-bottom: 0; }
.vfpub .vfpub-karte-konfig { margin-top: 16px; }
@media (min-width: 992px) {
    .vfpub .vfpub-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .vfpub .vfpub-karte-3d { order: 0; }
}

/* --- Regler --- */
.vfpub .vfpub-regler { margin: 0 0 18px 0; }
.vfpub .vfpub-regler:last-child { margin-bottom: 0; }
.vfpub .vfpub-regler-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 6px 0; }
.vfpub .vfpub-regler-label { display: block; margin: 0; font-weight: 600; color: #444; }
.vfpub .vfpub-regler-grenzen { font-size: .8rem; color: #444; opacity: .75; white-space: nowrap; }
.vfpub .vfpub-regler-zeile { display: flex; align-items: center; gap: 12px; }
.vfpub input.vfpub-range { flex: 1 1 auto; min-width: 0; width: auto; padding: 0; margin: 0; border: 0; height: 24px; accent-color: #006aac; cursor: pointer; }
.vfpub input.vfpub-zahl { flex: 0 0 96px; width: 96px; padding: 8px 10px; text-align: right; }
.vfpub .vfpub-einheit { flex: 0 0 auto; min-width: 2.2em; color: #444; }

/* --- 3D-Vorschau --- */
.vfpub .vfpub-3d-body { padding: 12px; }
.vfpub .vfpub-3d-wrap { position: relative; width: 100%; height: 320px; border: 1px solid #dee2e6; border-radius: 4px; background: #e6e9ed; overflow: hidden; }
@media (min-width: 992px) { .vfpub .vfpub-3d-wrap { height: 460px; } }
.vfpub .vfpub-3d { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.vfpub .vfpub-3d canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.vfpub .vfpub-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center;
    padding: 16px; text-align: center; background: rgba(248, 249, 250, .85); color: #444; pointer-events: none; }
.vfpub .vfpub-overlay[hidden] { display: none !important; }
.vfpub .vfpub-hinweis { margin: 8px 0 0 0; font-size: .85rem; color: #444; opacity: .75; }

/* --- Meldungen (dezent) --- */
.vfpub .vfpub-meldung { margin: 12px 0 0 0; padding: 8px 12px; font-size: .9rem; background: #f8f9fa; border: 1px solid #dee2e6; border-left: 3px solid #dee2e6; border-radius: 4px; }
.vfpub .vfpub-meldung.vfpub-fehler { border-left-color: #005590; color: #005590; }
.vfpub .vfpub-meldung p { margin: 0; padding: 0; }
.vfpub .vfpub-meldung p + p { margin-top: 4px; }

/* --- Tabellen: 1px #dee2e6, Zebra #f8f9fa --- */
.vfpub table.vfpub-tabelle { width: 100%; margin: 0 0 12px 0; border-collapse: collapse; border: 1px solid #dee2e6; background: #fff; }
.vfpub table.vfpub-tabelle:last-child { margin-bottom: 0; }
.vfpub table.vfpub-tabelle th, .vfpub table.vfpub-tabelle td { padding: 6px 12px; text-align: left; border: 1px solid #dee2e6; color: #444; background: transparent; font-weight: 400; vertical-align: top; }
.vfpub table.vfpub-tabelle th { width: 45%; font-weight: 600; }
.vfpub table.vfpub-tabelle tbody tr { background: #fff; }
.vfpub table.vfpub-tabelle tbody tr:nth-child(odd) { background: #f8f9fa; }
.vfpub table.vfpub-tabelle td { overflow-wrap: anywhere; }

/* --- Fuß der Konfigurations-Karte: Knopf + Hinweis, mobil untereinander --- */
.vfpub .vfpub-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.vfpub .vfpub-fuss .vfpub-hinweis { margin: 0; }
.vfpub .vfpub-pdf-knopf[disabled] { opacity: .6; cursor: default; }

/* --- P4c: Schritt 2 (E-Mail an LORO) unter dem PDF-Knopf; [hidden] muss trotz display:flex wirken --- */
.vfpub .vfpub-mail-schritt { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 8px; border-top: 1px solid #dee2e6; }
.vfpub .vfpub-mail-schritt[hidden] { display: none !important; }
.vfpub .vfpub-mail-schritt p { margin: 0; }
