.contact .full-width {
  grid-column: 1 / -1;
}

.contact {
  grid-template-columns: minmax(250px, .5fr) minmax(0, 1.3fr);
  gap: 54px;
}

.file-upload {
  border: 1px dashed #4a4b4f;
  background: #111216;
  padding: 16px;
}

.file-upload input[type="file"] {
  border: 0;
  background: transparent;
  padding: 4px 0;
}

.file-upload input[type="file"]::file-selector-button {
  margin-right: 14px;
  border: 1px solid #d8914b;
  background: transparent;
  color: #f3b067;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.file-upload small,
.file-selection {
  color: #8f8f8b;
  font-size: 0.78rem;
}

.file-selection {
  margin: 4px 0 0;
}

.product-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid #343438;
  background: #111216;
  padding: 0;
  overflow: hidden;
}

.product-preview[hidden] {
  display: none;
}

.preview-config {
  padding: 28px;
  border-left: 1px solid #343438;
  background: linear-gradient(145deg, #17191d, #0d0e11);
}

.preview-config h3 {
  margin: 5px 0 10px;
  font: 400 1.65rem Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.preview-config > p,
.preview-note {
  color: #a8a8a3;
  margin: 0;
  font-size: 0.84rem;
}

.preview-label {
  color: #f3b067;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.preview-gallery {
  min-width: 0;
  padding: 18px;
  background: #0b0c0f;
}

.preview-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #353940 0, #191b20 48%, #0b0c0f 76%);
  perspective: 850px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 7px;
  margin-top: 10px;
  padding-bottom: 3px;
}

.product-thumb {
  flex: 0 1 112px;
  min-width: 100px;
  min-height: 106px;
  grid-column: auto !important;
  border: 1px solid #343438;
  border-radius: 7px;
  background: #15171b;
  color: #b9b8b4;
  padding: 8px 5px;
  font: inherit;
  font-size: .66rem;
  text-align: center;
  cursor: pointer;
}

.product-thumb span {
  display: block;
  color: #f3b067;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 5px;
}

.product-thumb strong,
.product-thumb small {
  display: block;
}

.product-thumb strong {
  min-height: 2.7em;
  font-size: .66rem;
  line-height: 1.25;
}

.product-thumb small {
  margin-top: 5px;
  color: #f3b067;
  font-size: .66rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-thumb.active {
  border: 2px solid #f3b067;
  color: #fff;
  background: #211a14;
}

.config-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #343438;
  border-radius: 9px;
  color: #c7c4bd;
}

.config-step.active {
  border-color: #d8914b;
  background: rgba(216,145,75,.06);
}

.config-step.complete .step-number {
  color: #17100a;
  background: #f3b067;
  border-color: #f3b067;
}

.step-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #55575c;
  border-radius: 50%;
  color: #aaa9a5;
  font-size: .74rem;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.step-content strong {
  color: #f4f1e9;
  font-size: .86rem;
}

.step-content small {
  color: #999994;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-content select {
  padding: 10px 11px;
}

.change-image {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #f3b067;
  padding: 0;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}

.preview-request {
  width: 100%;
  margin-top: 16px;
}

.preview-config .config-price {
  margin: 4px 0 14px;
  color: #f3b067;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.preview-stage.is-dragging {
  cursor: grabbing;
}

.preview-object {
  position: relative;
  isolation: isolate;
  --rotate-x: -4deg;
  --rotate-y: 10deg;
  --depth-x: -2.5px;
  --motif-scale: .95;
  --motif-shift: 2px;
  --shine-position: 45%;
  --edge-color: #08090b;
  transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  transition: width .25s ease, height .25s ease, border-radius .25s ease, background .25s ease, transform .08s linear;
  box-shadow: 0 24px 35px rgba(0, 0, 0, 0.48);
  filter: drop-shadow(var(--depth-x) 7px 0 var(--edge-color)) drop-shadow(0 18px 14px rgba(0,0,0,.34));
  will-change: transform, filter;
}

.rotate-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  color: #aaa9a5;
  font-size: .7rem;
  text-align: center;
  pointer-events: none;
}

