/* ============================================================
   STYLES.CSS – Header, Startseite, Konfigurator, Footer
   ============================================================ */

/* ── HEADER ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--secondary);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.site-header .navbar {
  height: var(--header-h);
  padding: 0;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -.3px;
  text-decoration: none;
}

.site-header .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.site-header .brand-text {
  color: #fff;
}

.site-header .nav-link {
  color: rgba(255,255,255,.75) !important;
  font-weight: 500;
  padding: .45rem .85rem !important;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff !important;
}

.site-header .navbar-toggler {
  border: 1px solid rgba(255,255,255,.3);
  padding: .3rem .5rem;
}
.site-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navbar */
@media (max-width: 991px) {
  .site-header .navbar-collapse {
    background: var(--secondary);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: .5rem 0 1rem;
    margin-top: 0;
  }
}

/* ── BREADCRUMB BAR ────────────────────────────────────── */
.page-header-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: .55rem 0;
}
.page-header-bar .breadcrumb { margin: 0; font-size: .85rem; }
.page-header-bar .breadcrumb-item a { color: var(--text-muted); }
.page-header-bar .breadcrumb-item a:hover { color: var(--primary); }
.page-header-bar .breadcrumb-item.active { color: var(--text-body); }
.page-header-bar .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ── HERO ──────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #2a2a4a 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,93,4,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(232,93,4,.18);
  border: 1px solid rgba(232,93,4,.4);
  color: var(--accent);
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-section h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 1rem;
}
.hero-section h1 span { color: var(--primary); }
.hero-section .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin-bottom: 1.75rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-hero {
  padding: .7rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
}
.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px rgba(232,93,4,.4);
}
.btn-hero-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ── USP STRIP ─────────────────────────────────────────── */
.usp-strip {
  background: var(--primary);
  padding: .85rem 0;
}
.usp-strip .usp-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  padding: .2rem .75rem;
}

/* ── PRODUCT CARDS ─────────────────────────────────────── */
.product-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-card .card-img-wrap {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f0f4ff, #e8ecf8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .card-img-wrap img { width:100%; height:100%; object-fit:cover; }
.product-card .card-img-placeholder { font-size: 3rem; color: var(--primary); opacity: .35; }
.product-card .card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card .card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; color: var(--text-dark); }
.product-card .card-text { font-size: .9rem; color: var(--text-muted); flex: 1; }
.product-card .card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  margin-top: .75rem;
  border-top: 1px solid var(--border);
}
.product-card .price-from { font-size: .78rem; color: var(--text-muted); }
.product-card .price-val  { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

/* ── KONFIGURATOR PAGE ─────────────────────────────────── */
.configurator-page body,
body.configurator-page {
  background: var(--bg-light);
}

.configurator-main {
  background: var(--bg-light);
  min-height: calc(100vh - var(--header-h));
  padding: 1.5rem 0 3rem;
}

/* Zweispaltig: Links Form, Rechts Sidebar */
.config-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 991px) {
  .config-layout { grid-template-columns: 1fr; }
  .config-sidebar-col { order: -1; }
}

/* Produkt-Header im Konfigurator */
.config-product-header {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.cph-group {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cph-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: .2rem 0 .3rem;
}
.cph-desc { font-size: .9rem; color: var(--text-muted); margin: 0; }
.cph-specs { display: flex; gap: 1.25rem; flex-shrink: 0; }
.cph-spec {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: .5rem .85rem;
  font-size: .85rem;
}
.cph-spec i { color: var(--primary); font-size: 1.1rem; }
.spec-val { font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.spec-lbl { color: var(--text-muted); font-size: .75rem; }

/* Schritt-Fortschrittsleiste */
.step-progress {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  cursor: default;
}
.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-light);
  color: var(--text-muted);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 1;
  position: relative;
}
.step-item.active .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(232,93,4,.18);
}
.step-item.done .step-dot {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.step-label {
  font-size: .73rem;
  color: var(--text-muted);
  margin-top: .3rem;
  font-weight: 500;
  white-space: nowrap;
}
.step-item.active .step-label { color: var(--primary); font-weight: 600; }
.step-item.done  .step-label { color: #16a34a; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 22px;
  transition: background .2s;
}
.step-line.done { background: #22c55e; }
.step-line.active { background: var(--primary); }

/* Konfigurator Card */
.config-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.step-header {
  padding: 1.25rem 1.5rem 0;
}
.step-number {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.step-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: .25rem 0 0;
}
.fields-grid {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.field-full { grid-column: 1 / -1; }

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}
.btn-step {
  padding: .6rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
}

/* ── KONFIGURATOR SIDEBAR ──────────────────────────────── */
.config-sidebar-col {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

/* Preis-Box */
.price-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(232,93,4,.3);
}
.price-box .pb-label { font-size: .85rem; opacity: .85; margin-bottom: .35rem; }
.price-box .pb-value { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.price-box .pb-sub   { font-size: .78rem; opacity: .72; margin-top: .35rem; }

/* Zusammenfassung */
.summary-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
}
.summary-box .sb-head {
  background: var(--secondary);
  color: #fff;
  padding: .75rem 1.1rem;
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.summary-box .sb-body { padding: .9rem 1.1rem; }
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.summary-item:last-child { border-bottom: none; }
.summary-item .si-label { color: var(--text-muted); }
.summary-item .si-value { font-weight: 600; text-align: right; }

/* Info-Box Sidebar */
.info-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.info-box .ib-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-body);
  padding: .3rem 0;
}
.info-box .ib-item i { color: var(--primary); font-size: 1rem; width: 18px; text-align: center; }

/* Kontakt-Button */
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .65rem 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  background: #fff;
  transition: all .15s;
  text-decoration: none;
}
.contact-btn:hover { background: var(--primary); color: #fff; }

/* ── FELDER ────────────────────────────────────────────── */
.field-wrap { display: flex; flex-direction: column; }
.field-wrap .form-label { margin-bottom: .35rem; }

/* Farb-Optionen */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: .6rem;
}
.color-opt {
  cursor: pointer;
  text-align: center;
  border-radius: var(--radius);
  padding: .45rem .3rem;
  border: 2px solid transparent;
  transition: all .15s;
}
.color-opt:hover { border-color: var(--primary); background: rgba(232,93,4,.06); }
.color-opt.selected { border-color: var(--primary); background: rgba(232,93,4,.08); }
.color-swatch { width: 38px; height: 38px; border-radius: 50%; margin: 0 auto .3rem; border: 1px solid rgba(0,0,0,.1); }
.color-name { font-size: .7rem; color: var(--text-muted); line-height: 1.2; }

