/* Silberbad. Seitenstil. Die Engine-Klassen (.sc-*, [data-sc-*]) bleiben
   unangetastet. Die ganze Seite hat zwei Lichter: Rotlicht (--licht 0) und
   Arbeitslicht (--licht 1). silberbad.js setzt --licht beim Fixieren um. */
:root {
  --licht: 0;
  --r-grund: #170807;  --w-grund: #151413;
  --r-flaeche: #26110E; --w-flaeche: #201E1C;
  --r-tinte: #F7D9CE;  --w-tinte: #EEEBE5;
  --r-weich: #D9A898;  --w-weich: #B3ADA4;
  --papier: #EFEBE3;
  --rotlicht: #E0442A;

  /* Rotlicht-Werte als Ausgang; silberbad.js mischt sie beim Fixieren in rgb()
     zum Arbeitslicht hin (rgb statt color-mix, damit Kontrastmessungen greifen). */
  --sc-canvas:  var(--r-grund);
  --sc-surface: var(--r-flaeche);
  --sc-ink:     var(--r-tinte);
  --sc-ink-soft: var(--r-weich);
  --sc-accent:  #E8573B;
  --sc-accent-ink: #1B0806;
  --sc-font-display: "Syne", system-ui, sans-serif;
  --sc-font-text:    "DM Sans", system-ui, sans-serif;
  --sc-font-mono:    "DM Sans", system-ui, sans-serif;
  --sc-shadow-color: 8 50% 3%;
  color-scheme: dark;
}
html { background: var(--sc-canvas); scrollbar-color: color-mix(in oklab, var(--sc-ink) 26%, var(--sc-canvas)) var(--sc-canvas); }
body { font-family: var(--sc-font-text); background: var(--sc-canvas); color: var(--sc-ink); font-weight: 450; }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 3px; }
button { font: inherit; color: inherit; }

/* Syne: breit, eigenwillig. Auf dunklem Grund eine Stufe schwerer. */
.sc-display {
  font-family: var(--sc-font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--sc-ink);
}
.sc-display--xl { font-size: clamp(2.4rem, 1.3rem + 2.6vw, 3.9rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
.sc-display--lg { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.7rem); }
.sc-body { color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.62; letter-spacing: .006em; max-width: 34ch; }
.vorzeile {
  margin: 0; font: 600 var(--sc-t-xs)/1.2 var(--sc-font-text); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sc-accent);
}
@media (max-width: 700px) {
  .sc-display--xl { font-size: clamp(2.1rem, 1.2rem + 4.4vw, 2.7rem); }
  .sc-display--lg { font-size: clamp(1.75rem, 1.1rem + 3.4vw, 2.4rem); }
  .sc-body { font-size: 1.04rem; }
}

