#pdf-root img { image-rendering: auto; }

/* Loading Overlay for long-running tasks (PDF/Warenkorb) */
.loading-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14, 30, 52, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}
.loading-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid #e5e7eb;
}
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #f5a623;
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
}
.loading-text {
  color: #0e1e34;
  font-weight: 600;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }
/* PDF-specific styles for html2pdf rendering */
#pdf-root, #pdf-root .pdf-page {
  background: #ffffff;
  color: #000000;
}
/* Stelle sicher, dass Root den Inhalt nicht nach links abschneidet */
#pdf-root {
  width: 794px;
  display: block;
}

#pdf-root .pdf-page {
  width: 794px;       /* stabil für html2canvas */
  min-height: 1123px; /* stabil für html2canvas */
  padding: 48px 48px 64px 48px; /* reine px-Werte für Stabilität */
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10pt;
  margin: 0 auto; /* absolute Zentrierung */
  page-break-after: always; /* explizite Seitenumbrüche */
}

#pdf-root .pdf-page:last-child { page-break-after: auto; }

#pdf-root .pdf-grid-image {
  max-height: calc(1123px * 0.5);
  width: 670px; /* ~170mm */
  object-fit: contain;
}

#pdf-root .pdf-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10mm;
}

#pdf-root .pdf-page .pdf-total {
  background: #0e1e34;
  color: #ffffff;
  border-radius: 8px;
  padding: 6mm;
}

/* Ensure pdf-root content paints when moved on-screen for capture */
#pdf-root * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Make sure the root is never display:none which breaks html2canvas */
#pdf-root {
  position: fixed;
  left: -2000px; /* offscreen default */
  top: 0;
  z-index: -1; /* behind */
  width: 794px;
}
/* CORE LAYOUT */
html, body {
  height: 100%;
  margin: 0;
}

/* MODUL DROPDOWN STYLES */
#module-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

#module-select:hover {
  border-color: #d1d5db;
}

#module-select:focus {
  outline: none;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

#module-select option {
  padding: 8px 12px;
  font-size: 14px;
  color: #2d3748;
  background: #ffffff;
}

#module-select option:hover {
  background: #f7fafc;
}

/* Input-Sperr-Styles */
#width-input:disabled,
#height-input:disabled {
  background-color: #f8f9fa !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  border-color: #e1e5e9 !important;
}

#width-input:disabled::placeholder,
#height-input:disabled::placeholder {
  color: #9ca3af !important;
}

/* Versteckte Pfeile für Number Inputs */
#width-input::-webkit-outer-spin-button,
#width-input::-webkit-inner-spin-button,
#height-input::-webkit-outer-spin-button,
#height-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#width-input[type=number],
#height-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111827;
  user-select: none;
  overflow-x: hidden;
}

.planner button,
.planner input,
.planner select,
.planner textarea {
  font-family: inherit;
}

.planner {
  display: block;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 16px 20px 28px;
}

/* Legacy: früher .main-area; Layout über .configurator-grid */
.main-area {
  display: contents;
}

.header {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0e1e34;
}

.controls--horizontal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dimension-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aspect-ratio-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.scaling-presets {
  display: flex;
  gap: 5px;
}

.aspect-input {
  width: 50px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  text-align: center;
}

.dimension-input {
  width: 40px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  text-align: center;
  font-size: 14px;
  margin: 0 5px;
}

.preset-btn {
  padding: 5px 10px;
  background: #0e1e34;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.frame {
  background: #0e1e34;
  border-radius: 12px;
  padding: 24px;
  margin: 16px;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 95%;
}

.frame.frame--editor {
  position: relative;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-width: none;
  padding: 20px;
  flex: 1;
}

.grid-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Orientation Controls */
.orientation-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.orientation-chain {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  color: #001f3f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.orientation-chain:hover {
  background: #f5f7fa;
  border-color: #001f3f;
}

.orientation-chain:focus-visible {
  outline: 2px solid #f5a623;
  outline-offset: 2px;
}

.orientation-btn {
  width: auto;
  min-height: 40px;
  min-width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
}

.orientation-btn:hover {
  background: #f5f7fa;
  border-color: #001f3f;
}

.orientation-btn.active {
  background: #001f3f;
  border-color: #001f3f;
  box-shadow: 0 2px 6px rgba(0, 31, 63, 0.2);
}

.orientation-btn img {
  filter: none;
  transition: filter 0.2s ease;
}

.orientation-btn.active img {
  filter: brightness(0) invert(1);
}

.orientation-btn:not(.active) img {
  opacity: 0.75;
}

.orientation-text {
  color: #001f3f;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, width 0.2s ease;
  white-space: nowrap;
}

.orientation-btn.active .orientation-text {
  opacity: 1;
  width: auto;
  color: #ffffff;
}