/* Option-Karten */
.option-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .65rem; }
.option-card-item {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem .65rem;
  text-align: center;
  transition: all .15s;
  background: #fff;
}
.option-card-item:hover   { border-color: var(--primary); background: rgba(232,93,4,.04); }
.option-card-item.selected { border-color: var(--primary); background: rgba(232,93,4,.06); }
.option-card-item input { display: none; }
.option-card-item .oc-icon  { font-size: 1.6rem; color: var(--primary); margin-bottom: .35rem; }
.option-card-item .oc-label { font-size: .85rem; font-weight: 600; color: var(--text-dark); }
.option-card-item .oc-price { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
}
.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(232,93,4,.04);
  color: var(--primary);
}
.upload-dropzone i { font-size: 2rem; opacity: .5; display: block; margin-bottom: .5rem; }
.upload-link { color: var(--primary); cursor: pointer; text-decoration: underline; }

.file-list { display: flex; flex-direction: column; gap: .4rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .75rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: .85rem;
}
.file-item .fi-remove { margin-left: auto; cursor: pointer; color: var(--text-muted); }
.file-item .fi-remove:hover { color: #dc2626; }

/* Validierung */
.is-invalid { border-color: #ef4444 !important; }
.invalid-feedback { color: #ef4444; font-size: .8rem; margin-top: .25rem; display: block; }

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,.65);
  padding: 3rem 0 1.25rem;
  margin-top: 3rem;
}
.site-footer h5 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a  { color: rgba(255,255,255,.55); transition: color .15s; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer hr  { border-color: rgba(255,255,255,.1); margin: 1.5rem 0; }
.site-footer .footer-bottom { text-align: center; font-size: .82rem; }

/* ── CONFIG STEP INDICATOR (Header) ───────────────────── */
.config-step-indicator {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}

/* ── AI HINT BOX ───────────────────────────────────────── */
.ai-hint-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.ai-hint-box .ai-icon { color: #2563eb; font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }

/* ============================================================
   FELD-TYPEN (field_renderer.php Klassen)
   ============================================================ */

/* ── Feld-Wrapper ──────────────────────────────────────── */
.config-field {
  display: flex;
  flex-direction: column;
}
.field-full-width { grid-column: 1 / -1; }
.field-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dark);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.req-mark { color: var(--primary); }
.field-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.field-error { font-size: .8rem; color: #dc2626; margin-top: .25rem; min-height: 1rem; }
.tooltip-icon { color: var(--text-muted); cursor: help; font-size: .9rem; }

/* ── Zahl + Einheit ────────────────────────────────────── */
.input-with-unit {
  display: flex;
  align-items: center;
  gap: 0;
}
.input-with-unit .form-control {
  border-radius: var(--radius) 0 0 var(--radius);
  flex: 1;
}
.input-unit {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .55rem .75rem;
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Menge (Stepper) ───────────────────────────────────── */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}
.qty-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-minus { border-radius: var(--radius) 0 0 var(--radius); }
.qty-plus  { border-radius: 0 var(--radius) var(--radius) 0; }
.quantity-input {
  width: 60px;
  text-align: center;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
}

/* ── Radio-Karten ──────────────────────────────────────── */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .65rem;
}
.radio-option { cursor: pointer; }
.radio-option input { display: none; }
.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .85rem .65rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: all .15s;
  gap: .3rem;
}
.radio-option input:checked + .radio-card {
  border-color: var(--primary);
  background: rgba(232,93,4,.06);
  box-shadow: 0 0 0 3px rgba(232,93,4,.12);
}
.radio-card:hover { border-color: var(--primary); background: rgba(232,93,4,.04); }
.radio-img   { width: 100%; max-height: 60px; object-fit: contain; border-radius: 4px; }
.radio-label { font-weight: 600; font-size: .88rem; color: var(--text-dark); }
.radio-price { font-size: .75rem; color: var(--primary); font-weight: 600; }
.radio-desc  { font-size: .75rem; color: var(--text-muted); }

/* ── Checkboxen ────────────────────────────────────────── */
.checkbox-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .85rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: .45rem;
  background: #fff;
}
.checkbox-option:hover { border-color: var(--primary); background: rgba(232,93,4,.04); }
.checkbox-option input:checked ~ .checkbox-label { color: var(--primary); }
.checkbox-option input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-label { font-size: .92rem; font-weight: 500; color: var(--text-dark); flex: 1; }
.checkbox-price { font-size: .78rem; color: var(--primary); font-weight: 600; white-space: nowrap; }

/* ── Divider ───────────────────────────────────────────── */
.field-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .5rem 0;
}
.field-divider hr { flex: 1; border-color: var(--border); margin: 0; }
.field-divider span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); white-space: nowrap; }

/* ── Info-Box (Feld) ───────────────────────────────────── */
.config-field .info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .88rem;
  color: #1e40af;
}
.info-detail { font-size: .82rem; color: #3b82f6; margin: .35rem 0 0; }

/* ── Stoff-Auswahl ─────────────────────────────────────── */
.fabric-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: .25rem;
}
.fabric-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem;
  cursor: pointer;
  transition: all .18s;
  background: #fff;
  position: relative;
}
.fabric-card:hover   { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.fabric-card.selected {
  border-color: var(--primary);
  background: rgba(232,93,4,.05);
  box-shadow: 0 0 0 3px rgba(232,93,4,.15);
}
.fabric-preview {
  width: 100%; aspect-ratio: 3/2;
  background: var(--bg-light);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: .6rem;
  display: flex; align-items: center; justify-content: center;
}
.fabric-preview img { width: 100%; height: 100%; object-fit: cover; }
.fabric-placeholder  { font-size: 1.6rem; color: var(--text-muted); opacity: .4; }
.fabric-info { font-size: .82rem; }
.fabric-name { font-weight: 700; color: var(--text-dark); margin-bottom: .15rem; }
.fabric-code { color: var(--text-muted); font-size: .75rem; font-family: monospace; }
.fabric-cat  { color: var(--text-muted); font-size: .75rem; }
.fabric-uv   {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: .72rem;
  font-weight: 600;
  padding: .1em .5em;
  border-radius: 999px;
  margin-top: .3rem;
}
.fabric-colors { display: flex; gap: .25rem; margin-top: .5rem; flex-wrap: wrap; }
.color-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1);
  display: inline-block;
}
.fabric-check {
  position: absolute;
  top: .5rem; right: .5rem;
  color: var(--primary);
  font-size: 1.1rem;
  display: none;
}
.fabric-card.selected .fabric-check { display: block; }

