/* ============================================
   247.blue – Ausstellung „Übersetzungen“
   Draußen: die Tafel. Drinnen: der Raum.
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --nacht: #060610;
  --nacht-2: #0b0c1a;
  --amt: #cdd1d4;          /* kaltes Neonlicht der Außenwelt */
  --amt-papier: #eceeef;
  --amt-tinte: #2a2e33;
  --blue: #0088ff;
  --blue-light: #00bbff;
  --gold: #ffd700;
  --gold-warm: #f3cf7a;
  --text: #d0d8e8;
  --text-soft: #7a8ea6;
  --text-hell: #eef2f8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-lyric: 'Cormorant Garamond', Georgia, serif;
  --langsam: 1.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { font-size: 16px; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--nacht);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color var(--langsam), color var(--langsam);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.seven { color: var(--gold); }

/* --- Kopfleiste --- */
.ax-top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft);
  background: linear-gradient(to bottom, rgba(6, 6, 16, 0.75), transparent);
  transition: color var(--langsam), background var(--langsam);
}
.ax-logo {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.04em;
  text-transform: none; text-decoration: none; color: var(--blue);
}
.ax-top-foyer { text-decoration: none; }
.ax-top-foyer:hover { color: var(--text-hell); }
.ax-top-nr { margin-left: auto; }
.aussen .ax-top { color: #5b636b; background: linear-gradient(to bottom, rgba(205, 209, 212, 0.85), transparent); }
.aussen .ax-top-foyer:hover { color: var(--amt-tinte); }
.aussen .ax-top .seven { color: #a8870a; }

/* =========================================================
   RAUM
   ========================================================= */
.ax-raum.aussen { background: var(--amt); color: var(--amt-tinte); }

/* --- Bühne mit Tafel --- */
.ax-stage {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem; padding: 5.5rem 1rem 3rem;
  perspective: 1600px;
}
.ax-raumnr {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-soft);
  transition: color var(--langsam);
}
.aussen .ax-raumnr { color: #6b737b; }

.ax-karte {
  position: relative;
  width: min(82vw, 430px);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 1.5s cubic-bezier(0.6, 0.05, 0.2, 1);
}
.ax-karte.gedreht { transform: rotateY(180deg); }
.ax-front, .ax-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.ax-front {
  background: var(--amt-papier);
  color: var(--amt-tinte);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 18px 40px -18px rgba(30, 35, 40, 0.45);
  padding: clamp(1.6rem, 6vw, 2.6rem);
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
}
/* Schraubenköpfe der Museumstafel */
.ax-front::before, .ax-front::after {
  content: ""; position: absolute; top: 14px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fafafa, #9aa0a6);
}
.ax-front::before { left: 14px; }
.ax-front::after { right: 14px; }
.ax-quelle {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #7b838b;
}
.ax-etikett {
  font-size: clamp(1.15rem, 4.4vw, 1.45rem); font-weight: 400; line-height: 1.45; letter-spacing: -0.005em;
}
.ax-aussen {
  position: absolute; right: clamp(1.6rem, 6vw, 2.6rem); bottom: 1.3rem;
  font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: #a3a9ae;
}
.ax-back { transform: rotateY(180deg); background: #111; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.ax-back img { width: 100%; height: 100%; object-fit: cover; }

.ax-dreh {
  font: inherit; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  background: none; color: var(--amt-tinte); cursor: pointer;
  border: 1px solid rgba(42, 46, 51, 0.45); padding: 0.85rem 1.6rem;
  transition: background 0.4s, color 0.4s, opacity 0.8s;
}
.ax-dreh:hover, .ax-dreh:focus-visible { background: var(--amt-tinte); color: var(--amt-papier); outline: none; }
.ax-hinweis { font-size: 0.82rem; color: #6b737b; text-align: center; max-width: 30ch; transition: opacity 0.8s; }
.innen .ax-dreh, .innen .ax-hinweis { opacity: 0; pointer-events: none; }

/* Inhalt hinter der Tafel ist erst „drinnen“ wirklich da */
.ax-werk, .ax-uebersetzung, .ax-feuilleton, .ax-frage, .ax-nav, .ax-hoeren { transition: opacity 1.4s ease 0.4s; }
.js .aussen .ax-werk, .js .aussen .ax-uebersetzung, .js .aussen .ax-feuilleton,
.js .aussen .ax-frage, .js .aussen .ax-nav, .js .aussen .ax-hoeren { opacity: 0.08; }

/* --- Werk --- */
.ax-werk { text-align: center; padding: 2rem 1rem 1rem; }
.ax-titel {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 3.6rem); color: var(--text-hell); line-height: 1.15;
}
.ax-herkunft { margin-top: 0.8rem; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--text-soft); }
.ax-herkunft a { color: var(--blue-light); text-decoration: none; }
.ax-herkunft a:hover { text-decoration: underline; }

.ax-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-soft);
  text-align: center; margin-bottom: 2.2rem;
}

