/* ------------------------------
   Enfold überschreiben
------------------------------ */

.page-id-4189 .container {
    max-width: 100%!important;
    padding: 0px!important;
}

/* ------------------------------
   🟢 Open Road ColorLab CSS (isoliert mit .openroadlab)
------------------------------ */

/* ------------------------------
   MAIN LAYOUT
------------------------------ */

.openroadlab .colorlabcontainer {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;
}

/* SVG-CONTAINER */
#svgContainer {
  width: 100%;
  max-width: 1150px;
}

.openroadlab #svgContainer svg {
  width: 100%;
  height: auto;
  display: block;
}

.openroadlab .svg-container {
  flex: 0 0 65%;
  background: white;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  position: relative;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.openroadlab svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* GRADIENT EDITOR */
.openroadlab .gradient-editor {
  background: white;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  box-sizing: border-box;
}

/* ------------------------------
   RESPONSIVE LAYOUT
------------------------------ */

@media (max-width: 900px) {
  .openroadlab .colorlabcontainer {
    flex-direction: column;
    gap: 1rem;
    flex-wrap: wrap;
    overflow: visible;
  }

  .openroadlab .svg-container {
    flex: 1 1 100%;
    width: 100%;
    order: 1;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0.8rem;
  }

  .openroadlab svg {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  .openroadlab .gradient-editor {
    flex: 1 1 100%;
    width: 100%;
    order: 2;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    min-width: auto;
  }

  .openroadlab button {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
}


/* ------------------------------
   BUTTONS, PRESETS & MESSAGE
------------------------------ */

.openroadlab .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.openroadlab #message {
  color: #b91c1c;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: none;
}

.openroadlab #presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.openroadlab #presets button {
  width: 45px;
  height: 45px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    red,
    orange,
    yellow,
    green,
    cyan,
    blue,
    violet
  );
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.openroadlab #presets button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  border-color: #FFD720;
}

@media (max-width: 768px) {
  .openroadlab #presets {
    justify-content: center;
  }
  .openroadlab #presets button {
    width: 60px;
    height: 60px;
    border-width: 3px;
  }
}

/* ------------------------------
   COLOR HINT
------------------------------ */

.openroadlab .colorhint {
  text-align: center;
  font-size: 0.95rem;
  color: #333;
  background: #fff8d1;
  border: 1px solid #FFD720;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 0.8rem auto 1.5rem auto;
  max-width: 90%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  animation: openroadlab-hintPulse 1.5s ease-in-out 2;
}

@keyframes openroadlab-hintPulse {
  0% { background-color: #fff8d1; }
  50% { background-color: #ffef9f; }
  100% { background-color: #fff8d1; }
}

@media (max-width: 768px) {
  .openroadlab .colorhint {
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
    margin-top: 1rem;
    max-width: 95%;
  }
}

/* ------------------------------
   EXTRA OPTIONS
------------------------------ */

.openroadlab .extra-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0 2rem 0;
}

.openroadlab .extra-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.openroadlab #gabelColor {
  width: 40px;
  height: 24px;
  border: none;
  cursor: pointer;
  display: none;
}

/* ------------------------------
   HELP ICON & OVERLAY (Open Road)
------------------------------ */
.openroadlab .colorlabinfo {
  color: #696969;
  text-align: left;
  margin:0 0 1rem 0;
  font-size: 0.7rem;
}

.openroadlab .help-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFD720;         
  color: #000;
  border-radius: 50%;
  width: 36px;                 
  height: 36px;
  text-align: center;
  line-height: 36px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 20;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.openroadlab .help-icon:hover {
  background: #ffb800;         
  transform: scale(1.05);
}

.openroadlab .help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
}

.openroadlab .help-content {
  background: #fff;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  box-sizing: border-box;
}

.openroadlab .help-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #000;
}

/* Intro & Details kompakt, untereinander */
.openroadlab .help-intro {
  border-bottom: 2px solid #FFD720;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.openroadlab .help-details {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.openroadlab .help-details ul {
  margin-top: 1rem;
  padding-left: 1rem;
}

.openroadlab .help-details li {
  margin-bottom: 0.6rem;
}

.openroadlab .help-tip {
  background: #fff7cc;
  border-left: 4px solid #FFD720;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-style: italic;
  color: #222;
}

.openroadlab .help-content button {
  align-self: center;
  background: #FFD720;
  color: #000;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.openroadlab .help-content button:hover {
  background: #ffb800;
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {
  .openroadlab .help-overlay {
    align-items: flex-start;
    padding: 0.5rem;
  }

  .openroadlab .help-content {
    width: 100%;
    max-width: none;
    margin: 1rem 0;
    padding: 1rem 1rem 4rem 1rem;
    overflow-y: auto;
  }

  .openroadlab .help-content button {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 1001;
  }
}


/* ------------------------------
   FAVORITEN-SECTION
------------------------------ */
.openroadlab .favorites-container {
  margin-top: 2rem;
  text-align: center;
}

.openroadlab #favoritesList button {
  position: relative;
  width: 45px;
  height: 45px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(135deg, red, orange, yellow, green, cyan, blue, violet);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin: 0 5px 10px;
}

.openroadlab #favoritesList button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  border-color: #FFD720;
}

/* Löschen-Icon */
.openroadlab #favoritesList button .delete-fav {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
}


/* ------------------------------
   FIX: Enfold überschreibt Inputs → OpenRoadLab-Version
------------------------------ */

#top .main_color .openroadlab input[type="number"],
#top .main_color .openroadlab input[type="color"],
#top .main_color .openroadlab input[type="range"],
#top .main_color .openroadlab select {
  all: unset;
  box-sizing: border-box;
  display: inline-block;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #111 !important;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.25rem 0.4rem;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: textfield;
  width: auto;
  min-width: 50px;
}

/* Range Slider */
#top .main_color .openroadlab input[type="range"] {
  width: 100% !important;
  background: transparent !important;
}

/* Color Picker */
#top .main_color .openroadlab input[type="color"] {
  cursor: pointer;
  height: 32px;
  width: 40px;
  padding: 0;
  border-radius: 6px;
}

/* Zahleneingabe-Pfeile entfernen */
#top .main_color .openroadlab input[type="number"]::-webkit-inner-spin-button,
#top .main_color .openroadlab input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

