/* ==========================================================================
   KNARZ – Styles
   Farben & Größen kommen aus js/config.js und werden als CSS-Variablen gesetzt:
   --bg, --ink, --footer, --moon, --u (1 % der Bildflächenbreite in px)
   ========================================================================== */

/* Schrift: Instrument Sans (SIL Open Font License), lokal gehostet – DSGVO-konform */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/instrument-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Schrift für Claim & Datum: Barlow Condensed Italic (SIL Open Font License), lokal gehostet */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 500; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 500; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-600-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-ext-600-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #e9e1cb;
  --ink: #151610;
  --footer: #f1ead8;
  --moon: #8a8850;
  --u: 10px;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;   /* Claim & Datum */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { user-select: none; -webkit-user-drag: none; }

/* ── Bühne ─────────────────────────────────────────────────────────────── */
.stage {
  position: fixed; inset: 0;
  overflow: hidden;
  background: var(--bg);
  transition: background-color .6s;
  touch-action: pan-x pan-y;
}

/* 02 Papier – liegt unter dem Motiv (oder darüber, .paper--above) */
.paper {
  position: absolute; inset: -2%;
  z-index: 1;
  pointer-events: none;
  background-repeat: repeat;
}
.paper--above { z-index: 8; mix-blend-mode: multiply; }

/* Animiertes Filmkorn über allem (sehr dezent) */
.grain {
  position: absolute; inset: -50%;
  z-index: 9;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-7%, 4%); }
  40%  { transform: translate(5%, -9%); }
  60%  { transform: translate(-3%, 11%); }
  80%  { transform: translate(9%, 2%); }
  100% { transform: translate(-5%, -5%); }
}

/* ── Motiv-Ebenen ───────────────────────────────────────────────────────── */
/* .scenes / .scene erzeugen bewusst KEINEN eigenen Stapelkontext,
   damit Vögel zwischen Mond und Hauptmotiv fliegen können. */
.scenes, .scene { position: absolute; inset: 0; pointer-events: none; }

.layer { position: absolute; will-change: transform; }
.layer-motion, .layer-anim { width: 100%; height: 100%; }
.layer-art { display: block; width: 100%; height: auto; }
.layer-art-image { display: block; width: 100%; height: auto; }
.layer-art--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
/* Ein winziger Überstand verhindert eine Haarlinie durch Subpixel-Rundung. */
.layer-art--split .layer-art-image + .layer-art-image { margin-left: -1px; width: calc(100% + 1px); }
.layer--main .layer-anim { transform-origin: 50% 100%; }
.layer--moon { z-index: 2; aspect-ratio: 1; }
.layer--main { z-index: 4; }
.layer--middle { z-index: 5; }
.layer--front { z-index: 6; }

/* Mond: Farbe + Struktur, beide durch die rau gedruckte Mondform maskiert */
.moon {
  position: relative; width: 100%; height: 100%;
  background: var(--moon);
  -webkit-mask: var(--moon-shape) center / contain no-repeat;
          mask: var(--moon-shape) center / contain no-repeat;
  transition: background-color .9s;
}
.moon-texture { position: absolute; inset: 0; background: center / cover no-repeat; }

/* Leerlauf-Bewegungen (Stärke über --idle) */
.sway   { transform-origin: 50% 100%; animation: sway 12.1s ease-in-out infinite; }
.float  { animation: float 24s ease-in-out infinite; }
@keyframes sway  { 0%, 100% { transform: rotate(calc(-.7deg * var(--idle, 1))); } 50% { transform: rotate(calc(.7deg * var(--idle, 1))); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-1.2% * var(--idle, 1))); } }

/* ── Wolken (zwischen Hauptmotiv z4 und Mittelebene z5) ─────────────────── */
.clouds { position: absolute; inset: 0; z-index: 3;   /* hinter der Hand (z4), vor dem Mond (z2) */ pointer-events: none; overflow: hidden; }
.cloud {
  position: absolute; left: 0; display: block; height: auto;
  mix-blend-mode: multiply;                 /* druckt wie Farbe auf das Papier */
  will-change: transform;
}

