/* Brosius Digitalworks – Grafikdesign fürs Web – grafik.css – Stand 2026-10-21
   Nur auf /grafikdesign/ und im Startseiten-Abschnitt geladen (inc/head.php, $page['css']).
   Bewegung nur über transform und opacity; prefers-reduced-motion stellt alles still. */

/* ---------- Gemeinsames: Knopfleisten der Demos ---------- */
.gfx-ctl { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; margin-top: 1.1rem; }
.gfx-ctl-group { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.gfx-ctl-group > span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: .3rem; }
.chip-btn { font: inherit; font-size: .84rem; font-weight: 600; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: .42rem .95rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.chip-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dark .chip-btn, .band-dark .chip-btn { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .2); }
.dark .chip-btn:hover, .band-dark .chip-btn:hover { border-color: var(--cyan); color: #fff; }
.dark .chip-btn.on, .band-dark .chip-btn.on { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.dark .gfx-ctl-group > span, .band-dark .gfx-ctl-group > span { color: rgba(255, 255, 255, .5); }
.gfx-hint { font-size: .84rem; color: var(--muted); margin: .7rem 0 0; }
.dark .gfx-hint { color: rgba(255, 255, 255, .55); }
.gfx-range { -webkit-appearance: none; appearance: none; width: 140px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .25); outline: none; cursor: pointer; }
.gfx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.gfx-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 2px solid #fff; }

/* ---------- Hero: schwebende 3D-Objekte ---------- */
.gfx-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 80% 0%, #15306e 0%, var(--navy) 55%); min-height: min(82vh, 760px); display: flex; align-items: center; }
.gfx-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(700px 460px at 86% 30%, rgba(124, 58, 237, .35), transparent 70%), radial-gradient(560px 420px at 70% 85%, rgba(34, 201, 238, .22), transparent 70%); }
.gfx-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.4s ease .2s; }
.gfx-hero canvas.on { opacity: 1; }
.gfx-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(100deg, rgba(8, 16, 38, .92) 0%, rgba(8, 16, 38, .6) 38%, rgba(8, 16, 38, 0) 62%); }
.gfx-hero .wrap { position: relative; z-index: 1; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.gfx-hero .hero-inner { max-width: 640px; }
.gfx-hero .kicker { color: rgba(255, 255, 255, .65); }
.gfx-hero .kicker b { color: var(--cyan); }
.gfx-hero .kicker::before { background: var(--cyan); }
.gfx-hero h1 { color: #fff; }
.gfx-hero h1 .accent { background: linear-gradient(92deg, var(--cyan), #7fb3f5 60%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gfx-hero .lead { color: rgba(255, 255, 255, .82); }
.gfx-hero .breadcrumb, .gfx-hero .breadcrumb a { color: rgba(255, 255, 255, .55); }
.gfx-hero .btn-row { margin-top: 1.8rem; }
.gfx-hero .facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; color: rgba(255, 255, 255, .7); }
.gfx-hero .facts span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--cyan); margin-right: .6rem; vertical-align: middle; }
.gfx-hero .rise { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) var(--rd, 0s) forwards; }
.gfx-hero.no-gl::after { background: linear-gradient(100deg, rgba(8, 16, 38, .7), rgba(8, 16, 38, .2)); }
@media (max-width: 700px) { .gfx-hero::after { background: linear-gradient(180deg, rgba(8, 16, 38, .55) 0%, rgba(8, 16, 38, .75) 100%); } }