/* ── Farb-Auswahl ──────────────────────────────────────── */
.color-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .6rem;
  margin-top: .25rem;
}
.color-swatch {
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: .5rem .3rem;
  transition: all .15s;
  position: relative;
}
.color-swatch:hover { border-color: var(--primary); background: rgba(232,93,4,.06); }
.color-swatch.selected {
  border-color: var(--primary);
  background: rgba(232,93,4,.08);
}
.swatch-dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: block;
  margin: 0 auto .35rem;
  border: 2px solid rgba(0,0,0,.08);
}
.swatch-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.swatch-name { font-size: .72rem; color: var(--text-muted); line-height: 1.2; word-break: break-word; }
.swatch-check {
  position: absolute;
  top: 3px; right: 3px;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: #fff;
}
.color-swatch.selected .swatch-check { display: flex; }

/* ============================================================
   KONFIGURATOREN-ÜBERSICHT (configurators.php)
   ============================================================ */

/* ── Page Hero ─────────────────────────────────────────── */
.cat-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2a2a4a 100%);
  padding: 2.5rem 0 2rem;
  color: #fff;
}
.cat-breadcrumb { margin-bottom: 1rem; }
.cat-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.6); font-size: .85rem; }
.cat-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.cat-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.5); font-size: .85rem; }
.cat-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }
.cat-hero-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}
.cat-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0;
}

/* ── Layout ────────────────────────────────────────────── */
.cat-main { background: var(--bg-light); padding: 2rem 0 4rem; }
.cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 991px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-sidebar { display: flex; gap: 1rem; flex-wrap: wrap; }
  .cat-filter-box, .cat-usp-box { flex: 1; min-width: 240px; }
}

/* ── Sidebar Filter-Box ────────────────────────────────── */
.cat-filter-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.cfb-head {
  background: var(--secondary);
  color: #fff;
  padding: .85rem 1.1rem;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
}
.cfb-list {
  list-style: none;
  margin: 0;
  padding: .4rem 0;
}
.cfb-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1.1rem;
  color: var(--text-body);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .12s, color .12s;
  border-left: 3px solid transparent;
}
.cfb-item:hover {
  background: rgba(232,93,4,.06);
  color: var(--primary);
  border-left-color: var(--primary);
}
.cfb-item.active {
  background: rgba(232,93,4,.08);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}
.cfb-icon { width: 22px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.cfb-label { flex: 1; }
.cfb-count {
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  padding: .1em .5em;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.cfb-item.active .cfb-count {
  background: rgba(232,93,4,.15);
  color: var(--primary);
  border-color: rgba(232,93,4,.3);
}

/* ── Sidebar USP Box ───────────────────────────────────── */
.cat-usp-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
}
.cup-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}
.cup-item:last-child { border-bottom: none; }
.cup-item > i {
  font-size: 1.3rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.cup-item div { display: flex; flex-direction: column; }
.cup-item strong { font-size: .88rem; color: var(--text-dark); font-weight: 700; line-height: 1.3; }
.cup-item span { font-size: .78rem; color: var(--text-muted); }

/* ── Ergebnis-Leiste ───────────────────────────────────── */
.cat-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.crb-count { font-size: .92rem; color: var(--text-muted); }
.crb-count strong { color: var(--text-dark); font-weight: 700; }

/* ── Produkt-Grid ──────────────────────────────────────── */
.prd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 575px) { .prd-grid { grid-template-columns: 1fr; } }

/* ── Produkt-Karte ─────────────────────────────────────── */
.prd-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.prd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.prd-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(232,93,4,.12), var(--shadow-sm);
}

