/* ===========================================================================
   Galerie – helle, ruhige Museumswand mit pastelliger Acryl-Waesche.
   Aufbau:  1 Tokens · 2 Waesche · 3 Basis · 4 Kopf/Fuss · 5 Bausteine
            6 Seiten · 7 Bewegung · 8 Breakpoints
   Mobil zuerst; Breakpoints bei 700px und 1100px.
   =========================================================================== */

/* 1 — Tokens ============================================================== */
:root {
  /* Grundflaechen: warmes Off-White wie eine frisch gestrichene Wand */
  --bg:        #faf8f6;
  --bg-klar:   #ffffff;
  --flaeche:   rgba(40, 32, 38, .042);
  --flaeche-2: rgba(40, 32, 38, .075);
  --linie:     rgba(40, 32, 38, .13);
  --linie-2:   rgba(40, 32, 38, .26);

  /* Schrift */
  --fg:        #1c1a1b;
  --fg-2:      #55505a;
  --fg-3:      #79737f;

  /* Akzent: Himbeere – kraeftig genug, um auf Hell lesbar zu bleiben */
  --akzent:      #a5385a;
  --akzent-weich:#d9738c;

  /* Pastelltoene der Waesche (siehe Abschnitt 2) */
  --himbeer:  225, 138, 166;
  --brombeer: 150, 132, 190;
  --blaubeer: 142, 164, 208;
  --ocker:    236, 200, 148;
  --salbei:   168, 196, 176;

  /* Standard-Mischung; jede Seite ueberschreibt sie weiter unten */
  --wasch-1: rgba(var(--himbeer), .40);
  --wasch-2: rgba(var(--blaubeer), .34);
  --wasch-3: rgba(var(--ocker), .30);

  --rand:      max(20px, env(safe-area-inset-left));
  --spalte:    min(1180px, 100%);
  --radius:    18px;
  --radius-s:  12px;

  --ease:      cubic-bezier(.16,1,.3,1);
  --ease-weich:cubic-bezier(.4,0,.2,1);
  --dauer:     .6s;

  --kopf-h:    56px;

  --schatten:      0 1px 2px rgba(40,32,38,.05), 0 12px 30px -18px rgba(40,32,38,.35);
  --schatten-hoch: 0 2px 6px rgba(40,32,38,.06), 0 30px 60px -30px rgba(40,32,38,.45);

  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
             "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

/* 2 — Die Waesche ========================================================= */
/* Weiche Farbfelder, die unten an den Raendern in die Seite hineinlaufen –
   wie verduennte Acrylfarbe, die in das Papier zieht. Die Ebene ist fixiert:
   Sie bleibt beim Scrollen ruhig stehen und tont die Seite durchgehend.     */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    /* oberste Schicht deckt die Farbe nach oben hin wieder zu, damit die
       Waesche nur unten an den Raendern sitzt (guenstiger als eine Maske) */
    linear-gradient(to bottom,
      var(--bg)              0%,
      rgba(250,248,246,.94) 16%,
      rgba(250,248,246,.55) 42%,
      rgba(250,248,246,.12) 68%,
      rgba(250,248,246,0)   84%),
    radial-gradient(66% 48% at  2% 104%, var(--wasch-1) 0%, transparent 72%),
    radial-gradient(60% 44% at 99% 100%, var(--wasch-2) 0%, transparent 74%),
    radial-gradient(96% 32% at 50% 112%, var(--wasch-3) 0%, transparent 78%),
    var(--bg);
}

/* Jede Seite bekommt ihre eigene Stimmung – gleiche Farbfamilie, andere
   Mischung. Vorne die kraeftigste Farbe (unten links), dann rechts, dann
   die breite Lage quer ueber den unteren Rand.                            */
