/* Werkzeuge: Übersichtsseite. Der Hero ist ein Schreibtisch, auf dem jedes
   Werkzeug dort sitzt, wo es auf einem echten Rechner lebt. */

@font-face { font-family: 'Newsreader'; font-weight: 400 700; font-display: swap; src: url(../inkwell/assets/newsreader.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url(../klecks/assets/fonts/caveat-700.woff2) format('woff2'); }

/* Farben des Werkzeugs im Fokus. Registriert, damit sie weich überblenden. */
@property --a1 { syntax: '<color>'; inherits: true; initial-value: #4763e4; }
@property --a2 { syntax: '<color>'; inherits: true; initial-value: #7a4fe0; }
@property --ex { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root {
  --bg: #090b14;
  --bg-2: #0e111d;
  --panel: #151927;
  --txt: #eef0f7;
  --mut: #a2a8bd;
  --faint: #6b7189;
  --line: rgba(255, 255, 255, .09);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.2, 1.35, .4, 1);
  --gut: clamp(18px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--txt); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--sans); background: var(--bg); overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; text-decoration: none; }
.skip:focus { top: 12px; }

/* ================= Hero: der Schreibtisch ================= */
.hero {
  position: relative; height: 100svh; min-height: 600px; overflow: clip; isolation: isolate;
  --s: 1; --px: 0; --py: 0;
  transition: --a1 1.1s ease, --a2 1.1s ease;
}
.wall {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 60% at 74% 34%, color-mix(in oklab, var(--a1) 36%, transparent), transparent 72%),
    radial-gradient(52% 62% at 18% 92%, color-mix(in oklab, var(--a2) 30%, transparent), transparent 72%),
    radial-gradient(40% 40% at 100% 100%, color-mix(in oklab, var(--a1) 18%, transparent), transparent 70%),
    var(--bg);
}
.wall::before { content: ''; position: absolute; inset: auto 0 0; height: 26%; z-index: 1; background: linear-gradient(transparent, var(--bg)); }
.wall::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(90% 80% at 60% 45%, #000, transparent 85%);
}

/* ---- Menüleiste ---- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 30; height: 38px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; font-weight: 500;
  background: rgba(9, 11, 20, .42); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.bar__l, .bar__r { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bar a { text-decoration: none; color: var(--mut); white-space: nowrap; }
.bar a:hover { color: var(--txt); }
.bar b { font-weight: 600; }
.bar__home { display: inline-flex; align-items: center; gap: 4px; }
.bar__home svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bar__r { gap: 6px; }
.tray { width: 30px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--mut); }
.tray svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tray:hover, .tray.is-focus, .bar__clock:hover, .bar__clock.is-focus { background: rgba(255, 255, 255, .12); color: var(--txt); }
.bar__clock { height: 26px; padding: 0 9px; border-radius: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Die skalierte Arbeitsfläche: 1440 × 900 ---- */
.board {
  position: absolute; left: 50%; top: 50%; width: 1440px; height: 900px;
  translate: -50% -50%; scale: var(--s); transform-origin: 50% 50%;
}
.copy { position: absolute; left: 64px; top: 108px; width: 520px; }
.copy h1 { font: 400 82px/.98 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.copy h1 em { font-style: italic; color: color-mix(in oklab, var(--a1) 45%, #fff); transition: color 1.1s; }
.lede { margin-top: 26px; max-width: 30em; font-size: 17px; line-height: 1.55; color: var(--mut); }

.cap {
  margin-top: 28px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  width: 470px; padding: 12px 14px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .055); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: opacity .22s, translate .22s;
}
.cap.is-swap { opacity: 0; translate: 0 6px; }
.cap img { width: 44px; height: 44px; border-radius: 11px; }
.cap__txt { display: grid; min-width: 0; }
.cap__txt b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.cap__txt span { font-size: 13.5px; line-height: 1.4; color: var(--mut); }
.cap__go {
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: #0a0c14; background: color-mix(in oklab, var(--a1) 38%, #fff); transition: background 1.1s, scale .2s var(--out);
}
.cap__go:hover { scale: 1.04; }

/* ---- Fenster allgemein ---- */
.w {
  position: absolute; z-index: 2;
  translate: calc(var(--px) * var(--d, 0) * 1px) calc(var(--py) * var(--d, 0) * 1px);
  transition: opacity .5s, filter .5s, scale .5s var(--out);
  animation: pop .8s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 80ms + 150ms);
}
@keyframes pop { from { opacity: 0; scale: .86; } }
.w__hit { position: absolute; inset: 0; z-index: 5; border-radius: 14px; }
.hero[data-focus] .w:not(.is-focus) { filter: brightness(.4) saturate(.5); }
.w.is-focus { z-index: 6; scale: 1.025; }

.win {
  position: relative; height: 100%; overflow: hidden; border-radius: 13px;
  background: var(--panel); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 2px 0 rgba(255, 255, 255, .05) inset;
}
.win__bar {
  height: 28px; padding: 0 10px; display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; color: var(--mut); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lights { display: inline-flex; gap: 5px; }
.lights i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }

/* ---- Glint: das Fenster leuchtet in den Farben des Bildes ---- */
.w-glint { left: 596px; top: 74px; width: 452px; height: 290px; }
.glint__glow, .glint__img { position: absolute; inset: 0; }
.glint__glow { inset: -34px; filter: blur(46px) saturate(1.7); opacity: .8; z-index: -1; }
.glint__glow i, .glint__img i { position: absolute; inset: 0; background-size: cover; background-position: center; border-radius: 13px; }
.w-glint .a { background-image: url(assets/glint-a.webp); }
.w-glint .b { background-image: url(assets/glint-b.webp); opacity: 0; }
.w-glint b.a, .w-glint b.b, .w-glint .glint__pal.a, .w-glint .glint__pal.b { background-image: none; }
.win--bare { border-color: rgba(255, 255, 255, .16); }
.glint__top, .glint__bar {
  position: absolute; left: 8px; right: 8px; display: flex; align-items: center; gap: 10px; padding: 0 10px; height: 28px;
  border-radius: 9px; font-size: 11px; font-weight: 500; color: #fff;
  background: rgba(10, 12, 20, .46); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.glint__top { top: 8px; right: auto; }
.glint__bar { bottom: 8px; justify-content: space-between; }
.glint__file { display: grid; }
.glint__file b, .glint__pal { grid-area: 1 / 1; font-weight: 500; }
.glint__bar { display: grid; grid-template-columns: 1fr auto; }
.glint__pal { display: flex; gap: 4px; }
.glint__pal i { width: 13px; height: 13px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.glint__zoom { grid-area: 1 / 2; font-variant-numeric: tabular-nums; opacity: .8; }
.w-glint.is-focus .b { animation: glintIn 7s ease-in-out infinite; }
.w-glint.is-focus b.a, .w-glint.is-focus .glint__pal.a { animation: glintOut 7s ease-in-out infinite; }
@keyframes glintIn { 0%, 6% { opacity: 0; } 20%, 62% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes glintOut { 0%, 6% { opacity: 1; } 20%, 62% { opacity: 0; } 76%, 100% { opacity: 1; } }

/* ---- Horizon: Sonnenbahn unter der Menüleiste ---- */
.w-horizon { left: 1124px; top: 56px; width: 264px; height: 322px; }
.hz {
  height: 100%; padding: 16px; border-radius: 16px; overflow: hidden; color: #f4f2fb;
  background: #14143a;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
}
.hz__head { display: flex; justify-content: space-between; align-items: flex-start; }
.hz__head span { display: block; font-size: 12px; font-weight: 500; opacity: .8; }
.hz__head b { display: block; font: 300 38px/1.05 var(--sans); letter-spacing: -.03em; }
.hz__head p { text-align: right; font-size: 11px; line-height: 1.5; }
.hz__sky { position: relative; height: 96px; margin: -34px -16px 0; overflow: hidden; background: linear-gradient(180deg, transparent 0%, rgba(120, 62, 130, .55) 62%, #e2765c 100%); border-bottom: 1px solid rgba(255, 220, 190, .55); }
.hz__arc { position: absolute; inset: 0 16px; }
.hz__head { position: relative; z-index: 1; }
.hz__sky svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hz__sky path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; }
.hz__sun {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6d8, #ffc457 60%, #ff9340);
  box-shadow: 0 0 22px 6px rgba(255, 180, 80, .6), 0 0 60px 20px rgba(255, 130, 90, .35);
  offset-path: path('M16 96Q116 -40 216 96'); offset-rotate: 0deg; offset-distance: var(--sun, 60%);
}
.w-horizon.is-focus .hz__sun { animation: sunrise 2.6s var(--out) backwards; }
@keyframes sunrise { from { offset-distance: 0%; } }
.hz__times { display: flex; justify-content: space-between; padding-top: 8px; font-size: 10.5px; font-variant-numeric: tabular-nums; color: rgba(244, 242, 251, .72); }
.hz__lane { position: relative; height: 12px; margin-top: 10px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.hz__lane i { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; }
.hz__lane em { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: #fff; left: var(--now, 50%); }
.hz__list { margin-top: 12px; display: grid; gap: 5px; font-size: 11.5px; }
.hz__list li { display: flex; align-items: center; gap: 8px; }
.hz__list i { width: 3px; height: 13px; border-radius: 2px; }
.hz__list b { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .7; }

/* ---- Klecks: ein beschrifteter Screenshot ---- */
.w-klecks { left: 548px; top: 410px; width: 330px; height: 252px; }
.w-klecks .win { background: #15121e; }
.kl { display: grid; grid-template-columns: 34px 1fr; height: calc(100% - 28px); }
.kl__tools { display: grid; align-content: start; justify-items: center; gap: 7px; padding-top: 10px; border-right: 1px solid rgba(255, 255, 255, .06); }
.kl__tools i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .09); }
.kl__tools i.on { background: linear-gradient(135deg, #ff8a4c, #ff3d7f); }
.kl__tools b { width: 16px; height: 16px; margin-top: 6px; border-radius: 50%; background: #ff3d5a; box-shadow: 0 0 0 2px #15121e, 0 0 0 3px rgba(255, 255, 255, .3); }
.kl__frame { margin: 12px 14px; padding: 12px; border-radius: 10px; background: linear-gradient(120deg, #ff8a4c, #ff3d7f 50%, #8b5cf6); }
.kl__shot { position: relative; height: 100%; border-radius: 6px; background: url(assets/klecks.webp) center / cover; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); }
.kl__shot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kl__shot path, .kl__shot ellipse { fill: none; stroke: #ff3d5a; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.kl__px { position: absolute; left: 4%; top: 68%; width: 30%; height: 22%; border-radius: 3px; background: url(assets/klecks-px.png) center / 100% 100%; image-rendering: pixelated; }
.kl__label { position: absolute; left: 8px; top: 30px; padding: 0 9px 2px; border-radius: 6px; rotate: -4deg; font: 700 17px/1.35 'Caveat', cursive; color: #fff; background: #ff3d5a; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); white-space: nowrap; }
.kl__num { position: absolute; left: 203px; top: 76px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #ff3d5a; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, .4); }
.w-klecks.is-focus .kl__arrow { animation: draw .7s .35s var(--out) backwards; }
.w-klecks.is-focus .kl__head { animation: draw .25s 1s ease-out backwards; }
.w-klecks.is-focus .kl__ring { animation: draw .6s 1.25s var(--out) backwards; }
.w-klecks.is-focus .kl__label { animation: stamp .45s .05s var(--spring) backwards; }
.w-klecks.is-focus .kl__num { animation: stamp .45s 1.8s var(--spring) backwards; }
.w-klecks.is-focus .kl__px { animation: fade .4s 2.1s backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes stamp { from { opacity: 0; scale: .3; } }
@keyframes fade { from { opacity: 0; } }

/* ---- Inkwell: Quelltext links, gesetzter Text rechts ---- */
.w-inkwell { left: 850px; top: 356px; width: 400px; height: 268px; }
.win--paper { background: #f7f4ee; color: #1f1c17; border-color: rgba(0, 0, 0, .12); }
.win--paper .win__bar { color: #6b6355; border-bottom-color: #e3dccf; }
.win--paper .lights i { background: #d2c9b8; }
.ink__modes { margin-left: auto; display: flex; padding: 2px; border-radius: 6px; background: #efeae0; font-size: 9.5px; }
.ink__modes i { font-style: normal; padding: 1px 7px; border-radius: 4px; }
.ink__modes i.on { background: #fffdf9; color: #1f1c17; box-shadow: 0 1px 2px rgba(40, 30, 10, .15); }
.ink { display: grid; grid-template-columns: 1fr 1fr; height: calc(100% - 28px); }
.ink__src { padding: 14px 12px; font: 400 10.5px/1.7 var(--mono); color: #6b6355; white-space: pre-wrap; border-right: 1px solid #e3dccf; background: #f3eee5; }
.ink__src .h { color: #3346d3; font-weight: 600; }
.ink__src .s { color: #1f1c17; font-weight: 600; }
.ink__src .m { background: #fbe7a1; color: #1f1c17; }
.ink__caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: #3346d3; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ink__out { padding: 14px 16px; font: 400 13px/1.5 'Newsreader', Georgia, serif; background: #fffdf9; }
.ink__out h3 { font: 600 21px/1.2 'Newsreader', Georgia, serif; margin-bottom: 6px; }
.ink__out h4 { font: 600 15px/1.2 'Newsreader', Georgia, serif; margin: 12px 0 5px; }
.ink__out mark { background: #fbe7a1; color: inherit; padding: 0 2px; border-radius: 2px; }
.ink__out li { display: flex; align-items: center; gap: 7px; min-height: 1.5em; }
.ink__out li i { flex: none; width: 11px; height: 11px; border-radius: 3px; border: 1.3px solid #9a9182; transition: background .2s, border-color .2s; }
.ink__out li.done i { background: #3346d3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; border-color: #3346d3; }
.ink__out li.done { color: #9a9182; text-decoration: line-through; }

/* ---- Cubory: ein Würfel, der sich zerlegt ---- */
.w-cubory { left: 1206px; top: 424px; width: 196px; height: 214px; }
.w-cubory .win { background: #0a0e2a; border-color: rgba(160, 170, 255, .22); }
.cb {
  position: relative; height: calc(100% - 28px);
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(160, 170, 255, .07) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(160, 170, 255, .07) 19px 20px),
    radial-gradient(70% 60% at 70% 20%, rgba(255, 61, 138, .22), transparent 70%);
}
.cb__scene { position: absolute; inset: 0 0 34px; display: grid; place-items: center; perspective: 520px; }
.cb__cube { position: relative; width: 62px; height: 62px; transform-style: preserve-3d; animation: spin 16s linear infinite; transition: --ex .9s var(--out); }
.w-cubory.is-focus .cb__cube { --ex: 20px; }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.cb__cube i {
  position: absolute; inset: 0; border-radius: 5px;
  border: 1.5px solid rgba(255, 150, 210, .9);
  background: linear-gradient(135deg, rgba(255, 61, 138, .24), rgba(124, 92, 255, .3));
  box-shadow: 0 0 18px rgba(255, 61, 138, .35) inset;
}
.cb__cube i:nth-child(1) { transform: translateZ(calc(31px + var(--ex))); }
.cb__cube i:nth-child(2) { transform: rotateY(90deg) translateZ(calc(31px + var(--ex))); }
.cb__cube i:nth-child(3) { transform: rotateY(180deg) translateZ(calc(31px + var(--ex))); }
.cb__cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(31px + var(--ex))); }
.cb__cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(31px + var(--ex))); }
.cb__cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(31px + var(--ex))); }
.cb__dim { position: absolute; left: 14px; top: 10px; font: 500 9.5px var(--mono); color: #9aa3d0; }
.cb__chips { position: absolute; left: 8px; right: 8px; bottom: 9px; display: flex; gap: 4px; font-size: 9px; font-weight: 500; color: #9aa3d0; }
.cb__chips span { padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(160, 170, 255, .22); }
.cb__chips .on { color: #fff; border-color: transparent; background: linear-gradient(92deg, #ff3d8a, #7c5cff); }

/* ---- Prism: der Mini-Player ---- */
.w-prism { left: 618px; top: 690px; width: 340px; height: 92px; }
.pr {
  height: 100%; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 0 16px 0 14px;
  border-radius: 20px; background: #141418; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 26px 60px -18px rgba(0, 0, 0, .75);
}
.pr__play { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #1f1f25; }
.pr__play::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; padding: 3px; background: conic-gradient(#ff4d6d, #ffc94d, #4dffb2, #4da6ff, #ff4d6d); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: turn 6s linear infinite paused; }
.w-prism.is-focus .pr__play::before, .w-prism.is-focus .pr__bars i { animation-play-state: running; }
@keyframes turn { to { rotate: 1turn; } }
.pr__play svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.pr__cover { width: 52px; height: 52px; border-radius: 10px; background: radial-gradient(circle at 50% 62%, #fff3c4 0 22%, #ffb86b 23% 34%, transparent 35%), linear-gradient(180deg, #1c2a5e, #3b4fa8 55%, #0f1738 56%); }
.pr__meta { display: grid; min-width: 0; }
.pr__meta b { font: 600 14px/1.25 'Geist', sans-serif; }
.pr__meta span { font-size: 11px; color: rgba(243, 243, 245, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr__bars { display: flex; align-items: flex-end; gap: 2px; height: 20px; margin-top: 5px; }
.pr__bars i { flex: 1; height: 100%; border-radius: 1.5px; transform-origin: bottom; animation: eq 1s ease-in-out infinite alternate paused; }
@keyframes eq { from { scale: 1 .15; } to { scale: 1 1; } }
.pr__src { display: grid; gap: 5px; }
.pr__src i { width: 7px; height: 7px; border-radius: 50%; }
.pr__src i:nth-child(1) { background: #ff4d6d; } .pr__src i:nth-child(2) { background: #ffc94d; }
.pr__src i:nth-child(3) { background: #4dffb2; } .pr__src i:nth-child(4) { background: #4da6ff; }

/* ---- Stoke: das Haus, in dem das Feuer angeht ---- */
.w-stoke { left: 1004px; top: 656px; width: 388px; height: 132px; }
.st {
  position: relative; height: 100%; padding: 16px 16px 12px 138px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #1b1512, #120e0c); border: 1px solid rgba(255, 210, 122, .16);
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, .75);
}
.st__house { position: absolute; left: -50px; top: -12px; height: 156px; aspect-ratio: 520 / 345; mix-blend-mode: lighten; }
.st__house img { position: absolute; inset: 0; width: 100%; height: 100%; }
.st__house .lit { opacity: 0; transition: opacity 1.4s ease; }
.w-stoke.is-focus .st__house .lit { opacity: 1; }
.st__list { display: grid; gap: 4px; font-size: 12px; color: #f3e9e1; }
.st__list div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; }
.st__list i { width: 7px; height: 7px; border-radius: 50%; background: #5a4a40; transition: background .4s, box-shadow .4s; }
.st__list b { font: 500 12px var(--mono); }
.st__list span { font-size: 10.5px; color: #a8998f; }
.st__list p { display: flex; gap: 5px; margin-top: 5px; }
.st__list p span { padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); }
.w-stoke.is-focus .st__list i { background: #5cc58a; box-shadow: 0 0 8px #5cc58a; }
.w-stoke.is-focus .st__list div:nth-child(2) i { transition-delay: .35s; }
.w-stoke.is-focus .st__list div:nth-child(3) i { transition-delay: .7s; }

/* ---- Orbo: Datei mit Ring ---- */
.w-orbo { left: 150px; top: 536px; width: 260px; height: 260px; }
.orbo__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; scale: .7; transition: opacity .35s, scale .5s var(--spring); pointer-events: none; }
.w-orbo.is-open .orbo__ring { opacity: 1; scale: 1; }
.orbo__ring path { fill: rgba(22, 26, 44, .82); stroke: rgba(177, 151, 252, .3); stroke-width: 1; transition: fill .18s, stroke .18s; }
.orbo__ring path.on { fill: #7d63e6; stroke: #cdbdff; }
.orbo__ring text { font: 600 11.5px var(--sans); fill: #f2f3f7; text-anchor: middle; dominant-baseline: central; }
.orbo__ring text.sub { font-size: 7.5px; font-weight: 400; fill: rgba(242, 243, 247, .6); }
.orbo__file {
  inset: auto; left: 50%; top: 50%; width: 92px; margin: -46px 0 0 -46px; padding: 6px 0;
  display: grid; justify-items: center; gap: 6px; text-decoration: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none;
  translate: var(--fx, 0px) var(--fy, 0px); transition: translate .45s var(--spring);
}
.orbo__file.is-drag { cursor: grabbing; transition: none; }
.orbo__doc {
  position: relative; width: 44px; height: 54px; border-radius: 7px 16px 7px 7px; display: grid; place-items: end center; padding-bottom: 7px;
  background: linear-gradient(160deg, #fff, #d9defa); box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .6);
}
.orbo__doc::before { content: ''; position: absolute; right: 0; top: 0; width: 14px; height: 14px; border-radius: 0 0 0 6px; background: #b9c0ee; }
.orbo__doc i { font: 700 9px var(--sans); font-style: normal; padding: 1px 5px; border-radius: 4px; color: #fff; background: #7d63e6; }
.orbo__name { padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; background: rgba(9, 11, 20, .6); white-space: nowrap; }
.orbo__file.is-done .orbo__doc { animation: stamp .45s var(--spring); }
.orbo__hint { position: absolute; left: 50%; bottom: 52px; translate: -50% 0; font-size: 12px; color: var(--faint); white-space: nowrap; transition: opacity .3s; }
.w-orbo.is-open .orbo__hint { opacity: 0; }

/* ---- Session Buddy: die Insel ---- */
.island {
  left: 50%; top: 5px; z-index: 40; width: 172px; margin-left: -86px; animation-delay: .1s;
  --d: 0;
}
.island.is-focus { scale: 1; z-index: 40; }
.island .w__hit { border-radius: 16px; }
.island__pill, .island__card { background: #000; color: #f5f6f8; }
.island__pill { height: 28px; padding: 0 10px 0 8px; border-radius: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .5); }
.buddy { width: 22px; height: 16px; border-radius: 7px; background: linear-gradient(180deg, #f7f0e4, #e2d6c6); display: flex; align-items: center; justify-content: center; gap: 6px; }
.buddy i { width: 3px; height: 3px; border-radius: 50%; background: #17120d; animation: wink 4.5s infinite; }
@keyframes wink { 0%, 93%, 100% { scale: 1 1; } 96% { scale: 1 .1; } }
.island__txt { flex: 1; }
.island__dots { display: flex; gap: 4px; }
.island__dots i { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; }
.island__dots .wait { background: #f5a524; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.island__card {
  position: absolute; left: 50%; top: 0; width: 330px; margin-left: -165px; padding: 40px 14px 14px; border-radius: 22px; z-index: -1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px rgba(0, 0, 0, .7);
  opacity: 0; scale: .52 .2; transform-origin: 50% 0; transition: scale .5s var(--spring), opacity .25s; pointer-events: none;
}
.island.is-open .island__card { opacity: 1; scale: 1; }
.island.is-open .island__pill { box-shadow: none; }
.island__row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.island__row span { font: 400 11px var(--mono); color: #9398a1; }
.island__row em { margin-left: auto; font-style: normal; font-size: 11px; color: #f5a524; }
.island__card p { margin-top: 10px; font-size: 14px; font-weight: 600; }
.island__card code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 9px; font: 400 11.5px var(--mono); background: #15161b; color: #c9cdd6; }
.island__btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; font-size: 11.5px; font-weight: 500; }
.island__btns span { padding: 5px 11px; border-radius: 999px; background: #1c1d23; color: #c9cdd6; transition: background .2s, color .2s, scale .15s; }
.island__btns .ok { background: #f5f6f8; color: #000; }
.island__btns .ok.is-hit { background: #34d399; scale: .93; }

/* ---- Dock ---- */
.dock {
  position: absolute; left: 50%; bottom: 14px; z-index: 30; translate: -50% 0;
  display: flex; align-items: flex-end; gap: 8px; height: 68px; padding: 0 10px 9px;
  border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .11);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .6);
  animation: rise .9s .5s var(--out) backwards;
}
@keyframes rise { from { opacity: 0; translate: -50% 90px; } }
.dock a { position: relative; flex: none; width: calc(50px * var(--k, 1)); text-decoration: none; transition: width .18s var(--out), translate .25s var(--out); }
.dock.is-live a { transition: translate .25s var(--out); }
.dock img { display: block; width: 100%; aspect-ratio: 1; border-radius: 24%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.dock a::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .3s; }
.dock a.is-focus { translate: 0 -8px; }
.dock a.is-focus::after { opacity: .9; translate: 0 8px; }
.dock span {
  position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 4px; padding: 3px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500; white-space: nowrap; background: rgba(9, 11, 20, .85); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s;
}
.dock a:hover span, .dock a:focus-visible span { opacity: 1; translate: -50% 0; }

/* Beim Wegscrollen sinkt der Schreibtisch nach hinten weg. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (min-height: 560px) {
    .board { animation: away linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
    @keyframes away { to { transform: translateY(9%) scale(.9); opacity: .1; } }
  }
}

/* ================= Liste ================= */
.all { padding: clamp(72px, 11vw, 150px) var(--gut) 0; max-width: 1320px; margin: 0 auto; }
.all__head { max-width: 40rem; }
.all h2, .same h2 { font: 400 clamp(40px, 6vw, 76px)/1 var(--serif); letter-spacing: -.015em; }
.all__head p { margin-top: 18px; color: var(--mut); }
.rows { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 380px); gap: clamp(18px, 3vw, 44px); align-items: center;
  padding: clamp(24px, 3.2vw, 40px) clamp(0px, 1.5vw, 20px); border-bottom: 1px solid var(--line);
}
.row::before {
  content: ''; position: absolute; inset: 0 calc(var(--gut) * -.5); z-index: -1; border-radius: 28px; opacity: 0; transition: opacity .35s;
  background: radial-gradient(70% 140% at 85% 50%, color-mix(in oklab, var(--a1) 20%, transparent), transparent 70%), radial-gradient(50% 120% at 10% 50%, color-mix(in oklab, var(--a2) 10%, transparent), transparent 70%);
}
.row:hover::before, .row:focus-within::before { opacity: 1; }
.row__icon { width: 72px; height: 72px; border-radius: 24%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); transition: rotate .5s var(--spring), scale .5s var(--spring); }
.row:hover .row__icon { rotate: -6deg; scale: 1.08; }
.row h3 { font: 400 clamp(28px, 3.6vw, 46px)/1.08 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.row h3 a { text-decoration: none; }
.row h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.row h3 a:focus-visible { outline: none; }
.row:has(h3 a:focus-visible) { outline: 2px solid #fff; outline-offset: 4px; border-radius: 20px; }
.row__txt p { margin-top: 12px; max-width: 34em; color: var(--mut); }
.row__txt p b { font-weight: 600; color: var(--txt); }
.row__foot { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.os { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mut); }
.os li { padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line); }
.dl {
  position: relative; z-index: 2; padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: #0a0c14; background: color-mix(in oklab, var(--a1) 45%, #fff); transition: scale .2s var(--out);
}
.dl:hover { scale: 1.05; }
.row__shot { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .8); transition: scale .6s var(--out), rotate .6s var(--out), box-shadow .6s; }
.row:hover .row__shot { scale: 1.035; rotate: .6deg; box-shadow: 0 30px 70px -24px color-mix(in oklab, var(--a1) 55%, #000); }

/* ================= Gemeinsames ================= */
.same { padding: clamp(80px, 12vw, 160px) var(--gut) clamp(64px, 9vw, 120px); max-width: 1320px; margin: 0 auto; }
.same__grid { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.same__grid h3 { font: 400 28px/1.15 var(--serif); }
.same__grid p { margin-top: 8px; color: var(--mut); max-width: 26em; }
.same a, .foot a { color: var(--txt); text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.same a:hover, .foot a:hover { text-decoration-color: #fff; }
.same__more { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); max-width: 44em; color: var(--mut); }
.same__coffee { margin-top: 10px; color: var(--mut); }

.foot { padding: 28px var(--gut) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14.5px; color: var(--mut); }
.foot__links { display: flex; gap: 20px; }

/* ================= Schmale Bildschirme: kein Schreibtisch, ein Startbildschirm ================= */
@media (max-width: 899px), (max-height: 559px) {
  .hero { height: auto; min-height: 0; padding: 74px var(--gut) 48px; overflow: visible; }
  .board { position: static; width: auto; height: auto; translate: none; scale: none; }
  .board > .w, .island, .cap, .tray, .bar__l a[href^='#'] { display: none; }
  .copy { position: static; width: auto; }
  .copy h1 { font-size: clamp(44px, 13.5vw, 84px); white-space: normal; }
  .dock {
    position: static; translate: none; height: auto; margin-top: 36px; padding: 20px 12px; animation: none;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 8px; border-radius: 28px;
  }
  .dock a { width: auto; display: grid; justify-items: center; gap: 8px; }
  .dock a.is-focus { translate: none; }
  .dock a::after { display: none; }
  .dock img { width: 62px; }
  .dock span { position: static; translate: none; opacity: 1; padding: 0; background: none; border: 0; font-size: 13px; color: var(--mut); }
  .dock a:hover span, .dock a:focus-visible span { translate: none; }
  .row { grid-template-columns: 56px minmax(0, 1fr); align-items: start; }
  .row__icon { width: 56px; height: 56px; }
  .row__shot { grid-column: 1 / -1; }
  .same__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1100px) { .bar__l a[href='#gemeinsam'] { display: none; } }
