/* Kernflow · Works Wheel + zentrierter Websites-Hero */

/* ---------- Hero, zentriert ---------- */
.whero { position: relative; min-height: 88vh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 150px 24px 60px; overflow: hidden; isolation: isolate; --c: var(--c-web); }
.whero__nebula { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none; filter: blur(70px) saturate(120%); }
.whero__nebula::before { content: ''; position: absolute; inset: 0; background: radial-gradient(34% 40% at 50% 30%, rgba(178,124,255,.34), transparent 70%), radial-gradient(28% 34% at 20% 70%, rgba(120,90,255,.14), transparent 70%), radial-gradient(28% 34% at 80% 70%, rgba(178,124,255,.12), transparent 70%); }
.whero__grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 10%, transparent 75%); }
.whero__copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 24px; max-width: 980px; }
.whero__copy > * { text-shadow: 0 6px 40px rgba(10,10,14,.85); }
.whero .h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: .96; }
.whero .lede { text-align: center; max-width: 54ch; }
/* Drei-Sekunden-Uhr: füllt sich nach dem Laden in drei Sekunden, dann „verstanden." */
.clock { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.clock__bar { position: relative; width: 120px; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.clock__bar i { position: absolute; inset: 0; width: 0; background: var(--c-web); box-shadow: 0 0 12px var(--c-web); }
.clock__t { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 4.5ch; text-align: left; }
.clock__ok { color: #B9F0CB; opacity: 0; transform: translateY(4px); }
.whero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.whero__facts { display: flex; gap: 32px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.whero__facts b { display: block; font-family: var(--font); font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.whero__facts b i { font-style: normal; color: var(--c-web); }
@media (max-width: 720px) { .whero { min-height: 0; padding-top: 120px; } .whero__facts { gap: 20px; } }

/* ---------- Das Rad ---------- */
@property --wc { syntax: '<color>'; inherits: true; initial-value: #B27CFF; }
.wheel { --wc: #B27CFF; transition: --wc 1s var(--ease); position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--bg); user-select: none; outline: none; }
.wheel__stage { position: absolute; inset: 0; }
.wheel__drum { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
@media (min-width: 1100px) { .wheel__drum { left: 54%; } }
/* Tiefe hinter der Trommel: Glut + riesige Nummer */
.wheel__glow { position: absolute; left: 54%; top: 50%; width: 1100px; height: 800px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--wc) 30%, transparent), color-mix(in srgb, var(--wc) 8%, transparent) 45%, transparent 70%); filter: blur(40px); opacity: 0; pointer-events: none; }
.wheel__bgnum { position: absolute; right: -.04em; bottom: -.16em; font-size: clamp(200px, 30vw, 460px); font-weight: 600; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--wc) 35%, rgba(255,255,255,.06)); opacity: 0; pointer-events: none; user-select: none; }
.wheel__gridbg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 55% 55% at 54% 50%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 55% 55% at 54% 50%, #000 10%, transparent 75%); pointer-events: none; }
.wheel__card { position: absolute; left: 0; top: 0; display: block; backface-visibility: hidden; will-change: transform, opacity; }
.wheel__face { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; background: #14141B; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); transition: border-color .4s; }
.wheel__face::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 2; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4) 50%, transparent); opacity: .6; }
.wheel__face > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.wheel__face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,10,14,.35)); opacity: 1; transition: opacity .4s; }
.wheel__card.is-front .wheel__face { border-color: rgba(255,255,255,.26); box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), 0 0 140px -30px color-mix(in srgb, var(--wc) 70%, transparent); border-color: color-mix(in srgb, var(--wc) 45%, rgba(255,255,255,.2)); }
.wheel__card.is-front .wheel__face > img:first-child { transition: transform 1.2s var(--ease); }
.wheel__card.is-front:hover .wheel__face > img:first-child { transform: scale(1.03); }
.wheel__card.is-front .wheel__face::after { opacity: 0; }
.wheel__card .wheel__bar { position: absolute; inset: 0 0 auto 0; height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(10,10,14,.7); border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: 10px; color: var(--muted); }
.wheel__card .wheel__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.wheel__card .wheel__bar span { margin-left: 6px; }
.wheel__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 500; letter-spacing: -.04em; line-height: 1; text-align: center; pointer-events: none; white-space: nowrap; }
.wheel__label em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.wheel__label small { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wheel__info { position: absolute; left: calc((100vw - var(--w)) / 2 + var(--pad)); top: 50%; transform: translateY(-50%); width: min(300px, 24vw); display: grid; gap: 14px; opacity: 0; pointer-events: none; }
.wheel__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wheel__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 10px var(--wc); }
.wheel__prog { width: 100%; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.wheel__prog i { display: block; height: 100%; width: 0; background: var(--wc); box-shadow: 0 0 10px var(--wc); transition: width .6s var(--ease); }
.wheel__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.btn--web { background: linear-gradient(180deg, #C39BFF, #9B6BFF); color: #120A22; box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 34px -12px rgba(178,124,255,.8); }
.btn--web:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 1px 0 rgba(255,255,255,.35) inset, 0 18px 44px -12px rgba(178,124,255,.95); }
.btn--icon { width: 50px; padding: 0; justify-content: center; }
.wheel__info > * { pointer-events: auto; }
.wheel__info h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.03em; }
.wheel__info p { color: var(--muted); font-size: 15px; }
.wheel__info .btn { justify-self: start; }
.wheel__num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.wheel__index { position: absolute; right: calc((100vw - var(--w)) / 2 + var(--pad)); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; text-align: right; display: grid; gap: 6px; }
.wheel__index button { font-size: 13px; color: var(--muted); transition: color .25s, transform .3s var(--ease); display: inline-flex; align-items: center; gap: 10px; }
.wheel__index button::after { content: ''; width: 0; height: 1px; background: var(--wc); transition: width .35s var(--ease); order: 2; }
.wheel__index button.is-on { color: var(--ink); }
.wheel__index button.is-on::after { width: 22px; }
.wheel__index button:hover { color: var(--ink); }
.wheel__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; pointer-events: none; }
.wheel__hint i { width: 18px; height: 28px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.wheel__hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: var(--ink-2); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 1240px) { .wheel__info { left: var(--pad); } .wheel__index { right: var(--pad); } }
@media (max-width: 860px) {
  .wheel__index, .wheel__bgnum { display: none; }
  .wheel__stage { z-index: 1; }
  .wheel::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 54%; background: linear-gradient(180deg, transparent, var(--bg) 42%); pointer-events: none; z-index: 5; }
  .wheel__info { z-index: 6; }
  .wheel__drum, .wheel__glow { left: 50%; }
  .wheel__btns { justify-content: center; }
  .wheel__info { left: 50%; top: auto; bottom: 64px; transform: translateX(-50%); width: min(420px, 100% - 48px); text-align: center; justify-items: center; }
  .wheel__info .btn { justify-self: center; }
  .wheel__hint { display: none; }
}

