/* =========================================================================
   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; }
/* langer Firmenname: kürzen statt unter Sprachauswahl/Umschalter laufen (2.40.3) */
.brand { overflow: hidden; flex: 0 1 auto; }
.brand .wordmark { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.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; }
/* Logo-Symbol vor der Wortmarke (2.40.1); nicht bei eigenem Firmennamen */
.wordmark:not(.wm-co)::before { content: ''; display: inline-block; width: 1.25em; height: 1.25em; margin-right: .35em; vertical-align: -.28em; background: url(../img/icon-64.png) center / contain no-repeat; border-radius: 22%; }
.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); }
/* Standard / Experte (2.39) – gleiche Form, dunkle Markierung zur Unterscheidung vom Norm-Umschalter */
.ui-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.ui-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; }
.ui-switch button[aria-pressed="true"] { background: var(--text-strong); color: var(--surface); }
@media (max-width: 560px) { .ui-switch button { padding: 6px 8px; font-size: 12px; } }
/* Berechnungsart nur im Expertenmodus (2.39) */
.choice.needs-expert::after { content: attr(data-xbadge); position: absolute; top: 10px; right: 10px; background: var(--text-strong); color: var(--surface); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.method-tabs button.needs-expert::after { content: " " attr(data-xbadge); font-size: 11px; opacity: .8; }
/* Hinweise im Eingabebereich mit demselben Innenabstand wie die Abschnitte */
.std-more { margin: 0; padding: 12px 20px; font-size: 13px; line-height: 1.5; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
#calc-form > .std-more:first-child { border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.std-more .btn-link { padding: 0 2px; }
.std-lock { white-space: nowrap; } .std-lock svg { width: 13px; height: 13px; vertical-align: -2px; }
#calc-form > .alert { margin: 14px 20px; }
.verdict .verdict-assume { margin-top: 6px; font-size: 12.5px; color: var(--text); }
.pr .verdict .verdict-assume { font-size: 8pt; } .pr-sheet .verdict .verdict-assume { font-size: 6.8pt; }

.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; }
.lasi-graphic .k-wallhit { stroke: var(--ok); stroke-width: 4; stroke-linecap: round; }
.lasi-graphic .k-cogband { fill: color-mix(in oklab, var(--ok) 22%, transparent); stroke: var(--ok); stroke-width: 1; stroke-dasharray: 4 3; }
.lasi-graphic .pk-box { stroke: #374151; stroke-width: .8; }
.lasi-graphic .k-cside { fill: color-mix(in oklab, var(--k-deck-a) 70%, transparent); stroke: #6b7280; stroke-width: 1; }
.lasi-graphic .k-crib { stroke: #9ca3af; stroke-opacity: .45; stroke-width: 1; }
.lasi-graphic .k-cfloor { stroke: #374151; stroke-width: 2.2; }
.lasi-graphic .pk-layer { stroke: #374151; stroke-opacity: .5; stroke-width: .8; stroke-dasharray: 3 2; }
.lasi-graphic .pk-unknown { stroke-dasharray: 4 3; fill-opacity: .55; }
.lasi-graphic .k-lash { stroke-width: 2.6; stroke-linecap: round; fill: none; }
.lasi-graphic .k-lash-leg { stroke-dasharray: 5 3; }
.lasi-graphic .k-grid { stroke: var(--border); stroke-width: 1; }
.lasi-graphic .k-tick { font: 400 11px var(--font-body); fill: var(--muted); }
.lasi-graphic .k-tickline { stroke: var(--muted); stroke-width: 1; }
.lasi-graphic .k-lim { stroke-width: 1.4; stroke-dasharray: 7 4; }
.lasi-graphic .k-lim-1 { stroke: #15803d; } .lasi-graphic .k-lim-2 { stroke: #b45309; } .lasi-graphic .k-lim-o { stroke: #6d28d9; }
.lasi-graphic .k-limtxt { font: 500 10.5px var(--font-body); fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 3; }
.lasi-graphic .k-col { stroke: rgb(0 0 0 / .25); stroke-width: .8; }
.lasi-graphic .k-col-ok { fill: #22a55b; } .lasi-graphic .k-col-warn { fill: #e3a008; } .lasi-graphic .k-col-bad { fill: #dc2626; }
.lasi-graphic .k-col-top { fill-opacity: .55; stroke-dasharray: 3 2; stroke-width: 1.2; }
.lasi-graphic .k-colval { font: 600 11px var(--font-body); fill: var(--text-strong); }
.lasi-graphic .k-collbl { font: 500 11.5px var(--font-body); fill: var(--text-strong); }
.lasi-graphic .k-z-ok { fill: #22a55b; fill-opacity: .8; } .lasi-graphic .k-z-warn { fill: #e3a008; fill-opacity: .75; } .lasi-graphic .k-z-bad { fill: #dc2626; fill-opacity: .55; }
.lasi-graphic .k-needle { fill: var(--text-strong); } .lasi-graphic .k-needle-line { stroke: var(--text-strong); stroke-width: 2; }
.lasi-graphic .k-bag { fill: #cbd5e1; stroke: #475569; stroke-width: 1; stroke-dasharray: 3 2; }
.lasi-graphic .k-pklbl { font: 600 10px var(--font-body); fill: #1f2937; }
.pk-c0 { fill: #d4a96a; background: #d4a96a; } .pk-c1 { fill: #7fb3d5; background: #7fb3d5; } .pk-c2 { fill: #9ccc8a; background: #9ccc8a; }
.pk-c3 { fill: #e9a27c; background: #e9a27c; } .pk-c4 { fill: #b9a3dd; background: #b9a3dd; } .pk-c5 { fill: #ecd36f; background: #ecd36f; }
.pk-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid #374151; }

/* ---------------- 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: 0 11px; height: 40px; outline: none; font-variant-numeric: tabular-nums; } /* feste Höhe: Zahl, Text, Datum und Auswahl gleich hoch */
.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.warn { background: var(--warn-bg); border-color: color-mix(in oklab, var(--warn) 35%, transparent); }
.verdict.warn .verdict-icon { background: #d97706; }
.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; }
.verdict { align-items: flex-start; }
/* 2.37: Beiwerte und Krafttabelle aufklappbar, Beispielrechnung, Shop abgesetzt */
details.adv { margin-top: 10px; border: 1px dashed var(--border); border-radius: 10px; padding: 0 12px; }
details.adv > summary { cursor: pointer; padding: 9px 0; font-size: 13.5px; font-weight: 600; color: var(--text-strong); list-style-position: inside; }
details.adv > summary .adv-sum { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12.5px; }
details.adv[open] { padding-bottom: 12px; }
details.res-details { border-top: 1px solid var(--border); }
details.res-details > summary { cursor: pointer; padding: 12px 22px; font-weight: 600; font-size: 14px; color: var(--text-strong); }
.alert.example { background: #fff7e0; border: 1px solid #f0d58a; color: #5a4300; }
.alert.example strong { color: #7a5600; }
.shop-card { margin-top: 18px; border-style: dashed; box-shadow: none; }
.pr .alert.example { border: 1px solid #c9a227; background: #fff7e0; }
.verdict-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
.verdict-checks li { display: flex; gap: 7px; align-items: baseline; }
.verdict-checks .vc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; transform: translateY(1px); }
.vc-ok .vc-dot { background: var(--ok); }
.vc-bad .vc-dot { background: var(--bad); }
.vc-warn .vc-dot { background: #d97706; }
.vc-open .vc-dot { background: transparent; border: 2px solid #d97706; }
.vc-open b, .vc-warn b { color: #b45309; }
.verdict .verdict-basis { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.pr .verdict .verdict-basis { font-size: 8pt; } .pr-sheet .verdict .verdict-basis { font-size: 6.8pt; margin-top: 1px; }
.verdict .verdict-note { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.pr .verdict-checks { font-size: 8.5pt; } .pr .verdict .verdict-note { font-size: 8.5pt; }
.pr-sheet .verdict-checks { font-size: 7pt; gap: 1px; margin-top: 2px; } .pr-sheet .verdict .verdict-note { font-size: 7pt; margin-top: 2px; }
.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); }
  .mobile-bar .status.warn strong { color: var(--warn); }
}
@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; }
/* Container: Übersichtsblatt quer */
/* Querformat: @page wird beim Druck des Übersichtsblatts per <style id="sheet-page"> gesetzt (2.45.2) –
   eine benannte Seite („page: sheet“) erzeugte in Chrome/Edge je eine leere Seite davor und danach */
.pr-sheet .pr-head { padding-bottom: 6px; border-bottom-width: 2px; }
.pr-sheet .pr-head img { height: 11mm; }
.pr-sheet .sh-titlebar { margin: 6px 0 6px; }
.pr-sheet .pr-title { margin: 0; font-size: 16pt; }
.pr-sheet .pr-sub { margin: 2px 0 0; }
/* eine Seite A4 quer: 277 × 192 mm nutzbar – alles kompakt, nichts darf umbrechen */
.pr-sheet { font-size: 7.5pt; }
.pr-sheet .pr-head { padding-bottom: 3px; }
.pr-sheet .pr-head img { height: 8mm; }
.pr-sheet .pr-company { font-size: 7.5pt; }
.pr-sheet .sh-titlebar { margin: 3px 0 4px; }
.pr-sheet .pr-title { font-size: 12.5pt; }
.pr-sheet .pr-sub { font-size: 7.5pt; }
.sh-grid { display: grid; grid-template-columns: 104mm 1fr; gap: 4mm; align-items: start; }
.sh-left .verdict { margin: 0 0 3px; padding: 4px 8px; }
.sh-left .verdict h3 { font-size: 10pt; } .sh-left .verdict p { font-size: 7.5pt; margin: 1px 0 0; }
.sh-left .verdict svg { width: 18px; height: 18px; }
.sh-facts, .sh-tab { width: 100%; border-collapse: collapse; font-size: 7pt; margin-bottom: 2.5mm; }
/* „.pr table“ (9pt) hatte Vorrang – Tabellen des Übersichtsblatts ausdrücklich klein halten (2.45.2) */
.pr table.sh-facts, .pr table.sh-tab { font-size: 7pt; }
.pr .sh-facts th, .pr .sh-facts td, .pr .sh-tab th, .pr .sh-tab td { text-align: left; vertical-align: top; padding: 1.4px 4px; border-bottom: 1px solid #e3e3e8; line-height: 1.25; }
.pr .sh-facts th { width: 25mm; color: #444; font-weight: 600; }
.pr .sh-tab thead th { background: #f1f1f4; font-weight: 700; font-size: 6.8pt; }
.pr .sh-tab tbody th { font-weight: 600; color: #444; }
.pr .sh-tab td { text-align: right; white-space: nowrap; }
.pr .sh-tab tr.sh-hl th, .pr .sh-tab tr.sh-hl td { background: #fff4d6; }
.sh-box { border: 1px solid #e3e3e8; border-left: 3px solid var(--brand, #da1f31); border-radius: 4px; padding: 3px 6px; font-size: 7pt; margin-bottom: 2.5mm; break-inside: avoid; }
.sh-box ul { margin: 1px 0 0; padding-left: 12px; } .sh-box p { margin: 1px 0; }
.sh-rail { border-left-color: #d97706; font-size: 6.6pt; }
.sh-cap { font-size: 7pt; font-weight: 700; margin: 0 0 1px; }
.pr-sheet .pr-head .wordmark, .pr-sheet .pr-head strong { font-size: 11pt; }
.sh-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.sh-fig { border: 1px solid #e3e3e8; border-radius: 5px; padding: 2px 4px; margin-bottom: 2.5mm; break-inside: avoid; }
.sh-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3mm; }
.sh-two-b { grid-template-columns: 1fr 1fr; align-items: start; }
.pr-sheet .lasi-graphic { max-height: 37mm; width: 100%; }
.pr-sheet .sh-top .lasi-graphic { max-height: 41mm; }
.pr-sheet .sh-two-b .lasi-graphic { max-height: 30mm; }
.pr-sheet .sh-cog .lasi-graphic { max-height: 12mm; }
.pr-sheet .pr-foot { margin-top: 1mm; padding-top: 1mm; font-size: 5.3pt; line-height: 1.2; }
.pr-sheet .pr-foot span:last-child { white-space: nowrap; }
/* nur einzelne Kästen zusammenhalten – nicht das ganze Blatt (sonst wandert alles auf Seite 2 und Seite 1 bleibt leer) */
.pr-sheet .verdict, .pr-sheet .sh-fig, .pr-sheet .sh-box, .pr-sheet table, .pr-sheet tr { break-inside: avoid; }
.cont-charts { display: grid; gap: 14px; }
#calc-figure .lasi-door { max-width: 360px; display: block; margin: 0 auto; }

/* ---------- 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; } }

/* ---------------- 2.40: Kataloge, Empfehlung, Prüfliste, Fahreransicht, Statistik, QR ---------------- */
.cat-pick select { font-weight: 500; }
.cat-hint { display: block; grid-column: 1 / -1; color: var(--muted); }
.veh-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.veh-pick label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.veh-pick label svg { width: 18px; height: 18px; }
.veh-pick .input { flex: 1 1 240px; }
.rec-box { border: 1px dashed var(--border); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.rec-list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 4px; }
.rec-list li { display: flex; gap: 8px; align-items: flex-start; }
.rec-list li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.rec-list li.ok svg { color: var(--ok); } .rec-list li.bad { color: var(--muted); } .rec-list li.bad svg { color: var(--bad); }
.rec-box small { color: var(--muted); }
.checklist-card .check-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.checklist-card .check-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.4; }
.checklist-card .check-list input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.checklist-card .check-done { color: var(--ok); font-weight: 600; display: flex; gap: 6px; align-items: center; margin: 10px 0 0; }
.checklist-card .check-done svg { width: 16px; height: 16px; }
.checklist-card small { display: block; margin-top: 8px; color: var(--muted); }
.att-head .pill:not(.ok) { background: var(--surface-2); color: var(--muted); }
.check-std { margin: 0 0 10px; padding-left: 20px; color: var(--muted); font-size: 13px; }
.tpl-pill { background: var(--brand-50); color: var(--brand); margin-left: 6px; font-size: 11px; }
.share-pill { background: var(--surface-2); color: var(--text-strong); border: 1px solid var(--border); margin-left: 6px; font-size: 11px; }
.tpl-recent { margin-top: 18px; }
.tpl-recent .recent-head .sub { font-size: 12.5px; }
/* Fahreransicht: groß, kontrastreich, für Telefon und Tablet */
.driver-view { position: fixed; inset: 0; z-index: 200; background: var(--surface); color: var(--text); overflow: auto; -webkit-overflow-scrolling: touch; }
.driver-inner { max-width: 820px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 14px; }
.driver-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.driver-title { font: 700 20px/1.2 var(--font-head); }
.driver-status { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 14px; font: 700 22px/1.25 var(--font-head); }
.driver-status svg { width: 28px; height: 28px; flex: none; }
.driver-status.ok { background: var(--ok-bg); color: var(--ok); }
.driver-status.bad { background: var(--bad-bg); color: var(--bad); }
.driver-status.warn { background: var(--warn-bg); color: var(--warn); }
.driver-meta { font-size: 16px; color: var(--muted); }
.driver-fig { background: var(--surface-2); border-radius: 14px; padding: 10px; }
.driver-fig svg { width: 100%; height: auto; max-height: 46vh; }
.driver-steps { margin: 0; padding-left: 26px; display: grid; gap: 10px; font-size: 19px; line-height: 1.4; }
.driver-steps li::marker { font-weight: 700; color: var(--brand); }
.driver-assume { font-size: 14px; color: var(--muted); margin: 0; }
.driver-inner > .row .btn { font-size: 16px; padding: 12px 18px; }
/* Statistik */
.stats-card { display: grid; gap: 14px; }
.stats-card .kpis-4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; padding-top: 6px; }
.stat-col { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; min-width: 0; }
.stat-bar { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.stat-bar i { display: flex; flex-direction: column; justify-content: flex-end; width: 70%; max-width: 34px; min-height: 2px; background: var(--brand); border-radius: 5px 5px 0 0; overflow: hidden; }
.stat-bar b { display: block; width: 100%; background: var(--text-strong); opacity: .55; }
.stat-col.zero .stat-bar i { background: var(--border); }
.stat-n { font-size: 11.5px; font-weight: 600; color: var(--text-strong); min-height: 15px; }
.stat-m { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.stat-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stat-legend .lg-all { background: var(--brand); } .stat-legend .lg-bad { background: var(--text-strong); opacity: .55; }
.stats-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .stats-tables { grid-template-columns: 1fr; } }
.stats-card small { color: var(--muted); }
/* Ausdruck: Prüfliste und QR-Code */
.pr-check ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; font-size: 8.5pt; }
.pr-check li { break-inside: avoid; display: flex; gap: 6px; align-items: flex-start; margin-bottom: 3px; }
.pr-check .box { display: inline-grid; place-items: center; width: 10px; height: 10px; border: 1px solid #333; font-size: 8pt; line-height: 1; flex: none; margin-top: 1px; }
.pr-check p { font-size: 8.5pt; margin: 4px 0 0; }
.pr-qr { display: flex; gap: 10px; align-items: center; margin-top: 12px; break-inside: avoid; }
.pr-qr .qr-svg { width: 26mm; height: 26mm; flex: none; }
.pr-qr strong { display: block; font-size: 9pt; }
.pr-qr small { display: block; font-size: 7.5pt; color: #555; }
.pr-qr .pr-qr-url { word-break: break-all; }

/* Handy: Kopfzeile zu voll seit dem Umschalter Standard | Experte → Umschalter in eigene Zeile (2.40.3) */
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; row-gap: 6px; }
  .header-actions { display: contents; }
  .brand { flex: 1 1 0; min-width: 0; }
  .header-inner::after { content: ''; flex-basis: 100%; order: 98; height: 0; }
  .header-inner .ui-switch { order: 99; margin: 0 auto; }
}
/* 2.41.0 Web-App: Installieren-Knopf, Hinweisleiste ohne Netz */
[data-install][hidden] { display: none !important; }
.pwa-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 8px 16px; background: var(--warn-bg, #fff4d6); color: var(--text-strong); border-bottom: 1px solid var(--border); font-size: 13.5px; text-align: center; }
.pwa-bar .btn { white-space: nowrap; }
.pwa-steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
/* 2.42.0 Startseite: zwei Hauptkarten, Entscheidungshilfe, übrige Arten kompakt */
.home-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; }
.home-head h2 { margin: 0; font-size: 20px; }
.home-head span { color: var(--muted); font-size: 14px; }
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr); gap: 18px; margin-bottom: 30px; align-items: stretch; }
.home-top .choice-figure { height: 200px; overflow: hidden; }
/* 2.44.1 Niederzurren-Kachel: Einstieg in den Einsteigermodus (eigener Knopf unten in der Kachel) */
.choice-wrap { position: relative; display: flex; min-width: 0; }
.choice-wrap > .choice { flex: 1; min-width: 0; }
.choice-wrap > .choice .choice-body { padding-bottom: 58px; }
.choice-beginner { position: absolute; left: 22px; right: 22px; bottom: 16px; z-index: 1; text-align: left; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 10px; cursor: pointer; }
.choice-beginner { transition: transform .2s, background .2s, color .2s; }
.choice-wrap:has(> .choice:hover) .choice-beginner, .choice-wrap:has(> .choice:focus-visible) .choice-beginner { transform: translateY(-3px); }
.choice-beginner:hover, .choice-beginner:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); outline: none; }
.home-top .choice-figure svg { width: 100%; height: 100%; }
.choice-badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.sug-badge { display: none; position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--text-strong); color: var(--surface); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.choice.is-sug { border: 2px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-50), var(--shadow); }
.choice.is-sug .sug-badge { display: block; }
.choice.is-sug.needs-expert::after { top: 38px; }
.home-help { background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.home-help h3 { margin: 0; font-size: 18px; }
.home-help > p { margin: 0; color: var(--muted); font-size: 14px; }
.hh-q { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 6px; font-weight: 500; color: var(--text-strong); font-size: 14.5px; }
.hh-q small { font-weight: 400; color: var(--muted); }
.hh-yn { display: inline-flex; gap: 6px; }
.hh-yn button { min-width: 60px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text-strong); }
.hh-yn button:hover { border-color: var(--brand); }
.hh-yn button[aria-pressed="true"] { background: var(--text-strong); color: var(--surface); border-color: var(--text-strong); }
.hh-res { margin-top: auto; border-radius: 12px; background: var(--brand-50); padding: 10px 12px; font-size: 14.5px; color: var(--text-strong); }
.hh-res b { color: var(--brand); }
.hh-res .btn { margin-top: 8px; }
.home-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.home-group { display: grid; gap: 10px; align-content: start; }
.home-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.choice.choice-tile { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; height: auto; min-height: 80px; }
.choice-tile .choice-figure { flex: 0 0 96px; height: 64px; padding: 4px; border: 0; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.choice-tile .choice-figure svg { width: 100%; height: 100%; }
.choice-tile .tile-body { display: grid; gap: 2px; min-width: 0; padding-right: 4px; }
.choice-tile strong { font-size: 15.5px; color: var(--text-strong); }
.choice-tile small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.choice-tile .pill { font-size: 11px; vertical-align: 1px; }
.choice-tile.needs-expert::after { top: 6px; right: 8px; font-size: 11px; padding: 2px 7px; }
.choice-tile.is-sug .sug-badge { top: 6px; right: 8px; font-size: 11px; padding: 2px 7px; }
@media (max-width: 1000px) {
  .home-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-help { grid-column: 1 / -1; }
  .home-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .home-top, .home-groups { grid-template-columns: 1fr; }
  .home-top .choice-figure { height: 160px; }
}
.choice-tile.needs-expert .tile-body, .choice-tile.is-sug .tile-body { padding-right: 64px; }

/* 2.42.0: Kacheln der weiteren Berechnungsarten immer gleich hoch */
.choice.choice-tile { height: 92px; min-height: 0; }
.choice-tile strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.choice-tile small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.choice-tile .tile-lock { display: inline-flex; color: var(--brand); flex: none; }
.choice-tile .tile-lock svg { width: 15px; height: 15px; }
/* =========================================================================
   2.44.0 Neue Oberfläche (Versuch) – nur mit body.ui2 (Schalter in der Lizenzverwaltung).
   Ohne body.ui2 bleiben alle Ergänzungen unsichtbar: Darstellung wie 2.43.0.
   ========================================================================= */
.ui2-nav, .ui2-home, .ui2-steps, .ui2-help, .ui2-mode, .ui2-viewbar { display: none; }
body.ui2.ui2-guided .ui2-mode { display: block; }
body.ui2 .ui2-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
body.ui2 .ui2-viewbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 20px; color: var(--muted); font-size: 13px; }
.lasi-graphic .k-hook { fill: none; stroke: #6b7280; stroke-width: 3; stroke-linecap: round; }
/* Kopfbereich dunkelblau */
body.ui2 { --ui2-navy: #13233f; --ui2-navy-2: #1d3157; }
body.ui2 .app-header { background: var(--ui2-navy); border-bottom-color: var(--ui2-navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.ui2 .app-header .wordmark, body.ui2 .app-header .wordmark span { color: #fff; }
body.ui2 .app-header .wordmark { color: #fff; }
body.ui2 .app-header .brand-sub { color: #c9d3e6; border-left-color: rgb(255 255 255 / .25); }
body.ui2 .ui2-navbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font: 600 15px/1 var(--font-body); padding: 10px 12px; border-radius: 10px; cursor: pointer; }
body.ui2 .ui2-navbtn:hover, body.ui2 .ui2-navbtn[aria-expanded="true"] { background: var(--ui2-navy-2); }
body.ui2 .ui2-menu { position: relative; }
body.ui2 .ui2-calc-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; z-index: 60; padding: 6px; display: grid; }
body.ui2 .ui2-calc-menu[hidden] { display: none; }
body.ui2 .ui2-calc-menu button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: inherit; color: var(--text-strong); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
body.ui2 .ui2-calc-menu button:hover, body.ui2 .ui2-calc-menu button:focus-visible { background: var(--surface-2); }
body.ui2 .ui2-calc-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
body.ui2 .app-header .lang-btn, body.ui2 .app-header .icon-btn { background: var(--ui2-navy-2); border-color: rgb(255 255 255 / .2); color: #fff; }
body.ui2 .app-header .ui-switch, body.ui2 .app-header .norm-switch { background: var(--ui2-navy-2); border-color: rgb(255 255 255 / .2); }
body.ui2 .app-header .ui-switch button, body.ui2 .app-header .norm-switch button { color: #c9d3e6; }
body.ui2 .app-header .ui-switch button[aria-pressed="true"] { background: #fff; color: var(--ui2-navy); }
body.ui2 .app-header .free-login { color: #fff; border-color: rgb(255 255 255 / .35); }
body.ui2 .ui2-vv { display: inline-block; font-size: 11px; font-weight: 700; color: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; white-space: nowrap; }
/* Fokus deutlich sichtbar */
body.ui2 :focus-visible { outline: 3px solid #2f6fdf; outline-offset: 2px; }
/* Startseite: zwei Einstiege */
/* Rechner: Grundlage/Ansicht, Schrittleiste */
body.ui2 .ui2-mode { margin-top: 6px; }
body.ui2 .ui2-chip { display: inline-block; font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; margin: 0 6px 4px 0; background: var(--surface); }
body.ui2.ui2-guided .ui2-steps { display: block; margin: 0 0 16px; }
body.ui2 .ui2-steps ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
body.ui2 .ui2-steps li { flex: 1 1 0; min-width: 120px; }
body.ui2 .ui2-steps button { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--surface); padding: 12px 22px 12px 18px; font: 600 15px/1.2 var(--font-body); color: var(--text-strong); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); margin-left: -6px; }
body.ui2 .ui2-steps li:first-child button { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); margin-left: 0; border-radius: 10px 0 0 10px; }
body.ui2 .ui2-steps .is-cur button { background: var(--brand); color: #fff; border-color: var(--brand); }
body.ui2 .ui2-steps .is-done button { background: var(--brand-50); }
body.ui2 .ui2-sn { font: 800 18px/1 var(--font-head); }
/* nur der aktuelle Schritt; Ergebnis erst im letzten Schritt */
body.ui2.ui2-guided #calc-form > .ui2-off { display: none !important; }
body.ui2.ui2-guided .ui2-help { display: block; }
body.ui2.ui2-guided:not(.ui2-result) #calc-results,
body.ui2.ui2-guided:not(.ui2-result) #calc-attachments,
body.ui2.ui2-guided:not(.ui2-result) #calc-talk,
body.ui2.ui2-guided:not(.ui2-result) #mobile-bar { display: none !important; }
body.ui2 .ui2-help h3 { margin: 0 0 6px; font-size: 18px; }
body.ui2 .ui2-help p { margin: 0; color: var(--text); line-height: 1.55; }
body.ui2 .ui2-label { margin: 12px 0 0; }
body.ui2 .ui2-label figcaption { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
body.ui2 .ui2-terms { margin: 10px 0 0; border-top: 1px solid var(--border); padding-top: 8px; }
body.ui2 .ui2-terms summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text-strong); }
body.ui2 .ui2-terms dl { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; }
body.ui2 .ui2-terms dt { font-weight: 600; color: var(--text-strong); margin-top: 6px; }
body.ui2 .ui2-terms dd { margin: 1px 0 0; color: var(--text); }
body.ui2 .ui2-navrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 6px; flex-wrap: wrap; }
body.ui2 .ui2-next { font-size: 16px; padding: 13px 22px; flex: 1 1 auto; max-width: 520px; margin-left: auto; }
body.ui2 .ui2-summary table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.ui2 .ui2-summary td { padding: 6px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
body.ui2 .ui2-summary td:first-child { color: var(--muted); width: 42%; }
body.ui2 .ui2-summary thead { display: none; }
body.ui2 .ui2-err { display: block; color: var(--bad); font-weight: 600; margin-top: 4px; }
body.ui2 .ui2-err::before { content: '⚠ '; }
body.ui2 input[data-blank]::placeholder { color: color-mix(in oklab, var(--muted) 75%, transparent); font-style: italic; }
body.ui2 .verdict.pending { background: var(--surface-2); border-color: var(--border); }
body.ui2 .verdict.pending .verdict-icon { background: var(--muted); }
body.ui2 .mobile-bar .status.pending strong { color: var(--text-strong); }
/* Etikett des Zurrgurts */
.lash-label .lab-bg { fill: #1f5fbf; }
.lash-label .lab-t { fill: #fff; font: 600 14px var(--font-body); }
.lash-label .lab-hi { fill: none; stroke: #ffd23f; stroke-width: 2.5; }
.lash-label .lab-ln { stroke: #ffd23f; stroke-width: 2.5; }
.lash-label .lab-c { fill: var(--text-strong); font: 700 13px var(--font-body); }
@media (max-width: 900px) {
  /* eine Spalte: Hilfe und Skizze stehen über den Eingaben des Schritts */
  body.ui2.ui2-guided .calc-grid { display: flex; flex-direction: column; }
  body.ui2.ui2-guided .calc-side { order: -1; position: static; }
  body.ui2.ui2-guided.ui2-result .calc-side { order: -1; }
  body.ui2 .ui2-steps .ui2-sl { display: none; }
  body.ui2 .ui2-steps .is-cur .ui2-sl { display: inline; }
  body.ui2 .ui2-steps li { min-width: 0; }
  body.ui2 .ui2-steps li.is-cur { flex: 3 1 0; }
}
@media (max-width: 600px) {
  body.ui2 .ui2-nav { order: 50; margin-left: 0; }
  body.ui2 .ui2-navbtn { padding: 8px 8px; font-size: 14px; }
}
/* Ergebnis-Schritt: Ergebnis vor Skizze und Hilfe */
body.ui2.ui2-guided.ui2-result #calc-results { order: -2; }
body.ui2.ui2-guided.ui2-result #calc-figure { order: 1; }
body.ui2.ui2-guided.ui2-result .ui2-help { order: 2; }

@media (max-width: 900px) { body.ui2.ui2-guided #view-calc .method-tabs { display: none; } }

/* Niederzurren, Schritt „Ladung“: Bild statt Bemaßungsskizze */
body.ui2.ui2-guided.ui2-photo #calc-figure { display: none; }
body.ui2 .ui2-help .ui2-photo { display: block; width: 100%; height: auto; border-radius: 12px; margin: 10px 0 12px; }
body.ui2 .ui2-help .ui2-basis { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-strong); }
/* Kopf: Anmelden lesbar, Wortmarke nicht abschneiden */
body.ui2 .app-header .free-login { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .45); }
body.ui2 .app-header .free-login:hover { background: var(--ui2-navy-2); }
body.ui2 .brand { flex: 0 0 auto; }
@media (max-width: 1200px) { body.ui2 .app-header .brand-sub { display: none; } }
body.ui2.ui2-photo .ui2-help h3 { font: 700 24px/1.25 var(--font-head); color: var(--text-strong); }