body[data-seite="start"] {        /* Himbeere trifft Blaubeere            */
  --wasch-1: rgba(var(--himbeer),  .62);
  --wasch-2: rgba(var(--blaubeer), .52);
  --wasch-3: rgba(var(--ocker),    .44);
}
body[data-seite="portfolio"] {    /* kuehler, damit die Werke fuehren     */
  --wasch-1: rgba(var(--blaubeer), .55);
  --wasch-2: rgba(var(--salbei),   .44);
  --wasch-3: rgba(var(--himbeer),  .30);
}
body[data-seite="werk"] {         /* bewusst zurueckhaltend               */
  --wasch-1: rgba(var(--ocker),    .34);
  --wasch-2: rgba(var(--brombeer), .30);
  --wasch-3: rgba(var(--himbeer),  .22);
}
body[data-seite="ueber"] {        /* warm, fast wie Leinwandgrund         */
  --wasch-1: rgba(var(--ocker),    .60);
  --wasch-2: rgba(var(--himbeer),  .44);
  --wasch-3: rgba(var(--salbei),   .30);
}
body[data-seite="faq"] {          /* ruhig, gruen-ocker                   */
  --wasch-1: rgba(var(--salbei),   .48);
  --wasch-2: rgba(var(--ocker),    .46);
  --wasch-3: rgba(var(--blaubeer), .30);
}
body[data-seite="kontakt"] {      /* Brombeere, am kraeftigsten           */
  --wasch-1: rgba(var(--brombeer), .52);
  --wasch-2: rgba(var(--himbeer),  .46);
  --wasch-3: rgba(var(--blaubeer), .36);
}
body[data-seite="raumansicht"] {  /* blass – das Wandfoto zaehlt          */
  --wasch-1: rgba(var(--blaubeer), .36);
  --wasch-2: rgba(var(--ocker),    .28);
  --wasch-3: rgba(var(--himbeer),  .18);
}
body[data-seite="recht"] {        /* nur ein Hauch Farbe                  */
  --wasch-1: rgba(var(--blaubeer), .24);
  --wasch-2: rgba(var(--ocker),    .20);
  --wasch-3: rgba(var(--himbeer),  .14);
}

/* 3 — Basis =============================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
  /* eigener Stapelkontext, damit body::before (z-index -1) ueber dem
     Hintergrund des body liegt und nicht dahinter verschwindet */
  isolation: isolate;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
}
h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.9rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.15rem, 3.4vw, 1.5rem); }
p  { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 4px;
}

.huelle {
  width: var(--spalte);
  margin-inline: auto;
  padding-inline: var(--rand);
}
.eng   { max-width: 720px; margin-inline: auto; }
.leise { color: var(--fg-2); }
.klein { font-size: .875rem; }
.mono-zahl { font-variant-numeric: tabular-nums; }

.nur-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.zum-inhalt {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  transform: translateY(-150%);
  transition: transform .2s var(--ease);
}
.zum-inhalt:focus { transform: none; }

/* 4 — Kopf & Fuss ========================================================= */
.kopf {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--kopf-h);
  display: flex; align-items: center;
  padding-inline: var(--rand);
  background: rgba(250, 248, 246, .82);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-weich), border-color .35s var(--ease-weich);
}
@supports (backdrop-filter: blur(1px)) {
  .kopf { background: rgba(250, 248, 246, .6); backdrop-filter: saturate(180%) blur(22px); }
  .kopf[data-gescrollt] { background: rgba(250, 248, 246, .82); }
}
.kopf[data-gescrollt] { border-bottom-color: var(--linie); }

.kopf__inner {
  width: var(--spalte); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.marke {
  font-size: 1.0rem; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: baseline; gap: 8px;
  min-height: 44px; align-content: center; flex-wrap: wrap;
}
.marke__punkt {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--akzent); align-self: center;
}

.nav-desktop { display: none; }

