/* gregor-server.de – gemeinsames Stylesheet für alle Seiten
   Farben wie bisher: Dunkelgrau + Rot (rgb 200 10 10 / 100 5 10) + Glut-Orange */

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

/* Schrift: Jost von Owen Earl (indestructible type*), SIL Open Font License 1.1 – siehe
   assets/fonts/OFL.txt. Selbst gehostet, variabel (100–900), auf lateinische Zeichen gekürzt. */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #181a1b;
  --bg-deep: #101112; /* Auslauf unter dem Startbild */
  --bg-raised: #212426;
  --bg-alt: #33373a;
  --panel: rgb(50 10 20 / 0.72);
  --panel-solid: #2a1015;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.22);

  --text: #e9e6e6;
  --muted: #c6c4c4;
  --heading: #f5f3f3;

  --brand: rgb(200 10 10);
  --brand-hot: rgb(250 10 10);
  --brand-deep: rgb(100 5 10);
  --brand-dark: rgb(80 5 10);
  --ember: #f5474d;
  --glow: #ff5c24;
  --amber: rgb(150 80 10);
  /* Akzent der aktuellen Minecraft-Szene (Höhle = Glut, See = Abendlicht) */
  --scene-shadow: var(--amber);
  --scene-ring: var(--ember);
  /* Rot für Text auf dunklem Grund (Kontrast > 4.5:1) */
  --link: #ff7070;
  --link-hover: #ffa3a3;

  --radius: 1rem;
  --radius-sm: 0.6rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* überall dieselbe Schrift; die Systemschriften sind nur Ersatz, solange Jost lädt */
  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;

  /* wächst mit dem Bildschirm mit – auch auf Fernsehern gut lesbar */
  font-size: clamp(100%, 0.85rem + 0.32vw, 160%);
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  hanging-punctuation: first last;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-x: clip;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  line-height: 1.15;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

p {
  color: var(--muted);
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}
a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--brand);
}

::selection {
  background: var(--brand);
  color: #fff;
}

[hidden] {
  display: none !important;
}

@view-transition {
  navigation: auto;
}

.container {
  width: 92%;
  max-width: var(--max);
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, var(--brand), var(--glow));
  border-radius: 3px;
}

/* ---------- Sprunglink ---------- */
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Belebte Szenen (WebGL, siehe lebendig.js) ---------- */
.szene-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.szene-canvas.ist-bereit {
  opacity: 1;
}

/* Animation wird erwartet (Skript im <head>): Standbilder zurückhalten, damit sie nicht vor der
   Szene aufblitzen. Startet WebGL nicht, nimmt main.js das Attribut weg und die Bilder blenden ein. */
.hero-bg,
.page-hero picture {
  transition: opacity 0.8s ease;
}
[data-szene-wartet] .hero-bg,
[data-szene-wartet] .page-hero picture,
[data-szene-wartet] .hero-mark {
  opacity: 0;
}
[data-szene-wartet] .site-footer {
  background-image: none;
}
[data-szene-wartet] .hero-content > .hero-mark {
  animation: none;
}

/* ---------- Szenen-Stimmung ---------- */
[data-scene='see'] {
  --scene-shadow: rgb(40 80 70);
  --scene-ring: #e9d27a;
}

/* ---------- Startbereich ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 6rem;
  touch-action: pan-y;
}
.hero-bg,
.hero-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) saturate(1.4) hue-rotate(-12deg) brightness(0.55);
  transform: scale(1.06);
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgb(10 2 4 / 0.65)),
    linear-gradient(to bottom, transparent 86%, var(--bg-deep));
}
[data-motion='on'] .hero-bg img {
  animation: ken-burns 30s ease-in-out infinite alternate;
}
.hero-canvas {
  opacity: 0;
  transition: opacity 1.2s ease;
}
[data-gl] .hero-canvas {
  opacity: 1;
}

.hero-content {
  display: grid;
  justify-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  text-align: center;
  pointer-events: none;
}
.hero-content a {
  pointer-events: auto;
}
.hero-mark {
  width: clamp(11rem, 36vmin, 26rem);
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 0 30px rgb(245 71 77 / 0.6));
  transition: opacity 0.6s ease;
}
[data-motion='on'] .hero-mark {
  animation: glow-pulse 4s ease-in-out infinite;
}
/* Partikel bilden das Logo – das Bild leuchtet erst danach schwach dahinter */
[data-gl] .hero-mark {
  opacity: 0.16;
  filter: blur(6px) drop-shadow(0 0 40px rgb(245 71 77 / 0.9));
  animation: none;
  transition: opacity 1.5s ease 2.5s;
}
[data-motion='on'] .hero-content > * {
  animation: rise-in 1.1s var(--ease-out) both;
}
[data-motion='on'] .hero-content > :nth-child(2) {
  animation-delay: 0.25s;
}
[data-motion='on'] .hero-content > :nth-child(3) {
  animation-delay: 0.45s;
}
[data-gl] .hero-content > .hero-mark {
  animation: none;
}

