/* Demo-Labor: gemeinsames Stylesheet. Gleiche Designsprache wie die Hauptseite (dunkel, ruhig, Gletscher-Türkis). */
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --ink: #0b0d10; --ink-2: #111418; --ink-3: #181c21; --ink-4: #20252c;
  --line: rgba(236,234,228,.12); --line-strong: rgba(236,234,228,.24);
  --chalk: #ecEAe4; --chalk-2: #b9bcbf; --chalk-3: #7d8388;
  --glacier: #5fd4cf;
  --akzent: #5fd4cf; --akzent-ink: #0b0d10; --akzent-dim: rgba(95,212,207,.14); --akzent-line: rgba(95,212,207,.45);
  --ok: #7fd99a; --warn: #f0c060; --bad: #ff8a80; --info: #8db8ff;
  --papier: #f3efe6; --papier-ink: #1b1a17;
  --sans: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --gutter: clamp(16px, 4vw, 56px); --max: 1280px; --r: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--ink); color: var(--chalk); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.55; background: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100svh; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--akzent); color: var(--akzent-ink); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }
.l-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.l-mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-3); }
.l-mono b { color: var(--chalk-2); font-weight: 500; }
.l-k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--akzent); }
.l-punkt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-dim); margin-right: 10px; vertical-align: 1px; }
.l-fein { font-size: 13.5px; line-height: 1.5; color: var(--chalk-3); }
.l-fein b { color: var(--chalk-2); font-weight: 500; }
.l-fein a, .l-link { color: var(--akzent); border-bottom: 1px solid var(--akzent-line); }

/* Navigation */
.l-nav { position: sticky; top: 0; z-index: 40; background: rgba(11,13,16,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.l-nav .l-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.l-brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.01em; font-size: 15px; white-space: nowrap; }
.l-brand svg { width: 24px; height: 24px; }
.l-brand span { color: var(--chalk-3); font-weight: 400; }
.l-nav nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); font-size: 14px; color: var(--chalk-2); }
.l-nav nav a:hover { color: var(--chalk); }
.l-nav .l-cta-mini { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--chalk); transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.l-nav .l-cta-mini:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
@media (max-width: 640px) { .l-nav nav .l-opt { display: none; } .l-brand span { display: none; } }

/* Kopf einer Demo-Seite */
.l-kopf { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.l-krumen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.l-krumen a { color: var(--chalk-2); border-bottom: 1px solid transparent; }
.l-krumen a:hover { border-color: var(--chalk-3); }
.l-krumen i { font-style: normal; color: var(--chalk-3); }
.l-kopf h1 { font-size: clamp(34px, 5.6vw, 76px); line-height: .98; letter-spacing: -.04em; font-weight: 500; max-width: 18ch; }
.l-kopf .l-lead { margin-top: 18px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; color: var(--chalk-2); max-width: 44ch; letter-spacing: -.01em; }
.l-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.l-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--chalk-2); }
.l-tag b { color: var(--chalk); font-weight: 500; }
.l-tag.akzent { border-color: var(--akzent-line); color: var(--akzent); }

