/* Nora's Arthouse – gemeinsames Stylesheet für Homepage und Studio */

@font-face {
  font-family: "Shantell Sans";
  src: url("../fonts/shantell-sans-latin-bnce-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --wand: #2a3fa3;        /* Galeriewand, Ultramarin aus der Kreideschachtel */
  --wand-tief: #1c2a78;
  --gelb: #ffd034;        /* Wachsmalkreide-Gelb: jede Handlung */
  --gelb-tief: #f2bd0a;
  --tinte: #151a3a;       /* Text */
  --tinte-leise: #4c5275;
  --papier: #ffffff;
  --nebel: #eef1f9;       /* helle Wand */
  --linie: #d5dbec;
  --rot: #e5462d;
  --gruen: #1f8a53;
  --alu: #c5cbd1;
  --holz: #d8b07c;

  --schrift-hand: "Shantell Sans", "Comic Neue", "Segoe Print", cursive;
  --schrift-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --breite: 70rem;
  --rand: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--schrift-hand);
  font-variation-settings: "BNCE" 6;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 650; }
p { margin: 0; max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 4px; }
.auf-hell :focus-visible, main :focus-visible { outline-color: var(--wand); }
.wand :focus-visible { outline-color: var(--gelb); }

.innen { max-width: var(--breite); margin: 0 auto; padding-inline: var(--rand); }
.versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 650 1.0625rem/1.2 var(--schrift-text);
  padding: 0.95rem 1.4rem;
  border: 0; border-radius: 999px;
  background: var(--gelb); color: var(--tinte);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--gelb-tief);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.knopf:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--gelb-tief); }
.knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gelb-tief); }
.knopf[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 0 3px 0 var(--gelb-tief); }
.knopf svg { width: 1.3em; height: 1.3em; flex: none; }
.knopf.leise {
  background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor;
}
.knopf.leise:hover { box-shadow: inset 0 0 0 3px currentColor; }
.knopf.klein { padding: 0.55rem 1rem; font-size: 0.95rem; }
.textlink { font-weight: 600; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }

/* ---------- Kopf ---------- */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.marke {
  font-family: var(--schrift-hand); font-variation-settings: "BNCE" 10;
  font-weight: 750; font-size: 1.45rem; text-decoration: none; letter-spacing: -0.01em;
}
.kopf nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.9rem); align-items: center; }
.kopf nav a { text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.3rem 0; }
.kopf nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
@media (max-width: 40rem) { .kopf nav a.nur-breit { display: none; } }

