/* ==========================================================
   Greifenbacher – Designschicht 2 (1.10.2026)
   Vorbilder: 1917 (Kino, 3D-Reise), Apple (Kacheln), Loume (Ruhe, Footer)
   Wird NACH style.css geladen und überschreibt dessen Grundwerte.
   ========================================================== */

:root {
  --bg: #f5f4f1;
  --flaeche: #ffffff;
  --flaeche-2: #ebe9e4;
  --text: #1d1d1f;
  --text-2: #55585e;
  --text-3: #86888d;
  --linie: #dcdad4;
  --nacht: #000;
  --nacht-2: #111214;
  --nacht-text: #f5f5f7;
  --nacht-text-2: #a1a1a6;
  --link: #007fa3;
  --schrift: "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --schrift-titel: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --schrift-schmal: "Bahnschrift Condensed", "Bahnschrift", "Avenir Next Condensed", "Helvetica Neue Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #000; --flaeche: #161617; --flaeche-2: #1d1d1f; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b; --linie: #2a2a2d; --link: #2fb8e0; }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #000; --flaeche: #161617; --flaeche-2: #1d1d1f; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b; --linie: #2a2a2d; --link: #2fb8e0; }

body { font-size: 17px; letter-spacing: -.01em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; }
.kicker { font-size: .82rem; letter-spacing: .02em; text-transform: none; font-weight: 600; }
.kicker::before, .kopf.mitte .kicker::after { display: none; }

/* ---------- Knöpfe im Apple-Stil ---------- */
.knopf { --k-bg: var(--link); --k-fg: #fff; padding: 12px 22px; font-size: .95rem; font-weight: 500; box-shadow: none; }
.knopf::after { display: none; }
.knopf:hover { transform: none; box-shadow: none; filter: brightness(1.12); color: #fff; }
.knopf.hell { --k-bg: transparent; --k-fg: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.knopf.hell:hover { color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); background: color-mix(in srgb, var(--link) 8%, transparent); filter: none; }
.knopf.orange { --k-bg: var(--orange); --k-fg: #1a0e02; }
.knopf.orange:hover { color: #1a0e02; }
.knopf.rahmen-orange { --k-bg: transparent; --k-fg: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 700; padding: 14px 26px; border-radius: 2px; }
.knopf.rahmen-orange:hover { background: var(--orange); color: #000; filter: none; }

/* ---------- Kopfzeile: schmale Glasleiste ---------- */
.kopfzeile, .kopfzeile.gescrollt { background: rgba(0, 0, 0, .72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: none; }
.kopfzeile .huelle { height: 52px; }
.kopfzeile .marke { color: #f5f5f7; font-size: 1.05rem; font-weight: 400; }
.kopfzeile .marke img { width: 24px; height: 24px; }
.navi a:not(.knopf) { color: rgba(245, 245, 247, .8); font-size: .8rem; font-weight: 400; padding: 6px 12px; }
.navi a:not(.knopf):hover, .navi a[aria-current="page"]:not(.knopf) { color: #fff; background: transparent; }
.navi .knopf { padding: 6px 14px; font-size: .78rem; }
.menue-knopf { color: rgba(245, 245, 247, .8); width: 34px; height: 34px; }
.menue-knopf:hover { background: rgba(255, 255, 255, .1); color: #fff; }
html { scroll-padding-top: 60px; }
@media (max-width: 960px) {
  .navi { inset: 52px 0 auto; background: rgba(0, 0, 0, .94); border-bottom: 0; padding: 12px 22px 28px; }
  .navi a:not(.knopf) { font-size: 1.6rem; font-weight: 600; color: #f5f5f7; padding: 10px 0; letter-spacing: -.02em; }
}

/* ==========================================================
   1917: Vorhang (Ladebildschirm)
   ========================================================== */
.vorhang {
  position: fixed; inset: 0; z-index: 100; background: #000; color: #f5f5f7;
  display: grid; place-items: center; transition: transform 1s cubic-bezier(.77, 0, .18, 1) .15s;
}
.vorhang.weg { transform: translateY(-100%); }
.vorhang .lade { text-align: center; font-family: var(--schrift-schmal); letter-spacing: .4em; text-transform: uppercase; font-size: .85rem; }
.vorhang .lade b { display: block; font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -.02em; font-weight: 700; color: var(--orange); margin-top: 10px; font-variant-numeric: tabular-nums; }
.vorhang .lade i { display: block; width: 180px; height: 1px; margin: 22px auto 0; background: #333; position: relative; overflow: hidden; }
.vorhang .lade i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ==========================================================
   1917: Kino-Titel
   ========================================================== */
.kino { position: relative; min-height: 100svh; background: #000; color: #f5f5f7; overflow: hidden; display: grid; align-items: center; padding: 72px 0 40px; }
.kino .huelle { width: min(100% - 40px, 1400px); display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.riesen-titel {
  font-family: var(--schrift-schmal); font-stretch: condensed; font-weight: 700; text-transform: uppercase;
  font-size: clamp(5.5rem, 15.5vw, 15rem); line-height: .82; letter-spacing: -.02em; margin: 0;
  background:
    radial-gradient(60% 50% at var(--x1, 30%) 70%, rgba(247, 148, 29, .95), transparent 60%),
    radial-gradient(50% 45% at var(--x2, 70%) 30%, rgba(0, 159, 199, .9), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, #c2410c, transparent 70%),
    linear-gradient(180deg, #1b2735 0%, #3a4a5e 40%, #8a5a2b 75%, #f7941d 100%);
  background-size: 140% 140%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: himmel 14s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 40px rgba(247, 148, 29, .12));
}
.riesen-titel span { display: block; }
@keyframes himmel { 0% { background-position: 0% 0%; --x1: 25%; } 100% { background-position: 100% 100%; } }
.kino .koerner { position: absolute; inset: -50%; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: koerner 1s steps(6) infinite; }
@keyframes koerner { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); } }
.kino .aussage { font-family: var(--schrift-schmal); text-transform: uppercase; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: .01em; margin: 0 0 18px; }
.kino .unterzeile { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 34px; }
.kino-bereiche .aussage { margin-bottom: 10px; }
.kino-bereiche .unterzeile { margin: 0; }
.kino-bereiche .unterzeile.blau { color: var(--petrol); }
.kino-bereiche hr { border: 0; height: 1px; background: rgba(255, 255, 255, .18); margin: 12px 0; max-width: 360px; }

/* Die zwei Bereiche neben dem Logo: klickbar, mit Akzentleiste, Lichtschein und Pfeil */
.kino-bereich { position: relative; display: block; width: fit-content; max-width: 100%; margin-left: -18px; padding: 16px 28px 16px 18px; border-radius: 16px; color: inherit; text-decoration: none; isolation: isolate; translate: 0; transition: translate .5s var(--ease); }
.kino-bereich::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px;
  background: linear-gradient(transparent, var(--c), transparent) 0 0 / 100% 300%; opacity: .55; scale: 1 .45;
  animation: bereich-puls 3.2s ease-in-out infinite; animation-delay: calc(var(--d) + 1.6s);
  transition: scale .5s var(--ease), opacity .3s; }
.kino-bereich + hr + .kino-bereich::before { animation-delay: calc(var(--d) + 3.2s); }
.kino-bereich::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.kino-bereich .aussage { display: block; width: fit-content; padding-bottom: 4px;
  background: linear-gradient(var(--c), var(--c)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.kino-bereich .unterzeile { display: inline-flex; align-items: center; gap: 10px; }
.kino-bereich .unterzeile svg { width: 1.25em; height: 1.25em; opacity: .55; animation: bereich-stups 2.4s ease-in-out infinite; transition: opacity .3s, translate .4s var(--ease); }
.kino-bereich:hover, .kino-bereich:focus-visible { translate: 6px 0; }
.kino-bereich:hover::before, .kino-bereich:focus-visible::before { scale: 1 1; opacity: 1; }
.kino-bereich:hover::after, .kino-bereich:focus-visible::after { opacity: 1; }
.kino-bereich:hover .aussage, .kino-bereich:focus-visible .aussage { background-size: 100% 2px; }
.kino-bereich:hover .unterzeile svg, .kino-bereich:focus-visible .unterzeile svg { opacity: 1; translate: 6px 0; animation: none; }
.kino-bereich:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
@keyframes bereich-puls { 0%, 100% { background-position: 0 100%; } 50% { background-position: 0 0; } }
@keyframes bereich-stups { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 5px 0; } 90% { translate: 0 0; } }

/* Hover auf einen Bereich hebt die passenden Teile im Logo hervor */
.kino-emblem[data-bereich] path { filter: brightness(.4) saturate(.5); }
.kino-emblem[data-bereich="software"] path:not(:nth-child(3)),
.kino-emblem[data-bereich="druck"] path:nth-child(3) { filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 255, 255, .18)); }

@media (prefers-reduced-motion: reduce) {
  .kino-bereich::before, .kino-bereich .unterzeile svg { animation: none; }
  .kino-bereich, .kino-bereich::before, .kino-bereich .unterzeile svg { transition: none; }
}
.kino .ecken { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #8a8a8f; }
.kino .ecken span { display: inline-flex; align-items: center; gap: 10px; }
.kino .ecken span::before { content: ""; width: 1px; height: 28px; background: linear-gradient(#8a8a8f, transparent); animation: tropfen 2s ease-in-out infinite; }
.kino .ecken span:last-child::before { display: none; }
@keyframes tropfen { 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; } }
.kino .einblenden { opacity: 0; transform: translateY(18px); animation: einblenden 1.1s var(--ease) forwards; animation-delay: var(--d, .2s); }
.mit-vorhang .kino .einblenden { animation-delay: calc(var(--d, .2s) + 1.3s); }
@media (max-width: 900px) {
  .kino .huelle { grid-template-columns: 1fr; gap: 28px; }
  .riesen-titel { font-size: clamp(4.6rem, 25vw, 9rem); }
}

/* ==========================================================
   Film: fünf Szenen beim Scrollen (Startseite)
   Text links, rechts eine Bühne, die sich je Szene verwandelt. main.js setzt data-szene (0–4)
   und rastet auf jede Szene ein. Alle Grafikmaße in cqi, damit die Bühne frei skaliert.
   ========================================================== */
.film { --n: 5; position: relative; height: calc(var(--n) * 100svh); background: #05080c; color: #f5f5f7; }
.film-buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: center;
  --glow: rgba(0, 159, 199, .16); transition: --glow .8s; }
.film[data-szene="3"] .film-buehne, .film[data-szene="4"] .film-buehne { --glow: rgba(247, 148, 29, .15); }
.film-buehne::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 70% 50%, var(--glow), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 90% 80% at 60% 50%, #000 40%, transparent 100%); }
@property --glow { syntax: "<color>"; inherits: true; initial-value: rgba(0, 159, 199, .16); }

.film-raster { position: relative; width: min(100% - clamp(48px, 10vw, 160px), 1240px); margin: 0 auto; display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

/* Texte: alle Szenen liegen übereinander, nur die aktive ist sichtbar */
.film-texte { display: grid; }
.szene { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; translate: 0 28px;
  transition: opacity .5s ease, translate .7s var(--ease), visibility 0s linear .5s; }
.szene.vorbei { translate: 0 -28px; }
.szene.aktiv { opacity: 1; visibility: visible; translate: none; transition: opacity .6s ease .25s, translate .8s var(--ease) .2s, visibility 0s; }
.film-kicker { margin: 0 0 18px; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.film-kicker.blau { color: var(--petrol); }
.szene h2 { margin: 0 0 22px; font-family: var(--schrift-schmal); font-weight: 700; text-transform: uppercase; font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: .95; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.szene p:not(.film-kicker) { margin: 0; max-width: 470px; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; color: #b4bcc8; }
.film-vorteile { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.film-vorteile li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #e8edf3; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.film-vorteile li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c77b; box-shadow: 0 0 10px #34c77b; }
.film-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; color: var(--orange); }
.film-link.blau { color: var(--petrol); }
.film-link svg { width: 18px; height: 18px; transition: translate .3s var(--ease); }
.film-link:hover svg { translate: 4px 0; }

/* Bühne */
.film-bild { position: relative; width: min(100%, 620px, 76svh); aspect-ratio: 1; justify-self: center; container-type: inline-size; }
.gruppe { position: absolute; inset: 0; transition: opacity .7s ease, scale .9s var(--ease), filter .7s; }
.g-ki, .g-druck { opacity: 0; scale: .92; pointer-events: none; }
.film[data-szene="2"] .g-netz { opacity: 0; scale: .8; }
.film[data-szene="3"] .g-netz, .film[data-szene="4"] .g-netz { opacity: 0; scale: .7; }
.film[data-szene="2"] .g-ki, .film[data-szene="3"] .g-druck, .film[data-szene="4"] .g-druck { opacity: 1; scale: 1; }

/* --- Szene 0–1: Systeme --- */
.netz-linien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.netz-linien .manuell path { stroke: #ff7a6e; stroke-width: .35; stroke-dasharray: 1.4 1.6; opacity: .75; transition: opacity .5s; }
.netz-linien .leitungen path { stroke: rgba(0, 159, 199, .35); stroke-width: .4; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset 1s var(--ease) .35s; }
.netz-linien .fluss path { stroke: #4fd2f0; stroke-width: .7; stroke-linecap: round; stroke-dasharray: .1 4; opacity: 0; transition: opacity .5s; }
.film:not([data-szene="0"]) .netz-linien .manuell path { opacity: 0; }
.film:not([data-szene="0"]) .netz-linien .leitungen path { stroke-dashoffset: 0; }
.film[data-szene="1"] .netz-linien .fluss path { opacity: 1; transition-delay: 1s; animation: film-fluss 1.4s linear infinite; }
@keyframes film-fluss { to { stroke-dashoffset: -8.2; } }

.manuell-label { position: absolute; translate: -50% -50%; padding: .6cqi 1.6cqi; border-radius: 999px; font-size: clamp(9px, 2cqi, 12px); font-weight: 700; letter-spacing: .04em; color: #ff8d82; background: #1d0f0e; border: 1px solid rgba(255, 122, 110, .45); white-space: nowrap; transition: opacity .4s, scale .4s; }
.film:not([data-szene="0"]) .manuell-label { opacity: 0; scale: .8; }

.nabe { position: absolute; left: 50%; top: 50%; width: 25cqi; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 1cqi; text-align: center;
  background: radial-gradient(circle at 50% 35%, #12313d, #0b141b 70%); border: 1px solid rgba(0, 159, 199, .55); box-shadow: 0 0 0 1.4cqi rgba(0, 159, 199, .07), 0 0 60px rgba(0, 159, 199, .3);
  opacity: 0; scale: .5; transition: opacity .6s ease .2s, scale .9s var(--ease) .2s; }
.nabe img { width: 9cqi; animation: drehen 40s linear infinite; }
.nabe b { font-size: clamp(9px, 2.4cqi, 14px); line-height: 1.15; color: #fff; }
.film:not([data-szene="0"]) .nabe { opacity: 1; scale: 1; }
.film[data-szene="1"] .nabe::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #4fd2f0; animation: film-puls 2.4s ease-out infinite; }
@keyframes film-puls { from { opacity: .8; scale: 1; } to { opacity: 0; scale: 1.5; } }

.sys { --x: var(--sx); --y: var(--sy); --r: var(--sr); position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r);
  width: max-content; min-width: 25cqi; box-sizing: border-box; padding: 1.8cqi 2.2cqi 1.8cqi 1.8cqi; border-radius: 2.2cqi; display: grid; grid-template-columns: max-content 1fr; align-items: center; column-gap: 1.6cqi; row-gap: .4cqi;
  background: linear-gradient(180deg, #161e28, #10161e); border: 1px solid #263240; box-shadow: 0 2cqi 5cqi -2cqi rgba(0, 0, 0, .7);
  transition: left 1s var(--ease), top 1s var(--ease), rotate 1s var(--ease), border-color .5s; }
.film:not([data-szene="0"]) .sys { --x: var(--hx); --y: var(--hy); --r: 0deg; border-color: rgba(0, 159, 199, .45); }
.sys:nth-of-type(2) { transition-delay: .05s; } .sys:nth-of-type(3) { transition-delay: .1s; } .sys:nth-of-type(4) { transition-delay: .15s; }
.sys:nth-of-type(5) { transition-delay: .2s; } .sys:nth-of-type(6) { transition-delay: .25s; }
.sys svg { grid-row: span 2; width: 5.4cqi; height: 5.4cqi; padding: 1.1cqi; border-radius: 1.4cqi; box-sizing: content-box; background: rgba(0, 159, 199, .12); stroke: #4fd2f0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sys b { font-size: clamp(9px, 2.5cqi, 15px); font-weight: 700; color: #fff; white-space: nowrap; }
.zustand { display: flex; align-items: center; gap: .9cqi; font-size: clamp(8px, 1.9cqi, 12px); color: #ff8d82; }
.zustand i { width: 1.3cqi; height: 1.3cqi; border-radius: 50%; background: currentColor; }
.zustand::after { content: "isoliert"; }
.film:not([data-szene="0"]) .zustand { color: #34c77b; }
.film:not([data-szene="0"]) .zustand::after { content: "synchron"; }

/* --- Szene 2: KI --- */
.beleg { position: absolute; left: 2%; top: 17%; width: 50%; padding: 3.4cqi 3.4cqi 4cqi; border-radius: 2cqi; background: #f4f6f9; color: #16202b; rotate: -3deg; overflow: hidden;
  box-shadow: 0 4cqi 10cqi -3cqi rgba(0, 0, 0, .8); display: grid; gap: 2.2cqi; }
.beleg-kopf { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1.6cqi; border-bottom: 2px solid #16202b; }
.beleg-kopf b { font-size: clamp(11px, 3.4cqi, 20px); letter-spacing: .02em; }
.beleg-kopf span { font-size: clamp(8px, 1.8cqi, 11px); color: #607893; }
.beleg-feld { display: grid; gap: .3cqi; padding: .8cqi 1.2cqi; margin: 0 -1.2cqi; border-radius: 1cqi; transition: background .3s; }
.beleg-feld small { font-size: clamp(7px, 1.6cqi, 10px); text-transform: uppercase; letter-spacing: .08em; color: #8693a3; }
.beleg-feld span { font-size: clamp(9px, 2.3cqi, 14px); font-weight: 600; }
.beleg-feld.summe span { font-size: clamp(11px, 3cqi, 18px); font-weight: 800; }
.beleg-posten { display: grid; gap: 1.2cqi; }
.beleg-posten i { height: 1.2cqi; border-radius: 1cqi; background: #dfe4ea; }
.beleg-posten i:nth-child(1) { width: 92%; } .beleg-posten i:nth-child(2) { width: 74%; } .beleg-posten i:nth-child(3) { width: 84%; } .beleg-posten i:nth-child(4) { width: 58%; }
.scanner { position: absolute; left: 0; right: 0; top: 0; height: 9cqi; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 159, 199, .22) 80%, #009fc7 100%); border-bottom: 2px solid #009fc7; }
.ki-funke { position: absolute; left: 55%; top: 27%; width: 11cqi; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; z-index: 2;
  background: linear-gradient(135deg, #009fc7, #4f7fb0 55%, #f7941d); box-shadow: 0 0 40px rgba(0, 159, 199, .55); }
.ki-funke svg { width: 55%; fill: #fff; }
.ki-ergebnis { position: absolute; right: 0; top: 39%; width: 48%; padding: 3cqi; border-radius: 2.4cqi; background: #0f161e; border: 1px solid rgba(0, 159, 199, .45);
  box-shadow: 0 4cqi 10cqi -3cqi rgba(0, 0, 0, .8), 0 0 50px rgba(0, 159, 199, .12); }
.ki-titel { display: flex; align-items: center; gap: 1.2cqi; font-size: clamp(8px, 1.9cqi, 12px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4fd2f0; margin-bottom: 2cqi; }
.ki-titel i { width: 1.4cqi; height: 1.4cqi; border-radius: 50%; background: #4fd2f0; box-shadow: 0 0 10px #4fd2f0; }
.ki-ergebnis ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2cqi; }
.ki-ergebnis li { display: grid; grid-template-columns: minmax(10cqi, max-content) 1fr; align-items: baseline; gap: 1cqi; padding: 1.2cqi 1.6cqi; border-radius: 1.2cqi; background: rgba(255, 255, 255, .04); font-size: clamp(9px, 2.2cqi, 13px); font-weight: 600; color: #fff; }
.ki-ergebnis li small { font-size: clamp(7px, 1.6cqi, 10px); text-transform: uppercase; letter-spacing: .08em; color: #8a96a6; font-weight: 600; }
.ki-fertig { display: flex; align-items: center; gap: 1.2cqi; margin-top: 2.4cqi; padding: 1.6cqi 2cqi; border-radius: 1.2cqi; background: rgba(52, 199, 123, .12); border: 1px solid rgba(52, 199, 123, .4); color: #5fe09b; font-size: clamp(9px, 2.1cqi, 13px); font-weight: 700; }
.ki-fertig svg { width: 3cqi; height: 3cqi; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Ablauf (nur in Szene 2 animiert, 6 s Schleife): Scanner läuft über den Beleg, Felder leuchten auf, Ergebnis füllt sich */
.film[data-szene="2"] .scanner { animation: film-scan 6s ease-in-out infinite; }
.film[data-szene="2"] .beleg-feld.f1 { animation: film-feld 6s infinite; animation-delay: .35s; }
.film[data-szene="2"] .beleg-feld.f2 { animation: film-feld 6s infinite; animation-delay: .75s; }
.film[data-szene="2"] .beleg-feld.f3 { animation: film-feld 6s infinite; animation-delay: 1.7s; }
.film[data-szene="2"] .ki-ergebnis li, .film[data-szene="2"] .ki-fertig { animation: film-zeile 6s var(--ease) infinite both; }
.film[data-szene="2"] .ki-ergebnis .e1 { animation-delay: .7s; } .film[data-szene="2"] .ki-ergebnis .e2 { animation-delay: 1.05s; }
.film[data-szene="2"] .ki-ergebnis .e3 { animation-delay: 1.95s; } .film[data-szene="2"] .ki-ergebnis .e4 { animation-delay: 2.4s; }
.film[data-szene="2"] .ki-fertig { animation-delay: 3s; }
.film[data-szene="2"] .ki-funke { animation: film-funke 6s ease-in-out infinite; }
@keyframes film-scan { 0% { opacity: 0; translate: 0 -9cqi; } 6% { opacity: 1; } 38% { opacity: 1; translate: 0 calc(52cqi); } 46%, 100% { opacity: 0; translate: 0 calc(52cqi); } }
@keyframes film-feld { 0% { background: transparent; } 4%, 30% { background: rgba(0, 159, 199, .16); } 40%, 100% { background: transparent; } }
@keyframes film-zeile { 0% { opacity: 0; translate: 3cqi 0; } 7%, 78% { opacity: 1; translate: none; } 88%, 100% { opacity: 0; translate: none; } }
@keyframes film-funke { 0%, 100% { rotate: 0deg; scale: 1; } 20% { rotate: 90deg; scale: 1.12; } 40% { rotate: 180deg; scale: 1; } }

/* --- Szene 3–4: 3D-Druck --- */
.teil { position: absolute; left: 50%; top: 44%; width: 62cqi; aspect-ratio: 1; translate: -50% -50%; }
.teil svg, .teil-druck { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rad-alt { fill: url(#film-metall); stroke: #8a95a3; stroke-width: .35; transition: opacity .6s; }
.teil-alt { filter: drop-shadow(0 3cqi 4cqi rgba(0, 0, 0, .6)); }
.zahn { fill: #8a95a3; stroke: #8a95a3; stroke-width: .35; transform-box: fill-box; transform-origin: center; transition: translate 1s var(--ease) .3s, rotate 1s var(--ease) .3s, opacity .5s; }
.riss { fill: none; stroke: #ff7a6e; stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .6s ease .9s, opacity .4s; }
.film[data-szene="3"] .zahn { translate: 15px -7px; rotate: 55deg; }
.film[data-szene="3"] .riss { stroke-dashoffset: 0; }
.film[data-szene="4"] .teil-alt { opacity: 0; transition: opacity .5s; }
.teil-umriss { opacity: 0; transition: opacity .6s; }
.teil-umriss path { fill: rgba(0, 159, 199, .06); stroke: #4fd2f0; stroke-width: .4; stroke-dasharray: 1.2 1; }
.film[data-szene="4"] .teil-umriss { opacity: 1; }
.teil-druck { clip-path: inset(100% 0 0 0); filter: drop-shadow(0 0 3cqi rgba(247, 148, 29, .35)); }
.laser { position: absolute; left: -6%; right: -6%; top: 0; height: 2px; opacity: 0; background: #4fd2f0; box-shadow: 0 0 12px #4fd2f0, 0 0 3cqi 1cqi rgba(79, 210, 240, .35); }
.teil-schild { position: absolute; right: -16%; top: 16%; padding: 1cqi 2cqi; border-radius: 1.2cqi; font-size: clamp(8px, 2cqi, 12px); font-weight: 700; white-space: nowrap; color: #ff8d82; background: #1d0f0e; border: 1px solid rgba(255, 122, 110, .45);
  opacity: 0; translate: 0 2cqi; transition: opacity .5s ease 1.1s, translate .6s var(--ease) 1.1s; }
.film[data-szene="3"] .teil-schild { opacity: 1; translate: none; }

.status { position: absolute; left: 50%; top: 2%; translate: -50% 0; display: inline-flex; align-items: center; gap: 1.2cqi; padding: 1.2cqi 2.4cqi; border-radius: 999px; font-size: clamp(9px, 2.1cqi, 13px); font-weight: 700; opacity: 0; transition: opacity .4s; }
.status i { width: 1.6cqi; height: 1.6cqi; border-radius: 50%; background: currentColor; }
.status.stoerung { color: #ff8d82; background: #1d0f0e; border: 1px solid rgba(255, 122, 110, .45); }
.status.stoerung i { animation: film-blinken 1s steps(2, jump-none) infinite; }
.status.bereit { color: #5fe09b; background: #0c1a12; border: 1px solid rgba(52, 199, 123, .45); }
.film[data-szene="3"] .status.stoerung { opacity: 1; transition-delay: .8s; }
@keyframes film-blinken { to { opacity: .2; } }

.prozess { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4cqi; opacity: 0; transition: opacity .5s; }
.prozess li { display: flex; align-items: center; gap: 1cqi; padding: 1.2cqi 2.4cqi; border-radius: 999px; font-size: clamp(9px, 2.2cqi, 13px); font-weight: 700; color: #6c7684; background: #10161e; border: 1px solid #263240; }
.prozess li::before { content: ""; width: 1.6cqi; height: 1.6cqi; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.film[data-szene="4"] .prozess { opacity: 1; }

/* Ablauf in Szene 4 (7 s Schleife): Scan → CAD-Umriss → Druck Schicht für Schicht → Einbau, Maschine läuft */
.film[data-szene="4"] .laser { animation: film-laser 7s ease-in-out infinite; }
.film[data-szene="4"] .teil-druck { animation: film-drucken 7s linear infinite; }
.film[data-szene="4"] .status.bereit { animation: film-bereit 7s infinite; }
.film[data-szene="4"] .prozess .p1 { animation: film-p1 7s infinite; }
.film[data-szene="4"] .prozess .p2 { animation: film-p2 7s infinite; }
.film[data-szene="4"] .prozess .p3 { animation: film-p3 7s infinite; }
.film[data-szene="4"] .prozess .p4 { animation: film-p4 7s infinite; }
@keyframes film-laser { 0% { opacity: 0; top: 0; } 3% { opacity: 1; top: 3%; } 24% { opacity: 1; top: 100%; } 27%, 100% { opacity: 0; top: 100%; } }
@keyframes film-drucken { 0%, 36% { clip-path: inset(100% 0 0 0); opacity: 1; } 80%, 94% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes film-bereit { 0%, 82% { opacity: 0; } 86%, 96% { opacity: 1; } 100% { opacity: 0; } }
/* Prozess-Schritte: jeder Schritt nennt alle drei Werte, sonst blendet der Browser über die ganze Schleife */
@keyframes film-p1 { 0%, 26% { color: #05080c; background: #4fd2f0; border-color: #4fd2f0; } 27%, 96% { color: #4fd2f0; background: #10161e; border-color: rgba(79, 210, 240, .5); } 100% { color: #6c7684; background: #10161e; border-color: #263240; } }
@keyframes film-p2 { 0%, 26% { color: #6c7684; background: #10161e; border-color: #263240; } 27%, 36% { color: #05080c; background: #4fd2f0; border-color: #4fd2f0; } 37%, 96% { color: #4fd2f0; background: #10161e; border-color: rgba(79, 210, 240, .5); } 100% { color: #6c7684; background: #10161e; border-color: #263240; } }
@keyframes film-p3 { 0%, 36% { color: #6c7684; background: #10161e; border-color: #263240; } 37%, 80% { color: #05080c; background: #f7941d; border-color: #f7941d; } 81%, 96% { color: #f7941d; background: #10161e; border-color: rgba(247, 148, 29, .5); } 100% { color: #6c7684; background: #10161e; border-color: #263240; } }
@keyframes film-p4 { 0%, 81% { color: #6c7684; background: #10161e; border-color: #263240; } 82%, 96% { color: #05080c; background: #34c77b; border-color: #34c77b; } 100% { color: #6c7684; background: #10161e; border-color: #263240; } }

/* HUD */
.film-hud { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #6f7884; pointer-events: none; }
.film-zaehler { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.film-zaehler #film-nr { color: #fff; font-weight: 700; }
.film-hud .hinweis { position: absolute; left: 50%; translate: -50% 0; bottom: 0; color: var(--orange); font-weight: 700; text-align: center; transition: opacity .5s; }
.film-hud .hinweis::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: linear-gradient(var(--orange), transparent); animation: film-hinweis 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes film-hinweis { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }
.karte-hud { display: grid; gap: 6px; text-align: right; }
.karte-hud span { display: flex; align-items: center; justify-content: flex-end; gap: 10px; transition: color .3s; }
.karte-hud span::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .4s; }
.karte-hud span.aktiv { color: #fff; }
.karte-hud span.aktiv::after { width: 40px; background: var(--orange); }
.fortschritt-hud { width: 120px; height: 1px; background: #2a323c; position: relative; }
.fortschritt-hud::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }

/* Handy / schmale Fenster: Bühne oben, Text darunter */
@media (max-width: 860px) {
  .film-buehne { align-items: start; }
  .film-raster { width: calc(100% - 32px); grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; height: 100svh; padding: 22px 0 64px; box-sizing: border-box; align-items: start; }
  .film-bild { grid-row: 1; width: min(88vw, 48svh); }
  .film-texte { grid-row: 2; align-self: start; }
  .szene { align-self: start; }
  .film-kicker { margin-bottom: 10px; font-size: .7rem; }
  .szene h2 { font-size: clamp(1.8rem, 8.4vw, 2.6rem); margin-bottom: 12px; }
  .szene p:not(.film-kicker) { font-size: .95rem; line-height: 1.5; }
  .film-vorteile { margin-top: 14px; gap: 6px; } .film-vorteile li { padding: 6px 11px; font-size: .75rem; }
  .film-link { margin-top: 14px; }
  .karte-hud { display: none; }
  .film-hud { left: 16px; right: 16px; bottom: 16px; }
}
@media (max-width: 860px) and (max-height: 700px) { .szene p:not(.film-kicker) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }

/* ==========================================================
   Apple: Kachel-Raster
   ========================================================== */
.kacheln { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--bg); }
.kachel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 0; min-height: 640px;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 48px) 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; background: var(--flaeche); color: var(--text);
}
.kachel.breit { grid-column: 1 / -1; min-height: 720px; }
.kachel.dunkel { background: var(--nacht-2); color: var(--nacht-text); }
.kachel.schwarz { background: #000; color: var(--nacht-text); }
.kachel.warm { background: linear-gradient(180deg, #1a0f05, #2b1606 55%, #3b1d05); color: #fff4e6; }
.kachel.dunkel h2, .kachel.schwarz h2, .kachel.warm h2, .kachel.dunkel h3, .kachel.schwarz h3, .kachel.warm h3 { color: inherit; }
.kachel .marke-zeile { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 8px; }
.kachel .marke-zeile i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--petrol)); }
.kachel h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-bottom: 8px; }
.kachel:not(.breit) h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.kachel > p, .kachel .unter { font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.35; max-width: 640px; margin: 0 auto 20px; color: inherit; opacity: .86; letter-spacing: -.015em; }
.kachel .ki-haltung { font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.55; max-width: 600px; margin: 0 auto 26px; opacity: .72; letter-spacing: 0; }
.kachel .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: clamp(32px, 4vw, 48px); }
.kachel.dunkel .knopf.hell, .kachel.schwarz .knopf.hell { --k-bg: transparent; --k-fg: #2fb8e0; box-shadow: inset 0 0 0 1.5px #2fb8e0; }
.kachel.dunkel .knopf, .kachel.schwarz .knopf { --k-bg: #0a8fb8; }
.kachel.warm .knopf.hell { --k-fg: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); }
.kachel .bild { width: 100%; flex: 1; display: grid; place-items: end center; position: relative; }
.kachel .bild.mitte { place-items: center; padding-bottom: 48px; }
.kachel .text-links { text-align: left; }
.bereichs-trenner { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 18px; padding: clamp(56px, 8vw, 96px) clamp(8px, 3vw, 36px) clamp(20px, 3vw, 32px); }
.bereichs-trenner b { font-family: var(--schrift-schmal); font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: .8; font-weight: 700; color: var(--a, var(--petrol)); }
.bereichs-trenner span { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; }
.bereichs-trenner small { margin-left: auto; color: var(--text-3); font-size: .9rem; max-width: 360px; text-align: right; }
@media (max-width: 860px) {
  .kacheln { grid-template-columns: 1fr; }
  .kachel, .kachel.breit { min-height: 560px; }
  .bereichs-trenner small { display: none; }
}

/* Kachel-Inhalte */
.kachel .netz { width: min(100%, 520px); margin-bottom: 40px; }
.kachel.dunkel .netz .knoten, .kachel.schwarz .netz .knoten { background: #1d1d1f; border-color: #333; color: #e5e5ea; box-shadow: none; }
.kachel.dunkel .netz .mitte, .kachel.schwarz .netz .mitte { background: #1d1d1f; border-color: #333; }
.kachel.dunkel .netz .mitte b, .kachel.schwarz .netz .mitte b { color: #fff; }
.kachel.dunkel .netz .leitung, .kachel.schwarz .netz .leitung { stroke: #333; }
.kachel .ki-demo { width: min(100%, 460px); margin-bottom: 56px; text-align: left; }
.kachel .fenster { width: min(100%, 620px); margin-bottom: -40px; transform: perspective(1400px) rotateX(10deg); }
.kachel .fenster:hover { transform: perspective(1400px) rotateX(0); }
.kachel .vase-buehne { width: 100%; height: 400px; }
.mini-fluss { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }
.mini-fluss span { padding: 14px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--linie); font-weight: 600; font-size: .95rem; display: grid; gap: 2px; text-align: left; min-width: 150px; }
.mini-fluss span small { font-size: .72rem; font-weight: 500; color: var(--text-3); }
.mini-fluss span.aus { border-color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); }
.mini-fluss svg { width: 20px; color: var(--text-3); }
.kachel .liste-punkte { list-style: none; padding: 0; margin: 0 0 56px; display: grid; gap: 10px; width: min(100%, 440px); text-align: left; }
.kachel .liste-punkte li { padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; }
.kachel:not(.dunkel):not(.schwarz):not(.warm) .liste-punkte li { background: var(--bg); border-color: var(--linie); }
.kachel .liste-punkte b { display: block; }
.kachel .liste-punkte span { opacity: .75; font-size: .9rem; }
.kachel .zahl-gross { font-family: var(--schrift-schmal); font-size: clamp(5rem, 11vw, 9rem); font-weight: 700; line-height: .85; color: var(--orange); margin: 10px 0 6px; }
.kachel .chips-reihe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; margin: 18px auto 56px; }
.kachel .chips-reihe span { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, .18); }
.kachel:not(.dunkel):not(.schwarz):not(.warm) .chips-reihe span { border-color: var(--linie); background: var(--bg); }

/* Ersatzteil-Vergleich in Kachel */
.kachel .vergleich { width: min(100%, 460px); margin-bottom: 56px; }
.kachel .vergleich .teil.alt { border-color: var(--linie); color: var(--text-3); }

/* ==========================================================
   Loume: Vertrauensleiste
   ========================================================== */
.vertrauen { padding: clamp(60px, 8vw, 96px) 0; }
.vertrauen .reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 28px; border-radius: 22px; background: var(--flaeche); border: 1px solid var(--linie); }
.vertrauen .punkt { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 10px; font-size: .9rem; color: var(--text-2); }
.vertrauen .punkt svg { width: 26px; height: 26px; color: var(--text); }
@media (max-width: 760px) { .vertrauen .reihe { grid-template-columns: 1fr; } }

/* Praxis im neuen Stil */
.praxis-abschnitt { padding: clamp(80px, 10vw, 130px) 0; }
.praxis-abschnitt .fluss-spalte { border-radius: 22px; }

/* ==========================================================
   Loume: dunkler Kontaktblock + Riesen-Schriftzug im Footer
   ========================================================== */
.kontakt-dunkel { background: #000; color: #f5f5f7; padding: clamp(80px, 10vw, 130px) 0; }
.kontakt-dunkel h2 { color: #fff; }
.kontakt-dunkel p { color: #a1a1a6; }
.kontakt-dunkel .kicker { color: var(--orange); }
.kontakt-dunkel .kontakt-weg { background: #111214; border-color: #2a2a2d; color: #f5f5f7; }
.kontakt-dunkel .kontakt-weg small { color: #86868b; }
.kontakt-dunkel .formular { background: #111214; border-color: #2a2a2d; box-shadow: none; }
.kontakt-dunkel .feld label { color: #a1a1a6; }
.kontakt-dunkel .feld input, .kontakt-dunkel .feld textarea, .kontakt-dunkel .feld select { background: #000; border-color: #2a2a2d; color: #f5f5f7; }
.kontakt-dunkel .chips span { border-color: #2a2a2d; color: #c7c7cc; }
.kontakt-dunkel .chips input:checked + span { background: #f5f5f7; color: #000; border-color: #f5f5f7; }
.kontakt-dunkel .formular .hinweis { color: #86868b; }

.fusszeile { background: #000; color: #a1a1a6; border-top: 1px solid #1d1d1f; }
.fusszeile .marke { color: #f5f5f7; }
.fusszeile nav a { color: #a1a1a6; }
.fusszeile nav a:hover { color: #fff; }
.fusszeile .unten { border-color: #1d1d1f; color: #6e6e73; }

/* Unterseiten an die neue Linie anpassen: Kino-Kopf */
.seitenkopf { padding-top: 120px; background: #000; color: #f5f5f7; }
.seitenkopf .kugeln, .seitenkopf .raster { display: none; }
.seitenkopf h1 { font-family: var(--schrift-schmal); font-stretch: condensed; text-transform: uppercase; font-weight: 700; font-size: clamp(3.6rem, 9vw, 8rem); line-height: .88; letter-spacing: -.01em; color: #fff; }
.seitenkopf h1 .verlauf-text { font-weight: 700 !important; }
.seitenkopf h1 .marken-schreibweise { text-transform: none; }
.seitenkopf .lead { color: #a1a1a6; }
.seitenkopf .kicker { color: var(--orange); letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; font-weight: 700; }
.seitenkopf .fakten span { background: transparent; border-color: #2a2a2d; color: #c7c7cc; }
.seitenkopf .knopf.hell { --k-fg: #2fb8e0; box-shadow: inset 0 0 0 1.5px #2fb8e0; }
.seitenkopf .emblem-buehne .ring { border-color: #2a2a2d; }
.seitenkopf .vase-buehne .platte { background: linear-gradient(#2a2a2d, #111); }
.bms, .ersatz, .produkt-karte, .schwerpunkt.software { background: #000; }
.karte, .lizenz, .option, .material, .schritt, .faq details, .fluss-spalte { border-radius: 22px; }
.karte:hover, .material:hover, .option:hover { transform: translateY(-4px); }

/* ---------- Weiche: zwei gleichwertige Bereiche (Startseite) ---------- */
.weiche { display: flex; gap: 12px; padding: 12px; background: var(--bg); }
.weiche-seite {
  flex: 1 1 0; min-width: 0; min-height: min(86vh, 820px); position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
  padding: clamp(28px, 4vw, 56px); border-radius: 28px; color: #f5f5f7; text-decoration: none;
  transition: flex-grow .7s var(--ease), opacity 1s var(--ease) var(--v, 0s), translate 1s var(--ease) var(--v, 0s);
}
.weiche-seite::before {                                   /* Lichtschein in Bereichsfarbe */
  content: ""; position: absolute; inset: -20% -20% auto auto; width: 80%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--a) 45%, transparent), transparent 65%);
  opacity: .55; transition: opacity .6s, transform .9s var(--ease);
}
.weiche-seite:hover::before, .weiche-seite:focus-visible::before { opacity: 1; transform: scale(1.15); }
.ws-software { --a: var(--petrol); background: linear-gradient(160deg, #001f29, #000 60%); }
.ws-druck { --a: var(--orange); background: linear-gradient(160deg, #3b1d05, #1a0f05 55%, #000); }
.weiche-nr { position: absolute; top: clamp(20px, 3vw, 40px); right: clamp(24px, 3.5vw, 48px); font-family: var(--schrift-schmal); font-weight: 700; font-size: clamp(4rem, 9vw, 8rem); line-height: .8; color: var(--a); opacity: .9; }
.weiche-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.weiche-titel { font-family: var(--schrift-schmal); font-stretch: condensed; font-weight: 700; text-transform: uppercase; font-size: clamp(3.4rem, 7.5vw, 7rem); line-height: .86; letter-spacing: -.01em; color: #fff; }
.weiche-text { max-width: 460px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.45; color: #c7c7cc; }
.weiche-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.weiche-liste span { font-size: .8rem; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: #e5e5ea; }
.weiche-los {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  padding: 13px 22px; border-radius: 999px; background: var(--a); color: #000; font-weight: 600;
}
.weiche-los svg { width: 18px; transition: transform .4s var(--ease); }
.weiche-seite:hover .weiche-los svg { transform: translateX(4px); }
@media (hover: hover) and (min-width: 861px) { .weiche:hover .weiche-seite:hover { flex-grow: 1.35; } }
@media (max-width: 860px) {
  .weiche { flex-direction: column; }
  .weiche-seite { min-height: 520px; padding-top: 110px; }
}
@media (max-width: 420px) {
  .weiche-seite { flex: none; min-height: 0; padding-top: 104px; }
  .weiche-nr { font-size: 3.6rem; }
  .weiche-titel { font-size: clamp(2.8rem, 14vw, 3.4rem); }
}

/* Touch-Geräte: ausreichend große Tippflächen (mind. ca. 44 px) für Links außerhalb von Fließtext */
@media (pointer: coarse) {
  .kopfzeile .marke, .fusszeile .marke { min-height: 44px; }
  .fusszeile nav { gap: 0 24px; }
  .fusszeile nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .recht-link { min-height: 44px; }
}

/* Software-Seite: Netz im dunklen Kopf */
.sk-software .bild-netz { display: grid; }
.sk-software .netz .leitung { stroke: #2a2a2d; }
.sk-software .netz .knoten { background: #1d1d1f; border-color: #333; color: #e5e5ea; box-shadow: none; }
.sk-software .netz .mitte { background: #1d1d1f; border-color: #333; }
.sk-software .netz .mitte b { color: #fff; }
.js .weiche .weiche-seite { transition: flex-grow .7s var(--ease), opacity 1s var(--ease) var(--v, 0s), translate 1s var(--ease) var(--v, 0s); }

/* ---------- Rechtliches (Impressum & Datenschutz) ---------- */
.sk-recht { padding-bottom: clamp(48px, 7vw, 88px); }
.sk-recht .huelle { grid-template-columns: 1fr; }
.sk-recht h1 { font-size: clamp(3.4rem, 11vw, 9rem); }
.sk-recht .lead { margin-bottom: 28px; }
.recht-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid #2a2a2d; background: #0d0d0f; }
.recht-tabs a { padding: 9px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #a1a1a6; text-decoration: none; transition: color .3s, background .3s; }
.recht-tabs a:hover { color: #fff; }
.recht-tabs a[aria-current="page"] { background: #f5f5f7; color: #000; }

.recht-inhalt { padding-top: clamp(40px, 6vw, 72px); }
.recht-inhalt .huelle { max-width: 1040px; }
.recht-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.recht-karte {
  grid-column: span 1; padding: clamp(24px, 3vw, 36px); border-radius: 22px;
  background: var(--flaeche); border: 1px solid var(--linie);
}
.recht-karte.breit { grid-column: 1 / -1; }
.recht-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.recht-kopf small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol); }
.recht-symbol { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--petrol) 12%, transparent); color: var(--petrol); }
.recht-symbol svg { width: 22px; height: 22px; }
.recht-symbol img { width: 26px; height: 26px; }
.recht-symbol.hell { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.recht-symbol.hell img { width: 32px; height: 32px; }
.recht-nr { font-family: var(--schrift-schmal); font-weight: 700; font-size: 2.6rem; line-height: .8; color: var(--petrol); }
.recht-karte h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; margin: 0 0 12px; }
.recht-karte p { margin: 0; color: var(--text-2); line-height: 1.65; }
.recht-karte p + p { margin-top: 14px; }
.recht-karte a:not(.kontakt-weg) { color: var(--petrol); }
.recht-adresse b { color: var(--text); font-weight: 600; }
.recht-karte .kontakt-wege { margin-top: 4px; display: grid; gap: 10px; }
.recht-karte .kontakt-weg { color: inherit; text-decoration: none; padding: 14px 18px; }
.recht-karte .kontakt-weg small { display: block; font-size: .75rem; color: var(--text-3); }
.recht-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; text-decoration: none; }
.recht-link svg { width: 16px; transition: transform .4s var(--ease); }
.recht-link:hover svg { transform: translate(3px, -3px); }

.recht-blick {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 16px; padding: clamp(24px, 3vw, 32px); border-radius: 22px;
  background: linear-gradient(135deg, #001f29, #000 70%); color: #f5f5f7;
}
.recht-blick b { display: block; font-family: var(--schrift-schmal); text-transform: uppercase; font-size: 1.8rem; letter-spacing: .01em; }
.recht-blick span { color: #a1a1a6; }
.recht-blick ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.recht-blick li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; font-weight: 600; }
.recht-blick li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--petrol); box-shadow: 0 0 10px var(--petrol); }
.recht-inhalt > .huelle > .platzhalter { margin: 0 0 16px; }
.recht-inhalt .platzhalter { padding: 16px 20px; border-radius: 14px; border: 1px dashed var(--orange); background: color-mix(in srgb, var(--orange) 8%, transparent); color: var(--text-2); font-size: .92rem; }
.recht-karte .platzhalter { margin-top: 16px; }
@media (max-width: 760px) { .recht-raster { grid-template-columns: minmax(0, 1fr); } }

/* Datenschutz: Inhaltsverzeichnis & Fließtext in Karten */
.recht-toc { margin-bottom: 16px; padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: linear-gradient(135deg, #001f29, #000 70%); color: #f5f5f7; }
.recht-toc b { display: block; margin-bottom: 14px; font-family: var(--schrift-schmal); text-transform: uppercase; font-size: 1.6rem; }
.recht-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.recht-toc li { counter-increment: toc; }
.recht-toc a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: #e5e5ea; font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .3s, background .3s; }
.recht-toc a::before { content: "0" counter(toc); font-family: var(--schrift-schmal); font-weight: 700; color: var(--petrol); }
.recht-toc a:hover { border-color: var(--petrol); background: rgba(0, 159, 199, .1); }
.recht-karte[id] { scroll-margin-top: 80px; }
.recht-karte h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; margin: 30px 0 10px; padding-top: 22px; border-top: 1px solid var(--linie); color: var(--text); }
.recht-karte h2 + h3, .recht-karte h2 + p + h3 { border-top: 0; padding-top: 0; margin-top: 18px; }
.recht-karte h4 { font-size: .98rem; font-weight: 600; margin: 20px 0 6px; color: var(--text); }
.recht-karte ul { margin: 14px 0; padding-left: 20px; color: var(--text-2); line-height: 1.65; }
.recht-karte li + li { margin-top: 8px; }
.recht-karte ul + p { margin-top: 14px; }
.recht-versal { font-size: .86rem; letter-spacing: .01em; }
.recht-karte a { overflow-wrap: anywhere; }
.recht-quelle { margin: 24px 0 0; font-size: .85rem; color: var(--text-3); text-align: center; }
.recht-quelle a { color: inherit; }

/* ---------- Startseite: animiertes Emblem statt Riesen-Schriftzug ---------- */
.kino { --start: 0s; }
.mit-vorhang .kino { --start: 1.3s; }
.kino-marke { display: grid; justify-items: center; gap: clamp(34px, 4.5vw, 64px); }
.kino-emblem { position: relative; width: clamp(200px, 30vw, 420px); aspect-ratio: 1; }
.kino-emblem svg { position: relative; width: 100%; height: 100%; overflow: visible; animation: drehen 48s linear infinite; animation-delay: calc(var(--start) + 1.6s); }
.kino-emblem path {
  transform-origin: 455px 111px; transform-box: view-box; opacity: 0;
  animation: emblemFlug 1.3s cubic-bezier(.2, .9, .25, 1.15) forwards;
  transition: translate .6s var(--ease), rotate .6s var(--ease);
}
.kino-emblem path:nth-child(1) { --von: translate(-120px, -150px) rotate(-120deg); --weg: -5.5px -12.9px; transform-origin: 430px 52px; animation-delay: calc(var(--start) + .15s); }
.kino-emblem path:nth-child(2) { --von: translate(170px, -90px) rotate(110deg);   --weg: 13px -5.2px; transform-origin: 513px 88px; animation-delay: calc(var(--start) + .3s); }
.kino-emblem path:nth-child(3) { --von: translate(110px, 160px) rotate(-110deg);  --weg: 4.8px 13.2px; transform-origin: 476.5px 170px; animation-delay: calc(var(--start) + .45s); }
.kino-emblem path:nth-child(4) { --von: translate(-170px, 90px) rotate(120deg);   --weg: -13.1px 4.9px; transform-origin: 394px 134px; animation-delay: calc(var(--start) + .6s); }
@keyframes emblemFlug {
  0% { opacity: 0; transform: var(--von) scale(.4); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.kino-emblem { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kino-emblem.offen path { translate: var(--weg); rotate: -6deg; }   /* Drehung gegen den Wirbel: Spitzen lösen sich vom Nachbarteil */
/* Lichtschein & Ring */
.kino-schein {
  position: absolute; inset: -18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, rgba(0, 159, 199, .35), transparent 55%), radial-gradient(circle at 62% 70%, rgba(247, 148, 29, .3), transparent 55%);
  filter: blur(30px); opacity: 0;
  animation: scheinAn 1.2s ease forwards, scheinPuls 6s ease-in-out infinite alternate;
  animation-delay: calc(var(--start) + .9s), calc(var(--start) + 2.1s);
}
@keyframes scheinAn { to { opacity: 1; } }
@keyframes scheinPuls { from { opacity: 1; transform: scale(1); } to { opacity: .65; transform: scale(1.08); } }
.kino-ring {
  position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); opacity: 0;
  animation: scheinAn 1s ease forwards, drehen 90s linear infinite reverse;
  animation-delay: calc(var(--start) + 1.1s), calc(var(--start) + 1.1s);
}
.kino-ring::after {                                       /* kleiner Satellit auf dem Ring */
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 12px var(--orange);
}
.riesen-titel.klein { font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: .9; letter-spacing: .01em; text-align: center; }
@media (max-width: 900px) {
  .kino-emblem { width: min(58vw, 280px); }
  .riesen-titel.klein { font-size: clamp(2.4rem, 12vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .kino-emblem svg, .kino-ring { animation: none; opacity: 1; }
  .kino-emblem path, .kino-schein { animation: none; opacity: 1; transform: none; }
}

/* Schriftzug unter dem Emblem: Blaugrau aus dem Logo (#607893), Schimmer im Logo-Hellgrau (#b6bdcf) */
.riesen-titel.klein {
  background: linear-gradient(105deg, #607893 0%, #607893 42%, #b6bdcf 50%, #607893 58%, #607893 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(96, 120, 147, .25));
}
.kino .riesen-titel.klein { animation: einblenden 1.1s var(--ease) var(--d) forwards, schimmer 7s ease-in-out calc(var(--d) + .8s) infinite; }
.mit-vorhang .kino .riesen-titel.klein { animation-delay: calc(var(--d) + 1.3s), calc(var(--d) + 2.1s); }
@keyframes schimmer { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .kino .riesen-titel.klein { animation: none; opacity: 1; transform: none; } }

/* Open Sans Bold (lokal; aus der variablen Schrift auf Stärke 700 / Breite 100 und Latin-Zeichen reduziert,
   Original unter _quellen/fonts) */
@font-face {
  font-family: "Open Sans"; src: url("../assets/fonts/OpenSans-Bold-Latin.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
.riesen-titel.klein { font-family: "Open Sans", var(--schrift-schmal); font-weight: 700; font-stretch: 100%; letter-spacing: .02em; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1; }
@media (max-width: 900px) { .riesen-titel.klein { font-size: clamp(1.9rem, 9vw, 3.2rem); } }

/* Emblem geöffnet: Bereiche als Beschriftung auf den Einzelteilen */
.emblem-label {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; pointer-events: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px;
  font-size: clamp(.68rem, 1.05vw, .86rem); font-weight: 700; letter-spacing: .01em; color: #f5f5f7;
  background: rgba(8, 10, 14, .72); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .6), 0 0 18px -6px var(--c);
  opacity: 0; transform: translate(-50%, -50%) scale(.7);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.emblem-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.kino-emblem.offen .emblem-label {
  opacity: 1; transform: translate(-50%, -50%) translate(var(--auf)) scale(1);
  transition-delay: calc(.35s + var(--n) * .07s);
}

/* Beschriftungen als Links, aktives Teil hervorheben */
.emblem-label { text-decoration: none; transition: opacity .3s ease, transform .4s var(--ease), background .25s, border-color .25s; }
.kino-emblem.offen .emblem-label { pointer-events: auto; }
.kino-emblem.offen .emblem-label.aktiv, .emblem-label:focus-visible {
  background: color-mix(in srgb, var(--c) 30%, rgba(8, 10, 14, .85)); border-color: var(--c);
  transform: translate(-50%, -50%) translate(var(--auf)) scale(1.08); transition-delay: 0s;
}
.emblem-label:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.kino-emblem path { transition: translate .6s var(--ease), rotate .6s var(--ease), filter .25s; }
.kino-emblem.offen path.aktiv { filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 255, 255, .18)); }

/* Startseite: Kopfzeile erscheint erst nach dem Film */
.kopfzeile { transition: background .4s, box-shadow .4s, backdrop-filter .4s, opacity .9s ease, translate .9s var(--ease); }
.js .kopfzeile.nach-film.versteckt:not(:focus-within) { opacity: 0; translate: 0 -100%; pointer-events: none; }

/* ---------- Nach-oben-Pfeil (von main.js erzeugt): dunkles Glas, Ring in Petrol→Orange = Lesefortschritt ---------- */
.nach-oben {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #f5f5f7;
  background: linear-gradient(135deg, rgba(40, 44, 52, .72), rgba(12, 14, 18, .6));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 30px -12px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  opacity: 0; translate: 0 14px; scale: .8; pointer-events: none;
  transition: opacity .4s, translate .5s var(--ease), scale .5s var(--ease), box-shadow .3s;
}
.nach-oben.da { opacity: 1; translate: none; scale: 1; pointer-events: auto; }
.nach-oben::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--petrol), var(--orange) calc(var(--fort, 0) * 1turn), rgba(255, 255, 255, .1) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
.nach-oben svg { width: 20px; height: 20px; transition: translate .3s var(--ease); }
.nach-oben:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 32px -10px rgba(0, 159, 199, .6); }
.nach-oben:hover svg { translate: 0 -2px; }
.nach-oben:focus-visible { outline: 2px solid var(--petrol); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .nach-oben, .nach-oben svg { transition: none; } }

/* ---------- Kontakt: Visitenkarte als QR-Code (nur am Computer – auf dem Handy reicht der Link zur .vcf) ---------- */
.kontakt-qr { display: none; }
@media (hover: hover) and (pointer: fine) {
  .kontakt-qr { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
}
.kontakt-qr img { flex: none; width: 104px; height: 104px; padding: 6px; background: #fff; border-radius: 12px; }
.kontakt-qr p { margin: 0; font-size: .9rem; line-height: 1.5; color: #a1a1a6; }
.kontakt-qr b { color: #f5f5f7; font-weight: 600; }
