/* Lumanota Website. Marke nach BRANDING.md: Farben, Commissioner, keine Farbverläufe. */
@font-face { font-family: 'Commissioner'; src: url('assets/commissioner.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0908;
  --panel: #22333b;
  --text: #eae0d5;
  --muted: #c6ac8f;
  --accent: #c6ac8f;
  --on-accent: #0a0908;
  --glow: #f3dcb8;
  --line: #5e503f;
  --dim: #8a7a64;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t: 160ms;
  --pad: clamp(22px, 5vw, 72px);
  --wide: 1240px;
  --read: 34rem;
  color-scheme: dark;
  accent-color: var(--accent);
  scrollbar-color: var(--line) var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.5 'Commissioner', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; caret-color: var(--glow);
}
::selection { background: color-mix(in srgb, var(--glow) 30%, transparent); color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Knöpfe ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; text-decoration: none;
  transition: background-color var(--t) ease, transform var(--t) var(--ease-out);
}
.cta:active { transform: scale(0.97); }
.pill-btn {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color var(--t) ease;
}
.text-link { color: var(--glow); font-size: 17px; font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .cta:hover, .pill-btn:hover { background: color-mix(in srgb, var(--accent), var(--glow) 45%); }
}

/* ---------- Navigation ---------- */
.nav-bar {
  position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 28px;
  background: rgb(10 9 8 / 0.9); border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.brand { display: flex; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color var(--t) ease; }
.nav a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 6px 4px; }
.lang:hover { color: var(--text); }

/* ---------- Bühne ---------- */
.hero { padding-top: clamp(56px, 8vh, 110px); text-align: center; }
.hero-copy { padding: 0 var(--pad); display: grid; justify-items: center; gap: 22px; }
.hero h1 { font-size: clamp(46px, 7.6vw, 116px); line-height: 0.98; letter-spacing: -0.035em; max-width: 11.5ch; }
.hero-sub { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: var(--muted); max-width: 30ch; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-stage {
  position: relative; height: clamp(420px, 74vh, 820px); margin-top: clamp(-24px, -2vh, 0px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent), linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent), linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect;
}
.hero-stage canvas { display: block; width: 100%; height: 100%; }
.drop-veil {
  position: absolute; inset: 10% 12%; display: grid; place-items: center; border: 1.5px dashed var(--glow); border-radius: 28px;
  color: var(--glow); font-size: 22px; font-weight: 600; background: rgb(10 9 8 / 0.6); opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease-out);
}
.hero-stage.dragging .drop-veil { opacity: 1; }
.hero-hint { padding: 0 var(--pad); color: var(--dim); font-size: 15px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-hint .text-link { font-size: 15px; }
#hero-status.error { color: #e9967a; }
.file-link { position: relative; cursor: pointer; }
.file-link input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-link:focus-within { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

/* ---------- Geschichte: stehende Vorschau, vorbeiziehende Kapitel ---------- */
.story { max-width: calc(var(--wide) + 2 * var(--pad)); margin: clamp(120px, 16vw, 220px) auto 0; padding: 0 var(--pad); }
.story-title { font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.03em; text-align: center; max-width: 12ch; margin: 0 auto; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(56px, 8vw, 120px); }
.story-visual {
  position: sticky; top: 76px; height: calc(100svh - 96px); max-height: 900px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.device {
  position: relative; height: min(70svh, 700px); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  background: var(--bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent), 0 40px 80px -30px rgb(0 0 0 / 0.8);
}
.device canvas { display: block; width: 100%; height: 100%; }
.under { position: relative; height: 96px; width: min(100%, 520px); }
.under > * { position: absolute; inset: 0; margin: auto; opacity: 0; transition: opacity 400ms ease; pointer-events: none; }
.story[data-step='look'] .looks-dots, .story[data-step='kamera'] .cam-readout,
.story[data-step='timing'] .mini-timeline, .story[data-step='export'] .formats { opacity: 1; }

.looks-dots { display: flex; justify-content: center; align-items: center; gap: 14px; }
.looks-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: 0.32; transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.looks-dots i.on { opacity: 1; transform: scale(1.5); box-shadow: 0 0 14px var(--c); }
.cam-readout { display: flex; align-items: center; justify-content: center; gap: 16px; }
#cam-angle { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); min-width: 3ch; text-align: right; }
.cam-readout .track { position: relative; width: 220px; height: 2px; background: var(--line); border-radius: 1px; }
#cam-knob { position: absolute; top: -6px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--glow); }
.mini-timeline { width: 100%; height: 96px; }
.formats { display: flex; justify-content: center; align-items: center; gap: 10px; }
.formats span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.export-veil { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 22px; display: grid; gap: 10px; justify-items: center; opacity: 0; transition: opacity 400ms ease; }
.story[data-step='export'] .export-veil { opacity: 1; }
.export-veil .format { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.export-veil .bar { width: 70%; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--text) 18%, transparent); overflow: hidden; }
#export-bar { display: block; height: 100%; background: var(--glow); transform: scaleX(0); transform-origin: left; }

.chapters { list-style: none; margin: 0; padding: 0; }
.chapter { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: var(--read); opacity: 0.7; transition: opacity 500ms ease; }
.chapter:first-child { min-height: 70svh; }
.chapter:last-child { min-height: 110svh; justify-content: flex-start; padding-top: 30svh; }
.chapter.on { opacity: 1; }
.chapter h3 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
.chapter p { font-size: clamp(18px, 1.4vw, 21px); color: var(--muted); line-height: 1.5; }

/* ---------- Gestalten: eine große Fläche in --panel ---------- */
.studio { max-width: calc(var(--wide) + 2 * var(--pad)); margin: clamp(120px, 14vw, 200px) auto 0; padding: 0 var(--pad); }
.studio-panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  background: var(--panel); border-radius: 36px; padding: clamp(28px, 5vw, 72px);
}
.studio-visual { display: flex; justify-content: center; }
.device-studio { height: min(66svh, 640px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg) 60%, transparent), 0 40px 80px -30px rgb(0 0 0 / 0.7); }
.studio-controls { display: flex; flex-direction: column; gap: 22px; }
.studio h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -0.03em; max-width: 11ch; }
.studio-sub { font-size: clamp(18px, 1.4vw, 21px); color: var(--muted); max-width: 34ch; margin-top: -4px; }
.group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.group legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button, .swatch-custom {
  position: relative; width: 34px; height: 34px; border-radius: 50%; padding: 0; border: 0; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.25);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) ease;
}
.swatches button:active, .swatch-custom:active { transform: scale(0.94); }
.swatches [aria-checked='true'] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--glow), 0 0 18px -2px var(--c); }
.swatch-custom { --c: transparent; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--dim); }
.swatch-custom::before, .swatch-custom::after { content: ''; position: absolute; width: 12px; height: 1.5px; background: var(--text); border-radius: 1px; }
.swatch-custom::after { transform: rotate(90deg); }
.swatch-custom[aria-checked='true']::before, .swatch-custom[aria-checked='true']::after { background: var(--bg); }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.surfaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.surfaces button, .motion button {
  border: 0; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color var(--t) ease, background-color var(--t) ease, box-shadow var(--t) ease, transform var(--t) var(--ease-out);
}
.surfaces button { display: grid; gap: 8px; justify-items: start; padding: 8px 8px 10px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 35%, var(--panel)); text-align: left; }
.surfaces button:active, .motion button:active { transform: scale(0.97); }
.mat { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; }
.mat-papier { background: #d9c8a6; }
.mat-marmor { background: #dcdad5; }
.mat-schiefer { background: #3a4248; }
.mat-lack { background: #121214; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.surfaces [aria-checked='true'] { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--glow); }
.motion { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.motion button { height: 40px; padding: 0 18px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 35%, var(--panel)); }
.motion [aria-checked='true'] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .surfaces button:not([aria-checked='true']):hover, .motion button:not([aria-checked='true']):hover { color: var(--text); }
}
.studio-note { font-size: 14px; color: color-mix(in srgb, var(--muted) 80%, var(--panel)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Preise auf heller Fläche ---------- */
.pricing { margin-top: clamp(120px, 14vw, 200px); background: var(--text); color: var(--panel); padding: clamp(88px, 11vw, 160px) var(--pad); }
.pricing-inner { max-width: 980px; margin: 0 auto; }
.pricing h2 { font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em; text-align: center; }
.pricing-sub { margin: 20px auto 0; text-align: center; font-size: clamp(18px, 1.5vw, 22px); color: color-mix(in srgb, var(--panel) 78%, var(--text)); max-width: 34ch; }
.plans { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-size: 26px; letter-spacing: -0.01em; }
.price { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.price .per { font-size: 18px; font-weight: 400; letter-spacing: 0; color: color-mix(in srgb, var(--panel) 72%, var(--text)); }
.price-alt { color: color-mix(in srgb, var(--panel) 72%, var(--text)); font-size: 16px; }
.plan:not(.plan-pro) .price { margin-bottom: 25px; }
.plan dl { margin: 22px 0 28px; }
.plan dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid color-mix(in srgb, var(--panel) 18%, transparent); }
.plan dl div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--panel) 18%, transparent); }
.plan dt { color: color-mix(in srgb, var(--panel) 72%, var(--text)); }
.plan dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan .cta { align-self: flex-start; background: var(--panel); color: var(--text); }
.plan .cta-ghost { background: transparent; color: var(--panel); box-shadow: inset 0 0 0 1.5px var(--panel); }
@media (hover: hover) and (pointer: fine) {
  .plan .cta:hover { background: color-mix(in srgb, var(--panel), var(--bg) 25%); }
  .plan .cta-ghost:hover { background: color-mix(in srgb, var(--panel) 8%, transparent); }
}
.pricing :focus-visible { outline-color: var(--panel); }

/* ---------- Fragen ---------- */
.faq { max-width: calc(860px + 2 * var(--pad)); margin: clamp(120px, 14vw, 200px) auto 0; padding: 0 var(--pad); }
.faq h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 46ch; font-size: 18px; }

.foot { margin-top: clamp(120px, 14vw, 200px); padding: 28px var(--pad) 40px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot img { height: 26px; width: auto; }
.foot nav { margin-left: auto; display: flex; gap: 6px 20px; flex-wrap: wrap; }
.foot a { color: var(--dim); font-size: 13px; text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
}

/* ---------- Schmale Fenster ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-visual { top: 56px; height: auto; max-height: none; padding: 16px 0 12px; background: var(--bg); z-index: 2; gap: 12px; }
  .device { height: min(44svh, 420px); border-radius: 26px; }
  .under { height: 64px; }
  .mini-timeline { height: 64px; }
  .chapter:last-child { min-height: 70svh; padding-top: 28px; }
  .chapter { min-height: 62svh; justify-content: flex-start; padding-top: 28px; }
  .chapter:first-child { min-height: 56svh; }
  .studio-panel { grid-template-columns: 1fr; border-radius: 28px; }
  .device-studio { height: min(54svh, 500px); }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-bar { gap: 12px; }
  .surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mat { aspect-ratio: 2 / 1; }
  .studio { padding: 0 12px; }
  .hero-cta { gap: 18px; }
}
