/* Vellin Phono. Seitenstil. Die Engine-Klassen (.sc-*, [data-sc-*]) bleiben
   unangetastet; hier stehen Marke, Bühnen, der gezeichnete Plattenspieler. */
:root {
  --sc-canvas:     #0D1013;
  --sc-surface:    #151A1E;
  --sc-ink:        #E9ECEA;
  --sc-ink-soft:   #A6B0B5;
  --sc-accent:     #D9603B;
  --sc-accent-ink: #140B07;
  --sc-font-display: "Darker Grotesque", system-ui, sans-serif;
  --sc-font-text:    "Hind", system-ui, sans-serif;
  --sc-font-mono:    "Hind", system-ui, sans-serif;
  --sc-shadow-color: 205 30% 3%;
  --linie: rgb(233 236 234 / .14);
  --zinnober: #D9603B;
  color-scheme: dark;
}
html { background: var(--sc-canvas); scrollbar-color: #2E363C var(--sc-canvas); }
body { font-family: var(--sc-font-text); background: var(--sc-canvas); color: var(--sc-ink); }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 3px; }
input { caret-color: var(--sc-accent); }
[hidden] { display: none !important; }
:where(.daten, .teil__mass) { font-variant-numeric: tabular-nums; }

/* Darker Grotesque ist schmal und hat kleine Mittellängen: groß setzen,
   eng führen, hell auf dunkel eine Stufe schwerer. */
.sc-display {
  font-family: var(--sc-font-display);
  font-weight: 700;
  letter-spacing: -0.006em;
  line-height: .94;
  text-wrap: balance;
}
.sc-display--xl { font-size: clamp(3.2rem, 1.6rem + 5.6vw, 7.4rem); }
.sc-display--lg { font-size: clamp(2.5rem, 1.5rem + 3.3vw, 4.8rem); line-height: .96; }
.sc-body { color: var(--sc-ink-soft); font-size: clamp(1.06rem, 1rem + .3vw, 1.25rem); line-height: 1.62; letter-spacing: .006em; text-wrap: pretty; max-width: 40ch; }
.sc-lede { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.08; color: var(--sc-ink); }
@media (max-width: 700px) {
  .sc-display--xl { font-size: clamp(2.7rem, 1.6rem + 6.4vw, 3.6rem); }
  .sc-display--lg { font-size: clamp(2.2rem, 1.5rem + 4vw, 2.9rem); }
  .sc-body { font-size: 1.04rem; line-height: 1.55; }
}