.burger {
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 1.5px; border-radius: 2px;
  background: var(--fg);
  transition: transform .4s var(--ease), opacity .25s var(--ease-weich);
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

.menue {
  position: fixed; inset: 0; z-index: 99;
  padding: calc(var(--kopf-h) + 24px) var(--rand) 40px;
  background: rgba(250, 248, 246, .96);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-weich), visibility .35s;
}
@supports (backdrop-filter: blur(1px)) {
  .menue { background: rgba(250, 248, 246, .8); backdrop-filter: saturate(180%) blur(28px); }
}
.menue[data-offen] { opacity: 1; visibility: visible; }
.menue a {
  font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 600; letter-spacing: -.03em;
  padding: 10px 0; color: var(--fg-2);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s;
}
.menue[data-offen] a { opacity: 1; transform: none; }
.menue a[aria-current] { color: var(--akzent); }
.menue a:active { color: var(--fg); }
.menue__fuss { margin-top: 32px; color: var(--fg-3); font-size: .9rem; }

.fuss {
  margin-top: 64px; padding: 48px 0 40px;
  border-top: 1px solid var(--linie);
  color: var(--fg-2); font-size: .92rem;
}
.fuss__gitter { display: grid; gap: 32px; }
.fuss h4 { margin: 0 0 12px; font-size: .8rem; font-weight: 600;
           text-transform: uppercase; letter-spacing: .09em; color: var(--fg-3); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fuss a:hover { color: var(--akzent); }
.fuss__unten {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  color: var(--fg-3); font-size: .82rem;
}

/* 5 — Bausteine =========================================================== */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: .98rem; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), background .25s, opacity .25s, box-shadow .25s;
  box-shadow: var(--schatten);
}
.knopf:active { transform: scale(.965); }
.knopf--geist {
  background: rgba(255,255,255,.72); color: var(--fg);
  border-color: var(--linie-2); box-shadow: none;
}
.knopf--geist:active { background: var(--bg-klar); }
.knopf--klein { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.knopf[disabled] { opacity: .4; pointer-events: none; }
@media (hover: hover) {
  .knopf:hover { background: var(--akzent); box-shadow: var(--schatten-hoch); }
  .knopf--geist:hover { background: var(--bg-klar); border-color: var(--fg-3); box-shadow: var(--schatten); }
}

.abschnitt { padding-block: clamp(56px, 11vw, 104px); }
.abschnitt__kopf { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vw, 48px); }
.abschnitt__kopf p { max-width: 56ch; margin: 0; color: var(--fg-2); }

/* Die Selektoren sind absichtlich so lang: .abschnitt__kopf p und
   .held__text p faerben sonst auch die Oberzeile grau. */
.oberzeile,
.abschnitt__kopf .oberzeile,
.held__text .oberzeile {
  font-size: .76rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--akzent);
}

/* --- Werk-Kachel --------------------------------------------------------- */
.gitter {
  display: grid; gap: clamp(14px, 3.5vw, 28px);
  grid-template-columns: 1fr;
}
.kachel { display: block; position: relative; }
.kachel__rahmen {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-klar);
  box-shadow: var(--schatten);
  transition: transform .3s var(--ease), box-shadow .35s var(--ease-weich);
}
.kachel__rahmen img {
  width: 100%; height: auto;
  opacity: 0; transform: scale(1.03);
  transition: opacity .7s var(--ease-weich), transform .9s var(--ease);
}
.kachel__rahmen img.ist-da { opacity: 1; transform: none; }
@media (hover: hover) {
  .kachel:hover .kachel__rahmen { box-shadow: var(--schatten-hoch); }
  .kachel:hover .kachel__rahmen img.ist-da { transform: scale(1.035); }
}
.kachel:active .kachel__rahmen { transform: scale(.99); }

.kachel__text {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 14px 2px 0;
}
.kachel__titel { font-size: 1.02rem; font-weight: 500; letter-spacing: -.012em; }
.kachel__meta  { color: var(--fg-3); font-size: .86rem; white-space: nowrap; }

.marker {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.88); color: var(--fg-2);
  border: 1px solid var(--linie);
  box-shadow: 0 2px 8px rgba(40,32,38,.14);
}
@supports (backdrop-filter: blur(1px)) {
  .marker { background: rgba(255,255,255,.7); backdrop-filter: blur(14px) saturate(180%); }
}

