/* ==========================================================================
   Calisoft X — „abgefahrene" Fassung (Prototyp, 22.08.2026)
   Liegt auf style.css: dunkler Grund, Orange leuchtend, Partikel-Szene,
   GSAP-Scroll-Choreografie. Gleiches Klassen-System, gleiche Inhalte.
   ========================================================================== */
html.x {
  --color-bg: #14181f;
  --color-surface: #1b2028;
  --color-text: #f2f2f3;
  --color-divider: rgba(242, 242, 243, 0.14);
  --color-neutral-100: #222831;
  --color-neutral-200: #2c333d;
  --color-neutral-300: #3a424d;
  --color-neutral-400: #6b7178;
  --color-neutral-500: #8a9099;
  --color-neutral-600: #a9aeb6;
  --color-neutral-700: #c3c7cd;
  --color-neutral-800: #e2e4e7;
  --color-neutral-900: #f2f2f3;
  --color-accent: #ff8a3d;
  --color-accent-100: #2a1d14;
  --color-accent-200: #3d2717;
  --color-accent-300: #ffd9bc;
  --color-accent-400: #ffbf94;
  --color-accent-500: #ff8a3d;
  --color-accent-600: #f26b1d;
  --color-accent-700: #ffa062;
  --color-accent-800: #fdf1e8;
  --color-accent-900: #1e1712;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.55);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,138,61,0.15);
  --glow: 0 0 60px rgba(255,138,61,0.25);
}
html.x { scroll-behavior: auto; }
html.x, html.x body { background: var(--color-bg); color: var(--color-text); }
html.x.lenis, html.x.lenis body { height: auto; }
html.x .lenis.lenis-smooth { scroll-behavior: auto !important; }
html.x ::selection { background: rgba(255,138,61,0.4); }
html.x .brand__mark, html.x .x-intro__mark { color: #ffd9bc; }
html.x .blueprint > .corner { color: rgba(242,242,243,0.55); }
html.x .btn-primary { background: var(--color-accent); color: #14181f; border-color: var(--color-accent); box-shadow: 0 0 30px rgba(255,138,61,0.25); }
html.x .btn-primary:hover { background: var(--color-accent-300); color: #14181f; }
html.x .btn-secondary { color: var(--color-text); }
html.x .btn-secondary:hover { background: rgba(242,242,243,0.08); }
html.x .tag-accent { background: rgba(255,138,61,0.16); color: var(--color-accent-300); }
html.x .tag-neutral { background: rgba(242,242,243,0.08); color: var(--color-neutral-700); }
html.x .tag-outline { border-color: var(--color-accent); color: var(--color-accent); }
html.x .input { background: #1b2028; color: var(--color-text); }
html.x .term { background: #0e1115; box-shadow: var(--shadow-lg); }
html.x .fig, html.x .fig--plain { box-shadow: var(--shadow-lg); }
html.x .cell--dark { background: var(--color-accent); color: #14181f; }
html.x .cell--dark .num, html.x .cell--dark span:not(.num), html.x .cell--dark .copy-14 { color: #14181f; }
html.x .notice__box { background: rgba(255,138,61,0.08); }
html.x .notice__box p { color: var(--color-text); }
html.x .sec--paper, html.x .plate, html.x .case__fig { background-image: linear-gradient(rgba(242,242,243,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(242,242,243,0.06) 1px, transparent 1px); }
html.x .reg__card, html.x .price, html.x .stack--bg, html.x .cells--bg, html.x .kv--bg, html.x .note--bg, html.x .screens__tab.is-active { background: rgba(27,32,40,0.7); backdrop-filter: blur(6px); }
html.x .reg__tab { background: var(--color-bg); }
html.x .nav { background: rgba(20,24,31,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.x .nav__panel { background: var(--color-bg); }
html.x .portrait { background: #1b2028; }
html.x .article p > code { background: #1b2028; }
html.x .screens__tabs { background: rgba(27,32,40,0.5); }
html.x img.logo-dark { filter: invert(1); }

/* Partikel-Szene hinter allem */
html.x .x-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
html.x .x-main, html.x .nav, html.x .footer, html.x .nav__panel { position: relative; z-index: 1; }
html.x .nav { position: sticky; z-index: 50; }
html.x .x-main { isolation: isolate; }

/* Prototyp-Hinweis */
.x-badge { position: fixed; left: 16px; bottom: 16px; z-index: 60; font-family: var(--font-heading); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-300); background: rgba(20,24,31,0.8); border: 1px solid var(--color-divider); padding: 8px 12px; backdrop-filter: blur(8px); }
.x-badge a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Kapitel-Leiste rechts */
.x-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 14px; font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.14em; color: var(--color-neutral-500); }
.x-rail a { display: flex; align-items: center; gap: 8px; color: inherit; transition: color 0.3s; }
.x-rail a i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 0.3s, background 0.3s; }
.x-rail a.is-active { color: var(--color-accent-300); }
.x-rail a.is-active i { transform: scale(1.8); box-shadow: 0 0 12px var(--color-accent); }
.x-rail span { display: none; }
.x-rail a.is-active span { display: inline; }
@media (max-width: 980px) { .x-rail { display: none; } }

/* Intro-Vorhang */
.x-intro { position: fixed; inset: 0; z-index: 100; background: var(--color-bg); display: grid; place-items: center; text-align: center; }
.x-intro__mark { display: block; width: 72px; height: 80px; margin: 0 auto 28px; }
.x-intro__mark rect { transform-origin: center; }
.x-intro__line { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 4vw, 54px); line-height: 1.1; margin: 0; }
.x-intro__line + .x-intro__line { color: var(--color-accent-300); }
.x-intro__skip { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--color-neutral-600); cursor: pointer; background: none; border: 0; }
.x-intro__skip i { width: 44px; height: 44px; border: 1px solid var(--color-divider); border-radius: 50%; display: grid; place-items: center; color: var(--color-text); transition: background 0.2s; }
.x-intro__skip:hover i { background: rgba(242,242,243,0.08); }
.x-intro__hint { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 10px; white-space: nowrap; font-size: 10px; letter-spacing: 0.1em; color: var(--color-neutral-500); }
.x-intro__skip:focus-visible { outline: none; } .x-intro__skip:focus-visible i { border-color: var(--color-accent); box-shadow: 0 0 14px rgba(255,138,61,0.4); }
html.x.static .x-intro { display: none; }

/* Hero X */
.x-hero { min-height: min(100vh, 1000px); display: grid; align-content: center; position: relative; overflow: hidden; }
.x-hero .hero__title { font-size: clamp(56px, 9vw, 148px); line-height: 0.92; max-width: 12ch; letter-spacing: -0.02em; }
.x-hero .hero__title .w { display: inline-block; }
.x-hero .hero__title .accent { color: var(--color-accent-300); text-shadow: 0 0 40px rgba(255,138,61,0.35); }
.x-hero__lead { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: end; }
.x-hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-neutral-500); display: grid; justify-items: center; gap: 8px; }
.x-hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--color-accent), transparent); animation: x-drop 1.6s ease-in-out infinite; }
@keyframes x-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
html.x .stats { border-color: var(--color-divider); background: rgba(20,24,31,0.55); backdrop-filter: blur(6px); }
html.x .stat > b { color: var(--color-accent-300); font-size: 34px; }

/* Kapitel-Kopf mit Riesenzahl */
.x-chapter { position: relative; }
.x-chapter__no { position: absolute; right: var(--pad); top: clamp(24px, 4vw, 56px); font-family: var(--font-heading); font-weight: 700; font-size: clamp(80px, 16vw, 260px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(242,242,243,0.12); pointer-events: none; user-select: none; }

/* Manifest: Wörter färben sich ein */
html.x .manifest p { font-size: clamp(30px, 4.2vw, 64px); max-width: 26ch; }
html.x .manifest .w { color: rgba(242,242,243,0.18); transition: color 0.25s; }
html.x .manifest .w.on { color: var(--color-text); }
html.x .manifest .w.accent { color: rgba(255,138,61,0.25); }
html.x .manifest .w.accent.on { color: var(--color-accent-300); text-shadow: 0 0 30px rgba(255,138,61,0.3); }

/* Angebots-Karten 3D */
.x-offers { perspective: 1400px; }
.x-offers .cell { transform-style: preserve-3d; background: rgba(27,32,40,0.6); transition: background 0.3s; }
.x-offers .cell:hover { background: rgba(255,138,61,0.1); }
.x-offers .offer__more { transition: transform 0.3s; display: inline-block; }
.x-offers .cell:hover .offer__more { transform: translateX(6px); }

/* Horizontale Galerie (Drei Schritte) */
.x-gallery { overflow: hidden; }
.x-gallery__track { display: flex; gap: clamp(24px, 4vw, 64px); align-items: center; padding-inline: var(--pad); will-change: transform; }
.x-gallery__item { flex: 0 0 auto; width: min(720px, 80vw); }
.x-gallery__item--text { width: min(520px, 80vw); }
.x-gallery__item .num--big { font-size: clamp(60px, 8vw, 120px); color: var(--color-accent-300); -webkit-text-stroke: 0; }
.x-gallery__item h3 { font-size: clamp(24px, 2.6vw, 36px); margin: 0 0 12px; }
html.x .x-gallery .fig { background: transparent; }

/* Terminal tippt */
.x-term .term__body > span { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.x-term .term__body > span.on { opacity: 1; transform: none; }

/* Parallaxe-Figuren, Reveals */
html.x [data-x-fade] { opacity: 0; transform: translateY(40px); }
html.x.static [data-x-fade], html.x.no-js [data-x-fade] { opacity: 1; transform: none; }
html.x.static .manifest .w { color: var(--color-text); }
html.x.static .manifest .w.accent { color: var(--color-accent-300); }
html.x.static .x-term .term__body > span { opacity: 1; transform: none; }
html.x.static .x-gallery__track { flex-wrap: wrap; }
html.x.static .x-hero .hero__title .w { opacity: 1; transform: none; }

/* Zeilen-Aufzug für Überschriften */
html.x .x-lines { overflow: hidden; }
html.x .x-lines > .ln { display: block; transform: translateY(110%); }
html.x.static .x-lines > .ln { transform: none; }

/* Footer-Wortmarke */
.x-word { font-family: var(--font-heading); font-weight: 700; font-size: clamp(80px, 18vw, 300px); line-height: 0.85; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px rgba(242,242,243,0.18); text-align: center; padding: clamp(24px, 5vw, 64px) 0 0; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  html.x [data-x-fade], html.x .x-lines > .ln, html.x .x-hero .hero__title .w { opacity: 1; transform: none; }
  html.x .manifest .w { color: var(--color-text); }
  .x-intro { display: none; }
}
@media (max-width: 980px) {
  .x-hero__lead { grid-template-columns: 1fr; }
  .x-chapter__no { font-size: clamp(60px, 18vw, 120px); }
}
