/* ==========================================================
   werkstatt.ch – Bildung ist ein Werk.
   ========================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F6F1E8;
  --paper-2: #EFE8DB;
  --card: #FFFDF9;
  --ink: #1B1A17;
  --ink-2: #3A3732;
  --muted: #6B665D;
  --line: #E2DACB;
  --line-2: #CFC5B3;

  --saffron: #F5B300;
  --coral: #FF7A3D;
  --pink: #E5457F;
  --lilac: #B98BD6;
  --teal: #1FA6A3;
  --mint: #57CDB6;
  --blue: #2F5BD9;
  --swiss: #E30613;
  --ok: #1E8E5A;
  --warn: #C77700;
  --no: #C2312F;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 0 rgba(27,26,23,.04), 0 10px 30px -12px rgba(27,26,23,.22);
  --shadow-lg: 0 30px 60px -25px rgba(27,26,23,.45);
  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--saffron); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "SOFT" 30, "opsz" 72; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.center { text-align: center; margin-top: 2rem; }
.mt { margin-top: 1rem; }
.inline { display: inline; }

/* ---------- Logo ---------- */
.logo { display: inline-grid; text-decoration: none; line-height: 1; justify-items: center; gap: 3px; color: var(--ink); }
.logo__since { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.logo__word { font-family: var(--serif); font-weight: 700; font-size: 27px; letter-spacing: -.02em; display: inline-flex; align-items: flex-end; font-variation-settings: "SOFT" 0, "opsz" 48; }
.logo__flag { width: 11px; height: 11px; margin: 0 0 3px 2px; flex: none; }
.logo__tag { font-size: 10.5px; letter-spacing: .04em; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 4px; }
.logo--small .logo__word { font-size: 24px; }

/* ---------- Kopf ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav > a { text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 550; font-size: 15.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.mainnav > a:hover { background: var(--paper-2); color: var(--ink); }
.mainnav > a.is-active { background: var(--ink); color: var(--paper); }
.mainnav__tools { display: flex; align-items: center; gap: 8px; margin-left: 12px; padding-left: 14px; border-left: 1px solid var(--line); }
.chip { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
.chip:hover { background: var(--ink); color: var(--paper); }
.chip--dark { background: var(--ink); color: var(--saffron); }
.cart-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--saffron); color: var(--ink); transition: transform .2s; }
.cart-btn:hover { transform: rotate(-8deg) scale(1.05); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn__n { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper); }
.cart-btn__n[hidden] { display: none; }
.cart-btn.is-bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-10deg); } 60% { transform: scale(.95); } }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .mainnav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--paper); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s ease; max-height: calc(100vh - 76px); overflow: auto; }
  .mainnav.is-open { transform: none; }
  .mainnav > a { padding: 13px 14px; font-size: 18px; }
  .mainnav__tools { margin: 10px 0 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: 15.5px; line-height: 1.2; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -1px var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--accent { background: var(--saffron); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--card); }
.btn--small { font-size: 14px; padding: 8px 14px; }
.btn--big { font-size: 17px; padding: 15px 26px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.icon-btn:hover { border-color: var(--no); color: var(--no); }

/* ---------- Typo-Bausteine ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 6px 14px 6px 10px; border-radius: 999px; margin-bottom: 26px; }
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--swiss); box-shadow: 0 0 0 4px color-mix(in srgb, var(--swiss) 18%, transparent); }
.eyebrow { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.eyebrow a { color: inherit; }
.section__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.fineprint { font-size: 14px; color: var(--muted); }
.h-sm { font-size: 1.45rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); position: relative; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero__title { font-size: clamp(3rem, 6.4vw, 6rem); line-height: .93; letter-spacing: -.035em; margin-bottom: 26px; font-variation-settings: "SOFT" 50, "opsz" 144; font-weight: 700; }
.mark { position: relative; font-style: italic; font-weight: 600; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: .06em; height: .2em; background: var(--saffron); z-index: -1; border-radius: 3px; transform: skewX(-12deg) scaleX(0); transform-origin: left; animation: mark .9s .4s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes mark { to { transform: skewX(-12deg) scaleX(1); } }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 38px 0 0; padding: 22px 0 0; border-top: 1.5px dashed var(--line-2); }
.hero__facts div { display: grid; }
.hero__facts dt { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.hero__facts dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* Lochwand mit Fotos */
.wall { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; border-radius: var(--r-lg); background-color: #E9DFCC; background-image: radial-gradient(circle, rgba(27,26,23,.18) 2.2px, transparent 2.6px); background-size: 26px 26px; background-position: 13px 13px; box-shadow: inset 0 0 0 1px rgba(27,26,23,.06), var(--shadow-lg); }
.wall__tile { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 12px 22px -12px rgba(0,0,0,.5); transform: rotate(var(--rot, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1); background: var(--paper-2); }
.wall__tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.wall__tile:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.wall__tile--1 { --rot: -2.2deg; } .wall__tile--2 { --rot: 1.6deg; margin-top: 26px; } .wall__tile--3 { --rot: -1deg; }
.wall__tile--4 { --rot: 2deg; margin-top: -10px; } .wall__tile--5 { --rot: -1.6deg; margin-top: 16px; } .wall__tile--6 { --rot: 1.2deg; margin-top: -6px; }
.wall__pin { position: absolute; top: 9px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, var(--swiss) 22% 100%); box-shadow: 0 3px 4px rgba(0,0,0,.35); }
.wall__label { position: absolute; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; background: var(--card); padding: 6px 10px; border-radius: 4px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); z-index: 3; }
.wall__label--a { top: -12px; left: 18%; transform: rotate(-4deg); }
.wall__label--b { bottom: 38%; right: -16px; transform: rotate(5deg); background: var(--saffron); }
.wall__label--c { bottom: -12px; left: 34%; transform: rotate(-2deg); background: var(--ink); color: var(--paper); }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .wall { gap: 10px; padding: 14px; }
  .wall__label--b { right: 6px; }
}

/* ---------- Laufband (Massband) ---------- */
.ticker { position: relative; background: var(--saffron); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); transform: rotate(-1.2deg) scale(1.02); margin: 10px 0 20px; }
.ticker::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 9px; background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12px), repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 60px); background-size: auto 6px, auto 9px; background-repeat: repeat-x; opacity: .85; pointer-events: none; }
.ticker__track { display: flex; width: max-content; animation: run 90s linear infinite; padding: 17px 0 13px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__run { display: flex; flex: none; }
.ticker__item { font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600; white-space: nowrap; padding: 0 28px; position: relative; }
.ticker__item em { font-family: var(--sans); font-size: .72em; font-style: normal; font-weight: 600; opacity: .7; margin-left: 6px; }
.ticker__item::after { content: "✦"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); font-size: .8em; color: var(--swiss); }
@keyframes run { to { transform: translateX(-50%); } }
.ticker--foot { transform: none; margin: 0; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ticker--foot::before { background: repeating-linear-gradient(90deg, var(--saffron) 0 1.5px, transparent 1.5px 12px), repeating-linear-gradient(90deg, var(--saffron) 0 2px, transparent 2px 60px); background-size: auto 6px, auto 9px; background-repeat: repeat-x; }
.ticker--foot .ticker__item::after { color: var(--saffron); }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation-duration: 400s; } .mark::after { animation: none; transform: skewX(-12deg); } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 90px); }
.section__head { margin-bottom: clamp(28px, 4vw, 52px); max-width: 780px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--saffron); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: t; }
.trio__item { background: var(--card); border-radius: var(--r-lg); padding: 30px 28px 26px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.trio__item::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: var(--c); }
.trio__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trio__no { font-family: var(--mono); font-size: 13px; color: var(--muted); display: block; margin-bottom: 42px; }
.trio__item h3 { font-size: 1.7rem; }
.trio__item p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } .trio__no { margin-bottom: 18px; } }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/4.6; text-decoration: none; color: var(--ink); background: var(--c); isolation: isolate; }
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s cubic-bezier(.2,.8,.2,1); z-index: -1; }
.path:hover img { transform: scale(1.06); }
.path__body { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--card); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.path__body strong { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.path__body span:last-child { font-size: 14.5px; color: var(--muted); }
.path__n { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); background: var(--c); justify-self: start; padding: 3px 8px; border-radius: 4px; margin-bottom: 6px; }
.path::after { content: "→"; position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 20px; transition: transform .25s; }
.path:hover::after { transform: rotate(-35deg); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path { aspect-ratio: 16/12; } }

/* Regal */
.shelf-section { background: linear-gradient(var(--paper) 0 0) , var(--paper-2); }
.shelf { position: relative; padding: 0 var(--gutter); }
.shelf__row { display: flex; gap: clamp(14px, 2.2vw, 30px); align-items: flex-end; justify-content: center; max-width: var(--wrap); margin: 0 auto; overflow-x: auto; padding: 30px 6px 0; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.book { flex: none; width: clamp(120px, 10.6vw, 142px); border: 0; padding: 0; background: none; cursor: pointer; position: relative; scroll-snap-align: center; transform-origin: bottom center; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.book img { width: 100%; aspect-ratio: 210/297; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: inset 4px 0 0 rgba(0,0,0,.15), -1px 0 0 rgba(0,0,0,.2), 8px 10px 18px -8px rgba(0,0,0,.55); background: #fff; }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.2), rgba(0,0,0,.05)); border-radius: 3px 0 0 3px; z-index: 1; pointer-events: none; }
.book:nth-child(odd) { transform: rotate(-1.2deg); }
.book:nth-child(3n) { transform: rotate(1.4deg); }
.book:hover { transform: translateY(-16px) rotate(0); }
.book__label { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 6px); background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s; }
.book:hover .book__label, .book:focus-visible .book__label { opacity: 1; transform: translate(-50%, 0); }
.shelf__board { height: 24px; max-width: calc(var(--wrap) + 40px); margin: 0 auto; background: linear-gradient(#B98552, #8A5A32); border-radius: 3px; box-shadow: 0 16px 24px -14px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.25); position: relative; }
.shelf__board::after { content: ""; position: absolute; left: 4%; right: 4%; top: 100%; height: 14px; background: linear-gradient(rgba(0,0,0,.18), transparent); }
@media (max-width: 860px) { .shelf__row { justify-content: flex-start; } }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1.5px dashed var(--line-2); }
.steps__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--saffron); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; }
.steps li:nth-child(2) .steps__icon { background: var(--saffron); color: var(--ink); }
.steps li:nth-child(3) .steps__icon { background: var(--teal); color: #fff; }
.steps p { color: var(--ink-2); margin: 0; }
.steps--compact { grid-template-columns: 1fr; gap: 14px; margin: 26px 0; }
.steps--compact li, .steps--compact li + li { padding: 0 0 0 70px; border: 0; min-height: 54px; }
.steps--compact .steps__icon { position: absolute; left: 0; top: 0; width: 50px; height: 50px; font-size: 1.2rem; }
.steps--compact h3 { font-size: 1.15rem; margin-bottom: .2em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps li, .steps li + li { padding: 0; border: 0; } }

/* Grosses Zitat */
.bigquote { position: relative; color: #fff; background: #111 var(--img) center 35% / cover no-repeat; isolation: isolate; }
.bigquote::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,9,.82) 0%, rgba(10,10,9,.55) 55%, rgba(10,10,9,.2)); z-index: -1; }
.bigquote__in { min-height: clamp(380px, 52vw, 560px); display: flex; align-items: center; }
.bigquote blockquote { margin: 0; max-width: 820px; }
.bigquote p { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.05; font-weight: 600; font-style: italic; letter-spacing: -.02em; margin-bottom: 22px; transition: opacity .5s; }
.bigquote footer { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); transition: opacity .5s; }
.bigquote footer::before { content: "— "; }
.bigquote .is-fading { opacity: 0; }

