/*
  base.css — Layout & Verhalten, das für ALLE Themes gleich bleibt.
  Themes (css/themes/*.css) überschreiben nur die folgenden CSS-Variablen
  plus optionales Feintuning (Texturen, Schatten, Rahmen). Neue Themes aus
  Claude Design halten sich an diesen Variablen-Vertrag, dann funktionieren
  Zufalls-Button und Szenen-Mechanik automatisch.

  Erwartete Variablen pro Theme:
    --color-bg, --color-bg-alt, --color-fg, --color-accent
    --font-display (große Überschriften/Name), --font-heading (h2/Labels),
    --font-body, --font-script (Tagline/Zitat-artige Texte)
    --radius, --border-width

  Seitenstruktur: KEIN Scrollen. Zehn Szenen (.scene) liegen deckungsgleich
  übereinander; js/scene-nav.js schaltet per Klasse "is-active" zwischen
  ihnen um. Persistente Chrome-Elemente (Ticker-Kopfzeile, Szenen-Navigation
  unten) liegen außerhalb der Szenen und bewegen sich beim Wechsel nicht —
  das erzeugt den "Hintergrund/Rahmen bleibt, Inhalt wechselt"-Effekt.
*/

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f4f4;
  --color-fg: #111111;
  --color-accent: #cc3333;
  --font-display: system-ui, sans-serif;
  --font-heading: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --font-script: cursive;
  --font-mono: monospace;
  --radius: 4px;
  --border-width: 1px;
  --content-width: 44rem;
  --scene-transition: .6s cubic-bezier(.22, 1, .36, 1);
  --masthead-h: 3.75rem;
  --nav-h: 4.5rem;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow: hidden; /* kein Seiten-Scroll: die Szenen füllen den Viewport */
  transition: background-color .4s ease, color .4s ease;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 .6em;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-bg);
  color: var(--color-fg);
  padding: .5rem 1rem;
}

/* ---------- Print-Passermarken (Register-Kreuze), rein dekorativ, persistent ---------- */

.print-marks {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.print-mark {
  position: absolute;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: .35;
}
.print-mark--tl { top: calc(var(--masthead-h) + 1rem); left: 1rem; }
.print-mark--br { bottom: calc(var(--nav-h) + 1rem); right: 1rem; }

/* ---------- Masthead (Ticker + Meta-Zeile), persistent über allen Szenen ---------- */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--masthead-h);
}
/* Ruhige Zeilen-Rotation statt Laufschrift: vier Zeilen liegen übereinander
   und blenden sich nacheinander ein/aus (Kreuzblende), rein per CSS. */
.masthead__tagline {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.masthead__tagline span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  white-space: nowrap;
  animation: tagline-crossfade 20s ease-in-out infinite;
}
.masthead__tagline span:nth-child(1) { animation-delay: 0s; }
.masthead__tagline span:nth-child(2) { animation-delay: 5s; }
.masthead__tagline span:nth-child(3) { animation-delay: 10s; }
.masthead__tagline span:nth-child(4) { animation-delay: 15s; }
@keyframes tagline-crossfade {
  0%, 2% { opacity: 0; }
  9%, 16% { opacity: 1; }
  23%, 100% { opacity: 0; }
}

/* ---------- Szenen-Mechanik ---------- */

main {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

/* Skaliert-Modus (js/stage-scale.js): bei zu kurzem Viewport (z. B. eine
   hoch-DPI-skalierte Laptop-Anzeige mit weniger effektiven CSS-Pixeln als
   der externe Monitor) bekommt #stage eine feste Referenzhöhe, JS skaliert
   den kompletten #stage-Block per transform:scale() so, dass er wieder
   exakt in den echten Viewport passt — dadurch bleiben auch alle
   position:fixed-Elemente (Masthead, Nav, Wunsch-Dock, Buttons) mit
   skaliert, weil ein transform auf einem Vorfahren zum containing block
   für fixed-Nachfahren wird. */
#stage {
  transform-origin: top center;
}
body.is-scaled main {
  height: 900px;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding-top: var(--masthead-h);
  padding-bottom: var(--nav-h);
  opacity: 0;
  pointer-events: none;
  transform: translateY(3vh) scale(.98);
  transition: opacity var(--scene-transition), transform var(--scene-transition);
  overflow-y: auto; /* Sicherheitsnetz: falls Inhalt auf sehr kleinen Screens höher als der Viewport ist */
  overflow-x: hidden; /* für randabschneidende Flourishes (z. B. .flourish-filmset in XXL) statt Scrollbalken */
}
.scene.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  z-index: 2;
}