/* ---------- Kopf und Laboruhr ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--sc-gutter);
  background: linear-gradient(color-mix(in oklab, var(--sc-canvas) 86%, transparent), transparent);
  pointer-events: none;
}
.kopf > * { pointer-events: auto; }
.wortmarke {
  justify-self: start;
  font: 800 21px/1 var(--sc-font-display); letter-spacing: -0.01em; color: var(--sc-ink); text-decoration: none;
}
.uhr { position: relative; display: flex; align-items: center; gap: 18px; }
.uhr__blatt {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 0; background: none; cursor: pointer;
  border-radius: 999px;
}
.uhr__blatt svg { width: 44px; height: 44px; display: block; }
.uhr__rand { fill: color-mix(in oklab, var(--sc-canvas) 70%, black); stroke: color-mix(in oklab, var(--sc-ink) 40%, transparent); stroke-width: 1.5; }
.uhr__bad {
  fill: none; stroke: var(--sc-accent); stroke-width: 3; stroke-dasharray: 0 100;
  transform: rotate(-90deg); transform-origin: 24px 24px; stroke-linecap: round;
}
.uhr__striche line { stroke: color-mix(in oklab, var(--sc-ink) 55%, transparent); stroke-width: 1.2; }
.uhr__zeiger { stroke: var(--sc-ink); stroke-width: 1.8; stroke-linecap: round; transform-origin: 24px 24px; }
.uhr__achse { fill: var(--sc-accent); }
.uhr__text { display: grid; text-align: left; line-height: 1.15; }
.uhr__text b { font: 700 1.05rem/1.1 var(--sc-font-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.uhr__text span { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); letter-spacing: .04em; }
.uhr__baeder { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.uhr__baeder a {
  display: block; padding: 10px 10px; font-size: var(--sc-t-sm); font-weight: 500; color: var(--sc-ink-soft);
  text-decoration: none; border-radius: 3px; position: relative;
  transition: color 160ms var(--sc-ease-out);
}
.uhr__baeder a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 1.5px; background: var(--sc-accent);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--sc-ease-out);
}
.uhr__baeder a.ist-hier { color: var(--sc-ink); }
.uhr__baeder a.ist-hier::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .uhr__baeder a:hover { color: var(--sc-ink); } }
@media (min-width: 1081px) { .uhr__blatt { pointer-events: none; cursor: default; } }
@media (max-width: 1080px) {
  .kopf { grid-template-columns: 1fr auto; }
  .uhr { justify-self: end; }
  .uhr__baeder {
    position: absolute; top: calc(100% + 8px); right: 0; flex-direction: column; min-width: 12rem; padding: 6px;
    background: var(--sc-surface); border-radius: 6px; box-shadow: var(--sc-e3), var(--sc-edge);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 180ms var(--sc-ease-out), transform 180ms var(--sc-ease-out), visibility 0s 180ms;
  }
  .uhr.ist-offen .uhr__baeder { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .uhr__baeder a { padding: 12px 12px; font-size: 1rem; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 3px; border: 1.5px solid color-mix(in oklab, var(--sc-ink) 50%, transparent);
  background: color-mix(in oklab, var(--sc-canvas) 50%, transparent);
  font: 600 1rem/1 var(--sc-font-text); letter-spacing: .01em; color: var(--sc-ink); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.knopf:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { border-color: var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 14%, transparent); }
}
/* Der volle Knopf trägt ein feines Raster, über das ein Lichtstreif läuft. */
.knopf--voll {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink);
}
.knopf--voll::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: linear-gradient(90deg, var(--sc-accent-ink) 1px, transparent 1px), linear-gradient(var(--sc-accent-ink) 1px, transparent 1px);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 48%, transparent 66%);
          mask-image: linear-gradient(100deg, transparent 30%, #000 48%, transparent 66%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  animation: streif 4.6s var(--sc-ease-in-out) infinite;
}
@keyframes streif { from { -webkit-mask-position: 120% 0; mask-position: 120% 0; } to { -webkit-mask-position: -60% 0; mask-position: -60% 0; } }
@media (hover: hover) and (pointer: fine) { .knopf--voll:hover { background: #F06548; border-color: #F06548; } }
.textknopf {
  border: 0; background: none; padding: 12px 4px; cursor: pointer; font-weight: 600; color: var(--sc-ink);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in oklab, var(--sc-accent) 70%, transparent);
}

/* ---------- Räume (gepinnte Bühnen) ---------- */
.raum { background: var(--sc-canvas); overflow: hidden; }
.raum::before, .raum::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* Rotlicht von der Lampe oben rechts, verschwindet mit dem Arbeitslicht. */
.raum::before {
  background: radial-gradient(70% 80% at 78% 6%, rgb(224 68 42 / .30), rgb(224 68 42 / .08) 45%, transparent 75%);
  opacity: calc(1 - var(--licht));
}
.raum::after {
  background: radial-gradient(80% 70% at 50% -10%, rgb(240 236 228 / .13), transparent 70%);
  opacity: var(--licht);
}
.lampe { position: absolute; top: 0; right: 14%; width: 74px; height: 64px; z-index: 1; }
.lampe::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 28px; background: #3b1a14; }
.lampe i {
  position: absolute; left: 0; right: 0; top: 26px; height: 32px; border-radius: 40px 40px 6px 6px;
  background: linear-gradient(#5a2318, #2a0f0b);
}
.lampe i::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -3px; height: 6px; border-radius: 3px; background: #F0603F; }
.lampe::after { content: ""; position: absolute; left: -70%; right: -70%; top: 40px; height: 150px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 30%, rgb(224 68 42 / .42), transparent 70%); }

.raum__text {
  position: absolute; z-index: 5; left: var(--sc-gutter); top: 50%; transform: translateY(-46%);
  width: min(46rem, 48vw); display: grid;
}
.stapel { grid-area: 1 / 1; display: grid; gap: 20px; align-content: start; }
.stapel .knopf { justify-self: start; margin-top: 6px; }

/* ---------- Schale ---------- */
.schale { margin: 0; position: absolute; z-index: 2; }
.schale--fix, .schale[data-schale="entwickler"] { --kipp: 0deg; }
.schale[data-schale="entwickler"] {
  right: max(var(--sc-gutter), 7vw); top: 50%;
  height: min(78svh, 760px); aspect-ratio: 1 / 1.16;
  transform: translateY(-46%) rotate(calc(-1.6deg + var(--kipp)));
}
.schale__wanne {
  position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(160deg, #2b100c, #120605 70%);
  box-shadow: inset 0 0 0 2px #3a1712, inset 0 10px 30px rgb(0 0 0 / .6), 0 30px 60px -20px hsl(var(--sc-shadow-color) / .8);
  display: grid; place-items: center; padding: 7% 8.5%;
}
.schale__wanne::before {
  /* die Flüssigkeit: ein dunkler, leicht roter Film über dem Boden */
  content: ""; position: absolute; inset: 3.5%; border-radius: 9px;
  background: linear-gradient(170deg, rgb(120 30 18 / .22), rgb(20 4 3 / .1));
  pointer-events: none;
}
.papier { position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; max-height: 100%; object-fit: contain; border-radius: 1px; box-shadow: 0 2px 10px rgb(0 0 0 / .45); }
.schale__glanz {
  position: absolute; inset: 3.5%; border-radius: 9px; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 38%, rgb(255 150 120 / .12) 46%, transparent 56%);
  background-size: 220% 100%; background-position: var(--glanz, 50%) 0;
}

/* ---------- Stopp ---------- */
.stopp { padding-block: clamp(4rem, 8vw, 8rem) var(--sc-section); }
.stopp__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.stopp__text { display: grid; gap: 22px; }
.stopp__text .sc-display { max-width: 15ch; }
.ablauf { margin: 14px 0 0; display: grid; gap: 0; border-top: 1px solid var(--sc-hairline-strong); max-width: 36rem; }
.ablauf div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sc-hairline); }
.ablauf dt { font: 700 1.02rem/1.4 var(--sc-font-display); color: var(--sc-ink); }
.ablauf dd { margin: 0; color: var(--sc-ink-soft); line-height: 1.55; }
@media (max-width: 860px) {
  .stopp__raster { grid-template-columns: 1fr; }
  .ablauf div { grid-template-columns: 1fr; gap: 4px; }
}

