/* ==========================================================================
   GS-Anfertigung · Designsystem
   Laserrot, Silber und Graphit aus dem Logo. Helle Studioflächen wechseln
   mit dunklen "Druckplatten"-Flächen (Raster wie auf den Produktfotos).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Marke */
  --laser: #e10e19;
  --laser-deep: #b90a13;
  --laser-bright: #ff5a62;
  --laser-soft: rgba(225, 14, 25, 0.09);
  --silver: #c7cace;
  --steel: #8b9098;
  --graphite: #0f1012;
  --plate: #17181b;
  --plate-2: #1e2024;

  /* Flächen und Text */
  --ink: #101114;
  --ink-2: #3a3d43;
  --muted: #696d75;
  --line: rgba(16, 17, 20, 0.13);
  --line-soft: rgba(16, 17, 20, 0.075);
  --paper: #ffffff;
  --soft: #f4f4f2;
  --mist: #ebecee;

  /* Status */
  --success: #0f8f5f;
  --warn: #b56b00;
  --danger: #c7372f;

  /* Kompatibilität mit älteren Regeln */
  --accent: var(--laser);
  --accent-dark: var(--laser-deep);
  --blue: var(--laser);
  --text: var(--ink);

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 30px 70px -30px rgba(16, 17, 20, 0.32);
  --shadow-soft: 0 1px 2px rgba(16, 17, 20, 0.04), 0 12px 32px -18px rgba(16, 17, 20, 0.18);

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --header-h: 72px;

  --font-sans: "Archivo", "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  font-family: var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #ffffff;
  background: var(--laser);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  max-width: 100%;
}

p,
span,
strong,
small,
h1,
h2,
h3,
h4,
button,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.plate :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: #ffffff;
}

/* ---------- Typografie ---------- */

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3.7vw, 3.3rem);
  font-weight: 620;
  font-stretch: 110%;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  font-weight: 620;
  font-stretch: 106%;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 620;
  font-stretch: 104%;
}

p {
  margin-bottom: 1em;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Eyebrow: breite Versalien wie der Schriftzug im Logo */
.eyebrow,
.section-head > div > p:first-child,
.admin-lock > div > p,
.admin-head p,
.auth-strip p,
.confirmation > p:first-child,
.legal-document > div > p.muted {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 650;
  font-stretch: 125%;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-head > div > p:first-child::before,
.admin-lock > div > p::before,
.admin-head p::before,
.auth-strip p::before,
.confirmation > p:first-child::before,
.legal-document > div > p.muted::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  background: var(--laser);
}

/* Die drei Quadrate aus dem Logo */
.triad {
  display: inline-flex;
  gap: 5px;
}

.triad i {
  width: 9px;
  height: 9px;
  border-radius: 1.5px;
  background: var(--laser);
}

.triad i:nth-child(2) {
  background: var(--silver);
}

.triad i:nth-child(3) {
  background: #4a4d54;
}

.wrap {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.primary-button,
.secondary-button,
.ghost-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 0.93rem;
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.primary-button {
  color: #ffffff;
  background: var(--ink);
}

.primary-button:hover {
  background: var(--laser);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* Die eine "heiße" Aktion pro Ansicht */
.primary-button.is-hot {
  background: var(--laser);
  box-shadow: 0 14px 30px -14px rgba(225, 14, 25, 0.75);
}

.primary-button.is-hot:hover {
  background: var(--laser-deep);
  box-shadow: 0 18px 36px -14px rgba(225, 14, 25, 0.9);
}

.secondary-button {
  color: var(--ink);
  background: transparent;
  border-color: rgba(16, 17, 20, 0.22);
}

.secondary-button:hover {
  border-color: var(--ink);
  background: rgba(16, 17, 20, 0.04);
}

.ghost-button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--ink-2);
  background: transparent;
  border-color: var(--line);
  font-size: 0.86rem;
}

.ghost-button:hover {
  color: var(--ink);
  background: var(--soft);
  border-color: rgba(16, 17, 20, 0.22);
}

.arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}

a:hover > .arrow,
button:hover > .arrow {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  font-stretch: 106%;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.inline-link-button {
  justify-self: start;
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
}

.forgot-password-link {
  justify-self: end;
  margin-top: -2px;
  border: 0;
  padding: 0;
  color: var(--ink-2);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  cursor: pointer;
}

.forgot-password-link:hover {
  color: var(--laser);
  text-decoration-color: currentColor;
}

/* ---------- Kopfzeile ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.topbar.is-scrolled,
.admin-topbar {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 14px 30px -24px rgba(16, 17, 20, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Ohne Logo: die drei Markenquadrate */
.brand-mark {
  flex: 0 0 auto;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 28px;
  border-radius: 1.5px;
  background: var(--laser);
  box-shadow: 14px 0 0 var(--silver), 28px 0 0 #4a4d54;
}

.brand-mark.has-custom-logo {
  --logo-h: 54px;
  display: block;
  width: auto;
  height: auto;
  margin-right: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: auto;
  height: var(--logo-h, 50px);
  max-width: 160px;
  object-fit: contain;
}

.logo-preview .brand-mark.has-custom-logo {
  --logo-h: 56px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  min-width: 0;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 540;
  font-stretch: 104%;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--laser);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a:hover::before,
.nav a.active::before {
  transform: scaleX(1);
}

.nav a.has-alert::after,
.customer-support-link.has-alert::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 4px;
  width: 9px;
  height: 9px;
  background: var(--laser);
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.mobile-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.account-pill > span {
  max-width: 18ch;
  margin-right: 4px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cart-link {
  gap: 8px;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--laser);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.language-control > span:first-child {
  display: none;
}

.language-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 84px;
  height: 38px;
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
}

.language-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 17, 20, 0.18);
  transition: left 0.35s var(--ease-out);
  pointer-events: none;
}

.language-switch[data-active="en"] .language-thumb,
.language-switch.is-en .language-thumb {
  left: 50%;
}

.language-option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.language-option.active {
  color: var(--ink);
}

.language-option img {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(900px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: #eeedeb;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 50%;
  animation: hero-settle 2.2s var(--ease-out) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(242, 241, 239, 0.97) 0%, rgba(242, 241, 239, 0.9) 30%, rgba(242, 241, 239, 0.35) 54%, rgba(242, 241, 239, 0) 70%);
}

.hero-inner {
  align-self: center;
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(48px, 8vh, 104px) 0 clamp(40px, 6vh, 72px);
}

.hero-copy {
  max-width: 660px;
}

.hero-title {
  margin: 0 0 clamp(22px, 3vh, 34px);
  font-size: clamp(3rem, min(7.6vw, 13.5vh), 6.6rem);
  font-weight: 660;
  font-stretch: 114%;
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.6vh, 28px);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 125%;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: rise 0.9s var(--ease-out) 0.1s both;
}

/* Zeilen fahren aus der Maske hoch */
.title-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  overflow: hidden;
}

.title-line > span {
  display: block;
  animation: line-up 1.1s var(--ease-out) both;
}