/* --- Übersetzung (Liedtext) --- */
.ax-uebersetzung {
  position: relative;
  padding: 7rem 1rem 6rem;
  transition: background-color 0.3s linear, color 0.3s linear, opacity 1.4s ease 0.4s;
}
.ax-lyrics {
  position: relative;
  max-width: 34ch; margin: 0 auto;
  font-family: var(--font-lyric); font-weight: 400;
  font-size: clamp(1.25rem, 4.2vw, 1.5rem); line-height: 1.75;
  text-align: center; color: var(--text-hell);
}
.ax-lyrics .z { display: block; transition: opacity 1.1s ease, transform 1.1s ease, filter 0.9s ease, color 1s ease, letter-spacing 0.3s ease; }
.ax-lyrics .leer { height: 1.1em; }
.ax-lyrics .label {
  font-family: var(--font-body); font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-soft);
  margin: 1.4rem 0 0.4rem;
}
.ax-lyrics .ziel { color: var(--gold-warm); }

/* Standard-Aufscheinen: Zeilen erscheinen, wenn sie in den Blick kommen */
.js .ax-lyrics.aufscheinen .z { opacity: 0; transform: translateY(10px); }
.js .ax-lyrics.aufscheinen .z.an { opacity: 1; transform: none; }

.ax-hinweis-geste {
  text-align: center; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-soft); margin: -1.2rem 0 2rem; transition: opacity 1s;
}

.ax-nachklang {
  max-width: 30rem; margin: 5rem auto 0; padding-top: 2rem;
  border-top: 1px solid rgba(122, 142, 166, 0.25);
  font-family: var(--font-lyric); font-style: italic; font-size: 1.15rem; line-height: 1.6;
  text-align: center; color: var(--text-soft);
  opacity: 0; transition: opacity 2s ease;
}
.ax-nachklang.an, .ohne-js .ax-nachklang { opacity: 1; }

/* --- Feuilleton --- */
.ax-feuilleton { padding: 5rem 1.25rem; max-width: 40rem; margin: 0 auto; }
.ax-feu-text { font-family: var(--font-lyric); font-size: clamp(1.15rem, 3.6vw, 1.28rem); line-height: 1.75; color: #c6cfdd; }
.ax-feu-text p + p { margin-top: 1.1em; }
.ax-feu-text h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--text-hell); margin: 2em 0 0.6em; }
.ax-feu-text hr { border: 0; height: 1px; background: rgba(122, 142, 166, 0.3); margin: 2.5em auto; width: 40%; }
.ax-feu-text em { color: var(--text-hell); }
.ax-feu-titel {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.25; color: var(--text-hell); text-align: center;
}
.ax-feu-unter {
  font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-soft);
  text-align: center; margin: 0.9rem 0 2.6rem !important;
}
.ax-feu-mehr { margin-top: 2.5rem; border-top: 1px solid rgba(122, 142, 166, 0.25); }
.ax-feu-mehr summary {
  cursor: pointer; list-style: none; padding: 1.3rem 0; display: flex; flex-direction: column; gap: 0.2rem;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--text-hell);
}
.ax-feu-mehr summary::-webkit-details-marker { display: none; }
.ax-feu-mehr summary::before { content: "+ weiteres Feuilleton"; font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue-light); }
.ax-feu-mehr[open] summary::before { content: "− schließen"; }
.ax-feu-mehr summary small { font-family: var(--font-body); font-size: 0.75rem; color: var(--text-soft); }
.ax-feu-mehr[open] .ax-feu-text { padding-bottom: 2rem; }
.ax-feu-link {
  display: flex; flex-direction: column; gap: 0.25rem; margin-top: 2.5rem; padding: 1.3rem 0;
  border-top: 1px solid rgba(122, 142, 166, 0.25); text-decoration: none;
}
.ax-feu-link-titel { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-hell); }
.ax-feu-link-unter { font-size: 0.8rem; color: var(--blue-light); }
.ax-feu-link:hover .ax-feu-link-titel { color: var(--blue-light); }
.ax-leer { padding: 7rem 1.25rem; text-align: center; }
.ax-leertext {
  font-family: var(--font-lyric); font-style: italic; font-size: 1.35rem; color: #4d5a6b;
  min-height: 30vh; display: flex; align-items: center; justify-content: center;
}