/* ── Vögel ──────────────────────────────────────────────────────────────── */
.birds { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.bird { position: absolute; left: 0; top: 0; color: var(--bird, var(--ink)); will-change: transform; }
.bird svg { display: block; width: 100%; overflow: visible; fill: currentColor; }

/* ── Logo, Menü, Claim ──────────────────────────────────────────────────── */
.ui-top { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
/* Logo-Box behält die Höhe der Logo-Datei; Schriftzug oben, „FESTIVAL“ klein darunter –
   beides zusammen bleibt innerhalb dieser Höhe */
.logo {
  position: absolute; margin: 0;
  aspect-ratio: 2200 / 1060;   /* wird per JS aus der Logo-Datei gesetzt */
  display: flex; flex-direction: column;
  container-type: inline-size;
}
.logo-mark {
  flex: 1; min-height: 0;
  background: var(--logo-color, var(--ink));
  -webkit-mask: var(--logo-src) left top / contain no-repeat;
          mask: var(--logo-src) left top / contain no-repeat;
}
.logo--original .logo-mark { background: var(--logo-src) left top / contain no-repeat; -webkit-mask: none; mask: none; }
.logo-sub {
  /* rechtsbündig mit dem (durch die Platzteilung schmaleren) Schriftzug:
     Breite des Schriftzugs = Logobreite − Höhe der Zusatzzeile × Seitenverhältnis */
  align-self: flex-start; text-align: right;
  /* − 1.7cqi: rechte Kante des Z-Fußes liegt etwas vor dem Rand der Logo-Datei; − .025em: Überhang des kursiven L */
  width: calc(100cqi - (7.2cqi * .95 - 4.5cqi) * var(--logo-ratio, 2.075) + .32em - 1.7cqi - .025em);
  margin-top: -4.5cqi;                          /* dicht unter „NARZ“ in den freien Raum ziehen */
  transform: translate(-1.3cqi, -1.05cqi);      /* Feinjustierung relativ zur Logobreite (Desktop: 5 px links, 4 px hoch) */
  font-family: var(--font-cond); font-style: italic; font-weight: 500;
  font-size: 7.2cqi; line-height: .95;         /* 7,2 % der Logobreite */
  letter-spacing: .32em;                        /* + .32em in der Breite gleicht die Sperrung nach dem letzten Buchstaben aus */
  color: var(--logo-color, var(--ink));
  text-transform: uppercase;
}
.logo-sub:empty { display: none; }

.menu { position: absolute; display: flex; gap: calc(var(--menu-size) * 2.1); pointer-events: auto; }
.menu a {
  position: relative;
  font-size: max(13px, var(--menu-size));
  font-weight: 500;
  letter-spacing: .07em;
  padding: .4em 0;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.claim {
  position: absolute; z-index: 10; margin: 0;
  font-size: max(13px, var(--claim-size));
  font-family: var(--font-cond); font-style: italic; font-weight: 500;
  line-height: 1.15; letter-spacing: .06em;
}
.claim .line { display: block; overflow: hidden; }
.claim .line > span { display: block; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.ui-bottom {
  position: absolute; z-index: 11;
  left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  color: var(--footer);
  font-size: max(13px, var(--footer-size));
  font-weight: 600;
  letter-spacing: .08em;
  /* enger, satter Schatten + weicher Schein: Datum bleibt auf dem unruhigen Vordergrund lesbar */
  text-shadow: 0 1px 1px rgb(10 11 8 / 1), 0 0 2px rgb(10 11 8 / 1), 0 0 .5em rgb(10 11 8 / .9), 0 0 1.2em rgb(10 11 8 / .7);
}
/* dunkler Dunst unten links hinter Datum & Location (beruhigt die Felsen darunter) */
/* derselbe dunkle Dunst unten rechts hinter SOUND ON/OFF */
.date {
  justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: .15em;
  font-family: var(--font-cond); font-style: italic; font-weight: 500; letter-spacing: .08em; line-height: 1.15;
}
.date-sub:empty { display: none; }

/* Sound an/aus (Mixtape) – unten rechts */
.sound {
  justify-self: end; display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-cond); font-style: italic; font-weight: 500; letter-spacing: .08em;
  font-size: .8em;
}
.sound svg { width: 1.6em; height: 1.6em; overflow: visible; filter: drop-shadow(0 0 2px rgb(10 11 8)) drop-shadow(0 0 6px rgb(10 11 8 / .95)) drop-shadow(0 0 16px rgb(10 11 8 / .8)) drop-shadow(0 0 30px rgb(10 11 8 / .55)); }
.sound path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .sound-spk { fill: currentColor; }
.sound .sound-on { display: none; }
.sound .sound-off :is(circle, path) { fill: none; stroke: #ac311f; stroke-width: 2.4; }   /* rot durchgestrichen wie ein Halteverbotsschild (Mondfarbe) */
.sound[aria-pressed="true"] .sound-on { display: inline; animation: sound-wave 1.6s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound-off { display: none; }
@keyframes sound-wave { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.next { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: .6em; font-size: .75em; }
.next svg { width: .9em; height: 2.1em; fill: none; stroke: currentColor; stroke-width: 1.8; overflow: visible; filter: drop-shadow(0 0 4px rgb(10 11 8 / .9)); }
.next:hover svg { animation: drop .9s var(--ease-out); }
@keyframes drop { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(40%); opacity: 0; } 46% { transform: translateY(-40%); } 100% { transform: translateY(0); opacity: 1; } }

/* ── Info-Fenster ───────────────────────────────────────────────────────── */
.panel {
  width: min(560px, calc(100% - 32px)); max-height: 86dvh;
  --fw: clamp(30px, 7vw, 46px);                /* Rahmenstärke */
  padding: clamp(12px, 3vw, 30px) clamp(14px, 3.5vw, 34px);
  /* Rahmen aus assets/brand/panel-frame.webp – 9-Slice: Ecken bleiben unverzerrt, Seiten dehnen sich */
  border: var(--fw) solid transparent;
  border-image: url("../assets/brand/panel-frame.webp") 130 130 140 130 / var(--fw) var(--fw) calc(var(--fw) * 1.08) var(--fw) stretch;
  /* Papier liegt UNTER dem Rahmen (Element-Hintergrund) und reicht bis unter dessen Innenkante */
  background: linear-gradient(var(--bg), var(--bg)) center / calc(100% - var(--fw)) calc(100% - var(--fw)) no-repeat border-box;
  color: var(--ink);
  box-shadow: none;
  filter: drop-shadow(0 30px 60px rgb(0 0 0 / .35));
  overflow: visible;
}
.panel[open] { animation: panel-in .6s var(--ease-out); }
.panel::backdrop { background: rgb(21 22 16 / .45); backdrop-filter: blur(8px); animation: fade .4s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.panel h2 { font-weight: 400; font-size: clamp(34px, 6vw, 60px); letter-spacing: -.03em; line-height: 1; margin: 30px 0 22px; }
.panel-text { line-height: 1.6; white-space: pre-line; }
.panel-text a { display: inline-block; margin-top: 18px; padding: 14px 22px; background: var(--ink); color: var(--bg); letter-spacing: .08em; }
.panel-eyebrow, .panel-date { font-size: 12px; letter-spacing: .2em; margin: 0; }
.panel-date { margin-top: 40px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.panel-close { position: absolute; top: 2px; right: 4px; font-size: 30px; line-height: 1; width: 40px; height: 40px; }

/* ── Mauszeiger ─────────────────────────────────────────────────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor * { cursor: none !important; }
  body.has-cursor .cursor { display: block; }
  body.editor-open .cursor-ring, body.editor-open .cursor-dot { opacity: 0; }
  body.editor-open:not(.cursor-set), body.editor-open:not(.cursor-set) * { cursor: auto !important; }
  body.panel-open .cursor { display: none; }
  body.panel-open:not(.cursor-set), body.panel-open:not(.cursor-set) * { cursor: auto !important; }
}
.cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; mix-blend-mode: difference; color: var(--cursor, #f1ead8); }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: currentColor; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid currentColor;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, opacity .3s;
}
.cursor.is-hover .cursor-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: currentColor; }
.cursor.is-down .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-ring { opacity: 0; }

/* ── Laden / Intro ──────────────────────────────────────────────────────── */
body.is-loading .ui-top, body.is-loading .claim, body.is-loading .ui-bottom,
body.is-loading .scenes, body.is-loading .birds { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .grain, .sway, .float, .chevron { animation: none !important; }
}

/* ==========================================================================
   Editor (Taste E)
   ========================================================================== */
:root { --ed-w: 360px; }
body.editor-open { background: #0e0f0c; }
body.editor-open .stage { right: var(--ed-w); }
body.editor-open.preview-portrait .stage {
  right: auto;
  width: min(calc(100vw - var(--ed-w)), calc(100vh * 2 / 3));
  left: calc((100vw - var(--ed-w) - min(calc(100vw - var(--ed-w)), calc(100vh * 2 / 3))) / 2);
}
body.editor-open.preview-landscape .stage {
  bottom: auto;
  height: min(100vh, calc((100vw - var(--ed-w)) * 9 / 16));
  top: calc((100vh - min(100vh, calc((100vw - var(--ed-w)) * 9 / 16))) / 2);
}
body.editor-dragging:not(.cursor-set) .stage { cursor: move !important; }
body.editor-dragging:not(.cursor-set) .stage * { cursor: move !important; }

.editor {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 500;
  width: var(--ed-w);
  display: none; flex-direction: column;
  background: #1c1e19; color: #e7e9df;
  border-left: 1px solid #ffffff1a;
  font: 13px/1.4 system-ui, sans-serif;
}
body.editor-open .editor { display: flex; }
.ed-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 18px 10px; }
.ed-eyebrow { margin: 0 0 4px; font-size: 10px; letter-spacing: .2em; color: #a8b184; }
.ed-head h2 { margin: 0; font-size: 19px; font-weight: 500; }
.ed-close { font-size: 26px; line-height: 1; width: 32px; height: 32px; color: #e7e9df; }
.ed-tip { margin: 0 18px 10px; padding: 8px 10px; background: #2a2e24; border-radius: 6px; font-size: 12px; color: #c3c9b3; }
.ed-body { flex: 1; overflow-y: auto; padding: 0 18px 18px; scrollbar-width: thin; scrollbar-color: #555c48 transparent; }
.ed-status { margin: 0; padding: 10px 18px; border-top: 1px solid #ffffff1a; font-size: 11.5px; color: #a3aa95; }

.editor details { border-top: 1px solid #ffffff14; }
.editor summary { list-style: none; padding: 12px 0; font-weight: 500; display: flex; justify-content: space-between; cursor: pointer; }
.editor summary::-webkit-details-marker { display: none; }
.editor summary::after { content: "+"; color: #a8b184; font-size: 16px; line-height: 1; }
.editor details[open] > summary::after { content: "−"; }
.editor details[open] { padding-bottom: 12px; }
.editor details[data-drag][open] > summary { color: #cfe08f; }

.ed-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin: 7px 0; color: #cdd2c1; }
.ed-row > span { font-size: 12.5px; }
.ed-row input[type=range] { width: 110px; accent-color: #b7c68a; }
.ed-row .ed-num { width: 58px; }
.ed-row input[type=color] { width: 44px; height: 26px; padding: 0; border: 1px solid #ffffff30; border-radius: 4px; background: none; }
.ed-row input[type=checkbox] { width: 16px; height: 16px; accent-color: #b7c68a; }
.ed-stack { display: block; margin: 8px 0; color: #cdd2c1; font-size: 12.5px; }
.ed-stack > span { display: block; margin-bottom: 5px; }
.editor input:not([type=range]):not([type=checkbox]):not([type=color]), .editor select, .editor textarea {
  background: #121410; color: #eef0e7; border: 1px solid #ffffff24; border-radius: 4px; padding: 6px 7px; font: inherit; font-size: 12.5px;
}
.ed-stack input, .ed-stack textarea { width: 100%; }
.editor textarea { min-height: 76px; resize: vertical; }
.ed-buttons { display: flex; gap: 6px; margin: 8px 0; }
.ed-buttons button { flex: 1; padding: 7px 8px; border-radius: 4px; background: #30352a; border: 1px solid #ffffff22; color: #e7e9df; font-size: 12px; }
.ed-buttons button:hover:not(:disabled) { background: #3e4535; }
.ed-buttons button:disabled { opacity: .35; cursor: not-allowed; }
.ed-hint { margin: 6px 0 10px; font-size: 11.5px; color: #989f8a; }

@media (max-width: 760px) {
  :root { --ed-w: 100vw; }
  .editor { top: 45vh; border-left: 0; border-top: 1px solid #ffffff1a; }
  body.editor-open .stage { right: 0; bottom: 55vh; }
}


/* ==========================================================================
   Vorspann: Spruch auf Schwarz (js/countdown.js)
   ========================================================================== */
.cd {
  --S: min(100vw, 100dvh);                 /* Bezugsgröße: kürzere Bildschirmseite */
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: #0c0c0a;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: opacity var(--cd-out, 1.4s) ease-in-out;
}
.cd.is-out { opacity: 0; pointer-events: none; }

.cd-title { opacity: 0; transition: opacity var(--cd-in, 1.2s) ease-out; }
.cd.is-in .cd-title { opacity: 1; }

/* Startgrafik: Hoch- oder Querformat-Datei, per Maske in Papierfarbe eingefärbt */
.cd-title:has(.cd-art) { position: absolute; inset: 0; }
.cd-art {
  position: absolute; inset: 0;
  background: var(--cd-art-color, #e9e1cb);
  -webkit-mask: var(--cd-art-p) center / cover no-repeat;   /* Hochformat: füllt die Breite, Plattenränder laufen aus dem Bild */
          mask: var(--cd-art-p) center / cover no-repeat;
  transform: scale(1.04);
  transition: transform calc(var(--cd-in, 1.2s) + 2.5s) cubic-bezier(.2, .6, .3, 1);
}
.cd.is-in .cd-art { transform: scale(1); }                   /* ganz langsames Heranzoomen beim Einblenden */
@media (orientation: portrait) and (max-aspect-ratio: 3/4) {  /* sehr hohe Handys: nicht beschneiden, mittig */
  .cd-art { -webkit-mask-size: 100% auto; mask-size: 100% auto; }
}
@media (orientation: landscape) {
  .cd-art {
    inset: 7vh 6vw;                                           /* Querformat: ganz sichtbar mit Luft */
    -webkit-mask: var(--cd-art-l) center / contain no-repeat;
            mask: var(--cd-art-l) center / contain no-repeat;
  }
}

.cd-title-frame {
  position: relative;
  padding: calc(var(--S) * .07) calc(var(--S) * .1);
  border: calc(var(--S) * .006) solid #e9e1cb;
  outline: 1px solid #e9e1cb; outline-offset: calc(var(--S) * -.022);
}
.cd-title-frame::before, .cd-title-frame::after { /* Art-déco-Rauten oben und unten */
  content: ""; position: absolute; left: 50%;
  width: calc(var(--S) * .03); aspect-ratio: 1;
  background: var(--cd-red);
  transform: translate(-50%, -50%) rotate(45deg);
}
.cd-title-frame::before { top: 0; }
.cd-title-frame::after { top: 100%; }
.cd-title p {
  margin: 0; white-space: pre-line; text-align: center;
  font-weight: 600; letter-spacing: .16em; line-height: 1.25;
  font-size: calc(var(--S) * .075);
  color: #e9e1cb;
}

.cd-skip {
  position: absolute; right: calc(var(--S) * .05); bottom: calc(var(--S) * .04);
  padding: .6em 1em;
  font-size: max(11px, calc(var(--S) * .018)); letter-spacing: .14em; text-transform: uppercase;
  color: #e9e1cb; background: rgba(233, 225, 203, .08); border-radius: 100px;
  opacity: .55; transition: opacity .2s;
}
.cd-skip:hover { opacity: 1; }
.cd.is-out .cd-skip { opacity: 0; }
.cd-flicker { position: absolute; inset: 0; background: #fffbe8; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
body:has(.cd:not(.is-out)) .cursor { display: none; }

/* ==========================================================================
   Mauszeiger-Set (Siebdruck-Look) – echte System-Cursor, ohne Verzögerung
   Erzeugt mit tools/make_cursors.py
   ========================================================================== */
body.cursor-set, body.cursor-set .editor { cursor: url("../assets/cursor/set/default.png") 1 1, auto; cursor: image-set(url("../assets/cursor/set/default.png") 1x, url("../assets/cursor/set/default@2x.png") 2x) 1 1, auto; }
body.cursor-set :is(a, button, summary, label, select, [data-panel], [role=button]),
body.cursor-set .editor :is(button, summary, label, select) { cursor: url("../assets/cursor/set/pointer.png") 10 1, pointer; cursor: image-set(url("../assets/cursor/set/pointer.png") 1x, url("../assets/cursor/set/pointer@2x.png") 2x) 10 1, pointer; }
body.cursor-set :is(input:not([type=range]):not([type=checkbox]):not([type=color]), textarea) { cursor: url("../assets/cursor/set/text.png") 16 16, text; cursor: image-set(url("../assets/cursor/set/text.png") 1x, url("../assets/cursor/set/text@2x.png") 2x) 16 16, text; }
body.cursor-set :is(button, input, select):disabled { cursor: url("../assets/cursor/set/not-allowed.png") 16 16, not-allowed; cursor: image-set(url("../assets/cursor/set/not-allowed.png") 1x, url("../assets/cursor/set/not-allowed@2x.png") 2x) 16 16, not-allowed; }
body.cursor-set.editor-dragging .stage, body.cursor-set.editor-dragging .stage * { cursor: url("../assets/cursor/set/move.png") 16 16, move; cursor: image-set(url("../assets/cursor/set/move.png") 1x, url("../assets/cursor/set/move@2x.png") 2x) 16 16, move; }
body.cursor-set.is-loading { cursor: url("../assets/cursor/set/wait.png") 16 16, wait; cursor: image-set(url("../assets/cursor/set/wait.png") 1x, url("../assets/cursor/set/wait@2x.png") 2x) 16 16, wait; }
body.cursor-set .cd { cursor: url("../assets/cursor/set/default.png") 1 1, auto; cursor: image-set(url("../assets/cursor/set/default.png") 1x, url("../assets/cursor/set/default@2x.png") 2x) 1 1, auto; }
/* Info-Fenster (LINE UP / INFO / TICKETS): Klick auf den abgedunkelten Hintergrund schließt → Zeigehand */
body.cursor-set .panel::backdrop { cursor: url("../assets/cursor/set/pointer.png") 10 1, pointer; cursor: image-set(url("../assets/cursor/set/pointer.png") 1x, url("../assets/cursor/set/pointer@2x.png") 2x) 10 1, pointer; }

/* ==========================================================================
   Mixplayer (js/mixplayer.js)
   ========================================================================== */
/* Klickfläche & Hinweis auf der Kassette in der Hand */
.mp-hotspot, .mp-handcas {
  position: absolute; aspect-ratio: 1639 / 941; padding: 0;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  pointer-events: auto; background: none; border: 0;
}
.mp-hotspot.is-hidden, .mp-handcas.is-hidden { display: none; }
body.cursor-set .mp-hotspot, body.cursor-set .mp-handcas { cursor: url("../assets/cursor/set/pointer.png") 10 1, pointer; cursor: image-set(url("../assets/cursor/set/pointer.png") 1x, url("../assets/cursor/set/pointer@2x.png") 2x) 10 1, pointer; }
.mp-tip {
  position: absolute; left: 50%; bottom: 112%;
  transform: translateX(-50%) rotate(calc(var(--rot, 0deg) * -1 - 14deg));
  white-space: nowrap; pointer-events: none;
  font: italic 500 max(11px, calc(var(--u) * 1.9)) / 1 var(--font-cond); letter-spacing: .12em;
  color: var(--ink); text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg);
  opacity: .9; transition: opacity .3s;
}
.mp-tip::before { content: "▶ "; color: #ac311f; }
body.mp-open .mp-tip { opacity: 0; }

/* Kassette (Spulen hinter dem Gehäuse) */
.mp-cas { position: absolute; aspect-ratio: 1639 / 941; container-type: inline-size; }
.mp-label {                                    /* „PLAY ▶“ auf dem Etikett */
  position: absolute; left: 50%; top: 20.5%; translate: -50% -50%;
  font: 600 7.5cqi/1 var(--font); letter-spacing: .12em; color: #151610; white-space: nowrap;
  pointer-events: none;
}
.mp-cas img { position: absolute; display: block; pointer-events: none; }
.mp-shell { inset: 0; width: 100%; height: 100%; }
.mp-reel { aspect-ratio: 1; translate: -50% -50%; }   /* translate-Eigenschaft statt transform: so dreht die Spule um ihre eigene Mitte */
.mp-handcas { transform: translate(-50%, -50%) rotate(var(--rot)) perspective(700px) rotateX(var(--tilt)); }
.mp-fly { left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; filter: drop-shadow(0 1.2vmin 1.6vmin rgb(0 0 0 / .35)); }
.mp-rec .mp-cas { filter: none; }

/* Bühne */
.mp { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; }
.mp.is-active { visibility: visible; pointer-events: auto; }
.mp-backdrop { position: absolute; inset: 0; background: rgb(21 22 16 / .55); backdrop-filter: blur(3px); opacity: 0; }
body.cursor-set .mp-backdrop { cursor: url("../assets/cursor/set/pointer.png") 10 1, pointer; cursor: image-set(url("../assets/cursor/set/pointer.png") 1x, url("../assets/cursor/set/pointer@2x.png") 2x) 10 1, pointer; }
.mp-rec { position: absolute; perspective: 1400px; will-change: transform; transform-origin: 40% 90%; }
.mp-body { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mp-rec-shadow {
  position: absolute; left: 4%; right: 22%; bottom: -2.5%; height: 6%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .45), transparent); filter: blur(4px);
}
.mp-door { position: absolute; display: block; transform-origin: 50% 0%; }
.mp-door { translate: -50% -50%; }

/* Tasten (v2): sechs mechanische Tasten, rasten bei PLAY/PAUSE ein */
.mp-btn {
  position: absolute; aspect-ratio: 224 / 400; translate: -50% -50%; padding: 0; border: 0;
  background: center / 100% 100% no-repeat; transition: translate .12s ease-out, filter .12s;
}
.mp-btn:hover { filter: brightness(1.06); }
.mp-btn.is-down { translate: -50% calc(-50% + 7%); filter: brightness(.9); }
.mp-key-rec.is-lit { filter: drop-shadow(0 0 6px #ac311f) brightness(1.05); }
body.cursor-set .mp-btn { cursor: url("../assets/cursor/set/pointer.png") 10 1, pointer; cursor: image-set(url("../assets/cursor/set/pointer.png") 1x, url("../assets/cursor/set/pointer@2x.png") 2x) 10 1, pointer; }

/* × zum Schließen */
.mp-x {                                      /* gleiches Schraubkopf-× wie bei den Unterseiten, sitzt auf der Eckschraube oben rechts */
  position: absolute; left: 77.2%; top: 3.6%; translate: -50% -50%; z-index: 3;
  width: clamp(28px, 7.5%, 38px); aspect-ratio: 1; height: auto; border-radius: 50%; display: grid; place-items: center; padding: 0;
  font: 400 clamp(18px, 4.5vmin, 24px)/1 var(--font); color: #151610;
  background: radial-gradient(circle at 35% 30%, #f6f0de, #d8ceb2 70%, #b9ae90);
  border: 2px solid #151610; box-shadow: inset 0 0 0 2px #efe7d0, 0 2px 4px rgb(0 0 0 / .35);
  opacity: 0; scale: .5; pointer-events: none;
  transition: opacity .3s, scale .3s cubic-bezier(.34, 1.45, .55, 1), rotate .35s cubic-bezier(.34, 1.45, .55, 1);
}
.mp-x.is-visible { opacity: 1; scale: 1; pointer-events: auto; }
.mp-x:hover { rotate: 90deg; scale: 1.08; }
body.cursor-set .mp-x { cursor: url("../assets/cursor/set/pointer.png") 10 1, pointer; cursor: image-set(url("../assets/cursor/set/pointer.png") 1x, url("../assets/cursor/set/pointer@2x.png") 2x) 10 1, pointer; }

/* kleine Titelzeile unter dem Recorder */
.mp-bar {
  position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom));
  width: min(80vw, 340px); translate: -50% 160%;
  display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center;
  padding: 5px 10px 6px; border-radius: 8px;
  background: rgb(12 12 10 / .6); color: #e9e1cb;
  font: italic 500 11px/1.2 var(--font-cond); letter-spacing: .06em;
  transition: translate .45s cubic-bezier(.34, 1.45, .55, 1);
}
.mp-bar.is-visible { translate: -50% 0; }
.mp-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.mp-time { font-variant-numeric: tabular-nums; opacity: .7; }
.mp-progress { grid-column: 1 / -1; height: 2px; background: rgb(233 225 203 / .2); border-radius: 2px; overflow: hidden; }
.mp-progress i { display: block; height: 100%; width: 0; background: #ac311f; }

/* SoundCloud-Widget: unsichtbar, aber aktiv */
.mp-sc { position: fixed; width: 1px; height: 1px; left: -10px; bottom: 0; border: 0; opacity: 0; pointer-events: none; }


/* Dunkle, weiche Wolke hinter Datum/Location und SOUND ON/OFF –
   elliptischer Verlauf, der zu allen Seiten auf 0 ausläuft (keine harten Kanten) */
.date, .sound { position: relative; isolation: isolate; }
.date::before, .sound::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -1.3em -1.8em -1.1em -1.6em;
  background: radial-gradient(closest-side, rgb(10 11 8 / .82), rgb(10 11 8 / .62) 45%, rgb(10 11 8 / .25) 75%, transparent);
}
.sound::before { inset: -1.2em -1.4em -1.2em -1.6em; }

/* Handy: vier Menüpunkte neben dem Logo – kleinere, enger gesetzte Menüschrift */
@media (max-width: 480px) and (orientation: portrait) {
  .menu { gap: .95em; }
  .menu a { font-size: clamp(10px, 2.75vw, 12px); letter-spacing: .045em; }
}

/* Kabel des Rekorders (SVG, im Kupferstich-Look) */
.mp-cable { position: absolute; left: 0; top: 0; width: 500%; height: 100%; overflow: visible; pointer-events: none; }
.mp-cable path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mp-cable .c-out { stroke: #0e0f0b; stroke-width: 3; }
.mp-cable .c-in  { stroke: #8d887a; stroke-width: 1.7; }
.mp-cable .c-hi  { stroke: #f1ead8; stroke-width: .45; opacity: .85; }

/* Papierfläche reicht bis unter die Innenkante des Rahmens (keine dunkle Lücke) */

/* Schließkreuz als Schraubkopf auf der rechten oberen Rahmenecke */
.panel-close {
  top: calc(var(--fw) * -.6 - 17px); right: calc(var(--fw) * -.62 - 17px);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  font: 400 22px/1 var(--font); color: #151610;
  background: radial-gradient(circle at 35% 30%, #f6f0de, #d8ceb2 70%, #b9ae90);
  border: 2px solid #151610; box-shadow: inset 0 0 0 2px #efe7d0, 0 2px 4px rgb(0 0 0 / .35);
  transition: rotate .35s cubic-bezier(.34, 1.45, .55, 1), scale .2s;
}
.panel-close:hover { rotate: 90deg; scale: 1.08; }
body.cursor-set .panel-close { cursor: url("../assets/cursor/set/pointer.png") 10 1, pointer; cursor: image-set(url("../assets/cursor/set/pointer.png") 1x, url("../assets/cursor/set/pointer@2x.png") 2x) 10 1, pointer; }