/* --- Filterleiste (iOS-Segmented-Control) ------------------------------- */
.filter { position: sticky; top: var(--kopf-h); z-index: 40;
          padding-block: 12px; margin-inline: calc(var(--rand) * -1);
          background: linear-gradient(to bottom, var(--bg) 0 76%, rgba(250,248,246,0) 100%); }
.filter__reihe {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding-inline: var(--rand); scroll-snap-type: x proximity;
  scroll-padding-inline: var(--rand);   /* sonst frisst das Snapping den Rand */
}
.filter__reihe::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start;
  min-height: 40px; padding: 0 16px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--linie); border-radius: 999px;
  background: rgba(255,255,255,.7); color: var(--fg-2);
  font-size: .9rem; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease-weich), color .25s, border-color .25s, transform .2s var(--ease);
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.schalter {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; color: var(--fg-2); font-size: .92rem; cursor: pointer;
}
.schalter input { position: absolute; opacity: 0; pointer-events: none; }
.schalter__spur {
  width: 46px; height: 28px; border-radius: 999px; flex: 0 0 auto;
  background: var(--flaeche-2); border: 1px solid var(--linie);
  position: relative; transition: background .3s var(--ease-weich), border-color .3s;
}
.schalter__spur::after {
  content: ""; position: absolute; inset: 3px auto 3px 3px;
  width: 20px; border-radius: 50%; background: var(--bg-klar);
  box-shadow: 0 1px 3px rgba(40,32,38,.3);
  transition: transform .34s var(--ease);
}
.schalter input:checked + .schalter__spur { background: var(--akzent); border-color: var(--akzent); }
.schalter input:checked + .schalter__spur::after { transform: translateX(18px); }
.schalter input:focus-visible + .schalter__spur { outline: 2px solid var(--akzent); outline-offset: 3px; }

