/* ==========================================================================
   NACHGLUT — main.css
   Tokens §2 · Motion §4 · Qualität §6
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --night:    #0E0B09;  /* Grund, warmes Schwarz, nie #000 */
  --dusk:     #17120F;  /* Flächen, Drawer */
  --ash:      #2A221C;  /* Linien, Ränder */
  --paper:    #F3EAE0;  /* Haupttext auf dunkel; Hintergrund der hellen Spec-Sektion */
  --smoke:    #A8998B;  /* Sekundärtext */
  --ink:      #1B1511;  /* Text auf --paper */
  --ember:    #FF6A2B;  /* einzige Akzentfarbe: CTA, Fokusring, Badge */
  --amber:    #FFB648;  /* nur im Glühen, nie als Textfarbe */
  --glut:     #C2361B;  /* tiefster Ton im Verlauf */

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

em {
  font-style: italic;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

section {
  scroll-margin-top: 72px;
}

.wrap {
  width: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ember);
  color: var(--night);
  border-radius: 999px;
}

.skip-link:focus {
  top: 16px;
}

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

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.label {
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--smoke);
}

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--paper);
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn--primary {
  background: var(--ember);
  color: var(--night);
}

.btn--primary:hover:not(:disabled) {
  background: #ff7d42;
}

.btn--secondary {
  border-color: var(--ash);
  color: var(--paper);
}

.btn--secondary:hover {
  border-color: var(--smoke);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  padding-inline: 16px;
}

.btn--ghost:hover {
  border-color: var(--ash);
}

.btn--block {
  width: 100%;
}

.link-btn {
  margin-top: 24px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--smoke);
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active:not(:disabled) {
    transform: scale(0.97);
    transition-duration: 100ms;
  }
}

/* Header --------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: rgb(14 11 9 / 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 24px;
  background: linear-gradient(rgb(14 11 9 / 0.55), rgb(14 11 9 / 0));
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.site-nav {
  display: none;
  gap: 32px;
}

.site-nav a {
  color: var(--paper);
  font-size: 0.9375rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 200ms ease;
}

.site-nav a:hover {
  opacity: 1;
}

.cart-toggle {
  gap: 0;
}

.cart-count {
  display: inline-block;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

.cart-count.is-pulse {
  animation: pulse 300ms var(--ease-spring);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--night);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header::after {
    display: none;
  }
}

/* Orb (CSS-Lichtquelle) ------------------------------------------------ */

.orb {
  width: 56vmin;
  height: 56vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, var(--amber) 0%, var(--ember) 28%, var(--glut) 52%, transparent 70%);
  filter: blur(40px);
}

.orb--small {
  width: 30vmin;
  height: 30vmin;
}

@media (prefers-reduced-motion: no-preference) {
  .orb {
    animation: breathe 9s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--night);
}

.hero__sun {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero__rise {
  display: grid;
  place-items: center;
  animation: sunrise 1600ms var(--ease-out) both;
}

@keyframes sunrise {
  from {
    opacity: 0;
    transform: translateY(8vh) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__content {
  position: relative;
  padding-bottom: clamp(56px, 12svh, 140px);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero__sub {
  max-width: 60ch;
  margin-top: 24px;
  color: var(--smoke);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}

.hero__price {
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

/* Rise-Animation für Text (Stagger über --d) */
.rise {
  animation: rise 900ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

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

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__sun {
      animation: sink linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 80%;
    }
  }
}

@keyframes sink {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(20vh);
    opacity: 0.35;
  }
}

/* S2 Atmosphäre -------------------------------------------------------- */

.atmo {
  padding-block: clamp(96px, 14vw, 200px);
}

.atmo__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dusk);
}

.atmo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

@media (min-width: 900px) {
  .atmo__media {
    aspect-ratio: 21 / 9;
    border-radius: 0;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .atmo__img {
      animation: light-on linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 50%;
    }
  }
}

@keyframes light-on {
  from {
    filter: brightness(0.35) saturate(0.6);
    transform: scale(1.12);
  }
  to {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
}

/* Fallback ohne scroll-driven: IntersectionObserver setzt .is-lit */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .atmo__img {
      filter: brightness(0.35) saturate(0.6);
      transition: filter 1200ms ease;
    }
    .js .atmo__img.is-lit {
      filter: brightness(1) saturate(1);
    }
  }
}

.atmo__grid {
  display: grid;
  gap: 32px;
  margin-top: clamp(48px, 7vw, 96px);
}

