/* =========================================================================
   Ladungssicherungsrechner – Design
   Standard-CI angelehnt an ladungssicherung.eu (Rot #DA1F31, Anthrazit, Roboto / PT Sans Narrow)
   Kunden-CI überschreibt --brand / --ink / Schriften zur Laufzeit.
   ========================================================================= */
:root {
  --brand: #da1f31;
  --ink: #1f2937;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'PT Sans Narrow', 'Roboto Condensed', 'Arial Narrow', sans-serif;

  --brand-600: color-mix(in oklab, var(--brand) 86%, black);
  --brand-50: color-mix(in oklab, var(--brand) 8%, var(--surface));
  --brand-100: color-mix(in oklab, var(--brand) 16%, var(--surface));
  --on-brand: #fff;

  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --text: #444444;
  --text-strong: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --bad: #b91c1c;
  --bad-bg: #fef2f2;
  --warn: #a16207;
  --warn-bg: #fffbeb;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 4px 16px rgb(16 24 40 / .06);
  --shadow-lg: 0 10px 40px rgb(16 24 40 / .14);

  /* Grafik */
  --g-wood-a: #e9c48f;
  --g-wood-b: #c8955a;
  --g-plank: rgb(120 72 30 / .35);
  --g-floor: #4b5563;
  --g-floor-top: #e5e7eb;
  --g-chassis: #1f2937;
  --g-wheel: #111827;
  --g-hub: #9ca3af;
  /* Grafik-Baukasten (Fahrzeug, Ladung, Beschläge) */
  --k-deck-a: #c9ced4; --k-deck-b: #8c949d; --k-deck-c: #4b5563;
  --k-steel-a: #6b7280; --k-steel-b: #1f2937;
  --k-tire-a: #0a0a0a; --k-tire-b: #3f3f46;
  --k-metal-a: #f3f4f6; --k-metal-b: #9ca3af; --k-metal-c: #4b5563;
  --k-wood-a: #ebc795; --k-wood-b: #cf9a5c; --k-wood-c: #a86f36;
  --k-woodtop-a: #f3d3a6; --k-woodtop-b: #d9a86b;
  --k-batten-a: #b98244; --k-batten-b: #a86f36;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#0f1115; --surface:#171a21; --surface-2:#1d212a; --text:#d1d5db; --text-strong:#f9fafb; --muted:#9ca3af; --border:#2b313c; --ok:#4ade80; --ok-bg:#0f2a1b; --bad:#f87171; --bad-bg:#2d1414; --warn:#facc15; --warn-bg:#2a2410; --shadow:0 1px 2px rgb(0 0 0 / .4), 0 4px 16px rgb(0 0 0 / .35); --g-floor-top:#2b313c; --g-floor:#6b7280; --g-chassis:#374151; --g-wheel:#030712; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg:#0f1115; --surface:#171a21; --surface-2:#1d212a; --text:#d1d5db; --text-strong:#f9fafb; --muted:#9ca3af; --border:#2b313c; --ok:#4ade80; --ok-bg:#0f2a1b; --bad:#f87171; --bad-bg:#2d1414; --warn:#facc15; --warn-bg:#2a2410; --shadow:0 1px 2px rgb(0 0 0 / .4), 0 4px 16px rgb(0 0 0 / .35); --g-floor-top:#2b313c; --g-floor:#6b7280; --g-chassis:#374151; --g-wheel:#030712; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-strong); line-height: 1.15; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Header ---------------- */
.topbar { height: 4px; background: var(--brand); }
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; cursor: pointer; background: none; border: 0; padding: 0; }
.brand img { height: 38px; max-width: 170px; object-fit: contain; display: block; }
.wordmark { font: italic 800 26px/1 var(--font-body); letter-spacing: -.02em; color: var(--brand); white-space: nowrap; }
.wordmark span { color: var(--text-strong); font-weight: 400; }
.brand-sub { font-family: var(--font-head); font-size: 15px; color: var(--muted); border-left: 1px solid var(--border); padding-left: 12px; white-space: nowrap; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.norm-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.norm-switch button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.norm-switch button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 2px 8px color-mix(in oklab, var(--brand) 35%, transparent); }

