#wrap-configurator { padding: 6rem clamp(1.5rem,6vw,5rem); }
#wrap-configurator [hidden] { display: none !important; }

/* Dark-section overrides for the shared .section-tag/.section-heading/
   .section-desc classes -- same pattern #process uses for its dark bg. */
#wrap-configurator .section-tag { color: rgba(255, 255, 255, 0.5); justify-content: flex-start; }
#wrap-configurator .section-tag::before { background: rgba(255, 255, 255, 0.3); }
#wrap-configurator .section-heading { color: #fff; }
#wrap-configurator .section-desc { color: rgba(255, 255, 255, 0.6); margin-left: auto; margin-right: auto; text-align: center; }

.wc-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }

.wc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.wc-dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.wc-dropzone:hover, .wc-dropzone.wc-dragover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); }
.wc-dropzone p { color: rgba(255, 255, 255, 0.75); }
.wc-browse-btn { background: none; border: none; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.wc-dropzone .wc-hint { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.75rem; }

.wc-preview-wrap { position: relative; border-radius: 8px; overflow: hidden; background: #111; aspect-ratio: 3 / 2; }
.wc-preview-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.wc-loading-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  background: rgba(6, 6, 6, 0.75); color: #fff; font-size: 0.9rem;
}
.wc-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff;
  animation: wc-spin 0.8s linear infinite;
}
@keyframes wc-spin { to { transform: rotate(360deg); } }

.wc-error {
  margin-top: 0.75rem; padding: 0.75rem 1rem; border-radius: 8px;
  background: rgba(255, 90, 90, 0.12); border: 1px solid rgba(255, 90, 90, 0.4);
  color: rgba(255, 210, 210, 0.95); font-size: 0.85rem;
}

.wc-limit-hint-text {
  margin-top: 0.6rem; padding: 0.7rem 0.9rem; border-radius: 8px;
  background: rgba(255, 200, 90, 0.1); border: 1px solid rgba(255, 200, 90, 0.35);
  color: rgba(255, 224, 170, 0.95); font-size: 0.8rem; line-height: 1.5;
}

.wc-limit-hint { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.5rem; }

.wc-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.wc-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.2rem; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid transparent; border-radius: 2px;
  font-family: var(--body);
}
.wc-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wc-btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.wc-btn-secondary:hover:not(:disabled) { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.wc-btn-primary { background: #fff; color: #0a0a0a; border-color: #fff; }
.wc-btn-primary:hover:not(:disabled) { background: var(--bg-soft); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }

/* SpecularButton — WebGL rim-light */
.specular-button {
  --sb-radius: 13px;
  --sb-text-color: #f5f5f5;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--sb-text-color) !important;
  background: rgba(255,255,255,0.04) !important;
  border-radius: var(--sb-radius) !important;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.35);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
  overflow: visible;
}
.specular-button--lg { font-size: 0.85rem; padding: 0.9rem 2.2rem; }
.specular-button:hover { transform: translateY(-1px); }
.specular-button:active { transform: translateY(0); }
.specular-button__fx {
  position: absolute;
  inset: -20px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.specular-button__fx canvas { display: block; width: 100%; height: 100%; }
.specular-button__label { position: relative; z-index: 2; pointer-events: none; user-select: none; }

.wc-option-group { margin-bottom: 1.75rem; }
.wc-option-title {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: rgba(255, 255, 255, 0.5); margin-bottom: 0.7rem;
}

.wc-option-blocks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wc-option-block {
  padding: 0.6rem 0.95rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.65); cursor: pointer; font: inherit; font-size: 0.82rem;
  text-align: left; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wc-option-block:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wc-option-block.wc-active { color: #fff; font-weight: 600; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.14); }
.wc-option-block.wc-limit-disabled { opacity: 0.4; cursor: not-allowed; }
.wc-option-block.wc-limit-disabled:hover { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.65); }

.wc-brand-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.wc-brand-tab {
  padding: 0.55rem 0.95rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.65); cursor: pointer; font: inherit; font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wc-brand-tab:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wc-brand-tab.wc-active { color: #fff; font-weight: 600; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.14); }

.wc-color-groups { margin-bottom: 0.5rem; }
.wc-finish-group { margin-bottom: 1.5rem; }
.wc-finish-group:last-child { margin-bottom: 0; }
.wc-finish-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); margin-bottom: 0.6rem;
}
.wc-finish-heading::before { content: ''; display: block; width: 14px; height: 1px; background: rgba(255, 255, 255, 0.3); }

.wc-color-grid { display: grid; grid-template-columns: repeat(auto-fill, 75px); gap: 1rem 0.8rem; }
.wc-swatch-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  width: 75px; transition: opacity 0.2s ease;
}
.wc-swatch {
  width: 75px; height: 75px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.wc-swatch.wc-active { border-color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.wc-swatch::after { content: ''; position: absolute; inset: 0; pointer-events: none; }

/* Hovering one swatch dims the rest of its grid and lifts the hovered one
   forward, so the box under the cursor reads clearly against its siblings. */
.wc-color-grid:hover .wc-swatch-wrap:not(:hover) { opacity: 0.45; }
.wc-swatch-wrap:hover { z-index: 3; }
.wc-swatch-wrap:hover .wc-swatch { transform: scale(1.12); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55); }

/* Glaenzend (gloss): a sharp diagonal highlight streak + crisp shadow, like a reflective lacquer surface. */
.wc-swatch--glaenzend { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 3px 8px rgba(0, 0, 0, 0.4); }
.wc-swatch--glaenzend::after {
  background: linear-gradient(125deg,
    rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 16%,
    rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0.3) 100%);
}