/* Jedes direkte Kind einer Szene (h2, Absätze, Formulare, Grids …) bekommt
   dieselbe zentrierte Inhaltsbreite — NICHT die Szene selbst, sonst würde
   das feste Vollbild-Positioning (position:absolute; inset:0) durch
   max-width zusammengestaucht. */
.scene > * {
  max-width: var(--content-width);
  width: 100%;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Hero ---------- */

.module--hero > * {
  max-width: 40rem;
}
.module--about > * {
  max-width: 64rem;
}
.module--workshops > * {
  max-width: 52rem;
}
/* Breiter als der Standard-Content (44rem), damit der Arbeiten-Raster mehr
   Spalten bekommt und weniger Zeilen braucht — spart die Höhe, die die
   nun hier eingezogenen Auszeichnungen zusätzlich brauchen. */
.module--work > * {
  max-width: 64rem;
}
.module--hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 6rem);
  letter-spacing: .01em;
  margin: 1.25rem 0 .5rem;
}
.module--hero__tagline {
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  margin: 0 0 .35rem;
}
.module--hero__location {
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .75;
  margin: 0 0 1.5rem;
}
.module--hero__clients {
  font-family: var(--font-heading);
  letter-spacing: .06em;
  font-size: clamp(.75rem, 1.6vw, .95rem);
  padding-top: 1.25rem;
  margin: 0;
  border-top: var(--border-width) solid currentColor;
  display: inline-block;
}

/* ---------- Hero-Eintrittsanimation (einmalig beim Laden, statt statisch dazustehen) ---------- */

@keyframes scene-intro {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: none; }
}
.module--hero .stamp-badge,
.module--hero__name,
.module--hero__tagline,
.module--hero__location,
.module--hero__clients {
  animation: scene-intro .8s cubic-bezier(.22, 1, .36, 1) both;
}
.module--hero .stamp-badge { animation-delay: .05s; }
.module--hero__tagline { animation-delay: .16s; }
.module--hero__location { animation-delay: .24s; }
.module--hero__clients { animation-delay: .32s; }

/* ---------- Stempel-Badge (generische Form; Optik kommt vom Theme) ---------- */

.stamp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.stamp-badge--role {
  width: clamp(6rem, 10vw, 7.5rem);
  font-size: .75rem;
  line-height: 1.3;
  letter-spacing: .04em;
}
.stamp-badge--years {
  /* Version 04: verkleinert (war 5–6.5rem) — schafft in der "Über mich"-
     Spalte Platz für mehr Fließtext, ohne die Panel-Höhe zu sprengen
     (die von der Werdegang-Spalte vorgegeben wird). */
  width: clamp(3.75rem, 6.5vw, 4.75rem);
  font-size: .72rem;
  line-height: 1.1;
  font-weight: 700;
}

/* ---------- Flourish-Vokabular (Sunburst/Zahnrad/Rasterakzente) ----------
   Reine Form-Mechanik, themenunabhängig — Farbe/Größe/Position kommt aus
   dem Theme. Direkt aus dem Element-Set der Claude-Design-Entwürfe
   (V2_HP_CLAUDE_DESIGN_OPUS_MAX) übernommen: 12-zackiger Stern, Zahnrad-
   Ring mit ausgestanzter Mitte, 2×2-Farbraster. Pro Szene unterschiedlich
   eingesetzt, damit jede Szene ihre eigene Note bekommt statt überall
   denselben Flourish zu wiederholen. */