/* Kontaktbogen unter Rotlicht: Papier ist rot, Bilder schwärzen rot. */
.kontakt { margin: 0; display: grid; gap: 14px; }
.kontakt__bogen {
  position: relative; padding: 5% 5.5%; display: grid; gap: 4%;
  background: #B8341F; transform: rotate(1.4deg);
  box-shadow: 0 24px 50px -18px rgb(0 0 0 / .7);
}
.kontakt__bogen::after {
  /* Papierfaser: feines Punktraster, zur Mitte ausgeblendet */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(rgb(30 4 2) 0.7px, transparent 0.8px); background-size: 5px 5px;
  -webkit-mask-image: radial-gradient(closest-side, transparent 55%, #000); mask-image: radial-gradient(closest-side, transparent 55%, #000);
}
.streifen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2%; padding: 3.2% 2.4%; background: #1d0705; }
.streifen i {
  aspect-ratio: 1; background-image: var(--b); background-size: calc(var(--z, 1) * 100%) auto;
  background-position: var(--x) var(--y); background-color: #B8341F; background-blend-mode: multiply;
  filter: contrast(1.08);
}
.kontakt__kreis { position: absolute; left: 25.5%; top: 34%; width: 25%; height: 34%; overflow: visible; }
.kontakt__kreis path { fill: none; stroke: #170403; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.kontakt figcaption { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.5; max-width: 44ch; }

/* ---------- Fixierer (Höhepunkt) ---------- */
.raum--fixierer { --hub: 0; --zug: 0; }
.decke {
  position: absolute; inset: 0 0 auto 0; height: 44%; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgb(246 242 232 / .2), transparent 70%);
  opacity: var(--licht);
}
.schnur { position: absolute; top: 0; left: 9%; z-index: 4; width: 2px; height: calc(26svh + var(--zug) * 26px); background: #4a3a34; }
.schnur i {
  position: absolute; left: 50%; bottom: -16px; width: 12px; height: 18px; margin-left: -6px; border-radius: 6px 6px 7px 7px;
  background: linear-gradient(#cfc7bc, #8e857a);
}
.leine {
  position: absolute; left: 0; right: 0; top: calc(var(--leine-y, 13svh) - 1px); height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--sc-ink) 40%, transparent) 6%, color-mix(in oklab, var(--sc-ink) 40%, transparent) 94%, transparent);
}
.raum--fixierer .leine { opacity: calc(0.35 + var(--licht) * 0.65); }
.fern { position: absolute; top: calc(13svh); z-index: 2; width: clamp(9rem, 15vw, 15rem); opacity: calc(var(--licht) * .55); filter: blur(5px); }
.fern img { display: block; width: 100%; height: auto; border: 9px solid var(--papier); box-sizing: border-box; }
.fern--a { left: 16%; transform-origin: top; }
.fern--b { right: 2%; width: clamp(8rem, 12vw, 12rem); filter: blur(7px); }
.schale--fix {
  left: 62%; bottom: 6svh; width: min(50vw, 740px); height: 46svh;
  transform: translateX(-50%) perspective(1000px) rotateX(38deg);
  opacity: calc(1 - var(--hub) * 1.6);
}
.schale--fix .schale__wanne { background: linear-gradient(#25100c, #0f0504); }
.abzug {
  --h: min(70svh, 820px);
  position: absolute; z-index: 4; margin: 0; left: 62%; top: var(--leine-y, 13svh);
  height: var(--h); aspect-ratio: 1 / 1.18; translate: -50% 0;
  transform-origin: 50% 0;
}
.abzug__blatt { position: absolute; inset: 0; background: var(--papier); padding: 5.5% 5.5% 8%; box-shadow: 0 30px 50px -24px rgb(0 0 0 / .8); }
.abzug__blatt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.abzug__rot { position: absolute; inset: 0; background: var(--rotlicht); mix-blend-mode: multiply; opacity: calc(1 - var(--licht)); }
.klammer {
  position: absolute; top: -18px; width: 14px; height: 46px; border-radius: 3px; z-index: 2;
  background: linear-gradient(90deg, #a98d6c, #d8bf9b 45%, #9b7f5f); box-shadow: 0 4px 6px rgb(0 0 0 / .4);
}
.klammer::after { content: ""; position: absolute; left: 2px; right: 2px; top: 17px; height: 6px; background: #6f6862; border-radius: 1px; }
.klammer--l { left: 14%; } .klammer--r { right: 14%; } .klammer--m { left: 50%; margin-left: -7px; }
.raum--fixierer .klammer { opacity: clamp(0, calc((var(--hub) - .92) * 14), 1); }
.tropfen {
  position: absolute; left: 31%; bottom: -10px; width: 5px; height: 8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: color-mix(in oklab, var(--papier) 70%, transparent); opacity: 0;
}
.tropfen--2 { left: 68%; }
@media (prefers-reduced-motion: no-preference) {
  .raum--fixierer.ist-haengend .tropfen { animation: tropf 2.2s cubic-bezier(.55, 0, 1, .45) infinite; }
  .raum--fixierer.ist-haengend .tropfen--2 { animation-delay: 1.1s; animation-duration: 2.9s; }
}
@keyframes tropf { 0% { opacity: 0; transform: translateY(0) scale(.6); } 18% { opacity: .9; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(42svh); } }
.raum__text--fix { width: min(30rem, 36vw); top: auto; bottom: 12svh; transform: none; }

/* ---------- Wässern: die Leine ---------- */
.raum--leine { --leine-y: 15svh; }
.schiene { position: absolute; inset: 0 auto 0 0; display: flex; align-items: flex-start; gap: clamp(3rem, 6vw, 7rem); padding: calc(var(--leine-y) - 18px) var(--sc-gutter) 0; width: max-content; z-index: 4; }
.kopfkarte, .notiz { width: min(30rem, 78vw); margin-top: calc(14svh + 18px); display: grid; gap: 20px; align-content: start; }
.notiz { width: min(22rem, 76vw); margin-top: calc(22svh + 18px); }
.notiz p { font: 600 var(--sc-t-xl)/1.3 var(--sc-font-display); color: var(--sc-ink); margin: 0; text-wrap: balance; }
.notiz .knopf { justify-self: start; }
.haenger { position: relative; margin: 0; padding-top: 18px; width: calc(min(60svh, 640px) * .82); }
.haenger--tief { margin-top: 5svh; }
.haenger__blatt { background: var(--papier); padding: 6% 6% 9%; box-shadow: 0 30px 50px -26px rgb(0 0 0 / .85); rotate: -.6deg; }
.haenger--tief .haenger__blatt { rotate: .8deg; }
.haenger__blatt img { display: block; width: 100%; height: auto; }
.haenger .klammer { top: 0; }
.haenger figcaption, .preise p { margin-top: 18px; color: var(--sc-ink-soft); line-height: 1.5; font-size: var(--sc-t-base); max-width: 32ch; }
.haenger figcaption b { color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 700; }
.preise { position: relative; margin: 0; padding-top: 18px; width: min(24rem, 80vw); margin-top: 3svh; }
.preise__blatt {
  position: relative; background: var(--papier); color: #24201c; padding: 28px 28px 22px; rotate: -1.2deg;
  box-shadow: 0 26px 40px -24px rgb(0 0 0 / .8);
}
.preise__blatt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(transparent 31px, rgb(60 50 40 / .08) 32px); background-size: 100% 32px;
}
.preise h3 { margin: 0 0 14px; font: 800 1.6rem/1 var(--sc-font-display); color: #1c1815; }
.preise dl { margin: 0; display: grid; gap: 0; }
.preise dl div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid rgb(40 30 20 / .16); }
.preise dt { color: #3d3630; }
.preise dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; color: #1c1815; white-space: nowrap; }
.preise__blatt p { color: #4b433b; font-size: var(--sc-t-sm); margin: 14px 0 0; }

/* ---------- Dein Abzug ---------- */
.raum--abzug { --insel: 1; }
.raum--abzug::before {
  background: radial-gradient(42% 60% at 70% 52%, rgb(224 68 42 / .34), rgb(224 68 42 / .06) 60%, transparent 80%);
  opacity: var(--insel); transition: opacity 900ms var(--sc-ease-out);
}
.abzug__inhalt {
  position: absolute; z-index: 5; left: var(--sc-gutter); top: max(15svh, 96px);
  width: min(32rem, 40vw); display: grid; gap: 18px;
}
.steuer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.steuer__zeit { margin: 0; color: var(--sc-ink-soft); }
.steuer__zeit b { font: 700 1.3rem/1 var(--sc-font-display); color: var(--sc-ink); font-variant-numeric: tabular-nums; margin-left: 6px; }
.ergebnis { display: grid; gap: 10px; }
.ergebnis__satz { margin: 0; color: var(--sc-ink); font-size: var(--sc-t-base); line-height: 1.55; max-width: 40ch; }
.ergebnis__knoepfe { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.ergebnis__hinweis { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); min-height: 1.5em; max-width: 42ch; }
.schale--eigen {
  right: max(var(--sc-gutter), 8vw); top: 50%;
  height: min(70svh, 700px); aspect-ratio: 1 / 1.16; transform: translateY(-50%) rotate(1.2deg);
}
.karte { position: relative; width: 100%; height: 100%; display: grid; place-items: center; perspective: 1400px; }
.karte__vorne, .karte__hinten {
  grid-area: 1 / 1; width: 100%; height: 100%; display: grid; place-items: center;
  backface-visibility: hidden; transition: transform 900ms var(--sc-ease-in-out), opacity 400ms var(--sc-ease-out);
}
.karte__vorne .papier { width: 100%; height: 100%; }
.karte__hinten {
  transform: rotateY(180deg); background: #E9E4DA; width: 100%; height: 100%;
  align-content: center; gap: 18px; padding: 10%; box-shadow: 0 2px 10px rgb(0 0 0 / .45);
}
.karte.ist-gewendet .karte__vorne { transform: rotateY(-180deg); }
.karte.ist-gewendet .karte__hinten { transform: rotateY(0deg); }
@media (prefers-reduced-motion: reduce) {
  .karte__vorne, .karte__hinten { transform: none !important; transition: opacity 300ms linear; }
  .karte__hinten { opacity: 0; }
  .karte.ist-gewendet .karte__hinten { opacity: 1; }
  .karte.ist-gewendet .karte__vorne { opacity: 0; }
}
.stempel {
  display: grid; justify-items: center; gap: 6px; padding: 16px 20px; rotate: -5deg;
  border: 3px solid #B42E1C; border-radius: 6px; color: #B42E1C; text-align: center;
  mix-blend-mode: multiply; opacity: 0; scale: 1.25;
  box-shadow: inset 0 0 0 2px #E9E4DA, inset 0 0 0 4px #B42E1C;
}
.karte.ist-gewendet .stempel { opacity: .9; scale: 1; transition: opacity 120ms 650ms linear, scale 200ms 650ms cubic-bezier(.23, 1, .32, 1); }
.stempel__marke { font: 800 1.35rem/1 var(--sc-font-display); letter-spacing: .04em; text-transform: uppercase; }
.stempel__titel { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.stempel__tag { font: 700 1.2rem/1.2 var(--sc-font-display); font-variant-numeric: tabular-nums; }
.stempel__licht { font-size: .86rem; font-weight: 500; }
.rueckseite__notiz { margin: 0; color: #4d463e; font-size: .9rem; line-height: 1.45; text-align: center; max-width: 24ch; justify-self: center; }
.fuss {
  position: absolute; z-index: 5; left: var(--sc-gutter); right: var(--sc-gutter); bottom: 18px;
  display: flex; gap: 18px; align-items: baseline; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); line-height: 1.45;
}
.fuss__marke { font: 800 .95rem/1 var(--sc-font-display); color: var(--sc-ink); white-space: nowrap; }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .raum__text { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; top: auto; bottom: max(4svh, 22px); transform: none; }
  .lampe { right: 10%; transform: scale(.8); transform-origin: top; }
  .schale[data-schale="entwickler"] {
    right: auto; left: 50%; top: 13svh; height: min(44svh, 112vw); transform: translateX(-50%) rotate(calc(-1.6deg + var(--kipp)));
  }
  .abzug { --h: min(46svh, 104vw); left: 50%; }
  .raum--fixierer .leine { --leine-y: 11svh; }
  .abzug { top: 11svh; }
  .raum__text--fix { bottom: max(4svh, 20px); width: auto; }
  .fern--a { left: -4%; } .fern--b { right: -6%; }
  .schnur { left: 6%; height: calc(14svh + var(--zug) * 22px); }
  .schale--fix { width: 92vw; height: 22svh; bottom: 30svh; transform: translateX(-50%) perspective(700px) rotateX(46deg); }
  .raum--leine { --leine-y: 12svh; }
  .haenger { width: min(74vw, calc(52svh * .82)); }
  .kopfkarte { margin-top: calc(10svh + 18px); }
  .abzug__inhalt { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; top: auto; bottom: 64px; transform: none; gap: 12px; }
  .abzug__inhalt .sc-body { font-size: .98rem; }
  .schale--eigen { right: auto; left: 50%; top: 11svh; height: min(38svh, 92vw); transform: translateX(-50%) rotate(1.2deg); }
  .raum--abzug::before { background: radial-gradient(70% 40% at 50% 28%, rgb(224 68 42 / .34), transparent 80%); }
  .fuss { bottom: 10px; }
  .fuss__marke { display: none; }
}
@media (max-width: 380px) {
  .raum__text .sc-body { font-size: .98rem; }
  .schale[data-schale="entwickler"] { top: 11svh; height: min(40svh, 104vw); }
  .abzug__inhalt .sc-body { display: none; }
}
[hidden] { display: none !important; }
@media (max-width: 860px) {
  /* Nach dem Herausnehmen braucht das Ergebnis den Platz der Anleitung. */
  .abzug__inhalt:has(.ergebnis:not([hidden])) > .sc-body,
  .abzug__inhalt:has(.ergebnis:not([hidden])) .steuer { display: none; }
}
@media (max-width: 860px) {
  .sc-display--xl { font-size: clamp(2rem, 1.1rem + 4vw, 2.45rem); letter-spacing: -0.03em; }
  .abzug__inhalt { bottom: 88px; }
  .karte__hinten { padding: 8% 6%; gap: 10px; }
  .stempel { padding: 10px 10px; gap: 4px; }
  .stempel__marke { font-size: 1rem; }
  .stempel__titel { font-size: .62rem; }
  .stempel__tag { font-size: .95rem; }
  .stempel__licht { font-size: .72rem; }
  .rueckseite__notiz { font-size: .74rem; }
}
@media (max-width: 860px) {
  .abzug__inhalt:has(.ergebnis:not([hidden])) > h2 { display: none; }
  .karte__hinten { overflow: hidden; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .schale--eigen { height: min(34svh, 92vw); }
  .rueckseite__notiz { font-size: .64rem; }
  .stempel__licht { font-size: .64rem; }
}
/* Die Rückseite skaliert mit ihrer eigenen Breite, damit der Stempel auf jedem Blatt ganz bleibt. */
.karte__hinten { container-type: size; }
.stempel { padding: min(16px, 4cqw) min(20px, 4.5cqw); max-width: 92cqw; }
.stempel__marke { font-size: min(1.35rem, 8.4cqw) !important; }
.stempel__titel { font-size: min(.78rem, 4.2cqw) !important; }
.stempel__tag { font-size: min(1.2rem, 7cqw) !important; }
.stempel__licht { font-size: min(.86rem, 4.6cqw) !important; }
.rueckseite__notiz { font-size: min(.9rem, 4.6cqw) !important; }
@media (max-width: 860px) and (max-height: 700px) {
  .abzug { --h: min(40svh, 96vw); }
  .raum__text--fix { bottom: 14px; }
  .raum__text--fix .sc-body { font-size: .95rem; }
}