.scene-picker {
  position: absolute;
  right: var(--gutter);
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  gap: 0.6rem;
}
.scene-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.45);
  background: var(--thumb) center / cover, var(--panel-solid);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.25s, transform 0.25s var(--ease-out), border-color 0.25s;
}
.scene-dot:hover,
.scene-dot:focus-visible {
  opacity: 1;
  transform: scale(1.08);
}
.scene-dot[aria-pressed='true'] {
  opacity: 1;
  border-color: var(--scene-ring);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.35), 0 0 18px var(--scene-ring);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  color: #fff;
  border: 1px solid var(--line-strong);
  background: rgb(0 0 0 / 0.3);
}
.scroll-hint svg {
  width: 1.3rem;
}
@media (max-width: 40rem) {
  /* auf dem Handy ist Platz für die Szenenwahl wichtiger */
  [data-gl] .scroll-hint {
    display: none;
  }
  .scene-picker {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
@supports not (aspect-ratio: 1) {
  .card-demo {
    height: 16rem;
  }
}
[data-motion='on'] .scroll-hint svg {
  animation: nudge 2.4s ease-in-out infinite;
}

/* Abschnitt direkt unter dem Startbild: vom dunklen Auslauf sanft in den Seitenhintergrund */
.hero + .section {
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg) 14rem);
}

/* ---------- Karten / Projekte ---------- */
.cards {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  /* höchstens zwei Spalten; „card-wide“ nutzt die ganze Breite */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(22rem, calc(50% - 1rem))), 1fr));
  list-style: none;
  padding: 0;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(70 10 18 / 0.55), rgb(30 8 12 / 0.75)), var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.6);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover,
.card:focus-within {
  border-color: rgb(245 71 77 / 0.45);
  box-shadow: 0 20px 44px -20px rgb(200 10 10 / 0.4);
}
.card h3 {
  font-size: 1.4rem;
}
.card-wide {
  grid-column: 1 / -1;
}
@media (min-width: 52rem) {
  .card-wide {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2rem;
  }
  .card-wide .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }
}
.card-body {
  display: contents;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}
.tags li {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 22px rgb(200 10 10 / 0.55);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-hot);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* Gemeinsamer Rahmen der Projekt-Vorschauen */
.card-demo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #120709;
  box-shadow: inset 0 0 60px rgb(0 0 0 / 0.7);
}