.flourish {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* Direkte Szenen-Kinder bekommen sonst automatisch max-width/Padding aus
   der zentrierten Inhaltsspalte (siehe ".scene > *" weiter unten) — für
   frei positionierte Flourishes muss das zurückgesetzt werden. */
.scene > .flourish {
  max-width: none;
  width: auto;
  padding-inline: 0;
}
.flourish-star {
  clip-path: polygon(
    50.0% 0.0%, 57.0% 23.9%, 75.0% 6.7%, 69.1% 30.9%, 93.3% 25.0%, 76.1% 43.0%,
    100.0% 50.0%, 76.1% 57.0%, 93.3% 75.0%, 69.1% 69.1%, 75.0% 93.3%, 57.0% 76.1%,
    50.0% 100.0%, 43.0% 76.1%, 25.0% 93.3%, 30.9% 69.1%, 6.7% 75.0%, 23.9% 57.0%,
    0.0% 50.0%, 23.9% 43.0%, 6.7% 25.0%, 30.9% 30.9%, 25.0% 6.7%, 43.0% 23.9%
  );
}
.flourish-wheel {
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, transparent 32%, #000 33%);
  mask-image: radial-gradient(circle, transparent 32%, #000 33%);
}
.flourish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  overflow: hidden;
}
.flourish-grid span { display: block; }

/* Großformatiges Scherenschnitt-Silhouette-Motiv (hier: Filmklappe) — reine
   Form aus CSS-Boxen, kein Bild-Asset nötig. Piloten-Baustein (Kontakt),
   bei Bewährung auf weitere Szenen mit eigenem Motiv übertragbar. Farbe/
   Deckkraft/Position/Größe kommt vollständig aus dem Theme. */
.flourish-clapper__board {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 32%;
  border-radius: .5rem;
}
.flourish-clapper__top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  border-radius: .5rem;
  transform-origin: left bottom;
  transform: rotate(-15deg);
}
.flourish-clapper__hinge {
  position: absolute;
  left: -.4rem;
  top: calc(32% - .5rem);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
}

/* Asymmetrische Eckenrundung (eine große, eine kleine Ecke gegenüber) statt
   gleichmäßigem Radius — direkt aus den Karten-/Pill-Formen der Design-
   Vorlage übernommen, macht Karten weniger "Standard-Kasten". */
.card-asym {
  border-radius: 2.4em .6em 2.4em .6em;
}

/* ---------- Panel-Grid (mehrere Themen-Blöcke in einer Szene) ---------- */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}
/* Version 06: "Über mich" bekommt mehr Breite als Kernkompetenzen/Werdegang
   (Pills/Timeline vertragen eine schmalere Spalte gut, Fließtext nicht) —
   damit mehr Text in weniger, längeren Zeilen umbricht statt in vielen
   kurzen, was die Panel-Höhe unnötig in die Höhe treibt. */
.module--about .panel-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
}
.panel-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
/* Ein einzelnes, breiteres Panel statt eines Grids — für Szenen mit nur
   noch einem Inhaltsblock (z. B. Workshops, seit die Auszeichnungen zu
   "Ausgewählte Arbeiten" gewandert sind). */
.panel-grid--solo {
  grid-template-columns: 1fr;
  max-width: 44rem;
  margin-inline: auto;
}
.panel {
  display: flex;
  flex-direction: column;
  border: var(--border-width) solid currentColor;
  background: var(--color-bg);
  box-shadow: .3rem .3rem 0 0 var(--color-accent);
  /* Version 06: Innenabstand leicht verringert (war 1.25rem/1.5rem unten) —
     schafft zusammen mit der verkürzten Überschrift-Marge (siehe .panel h3)
     zusätzlichen Platz in "Über mich" für mehr Fließtext, ohne die 900px-
     Szenenhöhe zu sprengen. */
  padding: 1.1rem 1.25rem 1.2rem;
  /* Sicherheitsnetz wie bei .scene: Panels in einer Grid-Reihe werden per
     Grid-Stretch alle gleich hoch (Höhe der höchsten Spalte) — falls der
     Inhalt einer schmaleren Spalte trotzdem nicht passt, scrollt er intern
     statt unsichtbar abgeschnitten zu werden. */
  overflow-y: auto;
}
/* Version 04: Inhalt UNTERHALB der Überschrift (Pills/Timeline + Meta-Zeile)
   nimmt den restlichen Platz ein und wird darin vertikal zentriert, statt
   oben zu kleben und darunter Leerraum stehen zu lassen — Überschrift
   bleibt oben fix. Nur dort verwendet, wo der Inhalt kürzer als die vom
   Grid-Stretch vorgegebene Panel-Höhe ist (Kernkompetenzen, Werdegang). */
.panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.panel h3 {
  margin: 0 0 .7rem;
  font-size: 1rem;
}
@media (max-width: 60rem) {
  .panel-grid, .panel-grid--two {
    grid-template-columns: 1fr;
  }
}

/* ---------- Über mich ---------- */

.about-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  text-align: left;
}
.about-layout p { margin: 0; flex: 1 1 26rem; line-height: 1.48; }

/* Version 07: etwas mehr Textraum für die (noch als Platzhalter
   markierten) finalen Workshops-Texte, ohne die Panel-Struktur
   anzufassen — dieselbe Zeilenhöhe wie bei "Über mich", plus etwas
   engere Absatzabstände als der Browser-Standard. */
