/* ==========================================================================
   GridFlex Design-Lab · Rahmen

   Der Rahmen ist bewusst neutral: warmes Grau, Schwarz, eine Groteske. Er
   soll keine der fuenf Designsprachen vorwegnehmen und keine Palette
   bevorzugen. Alles, was GridFlex selbst ist, steht in site/*.css.
   ========================================================================== */

:root {
  --lab-grund: #ECEBE7;
  --lab-grund-2: #E3E1DC;
  --lab-papier: #F6F5F2;
  --lab-weiss: #FFFFFF;
  --lab-tinte: #151515;
  --lab-tinte-2: #5B5A56;
  --lab-tinte-3: #8C8A85;
  --lab-linie: rgba(21, 21, 21, 0.11);
  --lab-linie-2: rgba(21, 21, 21, 0.2);
  --lab-schwarz: #151515;
  --lab-font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --lab-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --lab-rand: clamp(16px, 3.4vw, 56px);
  --lab-max: 1720px;
  --lab-leiste-h: 94px;
  --lab-kurve: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--lab-leiste-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body.lab {
  margin: 0;
  background: var(--lab-grund);
  color: var(--lab-tinte);
  font-family: var(--lab-font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lab-tinte); outline-offset: 2px; }

.lab-skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--lab-schwarz); color: #fff; padding: 10px 14px; text-decoration: none;
}
.lab-skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Symbole und Logo (ueberall)
   -------------------------------------------------------------------------- */
.ikon {
  width: var(--ikon-gr, 20px);
  height: var(--ikon-gr, 20px);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--ikon-strich, 1.5);
  stroke-linecap: var(--ikon-ende, round);
  stroke-linejoin: var(--ikon-ecke, round);
  vector-effect: non-scaling-stroke;
}
.ikon * { vector-effect: non-scaling-stroke; }
.ikon .f { fill: var(--ikon-fuellung, none); }

.logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1934.29 / 585.13;
  overflow: visible;
  --lg-sym: var(--lg-sym-h);
  --lg-grid: var(--lg-grid-h);
  --lg-flex: var(--lg-flex-h);
  --lg-sub: var(--lg-sub-h);
}
.logo--signet { aspect-ratio: 675.29 / 585.13; }
.logo--wortmarke { aspect-ratio: 1176.09 / 340; }
.on-dark .logo, .logo.on-dark {
  --lg-sym: var(--lg-sym-d);
  --lg-grid: var(--lg-grid-d);
  --lg-flex: var(--lg-flex-d);
  --lg-sub: var(--lg-sub-d);
}
.on-dark .on-light .logo {
  --lg-sym: var(--lg-sym-h); --lg-grid: var(--lg-grid-h); --lg-flex: var(--lg-flex-h); --lg-sub: var(--lg-sub-h);
}
.logo.logo-mono, .logo-mono .logo {
  --lg-sym: var(--lg-mono); --lg-grid: var(--lg-mono); --lg-flex: var(--lg-mono); --lg-sub: var(--lg-mono);
}

/* --------------------------------------------------------------------------
   Steuerleiste
   -------------------------------------------------------------------------- */