/* Animierte „unendliche Arbeitsfläche“ für Infinite Desktop */
.infinite-demo .canvas-layer {
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160'%3E%3Cpath d='M0 .5h240M.5 0v160' stroke='%23ffffff' stroke-opacity='.07'/%3E%3Cg%3E%3Crect x='18' y='22' width='92' height='60' rx='5' fill='%232a1015' stroke='%23f5474d' stroke-opacity='.7'/%3E%3Crect x='18' y='22' width='92' height='11' rx='5' fill='%23c80a0a'/%3E%3Crect x='26' y='42' width='50' height='4' rx='2' fill='%23ffffff' fill-opacity='.25'/%3E%3Crect x='26' y='51' width='70' height='4' rx='2' fill='%23ffffff' fill-opacity='.18'/%3E%3C/g%3E%3Cg%3E%3Crect x='138' y='92' width='80' height='52' rx='5' fill='%2333373a' stroke='%23ff5c24' stroke-opacity='.6'/%3E%3Crect x='138' y='92' width='80' height='11' rx='5' fill='%23640510'/%3E%3Ccircle cx='178' cy='124' r='9' fill='%23ff5c24' fill-opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 160px;
}
[data-motion='on'] .infinite-demo .canvas-layer {
  animation: pan-canvas 18s linear infinite, zoom-canvas 18s ease-in-out infinite;
}
.infinite-demo .taskbar {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  height: 9%;
  background: rgb(20 4 6 / 0.85);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.infinite-demo .taskbar::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 3px;
  background: var(--ember);
  box-shadow: 1.6em 0 0 rgb(255 255 255 / 0.3), -1.6em 0 0 rgb(255 255 255 / 0.3);
}
.infinite-demo .minimap {
  position: absolute;
  right: 4%;
  top: 6%;
  width: 18%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgb(0 0 0 / 0.45);
}
.infinite-demo .minimap::after {
  content: '';
  position: absolute;
  width: 34%;
  height: 34%;
  border: 1.5px solid var(--ember);
  border-radius: 2px;
  left: 33%;
  top: 33%;
}
[data-motion='on'] .infinite-demo .minimap::after {
  animation: minimap 18s linear infinite;
}

/* Launcher: Handy mit Material-3-Startbildschirm. Die Symbolform folgt der Einstellung daneben –
   Kreis, Keks, Bogen wie bei Android 16; Farben aus dem Hintergrundbild wie bei Material You */
