/* ============================================================
   MAXTRIX — Y2K Chrome (Entwurf)
   Tokens, Materialien und Bausteine. Seiten-Layouts liegen getrennt.
   Keine Inline-Styles: Die Seite läuft unter einer strengen CSP.
   ============================================================ */

/* Schriften liegen auf dem eigenen Server. Lizenz: SIL Open Font License, siehe fonts/OFL-*.txt
   Anybody ist auf die genutzten Achsen gekürzt (Breite 100-150 %, Stärke 250-850, ohne Hinting). */
@font-face {
  font-family: 'Anybody'; font-style: normal; font-weight: 250 850; font-stretch: 100% 150%; font-display: swap;
  src: url('fonts/anybody-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anybody'; font-style: normal; font-weight: 250 850; font-stretch: 100% 150%; font-display: swap;
  src: url('fonts/anybody-latin.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: 'Audiowide'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/audiowide-latin.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: 'Saira'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/saira-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/saira-latin.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;
}

/* Farben und Materialien. Dunkle Inseln (.y-dark: Instrument, Terminal, Startsequenz)
   holen sich im hellen Modus hier die dunklen Werte zurück. */
:root, .y-dark {
  color-scheme: dark;

  /* ---------- Farbe: Blau, von Nacht bis Licht ---------- */
  --y-abyss: #040A1C;
  --y-navy: #0A1A3F;
  --y-cobalt: #1E4FA8;
  --y-azure: #4C8FE6;
  --y-ice: #BFD8F2;
  --y-light: #F3F8FF;

  /* ---------- Chrome ---------- */
  --y-chrome-1: #DFE8F3;
  --y-chrome-2: #A9BBD1;
  --y-chrome-3: #64778F;
  --y-chrome-edge: #1C2942;

  /* ---------- Akzent: Kupfer, nur für Abzeichen und Status ---------- */
  --y-copper-hi: #F8B09C;
  --y-copper: #E8735A;
  --y-copper-deep: #B5452F;
  --y-copper-ink: #3D1208;

  /* ---------- Text ---------- */
  --y-text: #EEF4FD;
  --y-muted: #B7CAE6;
  --y-faint: #8FA9CF;
  --y-on-chrome: #0A1A3F;

  /* ---------- Material-Rezepte ---------- */
  /* Poliertes Chrome: heller Himmel, harte dunkle Horizontkante, Boden reflektiert wieder hell. */
  --y-mat-chrome: linear-gradient(180deg, #FFFFFF 0%, #EAF1F9 16%, #BECDE0 40%, #8496B0 49.5%, #2A3854 51%, #62758F 60%, #B4C4D8 78%, #F1F6FC 94%, #FFFFFF 100%);
  /* Fläche unter Text: gleiche Lichtlogik, aber ohne die dunkle Kante. */
  --y-mat-chrome-soft: linear-gradient(180deg, #FFFFFF 0%, #E8EFF8 44%, #BAC9DC 56%, #D5DFEC 100%);
  /* Chrome als Schriftfüllung, nur für große Überschriften. */
  --y-mat-chrome-text: linear-gradient(180deg, #FFFFFF 0%, #F1F6FD 34%, #C3D5EC 52%, #86A3CE 57%, #BCD0EB 72%, #F3F8FF 100%);
  /* Glas auf Blau: oben hell, unten dunkel getönt, damit Text immer genug Kontrast hat. */
  --y-mat-glass: linear-gradient(180deg, rgb(191 216 242 / .16) 0%, rgb(10 26 63 / .5) 100%);
  --y-mat-glass-ring: linear-gradient(180deg, rgb(255 255 255 / .8) 0%, rgb(191 216 242 / .22) 28%, rgb(76 143 230 / .22) 72%, rgb(255 255 255 / .42) 100%);
  --y-mat-copper: linear-gradient(180deg, var(--y-copper-hi) 0%, var(--y-copper) 38%, var(--y-copper-deep) 100%);
  --y-shadow-float: 0 24px 60px -22px rgb(2 8 28 / .75);
  /* Flächen, die im hellen Modus später andere Werte bekommen */
  --y-page: var(--y-navy);
  --y-line: rgb(191 216 242 / .16);
  --y-line-strong: rgb(191 216 242 / .4);
  --y-mat-scene: linear-gradient(180deg, #06102B 0%, var(--y-navy) 14%, #14397F 46%, var(--y-cobalt) 64%, #18428F 78%, var(--y-navy) 91%, #071230 100%);
  --y-mat-gel: linear-gradient(180deg, #78ACF0 0%, #2F6BD0 46%, #1846A0 54%, #2C68CC 100%);
  /* Bauteile, die in beiden Modi und in dunklen Inseln vorkommen */
  --y-chip-bg: rgb(4 10 28 / .45);
  --y-chip-ring: rgb(191 216 242 / .34);
  --y-chip-hi: rgb(255 255 255 / .18);
  --y-led: var(--y-light);
  --y-led-glow: rgb(191 216 242 / .9);
  --y-inset-bg: rgb(4 10 28 / .5);
  --y-inset-shadow: inset 0 2px 6px rgb(2 8 28 / .7), inset 0 0 0 1px rgb(191 216 242 / .14), 0 1px 0 rgb(255 255 255 / .14);
  --y-track: rgb(191 216 242 / .16);
  --y-fill-1: var(--y-ice);
  --y-fill-2: #FFFFFF;
  --y-wave: #CFE2F8;
  --y-text-shadow: drop-shadow(0 1px 0 rgb(4 10 28 / .55)) drop-shadow(0 14px 30px rgb(10 26 63 / .65));
  --y-btn-shadow: 0 14px 28px -10px rgb(2 8 28 / .85);
}
.y-dark { color: var(--y-text); }

/* ============================================================
   Heller Modus: Silber bei Tageslicht. Blau bleibt die Hauptfarbe,
   Displays bleiben dunkel. Die Wahl setzt js/theme.js als data-theme auf <html>.
   ============================================================ */
:root[data-theme="light"] {
  color-scheme: light;
  --y-ice: #1E4FA8;
  --y-light: #06102B;
  --y-chrome-edge: #51658A;
  --y-text: #0A1A3F;
  --y-muted: #33486E;
  --y-faint: #55698F;
  --y-mat-chrome-text: linear-gradient(180deg, #4A6BA6 0%, #2A4A86 34%, #0E2457 52%, #061238 56%, #2F55A0 70%, #5B80C0 100%);
  --y-mat-glass: linear-gradient(180deg, rgb(255 255 255 / .84) 0%, rgb(236 242 250 / .68) 100%);
  --y-mat-glass-ring: linear-gradient(180deg, #FFFFFF 0%, rgb(255 255 255 / .6) 30%, rgb(30 79 168 / .22) 74%, rgb(255 255 255 / .95) 100%);
  --y-shadow-float: 0 24px 50px -26px rgb(20 50 110 / .42);
  --y-page: #E8EFF8;
  --y-line: rgb(10 26 63 / .13);
  --y-line-strong: rgb(10 26 63 / .3);
  --y-mat-scene: linear-gradient(180deg, #F7FAFE 0%, #EAF1FA 22%, #CFE0F4 54%, #B4CDEE 70%, #D3E2F4 86%, #E8EFF8 100%);
  --y-chip-bg: rgb(255 255 255 / .72);
  --y-chip-ring: rgb(10 26 63 / .2);
  --y-chip-hi: #FFFFFF;
  --y-led: #2F6BD0;
  --y-led-glow: rgb(47 107 208 / .75);
  --y-inset-bg: rgb(10 26 63 / .045);
  --y-inset-shadow: inset 0 2px 5px rgb(20 50 110 / .16), inset 0 0 0 1px rgb(10 26 63 / .1), 0 1px 0 #FFFFFF;
  --y-track: rgb(10 26 63 / .1);
  --y-fill-1: #1E4FA8;
  --y-fill-2: #4C8FE6;
  --y-wave: #2F6BD0;
  --y-text-shadow: drop-shadow(0 1px 0 rgb(255 255 255 / .9)) drop-shadow(0 12px 24px rgb(30 79 168 / .22));
  --y-btn-shadow: 0 14px 26px -12px rgb(20 50 110 / .5);
}

:root {
  /* ---------- Schrift ---------- */
  --y-font-display: 'Anybody', 'Saira', system-ui, sans-serif;
  --y-font-text: 'Saira', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --y-font-brand: 'Audiowide', 'Anybody', sans-serif;
  --y-wdth-display: 132%;
  --y-wdth-head: 118%;

  --y-size-display: clamp(2.375rem, 1.1rem + 5.4vw, 5.5rem);
  --y-size-h2: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);
  --y-size-h3: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --y-size-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --y-size-small: .875rem;
  --y-size-label: .75rem;

  /* ---------- Bewegung ---------- */
  --y-ease-out: cubic-bezier(.22, 1, .36, 1);       /* Eingänge */
  --y-ease-spring: cubic-bezier(.34, 1.56, .64, 1);  /* Loslassen: federt minimal über */
  /* Echte Feder: schwingt einmal über und setzt sich. Ältere Browser nehmen die Kurve darüber. */
  --y-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  --y-dur-spring: 560ms;
  --y-dur-press: 90ms;
  --y-dur-micro: 200ms;
  --y-dur-reveal: 640ms;
  --y-dur-sheen: 900ms;
  --y-dur-breathe: 9s;
  --y-dur-drift: 140s;

  /* ---------- Form ---------- */
  --y-radius-panel: 22px;
  --y-radius-s: 12px;
  --y-gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--y-page);
  color: var(--y-text);
  font: 400 var(--y-size-body)/1.6 var(--y-font-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--y-light); outline-offset: 3px; box-shadow: 0 0 0 6px rgb(76 143 230 / .45); }

.y-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Filmkorn über allem, damit die Verläufe nicht steril wirken. */
.y-grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url('../assets/grain.png'); opacity: .26; }

/* ============================================================
   Schrift
   ============================================================ */
.y-display {
  font-family: var(--y-font-display); font-stretch: var(--y-wdth-display);
  font-size: var(--y-size-display); font-weight: 260; line-height: 1; letter-spacing: -.012em;
}
.y-display b { font-weight: 820; }
.y-h2 { text-wrap: balance; font-family: var(--y-font-display); font-stretch: var(--y-wdth-head); font-size: var(--y-size-h2); font-weight: 300; line-height: 1.08; letter-spacing: -.005em; }
.y-h2 b { font-weight: 780; }
.y-h3 { font-family: var(--y-font-display); font-stretch: var(--y-wdth-head); font-size: var(--y-size-h3); font-weight: 680; line-height: 1.2; }
.y-label { font: 600 var(--y-size-label)/1.3 var(--y-font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--y-faint); }
.y-wordmark { font-family: var(--y-font-brand); letter-spacing: .08em; }
.y-muted { color: var(--y-muted); }

/* Chrome-Füllung: je Zeile einzeln setzen, sonst liegt die Horizontkante zwischen den Zeilen. */
.y-chrome-text { color: var(--y-light); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .y-chrome-text {
    display: block; width: fit-content;
    background: linear-gradient(105deg, rgb(255 255 255 / 0) 42%, #fff 50%, rgb(255 255 255 / 0) 58%) 220% 0 / 260% 100% no-repeat, var(--y-mat-chrome-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: var(--y-text-shadow);
  }
}

.y-chrome-text.y-sheen-run { animation: y-text-sheen 1.5s var(--y-ease-out) 1 both; }
@keyframes y-text-sheen { from { background-position: 220% 0, 0 0; } to { background-position: -120% 0, 0 0; } }

/* ============================================================
   Szene: Verlauf, Lichtkugel, Linienbündel, Lichtboden
   ============================================================ */
.y-scene {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--y-mat-scene);
}
/* Lichtboden wie im Fotostudio. Steht im Textfluss, damit er immer unter dem Inhalt liegt und nie hinter Text. */
.y-floor { position: relative; z-index: -1; height: clamp(96px, 13vw, 170px); pointer-events: none; }
.y-floor::before {
  content: ""; position: absolute; left: 50%; top: 56%; width: min(150vw, 1700px); height: clamp(170px, 24vw, 300px);
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgb(243 248 255 / .92) 0%, rgb(191 216 242 / .5) 28%, rgb(76 143 230 / .18) 56%, rgb(76 143 230 / 0) 72%);
}
.y-orb-wrap {
  position: absolute; z-index: -2; left: 50%; top: -7%; width: min(86vw, 700px); aspect-ratio: 1;
  transform: translate3d(calc(-50% + var(--mx, 0) * -16px), calc(var(--my, 0) * -10px), 0);
  transition: transform .6s var(--y-ease-out);
}
.y-orb {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(34% 22% at 34% 20%, rgb(243 248 255 / .2) 0%, rgb(243 248 255 / 0) 100%),
    radial-gradient(circle at 50% 50%, rgb(4 10 28 / 0) 60%, rgb(4 10 28 / .3) 100%),
    radial-gradient(58% 40% at 50% 3%, rgb(191 216 242 / .5) 0%, rgb(191 216 242 / 0) 100%),
    radial-gradient(72% 56% at 50% 104%, rgb(76 143 230 / .7) 0%, rgb(76 143 230 / 0) 100%),
    radial-gradient(circle at 50% 36%, #23509F 0%, #173F8A 38%, #0E2B69 68%, #0A2157 100%);
  box-shadow: 0 0 110px 10px rgb(76 143 230 / .28), inset 0 2px 1px rgb(255 255 255 / .35), inset 0 -40px 90px rgb(4 10 28 / .3);
  animation: y-breathe var(--y-dur-breathe) ease-in-out infinite;
}
@keyframes y-breathe { 0%, 100% { transform: scale(1); opacity: .94; } 50% { transform: scale(1.025); opacity: 1; } }

/* Linienbündel: ein nahtlos kachelbares Band, das sehr langsam driftet. Die Maske steht still. */
.y-waves-mask {
  position: absolute; z-index: -1; left: 0; right: 0; top: 4%; height: clamp(180px, 30vw, 340px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  transform: translate3d(calc(var(--mx, 0) * 22px), calc(var(--my, 0) * 12px), 0);
  transition: transform .6s var(--y-ease-out);
}
.y-waves {
  position: absolute; left: 0; top: 0; height: 100%; width: calc(100% + 1600px);
  /* Das Linienbild dient als Maske, die Farbe kommt aus --y-wave und passt sich dem Modus an. */
  background: var(--y-wave);
  -webkit-mask: url('../assets/wire-waves.svg') repeat-x 0 0 / 1600px 100%; mask: url('../assets/wire-waves.svg') repeat-x 0 0 / 1600px 100%;
  opacity: .8; animation: y-drift var(--y-dur-drift) linear infinite;
}
.y-waves--back { top: 18%; height: 82%; opacity: .32; animation-duration: calc(var(--y-dur-drift) * 1.7); animation-direction: reverse; }
@keyframes y-drift { to { transform: translate3d(-1600px, 0, 0); } }

/* ============================================================
   Knöpfe: Kapsel mit Chrome-Fassung, Glanzlicht unter dem Zeiger, spürbarer Druckpunkt
   ============================================================ */
.y-btn {
  --bx: 50%; --by: -60%; --tx: 0px; --ty: 0px; --lift: 0px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: 0 30px; border-radius: 999px; border: 3px solid transparent; cursor: pointer;
  font-family: var(--y-font-display); font-stretch: 112%; font-weight: 720; font-size: .875rem; line-height: 1; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap; color: var(--y-on-chrome);
  background:
    radial-gradient(96px 46px at var(--bx) var(--by), rgb(255 255 255 / .95), rgb(255 255 255 / 0)) padding-box,
    var(--y-mat-chrome-soft) padding-box,
    var(--y-mat-chrome) border-box;
  box-shadow: inset 0 1px 0 #fff, inset 0 -10px 14px -8px rgb(10 26 63 / .55), 0 0 0 1px var(--y-chrome-edge), var(--y-btn-shadow);
  transform: translate3d(var(--tx), calc(var(--ty) + var(--lift)), 0);
  transition: transform var(--y-dur-spring) var(--y-ease-spring), box-shadow var(--y-dur-micro) var(--y-ease-out);
  transition-timing-function: var(--y-spring), var(--y-ease-out);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
/* Gel-Glanz: helle Kappe auf der oberen Hälfte */
.y-btn::before {
  content: ""; position: absolute; z-index: -1; left: 9px; right: 9px; top: 2px; height: 46%;
  border-radius: 999px 999px 60% 60% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgb(255 255 255 / .85), rgb(255 255 255 / .06));
  transition: opacity var(--y-dur-micro) var(--y-ease-out);
}
/* Glanzlicht, wandert beim Überfahren einmal schräg über die Fläche */
.y-btn::after {
  content: ""; position: absolute; z-index: -1; inset: -3px; border-radius: inherit;
  background: linear-gradient(105deg, rgb(255 255 255 / 0) 36%, rgb(255 255 255 / .9) 50%, rgb(255 255 255 / 0) 64%);
  transform: translateX(-115%);
}
.y-btn .y-ico { transition: transform var(--y-dur-spring) var(--y-spring); }
.y-btn:hover { --lift: -3px; box-shadow: inset 0 1px 0 #fff, inset 0 -10px 14px -8px rgb(10 26 63 / .55), 0 0 0 1px var(--y-chrome-edge), 0 22px 34px -14px rgb(2 8 28 / .9), 0 14px 34px -8px rgb(76 143 230 / .75), 0 0 30px rgb(191 216 242 / .4); }
.y-btn:hover::after { transform: translateX(115%); transition: transform var(--y-dur-sheen) var(--y-ease-out); }
.y-btn:hover .y-ico { transform: translateX(4px); }
.y-btn:hover .y-ico--out { transform: translate(3px, -3px); }
.y-btn:active {
  --lift: 2px; scale: .965;
  box-shadow: inset 0 5px 12px rgb(10 26 63 / .65), inset 0 0 0 1px rgb(10 26 63 / .25), 0 0 0 1px var(--y-chrome-edge), 0 4px 10px -6px rgb(2 8 28 / .8);
  transition-duration: var(--y-dur-press); transition-timing-function: ease-out;
}
.y-btn:active::before { opacity: .35; }
.y-btn { transition-property: transform, box-shadow, scale; }

/* Zweiter Knopf: blaues Gel in derselben Chrome-Fassung */
.y-btn--gel, .y-btn--glass {
  color: #fff; text-shadow: 0 1px 1px rgb(4 10 28 / .65);
  background:
    radial-gradient(96px 46px at var(--bx) var(--by), rgb(255 255 255 / .6), rgb(255 255 255 / 0)) padding-box,
    var(--y-mat-gel) padding-box,
    var(--y-mat-chrome) border-box;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), inset 0 -12px 16px -8px rgb(150 198 255 / .7), 0 0 0 1px var(--y-chrome-edge), var(--y-btn-shadow);
}
.y-btn--gel::before, .y-btn--glass::before { background: linear-gradient(180deg, rgb(255 255 255 / .55), rgb(255 255 255 / .04)); }
.y-btn--gel::after, .y-btn--glass::after { background: linear-gradient(105deg, rgb(255 255 255 / 0) 36%, rgb(255 255 255 / .5) 50%, rgb(255 255 255 / 0) 64%); }
.y-btn--gel:hover, .y-btn--glass:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), inset 0 -12px 16px -8px rgb(170 210 255 / .8), 0 0 0 1px var(--y-chrome-edge), 0 22px 34px -14px rgb(2 8 28 / .9), 0 14px 34px -8px rgb(76 143 230 / .9), 0 0 30px rgb(76 143 230 / .55); }
.y-btn--gel:active, .y-btn--glass:active { box-shadow: inset 0 5px 14px rgb(4 10 28 / .7), 0 0 0 1px var(--y-chrome-edge), 0 4px 10px -6px rgb(2 8 28 / .8); }
.y-btn--s { min-height: 44px; padding: 0 20px; border-width: 2px; font-size: .78rem; }

/* ============================================================
   Glas-Panel mit Chrome-Kante und Lichtfleck, der dem Zeiger folgt
   ============================================================ */
.y-glass {
  position: relative; overflow: hidden; border-radius: var(--y-radius-panel);
  background: var(--y-mat-glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 0 0 1px rgb(4 10 28 / .7), var(--y-shadow-float), inset 0 1px 0 rgb(255 255 255 / .2);
}
.y-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--y-mat-glass-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.y-glass::after {
  content: ""; position: absolute; left: 0; top: 0; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 255 255 / .13), rgb(255 255 255 / 0));
  transform: translate3d(calc(var(--px, -600px) - 50%), calc(var(--py, -600px) - 50%), 0);
  opacity: var(--spot, 0); transition: opacity .35s var(--y-ease-out);
}

/* ============================================================
   Kennzeile wie in einer Autoanzeige: WERT — ZAHL, schräg getrennt
   ============================================================ */
.y-spec {
  container: y-spec / inline-size;
  display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0;
  border-block: 1px solid rgb(191 216 242 / .5); box-shadow: 0 -4px 0 -3px rgb(191 216 242 / .28), 0 4px 0 -3px rgb(191 216 242 / .28);
  background: linear-gradient(180deg, rgb(10 26 63 / .55), rgb(4 10 28 / .7));
}
.y-spec > div { position: relative; display: flex; align-items: baseline; gap: .55em; padding: 13px clamp(14px, 2.4vw, 30px); }
.y-spec > div + div::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: rgb(191 216 242 / .55); transform: skewX(-24deg); }
.y-spec dt, .y-spec dd { font-family: var(--y-font-display); font-stretch: 122%; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.y-spec dt { font-weight: 420; color: var(--y-muted); }
.y-spec dt::after { content: " —"; }
.y-spec dd { font-weight: 720; color: var(--y-light); }
/* Solange sich die Zeile eintippt, erscheint der Strich erst mit dem fertigen Wort. */
.y-spec dt[data-y-pending]::after { visibility: hidden; }
/* Schmal: zwei Spalten mit feinen Linien statt schräger Trenner, die am Zeilenanfang hängen würden.
   Die Zeile misst ihre eigene Breite, damit das auch in schmalen Panels stimmt. */
@container y-spec (max-width: 760px) {
  .y-spec > div { flex: 1 1 50%; flex-direction: column; align-items: center; gap: 3px; padding: 11px 8px; }
  .y-spec dt::after { content: none; }
  .y-spec > div:last-child:nth-child(odd) { flex-basis: 100%; }
  .y-spec > div + div::before { display: none; }
  .y-spec > div:nth-child(even) { border-left: 1px solid rgb(191 216 242 / .28); }
  .y-spec > div:nth-child(n+3) { border-top: 1px solid rgb(191 216 242 / .28); }
  .y-spec dt, .y-spec dd { font-size: .72rem; letter-spacing: .12em; }
}
@media (max-width: 600px) { .y-display { font-weight: 320; } }

/* Schrägstreifen als Trenner */
.y-stripes { display: flex; align-items: center; gap: 14px; }
.y-stripes::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgb(191 216 242 / 0), rgb(191 216 242 / .55)); }
.y-stripes::after {
  content: ""; flex: none; width: 92px; height: 20px; transform: skewX(-32deg);
  background: linear-gradient(90deg, var(--y-chrome-1) 0 26%, transparent 26% 37%, var(--y-chrome-2) 37% 63%, transparent 63% 74%, var(--y-chrome-3) 74% 100%);
}

/* ============================================================
   Abzeichen (SVG): Verlauf, Scanlines, Prägung, leuchtendes Piktogramm
   ============================================================ */
.y-badge {
  display: block; width: var(--y-badge-size, 96px); height: var(--y-badge-size, 96px); overflow: visible;
  transform: perspective(520px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--y-dur-micro) var(--y-ease-out);
  filter: drop-shadow(0 10px 12px rgb(2 8 28 / .55));
}
.y-badge { color: #FFF3EC; }
.y-badge--blue { color: #F3F8FF; }
.y-badge-edge { fill: none; stroke: var(--y-copper-ink); stroke-width: 5.5; stroke-linejoin: round; opacity: .92; }
.y-badge--blue .y-badge-edge { stroke: #050F2B; }
.y-badge-glyph { opacity: .92; }
.y-badge-bloom { opacity: .42; }
.y-badge-host:hover .y-badge, .y-badge-host:focus-visible .y-badge { --rx: 9deg; --ry: -11deg; }
.y-badge-host:hover .y-badge-scan, .y-badge-host:focus-visible .y-badge-scan { animation: y-scan 1.1s linear infinite; }
.y-badge-host:hover .y-badge-bloom, .y-badge-host:focus-visible .y-badge-bloom { animation: y-bloom .7s var(--y-ease-out) 1; }
@keyframes y-scan { to { transform: translateY(3px); } }
@keyframes y-bloom { 0% { opacity: .42; } 28% { opacity: 1; } 100% { opacity: .42; } }

/* ============================================================
   Einblenden: unscharf zu scharf. Nur wenn Skripte laufen und Bewegung erwünscht ist.
   ============================================================ */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .y-reveal {
    opacity: 0; transform: translateY(18px); filter: blur(8px);
    transition: opacity var(--y-dur-reveal) var(--y-ease-out), transform var(--y-dur-reveal) var(--y-ease-out), filter var(--y-dur-reveal) var(--y-ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .y-reveal.is-in { opacity: 1; transform: none; filter: none; }
}
.y-type-rest { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .y-orb-wrap { transform: translate3d(-50%, 0, 0); }
  .y-waves-mask { transform: none; }
}

/* ============================================================
   Seitenwechsel: Die neue Seite wischt schräg herein (wo der Browser das kann)
   ============================================================ */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: y-vt-out .3s var(--y-ease-out) both; }
  ::view-transition-new(root) { animation: y-vt-in .55s var(--y-ease-out) both; }
  @keyframes y-vt-out { to { opacity: .2; filter: blur(6px); } }
  @keyframes y-vt-in { from { clip-path: polygon(0 0, 0 0, -24% 100%, -24% 100%); } to { clip-path: polygon(0 0, 124% 0, 100% 100%, -24% 100%); } }
}

/* ============================================================
   Heller Modus: was sich nicht über Variablen regeln lässt
   ============================================================ */
[data-theme="light"] .y-grain { opacity: .12; }
[data-theme="light"] .y-orb {
  background:
    radial-gradient(34% 22% at 34% 20%, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / 0) 100%),
    radial-gradient(circle at 50% 50%, rgb(30 79 168 / 0) 62%, rgb(30 79 168 / .16) 100%),
    radial-gradient(72% 56% at 50% 104%, rgb(76 143 230 / .38) 0%, rgb(76 143 230 / 0) 100%),
    radial-gradient(circle at 50% 36%, #FFFFFF 0%, #EEF4FC 40%, #D6E4F6 72%, #BCD1EE 100%);
  box-shadow: 0 0 120px 10px rgb(76 143 230 / .24), inset 0 2px 1px #FFFFFF, inset 0 -40px 90px rgb(30 79 168 / .12);
}
[data-theme="light"] .y-waves { opacity: .5; }
[data-theme="light"] .y-waves--back { opacity: .22; }
[data-theme="light"] .y-btn:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -10px 14px -8px rgb(10 26 63 / .4), 0 0 0 1px var(--y-chrome-edge), 0 20px 30px -14px rgb(20 50 110 / .55), 0 0 26px rgb(76 143 230 / .35); }
[data-theme="light"] .y-btn--gel:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), inset 0 -12px 16px -8px rgb(170 210 255 / .8), 0 0 0 1px var(--y-chrome-edge), 0 20px 30px -14px rgb(20 50 110 / .55), 0 0 28px rgb(76 143 230 / .5); }
[data-theme="light"] .y-btn:active { box-shadow: inset 0 5px 12px rgb(10 26 63 / .4), 0 0 0 1px var(--y-chrome-edge), 0 4px 10px -6px rgb(20 50 110 / .5); }
[data-theme="light"] .y-glass { box-shadow: 0 0 0 1px rgb(10 26 63 / .08), var(--y-shadow-float), inset 0 1px 0 #FFFFFF; }
[data-theme="light"] .y-glass::after { background: radial-gradient(closest-side, rgb(76 143 230 / .14), rgb(76 143 230 / 0)); }
[data-theme="light"] .y-spec { border-block-color: rgb(10 26 63 / .22); box-shadow: 0 -4px 0 -3px rgb(10 26 63 / .1), 0 4px 0 -3px rgb(10 26 63 / .1); background: linear-gradient(180deg, rgb(255 255 255 / .78), rgb(226 235 247 / .88)); }
[data-theme="light"] .y-spec > div + div::before { background: rgb(10 26 63 / .28); }
@container y-spec (max-width: 760px) {
  [data-theme="light"] .y-spec > div:nth-child(even) { border-left-color: rgb(10 26 63 / .14); }
  [data-theme="light"] .y-spec > div:nth-child(n+3) { border-top-color: rgb(10 26 63 / .14); }
}
[data-theme="light"] .y-stripes::before { background: linear-gradient(90deg, rgb(10 26 63 / 0), rgb(10 26 63 / .3)); }
[data-theme="light"] .y-stripes::after { background: linear-gradient(90deg, var(--y-azure) 0 26%, transparent 26% 37%, var(--y-cobalt) 37% 63%, transparent 63% 74%, var(--y-navy) 74% 100%); }
[data-theme="light"] .y-badge { filter: drop-shadow(0 10px 12px rgb(20 50 110 / .3)); }

/* Bilder je Modus (Logo auf hellem oder dunklem Grund) */
.y-only-light { display: none; }
[data-theme="light"] .y-only-dark { display: none; }
[data-theme="light"] .y-only-light { display: block; }

/* Moduswechsel: Die neue Fassung breitet sich als Kreis vom Schalter aus. */
@media (prefers-reduced-motion: no-preference) {
  .y-theme-vt::view-transition-old(root) { animation: none; }
  .y-theme-vt::view-transition-new(root) { animation: y-theme-in .6s var(--y-ease-out) both; }
  @keyframes y-theme-in { from { clip-path: circle(0 at var(--vx, 100%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 100%) var(--vy, 0)); } }
}