/* Featured Badge */
.prd-badge-featured {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25em .7em;
  border-radius: 999px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* Bild-Bereich */
.prd-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f0f4ff 0%, #e4e8f8 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.prd-card:hover .prd-img img { transform: scale(1.04); }
.prd-img-placeholder {
  font-size: 3rem;
  color: var(--primary);
  opacity: .25;
}

/* Karten-Inhalt */
.prd-body { padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.prd-category {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--primary);
  margin-bottom: .3rem;
}
.prd-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.prd-desc {
  font-size: .85rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: .85rem;
  line-height: 1.5;
}

/* Spezifikationen */
.prd-specs {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.prd-spec {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.prd-spec i { color: var(--primary); font-size: .9rem; }

/* Preis */
.prd-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  padding: .65rem .85rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0;
}
.pp-from  { font-size: .75rem; color: var(--text-muted); }
.pp-value { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.pp-note  { font-size: .75rem; color: var(--text-muted); }

/* Karten-Footer */
.prd-footer { padding: .85rem 1.25rem 1.1rem; }
.prd-btn {
  font-weight: 700;
  padding: .65rem 1rem;
  font-size: .92rem;
  border-radius: var(--radius);
  transition: all .18s;
}
.prd-btn:hover { transform: none; filter: brightness(1.08); }

/* ── Leerer Zustand ────────────────────────────────────── */
.cat-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.cat-empty i { font-size: 3.5rem; opacity: .3; display: block; margin-bottom: 1rem; }
.cat-empty h3 { color: var(--text-dark); margin-bottom: .5rem; }
.cat-empty p { margin-bottom: 1.5rem; }

/* ============================================================
   STARTSEITE (index.php)
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--secondary) 0%, #252545 60%, #1a1a35 100%);
  color: #fff;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,93,4,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-overlay { display: none; }
.min-vh-hero  { min-height: 480px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(232,93,4,.18);
  border: 1px solid rgba(232,93,4,.4);
  color: var(--accent);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-hero {
  padding: .75rem 1.85rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(232,93,4,.4);
}
.btn-hero-sec {
  padding: .75rem 1.85rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-hero-sec:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }

/* Stats */
.hero-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num   { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.55); margin-top: .15rem; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* Hero Visual (rechte Seite) */
.hero-visual {
  position: relative;
  width: 320px;
  height: 280px;
}
.hero-card {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 260px;
  animation: float 4s ease-in-out infinite;
}
.hero-card:nth-child(1) { top: 0;    left: 0; }
.hero-card:nth-child(2) { top: 90px; right: 0; animation-delay: -1.5s; }
.hero-card:nth-child(3) { bottom: 0; left: 20px; animation-delay: -3s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hc-icon { font-size: 1.6rem; color: var(--primary); flex-shrink: 0; }
.hc-title { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: .15rem; }
.hc-text  { font-size: .75rem; color: rgba(255,255,255,.6); }

/* Wave */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

/* CTA Nav-Link */
.cta-nav-link {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  padding: .4rem 1rem !important;
  font-weight: 600 !important;
  margin-left: .5rem;
}
.cta-nav-link:hover { background: var(--primary-dark) !important; }

/* ── USP Strip ─────────────────────────────────────────── */
.usp-strip { background: var(--primary); }
.usp-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .75rem 0;
}
.usp-icon {
  font-size: 1.5rem;
  color: rgba(255,255,255,.85);
  flex-shrink: 0;
  margin-top: .1rem;
}
.usp-body h4 {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .2rem;
}
.usp-body p {
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  margin: 0;
  line-height: 1.5;
}

/* ── Produkte Sektion ──────────────────────────────────── */
.products-section { background: var(--bg-light); }

.section-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .6rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Produktgruppen-Karten */
.product-group-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 1.5rem;
  height: 100%;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
}
.product-group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.pgc-icon {
  width: 48px; height: 48px;
  background: rgba(232,93,4,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.pgc-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .4rem;
}
.pgc-body p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: .85rem;
  line-height: 1.55;
  flex: 1;
}
.pgc-products {
  list-style: none;
  padding: 0; margin: 0 0 .75rem;
}
.pgc-products li { margin-bottom: .3rem; }
.pgc-products a {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap .15s;
}
.pgc-products a:hover { gap: .5rem; }

/* ── CTA Section ───────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}
.cta-content p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  margin: 0;
}
.btn-cta {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .18s;
}
.btn-cta:hover { background: #fff3ec; color: var(--primary-dark); transform: translateY(-1px); }

/* ── Footer Extras ─────────────────────────────────────── */
.footer-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.footer-logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  padding: .4rem;
}
.footer-tagline { font-size: .88rem; color: rgba(255,255,255,.55); margin-bottom: .85rem; }
.footer-contact { font-size: .85rem; display: flex; flex-direction: column; gap: .35rem; }
.footer-contact div { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.65); }
.footer-contact i { color: var(--primary); }
.footer-heading { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: .85rem; }
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom p { margin: 0; }
.footer-vat { color: rgba(255,255,255,.3); }

/* Animate-in */
@keyframes animateIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.animate-in { animation: animateIn .5s ease both; }

/* URLs fixen: /configurators.php → /konfiguratoren */

/* ============================================================
   PRODUKT-VISUALISIERUNG im Konfigurator
   ============================================================ */

/* Produkt-Vorschau Box links vom Konfigurator */
.product-visual-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.pvb-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8ecf8 0%, #d0d8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.pvb-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pvb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: var(--primary);
  opacity: .3;
  font-size: 4rem;
}
.pvb-caption {
  padding: .75rem 1rem;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pvb-caption i { color: var(--primary); }

/* Erweiterte Stoff-Karten mit Bild */
.fabric-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .85rem;
}
.fabric-card {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: all .18s;
  position: relative;
}
.fabric-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.fabric-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,.15);
}
.fabric-preview {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fabric-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.fabric-card:hover .fabric-preview img { transform: scale(1.06); }
.fabric-placeholder {
  font-size: 2rem;
  color: var(--text-muted);
  opacity: .3;
}
.fabric-info { padding: .6rem .75rem; }
.fabric-name { font-weight: 700; font-size: .85rem; color: var(--text-dark); }
.fabric-code { font-size: .72rem; color: var(--text-muted); font-family: monospace; margin-top: .1rem; }
.fabric-cat  { font-size: .72rem; color: var(--text-muted); }
.fabric-uv {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  background: #dcfce7;
  color: #166534;
  font-size: .7rem;
  font-weight: 700;
  padding: .15em .5em;
  border-radius: 999px;
  margin-top: .3rem;
}
.fabric-colors {
  display: flex;
  gap: .25rem;
  padding: .4rem .75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.color-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.1);
  cursor: help;
  flex-shrink: 0;
}
.fabric-check {
  position: absolute;
  top: .4rem; right: .4rem;
  width: 22px; height: 22px;
  background: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  box-shadow: 0 2px 6px rgba(232,93,4,.4);
}
.fabric-card.selected .fabric-check { display: flex; }

/* Farb-Swatches größer und mit Musterbild */
.color-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .65rem;
}
.color-swatch {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .15s;
  position: relative;
  background: #fff;
}
.color-swatch:hover { border-color: var(--primary); }
.color-swatch.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,.15);
}
.swatch-dot {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}
.swatch-img img { width:100%; height:100%; object-fit:cover; display:block; }
.swatch-name {
  display: block;
  padding: .25rem .3rem;
  font-size: .68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}
.swatch-check {
  position: absolute;
  top: .25rem; right: .25rem;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .6rem;
}
.color-swatch.selected .swatch-check { display: flex; }

/* Zubehör als Bildkarten */
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .85rem;
}
.accessory-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: all .18s;
  position: relative;
}
.accessory-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.accessory-card.selected {
  border-color: var(--primary);
  background: rgba(232,93,4,.04);
}
.ac-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac-img img { width:100%; height:100%; object-fit:cover; }
.ac-img-placeholder { font-size: 2rem; color: var(--text-muted); opacity: .25; }
.ac-body { padding: .65rem .75rem; }
.ac-name  { font-weight: 700; font-size: .85rem; color: var(--text-dark); margin-bottom: .2rem; }
.ac-price { font-size: .8rem; color: var(--primary); font-weight: 600; }
.ac-check {
  position: absolute;
  top: .4rem; right: .4rem;
  width: 22px; height: 22px;
  background: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
}
.accessory-card.selected .ac-check { display: flex; }