/* --- Akkordeon (FAQ) ----------------------------------------------------- */
.faq { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 2px; min-height: 44px;
  font-size: 1.06rem; font-weight: 500; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 13px; height: 13px; margin-top: 6px;
  border-right: 1.6px solid var(--fg-3); border-bottom: 1.6px solid var(--fg-3);
  transform: rotate(45deg); transition: transform .4s var(--ease), border-color .3s;
}
.faq details[open] summary { color: var(--akzent); }
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--akzent); }
.faq__inhalt { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq details[open] .faq__inhalt { grid-template-rows: 1fr; }
.faq__inhalt > div { overflow: hidden; }
.faq__inhalt p { color: var(--fg-2); max-width: 62ch; padding-right: 24px; }
.faq__inhalt p:last-child { margin-bottom: 22px; }
.faq a { color: var(--akzent); }

/* --- Formular ------------------------------------------------------------ */
.feld { display: grid; gap: 8px; margin-bottom: 18px; }
.feld > span { font-size: .86rem; color: var(--fg-2); }
.feld input, .feld textarea, .feld select {
  width: 100%; min-height: 50px; padding: 13px 15px;
  font: inherit; font-size: 16px;                  /* 16px verhindert Zoom auf iOS */
  color: var(--fg); background: rgba(255,255,255,.78);
  border: 1px solid var(--linie); border-radius: var(--radius-s);
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.feld textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.feld select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%),
                    linear-gradient(135deg, var(--fg-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none; border-color: var(--akzent); background: var(--bg-klar);
  box-shadow: 0 0 0 3px rgba(165, 56, 90, .12);
}
.feld input::placeholder, .feld textarea::placeholder { color: var(--fg-3); }
.honigtopf { position: absolute; left: -9999px; opacity: 0; }

.hinweis {
  padding: 14px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--linie); background: rgba(255,255,255,.66);
  color: var(--fg-2); font-size: .9rem;
}
.hinweis--gut { border-color: rgba(96,150,110,.45); background: rgba(150,205,165,.16); color: #2f6440; }
.hinweis--schlecht { border-color: rgba(190,70,70,.45); background: rgba(230,140,140,.15); color: #94302f; }
.hinweis--todo {
  border-color: rgba(190,140,60,.45); background: rgba(var(--ocker), .26); color: #7a5418;
}
.hinweis a { color: inherit; }

/* 6 — Seiten ============================================================== */
main { padding-top: var(--kopf-h); }

/* --- Startseite: Hero ---------------------------------------------------- */
/* Das Werk haengt an der hellen, gewaschenen Wand – vollstaendig sichtbar,
   nicht angeschnitten. Die Schrift steht darunter und bleibt dadurch immer
   lesbar, egal wie bunt das Bild ist. */
.held {
  position: relative;
  display: grid;
  /* Feste Hoehe fuer die Bildzeile. Ohne sie wuerde das Hochformat seine
     Eigenhoehe durchsetzen – auf einem breiten Bildschirm ueber 1800px.
     Die Hoehe steht in einer Variablen, weil das Bild selbst sie ebenfalls
     braucht: `max-height: 100%` ist innerhalb von `display: contents`
     nicht zuverlaessig. */
  --bildzeile: clamp(320px, 52svh, 480px);
  grid-template-rows: var(--bildzeile) auto;
  margin-top: calc(var(--kopf-h) * -1);
  padding-bottom: clamp(28px, 7vw, 56px);
  isolation: isolate;
}

.held__bild {
  position: relative; grid-row: 1;
  min-height: 0;            /* Grid-Element darf kleiner als sein Inhalt sein */
  overflow: hidden;
  display: grid; place-items: center;
  padding: calc(var(--kopf-h) + 14px) var(--rand) 8px;
}
/* Das <picture> loest sich als Box auf, damit das <img> selbst das
   Grid-Element wird – nur so greift max-height: 100% zuverlaessig. */
.held__bild picture { display: contents; }
.held__bild img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: calc(var(--bildzeile) - var(--kopf-h) - 24px);
  object-fit: contain;
  border-radius: 3px;
  box-shadow:
     0 2px 4px rgba(40,32,38,.10),
     0 22px 44px -18px rgba(40,32,38,.45);
  will-change: transform;
}

.held__text {
  grid-row: 2;
  position: relative; z-index: 2;
  width: var(--spalte); margin-inline: auto;
  padding: clamp(20px, 4vw, 34px) var(--rand) 0;
}
.held__text h1 { text-wrap: balance; }
.held__text p { margin: 14px 0 26px; max-width: 40ch; color: var(--fg-2); font-size: 1.05rem; }
.held__aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.held__quelle { margin-top: 22px; font-size: .8rem; color: var(--fg-3); }

.pfeil {
  position: absolute; left: 50%; bottom: 10px; translate: -50% 0;
  z-index: 2;
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--fg-3);
  border-bottom: 1.5px solid var(--fg-3); rotate: 45deg;
  animation: wippen 2.4s var(--ease-weich) infinite;
}
@keyframes wippen {
  0%, 100% { transform: translateY(0); opacity: .3; }
  50%      { transform: translateY(7px); opacity: .8; }
}

/* --- Startseite: Zahlenreihe --------------------------------------------- */
.fakten {
  display: grid; gap: 1px; background: var(--linie);
  border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--schatten);
}
.fakten div { background: rgba(255,255,255,.8); padding: 22px 20px; }
.fakten dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.fakten dd { margin: 6px 0 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--akzent); }

/* --- Serien-Teaser ------------------------------------------------------- */
.serien { display: grid; gap: 12px; }
.serie {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid var(--linie); border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  transition: background .25s, border-color .25s, transform .25s var(--ease), box-shadow .3s;
}
.serie:active { transform: scale(.99); }
@media (hover: hover) {
  .serie:hover { background: var(--bg-klar); border-color: var(--linie-2); box-shadow: var(--schatten); }
}
.serie img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.serie strong { display: block; font-weight: 600; }
.serie span { color: var(--fg-2); font-size: .9rem; }
.serie__pfeil { margin-left: auto; color: var(--fg-3); flex: 0 0 auto; }

