:root {
  --primary: #dc3545;
  --primary-hover: #b12c38;
  --bg-dark: #101114;
  --bg-light: #f5f5f5;
  --text-dark: #e6edf3;
  --text-light: #1d1d1b;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,.2);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-dark);
  height: 100vh;
  display: flex;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.order-wizard {
  display: flex;
  width: 100%;
}

/* Sidebar */
.wizard-sidebar {
  width: 260px;
  background: #151618;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.wizard-sidebar .logo {
  font-family: 'Play', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: 1px;
}

.logo {
  width: 100%;
  align-items: center;
  text-align: center;
}

.wizard-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.wizard-steps li {
  color: #aaa;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.wizard-steps li span {
  background: #333;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

.wizard-steps li.active,
.wizard-steps li.active span {
  color: var(--primary);
  background: #2b2d31;
}

.progress {
  height: 6px;
  background: #333;
  border-radius: var(--radius);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  width: 25%;
  transition: width .3s ease;
}

/* Main content */
.wizard-content {
  flex: 1;
  background: var(--bg-dark);
  padding: 3rem;
  overflow-y: auto;
  background-image: url(https://www.racecoat.de/img/hero/hero-5.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.step {
  display: none;
  animation: fadeIn .3s ease;
}
.step.active {
  display: block;
}

h1 {
  font-family: 'Play', sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
}

p { color: #ccc; }

.buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  font-family: 'Play', sans-serif;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #2b2d31;
  color: #fff;
}
.btn-secondary:hover {
  background: #3a3c42;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Produktkarten */
.product-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: #1b1c1f;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.product-card:hover {
  background: #242529;
}

.product-card img {
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-family: 'Play', sans-serif;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-card p {
  color: #ccc;
  font-size: 0.9rem;
  min-height: 45px;
}

.btn-add {
  margin-top: 1rem;
  width: 100%;
}

/* Ausgewählte Produkte */
.selected-products {
  background: #151618;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow);
}

.selected-products h2 {
  font-family: 'Play', sans-serif;
  color: var(--primary);
  margin-bottom: 1rem;
}

#product-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

#product-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #202225;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
}

#product-list li span {
  color: #fff;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--txt-dim, #bbb) !important;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
    transition: color .2s;
}

.remove-btn:hover {
  color: var(--primary, #dc3545) !important;
}

.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-align: right;
}

.lederkombi-form {
  background:#151618;
  padding:2rem;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  max-width:800px;
}
.lederkombi-form h1 { color:var(--primary); font-family:'Play',sans-serif; }
.form-section { margin-top:2rem; }
.form-section h2 { font-size:1.2rem; color:var(--primary); margin-bottom:.5rem; }
select,input[type="checkbox"] { margin-bottom:.5rem; }
select { width:100%; padding:.5rem; border-radius:var(--radius); background:#202225; color:#fff; border:none; margin-top: 10px;}
.checkbox-grid { display:grid; gap:.5rem; }
.price-box { background:#202225; padding:1rem; border-radius:var(--radius); margin-top:2rem; }
.price-box h3 { color:var(--primary); margin:0; }
.price-box p { color:#ccc; margin:.25rem 0 0; }

.product-config {
  background:#151618;
  margin-bottom:2rem;
  padding:1.5rem;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.overall-sum {
  background:#202225;
  padding:1rem 1.5rem;
  border-radius:var(--radius);
  text-align:right;
}

.price-note small {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.25rem;
}

#product-list li span.price {
  color: #fff;
  font-weight: 600;
}

#product-list li span.price::before {
  content: "ab: ";
  font-weight: 400;
  color: #ccc;
}

#product-list li span.price::after {
  content: "*";
  color: var(--primary);
  margin-left: 2px;
}

.price-note {
  margin-top: 1.2rem;
}

.price-note small {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.3rem;
}

#product-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #202225;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
}

/* Der Text links */
#product-list li span:first-child {
  flex: 1;
  color: #fff;
}

/* Preis + Entfernen-Button rechts gruppieren */
#product-list li .price,
#product-list li .remove-btn {
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* Preis rechtsbündig */
#product-list li .price {
  text-align: right;
  font-weight: 600;
  color: #fff;
}

/* "ab:" und Sternchen visuell leicht abgesetzt */
#product-list li .price::before {
  content: "ab: ";
  font-weight: 400;
  color: #bbb;
}

#product-list li .price::after {
  content: "*";
  color: var(--primary);
  margin-left: 2px;
}

/* Entfernen-Button bleibt rechts daneben */
.remove-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.price-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-note {
  margin-top: 1.2rem;
}

.total-line {
  text-align: right;
  color: #fff;
}

.total-line .total {
  margin: 0;
  font-weight: 600;
}

.total-line .total:first-child {
  color: var(--primary);
}

.total-line .total:last-child {
  color: #ccc;
  font-size: 0.9rem;
}

.price-note small {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.5rem;
}

.lederkombiForm h3 { color: var(--primary); margin-bottom: 1rem; }
.lederkombiForm select,
.lederkombiForm input[type="checkbox"] { margin-bottom: .4rem; }
.checkbox-grid {
  display: grid;
  gap: .3rem;
}

.price-box h4 { color: var(--primary); margin:0; }
.price-box p { color:#ccc; margin:.25rem 0 0; }

.info-icon {
  color: var(--primary);
  margin-left: .3rem;
  cursor: pointer;
  position: relative;
}

.price-box { text-align: right; }
.price-box small {
  display: block;
  font-size: .8rem;
  color: #aaa;
  margin-top: .4rem;
}

.lederkombiForm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1rem 2rem;
}
.form-section {
  background: #1b1c1f;
  padding: 1rem;
  border-radius: var(--radius);
}

/* ===========================
   TOOLTIP STYLES (Info-Icons)
   =========================== */
