.tm-options-totals {
    display: none !important;
}


@media (max-width: 640px) {
  .col .ux-text p {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}


/* ===== Konfigurator (epo.js) ===== */

/* Preis steht schon über dem Formular; die EPO-Box "FINAL TOTAL" ist doppelt und englisch */
.tc-totals-form {
  display: none !important;
}

/* Vorschau-Knöpfe und Zeile entfernen: Tippflächen mind. 44 px */
.sp-vorschau-btn {
  position: absolute;
  right: 8px;
  min-height: 40px;
  padding: 8px 14px;
  margin: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.sp-remove-zeile {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
}

.sp-hinweis-unterlaenge {
  color: #b45309;
  font-weight: 600;
}

/* Handy/Tablet hochkant: Vorschau als Block über den Textfeldern */
#sp-vorschau-wrap.sp-vorschau-inline {
  position: relative !important;
  height: 220px !important;
  margin: 0 0 14px;
  border: 1px solid #e5e5e3;
}

/* Modus-Auswahl: zwei Karten, gewählte mit gelbem Rahmen */
#sp-modus {
  margin: 4px 0 20px;
}
.sp-modus-frage {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.sp-modus-auswahl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sp-modus-auswahl .sp-modus-btn {
  display: block;
  margin: 0;
  padding: 12px 14px;
  min-height: 0;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px !important;
  color: #1a1a1a;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sp-modus-auswahl .sp-modus-btn:hover {
  border-color: #d1d5db;
}
.sp-modus-auswahl .sp-modus-btn small {
  display: block;
  margin-top: 4px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
}
.sp-modus-auswahl .sp-modus-btn.sp-modus-active {
  border-color: #eab308;
  background: #fffbea;
  box-shadow: 0 0 0 1px #eab308;
}

/* Pflicht-Sternchen: im Designer ist ohnehin alles Pflicht */
form.sp-designer .tm-epo-required {
  display: none;
}

/* Farbauswahl: beliebte Farben als Kacheln mit Namen, Rest aufklappbar (Reihenfolge der Farbtafel) */
#sp-farben {
  margin-top: 4px;
}
.sp-farben-titel {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.sp-farben-reihe {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px 8px;
}
.sp-farben-reihe[hidden] {
  display: none;
}
.sp-farben-alle {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}
#sp-farben .sp-farbe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 0;
  margin: 0;
  padding: 4px 2px;
  background: none;
  border: none;
  border-radius: 8px !important;
  color: #374151;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
#sp-farben .sp-farbe-feld {
  position: relative;
  width: 100%;
  max-width: 64px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--farbe);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
#sp-farben .sp-farben-alle .sp-farbe-feld {
  max-width: 48px;
}
#sp-farben .sp-farbe-metall .sp-farbe-feld {
  background: linear-gradient(135deg, var(--farbe) 0%, #fff 45%, var(--farbe) 70%);
}
#sp-farben .sp-farbe-text {
  max-width: 100%;
  text-align: center;
  -webkit-hyphens: auto;
  hyphens: auto;
}
#sp-farben .sp-farbe-text small {
  display: block;
  font-size: 11px;
  color: #6b7280;
}
/* Beliebte Farben immer in einer Reihe */
.sp-farben-beliebt {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#sp-farben .sp-farbe:hover .sp-farbe-feld {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px #d1d5db;
}
/* Gewählt: Rahmen + Häkchen (auch auf Schwarz sichtbar) */
#sp-farben .sp-farbe-aktiv .sp-farbe-feld {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #eab308;
}
#sp-farben .sp-farbe-aktiv .sp-farbe-feld::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
#sp-farben .sp-farbe-aktiv .sp-farbe-text {
  font-weight: 700;
  color: #1a1a1a;
}
#sp-farben-mehr {
  margin: 12px 0 0;
  padding: 8px 14px;
  min-height: 40px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px !important;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
}
#sp-farben-mehr:hover {
  border-color: #1a1a1a;
}
#sp-farbe-name {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* Kaufleiste am Handy */
#sp-kaufleiste {
  display: none;
}
@media (max-width: 849px) {
  body.sp-kl-an #sp-kaufleiste {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  }
  .sp-kl-preis {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
  }
  #sp-kaufleiste .sp-kl-btn {
    flex: 1;
    min-height: 48px;
    margin: 0;
    background: #eab308;
    border: none;
    border-radius: 10px !important;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
  }
}

@media (max-width: 549px) {
  /* Modus-Auswahl untereinander */
  .sp-modus-auswahl {
    grid-template-columns: 1fr;
  }
  /* Empfohlene Variante zuerst, wenn die beiden untereinander stehen */
  .sp-variante-btn[data-variante="schrift"] {
    order: -1;
  }
  /* Hinweis unter das Maß statt daneben */
  .sp-hinweis-unterlaenge {
    display: block;
  }
}

/* Mengenrabatt-Hinweis unter dem Preis */
.sp-menge-hinweis { font-size: 12px; color: #2e7d32; font-weight: 600; }