/* ---------- Die Wand (Hero) ---------- */
.wand {
  color: #fff;
  background:
    radial-gradient(60rem 34rem at 72% 30%, rgba(255, 255, 255, 0.17), transparent 62%),
    var(--wand);
  position: relative;
}
.wand::after {            /* Sockelleiste */
  content: ""; display: block; height: 16px;
  background: linear-gradient(#f4f6fc, #d9deee);
  box-shadow: 0 -4px 0 rgba(9, 14, 60, 0.28), inset 0 -2px 0 rgba(21, 26, 58, 0.18);
}
.buehne {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
}
.buehne .worte p { font-size: 1.2rem; line-height: 1.55; margin-top: 1.3rem; max-width: 34ch; color: #e7eaff; }
.buehne .tun { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; margin-top: 2rem; }
.hinweis-nummer { margin-top: 0.9rem; font-size: 0.95rem; color: #ffe9a3; }

.haengung { display: grid; grid-template-columns: minmax(0, 19rem) auto; gap: 1.3rem 1.6rem; align-items: end; justify-content: center; }
.bild-am-nagel { position: relative; padding-top: 2.6rem; grid-column: 1; grid-row: 1; }
.bild-am-nagel::before { content: ""; position: absolute; top: 0.18rem; left: 50%; width: 0.6rem; height: 0.6rem; margin-left: -0.3rem; border-radius: 50%; background: #e8ecfb; box-shadow: 0.1rem 0.15rem 0 rgba(9, 14, 60, 0.45); z-index: 1; }
.rahmen {
  background: linear-gradient(135deg, #e6c394, var(--holz) 45%, #c2955e);
  padding: 0.85rem;
  box-shadow: 0.9rem 1.4rem 2.2rem rgba(9, 14, 60, 0.5), 0.15rem 0.25rem 0 rgba(9, 14, 60, 0.35);
  position: relative;
  transform: rotate(var(--schief, -1.3deg));
  transform-origin: 50% -2.2rem;
  transition: transform 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.rahmen .draht { position: absolute; bottom: 100%; left: 0; width: 100%; height: 2.6rem; overflow: visible; }
.rahmen .passepartout { background: #fff; padding: 0.9rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.rahmen .stapel { position: relative; aspect-ratio: 2 / 3; background: #f3f3f3; overflow: hidden; }
.rahmen .stapel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.rahmen .stapel img.da { opacity: 1; }

.werkschild {
  background: #fff; color: var(--tinte);
  padding: 0.7rem 0.9rem; width: 13rem; justify-self: start;
  font-size: 0.85rem; line-height: 1.4;
  box-shadow: 0.2rem 0.3rem 0.6rem rgba(9, 14, 60, 0.35);
  grid-column: 1; grid-row: 2; margin-top: 0.6rem;
}
.werkschild strong { display: block; font-size: 1rem; }
.werkschild span { display: block; color: var(--tinte-leise); }

/* Kreiden als Look-Schalter */
.kreiden { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0 0 0.6rem; }
.kreide {
  --farbe: #fff;
  font: 650 0.95rem/1 var(--schrift-text); color: var(--tinte);
  border: 0; cursor: pointer; background: none; padding: 0;
  display: flex; align-items: stretch; height: 2.5rem;
  filter: drop-shadow(0 3px 0 rgba(9, 14, 60, 0.35));
  transition: transform 0.18s ease;
}
.kreide .huelle {
  display: flex; align-items: center; padding: 0 0.9rem 0 1rem;
  background: #fff; border-radius: 0.35rem 0 0 0.35rem;
  border-left: 0.6rem solid var(--farbe);
  box-shadow: inset -0.35rem 0 0 var(--farbe);
}
.kreide .spitze { width: 1.5rem; background: var(--farbe); clip-path: polygon(0 0, 35% 0, 100% 38%, 100% 62%, 35% 100%, 0 100%); }
.kreide:hover { transform: translateX(3px); }
.kreide[aria-pressed="true"] { transform: translateX(-12px) rotate(-2deg); }
.kreide[aria-pressed="true"] .huelle { background: var(--gelb); }

@media (max-width: 54rem) {
  .buehne { grid-template-columns: 1fr; }
  .buehne .worte p { max-width: 44ch; }
  .haengung { grid-template-columns: minmax(0, 19rem); }
  .kreiden { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.7rem 0.5rem; padding: 0.4rem 0 0; }
  .kreide:hover { transform: translateY(-2px); }
  .kreide[aria-pressed="true"] { transform: translateY(-6px) rotate(-2deg); }
  .werkschild { grid-row: 3; width: 100%; margin-top: 0; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(3rem, 8vw, 6rem); }
.abschnitt > .innen > h2 + p { margin-top: 1rem; font-size: 1.15rem; color: var(--tinte-leise); }
.helle-wand { background: var(--nebel); }

.schritte { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); counter-reset: schritt; }
.schritte li { counter-increment: schritt; }
.schritte li::before {
  content: counter(schritt);
  font: 800 4.2rem/1 var(--schrift-hand); font-variation-settings: "BNCE" 14;
  color: var(--rot); display: block; margin-bottom: 0.4rem;
}
.schritte li:nth-child(2)::before { color: var(--wand); }
.schritte li:nth-child(3)::before { color: var(--gruen); }
.schritte p { margin-top: 0.5rem; color: var(--tinte-leise); }
@media (max-width: 46rem) { .schritte { grid-template-columns: 1fr; } }

/* Looks an der hellen Wand */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.2rem, 4vw, 3rem); margin-top: 2.8rem; align-items: start; }
.galerie figure { margin: 0; }
.galerie .leiste { background: var(--tinte); padding: 0.45rem; box-shadow: 0.5rem 0.9rem 1.4rem rgba(21, 26, 58, 0.22); }
.galerie .leiste img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.galerie figcaption { margin-top: 1.3rem; background: #fff; padding: 0.8rem 1rem; box-shadow: 0 1px 0 var(--linie), 0.15rem 0.25rem 0.5rem rgba(21, 26, 58, 0.1); max-width: 17rem; }
.galerie figcaption strong { display: block; font-size: 1.1rem; }
.galerie figcaption span { color: var(--tinte-leise); font-size: 0.95rem; line-height: 1.45; display: block; margin-top: 0.15rem; }
@media (max-width: 46rem) { .galerie { grid-template-columns: 1fr; max-width: 20rem; } }

.oberflaechen { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.2rem, 4vw, 3rem); }
.oberflaechen li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; }
.oberflaechen p { font-size: 0.98rem; color: var(--tinte-leise); margin-top: 0.2rem; }
.muster { width: 4.5rem; height: 4.5rem; border-radius: 0.3rem; box-shadow: inset 0 0 0 1px rgba(21, 26, 58, 0.15); }
.muster.leinwand {
  background:
    repeating-linear-gradient(0deg, rgba(120, 100, 70, 0.28) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120, 100, 70, 0.28) 0 1px, transparent 1px 4px),
    #f1e8d8;
}
.muster.struktur { background: url("../bilder/beispiel-oel.jpg") 22% 43% / 420% auto; }
.muster.alu { background: url("../bilder/beispiel-kohle-alu.jpg") 78% 12% / 420% auto; }
@media (max-width: 46rem) { .oberflaechen { grid-template-columns: 1fr; } }
.zwischen { margin-top: clamp(3rem, 7vw, 5rem); }

/* Warum */
.warum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.warum ul { margin: 0; padding: 0; list-style: none; font-size: 1.15rem; }
.warum li { padding: 0.85rem 0; border-top: 2px solid var(--linie); }
.warum li:last-child { border-bottom: 2px solid var(--linie); }
.warum .antwort { margin-top: 1.4rem; font-size: 1.2rem; }
.warum .nora { margin-top: 1.2rem; color: var(--tinte-leise); }
@media (max-width: 46rem) { .warum { grid-template-columns: 1fr; } }

/* Preise */
.preise { width: 100%; max-width: 44rem; border-collapse: collapse; margin-top: 2rem; font-size: 1.1rem; }
.preise th, .preise td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 2px solid var(--linie); }
.preise thead th { font-size: 0.95rem; color: var(--tinte-leise); font-weight: 600; }
.preise tbody th { font-weight: 650; }
.preise td { font-variant-numeric: tabular-nums; }
.preis-fuss { margin-top: 1.2rem; color: var(--tinte-leise); }

/* Abschluss */
.abschluss { text-align: left; }
.abschluss .innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.abschluss h2 { max-width: 16ch; }
.abschluss .tun { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.nach-schritten { margin-top: 2.2rem; }
.wand.ohne-sockel::after { display: none; }

.fuss { padding-block: 2rem 2.6rem; font-size: 0.95rem; color: var(--tinte-leise); }
.fuss .innen { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
.fuss nav { display: flex; gap: 1.5rem; }

/* ---------- Studio ---------- */
.studio-kopf { background: var(--wand); color: #fff; }
.studio { padding-block: 2rem 5rem; }
.studio h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 2.9rem); }
.studio .einleitung { margin-top: 0.7rem; color: var(--tinte-leise); }
.feld { display: grid; gap: 0.4rem; margin-top: 1.2rem; max-width: 26rem; }
.feld label { font-weight: 650; }
.feld small { color: var(--tinte-leise); }
.feld input[type="text"], .feld input[type="password"] {
  font: inherit; padding: 0.8rem 0.9rem; border: 2px solid var(--tinte); border-radius: 0.5rem; background: #fff; color: var(--tinte); width: 100%;
}
.meldung { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 0.5rem; background: #fdecea; color: #7c1d10; border-left: 6px solid var(--rot); max-width: 44rem; }
.meldung.gut { background: #e6f5ec; color: #0f4a2b; border-left-color: var(--gruen); }
.meldung.neutral { background: var(--nebel); color: var(--tinte); border-left-color: var(--wand); }

.stufe { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 3px solid var(--tinte); }
.stufe > h2 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 0.7rem; }
.stufe > h2 .nr { font-variation-settings: "BNCE" 14; color: var(--rot); font-size: 2rem; }
.stufe > p { margin-top: 0.5rem; color: var(--tinte-leise); }
.stufe.zu { opacity: 0.45; }

.ablage {
  margin-top: 1.2rem; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem; align-items: start;
}
.ablage .feld-bild {
  aspect-ratio: 3 / 4; border: 3px dashed var(--wand); border-radius: 0.6rem; background: var(--nebel);
  display: grid; place-items: center; text-align: center; padding: 1rem; cursor: pointer; position: relative; overflow: hidden;
  font-weight: 650; color: var(--wand);
}
.ablage .feld-bild.voll { border-style: solid; padding: 0; background: #fff; }
.ablage .feld-bild img { width: 100%; height: 100%; object-fit: contain; }
.ablage .feld-bild input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ablage .feld-bild.zieh { background: #dfe6fb; }
.ablage ul { margin: 0; padding-left: 1.2rem; color: var(--tinte-leise); }
.ablage li { margin-bottom: 0.3rem; }
@media (max-width: 40rem) { .ablage { grid-template-columns: 1fr; } .ablage .feld-bild { max-width: 15rem; } }

.wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.9rem; margin-top: 1.2rem; padding: 0; border: 0; }
.wahl label {
  display: block; padding: 0.95rem 1rem; border: 2px solid var(--linie); border-radius: 0.6rem; cursor: pointer; background: #fff;
}
.wahl label strong { display: block; font-size: 1.1rem; }
.wahl label span { color: var(--tinte-leise); font-size: 0.95rem; line-height: 1.4; display: block; margin-top: 0.15rem; }
.wahl input { position: absolute; opacity: 0; }
.wahl input:checked + label { border-color: var(--tinte); background: var(--gelb); }
.wahl input:checked + label span { color: var(--tinte); }
.wahl input:focus-visible + label { outline: 3px solid var(--wand); outline-offset: 3px; }

.varianten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.3rem; max-width: 56rem; }
.variante { margin: 0; }
.variante .flaeche {
  aspect-ratio: var(--verhaeltnis, 2 / 3); background: var(--nebel); border-radius: 0.4rem; overflow: hidden; display: grid; place-items: center;
  color: var(--tinte-leise); font-size: 0.95rem; text-align: center; padding: 0.5rem; position: relative;
}
.variante .flaeche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.variante.malt .flaeche { background: linear-gradient(100deg, var(--nebel) 30%, #dfe6fb 50%, var(--nebel) 70%) 0 0 / 300% 100%; animation: malen 1.6s linear infinite; }
@keyframes malen { to { background-position: -300% 0; } }
.variante figcaption { margin-top: 0.7rem; display: grid; gap: 0.5rem; }
.variante .knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 2.3rem; }
.variante figcaption strong { font-size: 1.05rem; }
.variante.gewaehlt .flaeche { box-shadow: 0 0 0 4px var(--tinte), 0 0 0 9px var(--gelb); }
@media (max-width: 40rem) { .varianten { grid-template-columns: 1fr; max-width: 18rem; } }

.druck { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.kenndaten { margin: 1.2rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.2rem; max-width: 40rem; }
.kenndaten dt { color: var(--tinte-leise); }
.kenndaten dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.archiv { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.archiv li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 1rem; align-items: center; padding: 0.6rem; border: 2px solid var(--linie); border-radius: 0.6rem; }
.archiv .mini { width: 3.4rem; height: 3.4rem; border-radius: 0.3rem; background: var(--nebel); overflow: hidden; }
.archiv .mini img { width: 100%; height: 100%; object-fit: cover; }
.archiv .wer { font-weight: 650; }
.archiv .was { color: var(--tinte-leise); font-size: 0.95rem; }
.leer { margin-top: 1rem; color: var(--tinte-leise); }
.kopfzeile-studio { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: end; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Klickstrecke (Homepage) ---------- */
.strecke { position: relative; }
.leiste-schritte { list-style: none; margin: 0 auto; padding: 0.2rem var(--rand) 0; max-width: var(--breite); display: flex; gap: 0.5rem; counter-reset: s; }
.leiste-schritte li { counter-increment: s; display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem 0.35rem 0.4rem; border-radius: 999px; font-weight: 650; font-size: 0.98rem; color: #cfd6ff; }
.leiste-schritte li::before { content: counter(s); width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px currentColor; font: 750 1rem/1 var(--schrift-hand); }
.leiste-schritte li[aria-current="step"] { background: #fff; color: var(--tinte); }
.leiste-schritte li[aria-current="step"]::before { background: var(--gelb); box-shadow: none; }
.leiste-schritte li.erledigt { color: #fff; }
.leiste-schritte li.erledigt::before { content: "✓"; background: var(--gruen); box-shadow: none; color: #fff; }
@media (max-width: 30rem) { .leiste-schritte li:not([aria-current="step"]) span { display: none; } .leiste-schritte li:not([aria-current="step"]) { padding-right: 0.4rem; } }

/* Schritt 1 */
.start .worte p { font-size: 1.2rem; line-height: 1.5; margin-top: 1.1rem; max-width: 30ch; color: #e7eaff; }
.riesig { font-size: 1.3rem; padding: 1.2rem 1.8rem; margin-top: 1.8rem; }
.riesig svg { width: 1.6em; height: 1.6em; }
.start .tipp { font-size: 1rem; color: #d3d9fb; margin-top: 1.1rem; max-width: 34ch; }
.start .meldung { color: #7c1d10; font-size: 1rem; }
.start .haengung { grid-template-columns: minmax(0, 19rem); }

/* Schritt 2 und 3 */
.werkbank { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 1.5rem clamp(1.5rem, 5vw, 4rem); align-items: start; padding-block: 1.4rem 4rem; }
.buehne-bild { position: sticky; top: 1rem; display: grid; justify-items: center; gap: 1rem; }
.werk { position: relative; line-height: 0; transition: box-shadow 0.3s ease; }
.werk > canvas#bild { display: block; width: auto; height: auto; max-width: 100%; max-height: min(68vh, 36rem); }
.werk.leinwand { box-shadow: 0.35rem 0.45rem 0 #c9c2b2, 1.1rem 1.7rem 2.4rem rgba(9, 14, 60, 0.55); }
.werk.alu { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0.12rem 0.16rem 0 #8e969e, 1.3rem 2rem 2.6rem rgba(9, 14, 60, 0.6); }
/* das kleine Original, wie mit Klebeband angeheftet */
.klein-original { position: absolute; top: 4%; right: 4%; width: 27%; max-width: 9.5rem; padding: 0; border: 0; background: #fff; cursor: pointer; line-height: 0;
  box-shadow: 0 0 0 4px #fff, 0.3rem 0.5rem 1rem rgba(9, 14, 60, 0.5); transform: rotate(3deg); transition: transform 0.2s ease; }
.klein-original canvas { width: 100%; height: auto; display: block; }
.klein-original:hover { transform: rotate(1deg) scale(1.04); }
.klein-original::before { content: ""; position: absolute; left: 50%; top: -0.7rem; width: 2.6rem; height: 1rem; margin-left: -1.3rem; background: rgba(255, 233, 150, 0.85); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.bild-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.rund { font: 600 0.95rem/1 var(--schrift-text); color: #fff; background: transparent; border: 0; border-radius: 999px; padding: 0.65rem 1rem; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; }
.rund svg { width: 1.15em; height: 1.15em; }
.rund[aria-pressed="true"] { background: #fff; color: var(--tinte); box-shadow: none; }

.tafel h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
.tafel > p { color: #e7eaff; margin-top: 0.7rem; font-size: 1.1rem; max-width: 34ch; }
.tafel .kreiden { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 0.7rem; padding: 0; margin-top: 1.6rem; }
.tafel .kreide { height: 3rem; font-size: 1.05rem; }
.tafel .kreide:hover { transform: translateY(-2px); }
.tafel .kreide[aria-pressed="true"] { transform: translateY(-6px) rotate(-2deg); }
.schalter { border: 0; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.schalter legend { font-weight: 650; padding: 0; margin-bottom: 0.55rem; width: 100%; }
.schalter input { position: absolute; opacity: 0; }
.schalter label { padding: 0.7rem 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75); cursor: pointer; font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; }
.schalter input:checked + label { background: #fff; color: var(--tinte); box-shadow: none; }
.schalter input:focus-visible + label { outline: 3px solid var(--gelb); outline-offset: 3px; }
.weiter-zeile { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; align-items: center; }
.weiter-zeile .knopf { font-size: 1.15rem; padding: 1.05rem 1.7rem; }

.wahlkarten { border: 0; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.wahlkarten legend, .groessen legend { font-weight: 650; padding: 0; margin-bottom: 0.6rem; }
.wahlkarten input, .groessen input { position: absolute; opacity: 0; }
.wahlkarten label { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.8rem; align-items: center; padding: 0.8rem; border-radius: 0.8rem; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); cursor: pointer; }
.wahlkarten label .muster { width: 3.2rem; height: 3.2rem; }
.wahlkarten label strong { display: block; font-size: 1.1rem; }
.wahlkarten label span { font-size: 0.92rem; color: #d3d9fb; line-height: 1.35; display: block; }
.wahlkarten input:checked + label { background: #fff; color: var(--tinte); box-shadow: 0 0 0 3px var(--gelb); }
.wahlkarten input:checked + label span { color: var(--tinte-leise); }
.groessen { border: 0; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.groessen label { display: block; text-align: center; padding: 0.8rem 0.4rem; border-radius: 0.8rem; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); cursor: pointer; }
.groessen label strong { display: block; font-size: 1.05rem; white-space: nowrap; }
.groessen label span { display: block; margin-top: 0.25rem; font-size: 1.05rem; color: #ffe9a3; font-variant-numeric: tabular-nums; }
.groessen input:checked + label { background: #fff; color: var(--tinte); box-shadow: 0 0 0 3px var(--gelb); }
.groessen input:checked + label span { color: var(--tinte); font-weight: 650; }
.wahlkarten input:focus-visible + label, .groessen input:focus-visible + label { outline: 3px solid var(--gelb); outline-offset: 4px; }
.summe { margin-top: 1.4rem; font-size: 1.15rem; font-weight: 650; }
.strecke-status { color: #d3d9fb; font-size: 0.98rem; margin-top: 0.9rem; min-height: 1.5em; max-width: 40ch; }

.galerie.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 60rem) { .galerie.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 36rem; } }

@media (max-width: 54rem) {
  .werkbank { grid-template-columns: 1fr; padding-top: 0.8rem; }
  .buehne-bild { position: static; }
  .werk > canvas#bild { max-height: 48vh; }
  .start .haengung { margin-top: 0.5rem; }
}
@media (max-width: 26rem) { .groessen label strong { font-size: 0.95rem; } }
@media (max-width: 30rem) { .wahlkarten label { grid-template-columns: 2.4rem 1fr; gap: 0.6rem; padding: 0.65rem; } .wahlkarten label .muster { width: 2.4rem; height: 2.4rem; } .wahlkarten label span { display: none; } }
.strecke-status .textlink { color: #fff; }