.leiste {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--lab-schwarz);
  color: #EDEBE6;
  font-size: 13px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.leiste__zeile {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 6px var(--lab-rand) 7px;
  max-width: var(--lab-max);
  margin: 0 auto;
}
.leiste__marke { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.leiste__signet { width: 26px; --lg-sym: var(--lg-sym-d); }
.leiste__name { font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.leiste__name em { font-style: normal; font-weight: 400; color: #A9A69F; margin-left: 4px; }
.leiste__auf { display: none; }
.leiste__regler { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; justify-content: flex-end; }

.seg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.seg__knoepfe { display: flex; }
.seg__titel {
  font-family: var(--lab-mono); font-size: 9.5px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8F8C85;
}
.seg__btn {
  position: relative;
  min-width: 32px; height: 30px; padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent; color: #D9D6CF;
  font-family: var(--lab-mono); font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.seg__btn + .seg__btn { margin-left: -1px; }
.seg__btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; z-index: 1; }
.seg__btn[aria-pressed="true"] { background: #F2F0EA; color: #111; border-color: #F2F0EA; z-index: 2; }
.seg__muster {
  width: 10px; height: 10px; border-radius: 50%;
  background: conic-gradient(var(--primary) 0 50%, var(--accent) 0 75%, var(--bg) 0);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.leiste__aktionen { display: flex; align-items: center; gap: 6px; margin-left: 6px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.leiste__knopf, .leiste__fav {
  height: 30px; min-width: 32px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13); background: transparent; color: #E5E2DB;
  text-decoration: none; font-size: 12.5px; white-space: nowrap;
  --ikon-gr: 16px;
}
.leiste__knopf:hover, .leiste__fav:hover { background: rgba(255, 255, 255, 0.08); }
.leiste__knopf--text { background: #F2F0EA; color: #111; border-color: #F2F0EA; font-weight: 600; }
.leiste__knopf--text:hover { background: #fff; }
.leiste__fav span { font-family: var(--lab-mono); }
.leiste__fav.hat-favoriten { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.leiste__fav.hat-favoriten .ikon { fill: currentColor; }
[data-bewegung] .ikon--abspielen { display: none; }
[data-bewegung][aria-pressed="true"] .ikon--pause { display: none; }
[data-bewegung][aria-pressed="true"] .ikon--abspielen { display: block; }

.leiste__abschnitte {
  display: flex; align-items: center; gap: 2px;
  height: 36px; padding: 0 var(--lab-rand);
  max-width: var(--lab-max); margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto; scrollbar-width: none;
}
.leiste__abschnitte::-webkit-scrollbar { display: none; }
.leiste__abschnitte a {
  flex: none; padding: 5px 9px; text-decoration: none; color: #A29F98;
  font-size: 12px; white-space: nowrap; border-radius: 2px;
}
.leiste__abschnitte a b { font-family: var(--lab-mono); font-weight: 500; font-size: 10.5px; color: #6F6C66; margin-right: 3px; }
.leiste__abschnitte a:hover { color: #fff; }
.leiste__abschnitte a.ist-aktiv { color: #fff; background: rgba(255, 255, 255, 0.08); }
.leiste__abschnitte a.ist-aktiv b { color: #C9C5BC; }
.leiste__hilfe { margin-left: auto; flex: none; font-family: var(--lab-mono); font-size: 10.5px; color: #77746E; padding-left: 16px; cursor: help; position: relative; }

/* Hinweise an Schaltflaechen */
[data-tipp] { position: relative; }
@media (hover: hover) {
  [data-tipp]:hover::after {
    content: attr(data-tipp);
    position: absolute; left: 50%; top: calc(100% + 8px);
    transform: translateX(-50%);
    background: #F2F0EA; color: #111;
    font: 500 12px/1.3 var(--lab-font); letter-spacing: 0; text-transform: none;
    padding: 6px 9px; white-space: nowrap; pointer-events: none; z-index: 120;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }
  .leiste__hilfe:hover::after { left: auto; right: 0; transform: none; white-space: normal; width: 260px; }
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */
.lab-main { padding-top: var(--lab-leiste-h); }
.lab-sec {
  padding: clamp(80px, 9vw, 150px) var(--lab-rand);
  max-width: var(--lab-max);
  margin: 0 auto;
  position: relative;
}
.lab-sec--alt { background: var(--lab-grund-2); max-width: none; }
.lab-sec--alt > * { max-width: calc(var(--lab-max) - 2 * var(--lab-rand)); margin-inline: auto; }
.lab-sec + .lab-sec:not(.lab-sec--alt)::before {
  content: ""; position: absolute; left: var(--lab-rand); right: var(--lab-rand); top: 0; height: 1px; background: var(--lab-linie);
}

.lab-kopf {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.lab-kicker {
  grid-column: 1 / -1;
  margin: 0 0 22px;
  font-family: var(--lab-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lab-tinte-2);
  display: flex; align-items: center; gap: 12px;
}
.lab-kicker b { font-weight: 500; color: var(--lab-tinte); padding: 3px 7px; border: 1px solid var(--lab-linie-2); }
.lab-h2 {
  grid-column: 1 / span 7;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  text-wrap: balance;
}
.lab-lead {
  grid-column: 9 / -1;
  align-self: end;
  margin: 0;
  font-size: 16.5px;
  color: var(--lab-tinte-2);
  text-wrap: pretty;
}
.lab-h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.lab-h4 { margin: 0 0 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.lab-h5 { margin: 0 0 12px; font-family: var(--lab-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lab-tinte-2); }
.lab-klein { font-size: 13px; color: var(--lab-tinte-2); }
.lab-code { font-family: var(--lab-mono); font-size: 0.86em; background: rgba(21, 21, 21, 0.06); padding: 1px 5px; white-space: nowrap; }
.lab-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lab-chips li { font-size: 13px; padding: 5px 10px; border: 1px solid var(--lab-linie-2); background: var(--lab-papier); }
.lab-chips--aus li { background: transparent; color: var(--lab-tinte-2); text-decoration: line-through; text-decoration-color: rgba(21, 21, 21, 0.35); }
.lab-liste { margin: 0; padding: 0; list-style: none; }
.lab-liste li { padding: 9px 0 9px 22px; border-top: 1px solid var(--lab-linie); position: relative; font-size: 14.5px; }
.lab-liste li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 1.5px; background: var(--lab-tinte); }
.lab-liste--aus li::before { width: 9px; height: 9px; top: 14px; background: none;
  background-image: linear-gradient(45deg, transparent 45%, var(--lab-tinte-2) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--lab-tinte-2) 45% 55%, transparent 55%); }

.lab-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border: 1px solid var(--lab-schwarz); background: var(--lab-schwarz); color: #F4F2EC;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 180ms, color 180ms, transform 180ms var(--lab-kurve);
  --ikon-gr: 17px;
}
.lab-btn:hover { background: #2A2A2A; }
.lab-btn:active { transform: translateY(1px); }
.lab-btn--still { background: transparent; color: var(--lab-tinte); border-color: var(--lab-linie-2); }
.lab-btn--still:hover { background: rgba(21, 21, 21, 0.05); }
.lab-btn--klein { height: 34px; padding: 0 12px; font-size: 13px; --ikon-gr: 15px; }
.lab-btn[aria-pressed="true"] { background: var(--lab-weiss); color: var(--lab-tinte); border-color: var(--lab-tinte); }
.lab-btn[aria-pressed="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lab-tinte); }

/* --------------------------------------------------------------------------
   01 Intro
   -------------------------------------------------------------------------- */
.cover {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 0;
  padding-top: clamp(36px, 4vw, 64px);
  min-height: calc(100vh - var(--lab-leiste-h));
}
.cover__kopf { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.cover__meta { margin: 0; font-family: var(--lab-mono); font-size: 12px; color: var(--lab-tinte-2); }
.cover__buehne {
  grid-column: 1 / -1;
  position: relative;
  height: clamp(300px, 44vw, 560px);
  margin: 18px 0 40px;
  background: var(--bg);
  border: 1px solid var(--lab-linie);
  overflow: hidden;
  transition: background 400ms;
}
.cover__fx { position: absolute; inset: 0 0 0 34%; background: transparent !important; }
.cover__logo {
  position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px);
  width: min(38%, 440px);
}
.cover__text { grid-column: 1 / span 8; }
.cover__titel {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500;
  text-wrap: balance;
}
.cover__lead { margin: 0; font-size: clamp(17px, 1.35vw, 20px); color: var(--lab-tinte-2); max-width: 62ch; text-wrap: pretty; }
.cover__spalten {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--lab-linie);
}
.cover__spalten p { margin: 0; font-size: 15px; color: var(--lab-tinte-2); text-wrap: pretty; }
.cover__leitplanken {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 40px;
}
.cover__weiter {
  grid-column: 1 / -1; justify-self: start;
  margin-top: 48px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  --ikon-gr: 18px;
}
.cover__weiter .ikon { animation: lab-schweben 2.4s var(--lab-kurve) infinite; }
@keyframes lab-schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* --------------------------------------------------------------------------
   02 Konfigurator
   -------------------------------------------------------------------------- */
.konfig { display: grid; gap: 44px; }
.konfig__titel {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-size: 15px; font-weight: 600;
}
.konfig__titel kbd {
  font-family: var(--lab-mono); font-size: 11px; font-weight: 500;
  padding: 2px 6px; border: 1px solid var(--lab-linie-2); color: var(--lab-tinte-2); background: var(--lab-papier);
}
.konfig__optionen { display: grid; gap: 10px; }
.konfig__optionen--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.konfig__optionen--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.konfig__optionen--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option {
  text-align: left;
  display: grid; align-content: start; gap: 6px;
  padding: 16px 16px 18px;
  background: var(--lab-papier);
  border: 1px solid var(--lab-linie);
  position: relative;
  transition: border-color 180ms, background 180ms, transform 220ms var(--lab-kurve);
}
.option:hover { border-color: var(--lab-linie-2); background: var(--lab-weiss); }
.option[aria-pressed="true"] { border-color: var(--lab-tinte); background: var(--lab-weiss); box-shadow: inset 0 0 0 1px var(--lab-tinte); }
.option[aria-pressed="true"]::after {
  content: "Gewählt"; position: absolute; right: 12px; top: 12px;
  font-family: var(--lab-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--lab-tinte); color: #fff; padding: 2px 6px;
}
.option__code { font-family: var(--lab-mono); font-size: 11px; color: var(--lab-tinte-2); letter-spacing: 0.04em; }
.option__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.option__text { font-size: 13px; color: var(--lab-tinte-2); line-height: 1.45; }
.option__probe { font-size: 58px; line-height: 1; margin: 10px 0 8px; color: var(--lab-tinte); }
.option__probe--d1 { font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 560; letter-spacing: -0.03em; }
.option__probe--d2 { font-family: "Source Serif 4", serif; font-weight: 400; }
.option__probe--d3 { font-family: "Montserrat", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.option__probe--d4 { font-family: "Red Hat Display", sans-serif; font-weight: 500; }
.option__probe--d5 { font-family: "Albert Sans", sans-serif; font-weight: 300; letter-spacing: -0.02em; }
.option__farben { display: flex; height: 44px; margin: 8px 0 6px; border: 1px solid var(--lab-linie); }
.option__farben i { flex: 1; }
.option__farben i:first-child { flex: 2.2; }
.option__farben i:nth-child(4) { flex: 0.5; }
.option__logo { display: block; padding: 18px 10px 12px; }
.option__stil, .option__schema { display: block; margin: 6px 0 8px; height: 76px; }
.option__stil svg, .option__schema svg { height: 100%; width: auto; }
.option__stil .w path { stroke: var(--lab-tinte); stroke-width: 1.2; stroke-linejoin: round; }
.option__stil--a .w path { fill: var(--lab-papier); }
.option__stil--b .w-o { fill: var(--primary-tint); stroke: none !important; }
.option__stil--b .w-l { fill: var(--primary-light); stroke: none !important; }
.option__stil--b .w-r { fill: var(--primary); stroke: none !important; }
.option__stil--c svg { background: var(--inverse); padding: 4px 14px; box-sizing: content-box; height: calc(100% - 8px); }
.option__stil--c .w path { fill: color-mix(in oklab, var(--inverse) 88%, white); stroke: var(--accent-light); }
.option__schema .s-f { fill: var(--lab-tinte-3); opacity: 0.55; }
.option__schema .s-t { fill: var(--lab-tinte); }
.option__schema .s-t--hell, .option__schema .s-b--hell { fill: #fff; }
.option__schema .s-l { fill: var(--lab-tinte-3); }
.option__schema .s-b { fill: var(--lab-tinte); }
.option__schema .s-k { fill: none; stroke: var(--lab-tinte); stroke-width: 1; }
.option__schema .s-fl { fill: var(--lab-grund-2); }

.konfig__fuss {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--lab-linie);
}
.konfig__kennung { display: grid; gap: 4px; }
.konfig__kennung strong { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.konfig__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   03 Paletten
   -------------------------------------------------------------------------- */
.paletten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.palette {
  background: var(--lab-papier);
  border: 1px solid var(--lab-linie);
  display: flex; flex-direction: column;
  transition: box-shadow 200ms;
}
.palette.ist-gewaehlt { box-shadow: 0 0 0 2px var(--lab-tinte); }
.palette__kopf { padding: 22px 22px 18px; }
.palette__code { margin: 0 0 6px; font-family: var(--lab-mono); font-size: 11px; color: var(--lab-tinte-2); letter-spacing: 0.06em; text-transform: uppercase; }
.palette__name { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.palette__kurz { margin: 2px 0 12px; font-size: 14px; color: var(--lab-tinte-2); }
.palette__idee { margin: 0; font-size: 13.5px; color: var(--lab-tinte-2); text-wrap: pretty; min-height: 8.5em; }
.palette__gewicht { display: flex; height: 34px; margin: 0 22px; border: 1px solid rgba(0, 0, 0, 0.08); }
.palette__gewicht i { position: relative; }
.palette__gewicht span { position: absolute; left: 6px; bottom: -20px; font-family: var(--lab-mono); font-size: 9.5px; color: var(--lab-tinte-3); white-space: nowrap; }
.palette__probe { margin: 36px 22px 20px; border: 1px solid rgba(0, 0, 0, 0.08); }
.palette__probe-hell { background: var(--bg); color: var(--text); padding: 20px; display: grid; gap: 10px; justify-items: start; }
.palette__badge { font-size: 11px; font-weight: 600; padding: 3px 8px; background: var(--primary-tint); color: var(--primary); border-radius: 99px; }
.palette__probe-titel { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.palette__probe-text { margin: 0; font-size: 13px; color: var(--text-2); }
.palette__probe-linie { width: 44px; height: 2px; background: var(--accent); }
.palette__probe-knopf { font-size: 13px; font-weight: 600; background: var(--primary); color: #fff; padding: 9px 14px; }
.palette__probe-link { font-size: 13px; color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.palette__probe-dunkel { background: var(--inverse); color: var(--text-inverse); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.palette__logo { width: 150px; }
.palette__probe-dunkel-text { font-size: 11px; font-family: var(--lab-mono); opacity: 0.7; }
.palette__liste { list-style: none; margin: 0; padding: 0 22px; }
.farbe {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  column-gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--lab-linie);
}
.farbe__feld {
  grid-row: span 2;
  width: 38px; height: 38px; border: 1px solid rgba(0, 0, 0, 0.1); padding: 0;
  transition: transform 200ms var(--lab-kurve);
}
button.farbe__feld:hover { transform: scale(1.08); }
.farbe__label { font-size: 13.5px; font-weight: 600; }
.farbe__hex { font-family: var(--lab-mono); font-size: 12px; color: var(--lab-tinte); }
.farbe__rolle { grid-column: 2 / -1; font-size: 12px; color: var(--lab-tinte-2); line-height: 1.35; }
.palette__kontrast { margin: 16px 22px 0; padding-top: 14px; border-top: 1px solid var(--lab-linie); }
.palette__kontrast ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.palette__kontrast li { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--lab-tinte-2); }
.palette__kontrast li b { font-family: var(--lab-mono); font-weight: 500; color: var(--lab-tinte); }
.palette__kontrast li i { font-style: normal; font-family: var(--lab-mono); font-size: 10.5px; padding: 1px 5px; border: 1px solid var(--lab-linie-2); margin-left: 6px; }
.palette__kontrast li i.gut { background: var(--lab-tinte); color: #fff; border-color: var(--lab-tinte); }
.palette__waehlen { margin: 20px 22px 22px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   04 Logo-Lab
   -------------------------------------------------------------------------- */
.logos { display: grid; gap: 14px; }
.logozeile {
  display: grid;
  grid-template-columns: minmax(250px, 3fr) 9fr;
  gap: 14px;
  padding: 14px;
  background: var(--lab-papier);
  border: 1px solid var(--lab-linie);
}
.logozeile.ist-gewaehlt { box-shadow: 0 0 0 2px var(--lab-tinte); }
.logozeile__info { padding: 8px 8px 8px 6px; display: flex; flex-direction: column; align-items: flex-start; }
.logozeile__code { margin: 0 0 4px; font-family: var(--lab-mono); font-size: 11px; color: var(--lab-tinte-2); letter-spacing: 0.06em; text-transform: uppercase; }
.logozeile__name { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.logozeile__idee { margin: 0 0 14px; font-size: 13.5px; color: var(--lab-tinte-2); text-wrap: pretty; }
.logozeile__farben { display: flex; gap: 12px; margin: 0 0 16px; }
.logozeile__farben div { display: grid; gap: 4px; justify-items: start; }
.logozeile__farben dt { font-size: 10.5px; font-family: var(--lab-mono); color: var(--lab-tinte-3); }
.logozeile__farben dd { margin: 0; }
.logozeile__farben i { display: block; width: 26px; height: 26px; border: 1px solid rgba(0, 0, 0, 0.1); }
.logozeile__info .lab-btn { margin-top: auto; }
.logozeile__kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.logokachel {
  margin: 0; position: relative;
  display: grid; place-items: center;
  min-height: 210px; padding: 36px 28px 44px;
}
.logokachel .logo { width: min(100%, 300px); }
.logokachel figcaption {
  position: absolute; left: 14px; bottom: 11px;
  font-family: var(--lab-mono); font-size: 10.5px; letter-spacing: 0.04em; opacity: 0.6;
}
.logokachel--hell { background: var(--surface-elevated); color: var(--text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.logokachel--dunkel { background: var(--inverse); color: var(--text-inverse); }
.logokachel--mono { background: var(--bg); color: var(--text); }

.logo-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.logo-extra__block { background: var(--lab-papier); border: 1px solid var(--lab-linie); padding: 22px; }
.logo-extra__block--breit { grid-column: 1 / -1; }
.logo-extra__block .lab-klein { margin: 0 0 18px; }
.groessen { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.groessen figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.groessen span { display: block; width: var(--g); }
.groessen figcaption { font-family: var(--lab-mono); font-size: 10.5px; color: var(--lab-tinte-2); }
.groessen__app span {
  width: 64px; height: 64px; padding: 11px; border-radius: 14px;
  background: var(--primary); display: grid; place-items: center;
}
.groessen__app .logo { --lg-sym: var(--lg-sym-d); }
.schutzraum { position: relative; padding: 34px; background: var(--surface-elevated); display: grid; place-items: center; }
.schutzraum__rahmen { width: min(100%, 360px); padding: 7.5%; outline: 1px dashed var(--lab-tinte-3); outline-offset: 0; background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0, 0, 0, 0.035) 6px 7px); }
.schutzraum__rahmen .logo { background: var(--surface-elevated); }
.schutzraum__mass { position: absolute; font-family: var(--lab-mono); font-size: 10.5px; color: var(--lab-tinte-2); }
.schutzraum__mass--o { top: 14px; left: 50%; transform: translateX(-50%); }
.schutzraum__mass--l { left: 10px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.kontexte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kontext { margin: 0; display: grid; gap: 8px; }
.kontext figcaption { font-family: var(--lab-mono); font-size: 10.5px; color: var(--lab-tinte-2); }
.kontext__leiste {
  height: 150px; background: var(--surface-elevated); padding: 0 18px;
  display: flex; align-items: flex-start; gap: 10px; padding-top: 22px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.kontext__leiste .logo { width: 116px; margin-right: auto; }
.kontext__leiste i { width: 30px; height: 4px; background: var(--border); margin-top: 12px; }
.kontext__leiste b { width: 54px; height: 22px; background: var(--primary); margin-top: 3px; }
.kontext--kopf.on-dark .kontext__leiste { background: var(--inverse); box-shadow: none; }
.kontext--kopf.on-dark .kontext__leiste i { background: rgba(255, 255, 255, 0.2); }
.kontext--kopf.on-dark .kontext__leiste b { background: var(--accent-light); }
.kontext--foto { position: relative; }
.kontext--foto img { height: 150px; width: 100%; object-fit: cover; }
.kontext--foto::after { content: ""; position: absolute; inset: 0 0 26px 0; background: linear-gradient(0deg, color-mix(in oklab, var(--inverse) 78%, transparent), transparent 70%); }
.kontext__logo { position: absolute; left: 16px; bottom: 44px; width: 130px; z-index: 1; }
.visitenkarte {
  height: 150px; background: var(--bg); padding: 18px; position: relative;
  display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.visitenkarte__logo { width: 104px; }
.visitenkarte__name { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text); }
.visitenkarte__rolle { font-size: 11px; color: var(--text-2); }
.visitenkarte__linie { position: absolute; right: 18px; bottom: 18px; width: 26px; height: 2px; background: var(--accent); }

/* --------------------------------------------------------------------------
   05 Designsprachen
   -------------------------------------------------------------------------- */
.dvergleich {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 28px;
}
.dvergleich__kachel.gf {
  text-align: left; border: 1px solid var(--lab-linie);
  padding: 20px 18px 16px; min-height: 250px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  cursor: pointer;
  transition: transform 260ms var(--lab-kurve), box-shadow 200ms;
}
.dvergleich__kachel.gf:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.4); }
.dvergleich__kachel[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--lab-tinte); }
.dvergleich__code { font-family: var(--lab-mono); font-size: 10.5px; color: var(--lab-tinte-2); letter-spacing: 0.06em; }
.dvergleich__titel.gf-h3 { font-size: 24px !important; line-height: 1.08 !important; }
.dvergleich__name { margin-top: auto; font-family: var(--lab-font); font-size: 13px; font-weight: 600; color: var(--lab-tinte); }

.designs { display: grid; gap: 18px; }
.design {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) 8fr;
  background: var(--lab-papier);
  border: 1px solid var(--lab-linie);
}
.design.ist-gewaehlt { box-shadow: 0 0 0 2px var(--lab-tinte); }
.design__info { padding: 26px 24px; display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid var(--lab-linie); }
.design__code { margin: 0 0 6px; font-family: var(--lab-mono); font-size: 11px; color: var(--lab-tinte-2); letter-spacing: 0.06em; text-transform: uppercase; }
.design__titel { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.design__arbeitstitel { margin: 6px 0 16px; font-size: 14px; color: var(--lab-tinte-2); }
.design__idee { margin: 0 0 20px; font-size: 14px; text-wrap: pretty; }
.design__schriften, .design__merkmale { margin: 0 0 16px; width: 100%; display: grid; }
.design__schriften div, .design__merkmale div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--lab-linie); font-size: 12.5px; }
.design__schriften dt, .design__merkmale dt { color: var(--lab-tinte-2); font-family: var(--lab-mono); font-size: 10.5px; padding-top: 2px; }
.design__schriften dd, .design__merkmale dd { margin: 0; }
.design__passt { margin: 4px 0 20px; font-size: 13.5px; color: var(--lab-tinte-2); }
.design__passt b { color: var(--lab-tinte); }
.design__info .lab-btn { margin-top: auto; }
.design__probe { min-width: 0; overflow: hidden; }
/* Stilprobe einer Designsprache */
.probe { display: grid; gap: 30px; padding: 0 30px 30px; }
.probe__kopf { margin: 0 -30px; }
.probe__kopf .gf-kopf__innen { padding-inline: 30px; min-height: 66px; }
.probe .gf-kopf__nav { display: flex !important; gap: 20px; }
.probe .gf-kopf__menue { display: none !important; }
.probe .gf-kopf__logo { width: 136px; }
.probe__held { display: grid; gap: 16px; justify-items: start; padding-top: 10px; }
.probe__display.gf-display { font-size: clamp(32px, 4.4cqi, 54px); max-width: 17ch; }
.probe__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.probe__karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.probe__karten.gf-karten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.probe__karten .gf-karte__titel { font-size: 17px; }
.probe__fuss { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 34px; align-items: end; }
.probe__fuss .gf-kpi { padding: 0; }
.probe__fuss .gf-kpi__wert { font-size: 52px; }
.probe__fuss .gf-prozess--mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.probe__ikonen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.probe .gf-prozess--mini .gf-prozess__titel { font-size: 13.5px; hyphens: auto; overflow-wrap: anywhere; }
.probe .gf[data-design="5"] .gf-kopf, .gf[data-design="5"] .probe .gf-kopf { padding-top: 12px; }
.gf[data-design="5"] .probe__kopf .gf-kopf__innen { margin-inline: 14px; max-width: none; }
.dvergleich__kachel .gf-btn { pointer-events: none; }
@container gf (max-width: 700px) {
  .probe__karten, .probe__karten.gf-karten { grid-template-columns: 1fr; }
  .probe__fuss { grid-template-columns: 1fr 1fr; }
  .probe__fuss .gf-prozess--mini { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   06 Website
   -------------------------------------------------------------------------- */
.lab-sec--website { max-width: none; padding-inline: clamp(8px, 1.6vw, 28px); }
.lab-sec--website .lab-kopf { max-width: calc(var(--lab-max) - 2 * var(--lab-rand)); margin-inline: auto; padding-inline: calc(var(--lab-rand) - clamp(8px, 1.6vw, 28px)); }
.browser {
  max-width: 1600px; margin: 0 auto;
  background: #D9D7D1;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.45);
  transition: max-width 500ms var(--lab-kurve);
}
.browser[data-geraet="tablet"] { max-width: 860px; }
.browser[data-geraet="mobil"] { max-width: 414px; }
.browser__leiste {
  position: sticky; top: var(--lab-leiste-h); z-index: 30;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 9px 14px; background: #DEDCD6; border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
}
.browser__punkte { display: flex; gap: 6px; }
.browser__punkte i { width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.16); }
.browser__adresse { flex: 1; min-width: 180px; background: #F2F1EE; padding: 5px 12px; color: var(--lab-tinte-2); font-family: var(--lab-mono); font-size: 11.5px; border-radius: 4px; }
.browser__adresse b { font-weight: 500; color: var(--lab-tinte); }
.browser__geraete { display: flex; }
.browser__geraete button { border: 1px solid rgba(0, 0, 0, 0.18); background: transparent; padding: 4px 10px; font-size: 12px; }
.browser__geraete button + button { margin-left: -1px; }
.browser__geraete button[aria-pressed="true"] { background: var(--lab-tinte); color: #fff; border-color: var(--lab-tinte); }
.browser__hinweis { font-family: var(--lab-mono); font-size: 10.5px; color: var(--lab-tinte-2); letter-spacing: 0.04em; text-transform: uppercase; }
.browser__rahmen { overflow: clip; }
.browser[data-geraet="mobil"] .browser__hinweis, .browser[data-geraet="mobil"] .browser__adresse { display: none; }

/* --------------------------------------------------------------------------
   07 Komponenten
   -------------------------------------------------------------------------- */
.gf--komponenten { padding: clamp(18px, 2vw, 28px); border: 1px solid var(--lab-linie); }
.kgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.kblock { min-width: 0; display: grid; align-content: start; gap: 16px; padding: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent); }
.kblock--breit { grid-column: 1 / -1; }
.kblock__titel {
  margin: 0; font-family: var(--lab-font); font-size: 13px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0; text-transform: none;
  display: flex; align-items: center; gap: 8px;
}
.kblock__titel b { font-family: var(--lab-mono); font-size: 10.5px; font-weight: 500; padding: 2px 5px; border: 1px solid var(--border); color: var(--text); }
.kblock__titel--unter { margin-top: 12px; }
.kblock__notiz { margin: -6px 0 0; font-family: var(--lab-font); font-size: 13px; color: var(--text-2); }
.ktypo { display: grid; }
.ktypo__zeile { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--border); }
.ktypo__zeile > p { margin: 0; }
.ktypo__info { font-family: var(--lab-mono); font-size: 10.5px; line-height: 1.5; color: var(--text-2); white-space: pre-line; }
.kreihe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kreihe--dunkel { background: var(--inverse); padding: 16px; }
.kikonen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.kikonen li { display: grid; justify-items: center; gap: 8px; padding: 14px 6px 10px; border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }
.kikonen code { font-family: var(--lab-mono); font-size: 10px; color: var(--text-2); }
.kkarten { margin-top: 28px; }
.kkarten__titel { margin: 0 0 16px; font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kkarten__titel b { font-family: var(--lab-mono); font-size: 10.5px; font-weight: 500; padding: 2px 5px; border: 1px solid var(--lab-linie-2); }
.kkarten__titel .lab-klein { font-weight: 400; }
.kkarten__reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kkarten__spalte { display: grid; gap: 10px; align-content: start; }
.kkarten__wahl { justify-self: start; border: 1px solid var(--lab-linie-2); background: transparent; padding: 6px 10px; font-size: 13px; }
.kkarten__wahl b { font-family: var(--lab-mono); font-weight: 500; font-size: 11.5px; margin-right: 6px; }
.kkarten__wahl[aria-pressed="true"] { background: var(--lab-tinte); color: #fff; border-color: var(--lab-tinte); }
.gf--karteprobe { padding: 22px; border: 1px solid var(--lab-linie); }

/* --------------------------------------------------------------------------
   08 Motion Lab
   -------------------------------------------------------------------------- */
.mlab-leiste {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  margin-bottom: 22px; padding: 12px 0; border-block: 1px solid var(--lab-linie);
  position: sticky; top: var(--lab-leiste-h); z-index: 20; background: var(--lab-grund);
}
.mlab-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.mlab-filter button { border: 1px solid var(--lab-linie-2); background: transparent; padding: 6px 11px; font-size: 13px; }
.mlab-filter button span { font-family: var(--lab-mono); font-size: 11px; color: var(--lab-tinte-3); margin-left: 4px; }
.mlab-filter button[aria-pressed="true"] { background: var(--lab-tinte); color: #fff; border-color: var(--lab-tinte); }
.mlab-filter button[aria-pressed="true"] span { color: #bbb; }
.mlab-hero { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mlab-hero strong { font-size: 14px; font-weight: 600; }

.mlab {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  grid-auto-flow: dense;
}
.effekt {
  display: flex; flex-direction: column;
  background: var(--lab-papier);
  border: 1px solid var(--lab-linie);
  min-width: 0;
  transition: box-shadow 200ms;
}
.effekt--breit { grid-column: span 2; }
.effekt.ist-favorit { box-shadow: 0 0 0 2px var(--lab-tinte); }
.effekt.ist-ausgeblendet { display: none; }
.effekt__buehne { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.effekt--breit .effekt__buehne { aspect-ratio: 16 / 7.4; }
.effekt__fx { position: absolute; inset: 0; --fx-oben: 44px; }
.effekt__nr {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  font-family: var(--lab-mono); font-size: 12px; font-weight: 500;
  background: var(--lab-schwarz); color: #fff; padding: 4px 8px; letter-spacing: 0.04em;
  pointer-events: none;
}
.effekt__regler {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: color-mix(in oklab, var(--lab-papier) 92%, transparent);
  border: 1px solid var(--lab-linie);
  opacity: 0; transform: translateY(4px);
  transition: opacity 200ms, transform 240ms var(--lab-kurve);
}
.effekt:hover .effekt__regler, .effekt:focus-within .effekt__regler, .effekt__regler.ist-an { opacity: 1; transform: none; }
@media (hover: none) { .effekt__regler { opacity: 1; transform: none; } }
.effekt__nochmal { border: 0; background: transparent; padding: 3px; display: grid; place-items: center; --ikon-gr: 17px; color: var(--lab-tinte); }
.effekt__regler input[type="range"], .vollbild__fuss input[type="range"] { flex: 1; accent-color: var(--lab-tinte); min-width: 60px; }
.effekt__hinweis { font-family: var(--lab-mono); font-size: 10.5px; color: var(--lab-tinte-2); white-space: nowrap; }
.effekt__info { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.effekt__titelzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.effekt__titel { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.effekt__stern {
  flex: none; width: 36px; height: 36px; margin: -6px -6px 0 0;
  border: 1px solid var(--lab-linie-2); background: transparent; display: grid; place-items: center;
  --ikon-gr: 18px;
  transition: background 160ms, transform 200ms var(--lab-kurve);
}
.effekt__stern:hover { background: rgba(0, 0, 0, 0.05); }
.effekt__stern[aria-pressed="true"] { background: var(--lab-tinte); color: #fff; border-color: var(--lab-tinte); }
.effekt__stern[aria-pressed="true"] .ikon { fill: currentColor; }
.effekt__stern:active { transform: scale(0.92); }
.effekt__kurz { margin: 0 0 8px; font-size: 14px; text-wrap: pretty; }
.effekt__bezug { margin: 0 0 12px; font-size: 13px; color: var(--lab-tinte-2); text-wrap: pretty; }
.effekt__bezug b { color: var(--lab-tinte); font-weight: 600; margin-right: 4px; }
.effekt__tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.effekt__tags li { font-family: var(--lab-mono); font-size: 10.5px; padding: 2px 6px; border: 1px solid var(--lab-linie); color: var(--lab-tinte-2); }
.effekt__tags .effekt__tag--drost { border-color: var(--lab-linie-2); color: var(--lab-tinte); }
.effekt__tags .effekt__tag--neu { background: var(--lab-tinte); color: #fff; border-color: var(--lab-tinte); }
.effekt__aktionen { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }

/* Buehnen der Effekte: Grund folgt Palette, Kontext und 3D-Stil.
   --fx-nacht schaltet im Stift und im Shader auf helle Linien um. */
.fx {
  --fx-nacht: 0;
  --fx-schrift: var(--live-label, var(--lab-mono));
  --fx-schrift-text: var(--live-text, var(--lab-font));
  background: var(--surface); transition: background-color 300ms;
}
/* Ohne Spezifitaet, damit position: absolute der Buehnen gewinnt */
:where(.fx) { position: relative; }
.gf .fx { --fx-schrift: var(--f-label); --fx-schrift-text: var(--f-text); }
.on-dark .fx, .fx.on-dark, [data-stil="c"] .fx:not(.fx--ambient) { --fx-nacht: 1; background: var(--inverse); }
.on-dark .on-light .fx { --fx-nacht: 0; background: var(--surface); }
.fx > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx--ambient { background: transparent !important; }
.fx .fx-dom { position: absolute; inset: 0; container-type: size; }
.fx[data-fx-maus], .effekt__fx { cursor: crosshair; }

/* Effekte aus DOM: Raeumliche Ebenen */
.ebenen { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1400px; overflow: hidden; }
.ebenen__stapel {
  position: relative; width: min(58%, 380px); aspect-ratio: 1.35;
  transform-style: preserve-3d;
  transform: translateY(8%) rotateX(calc(57deg + var(--ky, 0) * 10deg)) rotateZ(calc(-40deg + var(--kx, 0) * 16deg));
}
.ebene {
  position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 10px 12px;
  transform: translateZ(calc(var(--i) * var(--abstand, 40px) + var(--fall, 0px)));
  border: 1px solid color-mix(in oklab, var(--text) 45%, transparent);
  background: color-mix(in oklab, var(--surface-elevated) 88%, transparent);
  font: 600 12px/1 var(--live-text, var(--lab-font)); color: var(--text);
  transition: transform 700ms var(--lab-kurve), background-color 300ms;
}
.ebene__nr { font: 500 10px var(--lab-mono); color: var(--text-2); }
.ebene::before { content: ""; position: absolute; inset: 14% 10% 26%; opacity: 0.9; }
.ebene--module::before { background: repeating-linear-gradient(90deg, var(--primary) 0 16%, transparent 16% 20%), repeating-linear-gradient(0deg, transparent 0 46%, var(--surface-elevated) 46% 54%); }
.ebene--zellen::before { background: repeating-linear-gradient(90deg, var(--accent) 0 9%, transparent 9% 12%); inset: 24% 18% 34%; }
.ebene--netz::before { background: radial-gradient(circle, var(--primary) 0 3px, transparent 3.5px) 0 0 / 22% 33%, linear-gradient(var(--border), var(--border)) 50% 50% / 100% 1px no-repeat; }
.ebene--balken::before { background: linear-gradient(0deg, var(--primary) 0 40%, transparent 40%) 0 100% / 14% 100% no-repeat, linear-gradient(0deg, var(--primary) 0 62%, transparent 62%) 30% 100% / 14% 100% no-repeat, linear-gradient(0deg, var(--primary) 0 50%, transparent 50%) 60% 100% / 14% 100% no-repeat, linear-gradient(0deg, var(--accent) 0 86%, transparent 86%) 90% 100% / 14% 100% no-repeat; }
.ebenen[data-modus="linie"] .ebene { background: var(--surface); }
.ebenen[data-modus="linie"] .ebene::before { opacity: 0.35; filter: grayscale(1); }
.ebenen[data-modus="volumen"] .ebene { background: color-mix(in oklab, var(--primary-tint) 85%, var(--surface-elevated)); border-color: color-mix(in oklab, var(--primary) 35%, transparent); box-shadow: 0 30px 40px -30px color-mix(in oklab, var(--primary-dark) 60%, transparent); }
.ebenen[data-modus="licht"] .ebene { background: color-mix(in oklab, var(--inverse) 90%, var(--primary-light)); border-color: color-mix(in oklab, var(--primary-light) 70%, transparent); color: var(--text-inverse); box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary-light) 20%, transparent), 0 0 24px -8px color-mix(in oklab, var(--primary-light) 45%, transparent); }
.ebenen[data-modus="licht"] .ebene__nr { color: var(--accent-light); }

/* Zaehlwerk */
.zaehler { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 18px 26px; padding: 20px; color: var(--text); }
.on-dark .zaehler, [data-stil="c"] .zaehler { color: var(--text-inverse); }
.zaehler__feld { display: grid; gap: 10px; justify-items: center; }
.zaehler__ziffern { display: flex; gap: 4px; }
.walze { display: block; width: 0.64em; height: 1em; overflow: hidden; font: 400 min(9cqi, 16cqh)/1 var(--lab-mono); border: 1px solid color-mix(in oklab, currentColor 22%, transparent); padding: 0 0.1em; background: color-mix(in oklab, currentColor 5%, transparent); }
.walze > span { display: flex; flex-direction: column; will-change: transform; }
.walze i { font-style: normal; height: 1em; display: grid; place-items: center; }
.zaehler__label { font: 500 11px var(--lab-mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.zaehler__fuss { width: 100%; text-align: center; margin: 6px 0 0; font: 400 11px var(--lab-mono); opacity: 0.55; }

/* Zeilenweise Ueberschrift */
.zeilen { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; color: var(--text); font-family: var(--live-head, var(--lab-font)); }
.on-dark .zeilen, [data-stil="c"] .zeilen { color: var(--text-inverse); }
.zeilen__maske { display: block; overflow: hidden; }
.zeilen__zeile { display: block; font-size: min(8.4cqi, 13cqh); line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; will-change: transform; }
.zeilen__zeile--haupt { color: var(--primary); }
.on-dark .zeilen__zeile--haupt, [data-stil="c"] .zeilen__zeile--haupt { color: var(--primary-light); }

/* --------------------------------------------------------------------------
   09 Bildsprache
   -------------------------------------------------------------------------- */
.bh-wahl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.bh-wahl .lab-klein { margin-right: 6px; }
.bh-wahl button { width: 74px; height: 50px; padding: 0; border: 1px solid transparent; background: none; opacity: 0.6; transition: opacity 160ms; }
.bh-wahl button img { width: 100%; height: 100%; object-fit: cover; }
.bh-wahl button[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--lab-tinte); outline-offset: 2px; }
.bh-titel { margin: 44px 0 16px; display: flex; align-items: center; gap: 10px; }
.bh-titel b, .bh-titel + * { font-weight: inherit; }
.bh-titel b { font-family: var(--lab-mono); font-size: 11px; font-weight: 500; padding: 2px 6px; border: 1px solid var(--lab-linie-2); }
.bh-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bh { margin: 0; display: grid; gap: 10px; align-content: start; }
.bh__bild { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--primary-dark); isolation: isolate; }
.bh__bild img { width: 100%; height: 100%; object-fit: cover; }
.bh figcaption, .bf figcaption, .bo figcaption { font-size: 13px; color: var(--lab-tinte-2); text-wrap: pretty; }
.bh figcaption b, .bf figcaption b, .bo figcaption b { color: var(--lab-tinte); font-weight: 600; margin-right: 4px; }

.bh--natur img { filter: saturate(0.92) contrast(1.02) sepia(0.06); }
.bh--primaer .bh__bild { background: var(--primary); }
.bh--primaer img { filter: grayscale(1) contrast(1.08) brightness(1.08); mix-blend-mode: multiply; }
.bh--duoton .bh__bild { background: var(--bg); }
.bh--duoton .bh__bild::before, .bh--duoton .bh__bild::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.bh--duoton img { filter: grayscale(1) contrast(1.15); }
.bh--duoton .bh__bild::before { background: var(--primary-dark); mix-blend-mode: lighten; z-index: 1; }
.bh--duoton .bh__bild::after { background: var(--bg); mix-blend-mode: darken; z-index: 2; }
.bh--technik img { filter: grayscale(1) contrast(0.95) brightness(1.1); }
.bh--technik .bh__bild { background: var(--bg); }
.bh__raster {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--text) 18%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--text) 18%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: multiply;
}
.bh__marke, .gf-bild__marke {
  position: absolute; display: flex; align-items: center; gap: 6px;
  font-family: var(--lab-mono); font-size: 10.5px; color: #111; background: rgba(255, 255, 255, 0.9); padding: 2px 6px 2px 4px;
}
.bh__marke i, .gf-bild__marke i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; }
.bh--kontrast img { filter: grayscale(1) contrast(1.55) brightness(0.95); }
.bh--kontrast .bh__bild::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 3px; background: var(--accent); }
.bh--licht .bh__bild { background: var(--bg); }
.bh--licht img { filter: saturate(0.55) contrast(0.8) brightness(1.1); opacity: 0.55; }

.bh-formate { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; }
.bf { margin: 0; display: grid; gap: 10px; }
.bf__bild { overflow: hidden; }
.bf__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--lab-kurve); }
.bf:hover .bf__bild img { transform: scale(1.04); }
.bf--panorama { grid-column: 1 / -1; }
.bf--panorama .bf__bild { aspect-ratio: 21 / 9; }
.bf--quer { grid-column: span 2; } .bf--quer .bf__bild { aspect-ratio: 3 / 2; }
.bf--hoch { grid-column: span 1; } .bf--hoch .bf__bild { aspect-ratio: 4 / 5; }
.bf--detail { grid-column: span 1; } .bf--detail .bf__bild { aspect-ratio: 4 / 5; } .bf--detail img { transform: scale(1.8); object-position: 50% 30%; }
.bf--detail:hover img { transform: scale(1.9); }
.bf--rund { grid-column: span 1; } .bf--rund .bf__bild { aspect-ratio: 4 / 5; border-radius: 22px; }
.bf--signet { grid-column: span 1; } .bf--signet .bf__bild { aspect-ratio: 1 / 1.07; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }

.bh-overlays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bo { margin: 0; display: grid; gap: 10px; position: relative; }
.bo__bild { aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--inverse); }
.bo__bild img { width: 100%; height: 100%; object-fit: cover; }
.bo--text .bo__bild::after { content: ""; position: absolute; inset: 0; bottom: auto; aspect-ratio: 4 / 3.2; background: linear-gradient(0deg, color-mix(in oklab, var(--inverse) 88%, transparent) 0%, transparent 62%); }
.bo__inhalt { position: absolute; left: 20px; right: 20px; top: 0; aspect-ratio: 4 / 3.2; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 20px; color: var(--text-inverse); z-index: 1; width: calc(100% - 40px); }
.bo__kicker { font-family: var(--lab-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 8px; }
.bo__titel { font-size: 22px; line-height: 1.12; font-weight: 500; letter-spacing: -0.015em; }
.bo--mess .bo__bild img { filter: grayscale(0.4); }
.bo__svg { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 3.2; height: auto; fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bo__svg path, .bo__svg circle { vector-effect: non-scaling-stroke; }
.bo__svg circle { fill: #fff; }
.bo__mass { position: absolute; left: 50%; top: 27%; transform: translateX(-50%); font-family: var(--lab-mono); font-size: 10.5px; background: #fff; color: #111; padding: 2px 6px; }
.bo--netz .bo__bild img { filter: grayscale(1) brightness(0.55) contrast(1.1); }
.bo__fx { position: absolute !important; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 3.2; background: transparent !important; }

.motivwelten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.motivwelt__bilder { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 4 / 3; margin-bottom: 12px; }
.motivwelt__bilder img { width: 100%; height: 100%; object-fit: cover; }
.motivwelt__bilder img:first-child { grid-row: span 2; }
.motivwelt p { margin: 0; }
.bh-regeln { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.bh-nachweis { margin-top: 36px; font-size: 13px; color: var(--lab-tinte-2); }
.bh-nachweis summary { cursor: pointer; font-weight: 600; color: var(--lab-tinte); }
.bh-nachweis ul { margin: 12px 0 0; padding-left: 18px; columns: 2; column-gap: 32px; }
.bh-nachweis li { margin-bottom: 4px; break-inside: avoid; }

/* --------------------------------------------------------------------------
   10 Auswahl
   -------------------------------------------------------------------------- */
.auswahl { display: grid; grid-template-columns: 7fr 5fr; gap: 18px; align-items: start; }
.auswahl__karte { background: var(--lab-weiss); border: 1px solid var(--lab-linie-2); padding: clamp(20px, 2.4vw, 36px); }
.auswahl__kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--lab-tinte); }
.auswahl__logo { width: 220px; }
.auswahl__kennung { font-family: var(--lab-mono); font-size: 12px; color: var(--lab-tinte-2); }
.auswahl__liste { margin: 0; display: grid; }
.auswahl__liste div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--lab-linie); align-items: baseline; }
.auswahl__liste dt { font-family: var(--lab-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lab-tinte-2); }
.auswahl__liste dd { margin: 0; font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.auswahl__fx dd { font-size: 16px !important; }
.auswahl__fx dd span { display: inline-block; margin: 0 6px 6px 0; padding: 3px 8px; border: 1px solid var(--lab-tinte); font-size: 14px; }
.auswahl__fx dd span b { font-family: var(--lab-mono); font-weight: 500; margin-right: 6px; }
.auswahl__farben { display: flex; height: 16px; margin: 20px 0; }
.auswahl__farben i { flex: 1; }
.auswahl__farben i:first-child { flex: 3; }
.auswahl__farben i:last-child { flex: 0.4; }
.auswahl__notiz { display: grid; gap: 6px; margin-bottom: 18px; }
.auswahl__notiz textarea { width: 100%; resize: vertical; border: 1px solid var(--lab-linie-2); background: var(--lab-papier); padding: 12px; font-size: 14.5px; }
.auswahl__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.auswahl__seite { background: var(--lab-papier); border: 1px solid var(--lab-linie); padding: 24px; }
.auswahl__seite .lab-klein { margin: 0 0 12px; }
.gemerkt { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.gemerkt li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--lab-linie); background: var(--lab-weiss); }
.gemerkt__muster { display: flex; width: 44px; height: 22px; border: 1px solid rgba(0, 0, 0, 0.1); }
.gemerkt__muster i { flex: 1; }
.gemerkt__text { font-size: 13px; line-height: 1.3; }
.gemerkt__text b { display: block; font-size: 13.5px; }
.gemerkt button { border: 1px solid var(--lab-linie-2); background: transparent; font-size: 12px; padding: 4px 8px; }
.gemerkt button:hover { background: var(--lab-tinte); color: #fff; }
.auswahl__text-titel { margin-top: 28px; }
.auswahl__text { margin: 0; padding: 14px; background: var(--lab-schwarz); color: #E9E6DF; font-family: var(--lab-mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }

/* --------------------------------------------------------------------------
   Vollbild, Hinweis, Fuss
   -------------------------------------------------------------------------- */
.vollbild {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(14, 14, 14, 0.94);
  color: #EEE;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(10px, 2vw, 28px);
  gap: 14px;
  animation: lab-ein 260ms var(--lab-kurve);
}
@keyframes lab-ein { from { opacity: 0; } }
.vollbild__kopf { display: flex; align-items: center; gap: 14px; }
.vollbild__nr { font-family: var(--lab-mono); font-size: 13px; background: #fff; color: #111; padding: 4px 8px; }
.vollbild__titel { margin: 0; font-size: 20px; font-weight: 500; flex: 1; }
.vollbild__stern { margin: 0; color: #eee; border-color: rgba(255, 255, 255, 0.25); }
.vollbild__stern[aria-pressed="true"] { background: #fff; color: #111; }
.vollbild__zu { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; display: grid; place-items: center; --ikon-gr: 18px; }
.vollbild__buehne { position: relative; min-height: 0; }
.vollbild__fx { position: absolute; inset: 0; }
.vollbild__fuss { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vollbild__fuss .effekt__nochmal { color: #fff; }
.vollbild__fuss input[type="range"] { accent-color: #fff; max-width: 320px; }
.vollbild__text { margin: 0; flex: 1; font-size: 14px; color: #BDBAB3; min-width: 240px; }
.vollbild__tasten { font-family: var(--lab-mono); font-size: 11px; color: #8A8780; }

.lab-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 400;
  transform: translateX(-50%);
  background: var(--lab-schwarz); color: #F4F2EC;
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  animation: lab-toast 240ms var(--lab-kurve);
}
@keyframes lab-toast { from { opacity: 0; transform: translate(-50%, 8px); } }

.lab-fuss { background: var(--lab-schwarz); color: #A9A69F; font-size: 12.5px; }
.lab-fuss__innen { max-width: var(--lab-max); margin: 0 auto; padding: 22px var(--lab-rand); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lab-fuss__innen span { display: inline-flex; align-items: center; gap: 10px; }
.lab-fuss__signet { width: 18px; --lg-sym: var(--lg-sym-d); }

/* Uebergang beim Wechsel der Designsprache */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: cubic-bezier(0.2, 0.7, 0.1, 1); }

/* --------------------------------------------------------------------------
   Schmale Fenster
   -------------------------------------------------------------------------- */
@media (max-width: 1560px) {
  .leiste__regler { gap: 10px; }
  .leiste__name em { display: none; }
}
@media (max-width: 1400px) {
  .leiste__knopf--text span { display: none; }
}
@media (max-width: 1280px) {
  .leiste__name { display: none; }
}
@media (max-width: 1180px) {
  .paletten { grid-template-columns: 1fr; }
  .palette { display: grid; grid-template-columns: 1fr 1fr; }
  .palette__kopf, .palette__gewicht { grid-column: 1; }
  .palette__liste { grid-column: 2; grid-row: 1 / span 5; padding-top: 22px; }
  .kgrid { grid-template-columns: 1fr 1fr; }
  .mlab { grid-template-columns: 1fr 1fr; }
  .effekt--breit { grid-column: 1 / -1; }
  .konfig__optionen--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dvergleich { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .design { grid-template-columns: 1fr; }
  .design__info { border-right: 0; border-bottom: 1px solid var(--lab-linie); }
  .kontexte { grid-template-columns: 1fr 1fr; }
  .motivwelten { grid-template-columns: 1fr 1fr; }
  .bh-formate { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bf--quer { grid-column: span 2; }
}
@media (max-width: 960px) {
  :root { --lab-leiste-h: 64px; }
  .leiste__abschnitte { display: none; }
  .leiste__auf {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; height: 34px; padding: 0 10px;
    --ikon-gr: 18px;
  }
  .leiste__kennung { font-family: var(--lab-mono); font-size: 11.5px; }
  .leiste__regler {
    display: none;
    position: fixed; left: 0; right: 0; top: var(--lab-leiste-h); bottom: 0;
    background: var(--lab-schwarz); padding: 20px var(--lab-rand) 40px;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px;
    overflow-y: auto;
  }
  .leiste.ist-offen .leiste__regler { display: flex; }
  .seg__knoepfe { flex-wrap: wrap; }
  .seg__titel { font-size: 10.5px; }
  .seg__btn { height: 40px; min-width: 44px; }
  .leiste__aktionen { border-left: 0; padding-left: 0; margin-left: 0; flex-wrap: wrap; }
  .leiste__knopf--text span { display: inline; }
  .lab-kopf { display: block; }
  .lab-h2 { margin-bottom: 18px; }
  .cover__text { grid-column: 1 / -1; }
  .cover__spalten, .cover__leitplanken { grid-template-columns: 1fr; }
  .cover__logo { width: 58%; left: 16px; bottom: 16px; }
  .cover__fx { inset: 0 0 24% 0; }
  .cover__buehne { height: 420px; }
  .konfig__optionen--4, .konfig__optionen--3 { grid-template-columns: 1fr 1fr; }
  .palette { display: flex; }
  .logozeile { grid-template-columns: 1fr; }
  .logozeile__kacheln { grid-template-columns: 1fr; }
  .logo-extra { grid-template-columns: 1fr; }
  .kgrid, .kkarten__reihe { grid-template-columns: 1fr; }
  .ktypo__zeile { grid-template-columns: 1fr; gap: 6px; }
  .mlab { grid-template-columns: 1fr; }
  .bh-raster, .bh-overlays { grid-template-columns: 1fr; }
  .bh-formate { grid-template-columns: 1fr 1fr; }
  .bf--quer, .bf--panorama { grid-column: 1 / -1; }
  .bh-regeln, .auswahl { grid-template-columns: 1fr; }
  .dvergleich { grid-template-columns: 1fr 1fr; }
  .auswahl__liste div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .konfig__optionen--5, .konfig__optionen--4, .konfig__optionen--3 { grid-template-columns: 1fr; }
  .motivwelten { grid-template-columns: 1fr; }
  .kontexte { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