.canvas {
  width: 100%;
  height: 100%;
  background: #ececec;
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.frame--editor .canvas {
  background: #e8e8e8;
}

.grid-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-overflow {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  /* Modultextur: porträtiertes JPEG; Horizontal-Modus rotiert die Bildfläche,
     nicht nur das Motiv, damit background-size: cover die Zelle zuverlässig füllt. */
  display: grid;
  gap: var(--cell-gap);
  grid-template-columns: repeat(var(--cols), var(--cell-size));
  grid-template-rows: repeat(var(--rows), var(--cell-height));
  margin: auto;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Live-Grid: JS erzeugt .grid-cell (nicht .cell) */
.grid-cell {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: #d1d1d1;
  border: 2px solid #757575;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.frame--editor .grid-cell:not(.selected) {
  background: #d1d1d1;
  border-color: #757575;
}

.grid-cell.selected {
  background-color: #d1d1d1;
  background-image: none;
  overflow: hidden;
  border: 2px solid #757575;
}

.grid-cell.selected::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("solar-modul.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: none;
  transform-origin: center center;
}

/* Hochkant-Zelle (portrait): Bild natürlich gerade, genau ein Cover pro Zelle */
/* Quer-Zelle (landscape): Bildfläche vertauschen und dann 90° drehen */
.grid[data-layout="landscape"] .grid-cell.selected::before {
  inset: auto;
  top: 50%;
  left: 50%;
  width: var(--cell-height);
  height: var(--cell-width);
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

/* Drag-to-Select: gelbe Strichumrandung pro Zelle + Vorschau-Tönung */
.grid-cell.bulk-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px dashed #f5a623;
  pointer-events: none;
  z-index: 5;
  box-sizing: border-box;
  animation: drag-preview-pulse 0.9s ease-in-out infinite;
}

.grid-cell.drag-preview-select::after {
  background-color: rgba(245, 166, 35, 0.22);
}

.grid-cell.drag-preview-deselect::after {
  background-color: rgba(185, 28, 28, 0.18);
}

@keyframes drag-preview-pulse {
  0%,
  100% {
    border-color: #f5a623;
  }
  50% {
    border-color: #fcd34d;
  }
}

.grid-cell.drag-start-marker {
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.85);
}

.grid-cell.drag-select-mode.drag-start-marker {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.45);
}

.grid-cell.drag-deselect-mode.drag-start-marker {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45);
}