.product-becher {
  width: 176px;
  height: 236px;
  overflow: hidden;
  border-radius: 22px 22px 45px 45px / 16px 16px 28px 28px;
  background: linear-gradient(100deg, #08090b 0%, #292c31 23%, #111317 55%, #34383e 83%, #08090b 100%);
  border: 1px solid #595c62;
  box-shadow: 0 24px 35px rgba(0, 0, 0, 0.48), inset 0 -20px 24px rgba(0, 0, 0, 0.5);
}

.object-detail {
  position: absolute;
  z-index: 3;
  display: none;
}

.product-becher .object-detail-top {
  display: block;
  inset: 0 0 auto;
  height: 20px;
  background: linear-gradient(90deg, #74777b, #f0eee8 28%, #8a8c8e 58%, #deddd8 82%, #67696d);
  border-bottom: 2px solid #050608;
}

#cup-preview-image {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 54%;
  width: 90%;
  height: 84%;
  object-fit: contain;
  transform: translate(-50%, -50%) translateX(var(--motif-shift)) scaleX(var(--motif-scale));
  transform-origin: center;
  filter: grayscale(1) contrast(1.45) brightness(1.12);
  mix-blend-mode: screen;
  opacity: 0.78;
  transition: transform .08s linear;
}

.product-becher #cup-preview-image { width: 80%; height: 72%; }
.product-kork #cup-preview-image { width: 88%; height: 88%; top: 50%; }
.product-glas #cup-preview-image { width: 82%; height: 76%; }

.object-shine {
  position: absolute;
  z-index: 2;
  inset: 20px 0 0;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--shine-position) 42%, rgba(255,255,255,.2) 0, rgba(255,255,255,.08) 13%, transparent 34%), linear-gradient(95deg, transparent 12%, rgba(255,255,255,.11) 22%, transparent 36%, transparent 70%, rgba(255,255,255,.07) 84%, transparent 92%);
}

.product-kork {
  --edge-color: #70441f;
  width: 225px;
  height: 225px;
  overflow: hidden;
  border-radius: 50%;
  border: 7px solid #8b5c31;
  background: radial-gradient(circle at 35% 28%, #ddb277, #bd874f 58%, #8f6036);
  box-shadow: 0 22px 35px rgba(0,0,0,.44), inset 0 0 0 2px rgba(73,38,14,.45);
}

.product-kork #cup-preview-image,
.product-anhaenger #cup-preview-image,
.product-oeffner #cup-preview-image {
  filter: grayscale(1) contrast(1.55) brightness(1.32);
  mix-blend-mode: multiply;
  opacity: .78;
}

.product-kork #cup-preview-image {
  filter: grayscale(1) sepia(.5) contrast(1.45) brightness(1.38);
  opacity: .74;
}

.product-anhaenger #cup-preview-image {
  filter: grayscale(1) contrast(1.5) brightness(1.42);
  opacity: .72;
}

.product-oeffner #cup-preview-image {
  filter: grayscale(1) contrast(1.65) brightness(1.3);
  opacity: .76;
}

.product-glas {
  --edge-color: rgba(155,190,200,.65);
  width: 185px;
  height: 232px;
  overflow: hidden;
  border-radius: 18px 18px 40px 40px;
  border: 3px solid rgba(220,240,245,.72);
  background: linear-gradient(100deg, rgba(205,230,235,.22), rgba(255,255,255,.05) 42%, rgba(190,225,235,.25));
  box-shadow: 0 22px 35px rgba(0,0,0,.38), inset 12px 0 18px rgba(255,255,255,.12);
}