/* Bühne */
.l-buehne { margin: 0 0 clamp(40px, 6vw, 80px); border: 1px solid var(--line); border-radius: 22px; background: var(--ink-2); overflow: hidden; }
.l-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--line); }
.l-bar .l-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.l-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--chalk-2); white-space: nowrap; }
.l-badge.demo { border-color: var(--akzent-line); color: var(--akzent); background: var(--akzent-dim); }
.l-badge.ok { border-color: rgba(127,217,154,.5); color: var(--ok); background: rgba(127,217,154,.1); }
.l-badge.warn { border-color: rgba(240,192,96,.55); color: var(--warn); background: rgba(240,192,96,.1); }
.l-badge.bad { border-color: rgba(255,138,128,.55); color: var(--bad); background: rgba(255,138,128,.1); }
.l-badge.info { border-color: rgba(141,184,255,.5); color: var(--info); background: rgba(141,184,255,.1); }
.l-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.l-zwei .l-stage { grid-template-columns: minmax(0, 1fr) 340px; }
.l-main { padding: clamp(16px, 2.4vw, 30px); min-width: 0; min-height: 320px; }
.l-kopplung { border-left: 1px solid var(--line); padding: clamp(16px, 2vw, 24px); display: grid; align-content: start; gap: 14px; background: rgba(0,0,0,.14); }
.l-kopplung h2 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.l-qr { justify-self: start; width: 172px; background: #fff; padding: 10px; border-radius: 12px; }
.l-qr svg { width: 100%; height: auto; }
.l-count { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--chalk-2); }
.l-count i, .l-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--chalk-3); flex: none; }
.l-count.an, .l-live.an { color: var(--chalk); }
.l-count.an i, .l-live.an i { background: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-dim); animation: l-puls 1.6s ease-in-out infinite; }
@keyframes l-puls { 50% { box-shadow: 0 0 0 8px rgba(95,212,207,0); } }
.l-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-3); }
.l-phone { display: grid; justify-items: center; gap: 10px; margin: 0; }
.l-device { position: relative; width: 300px; max-width: 100%; height: 600px; border-radius: 44px; padding: 12px; background: #1a1d21; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px #000, 0 40px 80px -30px rgba(0,0,0,.9); }
.l-device iframe { width: 100%; height: 100%; border: 0; border-radius: 33px; background: var(--ink); display: block; }
.l-notch { position: absolute; top: 19px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 20px; background: #000; z-index: 2; pointer-events: none; }
.l-seg { display: none; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin: 12px clamp(14px, 2vw, 22px) 0; width: fit-content; }
.l-seg button { border: 0; background: none; color: var(--chalk-2); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.l-seg button[aria-selected="true"] { background: var(--chalk); color: var(--ink); }
@media (max-width: 960px) {
  .l-zwei .l-stage { grid-template-columns: minmax(0, 1fr); }
  .l-kopplung { border-left: 0; border-top: 1px solid var(--line); }
  .l-zwei .l-seg { display: flex; }
  .l-zwei.l-tab-handy .l-main { display: none; }
  .l-zwei:not(.l-tab-handy) .l-simbox { display: none; }
  .l-zwei.l-tab-handy .l-kopplung > :not(.l-simbox) { display: none; }
  .l-zwei.l-tab-handy .l-kopplung { border-top: 0; background: none; }
}

/* Erklärabschnitte */
.l-sek { padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.l-sek h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.l-sek .l-lead2 { color: var(--chalk-2); max-width: 60ch; margin-bottom: 22px; }
.l-zwei-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
@media (max-width: 800px) { .l-zwei-spalten { grid-template-columns: 1fr; } }
.l-zeittab { width: 100%; border-collapse: collapse; font-size: 15px; }
.l-zeittab th, .l-zeittab td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.l-zeittab th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-3); font-weight: 500; }
.l-zeittab td:first-child { font-family: var(--mono); font-size: 13px; color: var(--akzent); white-space: nowrap; }
@media (max-width: 640px) {
  .l-zeittab thead { display: none; }
  .l-zeittab tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .l-zeittab td { display: block; border: 0; padding: 2px 0; }
  .l-zeittab td:nth-child(2)::before { content: "Bildschirm: "; color: var(--chalk-3); }
  .l-zeittab td:nth-child(3)::before { content: "Handy: "; color: var(--chalk-3); }
}
.l-rechnen { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.4vw, 28px); background: var(--ink-2); display: grid; gap: 18px; }
.l-rfelder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .l-rfelder { grid-template-columns: 1fr; } }
.l-ergebnis { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; line-height: 1.25; }
.l-ergebnis b { color: var(--akzent); font-weight: 500; }
.l-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); }
@media (max-width: 800px) { .l-cta { grid-template-columns: 1fr; } }
.l-cta h2 { font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.05; font-weight: 500; }
.l-cta p { color: var(--chalk-2); margin-top: 10px; }
.l-cta-knoepfe { display: grid; gap: 10px; }
.l-weiter { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 8px; }
.l-weiter a { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; min-width: 200px; transition: border-color .2s, background .2s; }
.l-weiter a:hover { border-color: var(--akzent); background: var(--akzent-dim); }
.l-weiter a:last-child { text-align: right; margin-left: auto; }
.l-weiter strong { font-weight: 500; font-size: 16px; }
.l-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 32px; }
.l-foot .l-wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* Bausteine für Demos */
.l-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-3); padding: clamp(14px, 2vw, 22px); min-width: 0; }
.l-card.papier { background: var(--papier); color: var(--papier-ink); border-color: transparent; }
.l-card h3, .l-h3 { font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.l-card > .l-k + h3 { margin-top: 6px; }
.l-spalten { display: grid; grid-template-columns: repeat(var(--sp, 2), minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); align-items: start; }
@media (max-width: 760px) { .l-spalten { grid-template-columns: 1fr; } }
.l-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 160px), 1fr)); gap: clamp(10px, 1.6vw, 16px); }
.l-reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.l-reihe.mitte { justify-content: center; }
.l-reihe.rand { justify-content: space-between; }
.l-stapel { display: grid; gap: var(--gap, 12px); }
.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 999px; border: 0; background: var(--akzent); color: var(--akzent-ink); font-weight: 600; font-size: 15px; min-height: 46px; transition: transform .25s var(--ease), background .2s, opacity .2s, filter .2s; text-align: center; }
.l-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.l-btn:active { transform: scale(.97); }
.l-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; filter: none; }
.l-btn.sek { background: transparent; color: var(--chalk); border: 1px solid var(--line-strong); font-weight: 500; }
.l-btn.sek:hover { border-color: var(--akzent); background: var(--akzent-dim); filter: none; }
.l-btn.hell { background: var(--chalk); color: var(--ink); }
.l-btn.klein { padding: 8px 14px; min-height: 36px; font-size: 13px; }
.l-btn.gross { padding: 17px 26px; min-height: 58px; font-size: 17px; }
.l-btn.voll { width: 100%; }
.l-btn.gefahr { background: transparent; color: var(--bad); border: 1px solid rgba(255,138,128,.5); }
.l-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.l-chip { padding: 9px 15px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--chalk-2); font-size: 14.5px; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.l-chip:hover { border-color: var(--chalk-3); color: var(--chalk); }
.l-chip[aria-pressed="true"], .l-chip.an { border-color: var(--akzent); background: var(--akzent-dim); color: var(--chalk); }
.l-feld { display: grid; gap: 6px; font-size: 13.5px; color: var(--chalk-3); min-width: 0; }
.l-feld > span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.l-input, .l-select, .l-text { width: 100%; padding: 12px 14px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--ink); color: var(--chalk); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.l-text { min-height: 90px; resize: vertical; }
.l-input:focus, .l-select:focus, .l-text:focus { outline: 0; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-dim); }
.l-input::placeholder, .l-text::placeholder { color: var(--chalk-3); }
.l-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d8388' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.l-range { width: 100%; accent-color: var(--akzent); min-height: 32px; }
.l-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--chalk-2); cursor: pointer; }
.l-check input { accent-color: var(--akzent); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.l-ablage { display: grid; place-items: center; gap: 6px; text-align: center; padding: 26px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); color: var(--chalk-2); cursor: pointer; transition: border-color .2s, background .2s; min-height: 140px; }
.l-ablage:hover, .l-ablage.ueber { border-color: var(--akzent); background: var(--akzent-dim); }
.l-ablage strong { color: var(--chalk); font-weight: 500; }
.l-ablage small { color: var(--chalk-3); font-size: 13px; }
.l-ablage input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.l-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.l-tabelle th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-3); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.l-tabelle td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.l-tabelle .n, .l-tabelle th.n { text-align: right; font-variant-numeric: tabular-nums; }
.l-tabelle tr.warn td { background: rgba(240,192,96,.07); }
.l-tabelle tr.bad td { background: rgba(255,138,128,.07); }
.l-tabelle-rahmen { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.l-leer { padding: 28px 12px; text-align: center; color: var(--chalk-3); font-size: 14.5px; }
.l-bild { border-radius: 12px; background: var(--ink-4); object-fit: cover; width: 100%; }
.l-shopbar { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.l-shopbar .l-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--akzent); color: var(--akzent-ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; flex: none; }
.l-shopbar .l-logo img { width: 100%; height: 100%; object-fit: cover; }
.l-shopbar strong { font-weight: 500; letter-spacing: -.01em; }
.l-shopbar small { display: block; color: var(--chalk-3); font-size: 12.5px; }
.l-pop { animation: l-pop .6s var(--ease); }
@keyframes l-pop { 0% { transform: scale(.94); opacity: .3; } 50% { transform: scale(1.03); } 100% { transform: none; opacity: 1; } }
.l-blitz { animation: l-blitz 1.1s var(--ease); }
@keyframes l-blitz { 0% { background-color: var(--akzent-dim); box-shadow: 0 0 0 2px var(--akzent-line); } 100% { background-color: transparent; box-shadow: none; } }
.l-rein { animation: l-rein .5s var(--ease); }
@keyframes l-rein { from { opacity: 0; transform: translateY(8px); } }
.l-zaehler { font-variant-numeric: tabular-nums; }
.l-gross-zahl { font-size: clamp(44px, 8vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Ablauf-Motor (Schritte, Protokoll, Ergebnis) */
.l-steps { list-style: none; display: grid; gap: 2px; }
.l-steps li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; font-size: 14.5px; color: var(--chalk-3); }
.l-steps .st { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.l-steps li.run { color: var(--chalk); }
.l-steps li.run .st { border-color: var(--akzent); border-top-color: transparent; animation: l-dreh .8s linear infinite; }
.l-steps li.done { color: var(--chalk-2); }
.l-steps li.done .st { background: var(--akzent); border-color: var(--akzent); box-shadow: inset 0 0 0 3px var(--ink-3); }
.l-steps li.done.warn .st { background: var(--warn); border-color: var(--warn); }
.l-steps .ms { font-family: var(--mono); font-size: 11px; color: var(--chalk-3); }
@keyframes l-dreh { to { transform: rotate(360deg); } }
.l-log { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--chalk-3); background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 120px; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.l-log .g { color: var(--ok); } .l-log .y { color: var(--warn); } .l-log .r { color: var(--bad); } .l-log .w { color: var(--chalk); }
.l-doc { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-3); transition: border-color .3s, background .3s; }
.l-doc .ic { width: 34px; height: 40px; border-radius: 5px; background: var(--ink-4); border: 1px solid var(--line-strong); position: relative; }
.l-doc .ic::after { content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 2px; background: var(--chalk-3); box-shadow: 0 6px 0 var(--chalk-3), 0 12px 0 var(--chalk-3); opacity: .5; }
.l-doc b { font-weight: 500; display: block; font-size: 14.5px; }
.l-doc small { display: block; color: var(--chalk-3); font-size: 12.5px; }
.l-doc.aktiv { border-color: var(--akzent); background: var(--akzent-dim); }
.l-doc.ok { border-color: rgba(127,217,154,.5); }
.l-doc.warn { border-color: rgba(240,192,96,.6); }

/* Toast */
.l-toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translate(-50%, 160%); background: var(--chalk); color: var(--ink); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; z-index: 90; transition: transform .5s var(--ease); max-width: 90vw; text-align: center; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); }
.l-toast.an { transform: translate(-50%, 0); }