/* --- Frage --- */
.ax-frage { min-height: 75svh; display: flex; align-items: center; justify-content: center; padding: 4rem 1.5rem; }
.ax-frage p {
  max-width: 24ch; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 5.4vw, 2.3rem); line-height: 1.4;
  color: var(--text-hell);
}
.ax-frage p::before {
  content: "Eine Frage zum Mitnehmen"; display: block; margin-bottom: 1.8rem;
  font-family: var(--font-body); font-style: normal; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-soft);
}

/* --- Rundgang-Navigation --- */
.ax-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  max-width: 60rem; margin: 0 auto; padding: 2rem 1.25rem;
  border-top: 1px solid rgba(122, 142, 166, 0.2);
}
.ax-nav a { text-decoration: none; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.ax-nav a:hover { color: var(--blue-light); }
.ax-nav small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.3rem; }
.ax-nav-nach { text-align: right; }
.ax-nav-foyer { font-family: var(--font-body) !important; font-size: 0.7rem !important; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-soft) !important; }
.ax-hoeren { text-align: center; font-size: 0.82rem; color: var(--text-soft); padding: 0 1rem 3rem; }
.ax-hoeren a { color: var(--blue-light); text-decoration: none; }
.ax-footer { text-align: center; font-size: 0.72rem; color: #4a5566; padding: 2rem 1rem 3rem; }
.ax-footer a { color: inherit; }

/* =========================================================
   RAUMGESTEN
   ========================================================= */
.ax-uebersetzung { overflow: clip; isolation: isolate; }
.ax-lyrics { z-index: 1; }

/* --- gemeinsame Momente --- */
/* Lichtblitz über die ganze Sektion */
.ax-uebersetzung::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(circle at 50% 45%, rgba(255, 250, 235, 0.9), rgba(255, 250, 235, 0) 70%);
  opacity: 0;
}
.ax-uebersetzung.blitz::after { animation: blitz 0.7s ease-out; }
@keyframes blitz { 0% { opacity: 0; } 12% { opacity: 0.75; } 100% { opacity: 0; } }
.ax-uebersetzung.farbblitz::after {
  background: linear-gradient(120deg, rgba(0, 187, 255, 0.45), rgba(255, 215, 0, 0.45), rgba(255, 111, 160, 0.4));
  animation: blitz 1.6s ease-out;
}
/* Funken, die aufsteigen */
.ax-funke {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; z-index: 5; pointer-events: none;
  box-shadow: 0 0 10px currentColor; opacity: 0;
  animation: funke 1.9s ease-out forwards;
}
@keyframes funke {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}
/* Eine Zeile leuchtet kurz auf */
.ax-lyrics .z.aufleuchten { animation: aufleuchten 2.4s ease; }
@keyframes aufleuchten {
  0%, 100% { text-shadow: none; }
  30% { color: #fff3c4; text-shadow: 0 0 18px rgba(255, 215, 0, 0.85), 0 0 40px rgba(255, 180, 60, 0.4); }
}

/* herz – Zeilen kommen im Herzschlag, an der Zielzeile rast das Herz */
.g-herz .ax-uebersetzung::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 80vmin; height: 80vmin; z-index: 0;
  transform: translate(-50%, -50%) scale(0.85); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 120, 255, 0.28), transparent 62%);
  transition: transform 0.25s ease-out, background 1s;
}
.g-herz .ax-uebersetzung.schlag::before { transform: translate(-50%, -50%) scale(1.12); transition: transform 0.08s ease-in; }
.g-herz .ax-uebersetzung.rasen::before { background: radial-gradient(circle, rgba(255, 70, 90, 0.32), transparent 62%); }
.g-herz .ax-uebersetzung.schlag .ax-lyrics { transform: scale(1.018); }
.g-herz .ax-lyrics { transition: transform 0.25s ease-out; }

/* druck – enger, dunkler, zitternd – dann die Explosion */
.ax-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(0, 0, 0, 0.92) 75%);
  transition: opacity 0.4s;
}

