/* =========================================================
   XRemover Widget – Mini Fixes (nur 2 Dinge)
   1) Mobile: HP/TORQUE Labels sichtbar
   2) Difference Blau -> Turbroos Rot
   ========================================================= */

:root{
  --turbroos-red: #960000;
}

/* 2) Difference blau -> rot (falls XRemover blaue Farbe nutzt) */
#ecuCalculateTool .diff,
#ecuCalculateTool .difference,
#ecuCalculateTool [class*="diff"],
#ecuCalculateTool [class*="Diff"],
#ecuCalculateTool [style*="color: blue"],
#ecuCalculateTool [style*="color:blue"],
#ecuCalculateTool [style*="rgb(0,"]{
  color: var(--turbroos-red) !important;
}

/* 1) Mobile: HP/TORQUE-Labels NICHT verstecken */
@media (max-width: 820px){
  /* häufige Fälle: opacity/visibility/display wird auf Mobile geändert */
  #ecuCalculateTool .hp,
  #ecuCalculateTool .torque,
  #ecuCalculateTool [class*="hp"],
  #ecuCalculateTool [class*="torque"],
  #ecuCalculateTool [class*="HP"],
  #ecuCalculateTool [class*="Torque"]{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}/* =========================================================
   Konfigurator – Add-on CSS (Desktop nicht zerstören)
   ========================================================= */

:root{
  --cfg-panel: rgba(255,255,255,0.07);
  --cfg-panel2: rgba(255,255,255,0.03);
  --cfg-stroke: rgba(255,255,255,0.10);
  --cfg-soft: rgba(255,255,255,0.88);
  --cfg-soft2: rgba(255,255,255,0.78);
  --cfg-red: #8b0000;
}

/* Seite */
.config-page .page-title { margin-bottom: 10px; }
.config-page .readable { max-width: 880px; }

/* Shell */
.cfg-shell{
  margin-top: 26px;
  background: linear-gradient(180deg, var(--cfg-panel), var(--cfg-panel2));
  border: 1px solid var(--cfg-stroke);
  border-radius: 20px;
  box-shadow: 0 0 70px rgba(0,0,0,0.65);
  padding: 18px;
}

/* Kleine Überschrift über Widget */
.cfg-widget-head{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--cfg-soft2);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 6px 14px;
}

.cfg-dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(139,0,0,0.8);
  box-shadow: 0 0 14px rgba(139,0,0,0.55);
}

/* =========================================================
   iFrame Integration (DAS ist der Fix für Mobile + Abschneiden)
   ========================================================= */

.ecu-iframe-wrap{
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  overflow: hidden; /* rund + sauber */
}

.ecu-iframe{
  width: 100%;
  display: block;
  border: 0;
  height: 900px;       /* wird per postMessage automatisch überschrieben */
  background: transparent;
}

/* Mobile Feinschliff */
@media (max-width: 920px){
  .cfg-shell{ padding: 14px; }
}

@media (max-width: 560px){
  .cfg-shell{ padding: 14px; }
  .cfg-widget-head{ padding-bottom: 10px; }
}
/* ===== XRemover: White-Background Fix (nur echte Weiß-Flächen überschreiben) ===== */

#ecuCalculateTool{
  background: #000 !important;
}

/* Falls XRemover Inline-Styles setzt (typisch Ursache für den weißen Block) */
#ecuCalculateTool [style*="background:#fff"],
#ecuCalculateTool [style*="background: #fff"],
#ecuCalculateTool [style*="background-color:#fff"],
#ecuCalculateTool [style*="background-color: #fff"],
#ecuCalculateTool [style*="background-color:rgb(255,255,255)"],
#ecuCalculateTool [style*="background-color: rgb(255, 255, 255)"]{
  background: #000 !important;
  background-color: #000 !important;
}

/* Falls da ein Wrapper-DIV direkt darunter weiß ist */
#ecuCalculateTool > div{
  background: #000 !important;
}

/* =========================================
   ECU Widget – FINAL PATCH (nur Fixes)
   1) Mobile: HP/TORQUE-Labels wieder sichtbar (Desktop-Layout erzwingen)
   2) Difference-Werte: Blau -> Rot (Turbroos Rot)
   ========================================= */