/* ---------- Kopf: Wortmarke links, Titelliste rechts ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px var(--sc-gutter);
  background: linear-gradient(color-mix(in oklab, var(--sc-canvas) 86%, transparent), transparent);
  pointer-events: none;
}
.kopf > * { pointer-events: auto; }
.wortmarke {
  font: 800 27px/1 var(--sc-font-display); letter-spacing: .01em; color: var(--sc-ink); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.wortmarke span { font-weight: 500; color: var(--sc-ink-soft); }
.wortmarke::before { content: ""; width: 12px; height: 12px; border-radius: 50%; align-self: center;
  background: radial-gradient(circle, var(--sc-ink) 0 1.5px, var(--zinnober) 2px 4.5px, #050607 5px); }

.titel { position: relative; }
.titel__knopf { display: none; }
.titel__liste { display: flex; gap: clamp(10px, 1.4vw, 22px); list-style: none; margin: 0; padding: 0; }
.titel__liste a {
  display: block; padding: 6px 0; color: var(--sc-ink-soft); text-decoration: none;
  font: 500 15px/1.2 var(--sc-font-text); white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.titel__liste b { font-weight: 600; color: var(--sc-ink-soft); margin-right: 3px; font-variant-numeric: tabular-nums; }
.titel__liste a.ist-hier { color: var(--sc-ink); border-bottom-color: var(--zinnober); }
.titel__liste a.ist-hier b { color: var(--zinnober); }
@media (hover: hover) and (pointer: fine) { .titel__liste a:hover { color: var(--sc-ink); } }

@media (max-width: 1180px) {
  .titel__knopf {
    display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 14px;
    font: 500 15px/1 var(--sc-font-text); color: var(--sc-ink); cursor: pointer;
    background: color-mix(in oklab, var(--sc-canvas) 70%, transparent);
    border: 1px solid var(--linie); border-radius: 999px;
  }
  .titel__seite { color: var(--sc-ink-soft); }
  .titel__knopf { white-space: nowrap; }
  .titel__knopf::after { content: ""; width: 7px; height: 7px; border: solid var(--sc-ink-soft); border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; transition: rotate 160ms var(--sc-ease-out); }
  .titel__knopf[aria-expanded="true"]::after { rotate: 225deg; translate: 0 2px; }
  .titel__liste {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    flex-direction: column; gap: 0; padding: 8px 16px;
    background: var(--sc-surface); border: 1px solid var(--linie); border-radius: 12px;
    box-shadow: 0 18px 40px hsl(var(--sc-shadow-color) / .6);
    opacity: 0; visibility: hidden; translate: 0 -4px;
    transition: opacity 180ms var(--sc-ease-out), translate 180ms var(--sc-ease-out), visibility 0s 180ms;
  }
  .titel.ist-offen .titel__liste { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .titel__liste a { padding: 10px 0; font-size: 16px; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1 var(--sc-font-text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  color: var(--sc-ink); border: 1.5px solid color-mix(in oklab, var(--sc-ink) 45%, transparent);
  background: color-mix(in oklab, var(--sc-canvas) 50%, transparent);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.knopf:active { transform: translateY(1px) scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { border-color: var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 12%, transparent); }
}
.knopf--voll {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--sc-accent-ink); background: var(--sc-accent); border-color: var(--sc-accent);
}
/* feines Rillenmuster im vollen Knopf, ein Lichtstreif läuft darüber */
.knopf--voll::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .32) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat,
    repeating-radial-gradient(circle at 50% 160%, rgb(0 0 0 / .08) 0 1px, transparent 1px 4px);
  animation: streif 4.8s var(--sc-ease-in-out) infinite;
}
@keyframes streif { 0%, 55% { background-position: -200% 0, 0 0; } 100% { background-position: 200% 0, 0 0; } }
@media (hover: hover) and (pointer: fine) { .knopf--voll:hover { background: #E2714D; } }
.knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.knopf--hoeren[aria-pressed="true"] { border-color: var(--sc-accent); }
.knopf--hoeren[aria-pressed="true"] .welle { animation: welle 600ms var(--sc-ease-in-out) infinite alternate; }
@keyframes welle { to { opacity: .2; } }

/* ---------- Der gezeichnete Plattenspieler ---------- */
.dreher { position: relative; width: 100%; aspect-ratio: 450 / 372; }
.dreher svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dreher__notiz { margin: 10px 0 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); text-align: right; letter-spacing: .02em; }
.dreher .rille-alle { fill: none; stroke: rgb(170 185 195 / .16); stroke-width: .42; }
.dreher .rille-gespielt { fill: none; stroke: rgb(233 236 234 / .62); stroke-width: .5; }
.dreher .steg { fill: none; stroke: rgb(200 212 220 / .13); }
.dreher .arm-rohr { stroke: url(#vp-alu); stroke-width: 6; stroke-linecap: round; }

/* ---------- A1 Einlauf ---------- */
.buehne { background: var(--sc-canvas); }
.buehne--einlauf {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); align-items: center;
  gap: clamp(24px, 4vw, 72px); padding: 92px var(--sc-gutter) 40px;
}
.buehne--einlauf::before { /* ein ruhiges Licht von oben links, wandert langsam */
  content: ""; position: absolute; left: 18%; top: -30%; width: 70vw; height: 90%;
  background: radial-gradient(closest-side, rgb(160 185 200 / .07), transparent);
  animation: licht 13s var(--sc-ease-in-out) infinite alternate; pointer-events: none;
}
@keyframes licht { to { translate: 12vw 6vh; } }
.einlauf__text { order: 1; display: grid; position: relative; z-index: 2; }
.einlauf__satz { grid-area: 1 / 1; align-self: center; }
.einlauf__satz .sc-body { margin-top: var(--sc-5); }
.einlauf__satz .knopf { margin-top: var(--sc-6); }
.einlauf__satz h1 { max-width: 9ch; }
.einlauf__dreher { order: 2; width: min(100%, calc((100svh - 150px) * 1.21)); justify-self: center; }

@media (max-width: 480px) { .titel__seite { display: none; } }
@media (max-width: 860px) {
  .buehne--einlauf { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding: 78px var(--sc-gutter) 24px; gap: 10px; }
  .einlauf__dreher { order: 1; width: min(100%, 46svh * 1.21); }
  .einlauf__text { order: 2; }
  .einlauf__satz { align-self: start; }
  .einlauf__satz .sc-body { margin-top: var(--sc-3); }
  .einlauf__satz .knopf { margin-top: var(--sc-4); }
  .dreher__notiz { margin-top: 4px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .einlauf__dreher { width: min(100%, 33svh * 1.21); }
  .dreher__notiz { display: none; }
  .einlauf__satz h1 { font-size: 2.45rem; }
  .einlauf__satz .sc-body { font-size: .98rem; line-height: 1.5; }
}

/* ---------- A2 Werkstatt ---------- */
.werkstatt { padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 10vw, 8rem); }
.werkstatt__raster {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: start;
}
.werkstatt__gross { grid-column: 1 / span 6; grid-row: 1 / span 2; margin: 0; }
.werkstatt__text { grid-column: 8 / span 5; grid-row: 1; padding-top: clamp(0px, 4vw, 60px); }
.werkstatt__klein { grid-column: 8 / span 4; grid-row: 2; margin: 0; }
.werkstatt img, .modell__nadel img { display: block; width: 100%; height: auto; border-radius: 6px; }
.werkstatt__gross img { box-shadow: 0 30px 60px -20px hsl(var(--sc-shadow-color) / .8); }
figcaption { margin-top: 12px; font-size: var(--sc-t-sm); line-height: 1.5; color: var(--sc-ink-soft); max-width: 42ch; }
@media (max-width: 860px) {
  .werkstatt__gross, .werkstatt__text, .werkstatt__klein { grid-column: 1 / -1; grid-row: auto; padding-top: 0; }
  .werkstatt__klein { width: 78%; justify-self: end; }
}

/* ---------- A3 Die Teile ---------- */
.buehne--teile { display: flex; align-items: center; }
.leiste { display: flex; align-items: stretch; gap: clamp(20px, 2.6vw, 40px); padding: 80px var(--sc-gutter) 30px; width: max-content; }
.teil { width: clamp(15.5rem, 24vw, 21rem); flex: none; }
.teil--kopf { width: clamp(17rem, 30vw, 27rem); align-self: center; }
.teil--kopf .sc-body { margin-top: var(--sc-5); }
.teil--schluss { width: clamp(15rem, 24vw, 21rem); align-self: center; padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--linie); }
.teil__blatt {
  position: relative; aspect-ratio: 24 / 17; border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(rgb(233 236 234 / .07) 1px, transparent 1.3px) 0 0 / 14px 14px,
    linear-gradient(160deg, #161C21, #0F1317);
  border: 1px solid var(--linie);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 18px 34px -18px hsl(var(--sc-shadow-color) / .8);
}
.teil__blatt::after { /* ein langsames Licht über dem Zeichenblatt */
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(closest-side, rgb(217 96 59 / .07), transparent);
  animation: blattlicht 11s var(--sc-ease-in-out) infinite alternate;
}
@keyframes blattlicht { from { translate: -25% -10%; } to { translate: 25% 10%; } }
.teil__blatt svg { position: relative; z-index: 1; width: 100%; height: 100%; fill: none; stroke: var(--sc-ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.teil__blatt .duenn { stroke: var(--sc-ink-soft); stroke-width: .8; stroke-dasharray: 3 3; }
.teil__blatt .dick { stroke-width: 2.6; }
.teil h3 { margin: 18px 0 6px; font: 700 clamp(1.7rem, 1.3rem + 1vw, 2.2rem)/1 var(--sc-font-display); }
.teil p { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-base); line-height: 1.55; }
.teil .teil__mass { margin-top: 10px; color: var(--sc-ink); font-size: var(--sc-t-sm); letter-spacing: .02em; padding-top: 8px; border-top: 1px solid var(--linie); }
@media (max-width: 860px) { .teil { width: min(76vw, 19rem); } .teil--kopf { width: min(80vw, 21rem); } }
@media (prefers-reduced-motion: no-preference) {
  .leiste > .teil:not(.teil--kopf) { opacity: calc(.55 + .45 * min(1, var(--sc-p, 0) * 3)); }
}

/* ---------- A4 Stille ---------- */
.stille { padding-block: clamp(9rem, 26vh, 16rem); }
.stille__inhalt { display: grid; justify-items: start; }
.stille h2 { max-width: 11ch; }
.stille .sc-body { margin-top: var(--sc-6); margin-left: clamp(0px, 18vw, 22rem); }

/* ---------- A5 In der Rille ---------- */
.buehne--rille { background: #06080A; }
.rille__leinwand { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rille__dreher {
  position: absolute; top: 50%; left: 62%; translate: -50% -50%;
  width: min(54vw, calc((100svh - 120px) * 1.21)); transform-origin: 0 0; will-change: transform, opacity;
}
.rille__abschirm { /* Schutz nur unter der Textspalte, kein Vollbild-Abdunkeln */
  position: absolute; inset: 0 auto 0 0; width: min(46rem, 48vw); pointer-events: none;
  background: linear-gradient(90deg, rgb(6 8 10 / .9) 0%, rgb(6 8 10 / .72) 55%, transparent 100%);
}
.rille__text { position: absolute; left: var(--sc-gutter); top: 50%; translate: 0 -40%; width: min(30rem, 36vw); display: grid; z-index: 3; }
.rille__satz { grid-area: 1 / 1; align-self: center; }
.rille__satz .sc-body { margin-top: var(--sc-4); }
.rille__satz .knopf { margin-top: var(--sc-5); }
.rille__hinweis { margin: 12px 0 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); max-width: 34ch; }
@media (max-width: 860px) {
  .rille__dreher { left: 50%; top: 32%; width: min(92vw, 40svh * 1.21); }
  .rille__abschirm { inset: auto 0 0 0; width: auto; height: 52%; background: linear-gradient(to top, rgb(6 8 10 / .95) 0%, rgb(6 8 10 / .86) 62%, transparent 100%); }
  .rille__text { top: auto; bottom: 26px; translate: none; width: auto; right: var(--sc-gutter); }
  .rille__satz { align-self: end; }
}

/* ---------- A6 Modell Eins ---------- */
.modell { padding-block: 0 clamp(5rem, 12vw, 9rem); }
.modell__bild { position: relative; height: min(78svh, 56vw); overflow: hidden; }
.modell__bild img { position: absolute; left: 0; top: -60px; width: 100%; height: calc(100% + 120px); max-width: none; object-fit: cover; object-position: 60% 50%; }
.modell__bild::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(transparent, var(--sc-canvas)); }
.modell__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(-6rem, -6vw, -2rem); position: relative; z-index: 2; }
.modell__nadel { margin: var(--sc-7) 0 0; max-width: 30rem; }
.daten { margin: 0; align-self: end; border-top: 1px solid var(--linie); }
.daten div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--linie); }
.daten dt { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); padding-top: 3px; }
.daten dd { margin: 0; font-size: var(--sc-t-base); }
@media (max-width: 860px) {
  .modell__bild { height: 72svh; }
  .modell__raster { grid-template-columns: 1fr; margin-top: -3rem; }
  .daten div { grid-template-columns: 7.2rem 1fr; }
}