/* ── Visuelle Formauswahl (Sonnensegel) ────────────────── */
.form-group-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: .75rem 0 .6rem;
}
.form-visual-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .65rem;
  margin-bottom: .5rem;
}
@media (max-width: 767px) {
  .form-visual-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .form-visual-grid { grid-template-columns: repeat(2, 1fr); }
}
.form-visual-card {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .4rem .4rem;
  text-align: center;
  background: #fff;
  transition: all .15s;
  position: relative;
}
.form-visual-card:hover { border-color: var(--primary); background: rgba(232,93,4,.04); }
.form-visual-card.selected {
  border-color: var(--primary);
  background: rgba(232,93,4,.06);
  box-shadow: 0 0 0 3px rgba(232,93,4,.15);
}
.form-visual-card img {
  width: 100%;
  aspect-ratio: 10/7;
  object-fit: contain;
  display: block;
  margin-bottom: .35rem;
}
.form-card-label {
  display: block;
  font-size: .72rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.2;
}
.form-card-price {
  display: block;
  font-size: .68rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: .15rem;
}
.form-card-check {
  position: absolute;
  top: .3rem; right: .3rem;
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .65rem;
}
.form-visual-card.selected .form-card-check { display: flex; }

/* ── Startseiten-Produktkarten mit echten Bildern ──────── */
.product-group-card .pgc-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff, #e4e8f8);
  margin: -1.5rem -1.5rem 1rem;
  width: calc(100% + 3rem);
}
.product-group-card .pgc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.product-group-card:hover .pgc-img img { transform: scale(1.04); }