/* --- Werkseite ----------------------------------------------------------- */
.werk { display: grid; gap: clamp(28px, 6vw, 56px); padding-top: 24px; }
.werk__bild {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-klar); cursor: zoom-in;
  box-shadow: var(--schatten-hoch);
}
.werk__bild img { width: 100%; height: auto; }
.werk__lupe {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--linie);
  background: rgba(255,255,255,.82); color: var(--fg-2); font-size: .8rem;
  pointer-events: none;
}
@supports (backdrop-filter: blur(1px)) { .werk__lupe { backdrop-filter: blur(14px) saturate(180%); } }

.daten { list-style: none; margin: 26px 0; padding: 0; border-top: 1px solid var(--linie); }
.daten li { display: flex; justify-content: space-between; gap: 20px;
            padding: 13px 0; border-bottom: 1px solid var(--linie); }
.daten .k { color: var(--fg-3); font-size: .92rem; }
.daten .v { text-align: right; }

.werk__aktionen { display: grid; gap: 10px; }
.blaettern {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--linie);
}
.blaettern a { display: grid; gap: 4px; max-width: 46%; }
.blaettern .k { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.blaettern .t { font-weight: 500; }
.blaettern .rechts { text-align: right; justify-items: end; }

/* --- Lightbox ------------------------------------------------------------ */
.lupe-ebene {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg); display: none;
  touch-action: none; overscroll-behavior: contain;
}
.lupe-ebene[data-offen] { display: block; }
.lupe-ebene__buehne { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.lupe-ebene img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none;
  box-shadow: var(--schatten-hoch);
}
.lupe-ebene__zu {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--linie); background: rgba(255,255,255,.8);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--schatten);
}
.lupe-ebene__zu::before, .lupe-ebene__zu::after {
  content: ""; position: absolute; width: 16px; height: 1.5px; background: var(--fg);
}
.lupe-ebene__zu::before { transform: rotate(45deg); }
.lupe-ebene__zu::after  { transform: rotate(-45deg); }
.lupe-ebene__tipp {
  position: absolute; left: 50%; translate: -50% 0; bottom: max(18px, env(safe-area-inset-bottom));
  color: var(--fg-3); font-size: .8rem; pointer-events: none;
  transition: opacity .4s;
}

/* --- Raumansicht --------------------------------------------------------- */
.raum { display: grid; gap: 22px; }
.raum__buehne {
  position: relative; overflow: hidden; touch-action: none;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--bg-klar) center/cover no-repeat;
  min-height: 58svh; display: grid; place-items: center;
  box-shadow: var(--schatten);
}
.raum__buehne canvas { max-width: 100%; height: auto; display: block; }
.raum__leer { padding: 40px 24px; text-align: center; color: var(--fg-3); max-width: 34ch; }
.schritte { counter-reset: s; display: grid; gap: 14px; }
.schritt {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--linie); border-radius: var(--radius);
  background: rgba(255,255,255,.72); transition: border-color .3s, background .3s;
}
.schritt::before {
  counter-increment: s; content: counter(s);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--flaeche-2); color: var(--fg-2); font-size: .85rem; font-weight: 600;
}
.schritt[data-fertig] { border-color: rgba(165, 56, 90, .35); }
.schritt[data-fertig]::before { background: var(--akzent); color: #fff; }
.schritt h3 { font-size: 1rem; margin-bottom: 4px; }
.schritt p { margin: 0 0 12px; color: var(--fg-2); font-size: .92rem; }
.schritt__aktionen { display: flex; flex-wrap: wrap; gap: 10px; }

.datei-knopf { position: relative; overflow: hidden; }
.datei-knopf input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.regler { display: grid; gap: 8px; }
.regler input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; background: transparent; cursor: pointer;
}
.regler input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: var(--flaeche-2);
}
.regler input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-klar); margin-top: -11px;
  border: 1px solid var(--linie);
  box-shadow: 0 2px 8px rgba(40,32,38,.25);
}
.regler input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--flaeche-2); }
.regler input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border: 1px solid var(--linie); border-radius: 50%; background: var(--bg-klar);
}