.title-line:nth-of-type(2) > span {
  animation-delay: 0.2s;
}

.title-line:nth-of-type(3) > span {
  animation-delay: 0.32s;
}

/* Laserlinie mit Funke, wie im Logo */
.laser-line {
  position: relative;
  display: block;
  width: min(360px, 62%);
  height: 2px;
  margin: 0 0 clamp(22px, 3vh, 32px);
  background: linear-gradient(90deg, rgba(225, 14, 25, 0) 0%, var(--laser) 22%, var(--laser) 100%);
  transform-origin: left center;
  animation: laser-draw 1.1s var(--ease-out) 0.75s both;
}

.laser-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--laser), 0 0 18px 6px rgba(225, 14, 25, 0.55), 0 0 44px 14px rgba(225, 14, 25, 0.22);
  transform: translateY(-50%);
  animation: spark 2.6s ease-in-out 1.8s infinite;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: clamp(26px, 3.6vh, 38px);
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.55;
  animation: rise 1s var(--ease-out) 0.55s both;
}

.hero .hero-actions {
  animation: rise 1s var(--ease-out) 0.68s both;
}

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0 max(var(--gutter), (100% - var(--maxw)) / 2);
  list-style: none;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  animation: rise 1s var(--ease-out) 0.85s both;
}

.hero-facts li {
  display: grid;
  gap: 4px;
  padding: 20px 24px 22px 0;
}

.hero-facts li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line-soft);
}