/* Farbwelt pro Projekt: Haupt-Button im Rad nimmt die Projektfarbe auf (aufgehellt, damit dunkle Schrift lesbar bleibt) */
.wheel .btn--web { background: linear-gradient(180deg, color-mix(in srgb, var(--wc) 50%, #fff), color-mix(in srgb, var(--wc) 75%, #fff)); color: #0E0E12; box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 34px -12px color-mix(in srgb, var(--wc) 80%, transparent); }
.wheel .btn--web:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 44px -12px var(--wc); }

/* Ganze Seite in der vorderen Karte */
.wheel__face img.wheel__full { position: absolute; top: 0; left: 50%; width: calc(100% * 1.6 / 1.45); height: auto; max-width: none; opacity: 0; transition: opacity .5s; will-change: transform; pointer-events: none; }
.has-full img.wheel__full { opacity: 1; }
.wheel__sb { position: absolute; right: 5px; top: 30px; bottom: 8px; width: 3px; border-radius: 3px; background: rgba(255,255,255,.12); z-index: 3; opacity: 0; transition: opacity .4s; pointer-events: none; }
.wheel__sb i { position: absolute; left: 0; right: 0; top: 0; height: 20%; border-radius: 3px; background: rgba(255,255,255,.75); box-shadow: 0 0 8px rgba(0,0,0,.4); }
.wheel__card.is-front .has-full .wheel__sb { opacity: 1; }
.wheel .wheel__face::after { z-index: 1; }
.wheel__card .wheel__bar { z-index: 2; }

/* ---------- Weitere Websites: Laufband unter dem Rad ---------- */
.rail { position: relative; padding: 72px 0 24px; background: var(--bg); overflow: hidden; }
.rail__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.rail__head p { margin: 0; font-size: 14px; color: var(--muted); }
.rail__viewport { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail__track { display: flex; width: max-content; animation: rail 70s linear infinite; }
.rail__viewport:hover .rail__track, .rail__viewport:focus-within .rail__track { animation-play-state: paused; }
@keyframes rail { to { transform: translateX(-50%); } }
.rail__card { --rc: var(--c-web); flex: none; width: clamp(280px, 28vw, 420px); margin-right: 20px; display: grid; gap: 14px; }
.rail__frame { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #14141B; border: 1px solid var(--line-2); transition: border-color .4s, box-shadow .5s, transform .5s var(--ease); }
.rail__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position .9s var(--ease); }
/* Hover: die ganze Seite läuft einmal von oben nach unten durch */
.rail__card:hover .rail__frame img { object-position: 50% 100%; transition: object-position 9s linear; }
.rail__card:hover .rail__frame { border-color: color-mix(in srgb, var(--rc) 60%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--rc) 70%, transparent); transform: translateY(-4px); }
.rail__bar { position: absolute; inset: 0 0 auto 0; height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(10,10,14,.75); border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: 10px; color: var(--muted); z-index: 1; }
.rail__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.rail__bar span { margin-left: 6px; }
.rail__cap { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 0 4px; }
.rail__cap b { font-weight: 500; font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.rail__cap span { grid-column: 1; font-size: 13px; color: var(--muted); }
.rail__cap em { grid-row: 1; grid-column: 2; font-style: normal; color: var(--rc); transition: transform .3s var(--ease); }
.rail__card:hover .rail__cap em { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
  .rail__track { animation: none; }
  .rail__viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .rail__card[aria-hidden] { display: none; }
}
