/* =============================================================================
   MW IT-SERVICES · Cinematic-Schicht über der bestehenden Startseite
   Ergänzt style.css (Farben, Abschnitte, Planer, Sichtbarkeitstest bleiben wie
   gehabt) um eine fixierte WebGL-Bühne, ein Kapitel „Sichtbarkeit“ und die
   Fortschrittsleiste. Wird von tools/build-cinematic.js eingebunden.
   Farben: die der Website und des Logos (Obsidian-Holz, Kupfer).
   ============================================================================= */
/* Schriften wie auf der Website (Archivo aus style.css), keine eigene Display-Schrift */
:root { --cine-p: 0; }

/* ---------- Bühne hinter allem ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }
/* Helle Bereiche bekommen ihren Papier-Hintergrund selbst, damit die Bühne nur in den dunklen Kapiteln zu sehen ist.
   :where() hält die Regel schwach: Bereiche mit eigener Farbe (Rechner, FAQ, Planer) behalten sie. */
:where(main > .section) { background-color: var(--bg-main); }

/* Hero und neues Kapitel lassen die Bühne durchscheinen */
.hero { background: transparent !important; isolation: auto; }
.hero::before { opacity: .05; }


/* ---------- Kapitel „Sichtbarkeit: SEO & GEO“ ---------- */
.cine { position: relative; min-height: 190vh; color: var(--text-on-dark); }
.cine-inner { position: sticky; top: 0; min-height: 100vh; display: grid; align-items: center; padding: 120px 0 64px; }
.cine-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.cine .eyebrow { color: var(--copper-bright); }
.cine h2 { font-size: var(--step-4); color: var(--text-on-dark); margin: 0; }
.cine h2 em { color: var(--copper-bright); font-style: normal; }
.cine-lead { max-width: 54ch; margin: 26px 0 0; color: rgba(244, 240, 232, .78); font-size: clamp(16px, 1.2vw, 18.5px); line-height: 1.65; }
.cine-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cine-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cine-card { position: relative; padding: 22px 22px 20px; border-radius: 18px; background: rgba(30, 22, 18, .72); border: 1px solid rgba(229, 169, 118, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(240, 201, 166, .14), 0 30px 60px -36px rgba(0, 0, 0, .9);
  transition: border-color .3s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.cine-card:hover { border-color: rgba(223, 154, 103, .55); transform: translateY(-3px); }
.cine-card b { display: block; font: 650 13px/1 var(--font-display); letter-spacing: .12em; color: var(--copper-bright); margin-bottom: 12px; }
.cine-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--text-on-dark); letter-spacing: 0; font-stretch: 100%; }
.cine-card p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(244, 240, 232, .7); }
.cine .fade { opacity: 0; transform: translateY(18px); transition: opacity 1s cubic-bezier(.16, 1, .3, 1) .3s, transform 1.1s cubic-bezier(.16, 1, .3, 1) .3s; }
.cine.is-in .fade { opacity: 1; transform: none; }
.cine.is-in .fade.d2 { transition-delay: .5s; } .cine.is-in .fade.d3 { transition-delay: .7s; }

/* Abschluss lässt die Bühne ebenfalls sehen */
.cta-final { background: rgba(18, 15, 13, .55) !important; }

/* ---------- Fortschritt am rechten Rand ---------- */
.story { position: fixed; right: clamp(10px, 1.6vw, 24px); top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; align-items: center; }
.story-track, .story-fill { position: absolute; top: 6px; width: 1px; }
.story-track { bottom: 6px; background: rgba(148, 130, 115, .35); }
.story-fill { height: calc((100% - 12px) * var(--cine-p)); background: linear-gradient(180deg, var(--copper-pale), var(--copper-mid)); box-shadow: 0 0 8px var(--copper-bright); }
.story a { position: relative; display: grid; place-items: center; width: 26px; height: 46px; text-decoration: none; }
.story a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(148, 130, 115, .9); background: var(--obsidian-2); transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; }
.story a[aria-current="true"]::before { background: var(--copper-bright); border-color: var(--copper-bright); box-shadow: 0 0 12px var(--copper-bright); transform: scale(1.25); }
.story a span { position: absolute; right: 28px; white-space: nowrap; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-pale);
  background: rgba(18, 15, 13, .85); padding: 4px 9px; border-radius: 99px; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.story a:hover span, .story a:focus-visible span { opacity: 1; transform: none; }

@media (max-width: 1100px) { .story { display: none; } }
@media (max-width: 900px), (max-height: 700px) {
  .cine { min-height: 0; }
  .cine-inner { position: relative; min-height: 0; padding: 96px 0 72px; }
  .cine-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .cine-cards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .cine .fade { opacity: 1; transform: none; transition: none; }
  .cine-card { transition: none; }
}