/* ---------- A7 Auslauf ---------- */
.buehne--auslauf {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 72px); padding: 84px var(--sc-gutter) 70px;
}
.auslauf__dreher { width: min(100%, calc((100svh - 170px) * 1.21)); justify-self: center; }
.auslauf__text .sc-body { margin-top: var(--sc-5); }
.auslauf__text h2 { max-width: 9ch; }
.auslauf__angebot { margin: var(--sc-5) 0 0; font-size: var(--sc-t-base); line-height: 1.55; color: var(--sc-ink); max-width: 40ch; }
.anfrage { margin-top: var(--sc-5); max-width: 32rem; }
.anfrage label { display: block; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); margin-bottom: 8px; }
.anfrage__zeile { display: flex; gap: 10px; }
.anfrage input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: 999px;
  font: 400 1rem/1 var(--sc-font-text); color: var(--sc-ink);
  background: rgb(233 236 234 / .05); border: 1.5px solid rgb(233 236 234 / .3);
  transition: border-color 160ms var(--sc-ease-out);
}
.anfrage input::placeholder { color: #8C979D; }
.anfrage input:focus { outline: none; border-color: var(--sc-accent); }
.anfrage input[aria-invalid="true"] { border-color: #E98A6B; }
.anfrage__fehler { display: block; margin-top: 8px; color: #F0A58C; font-size: var(--sc-t-sm); }
.anfrage__hinweis { margin: 10px 0 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.fuss {
  position: absolute; inset: auto var(--sc-gutter) 16px; display: flex; justify-content: space-between; gap: 20px;
  font-size: var(--sc-t-xs); color: var(--sc-ink-soft);
}
.fuss span:first-child { font: 800 15px/1 var(--sc-font-display); color: var(--sc-ink); }
@media (max-width: 860px) {
  .buehne--auslauf { grid-template-columns: 1fr; align-content: start; gap: 6px; padding: 70px var(--sc-gutter) 60px; }
  .auslauf__dreher { width: min(100%, 31svh * 1.21); }
  .auslauf__text .sc-body { margin-top: var(--sc-3); font-size: .98rem; line-height: 1.5; }
  .auslauf__angebot { margin-top: var(--sc-3); font-size: .98rem; }
  .anfrage { margin-top: var(--sc-4); }
  .anfrage__zeile { flex-direction: column; }
  .fuss { flex-direction: column; gap: 4px; bottom: 10px; }
  .fuss span:first-child { display: none; }
}
@media (max-width: 380px) and (max-height: 700px) {
  .auslauf__dreher { width: min(100%, 24svh * 1.21); }
  .auslauf__text .sc-display--xl { font-size: 2.4rem; }
  .auslauf__text .sc-body { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .buehne--einlauf::before, .teil__blatt::after, .knopf--voll::before { animation: none; }
}

@media (max-width: 860px) { .dreher .rille-alle { stroke: rgb(170 185 195 / .09); } .dreher .rille-gespielt { stroke: rgb(233 236 234 / .4); } }