/* Dunkle Abschnitte dieser Seite */
.dark { background: var(--navy); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: rgba(255, 255, 255, .78); }
.dark .section-head p { color: rgba(255, 255, 255, .72); }
.dark .kicker { color: rgba(255, 255, 255, .6); }
.dark .kicker b { color: var(--cyan); }
.dark .kicker::before { background: var(--cyan); }
.dark a:not(.btn) { color: #fff; text-decoration: underline; }

/* ---------- 01 Objekt zum Drehen ---------- */
.orbit { position: relative; border-radius: 14px; background: radial-gradient(520px 420px at 70% 20%, #1a3a86 0%, var(--navy) 60%); box-shadow: 0 34px 70px rgba(15, 23, 42, .3); overflow: hidden; }
.orbit::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px 260px at 20% 90%, rgba(124, 58, 237, .35), transparent 70%), radial-gradient(300px 220px at 85% 80%, rgba(34, 201, 238, .18), transparent 70%); }
.orbit canvas { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; max-height: 560px; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1s ease; }
.orbit canvas.on { opacity: 1; }
.orbit.dragging canvas { cursor: grabbing; }
.orbit-tip { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 2; pointer-events: none; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); white-space: nowrap; display: flex; align-items: center; gap: .5rem; transition: opacity .3s; }
.orbit-tip::before { content: "\2194"; font-size: 1rem; animation: tipSway 1.6s ease-in-out infinite; }
.orbit.dragging .orbit-tip { opacity: 0; }
.orbit.no-gl canvas { display: none; }
.orbit.no-gl { min-height: 320px; }
@keyframes tipSway { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.orbit-ctl { margin-top: 1.2rem; }

/* ---------- 02 Scroll-Inszenierung: Ebenen einer Seite ---------- */
.layers { padding: 0; }
.lay-sticky { position: sticky; top: 76px; height: calc(100vh - 76px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.lay-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .9rem; }
.lay-step { position: relative; padding: .9rem 1.1rem .9rem 3.2rem; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); opacity: .45; transition: opacity .4s var(--ease), border-color .4s, transform .4s var(--ease); }
.lay-step::before { content: attr(data-n); position: absolute; left: 1rem; top: .95rem; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--blue); border: 1px solid var(--blue); background: #fff; }
.lay-step.on { opacity: 1; }
.lay-step.now { border-color: var(--blue); transform: translateX(6px); box-shadow: 0 14px 30px rgba(27, 79, 209, .12); }
.lay-step.now::before { background: var(--blue); color: #fff; }
.lay-step h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.lay-step p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.lay-stage { --p: 1; perspective: 1600px; perspective-origin: 50% 40%; height: 100%; display: grid; place-items: center; }
.lay-stack { position: relative; width: min(100%, 560px); aspect-ratio: 16 / 10; transform-style: preserve-3d; transform: rotateX(calc(58deg * var(--p))) rotateZ(calc(-30deg * var(--p))) scale(calc(1 - .18 * var(--p))); transition: transform .08s linear; }
.layer { position: absolute; inset: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px rgba(15, 23, 42, .14); overflow: hidden; transform: translateZ(calc(var(--i) * 110px * var(--p))) translateY(calc(var(--i) * -14px * var(--p))); transition: transform .08s linear, box-shadow .3s; }
.layer-lbl { position: absolute; left: -1px; top: -1px; padding: .3rem .7rem; font-family: var(--font-head); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--blue); border-radius: 10px 0 8px 0; opacity: calc(var(--p) * 1.2 - .2); }
/* Ebene 1: Raster und Flächen */
.layer-1 { --i: 0; background: linear-gradient(180deg, #f7f9ff, #ffffff); background-image: linear-gradient(90deg, rgba(27, 79, 209, .08) 1px, transparent 1px), linear-gradient(0deg, rgba(27, 79, 209, .08) 1px, transparent 1px); background-size: 8.333% 100%, 100% 12.5%; }
.layer-1::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(135deg, #0f1f42, #1b4fd1); opacity: .9; }
.layer-1 .layer-lbl { background: var(--muted); }
/* Ebene 2: Inhalt */
.layer-2 { --i: 1; background: transparent; border-color: rgba(27, 79, 209, .25); box-shadow: none; }
.layer-2 i { position: absolute; display: block; border-radius: 3px; background: var(--ink); }
.layer-2 .t1 { left: 7%; top: 14%; width: 38%; height: 7%; background: #fff; }
.layer-2 .t2 { left: 7%; top: 24%; width: 30%; height: 4%; background: rgba(255, 255, 255, .6); }
.layer-2 .t3 { left: 7%; top: 31%; width: 22%; height: 4%; background: rgba(255, 255, 255, .6); }
.layer-2 .c1, .layer-2 .c2, .layer-2 .c3 { top: 58%; width: 24%; height: 5%; background: var(--ink-2); }
.layer-2 .c1 { left: 7%; } .layer-2 .c2 { left: 38%; } .layer-2 .c3 { left: 69%; }
.layer-2 .l1, .layer-2 .l2, .layer-2 .l3 { top: 67%; width: 20%; height: 3%; background: var(--line-2); }
.layer-2 .l1 { left: 7%; } .layer-2 .l2 { left: 38%; } .layer-2 .l3 { left: 69%; }
.layer-2 .l4, .layer-2 .l5, .layer-2 .l6 { top: 73%; width: 16%; height: 3%; background: var(--line-2); }
.layer-2 .l4 { left: 7%; } .layer-2 .l5 { left: 38%; } .layer-2 .l6 { left: 69%; }
.layer-2 .layer-lbl { background: var(--ink-2); }
/* Ebene 3: Grafik */
.layer-3 { --i: 2; background: transparent; border-color: rgba(124, 58, 237, .3); box-shadow: none; }
.layer-3 .blob { position: absolute; right: 8%; top: 6%; width: 30%; aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 45%, #1b4fd1 100%); box-shadow: 0 20px 40px rgba(124, 58, 237, .35); animation: blobMorph 9s ease-in-out infinite; }
.layer-3 .pic { position: absolute; top: 56%; height: 24%; width: 24%; border-radius: 6px; background: linear-gradient(135deg, var(--blue-2), var(--cyan)); }
.layer-3 .pic:nth-of-type(2) { left: 7%; }
.layer-3 .pic:nth-of-type(3) { left: 38%; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.layer-3 .pic:nth-of-type(4) { left: 69%; background: linear-gradient(135deg, var(--green), var(--cyan)); }
.layer-3 .layer-lbl { background: var(--violet); }
@keyframes blobMorph { 0%, 100% { border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; } 50% { border-radius: 58% 42% 40% 60% / 45% 60% 40% 55%; } }
/* Ebene 4: Bewegung und Interaktion */
.layer-4 { --i: 3; background: transparent; border-color: rgba(34, 201, 238, .4); box-shadow: none; }
.layer-4 .cta { position: absolute; left: 7%; top: 38%; width: 18%; height: 7%; border-radius: 3px; background: linear-gradient(120deg, var(--blue), var(--violet)); box-shadow: 0 8px 20px rgba(27, 79, 209, .45); animation: ctaPulse 2.4s ease-in-out infinite; }
.layer-4 .cursor { position: absolute; left: 20%; top: 40%; width: 16px; height: 16px; animation: cursorMove 5s var(--ease) infinite; }
.layer-4 .cursor::before { content: ""; position: absolute; inset: 0; background: #0f172a; clip-path: polygon(0 0, 100% 55%, 55% 60%, 70% 100%, 55% 100%, 42% 65%, 0 90%); }
.layer-4 .hover { position: absolute; left: 38%; top: 56%; width: 24%; height: 24%; border-radius: 6px; border: 2px solid var(--cyan); box-shadow: 0 0 0 4px rgba(34, 201, 238, .18); animation: hoverGlow 5s var(--ease) infinite; }
.layer-4 .layer-lbl { background: var(--cyan); color: var(--navy); }
@keyframes ctaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes cursorMove { 0%, 20% { transform: translate(0, 0); } 45%, 60% { transform: translate(130px, 40px); } 85%, 100% { transform: translate(0, 0); } }
@keyframes hoverGlow { 0%, 40% { opacity: 0; transform: scale(.96); } 50%, 70% { opacity: 1; transform: scale(1); } 85%, 100% { opacity: 0; transform: scale(.96); } }
@media (min-width: 900px) { .layers { height: 320vh; } .layers .wrap { height: 100%; } }
@media (max-width: 899px) {
  .layers { padding: clamp(4rem, 8vw, 6.5rem) 0; }
  .lay-sticky { position: static; height: auto; grid-template-columns: 1fr; gap: 2rem; }
  .lay-stage { height: auto; margin-top: 1rem; perspective: 1200px; }
  .lay-stack { --p: 1; width: min(100%, 440px); margin: 0 auto 3rem; transform: rotateX(56deg) rotateZ(-28deg) scale(.78); }
  .layer { transform: translateZ(calc(var(--i) * 90px)) translateY(calc(var(--i) * -10px)); }
  .lay-step { opacity: 1; }
}

/* ---------- 03 Bewegtbild: Tinte und Licht ---------- */
.ink-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--navy); box-shadow: 0 34px 70px rgba(15, 23, 42, .35); aspect-ratio: 16 / 8; min-height: 380px; max-height: 70vh; }
.ink-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease; }
.ink-stage canvas.on { opacity: 1; }
.ink-mask { position: absolute; inset: 0; display: grid; place-items: center; background: #000; mix-blend-mode: multiply; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.ink-mask span { font-family: var(--font-head); font-weight: 900; font-size: clamp(3.2rem, 15vw, 13rem); line-height: 1; letter-spacing: -.04em; color: #fff; text-transform: uppercase; }
.ink-stage[data-mode-on="schrift"] .ink-mask { opacity: 1; }
.ink-stage[data-mode-on="schrift"] .ink-head { opacity: 0; }
.ink-head { position: absolute; left: clamp(1.2rem, 4vw, 3rem); bottom: 5.4rem; max-width: 26ch; color: #fff; pointer-events: none; transition: opacity .5s; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.ink-head b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.1; }
.ink-head span { display: block; margin-top: .5rem; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.ink-ctl { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem clamp(1rem, 3vw, 2rem); background: linear-gradient(0deg, rgba(5, 10, 24, .85), rgba(5, 10, 24, 0)); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
.ink-ctl .gfx-ctl-group > span { color: rgba(255, 255, 255, .55); }
.ink-ctl .chip-btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.ink-ctl .chip-btn.on { background: #fff; color: var(--navy); border-color: #fff; }
.ink-ctl label { display: flex; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.ink-stage.no-gl { background: linear-gradient(135deg, var(--navy), #1b4fd1 50%, var(--violet)); }
.ink-stage.no-gl canvas, .ink-stage.no-gl .ink-ctl { display: none; }
@media (max-width: 700px) {
  .ink-stage { aspect-ratio: 4 / 5; }
  .ink-head { top: 1.2rem; bottom: auto; left: 1.2rem; right: 1.2rem; max-width: none; }
  .ink-head b { font-size: 1.35rem; }
  .ink-ctl { gap: .6rem .9rem; padding-bottom: 1rem; }
  .ink-mask span { font-size: clamp(2.6rem, 22vw, 6rem); }
}

/* ---------- 04 Partikel ---------- */
.part-stage { position: relative; border-radius: 14px; overflow: hidden; background: radial-gradient(700px 400px at 50% 100%, #14306f 0%, var(--navy) 70%); border: 1px solid rgba(255, 255, 255, .08); }
.part-stage canvas { display: block; width: 100%; height: clamp(300px, 46vw, 460px); cursor: crosshair; touch-action: pan-y; }
.part-ctl { position: absolute; left: 0; right: 0; top: 0; padding: .9rem clamp(1rem, 3vw, 1.6rem); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; justify-content: space-between; pointer-events: none; }
.part-ctl > * { pointer-events: auto; }
.part-ctl .chip-btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.part-ctl .chip-btn.on { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.part-ctl .gfx-hint { margin: 0; color: rgba(255, 255, 255, .55); }

/* ---------- 05 Material: Hologramm, Glas, Flüssig ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; align-items: stretch; }
.mat-cell { display: grid; gap: .9rem; align-content: start; }
.mat-cell h3 { font-size: 1.05rem; margin: 0; }
.mat-cell p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.mat-demo { border-radius: 14px; min-height: 300px; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--navy); }
/* Hologramm-Karte */
.holo { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; width: min(78%, 300px); aspect-ratio: 1.586; border-radius: 14px; position: relative; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .12s ease-out; background: linear-gradient(135deg, #0f1f42, #1b4fd1 55%, #4c1d95); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .15); overflow: hidden; }
.holo::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 180deg at var(--mx) var(--my), #ff6b6b, #ffd93d, #6bff95, #4dd2ff, #c77dff, #ff6b6b); mix-blend-mode: color-dodge; opacity: .22; filter: blur(2px) saturate(1.4); transition: opacity .3s; }
.holo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 30%, transparent 60%); mix-blend-mode: overlay; opacity: .8; }
.holo.live::before { opacity: .45; }
.holo-in { position: absolute; inset: 0; padding: 1.1rem 1.2rem; display: grid; grid-template-rows: auto 1fr auto; color: #fff; z-index: 1; }
.holo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--cyan), #fff); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .95rem; }
.holo-no { align-self: end; font-family: Consolas, "Courier New", monospace; letter-spacing: .18em; font-size: .86rem; color: rgba(255, 255, 255, .85); }
.holo-row { display: flex; justify-content: space-between; align-items: end; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.holo-row b { display: block; font-family: var(--font-head); font-size: .95rem; letter-spacing: 0; text-transform: none; color: #fff; }
.holo.auto { animation: holoAuto 7s ease-in-out infinite; }
.holo.auto::before { opacity: .4; }
@keyframes holoAuto { 0%, 100% { --mx: 30%; --my: 30%; transform: perspective(900px) rotateX(6deg) rotateY(-10deg); } 50% { --mx: 70%; --my: 70%; transform: perspective(900px) rotateX(-6deg) rotateY(10deg); } }
/* Glas */
.glass-demo { background: var(--navy); }
.glass-demo .blobs { position: absolute; inset: 0; }
.glass-demo .blobs i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(2px); animation: blobDrift 11s ease-in-out infinite; }
.glass-demo .blobs i:nth-child(1) { left: -8%; top: -10%; background: var(--blue-2); }
.glass-demo .blobs i:nth-child(2) { right: -6%; top: 10%; background: var(--violet); animation-delay: -3s; }
.glass-demo .blobs i:nth-child(3) { left: 24%; bottom: -16%; background: var(--cyan); animation-delay: -6s; }
.glass-demo .blobs i:nth-child(4) { right: 20%; bottom: -8%; background: var(--pink); width: 30%; animation-delay: -8s; }
@keyframes blobDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(14%, 10%) scale(1.12); } 66% { transform: translate(-10%, 16%) scale(.92); } }
.glass { position: relative; width: min(78%, 300px); padding: 1.2rem 1.3rem; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 24px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5); color: #fff; }
.glass b { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.glass span { display: block; font-size: .82rem; color: rgba(255, 255, 255, .8); margin-top: .3rem; }
.glass i { display: block; margin-top: .9rem; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.glass i::after { content: ""; display: block; height: 100%; width: 62%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), #fff); }
/* Flüssig (SVG-Filter „goo") */
.goo-demo { background: linear-gradient(180deg, #0f1f42, var(--navy)); }
.goo { position: absolute; inset: 0; filter: url(#goo); }
.goo i { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: var(--cyan); animation: gooOrbit 6s ease-in-out infinite; }
.goo i:nth-child(1) { width: 110px; height: 110px; margin: -55px 0 0 -55px; animation: none; background: var(--blue-2); }
.goo i:nth-child(2) { --a: 0deg; }
.goo i:nth-child(3) { --a: 120deg; animation-delay: -2s; background: var(--violet); }
.goo i:nth-child(4) { --a: 240deg; animation-delay: -4s; background: var(--pink); width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@keyframes gooOrbit { 0%, 100% { transform: rotate(var(--a)) translateX(0) scale(1); } 50% { transform: rotate(calc(var(--a) + 180deg)) translateX(95px) scale(.9); } }
.goo-lbl { position: relative; z-index: 1; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); pointer-events: none; }

/* ---------- 06 Schrift in Bewegung ---------- */
.weight { font-family: var(--font-head); font-size: clamp(2.2rem, 7.5vw, 6.2rem); line-height: 1.02; letter-spacing: -.03em; margin: 0; color: var(--ink); cursor: default; user-select: none; }
.weight span { display: inline-block; font-weight: 200; transition: font-weight .18s ease-out; font-variation-settings: normal; }
.weight span.sp { width: .3em; }
.weight.auto span { animation: weightWave 3.2s ease-in-out infinite; animation-delay: calc(var(--k, 0) * .08s); }
@keyframes weightWave { 0%, 100% { font-weight: 200; } 50% { font-weight: 900; } }
.weight-hint { font-size: .84rem; color: var(--muted); margin: .9rem 0 0; }
.typo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.typo-cell { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 1.6rem 1.6rem 1.5rem; display: grid; gap: .6rem; align-content: start; }
.typo-cell h3 { font-size: 1rem; margin: 0; }
.typo-cell p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.typo-demo { min-height: 120px; display: grid; place-items: center; padding: .6rem 0; }
.outline-word { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px var(--navy); position: relative; cursor: default; }
.outline-word::after { content: attr(data-text); position: absolute; left: 0; top: 0; color: var(--blue); -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); background: linear-gradient(92deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline-word:hover::after, .outline-word:focus-visible::after { clip-path: inset(0 0 0 0); }
.lines { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.25; display: grid; gap: .1rem; }
.lines span { display: block; overflow: hidden; }
.lines span i { display: block; font-style: normal; transform: translateY(110%); transition: transform .8s var(--ease) calc(var(--k) * .12s); }
.reveal.in .lines span i, html:not(.js) .lines span i { transform: none; }
.lines span:nth-child(2) i { color: var(--blue); }
.lines span:nth-child(3) i { color: var(--violet); }
.gradient-word { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet), var(--pink), var(--blue)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradSlide 6s linear infinite; }
@keyframes gradSlide { to { background-position: 300% 50%; } }

/* ---------- 07 Illustration zeichnet sich ---------- */
.illu { align-self: center; }
.illu-svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; filter: drop-shadow(0 26px 40px rgba(27, 79, 209, .16)); }
.illu-svg path { stroke: #0f172a; stroke-width: .7; stroke-linejoin: round; stroke-linecap: round; fill-opacity: 1; transition: fill-opacity .8s ease calc(1.6s + var(--i) * 1.2s), stroke-dashoffset 1.1s var(--ease) calc(var(--i) * 1.3s); stroke-dasharray: 1; stroke-dashoffset: 0; }
.illu-svg .shadow { stroke: none; transition: fill-opacity .8s ease 2.6s; }
.illu-svg .detail, .illu-svg .ui, .illu-svg .led, .illu-svg .leaf { stroke-width: .35; }
html.js .illu:not(.in) .illu-svg path { stroke-dashoffset: 1; fill-opacity: 0; }
.illu-svg .led { animation: ledBlink 2.4s steps(1) infinite; }
.illu-svg .led:nth-of-type(2n) { animation-delay: .8s; }
@keyframes ledBlink { 0%, 60% { fill-opacity: 1; } 61%, 75% { fill-opacity: .3; } 76%, 100% { fill-opacity: 1; } }

/* ---------- 08 Mikro-Interaktionen ---------- */
.micro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.micro { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 1.4rem 1.4rem 1.3rem; display: grid; grid-template-rows: 1fr auto; gap: 1rem; min-height: 230px; }
.micro-demo { display: grid; place-items: center; min-height: 110px; }
.micro h3 { font-size: .98rem; margin: 0 0 .2rem; }
.micro p { font-size: .86rem; color: var(--ink-2); margin: 0; }
/* Magnet */
.magnet-zone { width: 100%; height: 120px; display: grid; place-items: center; border-radius: 8px; background: var(--bg); border: 1px dashed var(--line-2); }
.magnet-zone .btn { transition: transform .18s ease-out, color .3s var(--ease), box-shadow .3s var(--ease); }
/* Gefällt mir */
.like { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease), border-color .3s; }
.like svg { width: 28px; height: 28px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linejoin: round; transition: fill .25s, stroke .25s, transform .25s var(--ease); }
.like:hover { transform: scale(1.08); border-color: var(--pink); }
.like.on svg { fill: var(--pink); stroke: var(--pink); }
.like.burst svg { animation: likePop .5s var(--ease); }
.like::before, .like::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; }
.like.burst::before { background: radial-gradient(circle, transparent 55%, rgba(226, 74, 141, .5) 56%, transparent 62%); animation: likeRing .6s var(--ease); }
.like.burst::after { background: radial-gradient(circle at 50% 10%, var(--pink) 3px, transparent 4px), radial-gradient(circle at 90% 35%, var(--violet) 3px, transparent 4px), radial-gradient(circle at 85% 85%, var(--cyan) 3px, transparent 4px), radial-gradient(circle at 50% 95%, var(--amber) 3px, transparent 4px), radial-gradient(circle at 12% 80%, var(--pink) 3px, transparent 4px), radial-gradient(circle at 8% 30%, var(--blue-2) 3px, transparent 4px); animation: likeSpark .7s var(--ease); }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes likeRing { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes likeSpark { 0% { opacity: 1; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.9); } }
/* Fortschrittsring */
.ring { position: relative; width: 96px; height: 96px; margin-bottom: 1.8rem; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring-track { stroke: var(--line); }
.ring-bar { stroke: url(#ringGrad); stroke-dasharray: 1; stroke-dashoffset: 1; }
.ring-num { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.ring-num::after { content: "%"; font-size: .7rem; color: var(--muted); margin-left: 1px; }
.ring.done .ring-num { color: var(--green); }
.ring-btn { margin-top: .4rem; font: inherit; font-size: .78rem; font-weight: 600; color: var(--blue); background: none; border: 0; cursor: pointer; text-decoration: underline; }
/* Schalter */
.switch { position: relative; width: 74px; height: 40px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .35s var(--ease); }
.switch i::before { content: ""; position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(15, 23, 42, .25); transition: transform .35s var(--ease), border-radius .35s var(--ease), width .35s var(--ease); }
.switch input:checked + i { background: linear-gradient(120deg, var(--blue), var(--cyan)); }
.switch input:checked + i::before { transform: translateX(34px); }
.switch input:active + i::before { width: 40px; border-radius: 16px; }
.switch input:checked:active + i::before { transform: translateX(26px); }
.switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* Skelett wird Inhalt */
.skel { width: 100%; max-width: 230px; display: grid; grid-template-columns: 44px 1fr; gap: .7rem; align-items: center; }
.skel i { display: block; border-radius: 6px; background: linear-gradient(90deg, #e9edf5 0%, #f6f8fc 40%, #e9edf5 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite, skelOut 6s var(--ease) infinite; }
.skel .av { width: 44px; height: 44px; border-radius: 50%; }
.skel .ln { height: 10px; margin: .3rem 0; }
.skel .ln2 { width: 60%; }
.skel b, .skel span { opacity: 0; animation: skelIn 6s var(--ease) infinite; }
.skel .who { display: grid; }
.skel .who b { font-family: var(--font-head); font-size: .92rem; }
.skel .who span { font-size: .78rem; color: var(--muted); }
.skel .av-real { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-2), var(--violet)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem; opacity: 0; animation: skelIn 6s var(--ease) infinite; }
.skel .stack { position: relative; display: grid; }
.skel .stack > * { grid-area: 1 / 1; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes skelOut { 0%, 45% { opacity: 1; } 55%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes skelIn { 0%, 48% { opacity: 0; transform: translateY(4px); } 58%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* Senden wird Haken */
.send { position: relative; font: inherit; font-weight: 600; font-size: .95rem; color: #fff; background: var(--blue); border: 0; border-radius: 999px; height: 48px; width: 170px; cursor: pointer; overflow: hidden; transition: width .45s var(--ease), background .4s; }
.send span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .25s, transform .3s var(--ease); }
.send .s-spin { opacity: 0; }
.send .s-spin::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.send .s-ok { opacity: 0; transform: scale(.5); }
.send .s-ok svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.send.busy { width: 48px; }
.send.busy .s-txt { opacity: 0; transform: scale(.6); }
.send.busy:not(.ok) .s-spin { opacity: 1; }
.send.ok { background: var(--green); }
.send.ok .s-ok { opacity: 1; transform: none; }
.send.ok .s-ok svg { animation: drawCheck .5s var(--ease) .1s forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------- 09 Zahlen und Ehrlichkeit ---------- */
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.fact { border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 1.5rem 1.5rem 1.3rem; background: rgba(255, 255, 255, .04); }
.fact b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--cyan); letter-spacing: -.03em; }
.fact span { display: block; margin-top: .5rem; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.fact:nth-child(2) b { color: #a78bfa; }
.fact:nth-child(3) b { color: #34d399; }
.fact:nth-child(4) b { color: #fbbf24; }

/* ---------- Startseite: Vorschau-Abschnitt ---------- */
.gfx-teaser { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy) 0%, #0e1d46 100%); color: #fff; }
.gfx-teaser::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(620px 420px at 0% 0%, rgba(124, 58, 237, .28), transparent 70%), radial-gradient(520px 380px at 100% 100%, rgba(34, 201, 238, .18), transparent 70%); }
.gfx-teaser .wrap { position: relative; }
.gfx-teaser h2, .gfx-teaser h3 { color: #fff; }
.gfx-teaser .section-head p { color: rgba(255, 255, 255, .75); }
.gfx-teaser .kicker { color: rgba(255, 255, 255, .6); }
.gfx-teaser .kicker b { color: var(--cyan); }
.gfx-teaser .kicker::before { background: var(--cyan); }
.gfx-teaser .orbit { box-shadow: 0 34px 70px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .1); }
.gfx-teaser .chip-btn { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .2); }
.gfx-teaser .chip-btn.on { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.gfx-teaser .gfx-ctl-group > span { color: rgba(255, 255, 255, .5); }
.gfx-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.4rem; }
.gfx-list li { position: relative; padding-left: 1.3rem; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.gfx-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--blue-2), var(--cyan)); transform: rotate(45deg); }
.gfx-list li:nth-child(2n)::before { background: linear-gradient(135deg, var(--violet), var(--pink)); }
@media (max-width: 480px) { .gfx-list { grid-template-columns: 1fr; } }

/* ---------- Leichter Modus: ohne WebGL, Software-Grafik oder zu langsam (grafik.js setzt html.gfx-lite) ---------- */
.txt-lite { display: none; }
html.gfx-lite .txt-gl { display: none; }
html.gfx-lite .txt-lite { display: inline; }
.gfx-hero.lite { background-size: cover; background-position: 62% 50%; background-repeat: no-repeat; }
.gfx-hero.lite::before, .gfx-hero.lite canvas { display: none; }
.gfx-hero.lite::after { background: linear-gradient(100deg, rgba(8, 16, 38, .88) 0%, rgba(8, 16, 38, .55) 40%, rgba(8, 16, 38, .05) 66%); }
@media (max-width: 700px) { .gfx-hero.lite { background-position: 70% 50%; } .gfx-hero.lite::after { background: linear-gradient(180deg, rgba(8, 16, 38, .6) 0%, rgba(8, 16, 38, .8) 100%); } }
.orbit.lite canvas, .orbit.lite .orbit-ctl { display: none; }
.orbit-fb { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 560px; background-size: 100% auto; background-repeat: no-repeat; cursor: grab; touch-action: pan-y; }
.orbit.dragging .orbit-fb { cursor: grabbing; }
.orbit-note { position: absolute; left: 1rem; right: 1rem; top: 1rem; z-index: 2; margin: 0; font-size: .76rem; line-height: 1.4; color: rgba(255, 255, 255, .7); pointer-events: none; }
.ink-stage.lite canvas, .ink-stage.lite label { display: none; }
.ink-fb { display: none; position: absolute; inset: 0; background: linear-gradient(115deg, #0b1730 0%, #1b4fd1 22%, #7c3aed 40%, #22c9ee 58%, #0f1f42 75%, #2b7de9 90%, #0b1730 100%); background-size: 320% 320%; animation: inkMove 16s ease-in-out infinite alternate; }
.ink-stage.lite .ink-fb { display: block; }
.ink-stage[data-scheme-on="1"] .ink-fb { background-image: linear-gradient(115deg, #1f0809 0%, #c2310f 22%, #f98c1a 40%, #f5cc4d 58%, #3a0d0b 75%, #f97316 90%, #1f0809 100%); }
.ink-stage[data-scheme-on="2"] .ink-fb { background-image: linear-gradient(115deg, #050505 0%, #2e2e2e 22%, #8c8c8c 40%, #ffffff 58%, #1a1a1a 75%, #6b6b6b 90%, #050505 100%); }
@keyframes inkMove { 0% { background-position: 0% 0%; } 50% { background-position: 100% 60%; } 100% { background-position: 20% 100%; } }
html.gfx-lite .glass-demo .blobs i { filter: none; }
html.gfx-lite .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .22); }
html.gfx-lite .goo { filter: none; }
html.gfx-lite .holo::before { filter: none; }
html.gfx-lite .illu-svg { filter: none; }
html.gfx-lite .orbit, html.gfx-lite .ink-stage, html.gfx-lite .part-stage { box-shadow: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gfx-hero .rise { animation: none; opacity: 1; transform: none; }
  .orbit-tip::before, .ink-fb, .layer-3 .blob, .layer-4 .cta, .layer-4 .cursor, .layer-4 .hover, .glass-demo .blobs i, .goo i, .holo.auto, .weight.auto span, .gradient-word, .skel i, .skel b, .skel span, .skel .av-real, .illu-svg .led, .send .s-spin::before { animation: none !important; }
  .layer-4 .hover, .skel b, .skel span, .skel .av-real { opacity: 1; }
  .skel i { opacity: 0; }
  .weight span { transition: none; }
  .illu-svg path { transition: none; }
  html.js .illu:not(.in) .illu-svg path { stroke-dashoffset: 0; fill-opacity: 1; }
  .lines span i { transition: none; transform: none; }
  .lay-stack, .layer, .lay-step, .holo, .like, .magnet-zone .btn, .send, .outline-word::after { transition: none; }
}