.info-icon {
  color: var(--primary);
  margin-left: 0.35rem;
  position: relative;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.info-icon i {
  pointer-events: none;
}


/* Mobile Touch-Fix */
@media (hover: none) {
  .info-icon:active::after,
  .info-icon:active::before {
    opacity: 1;
  }
}


/* =======================================
   TOOLTIP (HTML-Unterstützung + Animation)
   ======================================= */
.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tooltip-box {
  position: absolute;
  right: 3rem !important;
  transform: translateY(-50%);
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: 280px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 20;
  text-align: left;
}

.info-icon:hover .tooltip-box,
.info-icon.active .tooltip-box {
  opacity: 1;
  visibility: visible;
  right: 140%; /* leicht nach außen verschoben für Freiraum */
}

.tooltip-box b {
  color: var(--primary);
  display: inline-block;
  margin-bottom: 0.2rem;
}

.tooltip-box ul {
  padding-left: 1rem;
  margin: 0.3rem 0 0;
}

.tooltip-box li {
  list-style: disc;
  margin-bottom: 0.2rem;
}

@keyframes tooltipFade {
  from { opacity: 0; transform: translateX(-50%) scale(0.9); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes pulse-dot {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 59, 59, 0);
  }
}

/* verhindert sichtbare Initialisierung beim Step-Wechsel */
.tooltip-hidden .tooltip-box {
  display: none !important;
}

/* ===========================================
   PREISBOX – Sauberes Layout (Racecoat Style)
   =========================================== */
.price-box {
  background: #202225;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  color: #e6edf3;
  text-align: left;
}

.price-layout {
  display: grid;
  gap: 0.4rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  line-height: 1.4;
}

.price-row .label {
  color: var(--primary);
  font-weight: 600;
}

.price-row .value {
  color: #fff;
  font-weight: 700;
  text-align: right;
  min-width: 90px;
}

.price-row.small {
  font-size: 0.85rem;
  opacity: 0.8;
}

.price-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #999;
  text-align: right;
  line-height: 1.3;
}