.product-kugel {
  --edge-color: #430008;
  width: 220px;
  height: 220px;
  overflow: visible;
  border-radius: 50%;
  border: 2px solid #ef6b64;
  background: radial-gradient(circle at 34% 25%, #ff7169 0, #b70f18 38%, #72030b 72%, #330005 100%);
  box-shadow: 0 22px 38px rgba(0,0,0,.5), inset -22px -25px 35px rgba(35,0,0,.5);
}

.product-kugel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -27px;
  width: 58px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(90deg,#7e5d22,#f2d184,#8d6928);
}

.product-kugel #cup-preview-image { width: 80%; height: 80%; top: 52%; }

.product-schiefer {
  --edge-color: #090a0b;
  width: 235px;
  height: 190px;
  overflow: hidden;
  border-radius: 9px 3px 11px 5px;
  border: 3px solid #4b4e51;
  background: linear-gradient(135deg,#33373a,#111315 60%,#282b2e);
  box-shadow: 0 22px 35px rgba(0,0,0,.5), inset 0 0 18px rgba(255,255,255,.06);
}

.product-anhaenger {
  --edge-color: #6e6251;
  width: 126px;
  height: 218px;
  overflow: hidden;
  border-radius: 18px 18px 28px 28px;
  border: 8px solid #b8aa91;
  background: linear-gradient(100deg,#d7cab3,#a9977c,#e2d6c1);
}

.product-anhaenger::before {
  content: "";
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 7px;
  width: 25px;
  height: 25px;
  transform: translateX(-50%);
  border: 5px solid #777;
  border-radius: 50%;
  background: #1c1e21;
}

.product-schiefer #cup-preview-image { width: 94%; height: 88%; top: 50%; }

.product-anhaenger #cup-preview-image { top: 57%; width: 80%; height: 70%; }

.product-fotorahmen {
  --edge-color: #030405;
  width: 255px;
  height: 195px;
  overflow: hidden;
  border: 15px solid #090a0c;
  border-radius: 7px;
  background: #f1c986;
  box-shadow: 0 0 24px rgba(255,190,95,.4), 0 22px 35px rgba(0,0,0,.5), inset 0 0 24px #fff0be;
}

.product-fotorahmen #cup-preview-image,
.product-lampe #cup-preview-image {
  width: 96%;
  height: 92%;
  top: 50%;
  filter: grayscale(1) contrast(1.25) sepia(.25);
  mix-blend-mode: multiply;
  opacity: .72;
}

.product-oeffner {
  --edge-color: #555a5d;
  width: 235px;
  height: 145px;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid #d0d2d3;
  background: linear-gradient(120deg,#747a7d,#e8e9e7 35%,#888d90 68%,#d7d8d5);
}

.product-oeffner::before {
  content: "";
  position: absolute;
  z-index: 4;
  right: 16px;
  top: 16px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #17191c;
  box-shadow: inset 0 0 0 4px #c9cccb;
}

.product-oeffner #cup-preview-image { left: 43%; width: 76%; height: 78%; top: 52%; }

.product-lampe #cup-preview-image { width: 88%; height: 88%; }

.product-lampe {
  --edge-color: #8d632f;
  width: 210px;
  height: 210px;
  overflow: hidden;
  border-radius: 50%;
  border: 8px solid #ddd8ca;
  background: radial-gradient(circle,#fff8d3,#efca7c 70%,#bc8743);
  box-shadow: 0 0 35px rgba(255,202,105,.48), 0 22px 35px rgba(0,0,0,.45);
}

.product-lampe::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 100px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #4b4b4a;
}

.product-kork .object-shine,
.product-schiefer .object-shine,
.product-anhaenger .object-shine,
.product-fotorahmen .object-shine,
.product-oeffner .object-shine,
.product-lampe .object-shine { display: none; }

.preview-note {
  grid-column: 1 / -1;
  padding: 12px 18px;
  border-top: 1px solid #343438;
}

.preview-note small {
  display: block;
  margin-top: 5px;
  color: #d7d5cf;
  font-weight: 700;
}

@media (max-width: 850px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .product-preview {
    grid-template-columns: 1fr;
  }

  .preview-config {
    border-left: 0;
    border-top: 1px solid #343438;
  }

  .preview-stage {
    min-height: 330px;
  }
}