/* ── Zubehör-Auswahl ───────────────────────────────────── */
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}
.accessory-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: all .18s;
  position: relative;
}
.accessory-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.accessory-card.is-selected {
  border-color: var(--primary);
  background: rgba(232,93,4,.04);
}
.ac-img {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ac-img img { width:100%; height:100%; object-fit:cover; }
.ac-img-placeholder { font-size: 2.2rem; color: var(--text-muted); opacity: .25; }
.ac-body { padding: .65rem .85rem .5rem; }
.ac-name { font-weight: 700; font-size: .88rem; color: var(--text-dark); margin-bottom: .2rem; }
.ac-desc { font-size: .75rem; color: var(--text-muted); margin-bottom: .3rem; line-height: 1.4; }
.ac-price { font-size: .82rem; color: var(--primary); font-weight: 700; }

/* Toggle Switch */
.ac-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: .5rem .85rem .65rem;
  cursor: pointer;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.ac-toggle input { display: none; }
.ac-toggle-slider {
  width: 40px; height: 22px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.ac-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ac-toggle input:checked ~ .ac-toggle-slider { background: var(--primary); }
.ac-toggle input:checked ~ .ac-toggle-slider::after { transform: translateX(18px); }
.accessory-card.is-selected .form-card-check { display: flex; }
.form-card-check { display: none; position: absolute; top:.4rem; right:.4rem; width:20px; height:20px; background:var(--primary); border-radius:50%; align-items:center; justify-content:center; color:#fff; font-size:.72rem; }

/* ── SUCCESS PAGE – moderne Anfragebestätigung ───────────── */
.success-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(232, 93, 4, .08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f8fafc 100%);
}
.success-header {
  background: linear-gradient(135deg, #111827 0%, var(--secondary) 100%);
  height: 74px;
}
.success-header .navbar { height: 74px; }
.success-header .brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(232, 93, 4, .28);
  font-size: 1.25rem;
}
.success-header .navbar-brand { font-size: 1.35rem; }
.success-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.success-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.success-header-phone {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.success-header-phone i { font-size: 1.45rem; opacity: .9; }
.success-header-phone span { display: grid; line-height: 1.1; font-size: .78rem; color: rgba(255,255,255,.76); }
.success-header-phone strong { color: var(--primary); font-size: 1rem; margin-top: .18rem; }
.success-header-home {
  border-radius: 12px;
  padding: .8rem 1.15rem;
  font-weight: 700;
  color: var(--secondary) !important;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  box-shadow: 0 10px 22px rgba(15,23,42,.22);
}
.success-page-modern { padding: 1.55rem 0 2.1rem; }
.success-card-modern {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 3rem 2.15rem;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .1);
  overflow: hidden;
  text-align: center;
}
.success-card-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 6%, rgba(232, 93, 4, .07), transparent 24%),
    radial-gradient(circle at 95% 0%, rgba(27, 27, 47, .05), transparent 28%);
  pointer-events: none;
}
.success-card-modern > * { position: relative; z-index: 1; }
.success-icon-modern {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  color: #16a34a;
  font-size: 2.7rem;
  box-shadow: 0 12px 35px rgba(22, 163, 74, .18);
}
.success-card-modern h1 {
  color: var(--secondary);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 0;
}
.success-title-line {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  margin: 1rem auto 1.25rem;
  background: var(--primary);
}
.success-ref {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 1.05rem;
}
.success-ref strong {
  color: var(--primary);
  font-size: 1.18rem;
  letter-spacing: .01em;
}
.success-lead {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.6;
}
.success-lead strong { color: var(--primary); }
.success-confetti span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--primary);
  opacity: .9;
}
.success-confetti span:nth-child(1) { left: 42%; top: 7%; transform: rotate(25deg); }
.success-confetti span:nth-child(2) { left: 58%; top: 8%; background: #16a34a; }
.success-confetti span:nth-child(3) { left: 39%; top: 14%; background: #f59e0b; }
.success-confetti span:nth-child(4) { left: 62%; top: 15%; }
.success-confetti span:nth-child(5) { left: 46%; top: 4%; background: #94a3b8; }
.success-confetti span:nth-child(6) { left: 54%; top: 4%; background: #f59e0b; }
.success-steps-modern {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr;
  align-items: center;
  gap: .85rem;
  margin: 2rem 0 1.75rem;
  padding: 1.45rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px solid #eef2f7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.success-steps-modern .ss-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'icon content';
  gap: .9rem;
  align-items: center;
  text-align: left;
  color: var(--secondary);
}
.success-steps-modern .ss-number {
  position: absolute;
  left: -8px;
  top: -10px;
  min-width: 22px;
  height: 22px;
  padding: 0 .35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(232,93,4,.25);
}
.success-steps-modern .ss-icon {
  grid-area: icon;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 93, 4, .1);
  color: var(--primary);
  font-size: 1.55rem;
}
.success-steps-modern .ss-content { grid-area: content; display: grid; gap: .35rem; }
.success-steps-modern .ss-content strong { font-size: .98rem; }
.success-steps-modern .ss-content small { color: #64748b; line-height: 1.45; }
.success-steps-modern .ss-arrow { color: #cbd5e1; font-size: 1.55rem; text-align: center; }
.success-actions-modern {
  display: flex;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin: 1.85rem 0 1.8rem;
}
.success-actions-modern .btn {
  min-width: 260px;
  border-radius: 12px;
  padding: .88rem 1.35rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.success-actions-modern .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(232,93,4,.25);
}
.success-actions-modern .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.success-contact-modern {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  text-align: left;
  padding: 1.35rem;
  border: 1px solid rgba(232, 93, 4, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232,93,4,.035), rgba(255,255,255,.95));
}
.success-contact-modern .sc-intro,
.success-contact-modern .sc-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}
.success-contact-modern .sc-main-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, .1);
  color: var(--primary);
  font-size: 1.8rem;
}
.success-contact-modern strong,
.success-contact-modern .sc-link span { color: var(--secondary); font-weight: 800; }
.success-contact-modern small { display: block; color: #64748b; font-weight: 500; margin-top: .25rem; }
.success-contact-modern .sc-link {
  color: var(--secondary);
  border-left: 1px solid #e2e8f0;
  padding-left: 1.05rem;
}
.success-contact-modern .sc-link i { color: var(--primary); font-size: 1.45rem; }
.success-trust-row {
  max-width: 920px;
  margin: 1.6rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.success-trust-row div {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--secondary);
}
.success-trust-row i { font-size: 1.55rem; color: var(--secondary); opacity: .88; }
.success-trust-row span { display: grid; }
.success-trust-row strong { font-size: .82rem; }
.success-trust-row small { color: #64748b; font-size: .78rem; }

/* ============================================================
   PHASE 3 – Premium-Konfigurator UX
   ============================================================ */
.config-quickfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.cqf-item {
  display: flex;
  gap: .75rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .9rem 1rem;
  box-shadow: var(--shadow-sm);
}
.cqf-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(232,93,4,.10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex: 0 0 auto;
}
.cqf-item strong { display:block; font-size:.9rem; color:var(--text-dark); }
.cqf-item small { display:block; font-size:.76rem; color:var(--text-muted); margin-top:.1rem; }

.product-visual-box {
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 16px 45px rgba(15,23,42,.08);
}
.pvb-img::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.28));
  pointer-events: none;
}
.pvb-caption { background:#fff; }
.config-step, #contactFormSection {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(15,23,42,.07);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.step-header { padding: 1.4rem 1.6rem 0; }
.step-title { font-size: 1.45rem; }
.fields-grid { padding: 1.35rem 1.6rem; }
.field-label, .form-label { font-weight: 700; color: var(--text-dark); }
.form-control, .form-select {
  border-radius: 12px;
  border-color: #d8dee8;
  padding: .72rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .22rem rgba(232,93,4,.12);
}
.form-visual-card, .fabric-card, .color-swatch, .accessory-card {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.form-visual-card:hover, .fabric-card:hover, .color-swatch:hover, .accessory-card:hover {
  transform: translateY(-2px);
}
.accessory-card.is-selected, .fabric-card.selected, .color-swatch.selected, .form-visual-card.selected {
  box-shadow: 0 0 0 4px rgba(232,93,4,.13), 0 12px 30px rgba(15,23,42,.08);
}
.price-box {
  border-radius: 22px;
  text-align: left;
  padding: 1.25rem;
  overflow: hidden;
  position: relative;
}
.price-box::before {
  content:'';
  position:absolute;
  width:170px;
  height:170px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  right:-70px;
  top:-80px;
}
.price-box .pb-label, .price-box .pb-value, .price-box .pb-sub, .price-details { position:relative; z-index:1; }
.price-box .pb-value { font-size: 2.15rem; letter-spacing:-.04em; }
.price-details { margin-top:.85rem; color:#fff; }
.price-details .price-result { border-top:1px solid rgba(255,255,255,.25); padding-top:.75rem; }
.price-details .price-main, .price-details .price-vat-info { display:none; }
.price-details .price-total { font-size:.86rem; margin:.35rem 0; }
.price-details .breakdown-toggle {
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.12);
  width: 100%;
  border-radius: 12px;
  padding: .45rem .65rem;
  font-size: .82rem;
  text-align: left;
}
.price-details .breakdown-list { list-style:none; padding: .55rem 0 0; margin:0; }
.price-details .breakdown-list li {
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  font-size:.78rem;
  padding:.25rem 0;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.summary-box, .info-box, .sidebar-action-box {
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(15,23,42,.07);
}
.sidebar-action-box {
  background:#fff;
  border:1px solid var(--border);
  padding:1rem;
}
.sidebar-action-box small { display:block; margin-top:.6rem; color:var(--text-muted); font-size:.76rem; line-height:1.35; }
.sidebar-next-btn { border-radius:14px; font-weight:800; padding:.8rem 1rem; }
.summary-item .si-value { max-width: 54%; word-break: break-word; }
.upload-dropzone {
  border: 2px dashed #d8dee8;
  border-radius: 18px;
  background: #f8fafc;
  padding: 1.25rem;
  text-align: center;
  transition: all .15s;
}
/* Sticky Sidebar Product Edit */
.product-edit-sidebar-sticky{
    position: sticky;
    top: 90px;
}

.product-edit-sidebar-sticky .card{
    margin-bottom:16px;
}
.upload-dropzone:hover, .upload-dropzone.drag-over { border-color: var(--primary); background: rgba(232,93,4,.04); }
.upload-dropzone i { font-size: 1.9rem; color: var(--primary); }

/* bessere Touch-Fläche bei Zubehör */
.ac-toggle { border-top:1px solid var(--border); background:#fafbfc; }
.ac-toggle::before { content:'Auswählen'; margin-right:auto; font-weight:700; }
.accessory-card.is-selected .ac-toggle::before { content:'Ausgewählt'; color:var(--primary); }

/* Phase 5.2: ruhige technische Prüfung / Assistentenstatus */
.technical-check-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.technical-check-box.has-open-issues { border-color: #fed7aa; }
.tcb-head {
  padding: .9rem 1rem;
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.tcb-body { padding: .85rem; }
.tcb-state {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
}
.tcb-state i {
  color: var(--primary);
  font-size: 1.15rem;
  margin-top: .08rem;
}
.tcb-state strong { display: block; color: var(--text-dark); font-size: .92rem; }
.tcb-state span { display: block; color: var(--text-muted); font-size: .8rem; line-height: 1.35; margin-top: .12rem; }
.tcb-state.tcb-ok { background: #ecfdf5; }
.tcb-state.tcb-ok i { color: #16a34a; }
.tcb-section { margin-top: .75rem; }
.tcb-section-title {
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  margin: 0 0 .45rem .15rem;
}
.tcb-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .52rem .6rem;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.35;
  border: 1px solid transparent;
}
.tcb-item + .tcb-item { margin-top: .4rem; }
.tcb-neutral { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.tcb-info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.tcb-warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.tcb-more { color: #64748b; font-size: .8rem; padding: .35rem .6rem; }
.technical-field-warning {
  margin-top: .5rem;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.35;
}
.technical-field-warning.info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.technical-field-warning.warning { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.technical-field-warning.error { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }


/* Anfrage-Detail: technische Konfiguration / Phase 5.1 */
.inquiry-config-groups .config-group-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 12px 8px;
}
.inquiry-config-groups .config-group-title {
  color: #0f172a;
  font-weight: 700;
  font-size: .84rem;
  margin-bottom: 8px;
}
.inquiry-config-groups dt,
.inquiry-config-groups dd {
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 5px;
}
.inquiry-config-groups dt:last-of-type,
.inquiry-config-groups dd:last-of-type {
  border-bottom: 0;
}

/* Phase 7.1: Admin Monteur-/Skizzenvorschau in der Anfrage */
.admin-installer-preview {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}
.admin-technical-sketch-box {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 1rem;
    text-align: center;
    overflow: hidden;
}
.admin-technical-sketch-box svg {
    max-width: 100%;
    height: auto;
}

/* Phase 10A.2b: sichtbare Exportzentrale / Prozessansicht */
.export-center {
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb !important;
}

.export-center-status .badge {
  font-size: .78rem;
  padding: .45rem .7rem;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.export-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.export-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
  border-color: #cbd5e1;
}

.export-action-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.25rem;
  background: #f1f5f9;
  color: #334155;
}

.export-action-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.export-action-kicker {
  font-size: .72rem;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: 8px;
}

.export-action-card h6 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.export-action-card p {
  font-size: .83rem;
  line-height: 1.35;
  color: #64748b;
  margin-bottom: 12px;
  flex: 1;
}

.export-action-meta {
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: .78rem;
  margin-bottom: 12px;
}

.export-action-customer .export-action-icon { background: #fff7ed; color: #c2410c; }
.export-action-installation .export-action-icon { background: #eff6ff; color: #1d4ed8; }
.export-action-production .export-action-icon { background: #faf5ff; color: #7e22ce; }
.export-action-manufacturer .export-action-icon { background: #ecfdf5; color: #047857; }
.export-action-internal .export-action-icon { background: #f8fafc; color: #334155; }

.export-help {
  border-radius: 12px;
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #854d0e;
  padding: 10px 12px;
  font-size: .86rem;
}

.manufacturer-export-panel {
  scroll-margin-top: 90px;
}

.manufacturer-export-form {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}


/* JSON Hero Slideshow */
.hero-section.hero-has-json {
    position: relative;
    overflow: hidden;
}

.hero-json-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-json-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
}

.hero-json-slide.active {
    opacity: 1;
}

.hero-section.hero-has-json::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.96) 0%,
            rgba(255,255,255,0.92) 22%,
            rgba(255,255,255,0.82) 38%,
            rgba(255,255,255,0.58) 52%,
            rgba(255,255,255,0.18) 72%,
            rgba(255,255,255,0.02) 100%
        );

    backdrop-filter: blur(2px);
}
.hero-section .hero-title,
.hero-section h1 {
    color: #111827;
    text-shadow:
        0 2px 10px rgba(255,255,255,0.45),
        0 1px 2px rgba(255,255,255,0.7);
}

.hero-section .hero-subtitle,
.hero-section p {
    color: #374151;
    text-shadow:
        0 1px 6px rgba(255,255,255,0.5);
}

.hero-section.hero-has-json > *:not(.hero-json-slideshow) {
    position: relative;
    z-index: 2;
}


/* ============================================================
   Hersteller Carousel + Botschaftsboxen
   ============================================================ */

.manufacturer-carousel-section {
  position: relative;
  background:
    radial-gradient(circle at 7% 0%, rgba(255, 237, 213, .64), transparent 34%),
    radial-gradient(circle at 96% 10%, rgba(224, 242, 254, .58), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  padding: 88px 0 96px !important;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
  overflow: hidden;
}

.mcs-head {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.mcs-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: #fff1e8;
  color: #f45b00;
  border: 1px solid rgba(244,91,0,.22);
  font-size: .78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mcs-head h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.045em;
}

.mcs-head p {
  margin: 0 auto;
  color: #667085;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Carousel */
.mcs-carousel-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 46px;
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.mcs-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: manufacturerLogoMarquee 32s linear infinite;
}

.mcs-carousel-wrap:hover .mcs-carousel-track {
  animation-play-state: paused;
}

@keyframes manufacturerLogoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mcs-logo-slide {
  width: 190px;
  height: 94px;
  flex: 0 0 auto;
  border-radius: 22px;
  border: 1px solid #e5eaf2;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(17,24,39,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #30384d;
  font-weight: 900;
  letter-spacing: .02em;
}

.mcs-logo-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mcs-logo-slide img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(.18);
  transition: transform .2s ease, filter .2s ease;
}

.mcs-logo-slide:hover img {
  transform: scale(1.04);
  filter: grayscale(0);
}

.mcs-logo-text {
  font-size: 1rem;
}

/* Message Cards */
.mcs-message-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mcs-message-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  border: 1px solid #e5eaf2;
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: 0 18px 42px rgba(17,24,39,.075);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mcs-message-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(244,91,0,.12), transparent 68%);
  pointer-events: none;
}

.mcs-message-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244,91,0,.30);
  box-shadow: 0 24px 52px rgba(17,24,39,.12);
}

.mcs-message-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff1e8;
  color: #f45b00;
  margin-bottom: 18px;
}

.mcs-message-icon i {
  color: #f45b00;
  font-size: 1.5rem;
  line-height: 1;
}

.mcs-message-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 900;
}

.mcs-message-card p {
  margin: 0;
  color: #667085;
  font-size: .92rem;
  line-height: 1.65;
}

/* alte Herstellerbereiche ausblenden, falls vom Cache noch vorhanden */
.manufacturer-trust-section,
.partner-section-light {
  display: none !important;
}


/* ============================================================
   Admin Upload Preview: Produktbild & Herstellerlogo
   ============================================================ */

.admin-image-upload-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: #f8fafc;
}

.admin-image-preview {
  width: 220px;
  height: 140px;
  min-width: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-placeholder {
  color: #94a3b8;
  text-align: center;
  display: grid;
  gap: .35rem;
}

.admin-image-placeholder i {
  font-size: 2rem;
}

.admin-product-thumb {
  width: 54px;
  height: 40px;
  min-width: 54px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e5eaf2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PRODUCT EDIT IMAGE PREVIEW */
.admin-product-image-preview{
    width:100%;
    max-width:420px;
    height:240px;
    overflow:hidden;
    border-radius:18px;
    background:#f4f7fb;
    border:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:12px;
    box-shadow:0 8px 24px rgba(15,23,42,.08);
}

.admin-product-preview-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.admin-product-no-image{
    color:#94a3b8;
    font-size:14px;
}


.admin-manufacturer-logo-thumb {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
}

.admin-manufacturer-logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.admin-manufacturer-logo-thumb span {
  width: 100%;
  height: 100%;
  background: var(--admin-primary, #f45b00);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-current-logo {
  width: 180px;
  min-height: 74px;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-current-logo img {
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .admin-image-upload-box {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-image-preview {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   Produkt Thumbnail Fix - Admin Produktübersicht
   ========================================================= */

.admin-product-list-item{
    display:flex;
    align-items:center;
    gap:14px;
}

.admin-product-thumb{
    width:90px;
    height:70px;
    min-width:90px;
    border-radius:12px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.admin-product-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.admin-product-info{
    display:flex;
    flex-direction:column;
}



/* ============================================================
   ADMIN PRODUKTE – Thumbnail-Fix für Produktübersicht
   erzwingt kleine Vorschaubilder in der Tabelle
   ============================================================ */

.admin-product-cell {
  min-width: 260px;
  max-width: 420px;
}

.admin-product-list-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
}

.admin-product-list-item .admin-product-thumb {
  width: 92px !important;
  height: 64px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  max-height: 64px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #e5eaf2 !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 16px rgba(15,23,42,.06) !important;
  color: #94a3b8 !important;
}

.admin-product-list-item .admin-product-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 92px !important;
  max-height: 64px !important;
  object-fit: cover !important;
  display: block !important;
}

.admin-product-list-item .admin-product-thumb i {
  font-size: 1.25rem !important;
  line-height: 1 !important;
}

.admin-product-list-item .admin-product-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.admin-product-list-item .admin-product-info .fw-semibold {
  line-height: 1.25 !important;
}

.admin-product-list-item .admin-product-info code {
  white-space: normal !important;
  word-break: break-word !important;
}

/* verhindert, dass ein einzelnes Bild die ganze Tabellenzeile aufzieht */
.admin-table td img,
.table td img {
  max-width: 120px;
  height: auto;
}

.admin-product-list-item .admin-product-thumb img {
  max-width: 92px !important;
  height: 64px !important;
}


/* FINAL BACKUP FIX: Admin Produkt-Thumbnails */
.admin-product-cell{width:360px!important;min-width:280px!important;max-width:430px!important;vertical-align:middle!important;}
.admin-product-list-item{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important;}
.admin-product-list-item .admin-product-thumb{width:96px!important;height:68px!important;min-width:96px!important;max-width:96px!important;min-height:68px!important;max-height:68px!important;overflow:hidden!important;border-radius:12px!important;border:1px solid #e5eaf2!important;background:#f8fafc!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;}
.admin-product-list-item .admin-product-thumb img,.admin-product-list-item .admin-product-thumb-img{width:96px!important;height:68px!important;min-width:96px!important;max-width:96px!important;min-height:68px!important;max-height:68px!important;object-fit:cover!important;display:block!important;padding:0!important;margin:0!important;}
.admin-product-info{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:260px!important;}


/* ============================================================
   FINAL BACKUP FIX – Produktbild Vorschau product_edit.php
   ============================================================ */
.admin-product-edit-image-box{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  padding:16px!important;
  border:1px solid #e5eaf2!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  max-width:760px!important;
}
.admin-product-edit-preview{
  width:260px!important;
  height:170px!important;
  min-width:260px!important;
  max-width:260px!important;
  min-height:170px!important;
  max-height:170px!important;
  overflow:hidden!important;
  border-radius:16px!important;
  border:1px solid #e5eaf2!important;
  background:#ffffff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
}
.admin-product-edit-preview-img,
.admin-product-edit-preview img{
  width:260px!important;
  height:170px!important;
  min-width:260px!important;
  max-width:260px!important;
  min-height:170px!important;
  max-height:170px!important;
  object-fit:cover!important;
  object-position:center center!important;
  display:block!important;
}
.admin-product-edit-upload{
  flex:1!important;
  min-width:240px!important;
}


/* ============================================================
   PRODUCT EDIT REBUILT FIX
   ============================================================ */
.product-edit-page-wrap{padding:1.5rem;}
.product-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:1.5rem;align-items:start;}
.product-edit-main{min-width:0;}
.product-edit-sidebar{position:sticky;top:86px;z-index:5;}
.product-edit-sidebar .card,.product-edit-main .card{border:1px solid #e5eaf2;border-radius:16px;box-shadow:0 10px 26px rgba(15,23,42,.055);overflow:hidden;background:#fff;}
.product-edit-sidebar .btn{width:100%;margin-bottom:8px;}
.product-edit-image-box{display:flex;gap:18px;align-items:center;padding:16px;background:#f8fafc;border:1px solid #e5eaf2;border-radius:18px;}
.product-edit-image-preview{width:260px;height:170px;min-width:260px;max-width:260px;overflow:hidden;border-radius:16px;border:1px solid #e5eaf2;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(15,23,42,.08);}
.product-edit-image-preview img{width:100%;height:100%;object-fit:cover;}
.product-edit-image-placeholder{display:grid;gap:6px;text-align:center;color:#94a3b8;}
.product-edit-image-placeholder i{font-size:2rem;}
.product-edit-image-upload{flex:1;min-width:240px;}