.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--text-strong); transition: .15s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------------- Layout ---------------- */
main { max-width: 1240px; margin: 0 auto; padding: 24px 16px 96px; }
.view[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 10px 18px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: .15s; text-decoration: none; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 14px color-mix(in oklab, var(--brand) 28%, transparent); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-link { background: none; border: 0; color: var(--brand); padding: 6px 4px; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }

/* ---------------- Home / Auswahl ---------------- */
.hero { display: grid; gap: 6px; margin: 8px 0 26px; }
.eyebrow { font-family: var(--font-head); font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 700; }
.hero p { margin: 4px 0 0; max-width: 720px; color: var(--muted); font-size: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.choice {
  position: relative; text-align: left; background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px; padding: 0; cursor: pointer; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column;
  align-self: stretch; height: 100%; /* Kacheln einer Reihe immer gleich hoch */
}
.choice-body { flex: 1; align-content: start; }
.choice-cta { margin-top: auto !important; }
.choice:hover, .choice:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); outline: none; }
.choice-figure { background: linear-gradient(180deg, var(--brand-50), var(--surface)); padding: 18px 18px 6px; border-bottom: 1px solid var(--border); }
.choice-body { padding: 18px 22px 22px; display: grid; gap: 8px; }
.choice-body p { margin: 0; color: var(--muted); }
.choice-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 3px 9px; border-radius: 999px; justify-self: start; }
.choice-cta { margin-top: 6px; color: var(--brand); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.choice-cta svg { width: 18px; height: 18px; transition: transform .2s; }
.choice:hover .choice-cta svg { transform: translateX(4px); }

.info-strip { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.info-strip div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.info-strip strong { display: block; color: var(--text-strong); font-family: var(--font-head); font-size: 17px; margin-bottom: 2px; }

/* ---------------- Grafik ---------------- */
.lasi-graphic { width: 100%; height: auto; display: block; }
.lasi-graphic .g-wood-a { stop-color: var(--g-wood-a); }
.lasi-graphic .g-wood-b { stop-color: var(--g-wood-b); }
.lasi-graphic .g-box { stroke: #9a6a36; stroke-width: 1.2; }
.lasi-graphic .g-plank { stroke: var(--g-plank); stroke-width: 1; }
.lasi-graphic .g-batten { fill: rgb(120 72 30 / .18); }
.lasi-graphic .g-floor { fill: var(--g-floor); }
.lasi-graphic .g-floor-top { fill: var(--g-floor-top); stroke: var(--border); }
.lasi-graphic .g-chassis { fill: var(--g-chassis); }
.lasi-graphic .g-wheel { fill: var(--g-wheel); }
.lasi-graphic .g-hub { fill: var(--g-hub); }
.lasi-graphic .g-tread { stroke: #4b5563; stroke-width: 1.5; }
.lasi-graphic .g-strap { stroke: var(--brand); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lasi-graphic .g-strap-top { stroke-width: 4; }
.lasi-graphic .g-ratchet { fill: var(--g-chassis); stroke: #fff; stroke-width: 1.2; }
.lasi-graphic .g-anchor { fill: var(--surface); stroke: var(--text-strong); stroke-width: 2; }
.lasi-graphic .g-anglearc { fill: none; stroke: #f59e0b; stroke-width: 2.5; }
.lasi-graphic .g-angle { font: italic 700 20px var(--font-body); fill: #d97706; }
.lasi-graphic .g-force { stroke: var(--text-strong); stroke-width: 2.5; }
.lasi-graphic .g-arrowhead { fill: var(--text-strong); }
.lasi-graphic .g-arrowhead-brand { fill: var(--brand); }
.lasi-graphic .g-dir { stroke: var(--brand); stroke-width: 3; }
.lasi-graphic .g-dim { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.lasi-graphic .g-axis { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 6 5; opacity: .6; }
.lasi-graphic .g-label { font: 600 14px var(--font-body); fill: var(--text-strong); }
.lasi-graphic .g-brandtext { fill: var(--brand); }
.lasi-graphic .g-title { font: 700 14px var(--font-head); fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.lasi-graphic .g-small { font: 600 12px var(--font-body); }
.lasi-graphic .g-muted { fill: var(--muted); }
.lasi-graphic .g-edge { fill: #9ca3af; stroke: var(--text-strong); stroke-width: 1; }
.lasi-graphic .g-cg { fill: var(--surface); stroke: var(--text-strong); stroke-width: 2; }
.lasi-graphic .g-cg-fill { fill: var(--text-strong); }
.lasi-graphic .g-tip { fill: #f59e0b; stroke: var(--surface); stroke-width: 2; }
.lasi-graphic .g-dimline { stroke: var(--muted); stroke-width: 1.2; }
.lasi-graphic .g-dimtick { stroke: var(--muted); stroke-width: 1.2; }
.lasi-graphic .g-dimhead { fill: var(--muted); }
.lasi-graphic .g-dimbg { fill: var(--surface); }
.lasi-graphic .g-dimlabel { font: italic 500 13px var(--font-body); fill: var(--text-strong); }
.lasi-graphic .g-dimmain { fill: var(--brand); font-size: 14px; }
.lasi-graphic .g-wall { fill: var(--g-chassis); }
.lasi-graphic .g-post { fill: #6b7280; stroke: var(--text-strong); stroke-width: 1; }
.lasi-graphic .g-wedge { fill: #f59e0b; stroke: #92400e; stroke-width: 1.2; }
.lasi-graphic .g-core { fill: rgb(120 72 30 / .25); stroke: #9a6a36; stroke-width: 1; }
.lasi-graphic .g-support { fill: var(--text-strong); }
.lasi-graphic .g-grid { stroke: var(--border); stroke-width: 1; }
.lasi-graphic .g-area { fill: color-mix(in oklab, var(--ok) 16%, transparent); }
.lasi-graphic .g-curve { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linejoin: round; }
.lasi-graphic .g-pt-ok { fill: var(--ok); stroke: var(--surface); stroke-width: 2; }
.lasi-graphic .g-pt-bad { fill: var(--bad); stroke: var(--surface); stroke-width: 2; }
.lasi-graphic .g-win { fill: color-mix(in oklab, var(--ok) 45%, transparent); }
.lasi-graphic .g-rolltip { stroke: #d97706; stroke-width: 2.5; stroke-dasharray: 5 3; }
.lasi-graphic .g-badge { fill: var(--text-strong); }
.lasi-graphic .g-badgetext { font: 700 11px var(--font-body); fill: var(--surface); }
/* Grafik-Baukasten (graphics.js, K.*) */
.lasi-graphic .k-deck-a { stop-color: var(--k-deck-a); } .lasi-graphic .k-deck-b { stop-color: var(--k-deck-b); } .lasi-graphic .k-deck-c { stop-color: var(--k-deck-c); }
.lasi-graphic .k-steel-a { stop-color: var(--k-steel-a); } .lasi-graphic .k-steel-b { stop-color: var(--k-steel-b); }
.lasi-graphic .k-tire-a { stop-color: var(--k-tire-a); } .lasi-graphic .k-tire-b { stop-color: var(--k-tire-b); }
.lasi-graphic .k-metal-a { stop-color: var(--k-metal-a); } .lasi-graphic .k-metal-b { stop-color: var(--k-metal-b); } .lasi-graphic .k-metal-c { stop-color: var(--k-metal-c); }
.lasi-graphic .k-wood-a { stop-color: var(--k-wood-a); } .lasi-graphic .k-wood-b { stop-color: var(--k-wood-b); } .lasi-graphic .k-wood-c { stop-color: var(--k-wood-c); }
.lasi-graphic .k-woodtop-a { stop-color: var(--k-woodtop-a); } .lasi-graphic .k-woodtop-b { stop-color: var(--k-woodtop-b); }
.lasi-graphic .k-batten-a { fill: var(--k-batten-a); } .lasi-graphic .k-batten-b { fill: var(--k-batten-b); }
.lasi-graphic .k-shadow { fill: #000; opacity: .22; }
.lasi-graphic .k-plank { stroke: #9a6430; stroke-opacity: .55; stroke-width: 1.2; }
.lasi-graphic .k-grain { fill: none; stroke: #b07a40; stroke-opacity: .45; stroke-width: .8; }
.lasi-graphic .k-bar { stroke: #6b7280; stroke-opacity: .6; stroke-width: 1; }
.lasi-graphic .k-tread { stroke: #52525b; stroke-width: 1.2; }
.lasi-graphic .k-hl { stroke: #e5e7eb; stroke-width: 1; }
.lasi-graphic .k-strap { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.lasi-graphic .k-stitch { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: .8; stroke-dasharray: 3 3; }
.lasi-graphic .k-anchor { stroke: #374151; stroke-width: 1; }
.lasi-graphic .k-lever { fill: #374151; }
.lasi-graphic .k-arc { fill: none; stroke: var(--text-strong); stroke-width: 1; }
.lasi-graphic .k-lbl { font: 400 14px var(--font-body); fill: var(--text-strong); paint-order: stroke; stroke: var(--surface); stroke-width: 3; stroke-linejoin: round; }
.lasi-graphic .k-lbl-brand { font: 500 15px var(--font-body); fill: var(--brand); }
.lasi-graphic .k-lbl-on { font: italic 400 14px var(--font-body); fill: #1f2937; paint-order: stroke; stroke: var(--k-woodtop-a); stroke-width: 3; }
.lasi-graphic .k-force { stroke: #1f2937; stroke-width: 2; }
.lasi-graphic .k-arrowhead { fill: #1f2937; }
.lasi-graphic .k-arrowhead-ui { fill: var(--text-strong); }
.lasi-graphic .k-cg { fill: #fff; stroke: #1f2937; stroke-width: 1.2; }
.lasi-graphic .k-cg-fill { fill: #1f2937; }
.lasi-graphic .k-axis { stroke: var(--muted); stroke-width: .8; stroke-dasharray: 12 3 2 3; }
.lasi-graphic .k-dir { stroke: var(--text-strong); stroke-width: 1.5; }
.lasi-graphic .k-small { font: 400 12px var(--font-body); fill: var(--muted); }
.lasi-graphic .k-title { font: 500 13px var(--font-body); fill: var(--muted); }
.lasi-graphic .k-lbl-s { font-size: 12px; }
.lasi-graphic .k-ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.lasi-graphic .k-edge { fill: #9ca3af; stroke: #374151; stroke-width: 1; }
.lasi-graphic .k-force-ui { stroke: var(--text-strong); stroke-width: 2; }
.lasi-graphic .k-roll { stroke: #9a6a36; stroke-width: 1.2; }
.lasi-graphic .k-plan { fill: var(--g-floor-top); stroke: var(--k-deck-b); stroke-width: 1.5; }

/* ---------------- Rechner ---------------- */
.calc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.calc-head .grow { flex: 1 1 280px; min-width: 0; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.crumbs button { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; }
.method-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.method-tabs button { border: 0; background: none; border-radius: 9px; padding: 8px 14px; cursor: pointer; font-weight: 500; color: var(--muted); }
.method-tabs button[aria-selected="true"] { background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); }
/* Kippen: Unterpunkte (Kippart) */
.tip-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tip-mode { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 500; color: var(--muted); }
.tip-mode[aria-pressed="true"] { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.tip-mode-norm { margin-left: auto; }

.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
#calc-results { scroll-margin-top: 80px; }
.calc-side { position: sticky; top: 84px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.calc-side > *, .calc-grid > * { min-width: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.section { padding: 18px 20px 20px; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: 0; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-num { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.section-head h3 { flex: 1; }
.section-head .hint { font-size: 12.5px; color: var(--muted); }
/* Auf- und zuklappbarer Abschnitt (z. B. Fahrzeug im Lastverteilungsplan) */
details.fold > summary { list-style: none; cursor: pointer; margin-bottom: 0; flex-wrap: wrap; user-select: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary { margin-bottom: 14px; }
details.fold[open] .fold-sum { display: none; }
details.fold .fold-sum { flex: 1 1 100%; order: 3; padding-left: 36px; margin-top: -4px; }
details.fold .fold-chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 6px 0 auto; transition: transform .15s; flex: none; }
details.fold[open] .fold-chev { transform: rotate(-135deg); margin-top: 4px; }
details.fold > summary:hover .fold-chev { border-color: var(--brand); }
details.fold > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }

.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 12px 14px; }
.field { display: grid; gap: 5px; min-width: 0; align-content: end; } /* Eingabefelder einer Reihe bündig, auch bei zweizeiligem Feldnamen */
.field.wide { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 13px; font-weight: 500; color: var(--text-strong); display: block; }
.field label .tip { margin-left: 5px; vertical-align: -3px; }
.field small { color: var(--muted); font-size: 12px; }
.input { position: relative; display: flex; align-items: stretch; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent); }
.input { min-width: 0; }
.input input, .input select { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 9px 11px; outline: none; font-variant-numeric: tabular-nums; }
.input select { cursor: pointer; }
.input textarea { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 9px 11px; outline: none; font: inherit; color: inherit; line-height: 1.45; resize: vertical; min-height: 4.6em; }
.remark-flag { display: inline-flex; align-items: center; vertical-align: -2px; color: var(--brand); }
.remark-flag svg { width: 14px; height: 14px; }
small .remark-flag svg { width: 12px; height: 12px; }
.backup-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 2px 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.backup-note svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
.input .unit { display: grid; place-items: center; padding: 0 11px; color: var(--muted); font-size: 13px; border-left: 1px solid var(--border); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input.invalid { border-color: var(--bad); }
textarea.input { padding: 9px 11px; min-height: 70px; resize: vertical; outline: none; width: 100%; }
input[type="text"].plain, input[type="url"].plain, input[type="email"].plain { width: 100%; }

.tip { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--border); display: inline-grid; place-items: center; font-size: 11px; color: var(--muted); cursor: help; position: relative; background: var(--surface-2); }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; background: var(--text-strong); color: var(--surface); font-size: 12px; font-weight: 400; line-height: 1.4; padding: 8px 10px; border-radius: 8px; z-index: 30; white-space: normal; box-shadow: var(--shadow-lg); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 7px 12px; border-radius: 9px; border: 1.5px solid var(--border); font-size: 13.5px; background: var(--surface); transition: .15s; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-strong); font-weight: 500; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 999px; background: var(--border); position: relative; transition: .2s; cursor: pointer; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { left: 20px; }
.collapsible[hidden] { display: none; }
.collapsible { margin-top: 14px; }

.lashing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.lashing { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.lashing-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-strong); font-size: 14px; }
.lashing-title .num { width: 22px; height: 22px; border-radius: 50%; background: var(--text-strong); color: var(--surface); display: grid; place-items: center; font-size: 12px; }
.lashing .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lashing .input input { padding: 8px 8px; }
.lashing .input .unit { padding: 0 7px; font-size: 12px; }

/* ---------------- Ergebnisse ---------------- */
.verdict { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); border: 1px solid; }
.verdict.ok { background: var(--ok-bg); border-color: color-mix(in oklab, var(--ok) 30%, transparent); }
.verdict.bad { background: var(--bad-bg); border-color: color-mix(in oklab, var(--bad) 30%, transparent); }
.verdict-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.verdict.ok .verdict-icon { background: var(--ok); }
.verdict.bad .verdict-icon { background: var(--bad); }
.verdict-icon svg { width: 24px; height: 24px; }
.verdict h3 { font-size: 20px; }
.verdict p { margin: 2px 0 0; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; min-width: 0; }
.kpi .k { font-size: 12px; color: var(--muted); }
.kpi .v { font: 700 22px/1.2 var(--font-head); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.kpi .v small { font: 400 13px var(--font-body); color: var(--muted); margin-left: 2px; }
.kpi.accent .v { color: var(--brand); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.res { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.res th, table.res td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.res th:first-child, table.res td:first-child { text-align: left; }
table.res thead th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
table.res tbody th { font-weight: 500; color: var(--text); }
table.res tr.total td, table.res tr.total th { font-weight: 700; color: var(--text-strong); }
table.res tr.missing td { font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.val-bad { color: var(--bad); }
.val-ok { color: var(--ok); }

.alerts { display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }

details.formula { border-top: 1px solid var(--border); }
details.formula summary { cursor: pointer; padding: 12px 20px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; align-items: center; gap: 8px; }
details.formula summary::-webkit-details-marker { display: none; }
details.formula summary::before { content: '›'; font-size: 20px; line-height: 1; color: var(--brand); transition: transform .2s; }
details.formula[open] summary::before { transform: rotate(90deg); }
.formula-body { padding: 0 20px 16px; font-size: 14px; display: grid; gap: 10px; }
.eq { font-family: 'Cambria Math', 'STIX Two Math', Georgia, serif; font-size: 16.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; overflow-x: auto; color: var(--text-strong); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.frac { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; }
.frac > span:first-child { border-bottom: 1.4px solid currentColor; padding: 0 4px 2px; }
.frac > span:last-child { padding: 2px 4px 0; }
.legend-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }

/* Rechenweg mit eingesetzten Werten */
.steps-title { font: 700 15px var(--font-head); margin: 8px 0 0; color: var(--text-strong); }
.steps { display: grid; gap: 10px; }
.step { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.step h4 { margin: 0; padding: 7px 12px; background: var(--brand-50); color: var(--brand); font: 700 14px var(--font-head); letter-spacing: .02em; border-bottom: 1px solid var(--border); }
.step-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.step-table th, .step-table td { padding: 6px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.step-table tr:last-child th, .step-table tr:last-child td { border-bottom: 0; }
.step-table th { width: 150px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.step-table td { font-family: 'Cambria Math', 'STIX Two Math', Georgia, serif; font-size: 14px; color: var(--text-strong); overflow-wrap: anywhere; }
.step-table td b { font-family: var(--font-body); }
.step-table .step-sub td { font-family: var(--font-body); font-weight: 600; background: var(--surface-2); font-size: 13px; }
@media (max-width: 640px) { .step-table th { display: block; width: auto; padding-bottom: 0; border: 0; } .step-table td { display: block; padding-top: 2px; } }
.method-tabs { flex-wrap: wrap; }

.actions-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-bar { display: none; }

/* ---------------- Einstellungen ---------------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; align-items: start; }
.settings-grid .stack { display: grid; gap: 18px; }
.norm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.norm-card { position: relative; cursor: pointer; }
.norm-card input { position: absolute; opacity: 0; }
.norm-card .box { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 4px; transition: .15s; height: 100%; background: var(--surface); }
.norm-card .box strong { color: var(--text-strong); font-family: var(--font-head); font-size: 18px; }
.norm-card .box span { font-size: 13px; color: var(--muted); }
.norm-card input:checked + .box { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 14%, transparent); }
.norm-card input:focus-visible + .box { outline: 2px solid var(--brand); outline-offset: 2px; }

.dropzone { border: 2px dashed var(--border); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: .15s; background: var(--surface-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone .logo-prev { width: 120px; height: 64px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: none; }
.dropzone .logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dropzone .logo-prev svg { width: 28px; height: 28px; color: var(--muted); }
.dropzone p { margin: 0; font-size: 13.5px; color: var(--muted); }
.dropzone strong { color: var(--text-strong); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; transition: transform .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 2px var(--text-strong); }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type="color"] { width: 44px; height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 2px; background: var(--surface); cursor: pointer; }
.status-line { font-size: 13px; color: var(--muted); min-height: 20px; }
.status-line.ok { color: var(--ok); }
.status-line.err { color: var(--bad); }

.preview-card { overflow: hidden; }
.preview-head { padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--brand); background: var(--surface); }
.preview-head img { height: 34px; max-width: 150px; object-fit: contain; }
.preview-body { padding: 16px; display: grid; gap: 12px; }
.preview-body .btn { justify-self: start; }

/* ---------------- Toast ---------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--text-strong); color: var(--surface); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); transition: .25s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer.app-footer { max-width: 1240px; margin: 0 auto; padding: 0 16px 40px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
/* Rückmeldung an den Anbieter */
.footer-feedback { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.footer-feedback svg { width: 15px; height: 15px; color: var(--brand); }
.footer-feedback:hover { border-color: var(--brand); color: var(--brand); }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kinds .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13.5px; }
.fb-kinds .chip:has(input:checked) { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.fb-kinds input { accent-color: var(--brand); margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .calc-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-grid .stack { position: static !important; }
  .calc-side { position: static; }
  .brand-sub { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  main { padding-top: 16px; padding-bottom: 110px; }
  .header-inner { gap: 8px; padding: 8px 12px; }
  .wordmark { font-size: 21px; }
  .brand img { height: 30px; max-width: 120px; }
  .norm-switch button { padding: 6px 9px; font-size: 12px; }
  .section, .card-pad { padding: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
  .lashing .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actions-bar .btn { flex: 1 1 auto; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 10px; align-items: center;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--surface) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  }
  .mobile-bar .status { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; }
  .mobile-bar .status strong { display: block; font-size: 15px; }
  .mobile-bar .status.ok strong { color: var(--ok); }
  .mobile-bar .status.bad strong { color: var(--bad); }
}
@media (max-width: 380px) { .brand-text-hide { display: none; } }
/* schmale Smartphones: Firmenname kürzen statt überlappen; „Meine Berechnungen“ steht im Benutzermenü */
@media (max-width: 760px) {
  .brand { overflow: hidden; flex: 1 1 auto; }
  .brand .wordmark { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 480px) {
  .header-actions { gap: 6px; }
  .header-actions .icon-btn[data-go="saved"] { display: none; }
}

/* ---------------- Partner-Angebot (Niederzurren, zugeklappt) ---------------- */
.shop { border-top: 1px solid var(--border); }
.shop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 13px; color: var(--muted); }
.shop > summary::-webkit-details-marker { display: none; }
.shop > summary::after { content: '›'; margin-left: auto; font-size: 18px; transition: transform .15s; }
.shop[open] > summary::after { transform: rotate(90deg); }
.shop > summary svg { width: 16px; height: 16px; flex: none; }
.shop > summary:hover { color: var(--text-strong); }
.shop-ad { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; color: var(--muted); }
.shop-body { padding: 0 20px 14px; font-size: 13.5px; color: var(--text); }
.shop-body p { margin: 0 0 8px; }
.shop-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop-table td { padding: 7px 6px; border-bottom: 1px solid var(--border); }
.shop-table td:last-child { text-align: right; white-space: nowrap; }
.shop-table tr.cur td { background: var(--surface-2, transparent); }
.shop-cur { font-size: 11px; color: var(--muted); margin-left: 4px; }
.shop-note { font-size: 12px; color: var(--muted); margin-top: 8px !important; }
@media print { .shop { display: none; } }

/* ---------------- Dolmetscher ---------------- */
.talk-card { display: grid; gap: 10px; margin-top: 16px; }
.talk-card .btn svg { width: 18px; height: 18px; }
.talk-card-langs { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-strong); }
.talk-card-langs img, .talk img { border-radius: 2px; vertical-align: -2px; }
.talk-quota { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.talk > .talk-quota { padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.interp-card { display: grid; gap: 14px; margin-top: 16px; }
.interp-card .kpis { margin: 0; }
.interp-switch { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.interp-switch input:disabled + span { color: var(--muted); }
body.talk-open { overflow: hidden; }
.talk { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.talk[hidden] { display: none; }
.talk-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.talk-head h2 { margin: 0 auto 0 0; font: 700 20px var(--font-head); display: flex; align-items: center; gap: 8px; color: var(--text-strong); }
.talk-head h2 svg { width: 22px; height: 22px; color: var(--brand); }
.talk-head h2 small { font: 400 13px var(--font-body); color: var(--muted); margin-left: 4px; }
.talk-free-note { margin: 0; padding: 6px 14px; font-size: 12px; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); }
.talk-x { border: 0; background: none; font-size: 30px; line-height: 1; padding: 2px 8px; color: var(--muted); cursor: pointer; }
.talk-ico { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 10px; min-width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; font-size: 18px; padding: 0 6px; }
.talk-ico svg { width: 18px; height: 18px; }
.talk-ico.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.talk-langs { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.talk-langs label { flex: 1; min-width: 0; display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.talk-langs select { width: 100%; font: inherit; font-size: 15px; color: var(--text-strong); padding: 7px 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.talk-notice { margin: 0; padding: 8px 14px; font-size: 12.5px; line-height: 1.4; background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--border); }
.talk-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.talk-empty { margin: auto; max-width: 360px; text-align: center; color: var(--muted); font-size: 14px; }
.talk-msg { max-width: min(560px, 86%); padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.talk-msg.me { align-self: flex-end; border-bottom-right-radius: 4px; border-color: color-mix(in oklab, var(--brand) 35%, var(--border)); }
.talk-msg.partner { align-self: flex-start; border-bottom-left-radius: 4px; }
.talk-msg.live { opacity: .75; border-style: dashed; }
.talk-tr { font-size: 17px; line-height: 1.4; color: var(--text-strong); font-weight: 500; }
.talk-orig { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.talk-msg.live .talk-orig { font-size: 16px; color: var(--text-strong); margin: 0; }
.talk-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.talk-meta .talk-ico { min-width: 28px; height: 26px; border: 0; background: none; font-size: 16px; color: var(--muted); }
.talk-meta .talk-ico svg { width: 15px; height: 15px; }
.talk-wait { color: var(--muted); font-style: italic; font-weight: 400; }
.talk-err { color: var(--bad); font-size: 14px; font-weight: 400; }
.talk-status { margin: 0; padding: 8px 14px; font-size: 13.5px; line-height: 1.4; background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); }
.talk-status.ok { color: var(--ok); }
.talk-status.err { color: var(--bad); background: var(--bad-bg); }
.talk-type { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--border); }
.talk-type input { flex: 1 1 100%; font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-strong); }
.talk-type .btn { flex: 1; }
.talk-mics { display: flex; gap: 10px; align-items: stretch; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.talk-mic { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface-2, var(--surface)); color: var(--text-strong); cursor: pointer; text-align: left; font: inherit; }
.talk-mic > svg { width: 30px; height: 30px; flex: none; color: var(--brand); }
.talk-mic.me { border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); }
.talk-mic-txt { display: grid; min-width: 0; }
.talk-mic-txt strong { font-size: 15px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-mic-txt small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.talk-mic.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); animation: talkpulse 1.2s ease-in-out infinite; }
.talk-mic.active > svg, .talk-mic.active small { color: var(--on-brand); }
.talk-mic:disabled { opacity: .45; cursor: default; }
.talk-kbd { align-self: center; }
@keyframes talkpulse { 50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--brand) 25%, transparent); } }
@media (max-width: 480px) {
  .talk-mics { flex-wrap: wrap; }
  .talk-mic { flex: 1 1 calc(50% - 30px); flex-direction: column; text-align: center; gap: 4px; padding: 14px 8px; }
  .talk-mic-txt strong { justify-content: center; }
}

/* ---------------- Druck ---------------- */
#print-root { display: none; }
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  html, body { background: #fff !important; color: #111 !important; font-size: 10.5pt; }
  :root { --surface: #fff; --surface-2: #f7f7f8; --text: #222; --text-strong: #000; --muted: #555; --border: #d9d9de; --g-floor-top: #ececef; --g-floor:#4b5563; --g-chassis:#1f2937; --g-wheel:#111827;
    /* Baukasten aufgehellt: weniger Toner, Linien und Beschriftung bleiben kräftig */
    --k-deck-a:#eceef1; --k-deck-b:#d3d7dc; --k-deck-c:#a3a9b1; --k-steel-a:#b4b9c0; --k-steel-b:#6b7280; --k-tire-a:#4b5563; --k-tire-b:#9ca3af;
    --k-wood-a:#f8ead4; --k-wood-b:#efd6b1; --k-wood-c:#e0bd8c; --k-woodtop-a:#fbf1e2; --k-woodtop-b:#efd6b1; --k-batten-a:#e3c393; --k-batten-b:#d9b17a; }
  .lasi-graphic [filter] { filter: none; }
  .lasi-graphic .k-shadow { display: none; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.pr { font-family: var(--font-body); color: #111; }
.pr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--brand); }
.pr-head img { height: 16mm; width: auto; max-width: 60mm; object-fit: contain; object-position: left center; display: block; }
.pr-head .pr-company { text-align: right; font-size: 9pt; color: #444; line-height: 1.4; }
.pr-head .pr-company strong { font-size: 11pt; color: #000; display: block; }
.pr-title { margin: 12px 0 2px; font: 700 20pt/1.1 var(--font-head); color: #000; }
.pr-sub { color: var(--brand); font-weight: 600; font-size: 10pt; margin-bottom: 10px; }
.pr-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid #d9d9de; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.pr-meta div { padding: 6px 9px; border-right: 1px solid #d9d9de; font-size: 9pt; }
.pr-meta div:last-child { border-right: 0; }
.pr-meta span { display: block; color: #666; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .05em; }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pr h4 { font: 700 11pt var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 12px 0 5px; }
.pr table { width: 100%; border-collapse: collapse; font-size: 9pt; font-variant-numeric: tabular-nums; }
.pr table th, .pr table td { padding: 4px 6px; border-bottom: 1px solid #e3e3e8; text-align: right; }
.pr table th:first-child, .pr table td:first-child { text-align: left; }
.pr table thead th { background: #f3f3f5; font-size: 8pt; color: #444; text-transform: uppercase; }
.pr .verdict { padding: 9px 12px; margin: 8px 0; break-inside: avoid; }
.pr .verdict h3 { font-size: 14pt; }
.pr .verdict-icon { width: 32px; height: 32px; }
.pr .lasi-graphic { max-height: 62mm; }
.pr-figure { border: 1px solid #e3e3e8; border-radius: 6px; padding: 6px; }
.pr .alert { padding: 5px 8px; font-size: 8.5pt; }
.pr .eq { font-size: 11pt; padding: 6px 10px; }
.pr-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 22px; font-size: 8.5pt; color: #555; }
.pr-sign div { border-top: 1px solid #999; padding-top: 4px; }
.pr-foot { margin-top: 14px; padding-top: 6px; border-top: 1px solid #d9d9de; font-size: 7.5pt; color: #666; display: flex; justify-content: space-between; gap: 12px; }
.pr section { break-inside: avoid; }
.pr .pr-steps { break-inside: auto; }
.pr .step { break-inside: avoid; margin-bottom: 6px; border-radius: 6px; }
.pr .step h4 { margin: 0; font-size: 9.5pt; padding: 4px 8px; text-transform: none; letter-spacing: 0; }
.pr .step-table { font-size: 8.5pt; }
.pr .step-table th, .pr .step-table td { padding: 3px 8px; text-align: left; }
.pr .step-table td { font-size: 9pt; }
.pr .steps { gap: 4px; }

/* ---------- Free-Version und Zusatzmodule (v2.16) ---------- */
.lock-ico { width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.pill.pro { background: var(--brand-50); color: var(--brand); font-size: 11px; vertical-align: 1px; }
.pill.pro .lock-ico { width: 11px; height: 11px; }
.choice.is-locked .choice-figure { opacity: .45; filter: grayscale(.7); }
.choice.is-locked .choice-cta { color: var(--muted); }
.choice.is-locked:hover, .choice.is-locked:focus-visible { transform: none; border-color: var(--border); }
.method-tabs button.is-locked { opacity: .55; display: inline-flex; align-items: center; gap: 4px; }
.method-tabs button.is-locked .lock-ico { width: 12px; height: 12px; }
.free-cta { white-space: nowrap; }
.upgrade-list { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 8px; }
.upgrade-list li { display: flex; gap: 8px; align-items: flex-start; }
.upgrade-list svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.pro-note { margin: 0; }
.pro-note > .lock-ico { width: 18px; height: 18px; }
fieldset.pro-locked { border: 0; margin: 0; padding: 0; min-width: 0; opacity: .55; }
.module-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.module-list li { display: flex; gap: 10px; align-items: flex-start; }
.module-list li > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.module-list li.on > svg { color: var(--ok); }
.module-list li.off > svg { color: var(--muted); }
.module-list small { display: block; color: var(--muted); font-size: 12.5px; }
.mod-switch { align-items: flex-start; }
.mod-switch small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
/* schmal: „Anmelden“ steckt im Vollversions-Dialog, der Knopf „Vollversion“ bleibt sichtbar; Logo nicht zerdrücken */
@media (max-width: 760px) {
  .free-login { display: none; }
  body:has(.free-cta) .brand { min-width: 92px; }
}
@media (max-width: 480px) {
  body:has(.free-cta) .wordmark { font-size: 18px; }
  body:has(.free-cta) .norm-switch button { padding: 6px 7px; }
  .free-cta { font-size: 13px; padding: 6px 10px; }
}
@media (max-width: 400px) {
  body:has(.free-cta) .brand { min-width: 0; }
  body:has(.free-cta) .wordmark { font-size: 16px; }
  body:has(.free-cta) .header-inner { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .free-cta { font-size: 12.5px; padding: 6px 8px; }
}

/* Direktzurren mit mehr als 2 Zurrmitteln: Kraft je Zurrmittel als Balken */
.md-bars { display: grid; gap: 12px; border-top: 1px solid var(--border); }
.md-bars .sub { margin: 0; color: var(--muted); font-size: 13px; }
.md-dir h4 { margin: 0 0 6px; font-size: 14px; }
.md-bar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 2px 0; }
.md-bar > span { color: var(--muted); }
.md-track { height: 10px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.md-track i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.md-bar b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) { .md-bar { grid-template-columns: 1fr auto; } .md-bar .md-track { grid-column: 1 / -1; grid-row: 2; } }