.price-box .priceBrutto {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-box .priceNetto {
  color: #e6edf3;
}

.price-box .priceTax {
  color: #ccc;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.remove-config {
  background: none;
  border: none;
  color: var(--txt-dim, #bbb);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color .2s;
}

.remove-config:hover {
  color: var(--primary, #dc3545);
}

button.disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* =====================================
   Info-Icons rechtsbündig ausrichten
   ===================================== */
label {
  display: flex;
  align-items: center;
}

label .info-icon {
  margin-left: auto;
  color: #aaa;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

label .info-icon:hover {
  color: var(--primary); /* Racecoat-Rot beim Hover */
}

.tooltip-box {
  right: 0;
  left: auto;
  transform: translateX(5%);
}

/* Standardzustand */
.product-card img {
  filter: brightness(0) invert(0); /* bleibt schwarz */
  transition: filter 0.3s ease;
}

/* Hover-Zustand – wird weiß */
.product-card:hover img {
  filter: brightness(0) invert(1);
}

input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Inputs */
.customProjektForm input[type="text"],
.customProjektForm input[type="number"],
.customProjektForm input[type="date"],
.customProjektForm input[type="email"],
.customProjektForm input[type="tel"],
.customProjektForm select,
.customProjektForm textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--line, #2d3642);
  background: var(--bg-1, #212529);
  color: var(--txt, #e6edf3);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.customProjektForm input:focus,
.customProjektForm select:focus,
.customProjektForm textarea:focus {
  outline: none;
  border-color: var(--primary, #dc3545);
  background: var(--bg-2, #2a2d31);
}

/* Labels */
.customProjektForm label {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--txt, #e6edf3);
}

/* Fix: Checkbox-Labels in der Custom-Projekt Checkbox-Grid wie auf den anderen Seiten ausrichten */
.customProjektForm .checkbox-grid label {
  justify-content: flex-start; /* Text neben Checkbox, nicht an den Rand gedrückt */
  gap: .5rem;
}

/* Datei-Upload */
.customProjektForm input[type="file"] {
  background: var(--bg-1, #212529);
  border: 1px dashed var(--grey, #6c757d);
  color: var(--txt-dim, #aeb6bf);
  padding: 0.5rem;
  cursor: pointer;
}

/* Textarea */
.customProjektForm textarea {
  resize: vertical;
  min-height: 120px;
}

.customProjektForm .form-section {
  box-sizing: border-box;
  overflow: hidden;
}

.customProjektForm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem 2rem;
  border-radius: var(--radius);
}

.customProjektForm .form-section {
  background: #1b1c1f;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #2a2d31;
}

.customProjektForm label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 600;
  gap: 0.3rem;
}

.customProjektForm select,
.customProjektForm input,
.customProjektForm textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  background: #202225;
  color: #e6edf3;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.customProjektForm textarea {
  resize: vertical;
  min-height: 140px;
  grid-column: 1 / -1;
}

.customProjektForm input[type="file"] {
  border: 2px dashed var(--primary);
  background: #1b1c1f;
  color: #ccc;
  padding: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  width: 100%;
}

.customProjektForm input[type="file"]:hover {
  background: #202225;
  border-color: var(--primary-hover);
  color: #fff;
}

.customProjektForm input[type="file"]::file-selector-button {
  display: none;
}

.customProjektForm h3 { color: var(--primary); margin-bottom: .3rem; }

/* ==========================================
   Custom Projekt: Extras Checkboxes
   ========================================== */
.extras-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #202225;
  border: 1px solid #2b2d31;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-option:hover {
  border-color: var(--primary);
  background: #252729;
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================
   Custom Projekt: Option Pills (inline Checkboxen)
   ========================================== */
.customProjektForm .option-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #202225;
  border: 1px solid #2b2d31;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-right: 0.8rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.customProjektForm .option-pill:hover {
  border-color: var(--primary);
  background: #252729;
}

.customProjektForm .option-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.customProjektForm .option-pill > span:not(.info-icon) {
  font-weight: 500;
  font-size: 0.95rem;
  color: #e6edf3;
  white-space: nowrap;
}

.customProjektForm .option-pill .info-icon {
  margin-left: 0.2rem;
}

.checkbox-option .checkbox-label {
  flex: 1;
  font-weight: 500;
  color: #e6edf3;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-option .info-icon {
  margin-left: auto;
  flex-shrink: 0;
}

/* ==========================================
   INFO-ICON neben Label-Text (nicht darunter)
   ========================================== */
.customProjektForm label {
  display: flex;
  flex-direction: row;         /* Text und Icon nebeneinander */
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--txt, #e6edf3);
  margin-bottom: 0.4rem;
  gap: 0.4rem;
}

/* Icon-Stil innerhalb der Labels */
.customProjektForm label .info-icon {
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.customProjektForm label .info-icon:hover {
  color: var(--primary-hover);
}

/* ==========================================
   Custom Projekt: Upload-Box Styling
   ========================================== */
.customProjektForm .upload-box {
  position: relative;
  background: #1b1c1f;
  border: 2px dashed #2b2d31;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.customProjektForm .upload-box:hover {
  border-color: var(--primary);
  background: #202225;
}

.customProjektForm .upload-box input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  margin: 0;
  border: none;
}

.customProjektForm .upload-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.customProjektForm .upload-text {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.customProjektForm .upload-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

.customProjektForm .upload-box small {
  display: block;
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* File List für Custom Projekt */
.customProjektForm .file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Upload-Box klickbar machen */
.upload-box {
  position: relative;
  background: var(--bg-1, #212529);
  border: 1px dashed var(--grey, #6c757d);
  color: var(--txt-dim, #aeb6bf);
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-box:hover {
  border-color: var(--primary);
  background: rgba(220,53,69,0.05);
}

.upload-box i.upload-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.customProjektForm .upload-text {
  margin: 0.25rem 0;
}

.upload-box small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #aaa;
}

/* Klick auf ganze Box → Dateidialog */
.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-preview {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #202225;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease;
}

.upload-item .file-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upload-item i.fa {
  background: none;
  border: none;
  color: var(--txt-dim, #bbb);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color .2s;
}


.upload-item i.fa:hover {
  color: var(--primary, #dc3545);
}

.upload-item .file-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.upload-item .file-name {
  color: #e6edf3;
  font-weight: 600;
  font-size: 0.9rem;
}

.upload-item .file-size {
  color: #aaa;
  font-size: 0.8rem;
}

.upload-item .remove-file {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
}

.upload-item .remove-file:hover {
  color: var(--primary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================
   Thumbnails in Preview
   ====================== */

.upload-item .file-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.file-thumb {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.upload-item .file-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upload-item .file-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.upload-item .file-right .remove-file {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
}

.upload-item .file-right .remove-file:hover {
  color: var(--primary);
}

/* ===========================
   🖼️ Lightbox / Image Preview
   =========================== */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 9999;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  animation: lightboxZoom .3s ease;
}

.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@keyframes lightboxZoom {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ==============================
   Preisbox & Aufschlüsselung
   ============================== */

.price-breakdown {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.price-breakdown h4 {
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.price-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-breakdown-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--txt-dim);
  padding: 0.15rem 0;
}


.product-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--txt);
  margin: 0;
}

.product-title .product-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Weiß im Darkmode */
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===================================
   Gesamtsumme Styling (Racecoat-Style)
   =================================== */

.step-2 .overall-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  background: transparent;
  border-top: 1px solid var(--line);
  margin-top: 25px;
}

.step-2 .overall-sum h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 8px;
  text-transform: none;
}

.step-2 .overall-price-box {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--txt);
}

.step-2 .overall-price-box .price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.step-2 .step-2 .overall-price-box .price-row .label {
  color: var(--primary);
  font-weight: 600;
}

.step-2 .overall-price-box .price-row .value {
  font-weight: 600;
  color: var(--txt);
}

.step-2 .overall-price-box .price-row.small .label {
  color: var(--txt-dim);
  font-weight: 500;
}

.step-2 .overall-price-box .price-row.small .value {
  font-weight: 500;
  color: var(--txt-dim);
}

.step-2 .price-note {
  font-size: 0.8rem;
  color: var(--txt-dim);
  margin-top: 6px;
  text-align: right;
  width: 220px;
}

/* Optional: kleine Animation, wenn Werte sich ändern */
.step-2 .overall-price-box .value {
  transition: all 0.25s ease;
}

.step-2 .overall-price-box .value.updated {
  color: var(--primary);
  transition: color 0.25s ease;
}


/* ========================================
   STEP 3 Layout
   ======================================== */
.step3-card {
  background:#151618;
  border-radius:var(--radius);
  padding:1.5rem;
  margin-bottom:2rem;
  box-shadow:var(--shadow);
}

.step3-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
}

.grid-3 {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.75rem;
}

.logo-upload {
  display:flex;
  gap:.5rem;
  align-items:center;
  padding: 20px;
    background-color: #151618;
    border-radius: 10px;
}
.logo-list {
  margin-top:.5rem;
}
.logo-list .logo-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#202225;
  padding:.4rem .6rem;
  border-radius:6px;
  margin-bottom:.4rem;
}

/* ========================================
   STEP 3 – Farbauswahl (Racecoat Design)
   ======================================== */

.step3-card--colors {
  background: #1b1c1f;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  color: #e6edf3;
}

.step3-card--colors h3 {
  font-family: 'Play', sans-serif;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
}

.step3-card--colors h4 {
  color: #ccc;
  font-size: 0.95rem;
  margin: 1.2rem 0 0.6rem;
}

/* Farbgrid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  padding: 20px;
  background-color: #151618;
  border-radius: var(--radius);
}

.color-tile {
  position: relative;
  border-radius: 6px;
  height: 70px;
  cursor: pointer;
  border: 2px solid #2b2d31;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible; /* Tooltip darf überstehen */
  z-index: 1;
}

.color-tile:hover {
  transform: scale(1.05);
  z-index: 10;
}

/* =========================================
   Lederstruktur + Glanz-Fade (Racecoat Style)
   ========================================= */
/* Lederstruktur bleibt auf eigenem Element */
.color-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("/assets/textures/leather-texture.png");
  opacity: 0.9;
  mix-blend-mode: color-burn;
  pointer-events: none;
  border-radius: 7px;
}

/* Glanz-Fade */
.color-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at top right, rgb(255 255 255 / 4%) 70%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 0%);
  mix-blend-mode: lighten;
  pointer-events: none;
}

/* NEU: Overlay + Icon */
.color-tile.selected .overlay-select {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #fff;
  font-family: 'Play', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 5;
  animation: selectFadeIn 0.25s ease;
  pointer-events: none;
}

.color-tile.selected .overlay-select::before {
  content: "✔";
}


@keyframes selectFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Ausgewählte Farben */
.selected-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.selected-color {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 1px solid #2b2d31;
  position: relative;
  overflow: hidden;
}

.selected-color button {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
}

/* ========================================
   STEP 3 – Fahrer Details (Racecoat Style)
   ======================================== */

.step3-card--details {
  background: #1b1c1f;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  color: #e6edf3;
}

.step3-card--details h3 {
  font-family: 'Play', sans-serif;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  text-transform: none;
}

/* Input-Gitter */
.step3-card--details .details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem 1.5rem;
}

/* Eingabefelder */
.step3-card--details input[type="text"],
.step3-card--details input[type="number"],
.step3-card--details select,
.step3-card--details textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #202225;
  margin-top: 10px;
  color: #e6edf3;
  border: 1px solid #2b2d31;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.step3-card--details input:focus,
.step3-card--details select:focus,
.step3-card--details textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #1f2022;
}

/* Labels */
.step3-card--details label {
  font-weight: 600;
  color: #ccc;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
}

/* Textarea */
.step3-card--details textarea {
  min-height: 110px;
  resize: vertical;
}

/* Upload-Bereich */



/* Upload-Liste */
.step3-card--details .file-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.step3-card--details .file-item {
  background: #202225;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
}

.step3-card--details .file-item span {
  color: #e6edf3;
  font-size: 0.9rem;
}

.step3-card--details .file-item button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
}

/* + Button bei Logos */
.add-logo {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.add-logo:hover {
  background: var(--primary-hover);
}

/* ==========================================
   STEP 3 – Farbtooltip beim Hover
   ========================================== */

/* Entferne den Text im Tile selbst */
.color-tile span { display: none; }

/* Tooltip-Styling */
.color-tile .color-tooltip {
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.color-tile:hover .color-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Pfeil unter Tooltip */
.color-tile .color-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.config-header .config-title { display:flex; align-items:center; gap:.6rem; } .header-icon { width:100px; height:100px; object-fit:contain; display:block; margin-right: 1rem; } .step3-header h2 { display:flex; align-items:center; gap:.6rem; }

/* ==========================================
   STEP 3 – Ausgewählte Farben (Detailkarte)
   ========================================== */

/* ==========================================
   STEP 3 – Ausgewählte Farben (zentrierter Stil)
   ========================================== */

.selected-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.selected-color {
  position: relative;
  width: 130px;
  height: 100px;
  background: #1b1c1f;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Farbfläche mit Lederstruktur + Glanz */
.selected-color::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: inherit;
  z-index: 1;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}

.selected-color::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background:
    radial-gradient(circle at top left,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.05) 30%,
      rgba(0,0,0,0) 75%),
    url("/assets/textures/leather-texture.png");
  background-size: cover;
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

/* Zentrierter Text (Name + ID) */
.color-info {
  position: relative;
  z-index: 3;
  text-align: center;
  font-family: 'Play', sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  line-height: 1.2;
}

.color-info .color-name {
  display: block;
  font-size: 0.9rem;
}

.color-info .color-id {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Entfernen-Button */
.selected-color .remove-color {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #2b2d31;
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.selected-color .remove-color:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================
   STEP 3 – Logos / Muster Upload Liste
   ========================================== */

.logo-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.logo-item {
  background: #202225;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease;
}

.logo-item .file-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-item .file-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #333;
}

.logo-item .file-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-item .file-name {
  color: #e6edf3;
  font-weight: 600;
  font-size: 0.9rem;
}

.logo-item .file-size {
  color: #aaa;
  font-size: 0.8rem;
}

.logo-item .remove-file {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.logo-item .remove-file:hover {
  color: var(--primary);
}

.fa-align-left {
  color: var(--primary);
}

.logo-item .file-name {
  color: #e6edf3;
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}

/* ==========================================
   STEP 3 – Logos / Muster Upload Design
   ========================================== */

.logo-upload {
  display: flex;
  flex-wrap: wrap;  /* ermöglicht Umbruch für Preview in neue Zeile */
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

/* Textfeld */
.logo-upload input[type="text"] {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #2b2d31;
  background: #202225;
  color: #e6edf3;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.logo-upload input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  background: #1f2022;
}

/* Datei-Upload (Custom Button + Text) */
/* Visuell versteckter Datei-Input: nimmt keinen Platz ein */
.logo-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sichtbarer, frei layoutbarer Button */
.logo-upload .btn-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #202225;
  color: #ccc;
  border: 1px solid #2b2d31;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.logo-upload .btn-file:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* + Hinzufügen Button */
.logo-upload .btn-add-logo {
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.logo-upload .btn-add-logo:hover {
  background: var(--primary-hover);
}

.logo-upload .btn-add-logo:active {
  transform: scale(0.95);
}

/* ==========================================
   STEP 3 – Datei-Vorschau (vor dem Hinzufügen)
   ========================================== */
.file-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #202225;
  border: 1px solid #2b2d31;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: #ccc;
  font-size: 0.85rem;
  animation: fadeIn 0.25s ease;
  /* Neue Zeile: Preview nutzt volle Breite unterhalb der Buttons */
  width: 100%;
  flex-basis: 100%;
  margin-top: 0.3rem;
}

.file-preview-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #333;
  flex-shrink: 0;
}

.file-preview-name {
  font-family: 'Inter', sans-serif;
  color: #e6edf3;
  font-weight: 500;
  flex: 1;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   STEP 3 – Konfigurations-Übersicht
   ========================================== */

.config-card {
  background: #1b1c1f;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  color: #e6edf3;
  font-family: 'Inter', sans-serif;
  margin-top: 1.5rem;
}

.config-card h3 {
  font-family: 'Play', sans-serif;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 2rem;
}

.config-col h4 {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.config-col {
  font-size: 0.9rem;
  line-height: 1.45;
}

.upload-box.drag-over {
  border-color: var(--primary);
  background: rgba(220, 53, 69, 0.1);
}

.upload-box input[type="file"] {
  pointer-events: none;
  position: absolute;
  opacity: 0;
}

/* ============================
   STEP 3 – Card Collapse Style
   ============================ */

.step3-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* der Hauptinhalt */
.step3-card .step3-grid {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

/* eingeklappter Zustand */
.step3-card.collapsed .step3-grid {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Toggle Button */
.collapse-toggle {
  width: 100%;
  background: #202225;
  color: #bbb;
  border: none;
  border-top: 1px solid #2b2d31;
  font-family: 'Play', sans-serif;
  padding: 0.6rem;
  cursor: pointer;
  text-align: center;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 32px;

}

.collapse-toggle:hover {
  background: #2b2d31;
  color: var(--primary);
}

.collapse-toggle i {
  transition: transform 0.3s ease;
}



/* Pfeil dreht sich beim Einklappen */
.step3-card.collapsed .collapse-toggle i {
  transform: rotate(180deg);
}

/* ============================
   STEP 2 – Card Collapse Style
   ============================ */

.product-config {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* der Hauptinhalt */
.product-config form,
.product-config > *:not(.config-header):not(.collapse-toggle) {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

/* eingeklappter Zustand */
.product-config.collapsed form,
.product-config.collapsed > *:not(.config-header):not(.collapse-toggle) {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Toggle Button (gleich wie Step 3, leicht angepasst für spacing) */
.product-config .collapse-toggle {
  width: 100%;
  background: #202225;
  color: #bbb;
  border: none;
  border-top: 1px solid #2b2d31;
  font-family: 'Play', sans-serif;
  padding: 0.6rem;
  cursor: pointer;
  text-align: center;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 24px;
}

.product-config .collapse-toggle:hover {
  background: #2b2d31;
  color: var(--primary);
}

.product-config .collapse-toggle i {
  transition: transform 0.3s ease;
}

/* Pfeil dreht sich beim Einklappen */
.product-config.collapsed .collapse-toggle i {
  transform: rotate(180deg);
}

/* ===== Custom-Projekt: Toggle mittig unten platzieren ===== */
.product-config--custom {
  position: relative;
  padding-bottom: 3.25rem; /* Platz für den Toggle-Button */
}

.product-config--custom > .collapse-toggle {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;               /* nicht volle Breite */
  min-width: 44px;
  padding: 0.35rem 0.75rem;  /* kompakter */
  z-index: 5;
}


/* ==========================================
   FILE PREVIEW (unterhalb der Upload Box)
   ========================================== */
.file-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #202225;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: #e6edf3;
  font-size: 0.9rem;
  animation: fadeInFile 0.25s ease;
}

.file-item .file-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.file-item .file-info i {
  font-size: 1rem;
  color: var(--primary);
}

.file-item button.remove-file {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.file-item button.remove-file:hover {
  color: var(--primary-hover);
}

@keyframes fadeInFile {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   STEP 4 – Abschluss
   ========================================= */
.review-card { border:1px solid #2b2d31; border-radius:12px; padding:16px; margin-bottom:14px; background:#1e2024; }
.review-head { display:flex; align-items:center; gap:.6rem; margin-bottom:.5rem; }
.review-grid { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.mini-color { width:18px; height:18px; display:inline-block; border-radius:4px; margin-right:6px; border:1px solid #0006; }
.mini-file { display:flex; gap:.4rem; align-items:center; }
.share { display:flex; gap:.5rem; align-items:center; margin:1rem 0; }
.share-url { flex:1; }
.alert.info { background:#1e2633; border:1px solid #2e3b52; padding:10px; border-radius:8px; }
.grid.two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.checkout-login-bar.hidden, .checkout-user-info.hidden { display:none; }
.review-totals { margin: 12px 0 16px; display:flex; gap:16px; flex-wrap:wrap; }
.legal { margin: 12px 0; }
.actions { display:flex; gap:8px; justify-content:flex-end; margin-top: 12px; }


/* =========================================
   STEP 5 – Danke-Seite
   ========================================= */
.step-5 {
  text-align: center;
  padding: 3rem 1rem;
}

.step-5 .thankyou {
  background: #1e2024;
  border: 1px solid #2b2d31;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  color: #ddd;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

.step-5 h1 {
  font-size: 2rem;
  color: var(--primary, #dc3545);
  margin-bottom: 1rem;
}

.step-5 p {
  margin-bottom: 1rem;
}

.step-5 .ticket-number {
  font-size: 1.4rem;
  color: #0f0;
  margin: 1rem 0;
}

.step-5 .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--primary);
  top: -10px;
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* =====================================================
   STEP 4 – Abschlussseite (Screendesign-Style)
   ===================================================== */


.step-4 h1 {
  font-family: 'Play', sans-serif;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.step-4 h2 {
  font-family: 'Play', sans-serif;
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--white);
}

.step-4 h5 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.step-4 p,
.step-4 label,
.step-4 a {
  font-size: 0.9rem;
  color: var(--grey);
}

/* -----------------------------------------------------
   Headerbar mit Buttons
   ----------------------------------------------------- */
.step4-headerbar {
display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem;
}

.step4-headerbar p {
  color: var(--grey);
  line-height: 1.4;
}

.step4-actions {
  display: flex;
  gap: 1rem;
}


/* -----------------------------------------------------
   Review-Karte
   ----------------------------------------------------- */
.review-card {
  background: #1b1c1e;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  margin-bottom: 2rem;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.review-head h4 {
  font-family: 'Play', sans-serif;
  font-size: 1.1rem;
  color: var(--white);
}

/* Grid innerhalb der Karte */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-grid > div {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 1rem;
}

/* Farbenanzeige */
.mini-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}

/* Datei-Icons */
.mini-file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* -----------------------------------------------------
   Share Popup
   ----------------------------------------------------- */
.share-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.share-popup.show {
  display: flex;
}

.popup-content {
  background: #1c1d1f;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  width: 400px;
  text-align: center;
}

.popup-content h3 {
  font-family: 'Play', sans-serif;
  color: var(--white);
  margin-bottom: 1rem;
}

.popup-content p {
  color: var(--grey);
  margin-bottom: 1rem;
}

.popup-buttons {
  margin-top: 2rem !important;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.popup-buttons .btn {
  border-radius: 10px;
}

/* -----------------------------------------------------
   Responsive
   ----------------------------------------------------- */
@media (max-width: 1000px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
  .step4-headerbar {
    flex-direction: column;
    gap: 1rem;
  }
  .step4-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

#summaryCards .review-grid [id^="review-config-"] div {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--white);
}

#summaryCards .review-grid [id^="review-config-"] em {
  color: var(--grey);
}

/* =========================================================
   Step 4 – Abschluss / Zusammenfassung (Cards & Grid)
   ========================================================= */

.review-card {
  background: var(--secondary, #1b1c1f);
  border-radius: 12px;
  padding: 1.6rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.review-head {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
}

.review-head .header-icon {
  width: 38px;
  height: 38px;
  margin-right: 1rem;
  opacity: .85;
}

.review-head h4 {
  font-family: "Play", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* --- Grid Layout: 3 Spalten --- */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.review-grid > div {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 1rem 1.3rem;
}

/* --- Überschriften in Cards --- */
.review-grid h5 {
  color: #dc3545;
  font-family: "Play", sans-serif;
  margin-bottom: 0.8rem;
}

/* --- Konfiguration (Listen-Look) --- */
.mini-config div {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.45;
  margin-bottom: 3px;
}

/* --- Farben --- */
.mini-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: .8rem;
}

.mini-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}

/* --- Logos / Dateien --- */
.mini-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 4px;
}

.mini-file i {
  width: 18px;
  text-align: center;
  opacity: 0.9;
}

.mini-file:hover {
  color: #fff;
}

/* --- Fahrer-Details --- */
.mini-driver div {
  color: #ccc;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 4px;
}

.mini-driver strong {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-grid > div {
    padding: 1rem;
  }
}

.mini-config strong {
  color: #fff;
  display: inline-block;
  min-width: 100%;
}

.config-group {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
}

/* --- Design-Details --- */
.review-grid h5 {
  color: #dc3545;
  font-family: "Play", sans-serif;
  margin-bottom: 0.6rem;
}

.mini-config div {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.45;
  margin-bottom: 3px;
}


/* =========================================================
   Step 4 Footer – REWORK (Grid: left/back | right/stacked)
   ========================================================= */

.step4-footer {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  grid-auto-rows: auto;
  align-items: start;
  gap: 24px 32px;
  margin-top: 3rem;
  padding-top: 2rem;
}

/* --- Positionierung im Grid -------------------------------- */
/* rechts gestapelt */
.total-box { grid-column: 2; grid-row: 1; }
.step4-terms { grid-column: 2; grid-row: 2; }
#btnSubmit   { grid-column: 2; grid-row: 3; justify-self: stretch; width: 100%; }

/* links unten */
.step4-footer .btn-secondary.prev-step {
  grid-column: 1; 
  grid-row: 3; 
  justify-self: start;
}

/* --- Gesamtsumme Box --------------------------------------- */
.total-box {
  background: rgba(26, 27, 29, 0.75);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.4rem 1.8rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.45);
  position: relative;
}

.total-box h3 {
  font-family: "Play", sans-serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
  text-align: left;
}

.total-box .sum-row {
  display: flex;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #eee;
  margin-bottom: 4px;
}

.total-box .sum-row.small {
  font-size: 0.85rem;
  color: #aaa;
}

.total-box .sum-row span:first-child {
  color: #dc3545;
  font-weight: 600;
}

.total-box .note {
  font-size: 0.8rem;
  color: #bbb;
  margin-top: 0.8rem;
  text-align: left;
}

/* --- AGB/DSGVO --------------------------------------------- */
.step4-terms {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.25rem 0 0.75rem;
}

.step4-terms label {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}



/* --- CTA ---------------------------------------------------- */
#btnSubmit.btn-danger {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: .6rem;
  padding: 1rem 2rem;
  font-family: "Play", sans-serif;
  font-size: 1rem; font-weight: 600;
  border-radius: 12px;
  background: #dc3545; color:#fff; border:0;
  box-shadow: 0 0 25px rgba(220,53,69,.25);
  transition: all .25s ease;
}

/* --- Back Button ------------------------------------------- */
.step4-footer .btn-secondary.prev-step {
  background: #2a2d31; color:#eee; border:none;
  padding: .9rem 1.8rem; border-radius: 12px;
  font-family: "Play", sans-serif; font-size: 1rem; font-weight: 600;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .25s ease;
}
.step4-footer .btn-secondary.prev-step:hover {
  background:#35383c; transform: translateY(-1px);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .step4-footer {
    grid-template-columns: 1fr;
  }
  .total-box, .step4-terms, #btnSubmit, .step4-footer .btn-secondary.prev-step {
    grid-column: 1;
  }
  .total-box { width: 100%; }
  .step4-footer .btn-secondary.prev-step, #btnSubmit { width: 100%; justify-self: stretch; }
}

.share-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.share-popup.show {
  display: flex;
}

/* ==============================
   Produkt-Slider
============================== */
.product-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
}

.product-selection {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px;
  scrollbar-width: none;
}
.product-selection::-webkit-scrollbar {
  display: none;
}

/* Karten */
.product-card {
  flex: 0 0 260px;
  text-align: center;
  background: var(--card-bg, #1c1c1e);
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.product-card img {
  height: 100px;
  margin-bottom: 15px;
  opacity: 0.9;
}
.product-card h3 {
  color: #dc3545;
  margin-bottom: 5px;
}
.product-card h5 {
  margin-bottom: 10px;
}
.product-card .btn-add {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.product-card .btn-add:hover {
  background: #dc3545;
  color: #fff;
}

/* Buttons seitlich neben dem Slider */
.slider-btn {
  position: relative;             /* nicht mehr absolute */
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;                 /* bleibt gleich groß */
  margin: 0 15px;                 /* Abstand zur Sliderkante */
}

.slider-btn:hover {
  background: var(--primary-hover);
}

/* Container jetzt mit Platz für Buttons links/rechts */
.product-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;                      /* Abstand zwischen Button und Slider */
  width: 100%;
  margin: 30px 0 50px;
  overflow: hidden;               /* kein Überlappen */
}

/* Slider-Inhalt selbst bleibt horizontal scrollend */
.product-selection {
  flex: 1;
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px;
  scrollbar-width: none;
}
.product-selection::-webkit-scrollbar {
  display: none;
}

/* ==========================================================
   📱 MOBILE RESPONSIVE STYLES (Racecoat – Mobile Rework)
   ========================================================== */

@media (max-width: 768px) {

  /* Layout-Anpassung */
  body {
    flex-direction: column;
    height: auto;
  }

  .order-wizard {
    flex-direction: column;
  }

  /* Desktop-Sidebar ausblenden */
  .wizard-sidebar {
    display: none !important;
  }

  /* Mobile Topbar anzeigen */
  .mobile-topbar {
    display: flex !important;
  }

  /* Mobile Navigationsleiste */
  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #151618;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    z-index: 999;
    border-bottom: 1px solid #2a2d31;
  }

  .mobile-topbar .nav-item {
    flex: 1;
    text-align: center;
    color: #ccc;
    font-family: 'Play', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .mobile-topbar .nav-item.active {
    color: var(--primary);
    font-weight: 700;
  }

  .mobile-topbar .nav-item:hover {
    color: var(--primary-hover);
  }

  /* Platz schaffen für fixe Topbar */
  .wizard-content {
    padding: 5rem 1rem 2rem 1rem;
    background-position: center;
    background-size: cover;
  }

  /* Produktkarten anpassen */
  .product-selection {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-card img {
    height: 120px;
  }

  /* Formulare & Konfigurator */
  .lederkombiForm,
  .customProjektForm,
  .form-section {
    grid-template-columns: 1fr !important;
    padding: 1rem;
  }

  .form-section {
    margin-top: 1rem;
  }

  label {
    align-items: flex-start;
  }

  /* Buttons */
  .buttons {
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Preis- & Produktlisten */
  #product-list li {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  #product-list li .price-right {
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Zusammenfassung */
  .review-grid {
    grid-template-columns: 1fr !important;
  }

  /* Step 2, 3, 4 Karten */
  .product-config,
  .step3-card,
  .review-card {
    padding: 1rem;
  }

  /* Farb- und Datei-Uploads */
  .color-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    padding: 10px;
  }

  .upload-box {
    padding: 1rem;
  }

  .upload-item,
  .logo-item {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .file-thumb,
  .logo-item .file-thumb {
    width: 60px;
    height: 60px;
  }

  /* Gesamtsummen & Abschluss */
  .overall-sum {
    text-align: left;
    padding: 1rem;
  }

  .total-box {
    width: 100%;
    box-sizing: border-box;
  }

  /* Danke-Seite */
  .step-5 .thankyou {
    margin: 0 1rem;
    padding: 1.5rem;
  }
}

/* ==========================================================
   📱 MOBILE TOPBAR & HEADER FIX (Zentriert + Progress)
   ========================================================== */
@media (max-width: 768px) {
  /* -------- Neue mobile Topbar -------- */
  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #151618;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #2a2d31;
    z-index: 999;
  }

  .mobile-topbar .current-step {
    font-family: "Play", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-topbar .progress {
    width: 80%;
    height: 6px;
    background: #333;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 6px;
  }

  .mobile-topbar .progress-bar {
    height: 100%;
    background: var(--primary);
    width: 25%;
    transition: width 0.3s ease;
  }

  /* Platz schaffen für fixe Topbar */
  .wizard-content {
    padding-top: 5.5rem !important;
  }

  /* Header-Layout (Buttons oben, Text unten) */
  .wizard-content > div[style*="justify-content:space-between"] {
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .wizard-content > div[style*="justify-content:space-between"] h1 {
    font-size: 1.4rem;
    text-align: left;
  }

  .wizard-content > div[style*="justify-content:space-between"] p {
    font-size: 0.9rem;
    color: #ccc;
  }

  .wizard-content > div[style*="justify-content:space-between"] a.btn {
    width: auto;
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }

  .wizard-content > div[style*="justify-content:space-between"] > div:last-child {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 0.8rem;
  }

  .header-text-buttons {
  display:flex;
  }

}

  .header-text-buttons {
    display:flex; 
    justify-content:space-between;
     align-items:center; 
     margin-bottom:1.5rem;
  }

@media (max-width: 768px) {

  /* Container der Buttons */
  .wizard-content > div[style*="justify-content:space-between"] > div:last-child {
    display: flex !important;
    flex-direction: column !important;      /* → Buttons untereinander */
    gap: 0.75rem !important;
    width: 100% !important;
  }

  /* Buttons selbst */
  .wizard-content > div[style*="justify-content:space-between"] a.btn {
    width: 100% !important;                 /* volle Breite */
    text-align: center !important;
    margin: 0 !important;        /* entfernt das margin-right */
  }
}

/* ==========================================================
   📄 HEADER TEXT + BUTTONS (Desktop & Mobile Responsive)
   ========================================================== */

/* --- Desktop Standardlayout --- */
.header-text-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-text {
  flex: 1;
  min-width: 250px;
}

.header-text h1 {
  font-family: 'Play', sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.header-text p {
  color: #ccc;
  margin: 0;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-buttons .btn {
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* --- Mobile Ansicht --- */
@media (max-width: 768px) {
  .header-text-buttons {
    flex-direction: column-reverse; /* Text unter Buttons */
    align-items: flex-start;
  }

  .header-buttons {
    width: 100%;
    display: flex;
    flex-direction: row; /* nebeneinander */
    justify-content: space-between;
    gap: 0.8rem;
  }

  .header-buttons .btn {
    flex: 1; /* gleich breit */
    text-align: center;
    font-size: 0.95rem;
    padding: 0.8rem 0;
  }

  .header-text {
    width: 100%;
  }

  .header-text h1 {
    font-size: 1.4rem;
  }

  .header-text p {
    font-size: 0.9rem;
  }
}

/* ==========================================================
   💻 MOBILE TOPBAR – Desktop ausblenden
   ========================================================== */

/* Standard: auf Desktop ausgeblendet */
.mobile-topbar {
  display: none;
}

/* Nur auf Mobile anzeigen */
@media (max-width: 768px) {
  .mobile-topbar {
    display: flex !important;
  }

  /* Sidebar auf Mobile ausblenden */
  .wizard-sidebar {
    display: none !important;
  }
}

/* ==========================================================
   📱 MOBILE SLIDER FIX – immer 1 Produkt mittig anzeigen
   ========================================================== */
@media (max-width: 768px) {
  .product-slider-container {
    position: relative;
    overflow: hidden;
  }

  .product-selection {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 0 1rem;
  }

  .product-card {
    flex: 0 0 80%; /* fast ganze Breite */
    scroll-snap-align: center;
    margin: 0 auto;
  }

  .slider-btn {
    display: none; /* Buttons auf Mobile optional ausblenden */
  }
}

/* ==========================================================
   📱 STEP 3 – Mobile Layout Fix (Details unter Farben)
   ========================================================== */
@media (max-width: 768px) {

  /* Container, der beide Spalten hält */
  .step3-grid {
    display: flex;
    flex-direction: column;  /* Statt nebeneinander => untereinander */
    gap: 1.5rem;
  }

  /* Linke & rechte Spalten nehmen volle Breite */
  .step3-grid .left-col,
  .step3-grid .right-col {
    width: 100%;
  }

  /* Karten und Sektionen etwas lockerer darstellen */
  .step3-card {
    width: 100%;
    box-sizing: border-box;
  }

  .step3-card--details,
  .step3-card--colors {
    padding: 1rem;
  }

  /* Farbblöcke responsiv darstellen */
  .color-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
  }

  /* Überschriften leicht anpassen */
  .step3-card h3, .step3-card h4 {
    text-align: left;
  }

  .selected-color {
    position: relative;
    width: 45%;
    height: 100px;
    background: #1b1c1f;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: flex
;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
}

/* ==========================================================
   🧾 STEP 4 – Button-Layout (Submit oben, Zurück unten)
   ========================================================== */

/* Beide Buttons sollen Block-Layout und volle Breite haben */
.step4-footer .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Spezifische Reihenfolge: Registrieren zuerst, Zurück darunter */
#btnSubmit {
  order: 1;
}

.step4-footer .prev-step {
  order: 2;
}

/* Etwas Abstand zwischen Buttons */
.step4-footer .prev-step {
  margin-top: 0.5rem;
  justify-content: center;
}

/* Mobile Feintuning */
@media (max-width: 768px) {
  .step4-footer {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
  }

  .step4-footer .btn {
    font-size: 0.95rem;
  }
}

/* ==========================================================
   🖼️ LOGO-UPLOAD – Vorschau unterhalb statt daneben
   ========================================================== */

/* Standard (Desktop): horizontal, aber mit besserem Spacing */
.logo-upload {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap; /* verhindert Überlappung bei langen Namen */
}

.logo-upload input[type="text"],
.logo-upload .btn-file {
  flex: 1;
  min-width: 180px;
}

.logo-upload .btn-add-logo {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
}

/* Vorschau-Container */
.file-preview {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.file-preview-thumb {
  max-width: 120px;
  max-height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

/* ===============================================
   📱 Mobile Ansicht – alles untereinander
   =============================================== */
@media (max-width: 768px) {
  .logo-upload {
    flex-direction: column;
    align-items: stretch;
  }

  .logo-upload input[type="text"],
  .logo-upload .btn-file,
  .logo-upload .btn-add-logo {
    width: 100%;
  }
}



/* // Sample container */
.main-container {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
}
/* 
// Main CSS */
.check-container {
  width: 6.25rem;
  height: 7.5rem;
  display: flex;
  flex-flow: column;
  margin: 0 auto; /* zentriert auf allen Geräten */
  align-items: center;
  justify-content: center;


	.check-background {
		width: 100%;
		height: calc(100% - 1.25rem);
		background: linear-gradient(to bottom right, #5de593, #41d67c);
		box-shadow: 0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset,
			0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset;
		transform: scale(0.84);
		border-radius: 50%;
		animation: animateContainer 0.75s ease-out forwards 0.75s;
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;

		svg {
			width: 65%;
			transform: translateY(0.25rem);
			stroke-dasharray: 80;
			stroke-dashoffset: 80;
			animation: animateCheck 0.35s forwards 1.25s ease-out;
		}
	}

	.check-shadow {
		bottom: calc(-15% - 5px);
		left: 0;
		border-radius: 50%;
		background: radial-gradient(closest-side, rgba(73, 218, 131, 1), transparent);
		animation: animateShadow 0.75s ease-out forwards 0.75s;
	}
}

@keyframes animateContainer {
	0% {
		opacity: 0;
		transform: scale(0);
		box-shadow: 0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset,
			0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset;
	}
	25% {
		opacity: 1;
		transform: scale(0.9);
		box-shadow: 0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset,
			0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset;
	}
	43.75% {
		transform: scale(1.15);
		box-shadow: 0px 0px 0px 43.334px rgba(255, 255, 255, 0.25) inset,
			0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset;
	}
	62.5% {
		transform: scale(1);
		box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset,
			0px 0px 0px 21.667px rgba(255, 255, 255, 0.25) inset;
	}
	81.25% {
		box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset,
			0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset;
	}
	100% {
		opacity: 1;
		box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset,
			0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset;
	}
}

@keyframes animateCheck {
	from {
		stroke-dashoffset: 80;
	}
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes animateShadow {
	0% {
		opacity: 0;
		width: 100%;
		height: 15%;
	}
	25% {
		opacity: 0.25;
	}
	43.75% {
		width: 40%;
		height: 7%;
		opacity: 0.35;
	}
	100% {
		width: 85%;
		height: 15%;
		opacity: 0.25;
	}
}
