/* Seiten, die mit editor.html gebaut werden */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: #000; }
body { font-family: 'Barlow', sans-serif; color: #e2e2d8; -webkit-font-smoothing: antialiased; }

.stage {
  position: relative;
  width: 100%;
  container-type: inline-size;   /* Schrift- und Radiusgrößen skalieren mit der Breite */
  overflow: hidden;
}

.it { position: absolute; display: block; transform-origin: 50% 50%; }
.it img { display: block; width: 100%; height: 100%; object-fit: cover; }
.it-text { white-space: pre-wrap; line-height: 1.3; }

/* Seiten mit eigener mobiler Anordnung bekommen zwei Bühnen; welche davon
   sichtbar ist, entscheidet die Fensterbreite. Seiten ohne eigene mobile
   Anordnung haben nur eine "stage" ohne diese Zusatzklassen und bleiben
   davon unberührt – sie skalieren weiterhin proportional mit. */
.stage-mobile { display: none; }
@media (max-width: 640px) {
  .stage-desktop { display: none; }
  .stage-mobile { display: block; }
}

/* Audio-Player (gleiche Regeln in canvas.css und editor.html; --k = Einheitsgröße, --ac = Akzentfarbe) */
.pl { display: flex; align-items: center; gap: calc(var(--k) * 14); width: 100%; height: 100%; font-family: 'Barlow', sans-serif; }
.pl-btn { flex: none; width: calc(var(--k) * 64); height: calc(var(--k) * 64); border-radius: 50%; border: 0; padding: 0; background: var(--ac); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pl-btn svg { width: calc(var(--k) * 28); height: calc(var(--k) * 28); fill: currentColor; }
.pl-btn .i-pause { display: none; }
.pl.playing .i-pause { display: block; } .pl.playing .i-play { display: none; }
.pl-main { flex: 1; min-width: 0; }
.pl-title { font-size: calc(var(--k) * 24); font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row { display: flex; align-items: center; gap: calc(var(--k) * 14); margin-top: calc(var(--k) * 10); }
.pl-track { position: relative; flex: 1; height: calc(var(--k) * 6); background: color-mix(in srgb, currentColor 22%, transparent); border-radius: 99px; cursor: pointer; touch-action: none; }
.pl-track::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--k) * -12); bottom: calc(var(--k) * -12); }
.pl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ac); border-radius: inherit; }
.pl-knob { position: absolute; top: 50%; left: 0; width: calc(var(--k) * 16); height: calc(var(--k) * 16); margin: calc(var(--k) * -8) 0 0 calc(var(--k) * -8); border-radius: 50%; background: var(--ac); }
.pl-time { font-size: calc(var(--k) * 18); font-variant-numeric: tabular-nums; opacity: .75; white-space: nowrap; }
.pl-btn:focus-visible, .pl-track:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

a.it { transition: filter .2s ease; }
a.it:hover { filter: brightness(.7); }
a.it:focus-visible { outline: 2px solid #AE0315; outline-offset: 4px; }

.auto-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.6rem; pointer-events: none;
}
.auto-nav a {
  pointer-events: auto; color: #e2e2d8; text-decoration: none; font-size: .85rem;
  opacity: .88; text-shadow: 0 1px 8px rgba(0,0,0,.75);
}
.auto-nav a:hover { opacity: 1; }
.auto-nav-home { font-weight: 500; letter-spacing: .01em; }
.auto-nav-links { display: flex; gap: 1.5rem; }
@media (max-width: 640px) {
  .auto-nav { padding: 1rem 1.2rem; }
  .auto-nav a { font-size: .78rem; }
  .auto-nav-links { gap: 1rem; }
}

.legal-page {
  max-width: 640px; margin: 0 auto; padding: 7rem 1.5rem 5rem;
}
.legal-page h1 { font-size: 2rem; font-weight: 300; margin-bottom: 2rem; color: var(--text-bright, #e2e2d8); }
.legal-page h2 { font-size: .95rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; margin: 2.2rem 0 .6rem; color: #e2e2d8; }
.legal-page p { color: #a8a89e; line-height: 1.7; margin-bottom: .6rem; }
.legal-page a { color: var(--red); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

.legal {
  display: flex; gap: 1.5rem; justify-content: center;
  padding: 2rem 1rem 3rem; font-size: .8rem; letter-spacing: .04em;
}
.legal a { color: #6a6a64; text-decoration: none; }
.legal a:hover { color: #e2e2d8; }

@media (prefers-reduced-motion: reduce) { a.it { transition: none; } }
