/* Stil+Find – web1 · Version 3 „Vom Bogen zur Box“ – ergänzt base.css (Kopie von V2) */

:root {
  --bg: #e5e5e2;          /* exakt der Hintergrund der Renderings */
  --render: #e5e5e2;
  --render-dark: #010102;
  --ink-c: #00a3e0; --ink-m: #e4007c; --ink-y: #ffe500; --ink-k: #1d1d1b; --ink-l: #fa9302;
  --edge: max(var(--gutter), (100vw - var(--wrap)) / 2);
}
body.v3 { padding-top: 0; background: var(--bg); }
.v3 .plus { color: var(--accent); }

/* ---------- Header-Themen (per JS: theme-render | theme-dark | solid) ---------- */
.v3 .site-header { background: rgba(255,255,255,.94); transition: transform .6s var(--ease), background-color .45s, color .45s, box-shadow .45s; }
.v3 .site-header.theme-render, .v3 .site-header.theme-dark { background: transparent; box-shadow: none; }
.v3 .site-header.theme-dark { color: #fff; }
.v3 .site-header.theme-dark .brand img { filter: invert(1); }
@supports (backdrop-filter: blur(1px)) {
  .v3 .site-header:not(.theme-render):not(.theme-dark) { background: rgba(255,255,255,.8); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
}

/* ---------- Ladeanzeige ---------- */
.v3-loader { display: none; }
.motion .v3-loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 150; background: var(--render); color: var(--ink);
  transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1), visibility 0s 1.1s; clip-path: inset(0 0 0 0);
}
.v3-loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.v3-loader .ld { width: min(420px, 100% - 2 * var(--gutter)); text-align: center; }
.v3-loader img { width: 96px; height: 96px; margin: 0 auto 28px; animation: ldpulse 1.6s ease-in-out infinite; }
.v3-loader .ld-bar { height: 3px; background: rgba(0,0,0,.12); position: relative; overflow: hidden; }
.v3-loader .ld-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .3s; }
.v3-loader .ld-row { display: flex; justify-content: space-between; margin-top: 14px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.v3-loader .ld-row span:last-child { font-variant-numeric: tabular-nums; }
html.is-loading, html.is-loading body { overflow: hidden; }
@keyframes ldpulse { 50% { transform: scale(.94); } }

/* ---------- Sequenz-Abschnitte ---------- */
.seq { position: relative; background: var(--render); }
.seq-stage { position: relative; overflow: hidden; background: var(--render); }
.seq-poster { display: block; width: 100%; height: auto; }
.seq-stage canvas { display: none; }
.seq-labels, .seq .ink-meter { display: none; }
.seq-copy { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 36px 0 64px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.motion .seq { height: var(--len, 400vh); }
#start { --len: 380vh; } #technik { --len: 540vh; } #musterbau { --len: 400vh; }
.motion .seq-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.motion .seq-stage canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.motion .seq-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.motion .seq-stage.has-frame .seq-poster { opacity: 0; }
.motion .seq-labels { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.motion .seq .ink-meter { display: flex; }
.motion .seq-copy {
  position: absolute; inset: 0; z-index: 3; width: auto; margin: 0; pointer-events: none;
  padding: calc(var(--header-h) + 3vh) var(--edge) 7vh; display: grid; grid-template: 1fr / 1fr; gap: 0;
}
.seq[data-dim] .seq-stage { background: color-mix(in srgb, var(--render-dark) calc(var(--dim, 0) * 100%), var(--render)); }

/* Beats (Texttafeln, per Scrollfortschritt ein-/ausgeblendet) */
.beat { max-width: min(560px, 100%); }
.motion .beat {
  grid-area: 1 / 1; align-self: end; justify-self: start; opacity: 0; visibility: hidden;
  transform: translate3d(0, calc((1 - var(--a, 0)) * 28px), 0); will-change: opacity, transform;
}
.motion .beat.is-on { pointer-events: auto; }
.motion .pos-tl { align-self: start; }
.motion .pos-tr { align-self: start; justify-self: end; }
.motion .pos-br { justify-self: end; }
.motion .pos-cl { align-self: center; }
.card {
  background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 40px) clamp(22px, 3.2vw, 44px) clamp(26px, 3.4vw, 44px);
  box-shadow: 0 34px 70px -34px rgba(0,0,0,.32);
}
.beat .kicker { margin-bottom: 12px; }
.beat h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: .45em; }
.beat p { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--ink-2); margin: 0; }
.beat .more { margin-top: 20px; }
.beat.opener { max-width: min(900px, 100%); }
.beat.opener h1 { font-size: clamp(3rem, 8.4vw, 8.6rem); line-height: .9; letter-spacing: -0.055em; font-weight: 800; margin: 6px 0 22px; }
.beat.opener p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.beat.opener .scroll-cue { color: var(--ink); margin-top: 22px; }
.beat.opener .scroll-cue i { background: rgba(0,0,0,.15); }
.beat.glass { background: transparent; box-shadow: none; padding: 0; color: #fff; }
.beat.glass p { color: rgba(255,255,255,.82); }
.beat.glass .kicker { color: #b9a8ff; }
.beat.glass h2 { font-size: clamp(2.2rem, 5.2vw, 5rem); text-shadow: 0 0 40px rgba(111,92,255,.55); }
html:not(.motion) .beat.glass { background: var(--render-dark); padding: clamp(22px, 3vw, 40px); }

/* Beschriftungen an den Bauteilen */
.seq-label { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; will-change: transform, opacity; color: var(--ink); }
.seq-label i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(250,147,2,.28); }
.seq-label::before { content: ""; position: absolute; left: -.75px; bottom: 8px; width: 1.5px; height: 30px; background: currentColor; }
.seq-label b {
  position: absolute; left: -1px; bottom: 38px; white-space: nowrap; background: #0a0a0a; color: #fff;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em; padding: 6px 10px 7px; line-height: 1.2;
}
.seq-label b small { display: block; font-weight: 400; font-size: .72rem; color: #bdbdbd; letter-spacing: 0; }
.seq-label.flip::before { bottom: auto; top: 8px; }
.seq-label.flip b { bottom: auto; top: 38px; }
.seq-label.left b { left: auto; right: -1px; }
.is-dim .seq-label { color: #fff; }
.is-dim .seq-label b { background: #fff; color: #0a0a0a; }

/* Farbanzeige Druck */
.ink-meter { grid-area: 1 / 1; align-self: start; justify-self: end; gap: 6px; pointer-events: none; transition: opacity .4s; }
.ink-meter span {
  --c: var(--ink-k); display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 8px; border: 2px solid currentColor;
  font-weight: 800; font-size: .9rem; background: rgba(255,255,255,.7); color: var(--ink); transition: background-color .35s, color .35s, transform .45s var(--ease);
}
.ink-meter span[data-ink="c"] { --c: var(--ink-c); } .ink-meter span[data-ink="m"] { --c: var(--ink-m); }
.ink-meter span[data-ink="y"] { --c: var(--ink-y); } .ink-meter span[data-ink="l"] { --c: var(--ink-l); }
.ink-meter span.done { background: var(--c); color: #fff; }
.ink-meter span[data-ink="y"].done, .ink-meter span[data-ink="l"].done { color: #0a0a0a; }
.ink-meter span.on { transform: translateY(-6px) scale(1.08); box-shadow: 0 12px 24px -10px var(--c); }

/* ---------- 360°-Ansicht ---------- */
.spin { background: var(--render); padding-block: clamp(70px, 10vw, 140px); }
.spin-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.spin-text h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); letter-spacing: -0.05em; line-height: .95; margin-bottom: .4em; }
.spin-text p { font-size: 1.12rem; color: var(--ink-2); }
.spin-facts { list-style: none; margin-top: 28px; border-top: 1px solid rgba(0,0,0,.18); }
.spin-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,.18); font-size: 1rem; }
.spin-facts li span { color: var(--muted); }
.spin-stage {
  position: relative; aspect-ratio: 5 / 4; background: var(--render); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  outline-offset: 6px;
}
.spin-stage.is-drag { cursor: grabbing; }
.spin-stage img, .spin-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spin-stage canvas { display: none; }
.js .spin-stage.has-frame canvas { display: block; }
.js .spin-stage.has-frame img { opacity: 0; }
.spin-dial { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; pointer-events: none; }
.spin-dial circle { fill: none; stroke: rgba(0,0,0,.15); stroke-width: 2; }
.spin-dial .dot { fill: var(--accent); stroke: none; }
.spin-dial text { font: 800 13px var(--font); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.spin-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: #0a0a0a; color: #fff; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; transition: opacity .4s; pointer-events: none;
}
.spin-hint svg { width: 30px; height: 16px; }
.spin-stage.touched .spin-hint { opacity: 0; }
.spin-btns { position: absolute; left: 18px; top: 18px; display: flex; gap: 6px; }
.spin-btns button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); transition: background-color .2s, color .2s;
}
.spin-btns button:hover { background: var(--accent); }
.spin-btns svg { width: 16px; height: 16px; }

