/* coffex.de · Stylesheet */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Questrial'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/questrial-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-size: 14px; line-height: 1.4; }
img { max-width: 100%; }
/* Layout: one glass console centred on a carbon-weave ground, a lacquered orb seated in its top edge; all depth from light, not borders */
:root {
  color-scheme: dark;
  --ground: #1d1e21;
  --ground-weave: #232428;
  --panel-top: #2b2c30;
  --panel-bottom: #121315;
  --ink: #eceef2;
  --ink-soft: #a3a7b0;
  --ink-faint: #6b6f78;
  --rim: rgba(255,255,255,.55);
  --accent: #c8d2e4;
  --chev: #2a5cff;           /* Farbe des Doppelpfeils vor "thanks for using my projects" */
  --on: #4fdc6a;
  --off: #ff4d4d;
  --font-display: "Questrial", "Century Gothic", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --mx: 0; --my: 0;
}
html, body { min-height: 100%; }
body {
  background-color: var(--ground);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255,255,255,.06), transparent 70%),
    repeating-linear-gradient(45deg, var(--ground-weave) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px);
  color: var(--ink);
  font-family: var(--font-display);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: clamp(24px, 6vh, 72px);
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.stage { width: min(680px, 100%); perspective: 1400px; }

.console {
  --orb: 176px;              /* glass orb diameter */
  --gap: 14px;               /* air between orb and the cut-out */
  --cy: calc(var(--orb) * -.09); /* orb centre above the panel edge: ~40% of the orb sinks into the panel */
  --r: calc(var(--orb) / 2 + var(--gap));
  position: relative;
  margin-top: calc(var(--orb) / 2 - var(--cy) + 12px);
  padding: calc(var(--r) + var(--cy) + 24px) clamp(20px, 6vw, 56px) 28px;
  transform: none;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}
/* the panel itself lives in its own layer so it can be cut around the orb */
.shell-wrap {
  position: absolute; inset: 0;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)) drop-shadow(0 2px 0 rgba(0,0,0,.6));
  pointer-events: none;
}
.shell {
  position: absolute; inset: 0;
  border-radius: 34px;
  background:
    radial-gradient(ellipse 70% 55% at calc(50% + var(--mx) * 30%) calc(32% + var(--my) * 20%), rgba(255,255,255,.10), transparent 70%),
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow:
    inset 0 1.5px 0 var(--rim),
    inset 0 -1px 0 rgba(255,255,255,.12),
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 -30px 60px rgba(0,0,0,.45);
  -webkit-mask: radial-gradient(circle var(--r) at 50% var(--cy), transparent 99.2%, #000 100%);
          mask: radial-gradient(circle var(--r) at 50% var(--cy), transparent 99.2%, #000 100%);
}
/* glass sheen across the upper half */
.shell::before {
  content: "";
  position: absolute; inset: 0 0 50% 0;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 85%);
}
/* chrome rim highlight that follows the light */
.shell::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 34px;
  padding: 1.5px;
  background: conic-gradient(from calc(200deg + var(--mx) * 40deg) at 50% 50%,
    rgba(255,255,255,.75), rgba(255,255,255,.08) 25%, rgba(255,255,255,.35) 50%, rgba(255,255,255,.06) 75%, rgba(255,255,255,.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .7;
}
/* silver bevel along the cut-out edge, only where it runs through the panel */
.notch {
  position: absolute; left: 50%; top: var(--cy);
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.55),
    0 0 0 3px rgba(0,0,0,.55),
    0 0 18px 4px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(255,255,255,.08);
  transition: box-shadow 1.2s ease;
  clip-path: inset(calc(var(--r) - var(--cy)) -30px -30px -30px);
  pointer-events: none;
}

/* black glass orb, seated in the cut-out, slightly see-through */
.orb {
  position: absolute; left: 50%; top: var(--cy);
  width: var(--orb); height: var(--orb);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(6,6,8,.45) 0%, rgba(6,6,8,.65) 62%, rgba(2,2,3,.92) 86%, rgba(0,0,0,.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 -10px 24px rgba(0,0,0,.6),
    0 0 0 1px rgba(0,0,0,.55),
    0 0 16px rgba(0,0,0,.65);
  overflow: hidden;
}
/* light that has passed through the glass and pools at the bottom */
.orb .caustic {
  position: absolute; left: 18%; right: 18%; bottom: 6%; height: 34%;
  border-radius: 50%;
  background: radial-gradient(ellipse at calc(50% - var(--mx) * 18%) 80%, rgba(255,255,255,.07), transparent 70%);
  filter: blur(4px);
  z-index: 1;
}
/* Grundeinstellung: Licht von innen. Die Kugel bleibt schwarzes Glas, nur ihr Inneres glüht;
   zum Rand hin läuft die Farbe immer in Schwarz aus. Stärke --fill-amt 0..1,
   Farbe leer = folgt dem aktiven Zustand (--tint). */
@property --fill-amt { syntax: "<number>"; inherits: true; initial-value: 0; }
.orb .fill {
  --fc: var(--fill-color, var(--tint));
  position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 56%,
    color-mix(in srgb, var(--fc) 85%, black) 0%,
    color-mix(in srgb, var(--fc) 55%, black) 24%,
    color-mix(in srgb, var(--fc) 22%, transparent) 46%,
    transparent 64%);
  filter: blur(6px);
  opacity: var(--fill-amt);
  transition: opacity 1.2s ease, --fill-amt 1.2s ease;
}
/* Fokus auf einen Bereich: glüht nur an Position --fx/--fy mit Größe --fs */
.orb.fill-area .fill {
  background: radial-gradient(circle at calc(var(--fx, .5) * 100%) calc(var(--fy, .7) * 100%),
    color-mix(in srgb, var(--fc) 85%, black) 0%,
    color-mix(in srgb, var(--fc) 45%, transparent) calc(var(--fs, .5) * 30%),
    transparent calc(var(--fs, .5) * 62%));
}
/* der Rand bleibt immer schwarz: dunkle Glasschicht über dem Glühen */
.orb .fill::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(0,0,0,.75) 78%, #000 92%);
}
.orb::before { z-index: 2; }
.orb::after { z-index: 3; }
.orb .rimlight { z-index: 2; }