.atmo__text {
  max-width: 60ch;
  color: var(--smoke);
}

@media (min-width: 900px) {
  .atmo__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

/* Section-Kopf --------------------------------------------------------- */

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-sub {
  color: var(--smoke);
}

/* S3 Kollektion -------------------------------------------------------- */

.collection {
  padding-block: clamp(96px, 14vw, 200px);
}

.collection__grid {
  display: grid;
  gap: clamp(56px, 7vw, 96px) clamp(24px, 3vw, 40px);
}

.collection__status {
  color: var(--smoke);
}

.product {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dusk);
}

.product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__media .product__img-alt {
  opacity: 0;
  transition: opacity 400ms ease;
}

@media (hover: hover) {
  .product:hover .product__img-alt {
    opacity: 1;
  }
}

.product__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}

.product__tagline {
  color: var(--smoke);
  max-width: 40ch;
}

.product__price {
  font-variant-numeric: tabular-nums;
}

.product__stock {
  font-size: 0.875rem;
  color: var(--smoke);
}

.product__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.product__body .btn {
  margin-top: 12px;
}

.product--regler {
  display: grid;
  grid-template-columns: minmax(96px, 160px) 1fr;
  gap: 24px;
  align-items: center;
}

.product--regler .product__media {
  aspect-ratio: 1 / 1;
}

@media (min-width: 900px) {
  .collection__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .product--orb {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
  }

  .product--horizont {
    grid-column: 8 / span 5;
    grid-row: 1;
  }

  .product--regler {
    grid-column: 8 / span 5;
    grid-row: 2;
    align-self: end;
  }
}

/* S3a Produkt-Sheet + Cart-Drawer (dialog) ----------------------------- */

dialog {
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--dusk);
  color: var(--paper);
  max-width: none;
  max-height: none;
}

dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.sheet {
  --panel-from: translateY(100%);
  position: fixed;
  inset: auto 0 0 0;
  margin: 0 auto;
  width: min(560px, 100vw);
  max-height: 92svh;
  overflow: hidden;
}

.sheet[open] {
  animation: panel-in 420ms var(--ease-drawer) both;
}

.sheet.is-closing {
  animation: panel-out 420ms var(--ease-drawer) both;
}

.sheet__inner {
  max-height: 92svh;
  overflow-y: auto;
  padding: 16px 24px 32px;
}

.sheet__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.sheet__gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 4px;
  scrollbar-width: none;
}

.sheet__gallery::-webkit-scrollbar {
  display: none;
}

.sheet__gallery img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  scroll-snap-align: start;
}

.sheet__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.sheet__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ash);
  transition: background-color 200ms ease;
}

.sheet__dots span.is-active {
  background: var(--paper);
}

.sheet__name {
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.05;
}

.sheet__price {
  margin-top: 8px;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.sheet__desc {
  margin-top: 16px;
  color: var(--smoke);
}

.sheet__form {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.sheet__stock {
  font-size: 0.875rem;
  color: var(--smoke);
}

.sizes {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.sizes legend {
  margin-bottom: 12px;
  padding: 0;
}

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

.size {
  position: relative;
  display: inline-flex;
}

.size input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.size span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ash);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.size small {
  font-size: 0.75rem;
  color: var(--smoke);
}

.size input:checked + span {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.size input:checked + span small {
  color: var(--ink);
}

.size input:focus-visible + span {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.size input:disabled + span {
  cursor: not-allowed;
  opacity: 0.45;
}

.specs {
  border-bottom: 1px solid var(--ash);
}

.specs > div {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--ash);
}

.specs dt {
  color: var(--smoke);
  font-size: 0.9375rem;
}

.specs dd {
  font-size: 0.9375rem;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  height: 100vh;
  height: 100svh;
  max-height: 100svh;
  width: min(440px, 100vw);
  overflow: hidden;
}

.drawer[open] {
  animation: drawer-in 420ms var(--ease-drawer) both;
}

.drawer.is-closing {
  animation: drawer-out 420ms var(--ease-drawer) both;
}

.drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 24px 24px;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.drawer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}

.drawer__empty {
  display: grid;
  justify-items: start;
  gap: 24px;
  margin-top: 48px;
}

.drawer__empty p {
  color: var(--smoke);
}

.cart-lines {
  flex: 1;
  overflow-y: auto;
  margin-top: 16px;
  border-top: 1px solid var(--ash);
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ash);
}

.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-line__info {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
}

.cart-line__name {
  font-size: 1rem;
}

.cart-line__variant {
  font-size: 0.875rem;
  color: var(--smoke);
}

.cart-line__price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-line__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ash);
  border-radius: 999px;
}

.qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 1.125rem;
  cursor: pointer;
  border-radius: 999px;
}

.qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty output {
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.remove-btn {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--smoke);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.drawer__foot {
  padding-top: 20px;
  display: grid;
  gap: 8px;
}

.drawer__foot[hidden],
.drawer__empty[hidden] {
  display: none;
}

.totals {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-variant-numeric: tabular-nums;
  font-size: 1.0625rem;
}

.totals__note {
  font-size: 0.875rem;
  color: var(--smoke);
}

.drawer__foot .btn {
  margin-top: 12px;
}

.notice {
  min-height: 1.6em;
  font-size: 0.875rem;
  color: var(--smoke);
}

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

@keyframes panel-out {
  from {
    transform: none;
    opacity: 1;
  }
  to {
    transform: var(--panel-from);
    opacity: 0;
  }
}

@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}

@keyframes drawer-out {
  from {
    transform: none;
  }
  to {
    transform: translateX(100%);
  }
}

@media (min-width: 900px) {
  .sheet {
    --panel-from: translateX(100%);
    inset: 0 0 0 auto;
    margin: 0;
    height: 100vh;
    height: 100svh;
    max-height: 100svh;
  }

  .sheet__inner {
    height: 100%;
    max-height: 100svh;
    padding: 24px 40px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open],
  .drawer[open] {
    animation: fade-in 200ms linear both;
  }

  .sheet.is-closing,
  .drawer.is-closing {
    animation: fade-out 200ms linear both;
  }

  .cart-count.is-pulse {
    animation: fade-in 200ms linear both;
  }
}

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

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

/* S4 Der Regler -------------------------------------------------------- */

.dial-section {
  padding-block: clamp(96px, 14vw, 200px);
  background: var(--night);
}

.dial-section__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.dial-panel {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ash);
  border-radius: 4px;
  background: radial-gradient(circle at 50% 55%, var(--in, #FFE7B8) 0%, var(--out, #FFC56B) 100%);
}

.dial-time {
  margin-top: 16px;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--smoke);
}

.dial-section__text {
  max-width: 60ch;
  margin-top: 24px;
  color: var(--smoke);
}

.dial {
  position: relative;
  width: min(220px, 70vw);
  aspect-ratio: 1 / 1;
  margin-top: 40px;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
}

.dial:active {
  cursor: grabbing;
}

.dial:focus-visible {
  outline-offset: 6px;
}

.dial__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dial__tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 8px;
  margin: -4px 0 0 -0.5px;
  background: var(--smoke);
  opacity: 0.5;
  transform-origin: 50% 50%;
}

.dial__tick.is-major {
  height: 14px;
  margin-top: -7px;
  opacity: 0.9;
}

.dial__knob {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid var(--ash);
  background: radial-gradient(circle at 35% 30%, #2A221C 0%, var(--dusk) 70%);
  will-change: transform;
}

.dial__mark {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 3px;
  height: 22%;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--paper);
}

@media (min-width: 900px) {
  .dial-section__grid {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }
}

/* S5 Details (helle Sektion) ------------------------------------------ */

.details {
  padding-block: clamp(96px, 14vw, 200px);
  background: var(--paper);
  color: var(--ink);
}

.details .label,
.details .fact__label {
  color: #5a4c42;
}

.facts {
  display: grid;
  gap: 40px 24px;
  margin-top: clamp(48px, 7vw, 96px);
}

.fact {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #cbbcae;
}

.fact__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fact__label {
  max-width: 28ch;
  font-size: 0.9375rem;
  color: #5a4c42;
}

.details__media {
  display: grid;
  gap: 40px;
  margin-top: clamp(64px, 9vw, 120px);
}

.details__media figure {
  display: grid;
  gap: 12px;
}

.details__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.details__media figcaption {
  font-size: 0.875rem;
  color: #5a4c42;
}

