/* baumgartlmüllerzindel.de – Grundgerüst.
   Farben, Schriften, Positionen und Effekte je Look kommen aus gen.css (vom Manager erzeugt). */

:root {
  --bg: #000; --bgi: #000; --fg: #fff; --ink: #000; --line: #fff;
  --fd: "Kirilir", "Space Mono", monospace;
  --ft: "Space Mono", ui-monospace, monospace;
  --stage-filter: none;
  color-scheme: dark light;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--bgi);
  color: var(--fg);
  font-family: var(--ft);
  -webkit-tap-highlight-color: transparent;
}
.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------ Startseite: Plakat */
html:has(body.home), body.home {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body.home { position: fixed; inset: 0; touch-action: manipulation; }
.stage {
  position: fixed;
  inset: 0;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  overflow: hidden;
}
.col {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: none;
  filter: var(--stage-filter);
}
.gap { min-height: 0; }
.band { position: relative; flex: none; width: 100%; }
.el {
  position: absolute;
  display: flex;
  margin: 0;
  color: var(--fg);
  text-decoration: none;
  transform-origin: 50% 50%;
}
.el > svg, .el > img { display: block; width: 100%; height: 100%; overflow: visible; }
.el > img { object-fit: contain; }
.el svg .ink { fill: var(--ink); }
.el svg .ink-s { stroke: var(--ink); }
.t-text, .t-box { white-space: pre; align-items: center; overflow: visible; }
.t-text > span, .t-box > span { display: block; line-height: inherit; }
.t-box { color: var(--ink); line-height: 1; }
a.el { cursor: pointer; }
a.el:focus-visible {
  outline: 2px dashed var(--fg);
  outline-offset: 3px;
}
a.el:active { opacity: .75; }

/* Hover-Spielereien für Links (nur mit Maus) */
@keyframes bmz-wackeln { 0%,100% { rotate: 0deg; } 25% { rotate: -1.6deg; } 75% { rotate: 1.6deg; } }
@keyframes bmz-huepfen { 0%,100% { translate: 0 0; } 40% { translate: 0 -4%; } }
@keyframes bmz-glitch {
  0%,100% { translate: 0 0; clip-path: none; }
  20% { translate: -2px 0; clip-path: inset(10% 0 55% 0); }
  40% { translate: 2px 0; clip-path: inset(60% 0 5% 0); }
  60% { translate: -1px 0; clip-path: none; }
}
@keyframes bmz-pulsieren { 0%,100% { scale: 1; } 50% { scale: 1.04; } }

/* ------------------------------------------------------------ Effekt-Ebenen */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.fx > i { position: absolute; inset: 0; display: none; }
.fx-grain {
  inset: -50% !important;
  background-image: url("data:image/svg+xml;utf8,%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 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  animation: bmz-grain .6s steps(6) infinite;
}
@keyframes bmz-grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-7%, 4%); } 33% { transform: translate(5%, -9%); }
  50% { transform: translate(-11%, -3%); } 67% { transform: translate(9%, 8%); } 83% { transform: translate(-3%, 11%); }
}
.fx-scan {
  background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,.9) 0, rgba(0,0,0,.9) 1px, transparent 1px, transparent 100%);
  background-size: 100% 3px;
  mix-blend-mode: multiply;
  animation: bmz-scan 8s linear infinite;
}
@keyframes bmz-scan { to { background-position: 0 120px; } }
.fx-vig { background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0,0,0,.85) 100%); }
.fx-tint { mix-blend-mode: soft-light; }
.fx-dots {
  background-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 0 32%, transparent 34%);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}
.fx-paper {
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .6' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  mix-blend-mode: multiply;
}
.fx-track {
  top: -20% !important; bottom: auto !important; height: 14%;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, transparent, rgba(255,255,255,.35) 45%, rgba(255,255,255,.1) 60%, transparent);
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: bmz-track 9s linear infinite;
}
@keyframes bmz-track { 0% { transform: translateY(0); } 100% { transform: translateY(900%); } }
.fx-flick { background: #fff; mix-blend-mode: overlay; opacity: 0; animation: bmz-flick 3.7s steps(1) infinite; }
@keyframes bmz-flick {
  0%, 100% { opacity: 0; } 7% { opacity: var(--flick, .05); } 9% { opacity: 0; }
  41% { opacity: calc(var(--flick, .05) * .6); } 43% { opacity: 0; } 77% { opacity: var(--flick, .05); } 78% { opacity: 0; }
}
.fx-crt {
  box-shadow: inset 0 0 calc(12vmin * var(--crt, .4)) calc(3vmin * var(--crt, .4)) rgba(0,0,0,.9);
  border-radius: calc(6vmin * var(--crt, .4));
}
@keyframes bmz-jitter {
  0% { translate: 0 0; } 20% { translate: calc(var(--jit, .3) * 1px) 0; } 40% { translate: 0 calc(var(--jit, .3) * -1px); }
  60% { translate: calc(var(--jit, .3) * -1px) 0; } 80% { translate: 0 calc(var(--jit, .3) * 1px); }
}
@media (prefers-reduced-motion: reduce) {
  .fx > i, .col, .lnk:hover { animation: none !important; }
}

/* ------------------------------------------------------------ Unterseiten */
body.sub {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--ink); padding: 6px 10px; z-index: 30; }
.skip:focus { left: 8px; }
.sub-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  width: 100%; max-width: 46rem; margin: 0 auto 28px;
  filter: var(--stage-filter);
}
.sub-logo { display: block; width: min(46vw, 210px); color: var(--fg); }
.sub-logo svg { display: block; width: 100%; height: auto; }
.sub-back { color: var(--fg); font-family: var(--fd); font-size: 1.15em; text-decoration: none; white-space: nowrap; }
.sub-back:hover { text-decoration: underline; }
.sub-main { width: 100%; max-width: 46rem; margin: 0 auto; flex: 1 0 auto; }
.sub-main h1, .sub-main h2, .sub-main h3 { font-family: var(--fd); font-weight: 400; line-height: 1.3; margin: 1.4em 0 .45em; }
.sub-main h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); margin-top: 0; }
.sub-main h2 { font-size: 1.45em; }
.sub-main h3 { font-size: 1.15em; }
.sub-main p, .sub-main ul { margin: 0 0 1em; }
.sub-main ul { padding-left: 1.2em; }
.sub-main a, .sub-foot a { color: var(--fg); text-decoration: underline; text-underline-offset: .18em; }
.sub-main a:focus-visible, .sub-foot a:focus-visible, .sub-back:focus-visible, .sub-logo:focus-visible { outline: 2px dashed var(--fg); outline-offset: 3px; }
.sub-foot {
  width: 100%; max-width: 46rem; margin: 40px auto 0; padding-top: 12px;
  border-top: 2px solid var(--fg);
  font-family: var(--fd); font-size: .95em;
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
}
.sub-foot .dot { opacity: .6; }
.sub-foot [aria-current] { opacity: .7; }