/* licht – nur lesbar, wo Licht ist; ein Tipp zündet einen Funken */
.js .g-licht .ax-lyrics {
  background: radial-gradient(circle 150px at var(--lx, 50%) var(--ly, 30%),
    #fff7df 0%, #f0d9a0 32%, rgba(70, 82, 105, 0.22) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .g-licht .ax-lyrics.funke { background: linear-gradient(#fff4cf, #ffd36e); -webkit-background-clip: text; background-clip: text; }
.js .g-licht .ax-lyrics .z, .js .g-licht .ax-lyrics .label, .js .g-licht .ax-lyrics .ziel { color: transparent; }
.g-licht .ax-uebersetzung { cursor: crosshair; }

/* wand – Zeilen prallen ab, die letzte bricht durch */
.js .g-wand .ax-lyrics .z { opacity: 0; transform: translateX(-60px); }
.js .g-wand .ax-lyrics .z.an { animation: wand 1.3s cubic-bezier(0.3, 0.7, 0.4, 1) forwards; }
@keyframes wand {
  0% { opacity: 0; transform: translateX(-60px); }
  50% { opacity: 1; transform: translateX(34px); }
  62% { transform: translateX(-14px); }
  78% { transform: translateX(6px); }
  100% { opacity: 1; transform: translateX(0); }
}
.ax-mauer {
  position: absolute; top: -2rem; bottom: -2rem; right: -2.2rem; width: 3px; z-index: 2;
  background: linear-gradient(transparent, rgba(160, 190, 230, 0.55), transparent);
  opacity: 0; transition: opacity 1s;
}
.ax-mauer.da { opacity: 1; }
.ax-mauer.beben { animation: beben 0.4s; }
@keyframes beben { 25% { transform: translateX(3px); } 50% { transform: translateX(-2px); } 75% { transform: translateX(1px); } }
.ax-mauer.bricht { animation: mauerbruch 1.4s forwards; }
@keyframes mauerbruch {
  0% { opacity: 1; } 15% { opacity: 0.2; } 25% { opacity: 1; transform: scaleX(3); }
  100% { opacity: 0; transform: scaleY(0.1) scaleX(6); }
}
.js .g-wand .ax-lyrics .z.durch { animation: durchbruch 1.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; color: var(--gold-warm); }
@keyframes durchbruch {
  0% { transform: translateX(0); } 30% { transform: translateX(28px); } 45% { transform: translateX(10px); }
  70% { transform: translateX(120px); opacity: 1; } 100% { transform: translateX(0); opacity: 1; }
}

/* takt – eigener Rhythmus, versetzte Zeilen, manchmal ein Schlag */
.js .g-takt .ax-lyrics .z.an { transform: translateX(var(--versatz, 0)); }
.ax-lyrics .z.akzent { animation: akzent 0.9s ease-out; }
@keyframes akzent { 0% { transform: translateX(var(--versatz, 0)) scale(1.35); color: var(--gold); } 100% { transform: translateX(var(--versatz, 0)) scale(1); } }

/* stau – der Text steht, der Motor heult, dann ein Ruck */
.ax-lyrics.steht .z { animation: motor 0.07s infinite alternate; }
@keyframes motor { from { translate: calc(var(--motor, 0px) * -1) 0; } to { translate: var(--motor, 0px) 0; } }
.ax-lyrics.ruck .z { animation: ruck 0.9s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes ruck { 0% { translate: 0 -70px; } 60% { translate: 0 12px; } 100% { translate: 0 0; } }

/* vergessen – am Ende kommt alles einmal kurz zurück */
.ax-lyrics .z.weg { opacity: 0 !important; filter: blur(7px); transition: opacity 2.6s ease, filter 2.6s ease; }
.ax-lyrics.erinnern .z.weg { opacity: 0.4 !important; filter: blur(1.5px); transition: opacity 0.35s, filter 0.35s; }
.g-vergessen .ax-lyrics .ziel { color: var(--gold-warm); }
.ax-lyrics .ziel.gross { transform: scale(1.35) !important; text-shadow: 0 0 22px rgba(255, 215, 0, 0.45); transition: transform 1.8s cubic-bezier(0.2, 1.2, 0.3, 1), text-shadow 1.8s; }

/* fallen – Zeilen fallen, manche zu weit */
.js .g-fallen .ax-lyrics .z { opacity: 0; transform: translateY(-160px) rotate(var(--dreh, 0deg)); }
.js .g-fallen .ax-lyrics .z.an { opacity: 1; transform: none; transition: opacity 0.4s, transform 1.1s cubic-bezier(0.3, 1.5, 0.5, 1); }
.js .g-fallen .ax-lyrics .z.durchgefallen { animation: durchfallen 2s cubic-bezier(0.3, 0.8, 0.4, 1) forwards; }
@keyframes durchfallen {
  0% { opacity: 0; transform: translateY(-160px) rotate(var(--dreh)); }
  35% { opacity: 1; transform: translateY(110px) rotate(calc(var(--dreh) * -1.5)); }
  60% { transform: translateY(-18px) rotate(2deg); }
  80% { transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

/* ausbreiten – am Ende wird der Text Fläche */
.ax-kreiswelle {
  position: absolute; left: 50%; top: 70%; width: 20px; height: 20px; margin: -10px 0 0 -10px; z-index: 0;
  border-radius: 50%; border: 1px solid rgba(170, 205, 255, 0.6); pointer-events: none;
  animation: kreiswelle 3.4s ease-out forwards;
}
@keyframes kreiswelle { to { transform: scale(90); opacity: 0; border-width: 0.2px; } }

/* form – Durcheinander rastet in ein Spalier ein */
.ax-spalier {
  position: absolute; top: -1rem; bottom: -1rem; left: 50%; width: 70%; transform: translateX(-50%) scaleY(0); z-index: -1;
  transform-origin: top;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 215, 0, 0.25) calc(50% - 0.5px), rgba(255, 215, 0, 0.25) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    repeating-linear-gradient(180deg, transparent 0 5.2em, rgba(255, 215, 0, 0.12) 5.2em calc(5.2em + 1px));
  opacity: 0; transition: transform 1.4s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 1.4s;
}
.ax-spalier.da { opacity: 1; transform: translateX(-50%) scaleY(1); }

/* ueberlauf – das Glas ist zu eng, dann zerbricht es */
.g-ueberlauf .ax-lyrics { max-width: calc(13ch + var(--p, 0) * 38ch); transition: max-width 0.25s linear; }
.ax-glas { position: absolute; top: -1.5rem; bottom: -1.5rem; left: 50%; width: min(14ch, 70vw); transform: translateX(-50%); pointer-events: none; z-index: 2; }
.ax-glas span { position: absolute; background: rgba(170, 205, 255, 0.5); box-shadow: 0 0 12px rgba(170, 205, 255, 0.35); transition: transform 1.8s cubic-bezier(0.5, 0, 0.7, 0.4), opacity 1.8s; }
.ax-glas .links { left: 0; top: 0; bottom: 0; width: 1.5px; transform-origin: bottom; }
.ax-glas .rechts { right: 0; top: 0; bottom: 0; width: 1.5px; transform-origin: bottom; }
.ax-glas .boden { left: 0; right: 0; bottom: 0; height: 1.5px; }
.ax-glas.bricht .links { transform: translate(-90px, 260px) rotate(-38deg); opacity: 0; }
.ax-glas.bricht .rechts { transform: translate(90px, 220px) rotate(31deg); opacity: 0; }
.ax-glas.bricht .boden { transform: translateY(300px) rotate(8deg); opacity: 0; }

/* korrektur – angestrichen, rote Randbemerkungen, am Ende Asche */
.g-korrektur .ax-lyrics .z:not(.leer):not(.label) {
  display: table; margin: 0 auto; position: relative;
  background: linear-gradient(transparent 54%, rgba(205, 45, 45, 0.85) 54%, rgba(205, 45, 45, 0.85) 60%, transparent 60%) no-repeat left center / 0% 100%;
}
.js .g-korrektur .ax-lyrics .z.an:not(.leer):not(.label) { animation: anstreichen 2.8s ease forwards; }
@keyframes anstreichen {
  0% { background-size: 0% 100%; }
  20% { background-size: 100% 100%; opacity: 0.5; }
  60% { background-size: 100% 100%; opacity: 0.5; }
  100% { background-size: 100% 100%; background-image: linear-gradient(transparent, transparent); opacity: 1; }
}
.ax-note {
  position: absolute; left: 100%; top: -0.3em; margin-left: 0.9rem; white-space: nowrap;
  font-style: italic; font-size: 0.85em; color: #e0473f; transform: rotate(var(--neig, 0deg));
  opacity: 0; pointer-events: none;
}
.js .g-korrektur .z.an .ax-note { animation: note 1s ease 0.4s forwards; }
@keyframes note { from { opacity: 0; transform: rotate(var(--neig)) scale(1.6); } to { opacity: 0.85; transform: rotate(var(--neig)) scale(1); } }
.g-korrektur .ax-lyrics.asche .ax-note { animation: asche 2.4s ease-in forwards !important; }
@keyframes asche {
  0% { opacity: 0.85; filter: none; }
  30% { color: #8a8f96; }
  100% { opacity: 0; transform: translate(30px, -120px) rotate(40deg); filter: blur(4px); }
}
@media (max-width: 600px) { .ax-note { left: auto; right: 0; top: -1.1em; margin: 0; font-size: 0.7em; } }

/* grau – alles zensiert, bis die Farbe ausbricht */
.g-grau .ax-lyrics { color: #858a92; }
.g-grau .ax-lyrics .ziel { color: #b9bec5; }
.g-grau .ax-titel { color: #b9bec5; transition: color 2s; }
.ax-titel.farbig {
  background: linear-gradient(90deg, var(--blue-light), var(--gold) 50%, #ff6fa0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ax-lyrics .farbe {
  font-weight: 500;
  background: linear-gradient(90deg, var(--blue-light), var(--gold) 55%, #ff8a5c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* spiegel – lesbar erst in der Mitte, der Spiegel springt */
.js .g-spiegel .ax-lyrics .z { transform: scaleX(-1); opacity: 0.35; filter: blur(1.5px); transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s; }
.js .g-spiegel .ax-lyrics .z.mitte { transform: none; opacity: 1; filter: none; }
.ax-riss { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.ax-riss svg { width: 100%; height: 100%; }
.ax-riss path { fill: none; stroke: rgba(220, 235, 255, 0.45); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.ax-riss.da { opacity: 1; }
.ax-riss.da path { animation: riss 0.5s ease-out forwards; }
@keyframes riss { to { stroke-dashoffset: 0; } }

/* sinken – schwer werden, die letzte Zeile bleibt liegen */
.ax-lyrics .z.liegt { transform: translateY(110px) rotate(-4deg) !important; opacity: 0.28 !important; transition: transform 3.2s cubic-bezier(0.5, 0, 0.3, 1), opacity 3.2s !important; }

/* maske – Mantel öffnet sich, Tür schwingt auf, Filter fällt */
.ax-maske {
  position: absolute; inset: -1.5rem -1rem; z-index: 3; perspective: 1400px;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 6rem;
}
.ax-maske .halb {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: rgba(14, 16, 26, 0.6);
  backdrop-filter: blur(11px) saturate(0.2); -webkit-backdrop-filter: blur(11px) saturate(0.2);
  transition: transform 1.8s cubic-bezier(0.6, 0, 0.2, 1), opacity 1.8s;
}
.ax-maske .halb.links { left: 0; transform-origin: left center; }
.ax-maske .halb.rechts { right: 0; transform-origin: right center; }
.ax-maske.art-tuer .halb { background: rgba(40, 30, 22, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 220, 170, 0.12); }
.ax-maske button {
  position: sticky; top: 45vh; z-index: 1;
  font: inherit; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  background: rgba(6, 6, 16, 0.6); color: var(--text-hell); cursor: pointer;
  border: 1px solid rgba(208, 216, 232, 0.4); padding: 0.9rem 1.6rem;
  transition: opacity 0.5s;
}
.ax-maske button:hover, .ax-maske button:focus-visible { background: var(--text-hell); color: var(--nacht); outline: none; }
.ax-maske.ab { pointer-events: none; }
.ax-maske.ab button { opacity: 0; }
.ax-maske.art-mantel.ab .links { transform: translateX(-110%); }
.ax-maske.art-mantel.ab .rechts { transform: translateX(110%); }
.ax-maske.art-tuer.ab .links { transform: rotateY(-105deg); opacity: 0.4; }
.ax-maske.art-tuer.ab .rechts { transform: rotateY(105deg); opacity: 0.4; }
.ax-maske.art-filter.ab .halb { transform: translateY(120%) rotate(5deg); opacity: 0; }

/* atem – der Raum atmet, der Text atmet mit */
.ax-atemkreis {
  position: fixed; left: 50%; top: 50%; width: 70vmin; height: 70vmin; z-index: -1;
  transform: translate(-50%, -50%) scale(0.55); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 136, 255, 0.24), rgba(0, 136, 255, 0.05) 55%, transparent 70%);
  opacity: 0; transition: opacity 2s;
  animation: atmen 12s ease-in-out infinite;
}
.ax-atemkreis.an { opacity: 1; }
@keyframes atmen {
  0% { transform: translate(-50%, -50%) scale(0.55); }
  33% { transform: translate(-50%, -50%) scale(1.12); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
  100% { transform: translate(-50%, -50%) scale(0.55); }
}
.ax-lyrics.atmet { animation: textatem 12s ease-in-out infinite; }
@keyframes textatem {
  0%, 100% { letter-spacing: 0; opacity: 0.75; }
  33%, 50% { letter-spacing: 0.04em; opacity: 1; }
}
.ax-atemwort {
  position: fixed; left: 50%; bottom: 7vh; transform: translateX(-50%); z-index: 6;
  font-size: 0.66rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-soft);
  opacity: 0; transition: opacity 1.5s; pointer-events: none;
}
.ax-atemwort.an { opacity: 0.8; }
.g-atem main { position: relative; z-index: 0; }

/* zittern – Unruhe bis zur einen Zeile, dann schlagartig Stille */
.g-zittern .ax-lyrics .z { transition: opacity 1.1s ease, color 1s ease; }
.g-zittern .ax-lyrics.ruhig .z { transform: none !important; transition: transform 2s ease, opacity 1s; }
.g-zittern .ax-uebersetzung.ruhig { background: radial-gradient(ellipse at 50% 60%, rgba(0, 90, 180, 0.16), transparent 70%); }
.ax-uebersetzung.stillschlag .ax-lyrics { animation: stillschlag 2.5s ease; }
@keyframes stillschlag {
  0% { filter: none; } 8% { filter: brightness(0.2); letter-spacing: 0.12em; }
  100% { filter: none; letter-spacing: 0; }
}

/* kippen – der ganze Raum stolpert */
.ax-uebersetzung.stolpern { animation: stolpern 0.9s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes stolpern {
  0% { transform: none; } 25% { transform: rotate(2.4deg) translateY(14px); }
  55% { transform: rotate(-1deg) translateY(-4px); } 100% { transform: none; }
}

/* punkt – ein Punkt bleibt, am Ende wird er ein Lichtkreis */
.ax-punkt {
  position: fixed; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; z-index: 5;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
  opacity: 0; transition: opacity 1.2s, transform 0.8s cubic-bezier(0.2, 1.4, 0.4, 1); pointer-events: none;
}
.ax-punkt::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255, 215, 0, 0.4);
  animation: kreis 3s ease-out infinite;
}
@keyframes kreis { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.ax-punkt.an { opacity: 1; }
.ax-punkt.wach { transform: scale(1.9); }
.ax-punkt.weit::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; border: 2px solid rgba(255, 215, 0, 0.7); box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  animation: weit 2.6s ease-out forwards;
}
@keyframes weit { to { transform: scale(220); opacity: 0; } }

/* daemmerung – Nacht mit Sternen, Morgen mit Sonne */
.ax-sterne, .ax-sonne { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; }
.ax-sterne span {
  position: absolute; width: var(--gr, 2px); height: var(--gr, 2px); border-radius: 50%;
  background: #dfe8ff; box-shadow: 0 0 6px rgba(200, 220, 255, 0.8);
  animation: funkeln 4s ease-in-out infinite;
}
@keyframes funkeln { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.ax-sonne { background: radial-gradient(circle at 50% calc(135% - var(--p, 0) * 70%), rgba(255, 214, 140, 0.95), rgba(255, 170, 90, 0.4) 22%, transparent 55%); }
.ax-lyrics .z.nachtlicht { color: var(--gold-warm) !important; text-shadow: 0 0 20px rgba(255, 200, 100, 0.6); transition: color 3s, text-shadow 3s; }

/* hell – am Ende hüpft die letzte Zeile */
.ax-lyrics .z.huepfen { animation: huepfen 1.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes huepfen { 0% { transform: translateY(0); } 30% { transform: translateY(-34px) scale(1.12); } 60% { transform: translateY(0) scale(0.97); } 80% { transform: translateY(-8px); } 100% { transform: none; } }

/* umzug – eine Zeile ist umgezogen */
.ax-lyrics .luecke { color: #4d5a6b; letter-spacing: 0.5em; }
.ax-lyrics .luecke.pulsiert { animation: pulsiert 2.4s ease-in-out infinite; }
@keyframes pulsiert { 50% { opacity: 0.35; } }
.ax-lyrics .luecke.schatten { letter-spacing: 0; color: rgba(243, 207, 122, 0.45); font-style: italic; animation: none; }
.ax-lyrics .umgezogen { color: var(--gold-warm); font-style: italic; }
.ax-lyrics .umgezogen.angekommen { animation: aufleuchten 2.4s ease; }

/* schritt – links, rechts, Schritt für Schritt */
.js .g-schritt .ax-lyrics.aufscheinen .z { transform: translateX(var(--seite, 0)); }
.js .g-schritt .ax-lyrics.aufscheinen .z.an { transform: none; transition: opacity 0.7s, transform 0.7s cubic-bezier(0.3, 1.3, 0.5, 1); }

/* stille – wer weiterläuft, verliert den Text wieder */
.js .ax-lyrics.fluechtig.bewegt .z.an { opacity: 0.08; transition: opacity 0.5s ease; }

/* staub */
.ax-staub { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.g-staub .ax-uebersetzung { cursor: pointer; }

/* Gesten, die jede Bildschirmbewegung direkt umsetzen, brauchen kurze Übergänge */
.g-druck .ax-lyrics .z { transition: opacity 1.1s ease, transform 0.07s linear; }
.g-blick .ax-lyrics .z { transition: filter 0.25s, opacity 0.25s, transform 0.25s; }
.g-fluss .ax-lyrics .z { transition: opacity 1.1s ease; }
.g-form .ax-lyrics .z { transition: opacity 1.1s ease, transform 0.15s linear; }

/* =========================================================
   FOYER
   ========================================================= */
.ax-foyer { background: #14161b; }
.ax-eingang {
  min-height: 92svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.25rem 4rem;
}
.ax-eingang .ax-eyebrow { margin-bottom: 1.4rem; }
.ax-eingang-titel {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 12vw, 6.5rem); line-height: 1; color: var(--text-hell); letter-spacing: 0.01em;
}
.ax-eingang-text { max-width: 34rem; margin: 2.6rem auto 0; font-family: var(--font-lyric); font-size: clamp(1.15rem, 3.8vw, 1.35rem); line-height: 1.7; color: #b5bfcf; }
.ax-eingang-text p + p { margin-top: 1em; }
.ax-start {
  margin-top: 3rem; padding: 0.95rem 2rem; text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase;
  border: 1px solid rgba(208, 216, 232, 0.45); color: var(--text-hell);
  transition: background 0.4s, color 0.4s;
}
.ax-start:hover, .ax-start:focus-visible { background: var(--text-hell); color: var(--nacht); outline: none; }

.ax-fluegel { max-width: 76rem; margin: 0 auto; padding: 4rem clamp(1rem, 4vw, 2.5rem); }
.ax-fluegel-titel {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--text-hell);
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem;
  border-bottom: 1px solid rgba(122, 142, 166, 0.2); padding-bottom: 0.8rem;
}
.ax-fluegel-titel small { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); }
.ax-wand { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: clamp(0.8rem, 2.5vw, 1.6rem); }
.ax-wandtafel {
  position: relative; display: block; aspect-ratio: 4 / 5; text-decoration: none;
  perspective: 1000px;
}
.ax-wt-front, .ax-wt-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 0.9s cubic-bezier(0.6, 0.05, 0.2, 1);
}
.ax-wt-front {
  background: var(--amt-papier); color: var(--amt-tinte);
  padding: clamp(0.9rem, 3vw, 1.3rem); display: flex; flex-direction: column; gap: 0.55rem;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8);
}
.ax-wt-nr { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: #8a9097; }
.ax-wt-quelle { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #6f777f; }
.ax-wt-etikett { font-size: clamp(0.8rem, 2.6vw, 0.95rem); line-height: 1.4; margin-top: auto; margin-bottom: auto; }
.ax-wt-back { transform: rotateY(180deg); background: #000; overflow: hidden; }
.ax-wt-back img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.ax-wt-titel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 0.9rem 0.9rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--text-hell);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.ax-wandtafel:hover .ax-wt-front, .ax-wandtafel:focus-visible .ax-wt-front { transform: rotateY(-180deg); }
.ax-wandtafel:hover .ax-wt-back, .ax-wandtafel:focus-visible .ax-wt-back { transform: rotateY(0deg); }
.ax-wandtafel:focus-visible { outline: 1px solid var(--blue-light); outline-offset: 4px; }

/* =========================================================
   Ruhe-Modus: wer Bewegung abgeschaltet hat, sieht alles still
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .ax-lyrics .z { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ax-nachklang { opacity: 1; }
  .ax-atemkreis, .ax-punkt, .ax-staub { display: none; }
  .js .g-licht .ax-lyrics { background: none; color: var(--text-hell); }
  .js .g-licht .ax-lyrics .z { color: var(--text-hell); }
}

@media (max-width: 600px) {
  .ax-top { gap: 1rem; font-size: 0.68rem; }
  .ax-nav { grid-template-columns: 1fr 1fr; }
  .ax-nav-foyer { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}