/* ---------- Modell & Wirklichkeit ---------- */
.reality .section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.reality-note { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: .95rem; color: var(--muted); }
.reality-note i { width: 36px; height: 2px; background: var(--accent); flex: none; }
.spec-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px); margin-top: clamp(40px, 6vw, 72px); }
.spec-mini article { background: #fff; padding: 26px 28px 30px; }
.spec-mini .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 4px 9px; margin-bottom: 14px; }
.spec-mini h3 { font-size: 1.25rem; margin-bottom: 10px; }
.spec-mini p { font-size: 1rem; color: var(--ink-2); line-height: 1.55; }

/* ---------- Profil: kurze Zeitleiste ---------- */
.tl4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 30px); counter-reset: none; }
.tl4 article { background: #fff; padding: 26px 26px 30px; position: relative; }
.tl4 article::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--k, 1)); }
.tl4 .year { display: block; font-size: clamp(2.6rem, 4.4vw, 4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 14px; }
.tl4 h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tl4 p { font-size: .98rem; color: var(--ink-2); line-height: 1.5; }
.tl4 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: -26px -26px 22px; width: calc(100% + 52px); max-width: none; }

/* Rahmen für Sektionen im Content-Bereich */
.v3 .section.tight { padding-top: clamp(60px, 8vw, 110px); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .tl4 { grid-template-columns: 1fr 1fr; }
  .spec-mini { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .motion .seq-copy { padding: calc(var(--header-h) + 2vh) var(--gutter) 3vh; }
  .motion .beat, .motion .pos-tr, .motion .pos-br, .motion .pos-cl, .motion .pos-tl { align-self: end; justify-self: stretch; max-width: none; }
  .motion .beat.m-top { align-self: start; }
  .card { padding: 20px 20px 22px; }
  .beat h2 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .beat.opener h1 { font-size: clamp(2.7rem, 13vw, 4rem); margin-bottom: 14px; }
  .beat.opener .scroll-cue { display: none; }
  .beat.glass h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .seq-label.opt { display: none; }
  .seq-label b { font-size: .72rem; padding: 5px 8px 6px; }
  .seq-label b small { display: none; }
  .ink-meter { gap: 4px; }
  .ink-meter span { min-width: 34px; height: 34px; font-size: .75rem; padding: 0 5px; }
  .spin-grid { grid-template-columns: 1fr; }
  .spin-stage { aspect-ratio: 4 / 5; }
}
@media (max-width: 600px) {
  .tl4 { grid-template-columns: 1fr; }
  .spin-dial { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-loader { display: none !important; }
}

/* ---------- Ergänzungen ---------- */
.mt-lg { margin-top: clamp(56px, 8vw, 110px); }
.v3 .marquee + .hscroll { margin-top: 0; }
.finale-address { margin-top: clamp(36px, 5vw, 60px); color: var(--on-dark-2); font-size: .95rem; }
body.v3.sub { padding-top: var(--header-h); }
.v3 .seq + .section { padding-top: clamp(70px, 10vw, 140px); }
/* Auftritt der Startkarte nach dem Ladevorhang */
.motion .beat.opener > * { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.motion.intro-done .beat.opener > * { opacity: 1; transform: none; }
.motion.intro-done .beat.opener > :nth-child(2) { transition-delay: .08s; }
.motion.intro-done .beat.opener > :nth-child(3) { transition-delay: .18s; }
.motion.intro-done .beat.opener > :nth-child(4) { transition-delay: .28s; }
.beat.narrow { max-width: min(330px, 100%); }
.beat.narrow h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
@media (max-width: 860px) {
  .motion .seq-copy { padding-bottom: 68px; }
}