@media (min-width: 600px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .details__media {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* S6 Räume ------------------------------------------------------------- */

.rooms {
  padding-block: clamp(96px, 14vw, 200px);
}

.rooms__lead {
  max-width: 60ch;
  margin-bottom: clamp(40px, 6vw, 72px);
  color: var(--smoke);
}

.rooms__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: clamp(16px, 4vw, 48px);
  scroll-padding-inline: clamp(16px, 4vw, 48px);
  cursor: grab;
  user-select: none;
}

.rooms__track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.rooms__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.rooms__item img {
  height: 62svh;
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  pointer-events: none;
}

@media (min-width: 900px) {
  .rooms__item img {
    height: 70vh;
  }
}

/* S7 Fragen ------------------------------------------------------------ */

.faq {
  padding-block: clamp(96px, 14vw, 200px);
}

.faq__grid {
  display: grid;
  gap: 48px;
}

.faq__list {
  border-bottom: 1px solid var(--ash);
}

.faq__list details {
  border-top: 1px solid var(--ash);
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
}

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

.faq__list summary:hover {
  color: var(--paper);
}

.faq__list details p {
  max-width: 60ch;
  padding-bottom: 24px;
  color: var(--smoke);
}

.faq__plus {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 400ms var(--ease-out);
}

.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
}

.faq__plus::after {
  transform: rotate(90deg);
}

.faq__list details[open] .faq__plus {
  transform: rotate(45deg);
}

@media (min-width: 900px) {
  .faq__grid {
    grid-template-columns: 1fr 2fr;
    gap: 96px;
    align-items: start;
  }
}

/* S8 Schluss-CTA ------------------------------------------------------- */

.closing {
  position: relative;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night);
  padding-block: clamp(96px, 14vw, 200px);
}

.closing__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 40px;
  text-align: center;
}



/* Footer --------------------------------------------------------------- */

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--ash);
  color: var(--smoke);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
}

.site-footer__copy {
  color: var(--smoke);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.site-footer__links a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.85;
}

.site-footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

/* Rechtsseiten & Danke ------------------------------------------------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 160px 96px;
}

.page__text {
  max-width: 60ch;
  margin-top: 24px;
  color: var(--smoke);
}

.page__back {
  margin-top: 40px;
}

/* Motion: Reveal ------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

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

/* Reduced Motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .hero__rise {
    animation: fade-in 200ms linear both;
  }

  .rise {
    animation: fade-in 200ms linear both;
    animation-delay: 0ms;
  }

  .orb {
    animation: none;
  }

  .hero__sun {
    animation: none;
  }

  .atmo__img {
    animation: none;
    filter: none;
  }

  .js .reveal {
    transform: none;
    transition: opacity 200ms linear;
    transition-delay: 0ms;
  }

  .btn:active {
    transform: none;
  }

  .faq__plus {
    transition-duration: 200ms;
  }

  .product__media .product__img-alt {
    transition-duration: 200ms;
  }
}


/* ======================================================================
   Feinschliff II — Logo, Licht-Bewegungen, Browser-Oberflächen
   ====================================================================== */

/* Browser-Oberflächen */
html {
  scrollbar-color: #3a2e25 var(--night);
  accent-color: var(--ember);
}

::selection {
  background: var(--ember);
  color: var(--night);
}

input,
textarea {
  caret-color: var(--ember);
}

/* Filmkorn: nimmt dem Verlauf die digitale Glätte */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Logo ------------------------------------------------------------------ */

.logo__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
}

.logo__mark {
  flex: none;
  overflow: visible;
}

.logo__word {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.24em;
}

.logo__sun {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 700ms var(--ease-out);
}

.logo:hover .logo__sun {
  transform: translateY(3px);
}

.site-header .logo__sun {
  animation: logo-rise 1500ms var(--ease-out) 250ms both;
}

.site-header .logo__horizon {
  stroke-dasharray: 1;
  animation: logo-draw 1000ms var(--ease-out) both;
}

.site-header .logo__glow {
  animation: logo-glow 900ms var(--ease-out) 1000ms both;
}

@keyframes logo-rise {
  from { transform: translateY(11px); }
  to { transform: none; }
}

@keyframes logo-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes logo-glow {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: none; }
}

/* Header: transparent über dem Hero, Material erst beim Scrollen -------- */

.site-header {
  transition: transform 520ms var(--ease-drawer), background-color 400ms ease, -webkit-backdrop-filter 400ms ease, backdrop-filter 400ms ease;
}