/* Profil-Formular */
.l-profil { display: grid; gap: 14px; }
.l-farben { display: flex; flex-wrap: wrap; gap: 10px; }
.l-farben button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: 0 0 0 1px var(--line-strong); transition: transform .2s; }
.l-farben button:hover { transform: scale(1.08); }
.l-farben button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--chalk); }

/* Handy-Ansicht und Einbettung */
html.l-handy body { max-width: 520px; margin: 0 auto; }
html.l-handy .l-nav, html.l-handy .l-kopf, html.l-handy .l-sek, html.l-handy .l-foot, html.l-handy .l-weiter, html.l-handy .l-seg, html.l-handy .l-kopplung, html.l-handy .l-bar .l-nurhost, html.l-handy .l-krumen { display: none !important; }
html.l-handy .l-wrap { padding: 0; }
html.l-handy .l-buehne { margin: 0; border: 0; border-radius: 0; background: var(--ink); min-height: 100svh; }
html.l-handy .l-bar { border: 0; padding: max(12px, env(safe-area-inset-top)) 16px 4px; }
html.l-handy .l-main { padding: 6px 16px max(28px, env(safe-area-inset-bottom)); }
html.l-handy .l-zwei .l-stage { grid-template-columns: 1fr; }
html.l-embed .l-nav, html.l-embed .l-kopf, html.l-embed .l-sek, html.l-embed .l-foot, html.l-embed .l-weiter { display: none !important; }
html.l-embed .l-wrap { padding: 0; max-width: none; }
html.l-embed .l-buehne { margin: 0; border-radius: 0; border: 0; }
html.l-embed body { min-height: 0; }
.l-handy-fuss { display: none; text-align: center; padding: 18px 16px max(20px, env(safe-area-inset-bottom)); }
html.l-handy .l-handy-fuss { display: block; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .l-nav, .l-kopf, .l-sek, .l-foot, .l-kopplung, .l-bar, .l-weiter, .l-toast { display: none !important; } body, html { background: #fff; color: #000; } }

/* Dialog, Einbettung, Kleinkram */
.l-dialog { border: 1px solid var(--line-strong); border-radius: 20px; background: var(--ink-2); color: var(--chalk); padding: clamp(18px, 3vw, 28px); width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; margin: auto; }
.l-dialog::backdrop { background: rgba(5,6,8,.72); backdrop-filter: blur(4px); }
.l-dialog h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 14px; }
.l-dialog .l-btn { margin-top: 18px; width: 100%; }
.l-nurembed { display: none; }
html.l-embed .l-nurembed { display: inline-flex; }
@media (max-width: 960px) { .l-simtoggle { display: none !important; } }

/* Simuliertes Handy: Platz für die Kamera-Aussparung */
html.l-sim .l-bar { padding-top: 40px !important; }