/* Satin: a soft, broad, low-contrast sheen -- between gloss and matte. */
.wc-swatch--satin::after {
  background: linear-gradient(120deg,
    rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.1) 100%);
}

/* Matt: no highlight at all, softened with an inner shadow so it reads as light-absorbing rather than flat-glossy. */
.wc-swatch--matt { box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.22); }

/* Effekt (Color Flip / ColorFlow): genuinely a two-tone, angle-shifting
   film, not a single flat color -- a dual-band diagonal sheen hints at
   that instead of pretending it's a solid gloss/satin/matte color. */
.wc-swatch--effekt { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 3px 10px rgba(0, 0, 0, 0.4); }
.wc-swatch--effekt::after {
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.35) 52%,
    rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, 0) 82%,
    rgba(255, 255, 255, 0.4) 100%);
}

.wc-swatch-label {
  font-size: 0.7rem; line-height: 1.25; letter-spacing: 0.03em;
  text-transform: uppercase; text-align: center;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}
.wc-swatch-wrap:hover .wc-swatch-label { color: #fff; }
.wc-swatch.wc-active ~ .wc-swatch-label { color: #fff; font-weight: 700; }

.wc-optional-tag { text-transform: none; letter-spacing: normal; color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; }

.wc-fahrzeug-row { display: flex; flex-direction: column; gap: 1.1rem; }
.wc-form-group label {
  display: block; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.4rem; color: rgba(255, 255, 255, 0.45);
}
.wc-text-input {
  width: 100%; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 0.9rem;
  outline: none; transition: border-color 0.3s;
}
.wc-text-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.wc-text-input:focus { border-color: rgba(255, 255, 255, 0.45); }

#wc-scheiben-toggle, #wc-details-toggle { margin-bottom: 0.6rem; }

.wc-bauteil-picker {
  margin-top: 0.75rem; padding: 0.9rem; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.02);
}
.wc-bauteil-picker-title { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.6rem; }

.wc-preview-img.wc-zoomable { cursor: zoom-in; }

.wc-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 6, 6, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.wc-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.wc-lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff;
  font-size: 1.1rem; cursor: pointer; transition: background 0.3s;
}
.wc-lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