.panel-grid--solo .panel p {
  line-height: 1.48;
  margin: 0 0 .85rem;
}

/* ---------- Kernkompetenzen ---------- */

.skills-grid,
.topic-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: .75rem 1.5rem;
  text-align: left;
}
.skills-grid li,
.topic-tags li {
  padding: .8rem 1rem;
  border: var(--border-width) solid currentColor;
  background: var(--color-bg);
  box-shadow: .3rem .3rem 0 0 var(--color-accent);
}
.skills-meta { font-size: .85rem; opacity: .75; }

/* ---------- Werdegang ---------- */

.timeline { list-style: none; padding: 0; margin: 0; text-align: left; max-height: 100%; counter-reset: exp-counter; }
.timeline__item { border-top: var(--border-width) solid currentColor; counter-increment: exp-counter; }
.timeline__item:last-child { border-bottom: var(--border-width) solid currentColor; }
.timeline summary {
  cursor: pointer;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  padding: .85rem 0 .85rem 3rem;
  list-style: none;
}
.timeline summary::-webkit-details-marker { display: none; }
/* Nummerierter Stempel-Badge vor jeder Station — generisch positioniert,
   Farbe/Füllung kommt vom Theme (siehe letterista.css). */
.timeline summary::before {
  content: counter(exp-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .55rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  border: var(--border-width) solid currentColor;
  flex-shrink: 0;
}
.timeline__period { opacity: .6; min-width: 6rem; }
.timeline__role { font-weight: 600; }
.timeline details p { margin: 0 0 1rem; opacity: .85; }
/* Version 07: statt einer unauffälligen Textzeile jetzt ein rundes
   Stempel-Badge, das die untere rechte Ecke des Werdegang-Panels
   überlappt — greift dieselbe Optik wie der "Umschnitt gefällig?"-Button
   auf (siehe .theme-random-btn), statt eine eigene Formsprache
   einzuführen. Braucht overflow:visible + position:relative am Panel,
   siehe .panel--career unten. */
.panel--career {
  position: relative;
  overflow: visible;
}
.career-cv-btn {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  z-index: 2;
  width: clamp(4.5rem, 8vw, 5.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(.62rem, 1.3vw, .72rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border: var(--border-width) solid currentColor;
  color: inherit;
  transform: rotate(7deg);
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.career-cv-btn:hover, .career-cv-btn:focus-visible {
  transform: rotate(0deg) scale(1.06);
}

/* ---------- Ausgewählte Arbeiten ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: .75rem;
  text-align: left;
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .85rem .95rem;
  border: var(--border-width) solid currentColor;
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: .3rem .3rem 0 0 var(--color-accent);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translate(-.15rem, -.4rem); box-shadow: .45rem .45rem 0 0 var(--color-accent); }
.work-card--pending { opacity: .5; }
.work-card__title { font-weight: 600; }
.work-card__meta { font-size: .8rem; opacity: .7; }

/* ---------- Auszeichnungen (Teil der "Ausgewählte Arbeiten"-Szene) ---------- */

.work-awards {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid currentColor;
  text-align: center;
}
.work-awards h3 {
  font-size: .85rem;
  margin-bottom: .6rem;
}
.awards-list { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.awards-list li {
  border: var(--border-width) solid currentColor;
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: .8rem;
  background: var(--color-bg);
  box-shadow: .25rem .25rem 0 0 var(--color-accent);
}

/* ---------- Kontaktformular ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 30rem;
  margin: 0 auto;
  text-align: left;
}
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: .75rem;
  background: var(--color-bg-alt);
  border: var(--border-width) solid currentColor;
  border-radius: var(--radius);
  color: inherit;
}
.contact-form button {
  align-self: flex-start;
  font: inherit;
  cursor: pointer;
  padding: .6rem 1.4rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius);
}
.hp-field { position: absolute; left: -9999px; }
.contact-result:empty { display: none; }
.contact-social a { color: inherit; }
.contact-credit {
  margin: .5rem 0 0;
  font-family: var(--font-script);
  font-size: 1.15rem;
  opacity: .8;
}
.scene-footer-links { margin-top: 1.5rem; font-size: .85rem; opacity: .75; }

/* ---------- Wunsch-Generator: persistentes Terminal-Dock auf jeder Szene ---------- */

.wish-dock {
  position: fixed;
  left: clamp(1rem, 4vw, 2rem);
  bottom: calc(var(--nav-h) + 2.25rem);
  z-index: 21;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  min-width: 15rem;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: .65rem 1rem;
  border: var(--border-width) solid currentColor;
  border-radius: var(--radius);
}
.wish-dock__label {
  margin: 0;
  font-family: var(--font-script);
  line-height: 1.1;
}
.wish-dock__row {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  font-family: var(--font-mono);
}
.wish-dock__prompt {
  white-space: nowrap;
}
.wish-dock__prompt::after {
  content: "";
  display: inline-block;
  width: .5em;
  height: 1em;
  margin-left: .25em;
  background: currentColor;
  vertical-align: text-bottom;
  animation: dos-blink 1s steps(1, jump-none) infinite;
}
@keyframes dos-blink { 50% { opacity: 0; } }
.wish-dock input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  color: inherit;
}
.wish-dock input:focus { outline: none; }
.wish-dock input::placeholder { opacity: .55; }
.wish-dock input:disabled { opacity: .6; cursor: wait; }

@media (max-width: 40rem) {
  .wish-dock {
    left: .75rem;
    bottom: calc(var(--nav-h) + .6rem);
    min-width: 0;
    max-width: calc(100vw - 1.5rem);
  }
}

.wish-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, .7);
}
.wish-modal[hidden] { display: none; }
.wish-modal__panel {
  position: relative;
  max-width: 32rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-bg);
  border: var(--border-width) solid currentColor;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: left;
}
.wish-modal__close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 2rem;
  height: 2rem;
  border: var(--border-width) solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.wish-result img { max-width: 100%; border-radius: var(--radius); display: block; }
.wish-result .wish-result__text {
  font-style: italic;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.wish-result .wish-result__error { color: var(--color-accent); }
.wish-result .wish-result__countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  opacity: .85;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Szenen-Navigation (unten, persistent) ---------- */

.scene-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(.75rem, 3vw, 1.5rem);
}
.scene-nav__counter {
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  white-space: nowrap;
  font-size: .85rem;
}
.scene-nav__list {
  list-style: none;
  display: flex;
  gap: .4rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.scene-nav__list::-webkit-scrollbar { display: none; }
.scene-nav__item {
  font: inherit;
  font-size: .75rem;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: var(--border-width) solid transparent;
  border-radius: 999px;
  padding: .4rem .9rem;
  color: inherit;
}
.scene-nav__controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.scene-nav__arrow {
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: var(--border-width) solid currentColor;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  color: inherit;
}
/* Schwebt als eigener runder "Stempel" oben rechts, deutlich abgesetzt
   vom Rand statt eng in der Ecke — bewusst die prominenteste Kontrolle
   auf der Seite. */
.theme-random-btn {
  position: fixed;
  top: calc(var(--masthead-h) + 1.9rem);
  right: clamp(2rem, 7vw, 4.5rem);
  z-index: 21;
  width: clamp(5.5rem, 11vw, 7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: clamp(.68rem, 1.5vw, .8rem);
  line-height: 1.3;
  letter-spacing: .04em;
  cursor: pointer;
  border: var(--border-width) solid currentColor;
  color: inherit;
  background: transparent;
  white-space: nowrap;
  transform: rotate(-7deg);
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.theme-random-btn:hover, .theme-random-btn:focus-visible {
  transform: rotate(0deg) scale(1.06);
}
.theme-random-btn[hidden] { display: none; }

@media (max-width: 40rem) {
  .theme-random-btn {
    top: calc(var(--masthead-h) + .75rem);
    right: 1rem;
    width: clamp(4.5rem, 13vw, 5.5rem);
  }
}

@media (max-width: 40rem) {
  .scene-nav { gap: .5rem; }
  .scene-nav__item { font-size: .68rem; padding: .35rem .65rem; }
  /* Zusätzlicher Bodenabstand, damit Inhalt nicht unter das schwebende
     Wunsch-Dock rutscht (sitzt auf kleinen Screens direkt über der
     Nav-Leiste, nicht seitlich daneben wie am Desktop). */
  .scene { padding-bottom: calc(var(--nav-h) + 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .scene, .masthead__ticker-track,
  .module--hero .stamp-badge, .module--hero__name,
  .module--hero__tagline, .module--hero__location, .module--hero__clients,
  .dos-terminal__prompt::after {
    transition: none; animation: none;
  }
  .scene.is-active { opacity: 1; transform: none; }
}