/* light effects inside the glass, painted on a canvas; colour follows the status */
.orb .fx { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; z-index: 0; }
.orb { cursor: pointer; }
/* reflected window: a soft, curved highlight across the upper third */
.orb::before {
  content: "";
  position: absolute;
  left: calc(14% + var(--mx) * 5%); right: calc(14% - var(--mx) * 5%);
  top: 5%; height: 44%;
  border-radius: 50% / 62% 62% 38% 38%;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.22) 45%, rgba(255,255,255,.03) 80%, transparent);
}
/* the one sharp hot spot that sells the sphere */
.orb::after {
  content: "";
  position: absolute; width: 12%; height: 7%;
  left: calc(31% + var(--mx) * 7%); top: calc(13% + var(--my) * 3%);
  border-radius: 50%;
  background: #fff;
  filter: blur(2.5px);
  box-shadow: 0 0 14px 4px rgba(255,255,255,.55);
  transform: rotate(-24deg);
}
/* thin fresnel rim light on the lower edge */
.orb .rimlight {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 -2px 3px rgba(255,255,255,.28), inset 0 -8px 14px -6px rgba(255,255,255,.06);
}

.console > :not(.shell-wrap):not(.notch):not(.orb):not(.tilt-toggle) { position: relative; }
/* 3D-Kippen der Platte nur, wenn der Besucher es einschaltet (Standard: fest) */
.tilt .console { transform: rotateX(calc(var(--my) * -4deg)) rotateY(calc(var(--mx) * 5deg)); }
.tilt-toggle {
  position: absolute; z-index: 3; top: 16px; right: 20px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 99px;
  background: rgba(0,0,0,.25); color: var(--ink-soft, #9aa3b2);
  font: 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s;
}
.tilt-toggle:hover, .tilt-toggle:focus-visible { opacity: 1; border-color: rgba(255,255,255,.22); outline: none; }
.tilt-toggle .tt-led { width: 6px; height: 6px; border-radius: 50%; background: #444b57; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); }
.tilt .tilt-toggle .tt-led { background: var(--chev); box-shadow: 0 0 6px var(--chev); }
@media (max-width: 520px) { .tilt-toggle { top: 10px; right: 12px; } }
@media (prefers-reduced-motion: reduce) { .tilt-toggle { display: none; } }
.welcome {
  margin: 0;
  text-align: center;
  font-weight: 400;
  font-size: clamp(30px, 6.4vw, 44px);
  letter-spacing: .01em;
  text-wrap: balance;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.25), 0 -1px 0 rgba(0,0,0,.9), 0 6px 18px rgba(0,0,0,.6);
  -webkit-box-reflect: below -6px linear-gradient(transparent 45%, rgba(255,255,255,.22));
}
.welcome small { font-size: .62em; color: var(--ink-soft); }

/* the horizontal glass bar across the middle */
.band {
  margin: 40px 0 0;
  padding: 6px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
/* a slow snore rolling from left to right */
.zz span { display: inline-block; opacity: .4; transform-origin: 50% 70%; animation: doze 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .28s); }
.zz .big { font-size: 1.15em; }
@keyframes doze { 0%, 60%, 100% { transform: translateY(0) scale(1); opacity: .4 } 25% { transform: translateY(-5px) scale(1.3); opacity: 1 } }

.thanks {
  margin: 44px 0 0;
  text-align: center;
  font-size: clamp(17px, 3vw, 20px);
  color: var(--ink);
  -webkit-box-reflect: below -4px linear-gradient(transparent 50%, rgba(255,255,255,.16));
}
.thanks .chev { color: var(--chev); text-shadow: 0 0 10px color-mix(in srgb, var(--chev) 70%, transparent); margin-right: .35em; }

.projects {
  list-style: none;
  margin: 36px 0 0; padding: 0;
  display: grid; gap: 12px;
}
.proj {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  min-height: 88px; box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 48%, rgba(0,0,0,.2) 52%, rgba(0,0,0,.08));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.07), 0 10px 22px -10px rgba(0,0,0,.9);
  transition: transform .2s ease, box-shadow .2s ease;
}
.proj:hover, .proj:focus-visible { transform: translateY(-2px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.12), 0 16px 28px -12px rgba(0,0,0,.95), 0 0 24px -6px color-mix(in srgb, var(--tile, var(--accent)) 35%, transparent); }
.proj-empty { opacity: .45; pointer-events: none; }
.proj-logo { display: block; height: 30px; width: auto; filter: brightness(.9); }
.proj-cxde .proj-gem, .proj-gem.gem-icon { color: var(--tile); }
/* a light sweep that runs across the glass when the button is touched */
.proj::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -40%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.13) 45%, rgba(255,255,255,.22) 50%, transparent);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}
.proj:hover::after, .proj:focus-visible::after { animation: sweep .9s ease-out; }
@keyframes sweep { to { transform: translateX(480%) skewX(-12deg); } }
.proj:hover .proj-gem, .proj:focus-visible .proj-gem { box-shadow: inset 0 2px 3px rgba(255,255,255,.35), inset 0 -6px 10px rgba(0,0,0,.8), 0 0 0 1.5px rgba(255,255,255,.55), 0 0 16px color-mix(in srgb, var(--tile, var(--accent)) 45%, transparent), 0 6px 12px rgba(0,0,0,.6); }
.proj:active { transform: translateY(0) scale(.99); }
/* glowing ring inside the black gem, in the project's colour */
.proj-gem::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--tile, rgba(255,255,255,.25)) 85%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--tile, transparent) 55%, transparent), inset 0 0 6px color-mix(in srgb, var(--tile, transparent) 45%, transparent);
  pointer-events: none;
  transition: box-shadow .25s ease;
}
.proj:hover .proj-gem::before, .proj:focus-visible .proj-gem::before { box-shadow: 0 0 14px color-mix(in srgb, var(--tile, transparent) 80%, transparent), inset 0 0 8px color-mix(in srgb, var(--tile, transparent) 60%, transparent); }
.proj-gem {
  position: relative;
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; color: rgba(255,255,255,.75);
  background: radial-gradient(circle at 50% 30%, #4a4c53, #141518 60%, #050506);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.25), inset 0 -6px 10px rgba(0,0,0,.8), 0 0 0 1.5px rgba(255,255,255,.35), 0 6px 12px rgba(0,0,0,.6);
}
.proj-text { min-width: 0; flex: 1; display: grid; gap: 3px; }
.proj-name { font-size: 18px; overflow-wrap: anywhere; }
@property --tint { syntax: "<color>"; inherits: true; initial-value: #ff3b3b; }
.stage { transition: --tint 1.4s ease; }
.proj-desc {
  font-size: 14px; color: var(--ink-soft); line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.proj-go {
  flex: none; font-size: 26px; line-height: 1; color: var(--tile, var(--accent));
  text-shadow: 0 0 10px color-mix(in srgb, var(--tile, var(--accent)) 60%, transparent);
  animation: nudge 2.4s ease-in-out infinite;
}
.proj:hover .proj-go, .proj:focus-visible .proj-go { animation-duration: .8s; text-shadow: 0 0 14px color-mix(in srgb, var(--tile, var(--accent)) 95%, transparent); }
@keyframes nudge {
  0%, 100% { transform: translateX(0); opacity: .6; }
  50% { transform: translateX(5px); opacity: 1; }
}

dialog.glass {
  width: min(560px, calc(100% - 32px));
  border: 0; border-radius: 24px;
  padding: 28px clamp(20px, 5vw, 36px);
  color: var(--ink);
  font-family: var(--font-display);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: inset 0 1.5px 0 var(--rim), inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.8);
}
dialog.glass::backdrop { background: rgba(10,10,12,.55); backdrop-filter: blur(4px); }
/* project window: keep the orb in view, unblurred, so its colour can be seen */
dialog.proj-dialog::backdrop { background: rgba(10,10,12,.3); backdrop-filter: none; }
[hidden] { display: none !important; }
dialog.glass h2 { margin: 0 0 12px; font-weight: 400; font-size: 26px; }
dialog.glass .ph { margin: 0; color: var(--ink-soft); line-height: 1.6; max-width: 60ch; }
.proj-dialog { box-shadow: inset 0 1.5px 0 var(--rim), inset 0 0 0 1px rgba(255,255,255,.08), 0 0 60px -10px color-mix(in srgb, var(--tile, var(--accent)) 45%, transparent), 0 30px 80px rgba(0,0,0,.8); }
.pd-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
dialog.glass .pd-head h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pd-head .proj-gem { color: var(--tile); box-shadow: inset 0 2px 3px rgba(255,255,255,.35), inset 0 -6px 10px rgba(0,0,0,.8), 0 0 0 1.5px rgba(255,255,255,.5), 0 0 18px color-mix(in srgb, var(--tile) 50%, transparent); }
.pd-head .proj-logo { height: 38px; }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.pd-actions .close { margin-top: 0; }
.pd-links { display: contents; }
.go {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tile, var(--accent)) 38%, transparent), rgba(0,0,0,.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 18px -4px color-mix(in srgb, var(--tile, var(--accent)) 60%, transparent), 0 4px 10px rgba(0,0,0,.6);
}
.go span { color: var(--tile, var(--accent)); animation: nudge 2.4s ease-in-out infinite; display: inline-block; }
.go-off { opacity: .5; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.3)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.close {
  margin-top: 22px; padding: 10px 20px; border: 0; border-radius: 999px;
  font: inherit; color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.6);
}
.close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.services {
  list-style: none;
  margin: 22px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.svc {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  cursor: default;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.6), 0 8px 18px -8px rgba(0,0,0,.8);
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.led {
  flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff 0 12%, var(--c) 40%, color-mix(in srgb, var(--c) 60%, #000) 100%);
  box-shadow: 0 0 0 1.5px #0b0b0d, 0 0 0 2.5px rgba(255,255,255,.12), 0 0 6px 1px var(--c), 0 0 16px 2px var(--glow);
}
.svc.on  { --c: var(--on);  --glow: rgba(79,220,106,.85); }
.svc.off { --c: var(--off); --glow: rgba(255,77,77,.7); }
.svc.on .led { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 1.5px #0b0b0d, 0 0 0 2.5px rgba(255,255,255,.12), 0 0 9px 2px var(--c), 0 0 24px 4px var(--glow); } }
.svc-text { min-width: 0; display: grid; gap: 2px; }
.svc-name { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.svc-state { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }

.foot {
  margin: 36px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.foot a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.foot a:hover, .foot a:focus-visible { color: var(--ink-soft); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* soft floor shadow under the console */
.floor {
  height: 40px; margin: 6px 10% 0;
  background: radial-gradient(ellipse at 50% 0, rgba(0,0,0,.55), transparent 70%);
  filter: blur(6px);
}

@media (max-width: 480px) {
  .console { --orb: 136px; --gap: 11px; }
  .proj { min-height: 96px; gap: 14px; padding: 14px 16px; }
  .proj-gem { width: 42px; height: 42px; }
  .shell, .shell::after { border-radius: 26px; }
  .shell::before { border-radius: 26px 26px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .zz span, .svc.on .led, .proj-go, .go span, .proj:hover::after, .proj:focus-visible::after { animation: none; }
  .console { transition: none; }
}

/* Textmodus: Text statt Buttons in der Fläche */
.panel-text { color: var(--ink); font-size: 15px; line-height: 1.6; max-width: 62ch; margin: 0 auto; }
.panel-text p { margin: 0 0 .9em; }

/* ---------- Projektseite und Beiträge ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.view { margin: 40px 0 0; }
.cx-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--ink-soft); }
.cx-back {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.07), 0 6px 14px -6px rgba(0,0,0,.9);
}
.cx-back b { color: var(--tile, var(--chev)); font-weight: 400; font-size: 15px; }
.cx-back:hover, .cx-back:focus-visible { color: #fff; }
.proj-head { margin: 0 0 18px; }
.proj-head:hover { transform: none; }
.proj-head .proj-logo { height: 36px; }
.proj-head .proj-desc { -webkit-line-clamp: 4; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post {
  position: relative; display: grid; grid-template-columns: 132px 1fr auto; gap: 16px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 20px -10px rgba(0,0,0,.9);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover, .post:focus-visible { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.1), 0 14px 26px -12px rgba(0,0,0,.95), 0 0 22px -8px color-mix(in srgb, var(--tile) 40%, transparent); }
.post-cover { width: 132px; height: 84px; border-radius: 10px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.post-nocover { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tile) 30%, #222), #0b0b0d 70%); }
.post-text { min-width: 0; display: grid; gap: 4px; }
.post-meta { font: 10px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tile); }
.post-title { font-size: 17px; overflow-wrap: anywhere; }
.post-teaser { font-size: 13px; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.post .proj-go { padding-right: 2px; }
.post-empty { color: var(--ink-faint); text-align: center; padding: 18px; font-size: 14px; }
.article {
  border-radius: 18px; padding: clamp(18px, 4vw, 28px);
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06);
}
.art-meta { margin: 0 0 6px; font: 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tile); }
.art-title { margin: 0 0 10px; font-weight: 400; font-size: clamp(24px, 4.5vw, 30px); color: #fff; overflow-wrap: anywhere; }
.art-teaser { margin: 0 0 18px; color: var(--ink); font-size: 17px; line-height: 1.55; }

/* Editor-Inhalte (Beiträge und Footer-Einträge) */
.rich { color: var(--ink-soft); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich .rh { color: #fff; font-weight: 400; margin: 1.4em 0 .5em; line-height: 1.25; }
.rich .rh1 { font-size: 24px; }
.rich .rh2 { font-size: 20px; }
.rich .rh3 { font-size: 16px; letter-spacing: .04em; }
.rich .rp { margin: 0 0 .9em; }
.rich .size-s { font-size: 13px; }
.rich .size-l { font-size: 18px; color: var(--ink); }
.rich .size-xl { font-size: 22px; line-height: 1.45; color: var(--ink); }
.rich .rq { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--tile, var(--accent)); color: var(--ink); font-style: italic; }
.rich .rl { margin: 0 0 .9em; padding-left: 1.3em; }
.rich a { color: var(--tile, var(--accent)); text-underline-offset: 3px; }
.rich figure { margin: 1.2em 0; }
.rich figure img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.rich .rimg.half { width: min(50%, 320px); }
.rich figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-faint); }
.rich .rgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 1.2em 0; }
.rich .rgal figure { margin: 0; }
.rich .rgal img { aspect-ratio: 4 / 3; object-fit: cover; }
.rich .rbtns { margin: 1.2em 0; }
.rich .rhr { border: 0; height: 1px; margin: 1.6em 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
.entry-dialog { width: min(680px, calc(100% - 32px)); }
.entry-dialog .rich { max-height: 65vh; overflow: auto; margin-bottom: 18px; padding-right: 4px; }
@media (max-width: 520px) {
  .post { grid-template-columns: 1fr auto; }
  .post-cover { grid-column: 1 / -1; width: 100%; height: 150px; }
  .rich .rimg.half { width: 100%; }
}