.hero-facts strong {
  font-size: 0.93rem;
  font-weight: 620;
  font-stretch: 106%;
  line-height: 1.3;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@keyframes hero-settle {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes line-up {
  from {
    transform: translateY(108%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes laser-draw {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes spark {
  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.72;
    transform: translateY(-50%) scale(0.72);
  }
}

/* ---------- Abschnitte ---------- */

.section,
.admin-shell,
.auth-strip,
.checkout-page {
  padding: clamp(72px, 9vw, 132px) var(--gutter);
}

.section-soft {
  background: var(--soft);
}

.section-head,
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto clamp(30px, 4vw, 56px);
}

.section-head h2 {
  max-width: 18ch;
  margin-bottom: 0;
}

.section-intro {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Scroll-Einblendung, nur wenn ui.js läuft */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Druckplatte: dunkle Flächen mit Raster ---------- */

.plate {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 9vw, 132px) var(--gutter);
  color: #f1f2f3;
  background: var(--plate);
  overflow: hidden;
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 25%, transparent 88%);
  mask-image: radial-gradient(120% 85% at 50% 0%, #000 25%, transparent 88%);
}

.plate .eyebrow,
.plate .section-head > div > p:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.plate .section-intro {
  color: rgba(255, 255, 255, 0.62);
}

.plate .secondary-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.plate .secondary-button:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.axis {
  position: absolute;
  z-index: -1;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.axis-x {
  left: var(--gutter);
  bottom: 22px;
}

.axis-y {
  right: 22px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

/* ---------- Leistungen ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  transition: border-color 0.4s ease, transform 0.7s var(--ease-out), opacity 0.9s var(--ease-out);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.js .service-card.reveal.is-visible:hover {
  transform: translateY(-5px);
  transition-delay: 0s;
}

/* Maschinenbett: Draufsicht mit Werkzeugweg */
.bed {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background-color: #121316;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 5% 6.6667%;
}

.bed svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
}

.bed.is-resetting svg {
  opacity: 0;
}

.bed-readout {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.bed-readout span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 10px 2px rgba(225, 14, 25, 0.6);
  vertical-align: 1px;
}

.bed-axis {
  position: absolute;
  left: 14px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  pointer-events: none;
}

.tp {
  fill: none;
  stroke: #dfe1e5;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-ghost {
  fill: none;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.tp-fill {
  stroke: rgba(223, 225, 229, 0.5);
  stroke-width: 1.3;
}

.tp-raster {
  stroke: #cfd2d7;
  stroke-width: 5.4;
  stroke-linecap: butt;
}

.tp-cut {
  stroke: #ffffff;
  stroke-width: 1.5;
}

.bed-stock {
  fill: #23252a;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.bed-mark {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1;
}

.bed-piece {
  fill: var(--laser);
  opacity: 0;
  transform: translate(0, 0);
  transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
}

.bed-piece-text {
  fill: #ffffff;
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -1px;
  opacity: 0;
  transition: opacity 0.6s ease 0.15s, transform 0.9s var(--ease-out);
}

.bed.is-done .bed-piece {
  opacity: 1;
  transform: translate(-5px, -7px);
  filter: drop-shadow(7px 10px 8px rgba(0, 0, 0, 0.55));
}

.bed.is-done .bed-piece-text {
  opacity: 1;
  transform: translate(-5px, -7px);
}

.bed.is-resetting .bed-piece,
.bed.is-resetting .bed-piece-text {
  transition: none;
}

.tp-head-glow {
  fill: var(--laser);
  opacity: 0.32;
}

.tp-head-core {
  fill: #ffffff;
  stroke: var(--laser);
  stroke-width: 2;
}

.tp-head {
  transition: opacity 0.4s ease;
}

.bed.is-done .tp-head {
  opacity: 0;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 12px 12px;
}

.service-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sq {
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  background: var(--laser);
}

.sq-silver {
  background: var(--silver);
}

.sq-graphite {
  background: #5a5e66;
}

.service-body h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-stretch: 110%;
  letter-spacing: -0.025em;
}

.service-body > p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.96rem;
}

.spec-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li,
.spec-list span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.service-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
}

.service-price {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.service-price strong {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 640;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.service-foot .link-arrow {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.service-foot .link-arrow:hover {
  border-color: var(--laser);
  background: var(--laser);
}

/* ---------- Shop ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.3s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 36px 60px -34px rgba(16, 17, 20, 0.42);
  outline: none;
}

.product-card:focus-visible {
  border-color: var(--ink);
}

.product-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--plate);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.product-visual img,
.admin-product-image img,
.cart-thumb img,
.line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual img {
  transition: transform 1.1s var(--ease-out);
}

.product-card:hover .product-visual img {
  transform: scale(1.05);
}

.product-body {
  display: grid;
  gap: 8px;
  padding: 22px 22px 0;
}

.product-lead {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-lead:empty {
  display: none;
}

.product-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.product-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.product-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 20px 22px 22px;
}

.product-card footer strong {
  font-size: 1.4rem;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.coming-soon {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--steel);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 640;
  font-stretch: 114%;
  letter-spacing: -0.03em;
  text-align: center;
}

/* ---------- Ablauf ---------- */

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding: 34px 0 0;
  list-style: none;
}

.process-steps::before,
.process-steps::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.process-steps::after {
  height: 2px;
  top: -0.5px;
  background: var(--laser);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}

.process-steps.is-visible::after {
  transform: scaleX(1);
}

.process-steps li {
  position: relative;
}

.process-steps li::before {
  content: "";
  position: absolute;
  top: -38.5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 1.5px;
  background: var(--silver);
  transition: background-color 0.4s ease;
  transition-delay: calc(0.2s + var(--i, 0) * 0.5s);
}

.process-steps.is-visible li::before {
  background: var(--laser);
}

.step-no {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.process-steps h3 {
  font-size: 1.28rem;
}

.process-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Konfigurator ---------- */

.service-tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.service-tabs button {
  position: relative;
  z-index: 1;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0 clamp(14px, 2vw, 26px);
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  font-size: 0.93rem;
  font-weight: 600;
  font-stretch: 106%;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.service-tabs button:hover {
  color: #ffffff;
}

.service-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.service-tabs-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 10px;
  background: #ffffff;
  transition: transform 0.55s var(--ease-out);
}

.service-tabs[data-active="laser"] .service-tabs-thumb {
  transform: translateX(100%);
}

.service-tabs[data-active="plot"] .service-tabs-thumb {
  transform: translateX(200%);
}

.order-studio {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
  animation: panel-in 0.7s var(--ease-out) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.order-copy {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.order-copy h3 {
  max-width: 16ch;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-stretch: 110%;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.order-copy > p {
  max-width: 46ch;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.68);
}

.order-meta-block {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-meta-block h4 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.material-list li {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  text-transform: none;
  letter-spacing: 0.02em;
}

.next-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.next-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  counter-increment: next;
}

.next-steps li::before {
  content: counter(next, decimal-leading-zero);
  color: var(--laser-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* ---------- Formulare ---------- */

.order-form,
.panel,
.admin-lock {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.order-form {
  --form-pad: clamp(18px, 2.6vw, 30px);
  display: grid;
  gap: 16px;
  padding: var(--form-pad);
  color: var(--ink);
  border: 0;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.75);
}

label,
.stack-form {
  display: grid;
  gap: 8px;
}

.stack-form {
  gap: 12px;
}

label {
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  font-stretch: 104%;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background-color: #ffffff;
  font-size: 0.96rem;
  font-weight: 400;
  font-stretch: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9a9ea6;
}

select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23101114' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}

input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
  border-color: rgba(16, 17, 20, 0.3);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(16, 17, 20, 0.08);
}

input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--laser);
}

input[type="file"] {
  padding: 8px;
  color: var(--muted);
  background-color: var(--soft);
  border-style: dashed;
  font-size: 0.86rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 7px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

input[type="file"]:hover::file-selector-button {
  background: var(--laser);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.custom-option-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.custom-option-fields > label:has(+ .material-color-field),
.custom-option-fields > label:only-child,
.custom-option-fields > p {
  grid-column: 1 / -1;
}

.custom-option-fields > p {
  margin: 0;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.check-field:hover {
  border-color: rgba(16, 17, 20, 0.3);
}

.check-field:has(input:checked) {
  border-color: var(--ink);
  background: var(--soft);
}

.modeling-note {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
}

.quote-type-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--laser-deep);
  background: var(--laser-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input {
  padding-right: 52px !important;
}

.password-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin: auto 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: var(--ink);
  background: var(--soft);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.material-color-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--soft);
}

.material-color-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.color-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}

.color-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-choice-grid label {
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  cursor: pointer;
}

.color-choice-grid label:has(input:checked) {
  border-color: var(--ink);
}

/* Preisleiste am Fuß des Anfrageformulars */
.checkout-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--soft);
  border-radius: var(--radius);
}

.order-form .checkout-panel {
  margin: 8px calc(-1 * var(--form-pad)) calc(-1 * var(--form-pad));
  padding: 22px var(--form-pad);
  color: #ffffff;
  background: var(--graphite);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.checkout-panel span,
.metrics span {
  color: var(--muted);
}

.order-form .checkout-panel span,
.order-form .checkout-panel small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.checkout-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.order-form .checkout-panel strong {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.paypal-box {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.paypal-box p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.faq-intro p:not(.eyebrow) {
  max-width: 38ch;
  margin-bottom: 26px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  transition: color 0.2s ease;
}

.faq-list summary:hover h3 {
  color: var(--laser);
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out), background-color 0.25s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .faq-icon {
  border-color: var(--ink);
  background: var(--ink);
}

details[open] .faq-icon::before,
details[open] .faq-icon::after {
  background: #ffffff;
}

details[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-list details > p {
  max-width: 62ch;
  margin: -4px 0 0;
  padding: 0 54px 26px 0;
  color: var(--muted);
}

details[open] > p {
  animation: rise 0.5s var(--ease-out) both;
}

/* ---------- Abschluss-Band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 7vw, 104px) var(--gutter);
  color: #ffffff;
  background: var(--laser);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-stretch: 114%;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.cta-band .primary-button {
  min-height: 56px;
  padding-inline: 28px;
  color: var(--ink);
  background: #ffffff;
  font-size: 1rem;
}

.cta-band .primary-button:hover {
  color: #ffffff;
  background: var(--graphite);
}

/* ---------- Fußzeile ---------- */

.site-footer {
  padding: clamp(48px, 6vw, 80px) var(--gutter) 28px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--graphite);
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, 0.6fr));
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 18px;
  color: #ffffff;
}

.site-footer .brand-mark.has-custom-logo {
  --logo-h: 54px;
  padding: 7px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.site-footer p {
  max-width: 40ch;
  margin: 0;
  line-height: 1.6;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer h4 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer nav a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.site-footer nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--laser);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-note {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* ---------- Unterseiten: Konto, Checkout, Support ---------- */

.auth-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  background: var(--soft);
}

.auth-strip > div:first-child {
  max-width: 520px;
}

.auth-grid,
.checkout-grid {
  display: grid;
  gap: 18px;
}

.auth-grid {
  grid-template-columns: 1fr 1fr;
  max-width: 1120px;
  margin: 0 auto;
}

.admin-shell,
.checkout-page,
.account-page {
  background: var(--soft);
}

.checkout-page,
.account-page {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(48px, 6vw, 84px) var(--gutter) clamp(64px, 8vw, 112px);
}

.page-head {
  align-items: flex-end;
  max-width: 1120px;
}

.page-head h1 {
  max-width: 20ch;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

.checkout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr) minmax(320px, 0.8fr);
  max-width: 1220px;
  margin: 0 auto;
  align-items: start;
}

.checkout-grid.two,
.account-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  max-width: 1120px;
}

.account-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto 18px;
}

.account-dashboard {
  max-width: 1120px;
  margin: 0 auto;
}

.panel {
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-soft);
}

.panel > h3:first-child,
.stack-form > h3:first-child {
  margin-bottom: 14px;
}

.compact-panel {
  padding: 18px;
}

.panel-head,
.admin-head,
.product-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head {
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0;
}

.panel-head .ghost-button,
.topbar .ghost-button {
  white-space: nowrap;
}

/* Checkout-Schritte als nummerierte Leiste */
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1120px;
  margin: 0 auto 28px;
  counter-reset: step;
}

.checkout-steps span,
.checkout-steps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 0;
  color: var(--muted);
  border-top: 2px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  font-stretch: 104%;
  counter-increment: step;
  transition: color 0.2s ease;
}

.checkout-steps span::before,
.checkout-steps a::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.checkout-steps a {
  color: var(--ink);
  border-top-color: var(--ink);
}

.checkout-steps a:hover {
  color: var(--laser);
}

.checkout-steps .active {
  color: var(--ink);
  border-top-color: var(--laser);
}

.checkout-steps .active::before {
  color: var(--laser);
}

.address-preview {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.confirmation {
  max-width: 820px;
  margin: clamp(24px, 5vw, 56px) auto;
  padding: clamp(28px, 5vw, 56px);
}

.confirmation h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.confirmation .hero-actions {
  margin-top: 28px;
}

.cart-list,
.summary-lines,
.line-items {
  display: grid;
  gap: 0;
}

.cart-item,
.summary-lines div,
.line-items div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.summary-lines strong,
.cart-price strong,
.line-items strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.line-items .tax-record-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.6fr) auto auto;
}