/* Portal-Teaser */
.portal-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.portal-teaser__img { position: relative; }
.portal-teaser__img img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.stamp { position: absolute; right: -10px; bottom: -22px; width: 130px; height: 130px; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.15; display: grid; place-items: center; text-align: center; transform: rotate(-12deg); box-shadow: var(--shadow); border: 3px dashed rgba(255,255,255,.6); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 860px) { .portal-teaser { grid-template-columns: 1fr; } .stamp { right: 10px; width: 105px; height: 105px; font-size: .9rem; } }

/* Haltung */
.manifest__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: end; }
.manifest__big { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; margin: 0; font-weight: 500; }
.manifest__side p { color: #CFC8BA; }
.manifest__side strong { color: #fff; }
.manifest__motto { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--saffron) !important; margin: 0; }
@media (max-width: 860px) { .manifest__grid { grid-template-columns: 1fr; } }

/* ---------- Seitenkopf ---------- */
.pagehead { padding: clamp(30px, 5vw, 60px) 0 clamp(10px, 2vw, 20px); }
.pagehead__in { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.pagehead__img { width: clamp(120px, 16vw, 210px); aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); transform: rotate(3deg); box-shadow: var(--shadow-lg); }
.pagehead--slim { padding-bottom: 0; }
.pagehead h1 { margin-bottom: .25em; }
@media (max-width: 700px) { .pagehead__in { grid-template-columns: 1fr; } .pagehead__img { display: none; } }

/* ---------- Filter & Raster ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 30px; position: sticky; top: 76px; z-index: 5; padding: 12px 0; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); }
.filter { border: 1.5px solid var(--line-2); background: var(--card); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.filter span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.filter:hover { border-color: var(--ink); }
.filter.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter.is-on span { color: var(--saffron); }
.search { margin-left: auto; }
.search input { border: 1.5px solid var(--line-2); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B665D' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 12px center / 18px no-repeat; padding: 9px 14px 9px 38px; border-radius: 999px; width: 230px; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--ink); }
@media (max-width: 700px) { .search { margin-left: 0; width: 100%; } .search input { width: 100%; } .filters { position: static; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card__cover { position: relative; border: 0; padding: 26px 26px 0; cursor: zoom-in; background: color-mix(in srgb, var(--c) 26%, var(--paper)); display: flex; justify-content: center; overflow: hidden; }
.card__cover::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, transparent), transparent); }
.card__cover img { position: relative; width: 62%; aspect-ratio: 210/297; object-fit: cover; border-radius: 3px 3px 0 0; box-shadow: 0 -6px 24px -10px rgba(0,0,0,.45); transform: translateY(14px); transition: transform .35s cubic-bezier(.2,.8,.2,1); background: #fff; }
.card:hover .card__cover img { transform: translateY(4px) rotate(-1.5deg); }
.card__peek { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: .25s; box-shadow: var(--shadow); }
.card__peek svg { width: 17px; height: 17px; color: var(--saffron); }
.card__cover:hover .card__peek, .card__cover:focus-visible .card__peek { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .card__peek { opacity: 1; transform: translate(-50%, 0); } }
.card__body { padding: 22px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.tag--mv { background: color-mix(in srgb, var(--pink) 18%, var(--card)); }
.tag--tk { background: color-mix(in srgb, var(--teal) 20%, var(--card)); }
.tag--training { background: color-mix(in srgb, var(--saffron) 30%, var(--card)); }
.card__title { font-size: 1.4rem; margin-bottom: .2em; }
.card__sub { font-size: 14px; color: var(--muted); margin-bottom: .8em; }
.card__text { font-size: 15.5px; color: var(--ink-2); }
.card__points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 5px; font-size: 14.5px; }
.card__points li { padding-left: 22px; position: relative; }
.card__points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--c); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.card__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1.5px dashed var(--line); }
.card__price { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; display: grid; line-height: 1.1; white-space: nowrap; }
.card__price small { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.empty { padding: 30px; border: 1.5px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--muted); }

/* ---------- Leseprobe (Dialog) ---------- */
.li { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #16150F; color: #fff; display: none; }
.li[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; grid-template-columns: minmax(0,1fr); overflow: hidden; }
.li::backdrop { background: rgba(10,10,8,.85); }
.li__bar { display: flex; align-items: center; gap: 18px; padding: 12px var(--gutter); border-bottom: 1px solid rgba(255,255,255,.08); }
.li__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.li__title strong { font-family: var(--serif); font-size: 1.2rem; margin-left: 4px; }
.li__kind { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); background: var(--saffron); padding: 3px 8px; border-radius: 4px; vertical-align: 3px; }
.li__count { font-family: var(--mono); font-size: 13px; color: #BDB6A8; white-space: nowrap; }
.li__close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.li__close:hover { background: #fff; color: var(--ink); }
.li__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 18px 70px; min-height: 0; overflow: hidden; }
.li__book { display: flex; justify-content: center; align-items: center; max-width: 100%; max-height: 100%; perspective: 2200px; position: relative; }
.li__page { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 210px); background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.li__page--l { border-radius: 4px 0 0 4px; box-shadow: inset -18px 0 30px -18px rgba(0,0,0,.35), 0 30px 60px -20px rgba(0,0,0,.8); }
.li__page--r { border-radius: 0 4px 4px 0; box-shadow: inset 18px 0 30px -18px rgba(0,0,0,.25), 0 30px 60px -20px rgba(0,0,0,.8); }
.li__page--single { border-radius: 4px; }
.li__page--l, .li__page--r { max-width: 50%; }
.li__book.turn-next { animation: turnNext .45s cubic-bezier(.3,.7,.2,1); }
.li__book.turn-prev { animation: turnPrev .45s cubic-bezier(.3,.7,.2,1); }
@keyframes turnNext { from { opacity: .2; transform: translateX(40px) rotateY(-8deg); } }
@keyframes turnPrev { from { opacity: .2; transform: translateX(-40px) rotateY(8deg); } }
.li__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; z-index: 2; padding-bottom: 4px; }
.li__nav:hover { background: var(--saffron); color: var(--ink); }
.li__nav[disabled] { opacity: .15; pointer-events: none; }
.li__nav--prev { left: 12px; } .li__nav--next { right: 12px; }
.li__foot { display: flex; align-items: center; gap: 20px; padding: 10px var(--gutter) 14px; border-top: 1px solid rgba(255,255,255,.08); }
.li__thumbs { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
.li__thumbs button { flex: none; width: 40px; aspect-ratio: 210/297; padding: 0; border: 2px solid transparent; border-radius: 3px; background: #fff center / cover; cursor: pointer; opacity: .5; transition: .2s; }
.li__thumbs button.is-on { opacity: 1; border-color: var(--saffron); transform: translateY(-3px); }
.li__buy { display: flex; align-items: center; gap: 14px; }
.li__price { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) {
  .li__stage { padding: 10px 8px; }
  .li__nav { width: 42px; height: 42px; font-size: 28px; background: rgba(0,0,0,.45); }
  .li__nav--prev { left: 4px; } .li__nav--next { right: 4px; }
  .li__page { max-height: calc(100dvh - 250px); }
  .li__bar { gap: 10px; }
  .li__title strong { font-size: 1rem; }
  .li__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .li__buy { justify-content: space-between; }
  .li__count { display: none; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 14px 18px 14px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; z-index: 200; max-width: calc(100vw - 32px); transition: transform .35s cubic-bezier(.2,.8,.2,1); font-size: 15px; }
.toast.is-on { transform: translate(-50%, 0); }
.toast a { color: var(--saffron); font-weight: 700; white-space: nowrap; }

/* ---------- Warenkorb / Kasse ---------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 70px 1fr 84px 110px 40px; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 12px 12px; }
.line img { width: 70px; aspect-ratio: 210/297; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); }
.line__info { display: grid; min-width: 0; }
.line__info strong { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; }
.line__info span { font-size: 14px; color: var(--muted); }
.line__qty input { width: 76px; padding: 9px 10px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); text-align: center; }
.line__sum { font-weight: 700; text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .line { grid-template-columns: 56px 1fr 40px; } .line img { width: 56px; } .line__qty, .line__sum { grid-column: 2; } .line__sum { text-align: left; } .line form:last-child { grid-row: 1; grid-column: 3; } }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: sticky; top: 96px; display: grid; gap: 12px; }
.summary h2 { font-size: 1.4rem; margin: 0; }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary__total { border-top: 1.5px dashed var(--line-2); padding-top: 12px; margin-top: 4px; font-size: 1.15rem !important; }
.summary__total dt { color: var(--ink) !important; font-weight: 700; }
.summary__total dd { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; white-space: nowrap; }
.summary__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.summary__list li { display: flex; justify-content: space-between; gap: 12px; }
.summary__list b { white-space: nowrap; }
.summary .fineprint { margin: 0; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- Formulare ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); }
.form-card h2 { font-size: 1.35rem; margin: 6px 0 16px; }
.form-card h2:not(:first-of-type) { margin-top: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.fields .field { margin-bottom: 0; }
.field--full { grid-column: 1 / -1; }
.field--zip { max-width: 160px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field i { color: var(--swiss); font-style: normal; }
.field input, .field select, .field textarea, .toolbar select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--paper); font-size: 16px; transition: border-color .15s, background .15s; }
.field textarea { resize: vertical; min-height: 48px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field.has-error input, .field.has-error select { border-color: var(--no); background: #FFF6F5; }
.field em, .err { font-size: 13.5px; color: var(--no); font-style: normal; }
.field input:disabled { color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check.has-error { color: var(--no); }
.check--inline { margin: 0; font-size: 14px; align-items: center; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.inline-form input { flex: 1 1 220px; padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 16px; }
.stack { display: grid; gap: 4px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } .field--zip { max-width: none; } }

.flashes { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 13px 16px; border-radius: 12px; font-size: 15px; border: 1px solid; margin-bottom: 14px; }
.flashes .flash { margin: 0; }
.flash--ok { background: #EAF6EE; border-color: #B9DEC6; color: #145C3A; }
.flash--error { background: #FDEDEC; border-color: #F2C0BC; color: #8C1F1C; }
.flash--info { background: #FFF6DC; border-color: #F0D78A; color: #6A4D00; }

/* ---------- Bald / leer / Danke ---------- */
.soon { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 50px); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 50px); }
.soon__badge { width: 150px; height: 150px; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.1; transform: rotate(-10deg); border: 3px dashed rgba(27,26,23,.35); }
.soon--empty .soon__badge { background: var(--mint); }
@media (max-width: 640px) { .soon { grid-template-columns: 1fr; } .soon__badge { width: 110px; height: 110px; font-size: 1.05rem; } }
.thanks { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.thanks > img { border-radius: var(--r-lg); transform: rotate(-3deg); box-shadow: var(--shadow-lg); }
@media (max-width: 760px) { .thanks { grid-template-columns: 1fr; } .thanks > img { max-width: 200px; } }

/* ---------- Kontakt / Text ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.contact__info { display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
.contact__info img { border-radius: var(--r); transform: rotate(-3deg); box-shadow: var(--shadow); }
.biglink { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__info { grid-template-columns: 110px 1fr; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Anmeldung ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 76px); }
.auth__img { background: #222 var(--img) center / cover; position: relative; display: flex; align-items: flex-end; padding: 40px; }
.auth__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.7)); }
.auth__quote { position: relative; color: #fff; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; max-width: 22ch; margin: 0; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 60px) var(--gutter); }
.auth__box { width: 100%; max-width: 480px; }
.auth__box h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.auth__lead { color: var(--ink-2); margin-bottom: 24px; }
.auth__forgot { text-align: right; margin: -6px 0 14px; font-size: 14.5px; }
.auth__alt { text-align: center; margin-top: 18px; font-size: 15px; color: var(--muted); }
.auth__alt a { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__img { min-height: 180px; padding: 22px; } .auth__quote { font-size: 1.2rem; } }

/* ---------- Portal ---------- */
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; display: grid; min-width: 120px; }
.stats b { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
.stats span { font-size: 13px; color: var(--muted); }
.portal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
@media (max-width: 960px) { .portal-grid { grid-template-columns: 1fr; } .pagehead--portal .pagehead__in { grid-template-columns: 1fr; } }
.exams { display: grid; gap: 14px; }
.exam { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; border-left: 6px solid var(--saffron); }
.exam:nth-child(3n+2) { border-left-color: var(--teal); }
.exam:nth-child(3n+3) { border-left-color: var(--pink); }
.exam h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.exam p { color: var(--ink-2); font-size: 15.5px; }
.exam__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); align-items: center; }
.exam__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.result-pill { font-size: 14px; text-decoration: none; background: var(--paper-2); padding: 7px 12px; border-radius: 999px; }
.results { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.results a { display: flex; gap: 12px; align-items: center; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.results a:hover { border-color: var(--ink); }
.results strong { display: block; font-size: 15px; line-height: 1.25; }
.results small { color: var(--muted); font-size: 12.5px; }
.meter { --p: 0; flex: none; width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--paper-2) 0); display: inline-grid; place-items: center; position: relative; }
.meter::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.meter b { position: relative; font-size: 12px; }
.meter--sm { width: 38px; height: 38px; }
.meter--sm::before { inset: 4px; }
.meter--sm b { font-size: 11px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-card h3 { font-size: 1.15rem; }
.side-card .btn { margin: 4px 4px 0 0; }

/* Prüfung lösen */
.exam-layout { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start; }
.questions { display: grid; gap: 18px; }
.question { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg); padding: 22px 24px 24px; margin: 0; min-width: 0; }
.question legend { display: contents; }
.question__no { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--saffron); font-family: var(--serif); font-weight: 700; margin-right: 10px; padding: 0 6px; }
.question__pts { float: right; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--paper-2); padding: 4px 9px; border-radius: 999px; margin-top: 4px; }
.question__prompt { font-size: 1.12rem; font-weight: 550; margin: 14px 0 14px; }
.question__hint { font-size: 13px; color: var(--muted); margin: -6px 0 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.question textarea { width: 100%; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 16px; line-height: 1.55; resize: vertical; }
.question textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--paper); }
.option:hover { border-color: var(--ink-2); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__key { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--card); }
.option:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--saffron) 16%, var(--card)); }
.option:has(input:checked) .option__key { background: var(--ink); color: var(--saffron); border-color: var(--ink); }
.option:has(input:focus-visible) { outline: 3px solid var(--saffron); outline-offset: 2px; }
.exam-side { position: sticky; top: 96px; }
.exam-side__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; }
.timer { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.timer span { font-size: 13px; opacity: .7; }
.timer b { font-family: var(--mono); font-size: 1.6rem; color: var(--saffron); }
.timer.is-low { background: var(--no); }
.timer.is-low b { color: #fff; }
.progress { display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: var(--muted); }
.progress span { flex: 1; }
.progress b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dots a { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 13px; text-decoration: none; font-family: var(--mono); }
.dots a.is-done { background: var(--teal); border-color: var(--teal); color: #fff; }
@media (max-width: 900px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-side { position: sticky; bottom: 0; top: auto; order: 2; margin: 0 calc(var(--gutter) * -1); }
  .exam-side__box { border-radius: 18px 18px 0 0; grid-template-columns: auto 1fr auto; align-items: center; padding: 12px var(--gutter); box-shadow: 0 -10px 30px -10px rgba(0,0,0,.25); }
  .exam-side .dots, .exam-side .fineprint { display: none; }
  .timer { padding: 8px 12px; gap: 10px; } .timer b { font-size: 1.15rem; }
}

/* Resultat */
.result-head { display: flex; gap: clamp(20px, 4vw, 44px); align-items: center; }
.result-head__ring { --p: 0; flex: none; width: clamp(120px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--saffron) calc(var(--p) * 1%), var(--paper-2) 0); display: grid; place-items: center; position: relative; }
.result-head__ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--paper); }
.result-head__ring b { position: relative; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.result-head__ring small { font-size: .45em; }
.result-head--admin { margin-bottom: 24px; }
.result-head--admin .result-head__ring { width: 110px; }
.result-head--admin .result-head__ring b { font-size: 1.9rem; }
@media (max-width: 640px) { .result-head { flex-direction: column; align-items: flex-start; } }
.feedback { background: color-mix(in srgb, var(--saffron) 18%, var(--card)); border: 1px solid color-mix(in srgb, var(--saffron) 50%, transparent); border-radius: var(--r); padding: 14px 16px; margin-top: 14px; font-size: 15px; }
.review { display: grid; gap: 16px; }
.rq { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--line-2); border-radius: var(--r-lg); padding: 20px 24px; }
.rq--ok { border-left-color: var(--ok); } .rq--part { border-left-color: var(--warn); } .rq--no { border-left-color: var(--no); } .rq--open { border-left-color: var(--lilac); }
.rq header { display: flex; justify-content: space-between; align-items: center; }
.rq__pts { font-family: var(--mono); font-size: 13px; background: var(--paper-2); padding: 4px 10px; border-radius: 999px; }
.rq--ok .rq__pts { background: #E3F4EA; color: var(--ok); } .rq--no .rq__pts { background: #FBE7E6; color: var(--no); }
.rq__opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rq__opts li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 15px; }
.rq__opts li em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.rq__opts li.is-correct { border-color: var(--ok); background: #EEF8F2; }
.rq__opts li.is-correct .option__key { background: var(--ok); color: #fff; border-color: var(--ok); }
.rq__opts li.is-given:not(.is-correct) { border-color: var(--no); background: #FDF0EF; }
.rq__opts li.is-given:not(.is-correct) .option__key { background: var(--no); color: #fff; border-color: var(--no); }
.rq__answer { background: var(--paper); border-radius: 10px; padding: 12px 14px; font-size: 15.5px; }
.rq__answer small, .rq__expl b { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.rq__expl { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--teal) 10%, var(--card)); font-size: 15px; }
.rq__grade { font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.rq__grade input { width: 70px; padding: 6px 8px; border: 1.5px solid var(--lilac); border-radius: 8px; text-align: center; }

/* ---------- Admin ---------- */
.admin-bar { background: var(--ink); color: var(--paper); }
.admin-bar__in { display: flex; align-items: center; gap: 20px; min-height: 52px; overflow-x: auto; }
.admin-bar__title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); white-space: nowrap; }
.admin-bar nav { display: flex; gap: 2px; }
.admin-bar nav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; white-space: nowrap; color: #D9D2C4; }
.admin-bar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-bar nav a.is-active { background: var(--paper); color: var(--ink); }
.admin-bar nav b { background: var(--swiss); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 999px; margin-left: 3px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; text-decoration: none; display: grid; gap: 2px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--c); }
.kpi span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.kpi b { font-family: var(--serif); font-size: 2.4rem; line-height: 1.05; }
.kpi b.kpi__money { font-size: 1.7rem; white-space: nowrap; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .admin-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; min-width: 0; }
.panel--flush { padding: 0; overflow-x: auto; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel__head h2 { font-size: 1.25rem; margin: 0; }
.panel__head a { font-size: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; padding: 10px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table--wide th:first-child, .table--wide td:first-child { padding-left: 20px; }
.table--wide th:last-child, .table--wide td:last-child { padding-right: 20px; }
.table tr.is-link { cursor: pointer; }
.table tr.is-link:hover td { background: var(--paper); }
.table__total td { font-weight: 700; border-top: 1.5px solid var(--ink); }
.badge { display: inline-block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge--ok, .badge--bezahlt { background: #E3F4EA; color: var(--ok); }
.badge--warn, .badge--neu { background: #FFF1D1; color: #8A5600; }
.badge--no, .badge--storniert { background: #FBE7E6; color: var(--no); }
.badge--versendet { background: #E4ECFB; color: #24479F; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar h1 { margin: 0 auto 0 0; }
.toolbar__search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar__search input[type=search] { padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); width: 240px; }
.toolbar select { padding: 8px 12px; width: auto; border-radius: 999px; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; }
.seg a { text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.seg a.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.actions { text-align: right; width: 1%; }
.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 8px; letter-spacing: 1px; color: var(--muted); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--paper-2); color: var(--ink); }
.menu > div { position: absolute; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 20; min-width: 210px; display: grid; }
.menu button { width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.menu button:hover { background: var(--paper-2); }
.menu button.danger, .link-danger { color: var(--no); }
.link-danger { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: 14px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.bars i { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--teal) var(--w), var(--paper-2) var(--w)); }
.order { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } }
.address { font-size: 15.5px; line-height: 1.5; }
.exam-admin { display: grid; gap: 12px; }
.exam-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.exam-row h2 { margin: 6px 0 4px; }
.exam-row p { margin: 0; font-size: 14px; }
.exam-row__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.exam-editor { display: grid; gap: 16px; }
.qlist { display: grid; gap: 14px; }
.qedit { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: var(--r-lg); padding: 18px 20px 6px; margin: 0; min-width: 0; }
.qedit__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.qedit__head select { padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); }
.qedit__pts { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.qedit__pts input { width: 64px; padding: 7px 8px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); text-align: center; }
.qedit__tools { margin-left: auto; display: flex; gap: 4px; }
.qedit__tools button { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; font-size: 16px; }
.qedit__tools button:hover { border-color: var(--ink); }
.qedit__tools button[data-qdel]:hover { border-color: var(--no); color: var(--no); }
.qedit textarea { font-family: var(--sans); }
.editor-bar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); padding: 10px 12px 10px 12px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 10; }
.editor-bar .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.4); }
.editor-bar .btn--ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.editor-bar .muted { color: #BDB6A8; flex: 1; font-size: 14px; }
.editor-bar .btn--accent { border-color: var(--saffron); }

/* ---------- Fuss ---------- */
.site-foot { background: var(--ink); color: #CFC8BA; margin-top: 0; }
.site-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-block: 54px 34px; }
.site-foot .logo { color: var(--paper); }
.site-foot .logo__since, .site-foot .logo__tag { color: #A39C8E; border-color: rgba(255,255,255,.15); }
.site-foot__claim { margin-top: 18px; font-size: 15px; max-width: 30ch; }
.site-foot h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--saffron); margin-bottom: 14px; }
.site-foot p { font-size: 15px; line-height: 1.85; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot__base { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px 26px; font-size: 13px; color: #8F887A; }
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ---------- Scroll-Einblendung ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media print { .site-head, .site-foot, .ticker, .exam-side, .admin-bar { display: none !important; } body { background: #fff; } }

/* ---------- Unter-Register ---------- */
.subtabs { display: inline-flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 999px; margin-bottom: 26px; flex-wrap: wrap; }
.subtabs a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.subtabs a:hover { color: var(--ink); }
.subtabs a.is-on { background: var(--ink); color: var(--paper); }
.subtabs small { font-family: var(--mono); font-size: 11px; opacity: .7; margin-left: 3px; }
.subtabs a.is-on small { color: var(--saffron); opacity: 1; }

/* ---------- Hero mit Film ---------- */
.hero__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: end; }
.hero__top .hero__title { margin-bottom: 0; }
.hero__side .hero__cta { margin-top: 22px; }
.stage { position: relative; margin-top: clamp(30px, 4vw, 54px); padding: clamp(14px, 2.4vw, 34px) clamp(14px, 14vw, 190px); border-radius: var(--r-lg); background-color: #E9DFCC; background-image: radial-gradient(circle, rgba(27,26,23,.18) 2.2px, transparent 2.6px); background-size: 26px 26px; background-position: 13px 13px; box-shadow: inset 0 0 0 1px rgba(27,26,23,.06), var(--shadow-lg); }
.film { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink); aspect-ratio: 16/9; box-shadow: 0 30px 50px -24px rgba(0,0,0,.6), 0 0 0 6px #fff; transform: rotate(-.6deg); z-index: 2; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__play { position: absolute; inset: 0; border: 0; padding: 0; background: linear-gradient(rgba(27,26,23,0) 55%, rgba(27,26,23,.45)); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.film__btn { width: clamp(70px, 9vw, 108px); height: clamp(70px, 9vw, 108px); border-radius: 50%; background: var(--saffron); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(245,179,0,.28), 0 16px 30px -10px rgba(0,0,0,.5); transition: transform .25s cubic-bezier(.2,.8,.2,1); animation: breathe 2.4s ease-in-out infinite; }
.film__btn svg { width: 46%; height: 46%; margin-left: 8%; }
.film__play:hover .film__btn { transform: scale(1.08); }
.film__label { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--card); font-weight: 700; font-size: 14.5px; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.film.is-playing .film__play { display: none; }
@keyframes breathe { 50% { box-shadow: 0 0 0 18px rgba(245,179,0,.12), 0 16px 30px -10px rgba(0,0,0,.5); } }
.stage__tile { position: absolute; width: clamp(90px, 10.5vw, 140px); aspect-ratio: 4/5; z-index: 1; }
.stage__tile--1 { left: 26px; top: 34px; --rot: -5deg; }
.stage__tile--2 { left: 40px; top: 46%; --rot: 4deg; }
.stage__tile--3 { left: 22px; bottom: 26px; --rot: -2deg; display: none; }
.stage__tile--4 { right: 26px; top: 30px; --rot: 5deg; }
.stage__tile--5 { right: 38px; top: 44%; --rot: -4deg; }
.stage__tile--6 { right: 24px; bottom: 26px; --rot: 3deg; display: none; }
.stage__label--a { top: -12px; left: 20%; transform: rotate(-4deg); }
.stage__label--b { top: -12px; right: 22%; transform: rotate(4deg); background: var(--saffron); }
.stage__label--c { bottom: -12px; left: 46%; transform: rotate(-2deg); background: var(--ink); color: var(--paper); }
.hero__facts { justify-content: center; text-align: center; border-top: 0; }
@media (min-width: 1200px) { .stage__tile--3, .stage__tile--6 { display: block; } .stage__tile--2 { top: 38%; } .stage__tile--5 { top: 37%; } }
@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; }
  .stage { padding: 14px; }
  .stage__tile { display: none !important; }
  .film { transform: none; }
  .film__label { font-size: 13px; bottom: 10px; }
  .hero__facts { justify-content: flex-start; text-align: left; }
}

/* ---------- Training: Script-Register ---------- */
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 22px 18px; margin: 18px 0 30px; }
.sbook { display: grid; gap: 6px; text-decoration: none; color: var(--ink); padding: 14px 14px 16px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--c) 18%, var(--card)); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; min-width: 0; }
.sbook:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sbook img { width: 100%; aspect-ratio: 210/297; object-fit: cover; border-radius: 3px; box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); background: #fff; margin-bottom: 6px; }
.sbook__t { font-family: var(--serif); font-weight: 650; font-size: 1.05rem; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.sbook__n { font-size: 13px; color: var(--muted); }
.sbook__bar { height: 6px; border-radius: 99px; background: rgba(27,26,23,.1); overflow: hidden; margin-top: 2px; }
.sbook__bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.resume { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--card); border: 1.5px solid var(--saffron); border-radius: var(--r); padding: 12px 16px; }
.resume > div { flex: 1; min-width: 200px; }
.resume__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 5px rgba(245,179,0,.25); animation: breathe 2s infinite; }
.side-card--row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.side-card--row h3 { margin: 0; }
.side-card--row p { margin: 0; }
.script-head { display: flex; gap: 26px; align-items: center; }
.script-head img { width: 120px; flex: none; aspect-ratio: 210/297; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 35%, var(--card)), var(--shadow); transform: rotate(-3deg); }
@media (max-width: 600px) { .script-head img { width: 80px; } .script-head { gap: 16px; } }
.level-head { display: flex; gap: 12px; align-items: center; margin: 28px 0 12px; font-size: 14.5px; color: var(--muted); flex-wrap: wrap; }
.level-head:first-child { margin-top: 0; }
.lvl { display: inline-block; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; vertical-align: middle; font-weight: 500; }
h1 .lvl { font-size: 13px; vertical-align: .45em; margin-right: 6px; }
.lvl--lost { background: var(--mint); color: var(--ink); }
.lvl--stabil { background: #CFE3F5; color: var(--ink); }
.lvl--maschine { background: var(--saffron); color: var(--ink); }
.lvl--endgegner { background: var(--ink); color: #FF4D4D; }
.exam--einstieg { border-left-color: var(--mint) !important; }
.exam--intermediate { border-left-color: var(--saffron) !important; }
.exam--profi { border-left-color: var(--ink) !important; }
.exams, .exam + .exam { margin-top: 12px; }
.result-pill--open { background: #FFF1D1; }

/* ---------- Prüfung ---------- */
.startbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); max-width: 820px; }
.rules { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 16px; align-items: center; }
.rules b { flex: none; width: 70px; height: 54px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; }
.chapter-head { font-size: 1.25rem; margin: 18px 0 -4px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 12px; position: sticky; top: 84px; z-index: 3; }
.chapter-head:first-child { margin-top: 0; }
.tip { margin-top: 12px; font-size: 14.5px; }
.tip summary { cursor: pointer; color: var(--teal); font-weight: 600; width: max-content; }
.tip p { margin: 8px 0 0; padding: 10px 12px; background: color-mix(in srgb, var(--mint) 18%, var(--card)); border-radius: 10px; }
.saved { font-size: 12.5px; color: var(--muted); text-align: center; }
.link-reset { background: none; border: 0; padding: 4px; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-reset:hover { color: var(--no); }
.timer.is-paused { background: var(--mint); color: var(--ink); }
.timer.is-paused b { color: var(--ink); }
.pause-veil { position: fixed; inset: 0; z-index: 60; background: rgba(246,241,232,.92); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; }
.pause-veil[hidden] { display: none; }
.pause-veil__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; text-align: center; max-width: 420px; box-shadow: var(--shadow-lg); }
.result-head__ring b { display: grid; justify-items: center; }
.result-head__ring small { font-family: var(--mono); font-size: .26em; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
@media (max-width: 900px) { .exam-side .link-reset, .exam-side .saved { display: none; } .chapter-head { top: 76px; font-size: 1.05rem; } }

/* ---------- Cockpit ---------- */
.sgroup { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 10px; }
.sgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 18px; flex-wrap: wrap; }
.sgroup > summary::-webkit-details-marker { display: none; }
.sgroup > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.sgroup[open] > summary::after { transform: rotate(180deg); }
.sgroup > summary img { width: 40px; height: 57px; object-fit: cover; border-radius: 2px; box-shadow: 0 3px 8px -3px rgba(0,0,0,.4); }
.sgroup > summary strong { font-family: var(--serif); font-size: 1.15rem; }
.sgroup > summary .muted { font-size: 14px; }
.sgroup__bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; }
.sgroup .exam-row { margin: 0 12px 10px; background: var(--paper); }
.menu__a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.menu__a:hover { background: var(--paper-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 22px; margin: 12px 0; }
.facts--row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px; }
.facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.note { display: inline-block; min-width: 40px; text-align: center; padding: 2px 8px; border-radius: 6px; font-family: var(--serif); }
.note--ok { background: #E3F4EA; color: var(--ok); }
.note--no { background: #FBE7E6; color: var(--no); }
.prog { height: 7px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-bottom: 4px; }
.prog i { display: block; height: 100%; background: var(--teal); }
.matrix th.c, .matrix td.c { text-align: center; }
.cell { display: inline-grid; justify-items: center; min-width: 64px; padding: 5px 8px; border-radius: 8px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.1; position: relative; }
.cell small { font-family: var(--sans); font-weight: 500; font-size: 11px; opacity: .8; }
.cell i { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--saffron); color: var(--ink); font-style: normal; font-size: 11px; display: grid; place-items: center; }
.cell--ok { background: #E3F4EA; color: var(--ok); }
.cell--no { background: #FBE7E6; color: var(--no); }
.cell--run { background: #FFF1D1; color: #8A5600; font-family: var(--sans); font-size: 13px; }
.cell--none { color: var(--line-2); }
.scale { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 18px; }
.scale summary { cursor: pointer; font-weight: 600; }
.scale__t { max-width: 320px; margin-top: 8px; }
.chapter-head--flat { position: static; margin: 10px 0 0; font-size: 1.05rem; }

/* Mobile-Korrekturen Training */
.exam-layout > *, .questions, .question, .script-head > div { min-width: 0; }
.question__prompt, .option span, .chapter-head { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 600px) {
  .script-head { flex-direction: column; align-items: flex-start; }
  .script-head h1 { font-size: 2.1rem; }
  .chapter-head { font-size: .98rem; top: 70px; }
  h1 .lvl { vertical-align: .2em; }
  .pagehead--exam h1 { font-size: 2rem; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .stats div { min-width: 0; }
}
@media (max-width: 900px) {
  .exam-side__box { grid-template-columns: auto auto 1fr; gap: 8px; }
  .exam-side .progress { display: none; }
  .exam-side [data-pause] { width: auto; padding: 8px 10px; }
  .exam-side .btn--accent { min-width: 0; white-space: normal; }
}

/* ---------- Werkzeugwand ---------- */
.toolwall { --wall: #E9DFCC; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; }
.toolwall__board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; padding: 26px 22px 18px; border-radius: var(--r-lg); background-color: var(--wall); background-image: radial-gradient(circle, rgba(27,26,23,.2) 2.2px, transparent 2.6px); background-size: 26px 26px; background-position: 13px 13px; box-shadow: inset 0 0 0 1px rgba(27,26,23,.06), inset 0 -40px 60px -40px rgba(27,26,23,.18), var(--shadow-lg); position: relative; }
.toolwall__board::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -14px; height: 18px; border-radius: 4px; background: linear-gradient(#B98552, #8A5A32); box-shadow: 0 10px 18px -10px rgba(0,0,0,.6); }
.tool { position: relative; border: 0; background: none; padding: 18px 4px 34px; cursor: pointer; height: 270px; display: flex; align-items: center; justify-content: center; border-radius: 14px; transition: background .2s; -webkit-tap-highlight-color: transparent; }
.tool:focus-visible { background: rgba(255,255,255,.35); outline: none; border-radius: 12px; }
.tool svg { height: 210px; width: 100%; overflow: visible; filter: drop-shadow(0 10px 8px rgba(0,0,0,.25)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.tool:hover svg { transform: translateY(-4px) rotate(-2deg); }
.tool__peg { position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, #6B665D 25% 100%); box-shadow: 0 2px 3px rgba(0,0,0,.4); z-index: 2; }
.tool__tag { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%) rotate(-2deg); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; background: var(--card); padding: 3px 8px; border-radius: 3px; box-shadow: 0 3px 8px -3px rgba(0,0,0,.35); white-space: nowrap; }
.tool.is-seen .tool__tag { background: var(--saffron); }
.tool--ruler { grid-column: span 3; height: 180px; }
.tool--ruler svg { height: 120px; }
.tool--pencil { height: 180px; }
.tool--pencil svg { height: 130px; }
.toolwall__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); min-height: 260px; position: relative; }
.toolwall__card::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, var(--swiss) 22% 100%); box-shadow: 0 3px 4px rgba(0,0,0,.35); }
.toolwall__card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); transition: opacity .25s, transform .25s; }
.toolwall__card p:not(.eyebrow) { color: var(--ink-2); transition: opacity .25s; }
.toolwall__card.is-swap h3, .toolwall__card.is-swap p:not(.eyebrow) { opacity: 0; transform: translateY(6px); }
.toolwall__dots { display: flex; gap: 6px; margin-top: 14px; }
.toolwall__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background .3s; }
.toolwall__dots span.is-on { background: var(--saffron); }
@media (max-width: 900px) { .toolwall { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .toolwall__board { grid-template-columns: repeat(2, 1fr); padding: 20px 12px 14px; } .tool { height: 200px; } .tool svg { height: 150px; } .tool--ruler { grid-column: span 2; height: 130px; } .tool--ruler svg { height: 80px; } .tool--pencil { grid-column: span 2; height: 160px; } .tool--pencil svg { height: 120px; } }

/* Bewegungen */
.t-swing { transform-origin: 70px 300px; }
.tool--hammer.is-go .t-swing { animation: swing .8s cubic-bezier(.3,.6,.3,1); }
@keyframes swing { 30% { transform: rotate(-40deg); } 55% { transform: rotate(14deg); } 72% { transform: rotate(-5deg); } 100% { transform: none; } }
.t-spark { opacity: 0; transform-origin: 10px 20px; }
.tool--hammer.is-go .t-spark { animation: spark .8s; }
@keyframes spark { 0%, 50% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.6); } }
.t-spin { transform-origin: 70px 160px; }
.tool--wrench.is-go .t-spin { animation: spin 1s cubic-bezier(.5,0,.2,1); }
@keyframes spin { to { transform: rotate(360deg); } }
.r-child { transform: translate(58px, 0) rotate(180deg); transition: transform .5s cubic-bezier(.3,.7,.2,1); transition-delay: calc((5 - var(--i)) * 70ms); }
.tool--ruler.is-open .r-child { transform: translate(58px, 0) rotate(0deg); transition-delay: calc(var(--i) * 90ms); }
.r0 { transform: translate(120px, 30px); transition: transform .5s; }
.tool--ruler.is-open .r0 { transform: translate(0, 30px); }
.t-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.tool--pencil.is-go .t-line { animation: draw .9s .15s ease forwards; }
.tool--pencil.is-done .t-line { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tool--pencil.is-go .t-write { animation: write 1.1s ease; }
@keyframes write { 0% { transform: none; } 20% { transform: translate(-46px, 70px); } 45% { transform: translate(-26px, 84px); } 80% { transform: translate(20px, 38px); } 100% { transform: none; } }
.t-twist { transform-origin: 70px 160px; }
.t-grip { transform-origin: 70px 75px; }
.tool--screwdriver.is-go .t-grip { animation: grip .24s linear 4; }
@keyframes grip { 50% { transform: scaleX(-1); } }
.tool--screwdriver.is-go .t-twist { animation: push 1s ease; }
@keyframes push { 20%, 80% { transform: translateY(6px); } }
.tool--screwdriver.is-go .t-screw { animation: spin .96s linear; }
.t-paint { stroke-dasharray: 100; stroke-dashoffset: 100; }
.tool--brush.is-go .t-paint { animation: draw .8s .2s ease forwards; }
.tool--brush.is-done .t-paint { stroke-dashoffset: 0; }
.tool--brush.is-go .t-sweep { animation: sweep 1s ease; }
@keyframes sweep { 0% { transform: none; } 25% { transform: translate(-70px, 60px) rotate(-8deg); } 75% { transform: translate(60px, 50px) rotate(8deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tool.is-go * { animation-duration: .01s !important; } .r-child, .r0 { transition: none; } }

/* ---------- Über uns ---------- */
.about-head__in { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; }
.portrait { margin: 0; position: relative; background: var(--card); padding: 14px 14px 46px; border-radius: 6px; box-shadow: var(--shadow-lg); transform: rotate(-2.5deg); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.portrait__pin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, var(--swiss) 22% 100%); box-shadow: 0 3px 4px rgba(0,0,0,.35); z-index: 2; }
@media (max-width: 760px) { .about-head__in { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }
.trio__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--c) 22%, var(--card)); color: var(--ink); margin-bottom: 22px; }
.trio__icon svg { width: 32px; height: 32px; }
.mottos { text-align: center; }
.motto { margin: 10px 0 0; }
.motto p { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.08; margin: 0; }
.motto--small p { font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--saffron); margin-top: 22px; }
.about-close { max-width: 820px; }
.founder { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--paper); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 14px; transition: background .2s; }
.founder:hover { background: rgba(255,255,255,.12); }
.founder img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--saffron); }
.founder span { display: grid; gap: 2px; }
.founder strong { font-family: var(--serif); font-size: 1.3rem; }
.founder small { color: #CFC8BA; font-size: 14px; }
.founder em { font-style: normal; color: var(--saffron); font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.filters__note { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 60ch; }

/* ================= Lernwerkstatt (Startseite) ================= */
.ws { margin-top: clamp(26px, 4vw, 50px); }
.ws__scroll { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(27,26,23,.08); }
.ws__scene { position: relative; aspect-ratio: 1200 / 680; container-type: inline-size; background: #E7D6B8; user-select: none; -webkit-user-select: none; }
.ws__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ws__cone { opacity: 0; transition: opacity .6s ease; }
.ws.is-lit .ws__cone { opacity: 1; }
.ws__sign { position: absolute; left: 21%; top: 1.4%; transform: rotate(-1.5deg); background: #1B1A17; color: #F5B300; font: 700 1.55cqw/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; padding: 1cqw 1.8cqw .9cqw 2.1cqw; border-radius: .5cqw; box-shadow: 0 1cqw 1.6cqw -.8cqw rgba(0,0,0,.6); z-index: 1; }
.ws__sign::before, .ws__sign::after { content: ""; position: absolute; top: .5cqw; width: .6cqw; height: .6cqw; border-radius: 50%; background: #8D959D; }
.ws__sign::before { left: .6cqw; } .ws__sign::after { right: .6cqw; }
.ws__plaque { position: absolute; display: flex; white-space: nowrap; align-items: center; justify-content: center; gap: .5cqw; background: #F5B300; color: #1B1A17; font: 700 1.05cqw/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: .4cqw; box-shadow: 0 .6cqw 1cqw -.6cqw rgba(0,0,0,.5); z-index: 1; }
.ws__plaque b { font: 700 1.9cqw/1 var(--serif); letter-spacing: -.02em; }

.ws-tool, .ws-tv, .ws-book { position: absolute; border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; }
.ws-tool svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 .5cqw .5cqw rgba(0,0,0,.28)); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.ws-tool:hover svg, .ws-tool:focus-visible svg { transform: translateY(-.4cqw) scale(1.03); }
.ws-tool:focus-visible, .ws-tv:focus-visible, .ws-book:focus-visible { outline: 3px solid var(--swiss); outline-offset: 3px; border-radius: 6px; }
.ws-tool::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1cqw; height: 1cqw; margin: -.5cqw 0 0 -.5cqw; border-radius: 50%; background: rgba(245,179,0,.95); border: .18cqw solid #fff; box-shadow: 0 0 0 0 rgba(245,179,0,.6); animation: wsPing 2.4s ease-out infinite; animation-delay: calc(var(--k, 0) * .35s); pointer-events: none; opacity: .9; }
.ws-tool.is-found::after { display: none; }
@keyframes wsPing { 0% { box-shadow: 0 0 0 0 rgba(245,179,0,.6); } 70%, 100% { box-shadow: 0 0 0 1.6cqw rgba(245,179,0,0); } }
.ws-tool svg g, .ws-tool svg path, .ws-tool svg circle { transform-box: view-box; }

/* Handlungen */
.ws-tool.is-go .a-swing { transform-origin: 40px 228px; animation: wsSwing .9s cubic-bezier(.3,.7,.3,1); }
@keyframes wsSwing { 0% { transform: rotate(0); } 35% { transform: rotate(-38deg); } 55% { transform: rotate(14deg); } 75% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.a-spark { opacity: 0; } .ws-tool.is-go .a-spark { animation: wsFlash .9s .45s; }
@keyframes wsFlash { 0%, 100% { opacity: 0; transform: scale(.6); } 20% { opacity: 1; transform: scale(1.2); } }
.ws-tool.is-go .a-saw { animation: wsSaw .32s ease-in-out 4; }
@keyframes wsSaw { 50% { transform: translateX(-22px); } }
.a-dust circle { opacity: 0; }
.ws-tool.is-go .a-dust circle { animation: wsDust 1.1s ease-out calc(var(--d) * 70ms) 2; }
@keyframes wsDust { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--d) * 2px - 6px), 40px); } }
.ws-tool.is-go .a-twist { transform-origin: 22px 120px; animation: wsTwist .38s ease-in-out 4; }
@keyframes wsTwist { 50% { transform: scaleX(.35); } }
.ws-tool.is-go .a-grip { animation: wsGrip .19s linear 8; }
@keyframes wsGrip { to { transform: translateX(8px); } }
.ws-tool.is-go .a-spin { transform-origin: 70px 168px; animation: wsSpin 1s cubic-bezier(.4,1.6,.4,1); }
@keyframes wsSpin { to { transform: rotate(360deg); } }
.ws-tool.is-go .a-jaw-l { transform-origin: 35px 70px; animation: wsJawL .5s ease-in-out 2; }
.ws-tool.is-go .a-jaw-r { transform-origin: 35px 70px; animation: wsJawR .5s ease-in-out 2; }
@keyframes wsJawL { 50% { transform: rotate(-11deg); } } @keyframes wsJawR { 50% { transform: rotate(11deg); } }
.a-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.ws-tool.is-done .a-line { stroke-dashoffset: 0; transition: stroke-dashoffset .6s .5s ease; }
.ws-tool.is-go .a-write { animation: wsWrite 1s ease-in-out; }
@keyframes wsWrite { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-30px, 34px); } 50% { transform: translate(-20px, 44px); } 70% { transform: translate(-6px, 26px); } }
.a-paint { stroke-dasharray: 100; stroke-dashoffset: 100; }
.ws-tool.is-done .a-paint { stroke-dashoffset: 0; transition: stroke-dashoffset .7s .25s ease; }
.ws-tool.is-go .a-sweep { transform-origin: 35px 10px; animation: wsSweep .9s ease-in-out; }
@keyframes wsSweep { 25% { transform: rotate(18deg); } 60% { transform: rotate(-16deg); } }
.ws-tool.is-go .a-tilt { transform-origin: 115px 22px; animation: wsTilt 1.3s ease-in-out; }
@keyframes wsTilt { 25% { transform: rotate(-5deg); } 55% { transform: rotate(3deg); } 80% { transform: rotate(-1deg); } }
.ws-tool.is-go .a-bubble { animation: wsBubble 1.3s ease-in-out; }
@keyframes wsBubble { 25% { transform: translateX(-16px); } 55% { transform: translateX(11px); } 80% { transform: translateX(-3px); } }
.ws-tool--meter .r-child { transform: translate(97px, 0) rotate(180deg); transition: transform .5s cubic-bezier(.3,.7,.2,1); transition-delay: calc((5 - var(--i)) * 60ms); }
.ws-tool--meter.is-open .r-child { transform: translate(97px, 0) rotate(0deg); transition-delay: calc(var(--i) * 110ms); }
.ws-tool--meter .r0 { transform: translate(0, 0); }
.ws-tool--meter .r-child text { transition: opacity .3s; } .ws-tool--meter:not(.is-open) .r-child text { opacity: 0; }
.ws-tool.is-go .a-buzz { animation: wsBuzz .06s linear 18; }
@keyframes wsBuzz { 50% { transform: translate(.8px, -.6px); } }
.ws-tool.is-go .a-bit { animation: wsBit .12s linear 9; }
@keyframes wsBit { to { transform: translateY(-10px); } }
.ws-tool.is-go .a-jaw { animation: wsVise 1.2s ease-in-out; }
@keyframes wsVise { 40%, 60% { transform: translateX(-14px); } }
.ws-tool.is-go .a-handle { transform-origin: 143px 85px; animation: wsHandle .3s linear 4; }
@keyframes wsHandle { 50% { transform: scaleY(-1); } }
.ws-tool--vise.is-hit .a-nail { animation: wsNail .5s steps(1) forwards; }
@keyframes wsNail { 0% { transform: translateY(0); } 40% { transform: translateY(8px); } 70%, 100% { transform: translateY(16px); } }
.ws-tool.is-go .a-hop { animation: wsHop .6s cubic-bezier(.3,1.6,.5,1) calc(var(--d) * 60ms) 2; }
@keyframes wsHop { 40% { transform: translateY(-16px) rotate(8deg); } }
.ws-tool.is-go .a-shake { transform-origin: 36px 76px; animation: wsShake .14s ease-in-out 7; }
@keyframes wsShake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.ws-tool.is-go .a-rattle { animation: wsRattle .14s linear 7; }
@keyframes wsRattle { 50% { transform: translateY(-4px); } }
.ws-tool--lamp svg { filter: none; }
.ws-tool--lamp .a-lamp { transform-origin: 38px 0; }
.ws-tool.is-go .a-lamp { animation: wsLamp 1.6s ease-in-out; }
@keyframes wsLamp { 20% { transform: rotate(9deg); } 45% { transform: rotate(-6deg); } 70% { transform: rotate(3deg); } }
.a-bulb { transition: fill .3s, filter .3s; }
.ws.is-lit .a-bulb { fill: #FFE07A; filter: drop-shadow(0 0 6px #FFD34D) drop-shadow(0 0 16px #FFD34D); }

/* Bildschirm (Film) */
.ws-tv { display: grid; grid-template-rows: 1fr auto; background: #3A3530; border-radius: 1cqw; padding: .7cqw .7cqw .5cqw; box-shadow: 0 1cqw 1.6cqw -.8cqw rgba(0,0,0,.6); transform: rotate(-1.5deg); transition: transform .25s; }
.ws-tv:hover { transform: rotate(0) scale(1.04); }
.ws-tv__screen { position: relative; border-radius: .6cqw; background: #111 center/cover; display: grid; place-items: center; filter: saturate(.7) brightness(.8); transition: filter .25s; }
.ws-tv:hover .ws-tv__screen { filter: none; }
.ws-tv__play { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 .5cqw rgba(245,179,0,.3); }
.ws-tv__play svg { width: 50%; height: 50%; margin-left: 10%; }
.ws-tv__label { font: 700 .95cqw/1 var(--mono); color: #E9DFCC; letter-spacing: .08em; text-transform: uppercase; padding-top: .45cqw; }

/* Bücher im Regal */
.ws-book { background: var(--c); border-radius: .35cqw .35cqw .2cqw .2cqw; box-shadow: inset .5cqw 0 0 rgba(255,255,255,.18), inset -.3cqw 0 0 rgba(0,0,0,.18), 0 .4cqw .6cqw -.3cqw rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ws-book::before, .ws-book::after { content: ""; position: absolute; left: 0; right: 0; height: .35cqw; background: rgba(255,255,255,.45); }
.ws-book::before { top: 8%; } .ws-book::after { bottom: 8%; }
.ws-book span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font: 700 .8cqw/1.05 var(--sans); text-shadow: 0 1px 2px rgba(0,0,0,.35); max-height: 80%; hyphens: manual; overflow: hidden; text-align: center; padding: 0 .2cqw; }
.ws-book:hover, .ws-book:focus-visible { transform: translateY(-1.1cqw); }
.ws-book.is-pull { transform: translateY(-2.2cqw) rotate(-3deg); }
.ws-book--lean { transform-origin: left bottom; transform: rotate(10deg); }
.ws-book--lean:hover { transform: rotate(4deg) translateY(-.6cqw); }

/* Notizzettel, Zähler, Meisterbrief */
.ws__note { position: absolute; z-index: 5; width: 25cqw; background: #FFFDF6; border-radius: .8cqw; padding: 1.3cqw 1.5cqw 1.4cqw; box-shadow: 0 1.6cqw 3cqw -1.2cqw rgba(0,0,0,.55); transform: rotate(-1deg); animation: wsNote .35s cubic-bezier(.2,.9,.3,1.3); pointer-events: none; }
.ws__note::before { content: ""; position: absolute; top: -.6cqw; left: 50%; width: 1.3cqw; height: 1.3cqw; margin-left: -.65cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, var(--swiss) 22% 100%); box-shadow: 0 .2cqw .3cqw rgba(0,0,0,.35); }
.ws__note-k { font: 600 .95cqw/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6cqw; }
.ws__note h3 { font-size: 1.9cqw; line-height: 1.05; margin: 0 0 .6cqw; }
.ws__note p:last-child { font-size: 1.22cqw; line-height: 1.4; margin: 0; color: var(--ink-2); }
@keyframes wsNote { from { opacity: 0; transform: translateY(1cqw) rotate(-4deg) scale(.9); } }
.ws__count { position: absolute; left: 1.6cqw; bottom: .7cqw; z-index: 3; pointer-events: none; display: flex; gap: 1cqw; align-items: center; font: 600 1cqw/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ws__hint { background: var(--ink); color: var(--saffron); padding: .7cqw 1cqw; border-radius: 99px; transition: opacity .4s; }
.ws.is-quiet .ws__hint { opacity: 0; }
.ws__found { background: #fff; color: var(--ink); padding: .7cqw 1cqw; border-radius: 99px; box-shadow: 0 .4cqw .8cqw -.4cqw rgba(0,0,0,.4); }
.ws__found b { color: var(--swiss); }
.ws__master { position: absolute; z-index: 6; left: 50%; top: 50%; width: 34cqw; transform: translate(-50%, -50%) rotate(-1.5deg); background: #FFFDF6; border: .5cqw double #C78F00; border-radius: 1cqw; padding: 2.2cqw; text-align: center; box-shadow: 0 3cqw 5cqw -2cqw rgba(0,0,0,.6); animation: wsNote .5s cubic-bezier(.2,.9,.3,1.3); }
.ws__master h3 { font-size: 2.6cqw; margin: .4cqw 0 .8cqw; } .ws__master p { font-size: 1.3cqw; margin: 0 0 1.4cqw; } .ws__master .eyebrow { font-size: 1cqw; }
.ws__master .btn { font-size: 1.3cqw; padding: 1cqw 2cqw; }
.ws__chip { position: absolute; z-index: 4; width: .9cqw; height: .9cqw; border-radius: 2px; background: var(--c); pointer-events: none; animation: wsChip 1.6s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes wsChip { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.ws__swipe { display: none; text-align: center; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }

/* Film-Dialog */
.filmdlg { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; }
.filmdlg::backdrop { background: rgba(14,13,11,.82); }
.filmdlg__box { position: relative; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.filmdlg video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.filmdlg__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 26px; line-height: 1; cursor: pointer; }

@media (max-width: 860px) {
  .ws__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .ws__scroll::-webkit-scrollbar { display: none; }
  .ws__scene { width: 860px; }
  .ws__swipe { display: block; }
}
@media (prefers-reduced-motion: reduce) { .ws-tool.is-go * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } .ws-tool::after { animation: none; } }

/* ---- Begrüssung statt grossem Titel ---- */
.hero__title--calm { font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.02; }
.hero--ws .hero__top { align-items: center; }

/* ---- Regal als eigene Ebene ---- */
.ws-shelf { position: absolute; z-index: 2; --sh-a: #7A4E2A; --sh-b: #5E3B1F; --sh-c: #9A6A3E; transform-origin: 1% 1%; transition: transform .9s cubic-bezier(.3,1.5,.5,1), filter .3s; }
.ws-shelf__wood { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sh-a { fill: var(--sh-a); transition: fill .9s; } .sh-b { fill: var(--sh-b); transition: fill .9s; } .sh-c { fill: var(--sh-c); transition: fill .9s; }
.ws-shelf .ws__plaque { position: absolute; }
.ws-shelf.is-target { filter: drop-shadow(0 0 .9cqw rgba(245,179,0,.95)); }
.ws-shelf.is-tilt { transform: rotate(4deg); }
.ws-shelf .ws-book { transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.ws-shelf.is-tilt .ws-book { transform: translateX(.8cqw) rotate(-3deg); }
.ws-screw { transform-box: fill-box; transform-origin: center; }
.ws-shelf.is-tilt .ws-screw--r { animation: wsScrewFall 1s cubic-bezier(.5,0,.8,.6) forwards; }
@keyframes wsScrewFall { 0% { transform: none; } 15% { transform: translate(-4px, -6px) rotate(-90deg); } 100% { transform: translate(14px, 640px) rotate(720deg); opacity: 0; } }
.ws-hole, .ws-nails { opacity: 0; transition: opacity .3s; }
.ws-shelf.is-holed .ws-hole { opacity: 1; }
.ws-shelf.is-nailed .ws-nails { opacity: 1; animation: wsPop .4s cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: bottom; }
@keyframes wsPop { from { transform: translateY(-14px); } }
.ws-shelf.is-shake { animation: wsShelfShake .55s ease-in-out; }
@keyframes wsShelfShake { 20% { translate: -.4cqw 0; } 40% { translate: .4cqw 0; } 60% { translate: -.25cqw 0; } 80% { translate: .15cqw 0; } }
.ws-shelf.is-shake .ws-book { animation: wsBookHop .5s cubic-bezier(.3,1.6,.5,1) calc(var(--b) * 22ms); }
@keyframes wsBookHop { 40% { translate: 0 -1.4cqw; } }
.ws-book.is-pulled { transform: translateY(-38%) rotate(-7deg) !important; z-index: 4; box-shadow: 0 1.6cqw 2cqw -.8cqw rgba(0,0,0,.6); }
.ws-shelf.is-cut-l { clip-path: polygon(0 0, 51% 0, 49% 100%, 0 100%); animation: wsCutL 3.6s cubic-bezier(.3,1.2,.4,1) forwards; }
.ws-shelf.is-cut-r { clip-path: polygon(51% 0, 100% 0, 100% 100%, 49% 100%); animation: wsCutR 3.6s cubic-bezier(.3,1.2,.4,1) forwards; pointer-events: none; }
@keyframes wsCutL { 0% { translate: 0; rotate: 0deg; } 18%, 72% { translate: -1.6cqw .6cqw; rotate: -2.5deg; } 100% { translate: 0; rotate: 0deg; } }
@keyframes wsCutR { 0% { translate: 0; rotate: 0deg; } 18%, 72% { translate: 1.6cqw .9cqw; rotate: 3deg; } 100% { translate: 0; rotate: 0deg; } }
.ws-sticky { position: absolute; right: 5%; top: 27.6%; width: 25%; padding: .7cqw .8cqw; background: #FFF27A; color: #1B1A17; font: 700 .95cqw/1.35 var(--mono); box-shadow: 0 .6cqw 1cqw -.5cqw rgba(0,0,0,.5); transform: rotate(5deg) scale(0); transform-origin: top center; transition: transform .45s cubic-bezier(.3,1.6,.5,1); z-index: 3; pointer-events: none; }
.ws-shelf.is-noted .ws-sticky { transform: rotate(5deg) scale(1); }
.ws-tape { position: absolute; left: -4.2%; top: 0; width: 3.2%; height: 0; background: #F5B300 repeating-linear-gradient(180deg, transparent 0 calc(2.5% - 1px), #1B1A17 calc(2.5% - 1px) 2.5%); border-radius: 2px; transition: height 1.2s cubic-bezier(.3,.8,.3,1), opacity .3s; opacity: 0; z-index: 3; pointer-events: none; }
.ws-shelf.is-measured .ws-tape { height: 100%; opacity: 1; }
.ws-say { position: absolute; left: 5%; right: 5%; top: 40%; z-index: 5; background: #1B1A17; color: #F5B300; text-align: center; font: 700 2.5cqw/1.1 var(--serif); padding: 1.6cqw 1.4cqw; border-radius: .8cqw; box-shadow: 0 1.6cqw 3cqw -1cqw rgba(0,0,0,.6); animation: wsSay .5s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
@keyframes wsSay { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.ws-fall { position: absolute; z-index: 6; width: .7cqw; height: 1.6cqw; background: linear-gradient(#5B636B 0 30%, #A9B1B9 30%); border-radius: 2px; pointer-events: none; animation: wsFall 1.1s cubic-bezier(.5,0,.8,.6) forwards; }
@keyframes wsFall { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* ---- Ziehen ---- */
.ws-tool[data-drag] { touch-action: none; cursor: grab; }
.ws-tool.is-dragging { opacity: .25; }
.ws-ghost { position: absolute; z-index: 9; pointer-events: none; cursor: grabbing; filter: drop-shadow(0 1.4cqw 1.4cqw rgba(0,0,0,.4)); transform: rotate(-8deg) scale(1.06); }
.ws-ghost svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ws-ghost.is-back { transition: left .45s cubic-bezier(.3,.8,.3,1), top .45s cubic-bezier(.3,.8,.3,1), transform .45s; transform: none; }

/* ---- Ein Regal für alle Lehrgänge ---- */
.allfor { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); background: var(--card); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 34px); box-shadow: var(--shadow-lg); color: inherit; text-decoration: none; }
.allfor__pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.allfor__pics img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.allfor__pics img:nth-child(1) { transform: rotate(-2deg); } .allfor__pics img:nth-child(2) { transform: translateY(-10px) rotate(1deg); } .allfor__pics img:nth-child(3) { transform: rotate(2deg); }
.allfor:hover .allfor__pics img { transform: none; }
.allfor__body { display: grid; gap: 12px; justify-items: start; }
.allfor__body strong { font: 700 clamp(1.7rem, 3vw, 2.5rem)/1.05 var(--serif); letter-spacing: -.02em; }
.allfor__text { color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.allfor .btn { margin-top: 6px; }
@media (max-width: 760px) { .allfor { grid-template-columns: 1fr; } }

/* ---- Wandtafel ---- */
.ws-board { position: absolute; z-index: 1; }
.ws-board svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 .6cqw .8cqw rgba(0,0,0,.35)); }
.b-circle { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s .1s linear, opacity .5s; }
.ws.is-circle .b-circle { stroke-dashoffset: 0; }
.b-text { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s steps(14); }
.ws.is-written .b-text { clip-path: inset(0 0 0 0); }
.b-check { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s 1.2s; }
.ws.is-written .b-check { stroke-dashoffset: 0; }
.ws.is-wiping .b-text, .ws.is-wiping .b-circle { opacity: 0; transition: opacity .9s .3s; }
.ws-tool--compass, .ws-tool--chalk, .ws-tool--sponge { z-index: 3; }
.ws-tool.is-go .a-compass { transform-origin: 52px 50px; animation: wsCompass 1.3s linear; }
@keyframes wsCompass { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.ws-tool.is-go .a-chalk { animation: wsChalk 1.4s ease-in-out; }
@keyframes wsChalk { 0%, 100% { transform: none; } 20% { transform: translate(10px, -70px) rotate(-30deg); } 80% { transform: translate(120px, -60px) rotate(-30deg); } }
.ws-tool.is-go .a-sponge { animation: wsSponge 1.2s ease-in-out; }
@keyframes wsSponge { 0%, 100% { transform: none; } 15% { transform: translate(-30px, -70px); } 35% { transform: translate(120px, -60px); } 55% { transform: translate(0, -45px); } 75% { transform: translate(150px, -40px); } }

/* ---- Hund ---- */
.ws-dog { position: absolute; z-index: 4; border: 0; padding: 0; background: none; cursor: pointer; transition: left 2.6s linear; -webkit-tap-highlight-color: transparent; }
.ws-dog svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 .4cqw .4cqw rgba(0,0,0,.25)); }
.ws-dog:focus-visible { outline: 3px solid var(--swiss); outline-offset: 3px; border-radius: 8px; }
.ws-dog .d-dog { transform-box: view-box; transform-origin: 84px 50px; transition: transform .35s; }
.ws-dog.is-flip .d-dog, .ws-dog.is-flip .d-stream { transform: scaleX(-1); }
.ws-dog .d-stream { transform-box: view-box; transform-origin: 84px 50px; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.ws-dog.is-pee .d-stream { opacity: .9; stroke-dashoffset: 0; transition: stroke-dashoffset .5s; }
.d-leg { transform-box: fill-box; transform-origin: top center; transition: transform .35s; }
.d-body, .d-head, .d-tail { transform-box: view-box; transition: transform .4s; }
.ws-dog.is-lying .d-leg { transform: scaleY(.18); }
.ws-dog.is-lying .d-body { transform: translateY(20px); }
.ws-dog.is-lying .d-head { transform: translate(-4px, 26px) rotate(6deg); transform-origin: 128px 30px; }
.ws-dog.is-lying .d-tail { transform: translateY(26px) rotate(60deg); transform-origin: 34px 44px; }
.ws-dog.is-lying .d-body ellipse:first-child { transform-box: fill-box; transform-origin: bottom; animation: dogBreathe 3.2s ease-in-out infinite; }
@keyframes dogBreathe { 50% { transform: scaleY(1.07) scaleX(1.01); } }
.d-eye-closed { display: none; }
.ws-dog.is-lying .d-eye { display: none; }
.ws-dog.is-lying .d-eye-closed { display: inline; }
.ws-dog:not(.is-lying) .d-tail { transform-origin: 34px 44px; animation: dogWag .3s ease-in-out infinite alternate; }
@keyframes dogWag { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
.ws-dog.is-walk .d-leg--b1, .ws-dog.is-walk .d-leg--f2 { animation: dogStep .32s ease-in-out infinite alternate; }
.ws-dog.is-walk .d-leg--b2, .ws-dog.is-walk .d-leg--f1 { animation: dogStep .32s ease-in-out infinite alternate-reverse; }
@keyframes dogStep { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.ws-dog.is-walk .d-body, .ws-dog.is-walk .d-head { animation: dogBob .32s ease-in-out infinite alternate; }
@keyframes dogBob { to { transform: translateY(-2px); } }
.ws-dog.is-pee .d-leg--b1 { transform: rotate(75deg); }
.ws-dog.is-bark .d-head { animation: dogBark .4s ease-out; transform-origin: 128px 40px; }
@keyframes dogBark { 30% { transform: rotate(-14deg) translateY(-3px); } }
.ws-dog.is-bark .d-mouth { d: path("M146 37q5 9 10 0"); }
.ws-dog__wau { position: absolute; left: 22%; top: -46%; z-index: 2; transform: translateX(-50%) scale(0); background: #fff; color: var(--ink); font: 800 1.8cqw/1 var(--sans); padding: .6cqw 1.1cqw; border-radius: 1cqw; box-shadow: 0 .4cqw .8cqw -.3cqw rgba(0,0,0,.4); pointer-events: none; white-space: nowrap; }
.ws-dog.is-bark .ws-dog__wau { animation: dogWau .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes dogWau { 0% { transform: translateX(-50%) scale(0); } 40%, 80% { transform: translateX(-50%) scale(1); } 100% { transform: translateX(-50%) scale(0); } }
.ws-puddle { position: absolute; z-index: 1; border-radius: 50%; background: radial-gradient(ellipse, rgba(242,211,75,.85), rgba(242,211,75,.4) 60%, transparent 72%); transform: scale(0); transition: transform 1.2s ease-out, opacity 1.5s; opacity: 0; pointer-events: none; }
.ws.is-puddle .ws-puddle { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ws-dog { transition-duration: .01s; } }

/* ---- Häufige Fragen ---- */
.faq__list { display: grid; gap: 10px; max-width: 900px; }
.faq__item { background: var(--card); border-radius: 14px; box-shadow: 0 1px 0 rgba(27,26,23,.06), 0 10px 24px -18px rgba(27,26,23,.4); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font: 700 1.12rem/1.3 var(--serif); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; font: 700 18px/1 var(--sans); transition: transform .25s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); max-width: 70ch; }

/* ---- Das versteckte Buch ---- */
.ws-book--lean { z-index: 2; }
.ws-book--secret { z-index: 1; background: linear-gradient(90deg, #0F2540, #14304F 40%, #1C3D63); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ws-book--secret::before { background: #E9B44C; height: .25cqw; top: 10%; }
.ws-book--secret::after { background: #E9B44C; height: .25cqw; bottom: 10%; }
.ws-book--secret span { font-size: .8cqw; opacity: .55; }
.ws-book--secret:hover, .ws-book--secret:focus-visible { transform: translateY(-1.6cqw); }
.ws-book--secret.is-found { transform: translateY(-4cqw) rotate(-4deg); }
.secretdlg { border: 0; padding: 0; background: transparent; width: min(760px, 94vw); max-width: none; }
.secretdlg::backdrop { background: rgba(14,13,11,.8); }
.secretdlg__box { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: #FFFDF6; border-radius: 18px; padding: 28px; border: 6px double #E9B44C; animation: wsNote .5s cubic-bezier(.2,.9,.3,1.3); }
.secretdlg__box img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 30px -14px rgba(0,0,0,.6); transform: rotate(-3deg); }
.secretdlg h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 4px 0 12px; }
.secretdlg p { margin: 0 0 12px; color: var(--ink-2); }
.secretdlg .btn { margin-top: 6px; }
@media (max-width: 600px) { .secretdlg__box { grid-template-columns: 1fr; text-align: center; } .secretdlg__box img { width: 150px; margin: 0 auto; } }

/* ---- Hund: liegend mit Pfoten ---- */
.d-paws { opacity: 0; transition: opacity .25s; }
.ws-dog.is-lying .d-paws { opacity: 1; }
.ws-dog.is-lying .d-leg { transform: scaleY(.3); opacity: 0; }
.d-leg { transition: transform .35s, opacity .2s; }

/* ---- Katze ---- */
.ws-cat { position: absolute; z-index: 3; border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ws-cat svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 .3cqw .3cqw rgba(0,0,0,.3)); }
.ws-cat:focus-visible { outline: 3px solid var(--swiss); outline-offset: 3px; border-radius: 8px; }
.c-cat, .c-tail, .c-head, .c-leg, .c-body { transform-box: view-box; }
.c-tail { transform-origin: 60px 46px; animation: catTail 3s ease-in-out infinite; }
@keyframes catTail { 50% { transform: rotate(-14deg); } }
.c-body { transform-origin: 44px 52px; animation: catBreathe 2.8s ease-in-out infinite; }
@keyframes catBreathe { 50% { transform: scaleY(1.05); } }
.c-run-legs { opacity: 0; }
.ws-cat.is-purr .c-head { animation: catPurr .5s ease-in-out; transform-origin: 24px 30px; }
@keyframes catPurr { 30% { transform: rotate(-10deg); } 70% { transform: rotate(6deg); } }
.ws-cat__miau { position: absolute; left: -10%; top: -46%; transform: scale(0); background: #fff; color: var(--ink); font: 800 1.4cqw/1 var(--sans); padding: .5cqw .9cqw; border-radius: 1cqw; box-shadow: 0 .4cqw .8cqw -.3cqw rgba(0,0,0,.4); pointer-events: none; white-space: nowrap; }
.ws-cat.is-purr .ws-cat__miau { animation: dogWau .6s cubic-bezier(.3,1.6,.5,1); }
.ws-cat.is-run { pointer-events: none; animation: catRun 1.7s cubic-bezier(.5,0,.9,.5) forwards; }
.ws-cat.is-run .c-cat { transform: scaleX(-1); transform-origin: 42px 30px; }
.ws-cat.is-run .c-sit-legs { opacity: 0; }
.ws-cat.is-run .c-run-legs { opacity: 1; }
.ws-cat.is-run .c-leg--1, .ws-cat.is-run .c-leg--3 { transform-origin: top; transform-box: fill-box; animation: dogStep .16s linear infinite alternate; }
.ws-cat.is-run .c-leg--2, .ws-cat.is-run .c-leg--4 { transform-origin: top; transform-box: fill-box; animation: dogStep .16s linear infinite alternate-reverse; }
.ws-cat.is-run .c-tail { animation: none; transform: rotate(40deg); }
.ws-cat.is-run .ws-cat__miau { animation: catMiau .6s ease-out 3; }
@keyframes catMiau { 0% { transform: scale(0); } 30%, 70% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes catRun { 0% { transform: translate(0, 0); } 12% { transform: translate(-.5cqw, -2.5cqw); } 25% { transform: translate(0, 0); } 100% { transform: translate(14cqw, -1cqw); } }

/* ---- Ton an/aus ---- */
.ws-mute { position: absolute; z-index: 4; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); padding: .4cqw; cursor: pointer; box-shadow: 0 .3cqw .6cqw -.2cqw rgba(0,0,0,.4); }
.ws-mute svg { width: 100%; height: 100%; display: block; }
.ws-mute__off { display: none; }
.ws-mute.is-muted .ws-mute__on { display: none; }
.ws-mute.is-muted .ws-mute__off { display: inline; }

/* ---- Sonderpreis ---- */
.summary__deal dd, .summary__deal dt { color: #0F7A3C; font-weight: 700; }
.deal-note { color: #0F7A3C; font-weight: 600; }
.deal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: #FFF6DC; border: 1.5px dashed var(--saffron); border-radius: 12px; padding: 10px 14px; }
.deal span { font-size: .98rem; }

/* ---- Lehrgang-Kennzeichnung ---- */
.tk-badge { display: inline-block; margin: 0 0 6px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: #1B1A17; color: #F5B300; }
.tk-badge--all { background: #EFE7D7; color: #5A4A35; }

/* ---- Begrüssung ---- */
.hero__greet { font: italic 600 clamp(1.15rem, 1.8vw, 1.45rem)/1.2 var(--serif); color: var(--swiss); margin: 0 0 6px; }

/* ---- Lernwerkstatt mit Foto ---- */
.ws__scene { background: #2A1C10; }
.ws__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ws__bg { z-index: 0; pointer-events: none; }
.ws__dim { opacity: .16; transition: opacity .6s ease; }
.ws.is-lit .ws__dim { opacity: 0; }
.ws.is-lit .ws__cone { opacity: .85; }
.ws__sign { left: 2.6%; top: 4.5%; transform: rotate(-2deg); }
.a-hot { fill: rgba(255,255,255,0); stroke: rgba(245,179,0,0); stroke-width: 3; stroke-dasharray: 8 6; transition: stroke .25s; }
.ws-tool:hover .a-hot, .ws-tool:focus-visible .a-hot { stroke: rgba(245,179,0,.9); }
.ws-tool--vise svg, .ws-tool--lamp svg { filter: none; }
.ws-tool--vise:hover svg, .ws-tool--lamp:hover svg { transform: none; }
.ws-tool--lamp .a-lamp { transform-origin: 46px 0; }
.a-bulb { fill: #FFE07A; opacity: 0; transition: opacity .4s; }
.ws.is-lit .a-bulb { opacity: .9; filter: drop-shadow(0 0 6px #FFD34D) drop-shadow(0 0 18px #FFD34D); }
.a-press { opacity: 0; }
.ws-tool--vise.is-go .a-press { animation: wsPress 1.2s ease-in-out; }
@keyframes wsPress { 20%, 70% { opacity: 1; transform: scaleX(.8); } 100% { opacity: 0; } }
.ws-tool--vise .a-press { transform-origin: 48px 44px; }
.ws-tool--vise .a-nail { opacity: 0; }
.ws-tool--vise.is-hit .a-nail { opacity: 1; }
.ws-tv { background: #2B2621; }
.ws-board svg { filter: drop-shadow(0 .5cqw .7cqw rgba(0,0,0,.55)); }
.ws-shelf { --sh-a: #5E3B1F; --sh-b: #3E2612; --sh-c: #7A4E2A; filter: drop-shadow(0 1cqw 1.4cqw rgba(0,0,0,.45)); }
.ws-book span { font-size: .72cqw; }

/* ---- Leseprobe: Lupe ---- */
.li__zoombtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; }
.li__zoombtn svg { width: 20px; height: 20px; }
.li__zoombtn:hover, .li__zoombtn[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.li.is-zoom .li__page { cursor: none; }
.li__lens { position: absolute; z-index: 5; border-radius: 50%; pointer-events: none; background: #fff no-repeat; border: 3px solid var(--saffron); box-shadow: 0 18px 40px -10px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.15); }
.li__full { position: absolute; inset: 0; z-index: 8; overflow: auto; background: #16150F; -webkit-overflow-scrolling: touch; }
.li__full img { display: block; width: min(200%, 1300px); max-width: none; height: auto; margin: 0 auto; background: #fff; }
.li__fullx { position: fixed; top: 12px; right: 12px; z-index: 9; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--saffron); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px -4px rgba(0,0,0,.6); }
@media (max-width: 700px) { .li__zoombtn span { display: none; } .li__zoombtn { padding: 0 10px; } }

/* ---- Resultat als PDF ---- */
.print-head { display: none; }
.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.rq__opts li em.is-sol { color: var(--ok); }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  html { font-size: 10pt; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pagehead--result, .result-actions, .center, .flash, .toast, .cookie, .skip { display: none !important; }
  .section, .section--tight { padding: 0 !important; }
  .wrap { max-width: none !important; padding: 0 !important; }
  .print-head { display: block; margin-bottom: 6mm; font-size: 10pt; }
  .print-head__top { display: flex; justify-content: space-between; align-items: flex-start; text-align: right; line-height: 1.4; border-bottom: .3mm solid #ccc; padding-bottom: 4mm; }
  .print-head__top img { width: 42mm; height: auto; }
  .print-head h1 { font-size: 15pt; margin: 5mm 0 3mm; line-height: 1.2; }
  .print-head dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; margin: 0 0 3mm; }
  .print-head dl div { background: #F6F1E8; border-radius: 2mm; padding: 2.5mm 3mm; }
  .print-head dt { font-size: 8pt; text-transform: uppercase; letter-spacing: .06em; color: #6B665D; }
  .print-head dd { margin: 1mm 0 0; font-size: 12pt; font-weight: 700; white-space: nowrap; }
  .print-head__legend { font-size: 9pt; color: #444; margin: 0; }
  .lg { display: inline-grid; place-items: center; width: 5mm; height: 5mm; border-radius: 1.2mm; color: #fff; font-size: 8pt; font-weight: 700; }
  .lg--ok { background: #1E8E4E; } .lg--no { background: #D0342C; }
  .review { display: block; }
  .review > .rq { margin: 0 0 3mm; }
  .rq { break-inside: avoid; page-break-inside: avoid; padding: 2.5mm 4mm; border-radius: 2mm; box-shadow: none; }
  .question__prompt { font-size: 10pt; margin: 1.5mm 0 2mm; }
  .rq__opts { gap: .8mm; }
  .rq__opts li { font-size: 9pt; padding: .6mm 2.5mm; border-radius: 1.5mm; }
  .rq__opts li em { font-size: 8pt; }
  .rq__pts { font-size: 9pt; }
  .rq__expl, .rq__answer { font-size: 9pt; padding: 2mm 3mm; margin-top: 2mm; }
  .rq__expl b, .rq__answer small { font-size: 8pt; }
  .question__no { font-size: 8pt; width: 6mm !important; height: 6mm !important; min-width: 0 !important; }
  .rq header { margin: 0; }
  .question__prompt { line-height: 1.3; font-weight: 600; }
  .rq__opts li { line-height: 1.25; gap: 2mm; border-width: .25mm; }
  .rq__opts .option__key { width: 4.6mm !important; height: 4.6mm !important; min-width: 0 !important; font-size: 8pt !important; border-radius: 1mm !important; flex: none; }
  .rq__expl { line-height: 1.35; }
  .rq { border-left-width: 1.5mm; }
}

/* ---- Training: Register ---- */
.ttabs { display: flex; gap: 8px; margin: 0 0 22px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.ttab { position: relative; display: grid; padding: 12px 20px 10px; border-radius: 14px 14px 0 0; text-decoration: none; color: var(--ink-2); background: transparent; margin-bottom: -2px; border: 2px solid transparent; }
.ttab b { font: 700 1.05rem/1.2 var(--serif); }
.ttab small { font-size: 12.5px; color: var(--muted); }
.ttab:hover { background: var(--card); }
.ttab.is-on { background: var(--card); border-color: var(--line); border-bottom-color: var(--card); color: var(--ink); }
.ttab__new { position: absolute; top: -9px; right: 10px; background: var(--swiss); color: #fff; font: 700 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 99px; }

/* ---- Fallstudien-Kacheln ---- */
.fall-teaser { display: grid; gap: 4px; margin: 0 0 28px; padding: 20px 24px; border-radius: var(--r-lg); background: #1B1A17; color: #F6F1E8; text-decoration: none; box-shadow: var(--shadow-lg); }
.fall-teaser strong { font: 700 1.4rem/1.2 var(--serif); color: #fff; }
.fall-teaser__k { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--saffron); }
.fall-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 26px; }
.fall-filter button { border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 99px; padding: 8px 14px; font: 600 14px/1 var(--sans); cursor: pointer; }
.fall-filter button.is-on { background: var(--ink); color: var(--saffron); border-color: var(--ink); }
.fall-filter__sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 4px; }
.fall-sec { margin-bottom: 40px; }
.fall-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin-bottom: 16px; }
.fall-sec__head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.fall-sec__head h2 span { color: var(--muted); font-weight: 500; }
.fall-sec__head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.fall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.fall { --pt: #1FA6A3; --pt2: #137D7B; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(27,26,23,.05), 0 16px 30px -24px rgba(27,26,23,.55); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.fall--pt3 { --pt: #E5457F; --pt2: #B92D61; }
.fall:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(27,26,23,.05), 0 26px 40px -24px rgba(27,26,23,.6); }
.fall__top { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--pt); color: #fff; overflow: hidden; }
.fall__top::after { content: ""; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); }
.fall__pt { font: 700 12px/1 var(--mono); letter-spacing: .1em; background: rgba(0,0,0,.22); padding: 6px 8px; border-radius: 6px; }
.fall__nr { font: 700 1.25rem/1 var(--serif); }
.fall__hk { margin-left: auto; font: 600 11.5px/1 var(--mono); letter-spacing: .06em; opacity: .92; position: relative; z-index: 1; }
.fall__body { padding: 16px 18px 6px; flex: 1; }
.fall__body h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.2; }
.fall__body h3 span { display: block; font: 700 1.45rem/1.1 var(--serif); color: var(--pt2); margin-bottom: 3px; }
.fall__br { margin: 0 0 10px; font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fall__text { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fall__role { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.fall__foot { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding: 12px 18px 16px; border-top: 1px dashed var(--line-2); margin-top: 10px; }
.fall__lvl { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); }
.fall__dots { display: inline-flex; gap: 3px; }
.fall__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.fall__dots i.on { background: var(--pt); }
.fall__meta { font: 500 12px/1.2 var(--mono); color: var(--muted); text-align: right; }
.fall__dl { grid-column: 1 / -1; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
.fall__dl svg { width: 18px; height: 18px; }
.fall__got { grid-column: 1 / -1; font-size: 12.5px; color: var(--ok, #1E8E4E); text-align: center; margin-top: -4px; }
.fall-howto { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; }
.fall-howto h3 { margin-top: 0; }
.fall-howto ol { margin: 0 0 12px; padding-left: 1.2em; line-height: 1.6; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