.launcher-demo {
  --form-kreis: polygon(50% 0%, 57.5% 0.6%, 64.7% 2.2%, 71.7% 5%, 78.2% 8.7%, 84% 13.3%, 89.1% 18.8%, 93.3% 25%, 96.5% 31.7%, 98.7% 38.9%, 99.9% 46.3%, 99.9% 53.7%, 98.7% 61.1%, 96.5% 68.3%, 93.3% 75%, 89.1% 81.2%, 84% 86.7%, 78.2% 91.3%, 71.7% 95%, 64.7% 97.8%, 57.5% 99.4%, 50% 100%, 42.5% 99.4%, 35.3% 97.8%, 28.3% 95%, 21.8% 91.3%, 16% 86.7%, 10.9% 81.2%, 6.7% 75%, 3.5% 68.3%, 1.3% 61.1%, 0.1% 53.7%, 0.1% 46.3%, 1.3% 38.9%, 3.5% 31.7%, 6.7% 25%, 10.9% 18.8%, 16% 13.3%, 21.8% 8.7%, 28.3% 5%, 35.3% 2.2%, 42.5% 0.6%);
  --form-keks: polygon(50% 0%, 57.1% 2.6%, 62.9% 8.1%, 68.1% 12.4%, 74.7% 13.8%, 82.6% 14.9%, 89.1% 18.8%, 91.5% 26%, 90.8% 34%, 90.7% 40.7%, 93.7% 46.7%, 97.8% 53.6%, 98.7% 61.1%, 94.6% 67.5%, 87.9% 71.9%, 82.6% 76%, 79.8% 82.1%, 77% 89.6%, 71.7% 95%, 64.1% 95.8%, 56.5% 93.3%, 50% 91.7%, 43.5% 93.3%, 35.9% 95.8%, 28.3% 95%, 23% 89.6%, 20.2% 82.1%, 17.4% 76%, 12.1% 71.9%, 5.4% 67.5%, 1.3% 61.1%, 2.2% 53.6%, 6.3% 46.7%, 9.3% 40.7%, 9.2% 34%, 8.5% 26%, 10.9% 18.8%, 17.4% 14.9%, 25.3% 13.8%, 31.9% 12.4%, 37.1% 8.1%, 42.9% 2.6%);
  --form-bogen: polygon(50% 0%, 57.5% 0.6%, 64.7% 2.2%, 71.7% 5%, 78.2% 8.7%, 84% 13.3%, 89.1% 18.8%, 93.3% 25%, 96.5% 31.7%, 98.7% 38.9%, 99.9% 46.3%, 100% 53.7%, 100% 61.4%, 100% 69.6%, 100% 78.8%, 98.1% 88.4%, 92.4% 95.7%, 83.8% 99.6%, 74.1% 100%, 65.4% 100%, 57.5% 100%, 50% 100%, 42.5% 100%, 34.6% 100%, 25.9% 100%, 16.2% 99.6%, 7.6% 95.7%, 1.9% 88.4%, 0% 78.8%, 0% 69.6%, 0% 61.4%, 0% 53.7%, 0.1% 46.3%, 1.3% 38.9%, 3.5% 31.7%, 6.7% 25%, 10.9% 18.8%, 16% 13.3%, 21.8% 8.7%, 28.3% 5%, 35.3% 2.2%, 42.5% 0.6%);
  background: radial-gradient(ellipse at 30% 60%, rgb(200 10 10 / 0.2), transparent 60%), #120709;
}
.launcher-demo .phone {
  position: absolute;
  top: 7%;
  left: 15%;
  height: 86%;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
  /* Prozent-Abstände beziehen sich auf die Breite der Vorschau, nicht auf das Handy */
  padding: 4.6% 2.3% 2%;
  border: 3px solid #2b2e30;
  border-radius: 14% / 6.6%;
  background: linear-gradient(to bottom, rgb(10 2 4 / 0.15), rgb(10 2 4 / 0.55)),
    url('../img/scenes/hoehle-960.webp') 40% 50% / cover, #2a1015;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.8), 0 0 44px -14px rgb(200 10 10 / 0.55);
  overflow: hidden;
}
.launcher-demo .glance::before,
.launcher-demo .glance::after {
  content: '';
  display: block;
  width: 72%;
  aspect-ratio: 9 / 1;
  border-radius: 999px;
  background: rgb(255 240 236 / 0.9);
}
.launcher-demo .glance::after {
  width: 44%;
  margin-top: 5%;
  background: rgb(255 240 236 / 0.5);
}
.launcher-demo .apps,
.launcher-demo .dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.launcher-demo .apps {
  margin-top: auto;
}
.launcher-demo .dock {
  padding: 5% 5% 0;
  border-radius: 999px;
}
.launcher-demo .phone i {
  position: relative;
  display: block;
  width: 21%;
  aspect-ratio: 1;
  margin-bottom: 9%;
  border-radius: 50%;
  background: var(--ton, #ffb4a8);
  clip-path: var(--form-keks);
}
.launcher-demo .phone i::after {
  content: '';
  position: absolute;
  top: 32%;
  right: 32%;
  bottom: 32%;
  left: 32%;
  border-radius: 30%;
  background: rgb(70 8 14 / 0.6);
}
.launcher-demo .phone i:nth-child(4n + 2) {
  --ton: #ff8a65;
}
.launcher-demo .phone i:nth-child(4n + 3) {
  --ton: #f5474d;
}
.launcher-demo .phone i:nth-child(4n + 4) {
  --ton: #ffdad4;
}
.launcher-demo .phone i:nth-child(3n)::after {
  border-radius: 50%;
}
.launcher-demo .search {
  position: relative;
  margin-top: 3%;
  aspect-ratio: 7 / 1;
  border-radius: 999px;
  background: rgb(255 218 212 / 0.88);
}
.launcher-demo .search::before {
  content: '';
  position: absolute;
  top: 22%;
  left: 5%;
  height: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
}
.launcher-demo .settings {
  position: absolute;
  top: 50%;
  left: 49%;
  right: 7%;
  display: grid;
  gap: 3px;
  transform: translateY(-50%);
}
.launcher-demo .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5.5% 6%;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.07);
}
.launcher-demo .row:first-child {
  border-radius: 14px 14px 4px 4px;
}
.launcher-demo .row:last-child {
  border-radius: 4px 4px 14px 14px;
}
.launcher-demo .row b {
  width: 44%;
}
.launcher-demo .row b::before,
.launcher-demo .row b::after {
  content: '';
  display: block;
  aspect-ratio: 9 / 1;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.6);
}
.launcher-demo .row b::after {
  width: 70%;
  margin-top: 6%;
  background: rgb(255 255 255 / 0.25);
}
.launcher-demo .shapes {
  display: flex;
  justify-content: space-between;
  width: 36%;
}
.launcher-demo .shapes i {
  display: block;
  width: 29%;
  aspect-ratio: 1;
  background: rgb(255 255 255 / 0.22);
  clip-path: var(--form-kreis);
}
.launcher-demo .shapes i:nth-child(2) {
  clip-path: var(--form-keks);
  background: var(--ember);
}
.launcher-demo .shapes i:nth-child(3) {
  clip-path: var(--form-bogen);
}
.launcher-demo .switch {
  position: relative;
  width: 19%;
  aspect-ratio: 1.65;
  border-radius: 999px;
  background: var(--brand);
}
.launcher-demo .switch::after {
  content: '';
  position: absolute;
  top: 14%;
  right: 8%;
  height: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}