@keyframes grid-drop-flash-green {
  0% {
    box-shadow: inset 0 0 0 3px rgb(34, 197, 94);
  }
  40% {
    box-shadow: inset 0 0 0 5px rgb(74, 222, 128);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes grid-drop-flash-red {
  0% {
    box-shadow: inset 0 0 0 3px rgb(239, 68, 68);
  }
  40% {
    box-shadow: inset 0 0 0 5px rgb(248, 113, 113);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.grid-cell.drop-flash-select {
  animation: grid-drop-flash-green 0.55s ease-out forwards;
}

.grid-cell.drop-flash-deselect {
  animation: grid-drop-flash-red 0.55s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .grid-cell.bulk-highlight::after {
    animation: none;
  }

  .grid-cell.drop-flash-select,
  .grid-cell.drop-flash-deselect {
    animation-duration: 0.01s;
  }
}

.cell {
  position: relative;
  overflow: hidden;
  background: #d1d1d1;
  border: 2px solid #757575;
  border-radius: 6px;
  width: var(--cell-size);
  height: var(--cell-height);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.frame--editor .cell:not(.selected) {
  background: #d1d1d1;
  border-color: #757575;
}

.cell.selected {
  background-image: none;
  background-color: #d1d1d1;
  border: 2px solid #757575;
}

.cell.selected::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("solar-modul.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: none;
  transform-origin: center center;
}

.grid[data-layout="landscape"] .cell.selected::before {
  inset: auto;
  top: 50%;
  left: 50%;
  width: var(--cell-height);
  height: var(--cell-size);
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

/* Preview Grid Styling */
.preview-grid {
  display: grid;
  gap: 2px;
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  place-content: center;
  justify-content: center;
  align-items: center;
  z-index: 9;
  pointer-events: none;
}

.preview-grid-cell {
  width: 100%;
  height: 100%;
  border: 2px solid #757575;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #d1d1d1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-grid-cell:hover {
  border-color: #f5a623;
  transform: scale(1.05);
}

.preview-grid-cell.selected {
  background-image: none;
  background-color: #d1d1d1;
  overflow: hidden;
  border: 2px solid #757575;
  box-shadow: none;
}

.preview-grid-cell.selected::before {
  content: "";
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.preview-grid-cell.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("solar-modul.jpeg") center / cover no-repeat;
  transform: none;
  transform-origin: center center;
  z-index: 0;
  pointer-events: none;
}

.preview-grid[data-layout="landscape"] .preview-grid-cell.selected::after {
  inset: auto;
  top: 50%;
  left: 50%;
  width: var(--cell-height);
  height: var(--cell-size);
  transform: translate(-50%, -50%) rotate(90deg);
}




/* CONTROLS */
.controls {
  margin-top: 10px;
  display: flex;
  gap: 24px;
  font-size: 1.5rem;
}

.controls button {
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  color: #ffffff;
}

.name {
  font-size: 1rem;
  color: #d0d0d0;
}

.bntscale {
  border-radius: 0.2rem;
  height: 10%;
  width: 20%;
  background-color: #f5a623;
}

.controls button:hover {
  transform: scale(1.1);
}

.controls button:active {
  transform: scale(0.9);
}

/* EXPANSION CONTROLS */
.expansion-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.side-controls {
  position: absolute;
  pointer-events: auto;
}

.top-controls {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.bottom-controls {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.left-controls {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.right-controls {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Neue Button-Gruppen im Smart-Config-Stil */
.button-group-horizontal {
  display: flex;
  flex-direction: row;
  background: #f5f5f5;
  border-radius: 0.5rem;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.button-group-horizontal::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 70%;
  background: #d0d0d0;
}

.button-group-vertical {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-radius: 0.5rem;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.button-group-vertical::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 1px;
  background: #d0d0d0;
}

.expand-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border-radius: 0.25rem;
  margin: 1px;
}

.expand-btn.plus-btn {
  color: #333;
}

.expand-btn.minus-btn {
  color: #333;
}

.expand-btn:hover {
  background: rgba(255, 177, 1, 0.2);
  color: #072544;
}

.expand-btn:active {
  transform: scale(0.95);
}

/* Inaktive Buttons */
.expand-btn.disabled {
  color: #999;
  cursor: not-allowed;
}

.expand-btn.disabled:hover {
  background: transparent;
  color: #999;
}

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffb101;
  color: #072544;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
}

/* SIDEBAR */
.sidebar {
  margin-top: 10px;
  width: 20rem;
  background: #f5a623;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 10px;
  position: relative;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .sidebar-content {
  opacity: 0;
  pointer-events: none;
}

.collapse {
  position: absolute;
  left: -1rem;
  top: 1rem;
  background: #f5a623;
  color: #ffffff;
  border: none;
  border-radius: 0 999px 999px 0;
  padding: 4px 12px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .collapse {
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
}

.nav-btn {
  margin-top: 10%;
  width: 100%;
  background: #0e1e34;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

.nav-btn--active {
  outline: 4px solid #ff0000;
}

.basket {
  margin-top: 200%;
  flex: 1 1 auto;
  background: #0e1e34;
  border-radius: 8px;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
   
  padding: 30%;
}

/* Ergänzungen für Solar-Tool-spezifische Elemente */
.produktliste-holder, #summary-list-holder, .config-list-holder, .button-bar, .checkbox-bar {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-bar button {
  margin: 0.25rem;
  padding: 0.5rem 1.5rem;
  background: #0e1e34;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.button-bar button:hover {
  background: #f5a623;
  color: #0e1e34;
}



.checkbox-bar label {
  margin: 0 0.5rem;
  color: #0e1e34;
  font-weight: 500;
}

#produktliste, #summary-list, #config-list {
  width: 100%;
  margin-top: 0.5rem;
}

.produkt-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  background: #fff;
  color: #0e1e34;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.summary-column {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-total {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #0e1e34;
}

/* MOBILE WARNING OVERLAY - Entfernt, da direkte Weiterleitung implementiert */

/* Mobile responsive adjustments - Mobile Warning CSS entfernt */

/* USAGE TIPS */
.usage-tips {
  margin-top: 12px;
  padding: 12px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 8px;
  border-left: 4px solid #f5a623;
}

.tip {
  font-size: 13px;
  color: #0e1e34;
  margin: 4px 0;
  line-height: 1.4;
}

.tip strong {
  color: #f5a623;
  font-weight: 600;
}

/* Hide tips on mobile */
@media (max-width: 768px) {
  .usage-tips {
    display: none;
  }
}

/* Sidebar System */
.sidebar-toggle-btn {
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #ffb101;
  color: #072544;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-btn:hover {
  background: #e6a000;
  transform: translateY(-50%) scale(1.1);
}

/* Pfeil-Rotation für Toggle-Button */
.sidebar-toggle-btn .toggle-icon {
  transition: transform 0.3s ease;
}

.config-sidebar.open .sidebar-toggle-btn .toggle-icon {
  transform: rotate(180deg);
}

.config-sidebar {
  position: relative;
  width: 400px;
  min-height: 100vh;
  background: white;
  color: #000000;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-left: 20px;
  transition: width 0.3s ease;
  overflow: hidden;
}

.config-sidebar.config-card--summary {
  width: auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.config-sidebar.collapsed {
  width: 60px;
}



/* Detail-Ansicht und Übersicht */
.config-detail-view,
.config-overview {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 12px 16px;
  padding-bottom: 108px;
  position: relative;
  box-sizing: border-box;
}

.config-detail-view.active,
.config-overview.active {
  display: flex;
}

.config-sidebar.config-card--summary .config-detail-view.active,
.config-sidebar.config-card--summary .config-overview.active {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* Detail Header */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.config-sidebar.config-card--summary .detail-header,
.config-sidebar.config-card--summary .config-title-section {
  flex-shrink: 0;
}

/* „Zur Übersicht“ wie Referenz (Bild 3): Anthrazit, weiche Ecken, kein Pill) */
.back-btn {
  background: #262626;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background: #404040;
}

.back-btn:active {
  background: #1a1a1a;
}

.auto-save-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #009611;
  font-size: 14px;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.auto-save-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.save-icon {
  font-size: 16px;
  animation: rotate360 0.8s ease-in-out;
}

@keyframes rotate360 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Config Title Section */
.config-title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.config-title-section h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
}

.config-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

/* Titel-Zeile: größere Hit-Area und Icons (Löschen war zu klein) */
.config-title-section .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
}

.config-title-section .icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

/* Löschen: kein farbiger Kasten, Icon nutzt die volle Touch-Fläche (44×44) */
.config-title-section .icon-btn.delete img {
  width: 44px;
  height: 44px;
}

.config-title-section .icon-btn.delete {
  background: transparent;
}

.config-title-section .icon-btn.delete:hover {
  background: rgba(15, 23, 42, 0.06);
}

.icon-btn:hover {
  background: #f0f0f0;
}

.icon-btn.delete:hover {
  background: #ffebee;
  color: #ff0000;
}

/* Product Section – kein overflow:hidden: sonst werden letzte Listeneinträge am Übergang zur
   Gesamtzeile oft abgeschnitten. Höhenbegrenzung über Flex (min-height:0) + .produktliste-scroll. */
.product-section {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

/*
 * Flex statt Grid: bei unklarer Grid-Track-Höhe (iframe) wächst 1fr wie auto → kein overflow-y.
 * flex: 1 1 0% + min-height: 0 auf Section und Scroll-Wrapper erzwingt begrenzte Höhe + Scroll.
 */
.config-sidebar.config-card--summary .product-section {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.config-sidebar.config-card--summary .product-section-label {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #717171;
  flex-shrink: 0;
}

.product-section h4:not(.product-section-label) {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #8F8F8F;
}

.config-sidebar.config-card--summary .produktliste-scroll {
  flex: 1 1 0%;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 6px;
  /* Abstand über der festen Gesamt-Zeile, damit letzte Produktzeilen (z. B. Zweizeiler) nicht abgeschnitten wirken */
  padding-bottom: 28px;
  margin-right: -4px;
  scrollbar-gutter: stable;
}

.config-sidebar.config-card--summary .produktliste-scroll:focus-visible {
  outline: 2px solid rgba(245, 166, 35, 0.45);
  outline-offset: 2px;
}

/* Total Section – weißer Untergrund + leichtes Stacking, falls die Liste optisch darüber reicht */
.total-section {
  padding: 14px 0 0;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 16px;
  flex-shrink: 0;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

/* Detail-Sidebar: Disclaimer darf nicht unter die absolut positionierten Buttons rutschen */
.config-sidebar.config-card--summary .total-section--detail {
  margin-bottom: 0;
  padding-bottom: 4px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.total-label {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
}

.total-price {
  font-size: 20px;
  font-weight: bold;
  color: #000000;
}

.total-subtitle {
  font-size: 13px;
  color: #717171;
  text-align: right;
  margin-top: 4px;
}

.total-disclaimer--center {
  text-align: center;
  color: #717171;
  font-size: 11px;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* Detail Buttons – über der Gesamtzeile bleiben (gleicher Stacking-Kontext wie .total-section) */
.detail-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: #ffffff;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  z-index: 2;
}

.btn.outline {
  background: #ffffff;
  color: #000000;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.outline:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.btn.primary {
  background: #FFB101;
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary:hover {
  background: #f0a500;
  filter: none;
}

/* Übersicht Styles */
.overview-header {
  margin-bottom: 12px;
}

.overview-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #717171;
}

.overview-price-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  font-weight: 400;
}

.overview-price-hint strong {
  font-weight: 600;
  color: #475569;
}

.overview-content {
  flex: 1 1 0%;
  min-height: 0;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Konfigurationen + Zusatzprodukte gemeinsam scrollen */
.overview-main-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-right: -2px;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.config-sidebar.config-card--summary .overview-configs-scroll {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: #ffffff;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  z-index: 2;
}

/* Zusatzprodukte in Übersicht: mit Konfigs im .overview-main-scroll */
.additional-products-section {
  flex: 0 0 auto;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.overview-main-scroll .additional-products-section {
  margin-top: 8px;
}

.additional-products-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 12px 0;
}

.additional-products-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.additional-product-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: #000000;
  border-bottom: 1px solid #f3f4f6;
}

.additional-product-item:last-child {
  border-bottom: none;
}

.additional-product-item .item-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.additional-product-item .item-quantity {
  font-weight: 700;
  color: #000000;
  flex-shrink: 0;
}

.additional-product-item .item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.additional-product-item .item-ve {
  font-size: 12px;
  font-weight: 500;
  color: #717171;
  line-height: 1.3;
}

.additional-product-item .item-name {
  font-weight: 700;
  color: #000000;
}

.additional-product-item .item-price {
  font-weight: 700;
  color: #000000;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Checkboxen oberhalb des Grids */
.grid-checkboxes {
  margin: 20px 0;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.grid-checkboxes .checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.grid-checkboxes .checkbox-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.grid-checkboxes .checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FFB101;
  cursor: pointer;
}

.grid-checkboxes .checkbox-item span {
  color: #000000;
  font-weight: 500;
}

/* Module Dropdown Styles */
.module-dropdown {
  position: relative;
  display: inline-block;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.module-dropdown:hover {
  border-color: #0e1e34;
  box-shadow: 0 2px 8px rgba(14, 30, 52, 0.1);
}

.module-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.module-dropdown-title {
  font-size: 14px;
  font-weight: 500;
  color: #0e1e34;
}

.module-dropdown-arrow {
  transition: transform 0.2s ease;
}

.module-dropdown:hover .module-dropdown-arrow {
  transform: rotate(90deg);
}

.module-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #0e1e34;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(14, 30, 52, 0.15);
}

/* Opti Menge Input im Dropdown – an Rechner-Design angelehnt */
#opti-qty {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  color: #0e1e34;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  width: 90px;
  margin: 6px 12px;
}

#opti-qty:focus {
  outline: none;
  border-color: #ffb101;
  box-shadow: 0 0 0 3px rgba(255, 177, 1, 0.15);
}

#opti-qty::-webkit-outer-spin-button,
#opti-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#opti-qty[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.module-dropdown:hover .module-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.module-checkbox {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.module-checkbox:hover {
  background-color: #f8f9fa;
}

.module-checkbox input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: #0e1e34;
}

.checkbox-label {
  font-size: 14px;
  font-weight: 500;
  color: #0e1e34;
}

/* Config Items in Übersicht */
.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  gap: 12px;
}

.config-sidebar.config-card--summary .config-item:hover:not(.active):not(.add-config-btn) {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.config-item-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-item-name {
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  position: relative;
}

.config-item-price {
  font-size: 14px;
  color: #717171;
  font-weight: 600;
}

.config-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.config-item-actions .icon-btn {
  padding: 6px;
  font-size: 14px;
}

.config-item-arrow {
  font-size: 18px;
  color: #8F8F8F;
}

/* Aktive Config-Item */
.config-item.active:not(.add-config-btn) {
  background: #fbbf24;
  border-color: #f59e0b;
  color: #000000;
}

.config-item.active .config-item-name {
  color: #000000;
}

.config-item.active .config-item-price {
  color: #000000;
}

.config-item.active .config-item-arrow {
  color: #000000;
}

/* Inline-Editing im Config-Item-Name, ohne Layout-Verschiebung */
.config-item-name .inline-edit-input {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  background: #ffffff;
  border: 1px solid #FFB101;
  border-radius: 6px;
  padding: 6px 10px; /* mehr vertikales Padding */
  outline: none;
  z-index: 2;
}

/* Add Config Button */
.add-config-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  color: #6b7280;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-top: 10px;
  min-height: 52px;
}

.add-config-btn:hover {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #000000;
}

.add-config-btn .config-item-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.add-config-btn .config-item-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.add-config-btn .config-name {
  font-size: 24px;
  font-weight: 600;
  color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
  .planner {
    padding: 12px;
  }

  .configurator-grid {
    grid-template-columns: 1fr !important;
  }

  .config-card--canvas {
    height: var(--cfg-main-row-height);
    min-height: var(--cfg-main-row-height);
    max-height: var(--cfg-main-row-height);
  }

  .config-sidebar.config-card--summary {
    height: var(--cfg-main-row-height);
    min-height: var(--cfg-main-row-height);
    max-height: var(--cfg-main-row-height);
  }
}



.section-header h4 {
  margin: 0;
  color: #ffb101;
  font-size: 1rem;
  font-weight: bold;
}

.section-toggle-btn {
  background: none;
  border: none;
  color: #ffb101;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.section-toggle-btn:hover {
  background: rgba(255, 177, 1, 0.2);
}

.section-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Produktliste - Neues Design */
.produktliste {
  margin-bottom: 15px;
}

.config-sidebar.config-card--summary .produktliste-scroll .produktliste {
  margin-bottom: 0;
}

.produkt-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 0;
  margin-bottom: 8px;
  color: #000000;
  border: none;
  background: transparent;
}

.produkt-item:hover {
  background: transparent;
}

.produkt-item .item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.produkt-item .item-quantity {
  font-weight: bold;
  color: #000000;
  min-width: 30px;
}

.produkt-item .item-name {
  font-weight: bold;
  color: #000000;
  font-size: 14px;
}

.produkt-item .item-ve {
  color: #8F8F8F;
  font-size: 11px;
  font-weight: normal;
  margin-top: 0px;
  line-height: 1.2;
}

.produkt-item .item-details {
  color: #8F8F8F;
  font-size: 14px;
  font-weight: normal;
}

.produkt-item .item-price {
  font-weight: bold;
  color: #000000;
  text-align: right;
  min-width: 60px;
  margin-left: auto;
}

/* Sidebar Produktliste: 4-Spalten-Grid ohne display:contents (iframe-sicher) */
.config-sidebar.config-card--summary .produktliste .produkt-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 8px 12px;
  padding: 14px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: unset;
}

.config-sidebar.config-card--summary .produktliste .produkt-item:last-child {
  border-bottom: none;
}

.config-sidebar.config-card--summary .produktliste .produkt-item .item-quantity {
  grid-column: 1;
  font-weight: 700;
  font-size: 14px;
  color: #000000;
  line-height: 1.3;
  padding-top: 1px;
}

.config-sidebar.config-card--summary .produktliste .produkt-item .item-info {
  grid-column: 2;
  min-width: 0;
  flex: unset;
}

.config-sidebar.config-card--summary .produktliste .produkt-item .item-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

.config-sidebar.config-card--summary .produktliste .produkt-item .item-ve {
  font-size: 12px;
  color: #717171;
  margin-top: 2px;
  line-height: 1.3;
}

.config-sidebar.config-card--summary .produktliste .produkt-item .item-details {
  grid-column: 3;
  font-size: 13px;
  font-weight: 500;
  color: #717171;
  white-space: nowrap;
  line-height: 1.3;
  padding-top: 1px;
}

.config-sidebar.config-card--summary .produktliste .produkt-item .item-price {
  grid-column: 4;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  min-width: 4.5rem;
  line-height: 1.3;
  padding-top: 1px;
  margin-left: 0;
}

/* Alte Checkbox Styles entfernt */

/* Alte Config-Item Styles entfernt */

/* Moderne Buttons */
.btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.btn.primary {
  background: #ffb101;
  color: #072544;
}

.btn.primary:hover {
  background: #e6a000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn.secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

.grid-cell.first-click-marker::after { content: "1"; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; background: #f5a623; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; border: 2px solid white; box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3); }

/* DESKTOP INTRO OVERLAY */
.intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  /* Weißer Scrim + Blur: blendet Ränder des Shopify-iframes aus */
  background: rgba(255, 255, 255, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px; /* verhindert Rand-Cutoff auf kleinen Screens */
}

.intro-overlay:not(.hidden) { display: flex; }

.intro-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 26px;
  width: min(900px, 94vw);
  max-height: 92vh; /* verhindert, dass das Modal zu hoch wird */
  overflow-y: auto; /* Modal-internes Scrollen */
  overscroll-behavior: contain;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  border: 1px solid #e6eaf0;
  position: relative;
  animation: fadeInScale 0.18s ease-out;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.intro-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0e1e34;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.intro-close:hover { background: #f7f7f7; }

.intro-header h2 { margin: 0; color: #0e1e34; font-size: 24px; letter-spacing: 0.2px; }
.intro-sub { margin: 6px 0 14px 0; color: #4b5563; font-size: 15px; }

.intro-sections { display: grid; grid-template-columns: 1fr; gap: 14px 18px; }
.intro-section { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; }
.intro-section h3 { margin: 0 0 8px 0; font-size: 16px; color: #0e1e34; }
.intro-section ul { margin: 0 0 0 18px; color: #1f2937; }
.intro-section li { margin: 6px 0; }

.intro-list {
  margin: 10px 0 8px 18px;
  padding: 0;
  color: #1f2937;
}

.intro-list li { margin: 6px 0; }

.intro-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.intro-primary { background: #0e1e34; color: #ffffff; border: 1px solid #0e1e34; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 15px; }
.intro-primary:hover { background: #152b4a; }
.intro-note { margin-top: 6px; font-size: 12px; color: #6b7280; }

/* Einspaltiges Layout auch auf großen Screens (bessere Lesbarkeit) */

@media (max-width: 1024px) {
  .intro-modal { width: min(760px, 94vw); }
}

@media (max-width: 820px) {
  .intro-sections { grid-template-columns: 1fr; }
  .intro-modal { width: 94vw; max-height: 92vh; padding: 18px; }
  .intro-header h2 { font-size: 20px; }
  .intro-sub { font-size: 14px; }
  .intro-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Micro-Interactions: sanfte Hover-Elevation für Karten */
.intro-section { transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.intro-section:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14, 30, 52, 0.08); border-color: #d9dee6; background-color: #f8fafc; }
.intro-section:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(14, 30, 52, 0.06); }

/* ... existing code ... */
.intro-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.intro-primary { background: #0e1e34; color: #ffffff; border: 1px solid #0e1e34; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 15px; box-shadow: 0 3px 10px rgba(14, 30, 52, 0.15); transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease, border-color 0.12s ease; }
.intro-primary:hover { background: #152b4a; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14, 30, 52, 0.22); }
.intro-primary:active { transform: translateY(0) scale(0.99); box-shadow: 0 3px 10px rgba(14, 30, 52, 0.16); }
.intro-primary:focus-visible { outline: 2px solid #f5a623; outline-offset: 2px; }
.intro-note { margin-top: 6px; font-size: 12px; color: #6b7280; }
/* ... existing code ... */
.intro-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #0e1e34; font-size: 20px; line-height: 30px; text-align: center; cursor: pointer; box-shadow: 0 2px 6px rgba(14, 30, 52, 0.08); transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease, border-color 0.12s ease; }
.intro-close:hover { background: #f7f7f7; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 30, 52, 0.18); }
.intro-close:active { transform: translateY(0) scale(0.98); box-shadow: 0 2px 6px rgba(14, 30, 52, 0.12); }
.intro-close:focus-visible { outline: 2px solid #f5a623; outline-offset: 2px; }
/* ... existing code ... */
@media (prefers-reduced-motion: reduce) {
  .intro-section,
  .intro-primary,
  .intro-close,
  .intro-modal { transition: none !important; animation: none !important; }
}
/* ... existing code ... */

/* ===== Customer Type Switch (Rechner-Stil) ===== */
.customer-type-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 1px solid rgba(14, 30, 52, 0.12);
  border-radius: 12px;
  padding: 2px;
  box-shadow: 0 4px 14px rgba(14, 30, 52, 0.12);
  position: relative;
}

.customer-type-switch::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  background: #f5a623;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
  transform: translateX(0%);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.customer-type-switch.is-business::before { transform: translateX(100%); }
.customer-type-switch.is-private::before { transform: translateX(0%); }

.customer-type-switch .stp-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #0e1e34;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
  min-width: 132px;
  position: relative;
  z-index: 1;
}

.customer-type-switch .stp-btn:hover {
  background: rgba(245, 166, 35, 0.12);
}

.customer-type-switch .stp-btn:active {
  transform: scale(0.98);
}

/* Aktiver Zustand wird per JS-Klasse gesetzt */
.customer-type-switch .stp-btn-active { color: #ffffff; }

.customer-type-switch .stp-btn:focus-visible {
  outline: 2px solid #f5a623;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .customer-type-switch { border-radius: 10px; padding: 2px; }
  .customer-type-switch .stp-btn { min-width: 118px; padding: 9px 12px; font-size: 13px; }
}

/* ========== Konfigurator 2×2 (Referenz-Layout) ========== */
:root {
  --cfg-navy: #0f172a;
  --cfg-orange: #f5a623;
  --cfg-page: #f3f4f6;
  --cfg-border: #e5e7eb;
  --cfg-card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  /* Gemeinsame Höhe: Grid-Editor + Warenkorb-Spalte */
  --cfg-main-row-height: 80vh;
}

/*
 * Eingebettet im Shopify-iframe: 80vh + auto-Zeile > iframe → doppeltes Scrollen.
 * Kleinere Hauptzeile + max-height der Produktliste erzwingt internes Scrollen der Liste.
 */
html.solar-embed {
  --cfg-main-row-height: min(640px, calc(100vh - 200px));
}

@media (min-width: 900px) {
  html.solar-embed {
    --cfg-main-row-height: min(720px, calc(100vh - 220px));
  }
}

/*
 * Kein fixes max-height hier: sonst kann Label + Scroll-Max größer sein als der Flex-Slot.
 * .product-section ohne overflow:hidden (siehe Produktliste); äußere Begrenzung: .config-detail-view.
 * Scroll in .produktliste-scroll; Gesamt: background + z-index für saubere Überlagerung.
 */

/* Einklappbare Top-Zeile (Eingaben + Hilfe) – mehr Höhe für Canvas/Sidebar wenn zu */
.configurator-top-band {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.configurator-top-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .configurator-top-inner {
    grid-template-columns: 1fr;
  }
}

.configurator-top-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--cfg-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--cfg-card-shadow);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--cfg-navy);
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.configurator-top-toggle:hover {
  border-color: #cbd5e1;
}

.configurator-top-toggle:focus-visible {
  outline: 2px solid var(--cfg-orange);
  outline-offset: 2px;
}

.configurator-top-toggle-chevron {
  display: flex;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.2s ease;
}

.configurator-top-band.is-collapsed .configurator-top-toggle-chevron {
  transform: rotate(180deg);
}

.configurator-top-band.is-collapsed .configurator-top-inner {
  display: none;
}

#solar-configurator.configurator-grid--top-collapsed {
  --cfg-main-row-height: min(88vh, calc(100vh - 96px));
}

html.solar-embed #solar-configurator.configurator-grid--top-collapsed {
  --cfg-main-row-height: min(82vh, calc(100vh - 100px));
}

@media (min-width: 900px) {
  html.solar-embed #solar-configurator.configurator-grid--top-collapsed {
    --cfg-main-row-height: min(86vh, calc(100vh - 88px));
  }
}

/* iframe-Einbettung: weniger Rand links/rechts */
html.solar-embed .planner {
  padding-left: 8px;
  padding-right: 8px;
}

.configurator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
  grid-template-rows: auto var(--cfg-main-row-height);
  gap: 16px;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
}

/* Sidebar-Zelle: min-height + max-Höhe wie Grid-Zeile, sonst height:100% im iframe oft unbestimmt → kein internes Scrollen */
.configurator-grid > .config-sidebar.config-card--summary {
  min-height: 0;
  max-height: var(--cfg-main-row-height);
  align-self: stretch;
}

@media (max-width: 1100px) {
  .configurator-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .config-card--canvas {
    height: var(--cfg-main-row-height);
    min-height: var(--cfg-main-row-height);
    max-height: var(--cfg-main-row-height);
  }

  .config-sidebar.config-card--summary {
    height: var(--cfg-main-row-height);
    min-height: var(--cfg-main-row-height);
    max-height: var(--cfg-main-row-height);
  }
}

.config-card {
  background: #ffffff;
  border: 1px solid var(--cfg-border);
  border-radius: 16px;
  box-shadow: var(--cfg-card-shadow);
  padding: 20px 22px;
  box-sizing: border-box;
}

.config-card--inputs .setup-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.config-card--inputs .setup-fields-box {
  border: 1px solid var(--cfg-border);
  border-radius: 12px;
  padding: 18px 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.config-card--inputs .field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.setup-row--full select,
.config-card--inputs .setup-row--full select {
  width: 100%;
}

.setup-row--dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.config-card--inputs input[type="number"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--cfg-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  box-sizing: border-box;
  background: #fff;
}

.config-card--inputs input[type="number"]:focus {
  outline: none;
  border-color: var(--cfg-orange);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.config-card--inputs .setup-toolbar {
  --toolbar-chip-h: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.config-card--inputs .setup-toolbar-dropdown.module-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid var(--cfg-border);
  border-radius: 10px;
  padding: 0;
  min-width: 0;
  min-height: var(--toolbar-chip-h);
  max-width: 100%;
  box-shadow: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.config-card--inputs .setup-toolbar-dropdown.module-dropdown:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  box-shadow: none;
}

.config-card--inputs .setup-toolbar-dropdown .module-dropdown-header {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--toolbar-chip-h);
  padding: 0 12px 0 14px;
  box-sizing: border-box;
}

.config-card--inputs .setup-toolbar-dropdown .module-dropdown-title {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
}

.config-card--inputs .config-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex-shrink: 0;
}

.config-card--inputs .config-chevron--down svg {
  display: block;
  transition: transform 0.2s ease;
}

.config-card--inputs .setup-toolbar-dropdown.module-dropdown:hover .config-chevron--down svg {
  transform: rotate(180deg);
}

.config-card--inputs .setup-toolbar-dropdown .module-dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 100%;
  width: max-content;
  max-width: min(300px, calc(100vw - 48px));
  background: #ffffff;
  border: 1px solid var(--cfg-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.config-card--inputs .setup-toolbar-dropdown.module-dropdown:hover .module-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.config-card--inputs .setup-toolbar-dropdown .module-checkbox {
  background: #f3f4f6;
  border-radius: 10px;
  margin: 4px 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.config-card--inputs .setup-toolbar-dropdown .module-checkbox:hover {
  background: #e5e7eb;
}

.config-card--inputs .setup-toolbar-dropdown .module-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cfg-orange);
  cursor: pointer;
}

.config-card--inputs .setup-toolbar-dropdown .checkbox-label {
  color: #111827;
}

.config-card--inputs .checkbox-pill.checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: var(--toolbar-chip-h);
  padding: 0 14px;
  box-sizing: border-box;
  background: #f3f4f6;
  border: 1px solid var(--cfg-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.25;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.config-card--inputs .checkbox-pill.checkbox-item:hover {
  background: #e5e7eb;
}

.config-card--inputs .checkbox-pill.checkbox-item:has(input:checked) {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.config-card--inputs .checkbox-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cfg-orange);
  cursor: pointer;
}

.config-card--inputs .btn-reset {
  width: auto;
  margin-top: 0;
  margin-left: 0;
  min-height: var(--toolbar-chip-h);
  padding: 0 18px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  border: none;
  border-radius: 10px;
  background: var(--cfg-orange);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, filter 0.2s ease;
}

.config-card--inputs .btn-reset:hover {
  background: #e89812;
  filter: none;
}

.config-card--inputs .btn-reset:focus-visible {
  outline: 2px solid var(--cfg-navy);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .config-card--inputs .btn-reset {
    width: 100%;
    margin-left: 0;
  }
}

.config-card--help {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.help-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.help-card-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #001f3f, #0e4d8f);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-phone-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-phone-icon {
  color: var(--cfg-navy);
  flex-shrink: 0;
}

.help-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--cfg-navy);
  text-decoration: underline;
  cursor: pointer;
}

.help-phone:hover {
  color: #0e4d8f;
}

.btn-video {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  background: var(--cfg-navy);
  color: #ffffff !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
  margin-top: auto;
}

.btn-video:hover {
  background: #003366;
  color: #fff !important;
}

/* —— Erklärvideo-Modal (YouTube), auch im Shopify-iframe nutzbar —— */
.ukc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ukc-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ukc-modal-content {
  position: relative;
  width: 100%;
  max-width: min(960px, 100%);
  max-height: min(85vh, calc(100% - 24px));
  background: #0f172a;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.ukc-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.ukc-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ukc-modal-close:focus-visible {
  outline: 2px solid var(--cfg-orange, #f5a623);
  outline-offset: 2px;
}

.ukc-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(calc(85vh - 80px), 70vh);
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.ukc-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

html.ukc-modal-open,
html.ukc-modal-open body {
  overflow: hidden;
}

html.solar-embed .ukc-modal-content {
  max-width: min(100%, 920px);
  max-height: min(90vh, calc(100vh - 32px));
}

html.solar-embed .ukc-video-wrapper {
  max-height: min(calc(90vh - 96px), 65vh);
}

@media (max-width: 480px) {
  .ukc-modal-content {
    padding: 10px;
    border-radius: 12px;
  }

  .ukc-modal-close {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
  }
}

.config-card--canvas {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
}

.config-card--canvas .frame--editor {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.config-card--canvas .grid-container {
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}

.config-card--canvas .canvas {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.config-card--canvas .grid-wrapper {
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.loading-overlay.loading-overlay--in-card {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 12px;
  z-index: 40;
}

.opti-qty-input {
  display: none;
  width: 90px;
  margin: 8px 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.total-disclaimer {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #717171;
  text-align: left;
}

.config-sidebar.config-card--summary .config-detail-view {
  /* Platz für feste Button-Leiste unter der Gesamtzeile (kein Preis-Disclaimer mehr) */
  padding-bottom: 128px;
}

.config-sidebar.config-card--summary .config-overview {
  padding-bottom: 118px;
}

.config-sidebar.config-card--summary .total-price {
  font-size: 1.5rem;
  font-weight: 700;
}

.config-sidebar.config-card--summary .total-label {
  font-size: 17px;
}

.config-sidebar.config-card--summary .detail-buttons .btn,
.config-sidebar.config-card--summary .overview-buttons .btn {
  margin-bottom: 0;
  width: 100%;
}

.config-sidebar.config-card--summary .btn.primary {
  background: #FFB101;
  color: #000000;
}

.config-sidebar.config-card--summary .btn.primary:hover {
  background: #f0a500;
}

.btn-cart-icon {
  margin-right: 8px;
  vertical-align: middle;
}

.back-chevron {
  margin-right: 4px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .config-card--inputs .btn-reset,
  .btn-video,
  .orientation-btn,
  .expand-btn {
    transition: none !important;
  }
}