.site-header:not(.is-scrolled) {
  background-color: rgb(14 11 9 / 0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header:not(.is-scrolled)::after {
  opacity: 0;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

/* Zeilen-Masken für Headlines ------------------------------------------ */

.line {
  display: block;
  overflow: hidden;
  padding: 0 0.06em 0.1em 0;
  margin-bottom: -0.1em;
}

.line > span {
  display: block;
}

.hero__title .line > span {
  animation: line-up 1300ms var(--ease-out) both;
  animation-delay: calc(250ms + var(--i, 0) * 120ms);
}

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

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

.js .reveal .line > span {
  transform: translateY(108%);
  transition: transform 1200ms var(--ease-out);
}

.js .reveal .line + .line > span {
  transition-delay: 110ms;
}

.js .reveal.in .line > span {
  transform: none;
}

/* Bild-Enthüllung: Licht wischt von unten herein ---------------------- */

.js .reveal.media-reveal > img,
.js .reveal .media-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1400ms var(--ease-out), opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}

.js .reveal.in.media-reveal > img,
.js .reveal.in .media-reveal {
  clip-path: inset(0 0 0 0);
}

.js .media-reveal img:not(.atmo__img) {
  transform: scale(1.14);
  transition: transform 1800ms var(--ease-out), clip-path 1400ms var(--ease-out), opacity 400ms ease;
}

.js .media-reveal > .atmo__img {
  transition: clip-path 1400ms var(--ease-out), filter 1200ms ease;
}

.js .reveal.in.media-reveal img,
.js .reveal.in .media-reveal img {
  transform: none;
}

/* Laufband ------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(24px, 3.5vw, 40px);
  border-block: 1px solid var(--ash);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
  will-change: transform;
}

.marquee__track > * {
  margin-right: 0.55em;
}

.marquee__track span:nth-of-type(even) {
  font-style: italic;
  color: var(--smoke);
}

.marquee__sun {
  flex: none;
  width: 0.5em;
  height: 0.25em;
  border-radius: 0.25em 0.25em 0 0;
  background: radial-gradient(circle at 50% 100%, var(--amber), var(--ember) 55%, var(--glut));
  box-shadow: 0 0.08em 0 -0.02em var(--paper);
}

/* Produktkarten: Licht strahlt auf die Wand ---------------------------- */

.product__stage {
  position: relative;
  isolation: isolate;
}

.product__glow {
  position: absolute;
  z-index: -1;
  inset: 8% 6% -6%;
  width: 88%;
  height: 98%;
  object-fit: cover;
  filter: blur(56px) saturate(1.5);
  opacity: 0.32;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  pointer-events: none;
}

.product__media {
  will-change: transform;
}

.product__sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(255 246 236 / 0.22), transparent 46%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}

@media (hover: hover) {
  .product:hover .product__glow {
    opacity: 0.58;
    transform: translateY(3%) scale(1.04);
  }

  .product:hover .product__sheen {
    opacity: 1;
  }
}

.product--regler {
  padding-top: 32px;
  border-top: 1px solid var(--ash);
}

.product--regler .product__glow {
  display: none;
}

/* Schluss: die Sonne geht unter, die Nachglut bleibt ------------------- */

.closing {
  --p: 0;
  display: block;
  min-height: 0;
  padding: 0 0 clamp(96px, 12vw, 160px);
}

.closing__stage {
  position: relative;
  height: clamp(280px, 52svh, 560px);
}

.closing__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.closing__afterglow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 85% at 50% 100%, rgb(255 106 43 / 0.5), rgb(194 54 27 / 0.22) 45%, transparent 78%);
  opacity: calc(0.25 + var(--p) * 0.75);
}

.closing__sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(140px, 24vmin, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 62%, #FFD08A, var(--amber) 22%, var(--ember) 58%, var(--glut));
  filter: blur(1.5px);
  transform: translate(-50%, calc(-55% + var(--p) * 140%));
  will-change: transform;
}

.closing__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(243 234 224 / 0.55) 18%, rgb(243 234 224 / 0.55) 82%, transparent);
  transform: scaleX(calc(0.35 + var(--p) * 0.65));
}

.closing__reflection {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  width: clamp(160px, 30vmin, 340px);
  height: 46px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, rgb(255 106 43 / 0.7) 0 1.5px, transparent 1.5px 10px);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  opacity: calc(0.9 - var(--p) * 0.55);
}

.closing__content {
  padding-top: clamp(96px, 12vw, 150px);
}

/* Reduced Motion für Feinschliff II ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span,
  .site-header .logo__sun,
  .site-header .logo__horizon,
  .site-header .logo__glow {
    animation: none;
  }

  .js .reveal .line > span,
  .js .media-reveal img:not(.atmo__img) {
    transform: none;
    transition: none;
  }

  .js .reveal.media-reveal > img,
  .js .reveal .media-reveal {
    clip-path: none;
    transition: opacity 200ms linear;
  }

  .site-header {
    transition: none;
  }

  .product__glow,
  .product__sheen,
  .logo__sun {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body::after {
    display: none;
  }
}