/* 1) Mobile Fix: nichts mehr abschneiden, sondern swipebar machen */
.ecu-wrap{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* iPhone / Mobile: Widget bekommt "Desktop-Breite", Container darf horizontal scrollen */
@media (max-width: 820px){
  .ecu-wrap{
    overflow-x: auto;                 /* statt abgeschnitten */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;             /* damit es optisch sauber bleibt */
  }

  /* erzwingt, dass das Widget nicht in "Mobile Simplify Mode" fällt */
  #ecuCalculateTool{
    min-width: 980px;                /* wichtig: dadurch kommen HP/TORQUE-Boxen wieder */
    max-width: none !important;
  }
}

/* 2) Difference Farbe: alles was das Widget als "Difference" markiert */
#ecuCalculateTool .difference,
#ecuCalculateTool .difference * ,
#ecuCalculateTool .diff,
#ecuCalculateTool .diff * ,
#ecuCalculateTool [class*="diff"],
#ecuCalculateTool [class*="diff"] *{
  color: #960000 !important;
}

/* Falls das Widget die Differenz per Inline-Style blau setzt (häufig auf Widgets) */
#ecuCalculateTool [style*="color: rgb(0,"],
#ecuCalculateTool [style*="color: #00"],
#ecuCalculateTool [style*="color:#00"]{
  color: #960000 !important;
}

/* =========================================
   Home – Sonderangebot (unter Buttons)
   ========================================= */

.hero .hero-offer{
  margin-top: 14px;
  max-width: 720px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 50px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

.hero .hero-offer-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(150,0,0,0.22);
  border: 1px solid rgba(150,0,0,0.40);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
  margin-bottom: 10px;
  text-transform: lowercase;
}

.hero .hero-offer-lines{
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  line-height: 1.45;
  text-transform: lowercase; /* wie gewünscht */
}

.hero .hero-offer-line{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.hero .hero-offer-sep{
  color: rgba(255,255,255,0.60);
  font-weight: 900;
  margin: 2px 0;
}

.hero .hero-price{
  font-weight: 950;
  letter-spacing: .2px;
}

.hero .hero-price.hot{
  color: #ffffff;
  background: rgba(150,0,0,0.35);
  border: 1px solid rgba(150,0,0,0.45);
  padding: 2px 8px;
  border-radius: 10px;
}

.hero .hero-price.old{
  color: rgba(255,255,255,0.60);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(150,0,0,0.85);
}

.hero .hero-offer-valid{
  margin-top: 10px;
  color: rgba(255,255,255,0.62);
  font-size: 12.5px;
  text-transform: lowercase;
}

/* Mobile */
@media (max-width: 560px){
  .hero .hero-offer{
    padding: 12px 14px;
    border-radius: 14px;
  }
  .hero .hero-offer-lines{ font-size: 13.5px; }
  .hero .hero-offer-valid{ font-size: 12px; }
}

/* --- Rahmen um das Widget breiter machen --- */

/* Der äußere Kasten */
.cfg-shell {
  max-width: 1500px !important;
  margin: 0 auto !important;
}

/* Der Rahmen direkt um das iFrame */
.ecu-iframe-wrap {
  max-width: 1500px !important;
  margin: 0 auto !important;
}
/* --- Container auf der Konfigurator-Seite breiter machen --- */
.config-page.container,
.container.config-page {
  max-width: 1500px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Der graue Rahmen */
.cfg-shell {
  max-width: 1500px !important;
  margin: 0 auto !important;
}

/* Der Rahmen direkt um das iFrame */
.ecu-iframe-wrap {
  max-width: 1500px !important;
  margin: 0 auto !important;
}
/* --- Grauen Rahmen komplett entfernen --- */

/* Äußerer Kasten */
.cfg-shell {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Rahmen direkt um das iFrame */
.ecu-iframe-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* --- Überschrift + Untertitel + Widget-Titel zentrieren --- */
.config-page .page-title,
.config-page .readable,
.cfg-widget-head {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* --- Textblock auf der Konfigurator-Seite zentrieren --- */
main.container.config-page {
  text-align: center !important;
}

/* Chiptuning-Berechnungstool komplett entfernen */
.cfg-widget-head {
  display: none !important;
}
/* Gesamten Textblock zentrieren */
main.container.config-page,
.config-page .page-title,
.config-page .readable {
  text-align: center !important;
}

@media (max-width: 820px) {
  main.container.config-page,
  .config-page .page-title,
  .config-page .readable {
    text-align: center !important;
  }