/* --- Rechtstexte --------------------------------------------------------- */
.rechtstext { max-width: 720px; }
.rechtstext h2 { font-size: 1.35rem; margin: 44px 0 12px; }
.rechtstext h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.rechtstext p, .rechtstext li { color: var(--fg-2); }
.rechtstext ul { padding-left: 20px; display: grid; gap: 6px; margin: 0 0 1em; }
.rechtstext a { color: var(--akzent); }
.luecke {
  background: rgba(var(--ocker), .38); color: #7a5418;
  padding: 1px 6px; border-radius: 5px; font-size: .92em;
  border: 1px dashed rgba(190,140,60,.6);
}

/* 7 — Bewegung ============================================================ */
/* Sichtbar ist der Normalfall. Erst wenn app.js uebernimmt, setzt es
   `hat-auftritte` auf <html> – so bleibt der Inhalt lesbar, falls das
   Skript nicht laeuft oder der IntersectionObserver nicht ausloest. */
.hat-auftritte .auftritt { opacity: 0; transform: translateY(22px); }
.auftritt.ist-da {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease-weich), transform var(--dauer) var(--ease);
}
.auftritt.ist-da[style*="--verzug"] { transition-delay: var(--verzug); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hat-auftritte .auftritt { opacity: 1; transform: none; }
  .kachel__rahmen img { opacity: 1; transform: none; }
}

/* 8 — Breakpoints ========================================================= */
@media (min-width: 700px) {
  :root { --rand: max(36px, env(safe-area-inset-left)); --kopf-h: 62px; }
  .gitter { grid-template-columns: repeat(2, 1fr); }
  .fakten { grid-template-columns: repeat(3, 1fr); }
  .serien { grid-template-columns: repeat(3, 1fr); }
  .serie { flex-direction: column; align-items: flex-start; }
  .serie img { width: 100%; height: 150px; }
  .serie__pfeil { display: none; }
  .fuss__gitter { grid-template-columns: 1.4fr 1fr 1fr; }
  .held { --bildzeile: clamp(400px, 62svh, 620px); }
  body::before { background-size: auto; }
}

@media (min-width: 1100px) {
  .nav-desktop {
    display: flex; gap: 30px; align-items: center;
    font-size: .92rem; color: var(--fg-2);
  }
  .nav-desktop a { position: relative; padding: 4px 0; transition: color .25s; }
  .nav-desktop a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--akzent); transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
  }
  .nav-desktop a:hover { color: var(--fg); }
  .nav-desktop a:hover::after,
  .nav-desktop a[aria-current]::after { transform: scaleX(1); }
  .nav-desktop a[aria-current] { color: var(--akzent); }
  .burger, .menue { display: none; }

  .gitter { grid-template-columns: repeat(3, 1fr); }
  .gitter--breit { grid-template-columns: repeat(2, 1fr); }
  .werk { grid-template-columns: 1.35fr 1fr; align-items: start; gap: 64px; }
  .werk__seite { position: sticky; top: calc(var(--kopf-h) + 32px); }
  /* Ab hier ist genug Breite: Werk und Schrift stehen nebeneinander,
     statt das Bild einsam in der Mitte haengen zu lassen. */
  .held {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 86svh;
    padding-top: var(--kopf-h);
    padding-bottom: clamp(40px, 6vw, 80px);
  }
  .held__bild {
    grid-row: 1; grid-column: 1;
    padding: 0 clamp(20px, 3vw, 48px) 0 var(--rand);
  }
  .held__bild img { max-height: min(66svh, 620px); }
  .held__text {
    grid-row: 1; grid-column: 2;
    width: auto; margin: 0;
    padding: 0 var(--rand) 0 clamp(20px, 3vw, 48px);
  }
  .pfeil { display: none; }
  .raum { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .raum__buehne { min-height: 66svh; }
}