.tax-record-row .delete-tax-record {
  color: var(--danger);
  background: rgba(199, 55, 47, 0.08);
  border-color: transparent;
}

.summary-lines .summary-tax-line {
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
}

.cart-item p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  white-space: pre-line;
}

.cart-thumb,
.line-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--steel);
  background: var(--plate);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.cart-thumb {
  width: 84px;
  height: 68px;
}

.line-thumb {
  width: 56px;
  height: 48px;
  flex: 0 0 auto;
}

.cart-price {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.summary-total span {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-total strong {
  font-size: 1.8rem;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

/* ---------- Produkt-Dialog ---------- */

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 44px);
  background: rgba(15, 16, 18, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: fade-in 0.3s ease both;
}

.product-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(20px, 4vw, 44px);
  width: min(1000px, 100%);
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.55s var(--ease-out) both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.product-modal-image {
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--steel);
  background-color: var(--plate);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Im Detail das ganze Produkt zeigen, nichts abschneiden */
.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-modal-image span {
  font-size: 2.8rem;
  font-weight: 800;
  font-stretch: 125%;
}

.product-modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 44px clamp(4px, 2vw, 24px) 20px 0;
}

.product-modal-copy p {
  margin: 0;
}

.product-modal-copy > p.muted {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-modal-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.04;
}

.product-modal-copy > p:not(.muted) {
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
}

.product-modal-facts {
  display: grid;
  margin: 4px 0 8px;
  border-top: 1px solid var(--line-soft);
}

.product-modal-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.product-modal-facts span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-modal-facts strong {
  font-variant-numeric: tabular-nums;
}

/* ---------- Adminbereich ---------- */

.admin-lock {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}

.admin-lock h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

body:not(.admin-authenticated) .admin-lock {
  align-items: center;
}

.admin-lock .panel {
  box-shadow: none;
}

.login-form {
  display: grid;
  gap: 14px;
}

.hidden {
  display: none !important;
}

.admin-dashboard {
  max-width: 1220px;
  margin: 0 auto;
}

.admin-page {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(40px, 5vw, 72px) var(--gutter);
  background: var(--soft);
}

body:not(.admin-authenticated) .admin-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.admin-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.admin-topbar {
  gap: 14px;
}

.admin-topbar .nav {
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-topbar .nav a {
  padding-inline: 9px;
  font-size: 0.84rem;
}

.admin-topbar .nav a::before {
  left: 9px;
  right: 9px;
}

.admin-topbar .brand {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metrics div {
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.metrics span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.custom-admin-grid {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
}

.custom-admin-sidebar {
  display: grid;
  gap: 10px;
}

.settings-panel {
  grid-column: 2;
}

.logo-settings {
  display: grid;
  gap: 14px;
}

.mail-settings {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--soft);
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--soft);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.orders-list,
.admin-products,
.custom-print-list {
  display: grid;
  gap: 12px;
}

.order-item,
.admin-product {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.order-item > p {
  margin: 0;
}

.product-admin-card {
  grid-template-columns: 168px minmax(0, 1fr) minmax(220px, 0.45fr);
  align-items: start;
  padding: 16px;
}

.admin-product-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 168px;
  height: 142px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.image-update-form {
  display: grid;
  gap: 8px;
}

.product-editor-panel {
  display: grid;
  gap: 16px;
}

.product-admin-copy {
  align-self: stretch;
}

.product-admin-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.product-edit-form {
  display: grid;
  gap: 12px;
}

.file-field {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.order-item header,
.order-actions,
.admin-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-item header h3 {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.02em;
}

.product-admin-card {
  display: grid;
  align-items: center;
  justify-content: normal;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.order-detail {
  gap: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid div {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.detail-grid h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-grid p,
.line-items small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.line-items div {
  align-items: flex-start;
}

.line-items span,
.line-items small {
  display: block;
}

.shipment-panel,
.shipment-summary,
.invoice-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.shipment-summary p,
.invoice-panel p {
  margin: 0;
}

.shipment-summary .secondary-button {
  justify-self: start;
}

.shipment-panel h4,
.invoice-panel h4 {
  margin: 0;
}

.invoice-panel .panel-head {
  margin-bottom: 0;
}

.tax-metrics {
  margin: 16px 0;
}

.shipment-form,
.shipment-event-form,
.shipment-history {
  display: grid;
  gap: 10px;
}

.shipment-history div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.shipment-history span {
  font-weight: 600;
}

.shipment-history small {
  color: var(--muted);
}

.custom-print-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.custom-print-card > p {
  margin: 0;
}

.custom-print-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.custom-print-card header strong {
  font-size: 1.4rem;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.custom-print-card .pay-quote {
  justify-self: start;
}

.custom-print-price {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.custom-print-form {
  display: grid;
  gap: 14px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.ticket-list,
.custom-options-list,
.option-list {
  display: grid;
  gap: 14px;
}

.custom-options-list {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-search {
  margin: 12px 0 18px;
}

.ticket-card,
.option-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.ticket-card header p {
  margin: 0;
  font-size: 0.82rem;
}

.option-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.option-group-head h4 {
  margin: 0 0 3px;
}

.option-group-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.option-group-head strong {
  padding: 5px 10px;
  color: var(--laser-deep);
  background: var(--laser-soft);
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.option-group-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.option-group-actions .ghost-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.ticket-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ticket-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ticket-sidebar {
  display: grid;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding: 4px 6px 4px 4px;
}

.ticket-list-item {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-list-item:hover {
  border-color: var(--line);
}

.ticket-list-item.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 17, 20, 0.08);
}

.ticket-list-item.has-ticket-alert {
  padding-right: 48px;
}

.ticket-list-item.has-ticket-alert::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: var(--laser);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(225, 14, 25, 0.4);
}

.ticket-unread {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--laser);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
}

.ticket-list-item span,
.ticket-list-item small {
  color: var(--muted);
}

.ticket-card-detail {
  min-height: 520px;
}

.chat-thread {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.chat-message {
  width: min(88%, 620px);
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 14px 14px 14px 4px;
}

.chat-message strong {
  font-size: 0.8rem;
}

.chat-message.admin-message {
  justify-self: end;
  color: #ffffff;
  background: var(--ink);
  border-radius: 14px 14px 4px 14px;
}

.chat-message p {
  margin: 2px 0 6px;
  line-height: 1.45;
  white-space: pre-line;
}

.chat-message small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.68;
}

.read-check {
  font-weight: 800;
  color: #8a8f98;
  opacity: 1;
}

.read-check.read {
  color: #0a84ff;
}

.ticket-reply-form,
.option-row {
  display: grid;
  gap: 10px;
}

.ticket-reply-form .secondary-button {
  justify-self: end;
}

.option-row {
  grid-template-columns: minmax(0, 1fr) 130px auto;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.option-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.option-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.option-group h4 {
  margin: 0;
}

.user-admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.user-admin-head,
.user-actions,
.reset-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reset-form {
  flex: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  background: rgba(16, 17, 20, 0.07);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status.bestätigt,
.status.bestaetigt {
  color: var(--success);
  background: rgba(15, 143, 95, 0.12);
}

.status.in-druck {
  color: var(--warn);
  background: rgba(181, 107, 0, 0.13);
}

.status.fertig {
  color: #4c42b7;
  background: rgba(76, 66, 183, 0.12);
}

.status.storniert {
  color: var(--danger);
  background: rgba(199, 55, 47, 0.11);
}

/* ---------- Rechnung ---------- */

.invoice-page {
  min-height: 100vh;
  padding: 48px clamp(16px, 5vw, 72px);
  background: var(--soft);
}

.invoice-document {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  background: #ffffff;
}

.invoice-toolbar,
.invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.invoice-head h1 {
  margin: 18px 0 6px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.invoice-head > div:last-child {
  text-align: right;
}

.invoice-head > div:last-child strong {
  font-family: var(--font-mono);
  font-size: 0.96rem;
}

.invoice-lines,
.invoice-totals {
  margin-top: 22px;
}

.invoice-totals div:last-child strong {
  font-size: 1.3rem;
}

@media print {
  .topbar,
  .no-print,
  .mobile-menu-button,
  .language-control,
  .site-footer,
  .cookie-banner {
    display: none !important;
  }

  body,
  .invoice-page,
  .admin-page {
    background: #ffffff !important;
  }

  .panel,
  .invoice-document {
    box-shadow: none !important;
    border: 0 !important;
  }
}

/* ---------- Hinweise, Banner, Toasts ---------- */

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  gap: 16px;
  width: min(440px, calc(100vw - 44px));
  padding: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: rise 0.8s var(--ease-out) 1.2s both;
}

.cookie-banner strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cookie-banner p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner a {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--laser);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.support-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  gap: 5px;
  width: min(340px, calc(100vw - 44px));
  padding: 16px 34px 16px 16px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-left: 3px solid var(--laser);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: rise 0.6s var(--ease-out) both;
}

.support-popup::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 14px;
  width: 9px;
  height: 9px;
  background: var(--laser);
  border-radius: 50%;
}

.support-popup span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 18px;
  color: #ffffff;
  background: var(--graphite);
  border-left: 3px solid var(--laser);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  animation: rise 0.5s var(--ease-out) both;
}

/* ---------- Rechtstexte ---------- */

.legal-page {
  padding: clamp(48px, 6vw, 84px) var(--gutter) clamp(64px, 8vw, 112px);
  background: var(--soft);
}

.legal-document {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.legal-document h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.legal-document h2 {
  margin: 0;
  font-size: 1.14rem;
  font-stretch: 106%;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.legal-document h2:not(:only-child) {
  margin-bottom: 10px;
}

.legal-document p,
.legal-document li {
  color: var(--ink-2);
  line-height: 1.7;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  margin: 0;
  padding-left: 20px;
}

.legal-note {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--laser);
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
  background: #ffffff;
  font-size: 0.92rem;
}

.legal-box {
  padding: 22px 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1560px) {
  .admin-topbar .brand > span:last-child {
    display: none;
  }
}

@media (max-width: 1180px) {
  .account-pill > span {
    display: none;
  }

  .nav a {
    padding-inline: 10px;
  }

  .nav a::before {
    left: 10px;
    right: 10px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-block: 8px;
  }

  .brand-mark.has-custom-logo {
    --logo-h: 44px;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .nav,
  .account-pill,
  .language-control,
  .topbar > .ghost-button {
    display: none;
    flex: 1 0 100%;
  }

  .topbar.menu-open {
    padding-bottom: 16px;
    border-bottom-color: var(--line-soft);
    box-shadow: 0 30px 50px -30px rgba(16, 17, 20, 0.4);
  }

  .topbar.menu-open .nav {
    display: grid;
    gap: 0;
    margin: 10px 0 0;
    border-top: 1px solid var(--line-soft);
  }

  .topbar.menu-open .account-pill,
  .topbar.menu-open .language-control,
  .topbar.menu-open > .ghost-button {
    display: flex;
    margin-top: 12px;
  }

  .nav a,
  .admin-topbar .nav a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 600;
    font-stretch: 108%;
  }

  .nav a::before {
    display: none;
  }

  .nav a.active {
    color: var(--laser);
  }

  .nav a.has-alert::after,
  .customer-support-link.has-alert::after {
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
  }

  .account-pill {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .account-pill > span {
    display: inline;
    flex: 1 0 100%;
    max-width: none;
    margin-bottom: 2px;
  }

  .account-pill .ghost-button {
    flex: 1;
  }

  .language-control {
    justify-content: space-between;
  }

  .language-control > span:first-child {
    display: inline;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(242, 241, 239, 0.97) 0%, rgba(242, 241, 239, 0.94) 48%, rgba(242, 241, 239, 0.62) 76%, rgba(242, 241, 239, 0.25) 100%);
  }

  .hero-lead {
    max-width: 42ch;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  .hero-facts li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .section-head,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .service-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .service-grid > :last-child:nth-child(odd) .bed {
    aspect-ratio: 16 / 7;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .order-studio,
  .faq-layout,
  .admin-lock,
  .admin-grid,
  .metrics,
  .auth-strip,
  .auth-grid,
  .checkout-grid,
  .checkout-grid.two,
  .account-grid,
  .support-grid,
  .support-admin-layout,
  .custom-options-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .order-copy,
  .faq-intro {
    position: static;
  }

  /* Schmal: erst Titel, dann das Formular, Zusatzinfos danach */
  .order-studio {
    gap: 0;
  }

  .order-copy {
    display: contents;
  }

  .order-copy > h3 {
    order: 1;
  }

  .order-copy > p {
    order: 2;
  }

  .order-form {
    order: 3;
    margin-bottom: 36px;
  }

  .order-meta-block {
    order: 4;
  }

  .ticket-sidebar {
    max-height: 360px;
  }

  .settings-panel {
    grid-column: auto;
  }

  .product-modal {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .product-modal-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .product-modal-copy {
    padding: 4px 8px 12px;
  }
}

@media (max-width: 640px) {
  .brand > span:last-child {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  /* Mobil: Text auf ruhiger Fläche, das Foto steht darunter frei */
  .hero {
    grid-template-rows: auto auto auto;
    min-height: 0;
    background: #f2f1ef;
  }

  .hero::before {
    display: none;
  }

  .hero-inner {
    order: 1;
    padding: 40px 0 28px;
  }

  .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 5 / 4;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  }

  .hero-media img {
    object-position: 76% 50%;
  }

  .hero-facts {
    order: 3;
  }

  .hero-title {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts li,
  .hero-facts li + li {
    padding: 14px 0;
    border-left: 0;
  }

  .hero-facts li + li {
    border-top: 1px solid var(--line-soft);
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-grid,
  .product-grid,
  .process-steps,
  .custom-option-fields {
    grid-template-columns: 1fr;
  }

  .service-grid > :last-child:nth-child(odd) .bed {
    aspect-ratio: 4 / 3;
  }

  .service-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .service-foot .link-arrow {
    justify-content: center;
  }

  /* Ablauf als senkrechte Linie */
  .process-steps {
    row-gap: 30px;
    padding: 0 0 0 30px;
  }

  .process-steps::before,
  .process-steps::after {
    top: 6px;
    bottom: 6px;
    left: 4px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-steps::after {
    left: 3.5px;
    width: 2px;
    transform: scaleY(0);
    transform-origin: center top;
  }

  .process-steps.is-visible::after {
    transform: scaleY(1);
  }

  .process-steps li::before {
    top: 6px;
    left: -30px;
  }

  .service-tabs {
    display: grid;
    width: 100%;
  }

  .service-tabs button {
    padding: 0 6px;
    font-size: 0.86rem;
  }

  .form-row,
  .material-color-head,
  .order-item header,
  .order-actions,
  .panel-head,
  .admin-product,
  .product-admin-card {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .order-form .checkout-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-list details > p {
    padding-right: 0;
  }

  .cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .product-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-product-image {
    width: 100%;
    height: 180px;
  }

  .admin-dashboard {
    display: grid;
    gap: 14px;
  }

  .metrics {
    gap: 10px;
    margin-bottom: 4px;
  }

  .checkout-steps span,
  .checkout-steps a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.82rem;
  }

  .user-admin-head,
  .user-actions,
  .reset-form,
  .ticket-card header,
  .option-row,
  .custom-print-card header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cart-thumb {
    width: 64px;
    height: 56px;
  }

  .cart-price {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .line-items .tax-record-row {
    grid-template-columns: 1fr;
  }

  .invoice-toolbar,
  .invoice-head {
    flex-direction: column;
  }

  .invoice-head > div:last-child {
    text-align: left;
  }

  .ticket-sidebar {
    max-height: none;
    padding-right: 0;
  }

  .ticket-actions,
  .option-group-actions,
  .option-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .custom-print-price {
    justify-items: start;
  }

  .chat-message {
    width: 100%;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px;
  }

  .support-popup,
  .toast {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: none;
  }
}

@media (max-width: 420px) {
  .brand > span:last-child {
    display: none;
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Bewegung nur, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Leichter Parallax-Zug im Hero, wo der Browser es nativ kann */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 641px) {
    .hero-media {
      animation: hero-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }

    @keyframes hero-drift {
      to {
        transform: translateY(9%);
      }
    }
  }
}

/* ==========================================================================
   Konfigurator
   ========================================================================== */

.config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(18px, 2.6vw, 36px);
  align-items: start;
  margin-top: clamp(26px, 3.4vw, 44px);
}

.config-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.config .custom-option-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.config-intro {
  margin-bottom: 8px;
}

.config-intro h3 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-stretch: 110%;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.config-intro p {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.config-step {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.3s ease;
}

.config-step:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
}

.config-step-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.config-step-head h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.12rem;
  font-stretch: 108%;
  letter-spacing: -0.015em;
}

.config-no {
  color: var(--laser-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.config-field {
  color: rgba(255, 255, 255, 0.62);
}

.config input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.config textarea {
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.config input::placeholder,
.config textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.config input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.config textarea:hover {
  border-color: rgba(255, 255, 255, 0.34);
}

.config input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.config textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.config-empty {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.62);
}

/* Datei ablegen */
.dropzone {
  position: relative;
  padding: 26px 20px;
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.dropzone:hover,
.dropzone.is-dragover,
.dropzone:focus-within {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.dropzone.is-dragover {
  border-color: var(--laser-bright);
  background: rgba(225, 14, 25, 0.1);
}

.dropzone .dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-empty svg {
  margin-bottom: 10px;
  color: #ffffff;
}

.dropzone p {
  margin: 0;
}

.dropzone strong {
  color: #ffffff;
  font-weight: 620;
}

.dropzone-hint {
  margin-top: 8px !important;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.dropzone.has-file {
  padding: 14px 16px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.3);
  text-align: left;
}

.dropzone-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.dropzone-file > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dropzone-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-file span {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.dropzone-file .ghost-button {
  position: relative;
  z-index: 1;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.dropzone-file .ghost-button:hover {
  color: var(--ink);
  background: #ffffff;
}

.config .check-field {
  align-items: flex-start;
  min-height: 0;
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #ffffff;
  background: transparent;
}

.config .check-field:hover {
  border-color: rgba(255, 255, 255, 0.34);
}

.config .check-field:has(input:checked) {
  border-color: var(--laser);
  background: rgba(225, 14, 25, 0.12);
}

.config .check-field input {
  margin-top: 2px;
}

.config .check-field > span {
  display: grid;
  gap: 3px;
}

.config .check-field strong {
  font-size: 0.93rem;
  font-weight: 620;
}

.config .check-field small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 400;
}

/* Optionen als Kacheln */
.option-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 10px;
}

.option-tile,
.swatch {
  position: relative;
  display: block;
  color: #ffffff;
  cursor: pointer;
}

.option-tile input,
.swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.option-tile-body {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 10px;
  height: 100%;
  min-height: 78px;
  padding: 14px 40px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.3s var(--ease-out);
}

/* Auswahlmarke oben rechts */
.option-tile-body::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.option-tile:hover .option-tile-body {
  border-color: rgba(255, 255, 255, 0.42);
}

.option-tile input:checked + .option-tile-body {
  border-color: var(--laser);
  background: rgba(225, 14, 25, 0.13);
  box-shadow: inset 0 0 0 1px var(--laser);
}

.option-tile input:checked + .option-tile-body::after {
  border-color: var(--laser);
  background: var(--laser);
  box-shadow: inset 0 0 0 3px var(--plate-2), 0 0 14px rgba(225, 14, 25, 0.7);
}

.option-tile input:focus-visible + .option-tile-body,
.swatch input:focus-visible + .swatch-body {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.option-tile-label {
  font-size: 0.93rem;
  font-weight: 620;
  font-stretch: 104%;
  line-height: 1.25;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.option-tile-price {
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.option-tile input:checked + .option-tile-body .option-tile-price {
  color: rgba(255, 255, 255, 0.86);
}

/* Farben */
.config .material-color-field {
  display: grid;
  gap: 14px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.color-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.color-title {
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.config .color-toggle {
  min-height: 0;
  padding: 6px 12px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: transparent;
  font-size: 0.8rem;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch-body {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 540;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.swatch:hover .swatch-body {
  border-color: rgba(255, 255, 255, 0.42);
}

.swatch input:checked + .swatch-body {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.swatch-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--swatch, #6c7078);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.swatch-dot.is-gloss {
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0 9%, rgba(255, 255, 255, 0) 34%), var(--swatch, #6c7078);
}

.swatch-dot.is-clear {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08)), var(--swatch, #dfe7ec);
  opacity: 0.72;
}

.swatch-dot.is-unknown {
  background: conic-gradient(#5b5f67, #9aa0a8, #5b5f67);
}

/* Zusammenfassung */
.config-summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 26px);
  border-radius: 20px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
}

.config-summary-kicker {
  margin: 0 0 -8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.config-summary h3 {
  margin: 0;
  font-size: 1.5rem;
  font-stretch: 110%;
  letter-spacing: -0.03em;
}

.config-lines {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.config-lines > div {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.config-lines dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.config-lines dd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.3;
}

.config-lines dd span {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}

.config-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.config-total span {
  color: var(--muted);
  font-size: 0.88rem;
}

.config-total strong {
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  font-weight: 660;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.config-note,
.config-guest {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.config-note .modeling-note {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.config-guest {
  margin: 0;
}

.config-guest a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--laser);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.config-summary .full-button {
  min-height: 52px;
  margin-top: 0;
  font-size: 1rem;
}

.config-summary .next-steps {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.config-summary .next-steps li {
  color: var(--ink-2);
  font-size: 0.86rem;
}

.config-summary .next-steps li::before {
  color: var(--laser);
}

.file-link {
  justify-self: start;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--laser);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.file-download {
  margin-top: 10px;
}

/* ==========================================================================
   Verweis auf den Shop (Startseite)
   ========================================================================== */

.shop-door-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}

.shop-door h2 {
  max-width: 14ch;
}

.shop-door .section-intro {
  margin-bottom: 28px;
}

.shop-door-stack {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}

.door-card {
  position: absolute;
  inset: 12% 14% 14% 10%;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--plate);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 30px 50px -28px rgba(16, 17, 20, 0.55);
  transform: translate(calc(var(--i) * 9%), calc(var(--i) * -7%)) rotate(calc((var(--i) - 1) * 3deg));
  z-index: calc(3 - var(--i));
  transition: transform 0.7s var(--ease-out);
}

.door-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-door-stack:hover .door-card {
  transform: translate(calc(var(--i) * 14%), calc(var(--i) * -10%)) rotate(calc((var(--i) - 1) * 5deg));
}

.door-count {
  position: absolute;
  left: 4%;
  bottom: 4%;
  z-index: 4;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--laser);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px -14px rgba(225, 14, 25, 0.8);
}

.door-count strong {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 660;
  font-stretch: 112%;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   Shop-Seite
   ========================================================================== */

.shop-page {
  background: var(--plate);
}

.shop-hero {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.shop-hero .eyebrow {
  animation: rise 0.9s var(--ease-out) var(--arrive, 0s) both;
}

.shop-title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  color: #ffffff;
  font-size: clamp(2.9rem, 8vw, 7rem);
  font-weight: 660;
  font-stretch: 114%;
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.shop-title .title-line > span {
  animation-delay: calc(var(--arrive, 0s) + var(--d, 0s));
}

.shop-lead {
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  animation: rise 1s var(--ease-out) calc(var(--arrive, 0s) + 0.5s) both;
}

.shop-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.shop-meta {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  animation: rise 1s var(--ease-out) calc(var(--arrive, 0s) + 0.65s) both;
}

.shop-meta li {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shop-meta strong {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  text-transform: none;
}

/* Wer über die Druck-Animation kommt, sieht den Titel erst nach dem Aufdecken einlaufen. */
.shop-arriving .shop-hero {
  --arrive: 0.8s;
}

.shop-catalog {
  padding-top: 0;
}

.shop-catalog::before {
  display: none;
}

.catalog-toolbar {
  margin-bottom: 22px;
}

.catalog-toolbar input {
  max-width: 420px;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.8vw, 24px);
  max-width: none;
}

@media (min-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ab drei Spalten: Die Karten teilen sich die Zeile so auf, dass keine Lücke bleibt. */
@media (min-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .shop-grid .product-card {
    grid-column: span 2;
  }

  .shop-grid .product-card:first-child:nth-last-child(2),
  .shop-grid .product-card:first-child:nth-last-child(2) ~ .product-card,
  .shop-grid .product-card:first-child:nth-last-child(3) ~ .product-card {
    grid-column: span 3;
  }
}

.shop-grid .product-card {
  position: relative;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  animation: rise 0.9s var(--ease-out) both;
  animation-delay: calc(var(--arrive-cards, 0.2s) + var(--n, 0) * 0.09s);
}

.shop-arriving .shop-grid .product-card {
  --arrive-cards: 1.1s;
}

.shop-grid .product-card:hover,
.shop-grid .product-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}

.shop-grid .product-visual {
  position: relative;
  aspect-ratio: 16 / 11;
}

/* Beim Darüberfahren läuft eine Schichtlinie über das Bild */
.shop-grid .product-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--laser);
  box-shadow: 0 0 16px 3px rgba(225, 14, 25, 0.75);
  opacity: 0;
}

.shop-grid .product-card:hover .product-visual::after {
  animation: layer-scan 1.1s cubic-bezier(0.5, 0, 0.3, 1) both;
}

@keyframes layer-scan {
  0% {
    bottom: 0;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
  }
}

.shop-grid .product-lead {
  color: rgba(255, 255, 255, 0.56);
}

.shop-grid .product-card h3 {
  font-size: 1.3rem;
  font-stretch: 108%;
  letter-spacing: -0.02em;
}

.shop-grid .product-card p {
  color: rgba(255, 255, 255, 0.64);
}

.shop-grid .product-card footer {
  flex-wrap: wrap;
  padding-top: 22px;
}

.shop-grid .product-card footer strong {
  font-size: 1.7rem;
}

.shop-grid .product-card .primary-button {
  color: var(--ink);
  background: #ffffff;
}

.shop-grid .product-card .primary-button:hover {
  color: #ffffff;
  background: var(--laser);
}

.product-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  font-weight: 600;
}

.product-card:hover .product-more .arrow {
  transform: translateX(4px);
}

/* Das erste Produkt groß, sobald mindestens drei da sind */
@media (min-width: 900px) {
  .shop-grid .product-card:first-child:nth-last-child(n + 3),
  .shop-grid .product-card:only-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }

  .shop-grid .product-card:first-child:nth-last-child(n + 3) .product-visual,
  .shop-grid .product-card:only-child .product-visual {
    grid-row: 1 / -1;
    height: 100%;
    min-height: 420px;
    aspect-ratio: auto;
  }

  .shop-grid .product-card:first-child:nth-last-child(n + 3) .product-body,
  .shop-grid .product-card:only-child .product-body {
    align-content: end;
    gap: 14px;
    padding: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px) 0;
  }

  .shop-grid .product-card:first-child:nth-last-child(n + 3) h3,
  .shop-grid .product-card:only-child h3 {
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    font-stretch: 112%;
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  .shop-grid .product-card:first-child:nth-last-child(n + 3) p,
  .shop-grid .product-card:only-child p {
    font-size: 1rem;
    -webkit-line-clamp: 7;
    line-clamp: 7;
  }

  .shop-grid .product-card:first-child:nth-last-child(n + 3) footer,
  .shop-grid .product-card:only-child footer {
    padding: 28px clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px);
  }

  .shop-grid .product-card:first-child:nth-last-child(n + 3) footer strong,
  .shop-grid .product-card:only-child footer strong {
    font-size: 2.2rem;
  }
}

.catalog-empty,
.shop-grid .coming-soon {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
}

.catalog-empty {
  margin: 0;
  padding: 48px 0;
  text-align: center;
}

.shop-custom {
  padding: clamp(56px, 7vw, 104px) var(--gutter) clamp(72px, 9vw, 128px);
}

.shop-custom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(225, 14, 25, 0.22), rgba(225, 14, 25, 0) 55%), rgba(255, 255, 255, 0.03);
}

.shop-custom h2 {
  max-width: 18ch;
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.shop-custom p {
  max-width: 48ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Übergang in den Shop: eine Düse druckt die Wand, dann fährt das Druckbett herunter
   ========================================================================== */

/* Vom ersten Bild an steht die fertige Wand, bis ui.js sie übernimmt. */
html.shop-entering::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--graphite);
}

html.shop-entering::after,
.pt-center strong {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: clamp(3.6rem, 13vw, 10rem);
  font-weight: 680;
  font-stretch: 122%;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

html.shop-entering::after {
  content: "Shop";
  position: fixed;
  inset: 0;
  z-index: 301;
  display: grid;
  place-items: center;
}

.print-transition {
  position: fixed;
  inset: 0;
  z-index: 310;
  overflow: hidden;
  will-change: transform;
}

.pt-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.pt-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Das Wort baut sich wie ein Druck von unten nach oben auf. */
.pt-center strong span {
  display: block;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s steps(10, end);
}

.print-transition.show-center .pt-center strong span {
  clip-path: inset(0 0 0 0);
}

.pt-readout {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 7vh, 64px);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
}

.print-transition.show-center .pt-readout {
  opacity: 1;
}

.print-transition.is-static .pt-center strong span,
.print-transition.is-static .pt-readout {
  transition: none;
}

/* Das Druckbett fährt nach unten weg und gibt den Shop frei. */
.print-transition.is-lowering {
  transform: translateY(102%);
  transition: transform 0.9s cubic-bezier(0.72, 0, 0.18, 1);
}

/* ==========================================================================
   Einstieg: der Laser graviert das Logo
   ========================================================================== */

html.intro-pending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--graphite);
}

/* Der Hero wartet, bis das Logo gelandet ist. */
html.intro-pending .hero *,
html.intro-active .hero * {
  animation-play-state: paused !important;
}

/* Das Logo in der Kopfzeile erscheint erst, wenn das große Logo dort ankommt. */
html.intro-pending .topbar .brand-mark img,
html.intro-landing .topbar .brand-mark img {
  opacity: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background-color: var(--graphite);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  transition: opacity 0.6s ease;
}

/* Nach dem Blitz wird der Grund hell, damit das farbige Logo steht. */
.intro-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f4f4f2;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.intro.is-flash .intro-bg::after {
  opacity: 1;
}

/* Der Grund löst sich erst auf, wenn das Logo schon unterwegs zur Kopfzeile ist. */
.intro.is-leaving .intro-bg {
  opacity: 0;
  transition: opacity 0.5s ease 0.26s;
}

.intro-fx {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.intro.is-leaving .intro-fx {
  opacity: 0;
}

.intro .axis {
  z-index: 0;
  transition: opacity 0.25s ease;
}

.intro .axis-x {
  left: clamp(18px, 4vw, 44px);
  bottom: 26px;
}

.intro-stage {
  position: relative;
  display: grid;
  gap: clamp(22px, 4vh, 40px);
  width: min(620px, 74vw);
}

.intro-art {
  position: relative;
  aspect-ratio: 303 / 227;
  will-change: transform;
}

/* Die Gravur: Umriss des Logos, an der Laserzeile weißglühend, dahinter abkühlend. */
.intro-heat {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 0 16px rgba(255, 84, 40, 0.6)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.55));
  transition: opacity 0.3s ease;
}

.intro-silhouette {
  --p: 0%;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #c5cad2 0%,
    #c5cad2 calc(var(--p) - 26%),
    #d9432a calc(var(--p) - 13%),
    #ff8a3a calc(var(--p) - 5%),
    #fff3d8 calc(var(--p) - 1%),
    #ffffff var(--p),
    transparent var(--p)
  );
  -webkit-mask: url("assets/logo-gs.png") center / contain no-repeat;
  mask: url("assets/logo-gs.png") center / contain no-repeat;
}

.intro-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro.is-flash .intro-logo {
  opacity: 1;
}

.intro.is-flash .intro-heat {
  opacity: 0;
}

.intro-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150vmax;
  height: 150vmax;
  margin: -75vmax 0 0 -75vmax;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.9) 22%, rgba(255, 236, 220, 0.45) 46%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transform: scale(0.08);
  pointer-events: none;
}

.intro.is-flash .intro-flash {
  animation: intro-burst 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.intro.is-leaving .intro-flash {
  display: none;
}

@keyframes intro-burst {
  0% {
    opacity: 0;
    transform: scale(0.08);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.intro-readout {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s ease;
}

.intro-readout span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 10px 2px rgba(225, 14, 25, 0.7);
  vertical-align: 1px;
}

.intro-skip {
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: 20px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.intro-skip:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.intro.is-flash .intro-readout,
.intro.is-flash .intro-skip,
.intro.is-flash .axis {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Schmal ---------- */

@media (max-width: 980px) {
  .config,
  .shop-door-inner {
    grid-template-columns: 1fr;
  }

  .config-summary {
    position: static;
  }

  .shop-door-stack {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .option-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .option-tile-body {
    padding-right: 34px;
  }

  .dropzone-file {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dropzone-file .ghost-button {
    grid-column: 1 / -1;
  }

  .shop-meta {
    flex-wrap: wrap;
  }

  .shop-grid .product-card footer {
    align-items: stretch;
  }

  .shop-custom-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-skip {
    right: 50%;
    transform: translateX(50%);
  }

  .intro .axis-x {
    display: none;
  }
}

@media (max-width: 340px) {
  .option-tiles {
    grid-template-columns: 1fr;
  }
}