.launcher-demo .switch.off {
  background: transparent;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.4);
}
.launcher-demo .switch.off::after {
  top: 27%;
  right: auto;
  left: 13%;
  height: 46%;
  background: rgb(255 255 255 / 0.45);
}
[data-motion='on'] .launcher-demo .phone i {
  animation: symbolform 12s ease-in-out infinite;
}
[data-motion='on'] .launcher-demo .phone i:nth-child(4n + 2) {
  animation-delay: 0.08s;
}
[data-motion='on'] .launcher-demo .phone i:nth-child(4n + 3) {
  animation-delay: 0.16s;
}
[data-motion='on'] .launcher-demo .phone i:nth-child(4n + 4) {
  animation-delay: 0.24s;
}
[data-motion='on'] .launcher-demo .shapes i {
  animation: formwahl 12s step-end infinite;
}
[data-motion='on'] .launcher-demo .shapes i:nth-child(2) {
  animation-delay: -8s;
}
[data-motion='on'] .launcher-demo .shapes i:nth-child(3) {
  animation-delay: -4s;
}

/* Diese Webseite: Bild, Ebenen-Karte und Gitternetz als Stapel im Raum */
.technik-demo {
  display: grid;
  place-items: center;
  perspective: 60em;
  background: radial-gradient(ellipse at 50% 60%, rgb(200 10 10 / 0.18), transparent 65%), #120709;
}
.technik-demo .stapel {
  position: relative;
  width: 56%;
  aspect-ratio: 1.87;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-32deg) translateZ(-1.5em);
}
.technik-demo .ebene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 1.5em 2em -1em rgb(0 0 0 / 0.6);
  transform: translateZ(calc(var(--i) * 2.2em));
}
.technik-demo .bild {
  --i: 0;
  background: url('../img/scenes/hoehle-960.webp') center / cover, #2a1015;
}
.technik-demo .karte {
  --i: 1;
  background: url('../img/scenes/hoehle-ebenen.png') 0 0 / 200% 100%;
  opacity: 0.85;
}
.technik-demo .gitter {
  --i: 2;
  background:
    repeating-linear-gradient(to right, rgb(255 92 36 / 0.75) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(to bottom, rgb(255 92 36 / 0.75) 0 1px, transparent 1px 12.5%);
  box-shadow: 0 0 0 1px rgb(255 92 36 / 0.75);
}
[data-motion='on'] .technik-demo .ebene {
  animation: stapel 9s ease-in-out infinite;
}

.more-link {
  margin-top: 2rem;
  text-align: center;
}

/* ---------- Fußzeile (kompakt) ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: auto;
  padding-block: clamp(3rem, 8vw, 5rem) max(1.25rem, env(safe-area-inset-bottom));
  background: var(--footer-image, none) 36% 30% / cover, var(--bg);
  border-top: 1px solid #2c2f31;
  font-size: 0.9rem;
}
.site-footer .szene-canvas {
  z-index: -2;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--bg), rgb(24 26 27 / 0.45) 35%, rgb(24 26 27 / 0.7));
}
.copyright a {
  color: inherit;
  text-decoration: none;
}
.copyright a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-inner {
  display: grid;
  gap: 1rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 1.5rem 2rem;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.8);
}
.site-footer h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ember);
  margin-bottom: 0.4rem;
}
.site-footer ul {
  display: grid;
  list-style: none;
  padding: 0;
}
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  color: #e2e0e0;
  text-decoration: none;
}
.site-footer li a:hover {
  color: #fff;
  text-decoration: underline;
}
.copyright {
  font-size: 0.8rem;
}

/* ---------- Unterseiten (Recht) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(16rem, 42vh, 26rem);
  padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  overflow: hidden;
}
.page-hero picture,
.page-hero picture img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero picture img {
  filter: sepia(0.35) saturate(1.3) hue-rotate(-12deg) brightness(0.45);
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(24 26 27 / 0.2), var(--bg));
}
[data-motion='on'] .page-hero picture img {
  animation: ken-burns 40s ease-in-out infinite alternate;
}
.page-hero h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  text-shadow: 3px 2px 0 var(--scene-shadow), 0 0 30px rgb(0 0 0 / 0.5);
}
.page-hero .eyebrow:empty {
  display: none;
}
.page-hero .eyebrow {
  color: var(--ember);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.prose {
  max-width: 70ch;
  margin-inline: auto;
  padding-block: 1rem clamp(3rem, 8vw, 6rem);
}
.prose > * + * {
  margin-top: 1rem;
}
.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}
.prose h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  color: var(--ember);
}
.prose h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
  color: var(--muted);
}
.prose li + li {
  margin-top: 0.35rem;
}
.prose li::marker {
  color: var(--ember);
}
.prose .meta {
  font-size: 0.9rem;
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
}
.prose nav ol {
  columns: 2 14rem;
}
.prose .del {
  text-decoration: line-through;
}

/* ---------- Technik-Seite (/technik/) ---------- */
.prose-weit {
  max-width: var(--max);
}
.prose-weit > :not(.technik) {
  max-width: 70ch;
  margin-inline: auto;
}
.prose .lead {
  font-size: 1.15rem;
  color: var(--text);
}
.technik {
  --kanal-0-1: rgb(38 153 255);
  --kanal-0-2: rgb(255 140 26);
  --kanal-0-3: rgb(115 191 255);
  --kanal-1: rgb(89 235 77);
  --kanal-2: rgb(179 140 255);
  --kanal-3: rgb(255 219 64);
  --kanal-4: rgb(255 56 51);
  display: grid;
  gap: 1rem;
  margin-block: 2rem 3rem;
}
/* Bühne bleibt beim Scrollen stehen, die Kapitel laufen daneben (Desktop) bzw. darunter */
.technik-halter {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 0.6rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.5rem var(--gutter) 0.6rem;
  background: rgb(24 26 27 / 0.94);
}
@media (min-width: 64rem) {
  .technik {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .technik-halter {
    top: 1.25rem;
    margin-inline: 0;
    padding: 0;
    background: none;
  }
}
.technik-buehne {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 44vh;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #0b0506;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
@media (min-width: 64rem) {
  .technik-buehne {
    max-height: none;
  }
}
.technik-buehne.ist-drehbar {
  cursor: grab;
}
.technik-buehne.wird-gezogen {
  cursor: grabbing;
}
.technik-buehne.hat-griff {
  cursor: ew-resize;
}
.technik-canvas,
.technik-ersatz,
.technik-ersatz img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.technik-canvas {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.technik.ist-bereit .technik-canvas {
  opacity: 1;
}
.technik.ist-bereit .technik-ersatz {
  display: none;
}
.technik-modus {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(10 4 6 / 0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.prose .technik-tipp {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  max-width: calc(100% - 1.5rem);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgb(10 4 6 / 0.65);
  color: var(--muted);
  font-size: 0.78rem;
  pointer-events: none;
}
.prose .technik-meldung {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  margin: 0;
  padding: 0.3rem 0.85rem;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid var(--ember);
  background: rgb(10 4 6 / 0.8);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.technik-tipp:empty {
  display: none;
}
.technik-skala {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  width: min(13rem, 40%);
  padding: 0.95rem 0.6rem 0.35rem;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(to right, rgb(255 240 199), rgb(255 128 38) 33%, rgb(179 15 61) 66%, rgb(31 18 77)) 0.6rem 0.5rem /
      calc(100% - 1.2rem) 0.45rem no-repeat,
    rgb(10 4 6 / 0.72);
  color: #fff;
  font-size: 0.75rem;
}
.technik-lupe {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  gap: 0.15rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgb(10 4 6 / 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.technik-lupe .zeile {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.technik-lupe .zeile::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--kanal, transparent);
}
.technik-griff {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  pointer-events: none;
}
.technik-griff::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #fff;
  background:
    linear-gradient(135deg, transparent 42%, #fff 42% 58%, transparent 58%) center / 0.55rem 0.55rem no-repeat,
    var(--brand);
  box-shadow: 0 0 0 4px rgb(0 0 0 / 0.35), 0 0 20px rgb(255 92 36 / 0.6);
}
.technik-leiste {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}
.technik-szenen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.technik-szenen button,
.knopf {
  min-height: 2.4rem;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.technik-szenen button:hover,
.knopf:hover {
  border-color: var(--ember);
}
.technik-szenen button[aria-pressed='true'] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.prose .technik-pfad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pfad;
  font-size: 0.8rem;
}
.prose .technik-pfad li {
  margin: 0;
  counter-increment: pfad;
}
.technik-pfad a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}
.technik-pfad a::before {
  content: counter(pfad);
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.85em;
  /* Zeile nicht höher als der Kreis – sonst rutscht die Ziffer in Firefox nach unten */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.technik-pfad a:hover {
  color: var(--heading);
}
.technik-pfad a[aria-current] {
  border-color: var(--ember);
  background: var(--panel-solid);
  color: var(--heading);
}
@media (max-width: 40rem) {
  .technik-pfad a:not([aria-current]) {
    font-size: 0;
    padding-inline: 0.3rem;
  }
  .technik-pfad a:not([aria-current])::before {
    font-size: 0.7rem;
  }
}
.kapitel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-height: 72vh;
  padding-block: 2rem;
  scroll-margin-top: calc(var(--halter-h, 0px) + 1rem);
  transition: border-color 0.4s ease;
}
.prose .kapitel > * {
  margin: 0;
}
.kapitel:last-child {
  min-height: 55vh;
}
/* aktives Kapitel: Leiste links (statt Abblenden, damit der Text gut lesbar bleibt) */
.technik.ist-bereit .kapitel {
  padding-left: 1.25rem;
  border-left: 3px solid var(--line);
}
.technik.ist-bereit .kapitel.ist-aktiv {
  border-left-color: var(--ember);
}
@media (min-width: 64rem) {
  .kapitel {
    scroll-margin-top: 2rem;
  }
}
.prose .kapitel h2 {
  padding: 0;
  font-size: 1.6rem;
}
.kapitel-nr {
  color: var(--ember);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kapitel-aufgabe {
  padding: 0.6rem 0.85rem;
  border-left: 3px solid var(--glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgb(255 92 36 / 0.08);
  color: var(--heading);
  font-size: 0.95rem;
}
.kapitel-steuerung {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.kapitel-steuerung .knopf {
  justify-self: start;
}
.regler {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}
.regler label,
.kapitel-steuerung legend {
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 600;
}
.regler input,
.kapitel-steuerung input[type='checkbox'] {
  accent-color: var(--brand);
}
.regler input {
  width: 100%;
  min-height: 2rem;
}
.regler:has(input:disabled),
.schalter:has(input:disabled) {
  opacity: 0.45;
}
.kapitel-steuerung input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}
.schalter,
.chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
}
.technik-masken,
.technik-effekte {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.kapitel-steuerung legend {
  margin-bottom: 0.3rem;
  padding: 0;
}
.technik-masken .name::before {
  content: '';
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.45rem;
  border-radius: 3px;
  background: var(--kanal);
  vertical-align: -0.05em;
}
.prose .ebene-info {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.ebene-info::before {
  content: '';
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.45rem;
  border-radius: 3px;
  background: rgb(255 89 217);
  vertical-align: -0.05em;
}
.chip .wie {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}
.kapitel-weiter {
  align-self: flex-start;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.kapitel-weiter::after {
  content: ' ↓';
}
.kapitel-weiter:hover {
  text-decoration: underline;
}
.technik:not(.ist-bereit) .kapitel-steuerung,
.technik:not(.ist-bereit) .kapitel-aufgabe,
.technik:not(.ist-bereit) .technik-szenen,
.technik:not(.ist-bereit) .technik-modus,
.technik:not(.ist-bereit) .technik-tipp {
  display: none;
}
.technik-werkzeuge strong {
  color: var(--heading);
}

.link-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0 !important;
}
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, background-color 0.25s;
}
.link-list a:hover {
  border-color: rgb(245 71 77 / 0.5);
  background: var(--panel-solid);
}
.link-list span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

/* ---------- Fehlerseiten ---------- */
.error-hero {
  min-height: 100vh;
  min-height: 100dvh;
}
.error-code {
  font-weight: 800;
  font-size: clamp(6rem, 4rem + 14vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(180deg, #ffe0b8, var(--glow) 40%, var(--brand) 75%, var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgb(255 92 36 / 0.45));
}
[data-motion='on'] .error-code {
  animation: flicker 5s steps(1) infinite;
}
.error-hero h1 {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem);
}
.error-hero .lead {
  max-width: 46ch;
  color: var(--text);
  font-size: 1.1rem;
}
.error-hero .hint {
  font-size: 0.9rem;
}
.error-hero .actions {
  justify-content: center;
  margin-top: 0.5rem;
  pointer-events: auto;
}


.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.center {
  text-align: center;
}

/* ---------- Bewegungen ---------- */
@keyframes ken-burns {
  from {
    transform: scale(1.06) translate(0, 0);
  }
  to {
    transform: scale(1.14) translate(-1.5%, -1%);
  }
}
@keyframes glow-pulse {
  50% {
    filter: drop-shadow(0 0 46px rgb(245 71 77 / 0.9));
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
    filter: blur(6px);
  }
}
@keyframes nudge {
  50% {
    transform: translateY(5px);
  }
}
@keyframes pan-canvas {
  to {
    background-position: -480px -320px;
  }
}
@keyframes zoom-canvas {
  0%,
  35%,
  100% {
    transform: scale(1);
  }
  50%,
  60% {
    transform: scale(0.55);
  }
}
/* Kreis → Keks → Bogen, jeweils kurz nachdem die Einstellung gewählt wurde */
@keyframes symbolform {
  0% {
    clip-path: var(--form-bogen);
  }
  5%,
  33% {
    clip-path: var(--form-kreis);
  }
  38%,
  66% {
    clip-path: var(--form-keks);
  }
  71%,
  100% {
    clip-path: var(--form-bogen);
  }
}
@keyframes formwahl {
  0% {
    background: var(--ember);
  }
  33.3% {
    background: rgb(255 255 255 / 0.22);
  }
}
/* Stapel fächert sich auf und legt sich wieder zusammen */
@keyframes stapel {
  0%,
  100% {
    transform: translateZ(0);
  }
  35%,
  75% {
    transform: translateZ(calc(var(--i) * 2.2em));
  }
}
@keyframes minimap {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(60%, -40%);
  }
  50% {
    transform: translate(-50%, 50%);
  }
  75% {
    transform: translate(-40%, -50%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes flicker {
  0%,
  92%,
  100% {
    opacity: 1;
  }
  93% {
    opacity: 0.55;
  }
  95% {
    opacity: 1;
  }
  96% {
    opacity: 0.7;
  }
}

/* Inhalte beim Scrollen einblenden (nur wo unterstützt und erwünscht) */
@supports (animation-timeline: view()) {
  [data-motion='on'] .reveal {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
[data-motion='off'] *,
[data-motion='off'] *::before,
[data-motion='off'] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
[data-motion='off'] {
  scroll-behavior: auto;
}

@media (prefers-contrast: more) {
  :root {
    --muted: #f0eeee;
    --text: #fff;
    --line: rgb(255 255 255 / 0.4);
    --line-strong: rgb(255 255 255 / 0.7);
    --link: #ff9b9b;
  }
  .hero-bg img,
  .page-hero picture img {
    filter: brightness(0.3);
  }
}

@media (forced-colors: active) {
  .card,
  .link-list a,
  .btn,
  .scene-dot {
    border: 1px solid CanvasText;
  }
  .error-code {
    color: CanvasText;
    background: none;
  }
  .hero-canvas {
    display: none;
  }
}

@media print {
  .hero-canvas,
  .scene-picker,
  .scroll-hint {
    display: none !important;
  }
  :root {
    --bg: #fff;
    --text: #000;
    --muted: #222;
    --heading: #000;
  }
  .page-hero {
    min-height: 0;
    padding: 0;
  }
  .page-hero picture {
    display: none;
  }
  .page-hero h1 {
    color: #000;
    text-shadow: none;
  }
}
