@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-latin-900-normal.woff2") format("woff2");
}

:root {
  --ink: #151719;
  --muted: #6c706f;
  --line: #cfd2cf;
  --paper: #f1f2ef;
  --surface: #ffffff;
  --concrete: #e5e6e2;
  /* Drei getrennte Farbrollen (2026-08-28):
     --retanol  Markenzeichen, nur an dekorativen Identitätselementen
     --accent   Orientierung und Interaktion (aktiver Schritt, Icons, Kennwerte, Links)
     --brand    neutrale Struktur; Produktfarben bleiben das einzige warme Signal */
  --retanol: #e66400;
  --accent: #e66400;
  --accent-deep: #c25400;
  --brand: #3c3c3a;
  --brand-deep: #2b2b29;
  --success: #d9f08f;
  --warning: #fff0df;
  --warning-ink: #643e21;
  --shadow: #d9ddd8;
  --font-display: "Barlow Condensed", sans-serif;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, #00000007 0 1px, transparent 2px) 0 0 / 17px 17px,
    linear-gradient(115deg, #f7f7f4 0 62%, #e9eae6 62% 100%);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
button, select, input { font: inherit; }
button { cursor: pointer; }
:where(a, button, select, input, summary):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  outline-offset: 3px;
}

.app-shell { width: min(1480px, 100%); min-height: 100vh; margin: auto; padding: 0 38px 56px; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 21px; font-weight: 900; letter-spacing: .11em; }
/* Seit dem 2026-09-08 zwei Links statt einem: Logo zur PCT-Website, Name zum Seitenanfang. */
.brand-logo-link, .brand-copy-link { display: flex; align-items: center; color: inherit; font: inherit; letter-spacing: inherit; text-decoration: none; }
.brand-logo-link { transition: opacity .2s; }
.brand-logo-link:hover { opacity: .75; }
/* Kopfzeile fuehrt die Unternehmensmarke wie retanol.it und das PDF: PCT Italia in
   Blau/Gelb. ABACUS steht daneben als Werkzeugname, RETANOL® traegt das CI-Orange. */
.brand-logo { display: block; height: 34px; width: auto; flex: none; align-self: start; margin-top: -1px; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy small em { color: var(--retanol); font-style: normal; font-weight: 900; }
.brand-copy small { color: var(--muted); font-family: Arial, sans-serif; font-size: 8px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; text-transform: none; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.topbar-meta { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.topbar-meta:empty { display: none; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--retanol); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: .2s; }
.theme-toggle:hover { color: var(--paper); background: var(--ink); }

/* Hero um ein Drittel gekuerzt (Sichtung 2026-09-07): Bei 1440x900 begann die erste Frage
   unter der Falz. Text und Aufbau bleiben, nur Hoehe und Schriftgrad weichen. */
.hero { position: relative; max-width: 950px; padding: 44px 0 34px 25px; border-left: 7px solid var(--retanol); }
.eyebrow, .panel-kicker { margin: 0 0 12px; color: var(--accent-deep); font-size: 11px; font-weight: 900; letter-spacing: .21em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 64px); font-weight: 900; font-kerning: none; line-height: .9; letter-spacing: .012em; text-transform: uppercase; }
.hero em { color: var(--accent); font: inherit; }
.hero > p:last-child { max-width: 690px; margin: 18px 0 0; color: var(--muted); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); border: 1px solid var(--ink); background: var(--surface); }
.step { min-height: 58px; padding: 0 18px; border: 0; border-right: 1px solid var(--line); color: #5f6461; background: transparent; cursor: pointer; text-align: left; font-family: var(--font-display); font-size: 15px; font-weight: 700; text-transform: uppercase; transition: .2s; }
.step:last-child { border-right: 0; }
.step span { display: block; color: #6c706f; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
/* Inaktive Schritte sind klickbar (zurueck springen) — das soll man ihnen ansehen. */
.step:not(.is-active):hover { color: var(--ink); background: var(--concrete); }
.step.is-active { color: #fff; background: var(--ink); box-shadow: inset 0 -5px var(--brand); }
.step.is-active span { color: var(--accent-deep); }
.step.is-skipped { display: none; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(470px, .92fr); gap: 42px; padding-top: 46px; }
.configurator { min-width: 0; padding-top: 6px; }
.panel { display: none; margin: 0; padding: 0; border: 0; }
.panel.is-visible { display: block; animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.panel h2, .visual-header h2 { margin: 0; font-family: var(--font-display); font-size: 39px; font-weight: 900; font-kerning: none; line-height: 1.04; letter-spacing: .018em; text-transform: uppercase; }
.panel-intro { max-width: 720px; margin: 13px 0 32px; color: var(--muted); font-size: 17px; }

.choice-grid, .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.choice-card { position: relative; min-height: 154px; padding: 24px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); background: var(--surface); transition: border .2s, transform .2s, box-shadow .2s; }
.choice-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 5px; background: var(--brand); transition: width .25s; }
.choice-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.choice-card:has(input:checked) { border: 2px solid var(--ink); box-shadow: 9px 9px 0 var(--shadow); }
.choice-card:has(input:checked)::after { width: 100%; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card:has(input:focus-visible) { z-index: 1; outline: 4px solid var(--brand-deep); outline-offset: 3px; }
.choice-card input:focus-visible { outline: 0; }
.choice-icon { display: block; margin-bottom: 22px; color: var(--accent); font-size: 31px; line-height: 1; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: uppercase; }
.choice-card small { margin-top: 5px; color: var(--muted); font-size: 13px; }
.compact-grid .choice-card { min-height: 126px; }
.field-row { margin-top: 20px; }
.field-row label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.field-row select { width: 100%; min-height: 52px; margin-top: 7px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--surface); }
.field-row output { float: right; color: var(--accent-deep); font-size: 15px; font-weight: 900; }
.field-row input[type="range"] { display: block; width: 100%; margin: 18px 0 8px; accent-color: var(--accent); }
.requirement-group { margin-top: 24px; }
.field-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.context-card { display: flex; gap: 14px; margin-top: 24px; padding: 17px 18px; border: 0; border-left: 5px solid var(--brand); color: var(--ink); background: var(--concrete); font-size: 13px; }
.context-card.warning { color: var(--warning-ink); background: var(--warning); }
.context-card span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid currentColor; font-weight: 900; }
.context-card p { margin: 0; }
.result-notes p { margin-top: 6px; }
.result-notes ul { margin: 12px 0 0; padding-left: 18px; }
.result-notes li + li { margin-top: 7px; }
.heating-protocol ol, .ranking-chain { margin: 12px 0 0; padding-left: 20px; }
.protocol-link { display: inline-block; margin-top: 10px; color: var(--accent-deep); font-weight: 800; }
.recommendation-reason { border-left-color: var(--ink); }
.controls { display: flex; justify-content: space-between; margin-top: 38px; }
.button { min-width: 155px; min-height: 55px; padding: 0 22px; border: 1px solid var(--brand); border-radius: 0; color: #fff; background: var(--brand); font-family: var(--font-display); font-size: 17px; font-weight: 900; text-transform: uppercase; box-shadow: 7px 7px 0 var(--brand-deep); transition: .2s; }
.button:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--brand-deep); }
.button span { margin-left: 12px; }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--ink); box-shadow: none; }

.visual-panel { --accent: #ff8a3d; --accent-deep: #ffa76b; position: sticky; top: 20px; align-self: start; overflow: hidden; border: 0; color: #fff; background: var(--ink); box-shadow: 16px 16px 0 var(--shadow); }
.visual-panel::before { content: ""; position: absolute; top: 0; right: 0; width: 125px; height: 7px; background: var(--brand); }
.visual-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 30px 32px 21px; }
.visual-header .panel-kicker { color: var(--accent); }
.visual-header h2 { color: #fff; font-size: 34px; }
/* Interner PDF-Abruf für Mitarbeiter: bewusst unauffällig, aber lesbar — hiess bis zum
   2026-09-07 „LIVE" in Signalgrün und las sich als Statusanzeige. Ohne Projekt unsichtbar. */
.live-pill { display: none; padding: 6px 9px 5px; border: 1px solid #ffffff59; color: #fff; background: transparent; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-decoration: none; cursor: pointer; opacity: .7; }
html.is-interno .live-pill[href] { display: inline-block; }
.live-pill:hover { opacity: 1; }
/* Zahlenfeld neben dem Regler */
.field-value { float: right; color: var(--accent-deep); font-size: 15px; font-weight: 900; }
.field-number { width: 66px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 0; color: var(--accent-deep); background: var(--surface); font: inherit; font-size: 15px; font-weight: 900; text-align: right; -moz-appearance: textfield; }
.field-number::-webkit-outer-spin-button, .field-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.context-card.field-hint { margin-top: 12px; }
/* Abgeblendete Zeichnung bei unmöglicher Geometrie */
.drawing-veto rect { fill: #f5f5f1; opacity: .78; }
.drawing-veto text { fill: #2b2b29; font-family: var(--font-display); font-size: 22px; font-weight: 900; letter-spacing: .04em; }
.drawing-veto .drawing-veto-sub { fill: #6c706f; font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0; }
/* Kompakter Vergleich mit den Alternativen, direkt unter der Empfehlung */
.compare { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.compare h4 { margin: 0 0 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compare-list { margin: 0; padding: 0; list-style: none; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.compare-row strong { color: var(--ink); }
.compare-row span { color: var(--muted); }
.compare-row em { padding: 3px 6px; color: var(--muted); border: 1px solid var(--line); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compare-row.is-recommended em { color: #fff; border-color: var(--product-accent, var(--ink)); background: var(--product-accent, var(--ink)); }
.compare-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.compare-pick { padding: 4px 9px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.compare-pick:hover, .compare-pick:focus-visible { color: var(--paper); background: var(--ink); }
.compare-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 620px) { .compare-row { grid-template-columns: 1fr auto; } .compare-row span:last-of-type { grid-column: 1; } }
.drawing-wrap { min-height: 430px; margin: 0 16px; background: #f5f5f1; }
.drawing-wrap svg { display: block; width: 100%; height: 430px; overflow: visible; }
.layer { transition: all .5s cubic-bezier(.2, .7, .2, 1); }
.layer-label { font-family: Arial, sans-serif; font-weight: 800; letter-spacing: .01em; }
.dimension line { stroke: #666e69; stroke-width: 1.4; }
.dimension-label { fill: var(--brand-deep); font-size: 14px; font-weight: 900; }
.dimension-caption { fill: #707773; font-size: 10px; }
/* Rohrueberdeckung: zweite Masskette links, bewusst schwaecher als die Gesamthoehe --
   sie ergaenzt die Hauptbemassung, sie konkurriert nicht mit ihr. */
.dimension.is-cover line { stroke: var(--brand-deep); stroke-width: 1.1; }
.cover-label { fill: var(--brand-deep); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 16px; border-top: 1px solid #3c4140; border-left: 1px solid #3c4140; }
.metric-grid div { min-height: 112px; padding: 18px 16px; border-right: 1px solid #3c4140; border-bottom: 1px solid #3c4140; background: #202325; }
.metric-grid span, .metric-grid strong { display: block; }
.metric-grid span { min-height: 36px; color: #aeb4b1; font-size: 11px; line-height: 1.25; text-transform: uppercase; }
.metric-grid strong { margin-top: 8px; color: var(--accent); font-family: var(--font-display); font-size: 25px; }
.visual-footnote { margin: 22px 32px 30px; color: #909693; font-size: 11px; }
/* Kennzahlenleiste, nur auf dem Handy sichtbar (siehe Media Query 980px) */
.metric-strip { display: none; position: sticky; top: 0; z-index: 5; gap: 18px; margin: 0 -20px 22px; padding: 10px 20px; color: #fff; background: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; overflow-x: auto; white-space: nowrap; }
.metric-strip span { color: #aeb4b1; }
.metric-strip em { font-style: normal; }
.metric-strip strong { margin-left: 4px; color: #ff8a3d; font-family: var(--font-display); font-size: 16px; letter-spacing: 0; }

.result-card { padding: 25px; border: 1px solid var(--line); border-top: 6px solid var(--brand); background: var(--surface); box-shadow: 8px 8px 0 var(--shadow); }
.result-card.product-accent { border-top-color: var(--product-accent, var(--brand)); }
.result-card.product-accent .badge { color: #fff; background: var(--product-accent, var(--ink)); }
.result-card.product-accent h3 { color: var(--product-accent, var(--ink)); }
.result-card.product-accent .recommendation-reason { border-left: 4px solid var(--product-accent, var(--brand)); }
.result-card.product-accent .sigla-token-geometry { color: #fff !important; background: var(--product-accent, var(--brand-deep)); }
.result-card.is-neutral { border-top-color: var(--ink); }
.result-card.is-warning { border-top-color: #b8561c; }
.result-card h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 32px; text-transform: uppercase; }
.result-product-kicker { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.badge { display: inline-block; margin-bottom: 14px; padding: 5px 8px; color: var(--paper); background: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.reason-list { padding-left: 20px; color: var(--ink); }
.unified-designation { margin: 18px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.unified-designation-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.unified-designation-heading strong { color: var(--ink); font-family: var(--font-display); font-size: 20px; letter-spacing: .04em; }
.sigla-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.sigla-token { min-width: 35px; padding: 5px 7px; color: var(--paper); background: var(--ink); font-family: var(--font-display); font-size: 18px; line-height: 1; text-align: center; }
.sigla-token-performance { color: var(--ink); background: var(--concrete); }
.sigla-token-geometry { color: #fff; background: var(--brand-deep); }
.unified-designation p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.sigla-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.sigla-legend li { display: flex; gap: 6px; align-items: baseline; color: var(--muted); font-size: 11px; line-height: 1.25; }
.sigla-legend strong { color: var(--ink); font-family: var(--font-display); font-size: 15px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-meta span { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.result-status { min-height: 160px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.candidate-list { display: grid; gap: 10px; margin-top: 18px; }
.candidate-list .alternative { padding: 15px; border: 1px solid var(--line); }
.result-card.is-neutral .candidate-list .alternative { border-left: 4px solid var(--brand); }
.alternative { display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.alternative small { color: var(--muted); }
.project-link { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-left: 5px solid var(--brand); color: var(--ink); background: #fff; }
.project-link button { margin-top: 11px; padding: 10px 13px; border: 0; color: var(--paper); background: var(--ink); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.project-link form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 13px; }
.project-link label { display: block; width: 100%; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project-link input { min-width: 220px; padding: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.project-link form button { margin-top: 0; }
.letterhead-toggle { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; width: auto; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.letterhead-toggle input { min-width: 0; width: 15px; height: 15px; margin-top: 1px; accent-color: var(--brand); }
.letterhead-toggle small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }

html[data-theme="dark"] { --warning: #3a2d1f; --warning-ink: #f6d4b9; --accent: #ff8a3d; --accent-deep: #ffa76b; --ink: #e5e8e5; --muted: #b5bbb7; --line: #4c534f; --paper: #131614; --surface: #202421; --concrete: #2a302c; --shadow: #090b0a; color-scheme: dark; }
html[data-theme="dark"] body { background: radial-gradient(circle at 14% 18%, #ffffff09 0 1px, transparent 2px) 0 0 / 17px 17px, #111312; }
html[data-theme="dark"] .visual-panel { color: #fff; background: #090b0a; }
html[data-theme="dark"] .drawing-wrap { background: #e9e9e4; }
html[data-theme="dark"] .visual-header h2 { color: #fff; }
html[data-theme="dark"] .metric-grid div { background: #151816; }
html[data-theme="dark"] .context-card { color: #e6e7e4; }
html[data-theme="dark"] .protocol-link { color: var(--accent-deep); }
html[data-theme="dark"] .button-quiet { color: var(--ink); }
html[data-theme="dark"] .steps { border-color: #555d58; background: #1b1f1c; }
html[data-theme="dark"] .step { color: #b4bbb7; border-color: #424844; }
html[data-theme="dark"] .step span { color: #858c88; }
html[data-theme="dark"] .step.is-active { color: #f2f3f1; background: #080a09; }
html[data-theme="dark"] .step.is-active span { color: var(--accent); }
/* Bis 2026-08-28 war die Ergebniskarte im Dark Mode weiss. Dadurch mussten alle Texte darin
   auf Dunkelgrau gezwungen werden — und weil die verschachtelten Hinweisbloecke ihren dunklen
   Grund behielten, stand dort Dunkelgrau auf Dunkelgrau. Die Karte folgt jetzt dem Theme;
   acht Korrekturregeln sind damit entfallen statt sich gegenseitig zu reparieren. */
html[data-theme="dark"] .result-card { background: var(--surface); border-color: var(--line); box-shadow: 8px 8px 0 var(--shadow); }
html[data-theme="dark"] .project-link { background: var(--concrete); border-color: var(--line); }
html[data-theme="dark"] .project-link button { color: var(--paper); background: var(--ink); }
html[data-theme="dark"] .alternative { color: #e1e4e1; }
html[data-theme="dark"] .alternative small { color: #b1b7b3; }
/* Produktfarben sind fuer hellen Grund gepflegt (Aubergine #82416E, Rot #FF0000 ...).
   Auf dunklem Grund werden sie aufgehellt, sonst verschwinden sie in der Flaeche. */
html[data-theme="dark"] .result-card.product-accent { border-top-color: color-mix(in srgb, var(--product-accent, var(--brand)) 70%, #ffffff) !important; }
html[data-theme="dark"] .result-card.product-accent h3 { color: color-mix(in srgb, var(--product-accent, var(--brand)) 70%, #ffffff) !important; }

/* The dark-theme reset above uses the `border-color` shorthand.  These rules
   intentionally follow it so a product's Directus colour remains visible. */
.result-card.product-accent { border-top-color: var(--product-accent, var(--brand)) !important; }
.result-card.product-accent h3 { color: var(--product-accent, var(--ink)) !important; }
.result-card.product-accent .badge { background-color: var(--product-accent, var(--ink)) !important; }
.result-card.product-accent .recommendation-reason { border-left-color: var(--product-accent, var(--brand)) !important; }
.result-card.product-accent .sigla-token-geometry {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background-color: var(--product-accent, var(--brand-deep)) !important;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .app-shell { padding: 0 20px 40px; }
  .workspace { grid-template-columns: 1fr; }
  /* Sichtung 2026-09-07: Die Zeichnung stand VOR der ersten Frage — rund 1000 px, bevor man
     antworten konnte. Jetzt folgt sie dem Formular; die Kennzahlenleiste haelt die Zahlen oben. */
  .visual-panel { position: relative; top: auto; }
  .metric-strip { display: flex; }
  .steps { overflow-x: auto; grid-template-columns: repeat(5, minmax(145px, 1fr)); }
}

@media (max-width: 620px) {
  .app-shell { padding-inline: 14px; }
  .topbar { height: 70px; }
  .topbar-meta { display: none; }
  .hero { padding: 48px 0 38px 17px; border-left-width: 5px; }
  .hero h1 { font-size: 43px; }
  .workspace { gap: 28px; padding-top: 30px; }
  .choice-grid, .field-row { grid-template-columns: 1fr; }
  .panel h2 { font-size: 32px; }
  .visual-header { padding: 24px 20px 18px; }
  .visual-header h2 { font-size: 28px; }
  .drawing-wrap { min-height: 340px; margin-inline: 9px; }
  .drawing-wrap svg { height: 340px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); margin-inline: 9px; }
  .visual-footnote { margin-inline: 20px; }
}

.pdf-hint { display: block; margin-top: 10px; color: var(--accent-deep); font-size: 13px; }
/* Die Informationspflicht greift beim Erheben, nicht erst im Footer (Art. 13 DSGVO).
   Deshalb steht der Hinweis am Feld selbst — klein, aber nicht ausgegraut. */
/* Hinweis auf einen anderen Anlagentyp. Akzentfarbe statt Warnrot: Er beschreibt eine
   Möglichkeit, keinen Fehler — siehe systemTypeHintBlock() in app.js. Der kräftige linke
   Rand und der eigene Untergrund heben ihn trotzdem deutlich von der Absage darüber ab. */
.system-hint { margin-top: 20px; border-left: 5px solid var(--accent); background: var(--warning); color: var(--warning-ink); }
.system-hint span { color: var(--accent-deep); font-size: 19px; font-weight: 900; line-height: 1; }
.system-hint strong { display: block; margin-bottom: 6px; font-size: 15px; }
.system-hint p { margin: 0 0 8px; }
.system-hint p:last-child { margin-bottom: 0; }
.system-hint .hint-approval { padding: 9px 11px; border-left: 3px solid var(--accent-deep); background: #ffffff59; font-size: 12.5px; }
.system-hint .hint-action { font-size: 12.5px; }
/* `strong` ist im Hinweis als Block gesetzt (Titel); im Handlungssatz muss es im Fluss bleiben,
   sonst zerfällt „Torna al passo 04 e indica almeno 85 mm" in vier Zeilen. */
.system-hint .hint-action strong, .system-hint .hint-approval strong { display: inline; margin: 0; font-size: inherit; }
html[data-theme="dark"] .system-hint { background: var(--warning); color: var(--warning-ink); }
html[data-theme="dark"] .system-hint .hint-approval { background: #00000030; }

/* Hinweis unter einem Eingabefeld, wenn eine Auswahl normativ eingeschraenkt ist.
   Akzentfarbe statt Warnrot: Es ist eine Vorgabe, kein Fehler des Nutzers. */
.field-row input[type="text"] { width: 100%; min-height: 52px; margin-top: 7px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--surface); }
.field-optional { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: none; }

/* Erklaerung der vier Stratigrafien. Aufklappbar statt dauerhaft sichtbar: Wer sie kennt,
   soll nicht daran vorbeilesen muessen; wer nicht, findet sie an der Entscheidungsstelle. */
.stratigraphy-help { margin-top: 16px; border-left: 3px solid var(--line); }
.stratigraphy-help summary { padding: 6px 0 6px 13px; color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.stratigraphy-help dl { margin: 4px 0 10px; padding-left: 13px; font-size: 12.5px; line-height: 1.55; }
.stratigraphy-help dt { margin-top: 8px; color: var(--ink); font-weight: 800; }
.stratigraphy-help dd { margin: 2px 0 0; color: var(--muted); }

.field-note { margin: 8px 0 0; padding-left: 11px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Mindesthoehe in Passo 04 (16.09.). Die zwei Zahlen stehen nebeneinander und brechen auf
   dem Telefon untereinander um; die empfohlene ist die hervorgehobene, weil sie die ist,
   die ein Planer uebernehmen soll.
   ⚠ Jede Regel traegt `.minimum-note` vorweg: Die Karte bringt `.context-card p {margin:0}`
   und `.context-card span {…}` mit, und ohne den Zusatz gewinnen die. Der erste Anlauf am
   16.09. benutzte <span> fuer die Zahlen — sie wurden zu 24-px-Icon-Kaesten, und der Block
   lief ineinander (fehler8.png). Deshalb <div>/<b> im HTML. */
.minimum-note { margin-top: 14px; }
.minimum-note .minimum-values { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 10px 0 0; }
.minimum-note .minimum-figure { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }
.minimum-note .minimum-figure b { display: block; color: var(--ink); font-size: 22px; font-weight: 900; letter-spacing: 0; line-height: 1.15; text-transform: none; }
.minimum-note .minimum-figure.is-advised b { color: var(--accent-deep); }
.minimum-note .minimum-detail { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.minimum-note .minimum-apply { margin-top: 12px; padding: 9px 12px; border: 0; color: var(--paper); background: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
html[data-theme="dark"] .minimum-note .minimum-apply { color: var(--paper); background: var(--ink); }
/* Direktlink zum Capitolato (16.09.). Die Adresse bricht mitten im Schluessel um statt aus
   dem Kasten zu laufen — auf dem Telefon ist sie sonst breiter als die Karte. */
.project-permalink { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.project-permalink-label { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project-permalink a { display: block; margin-top: 5px; color: var(--accent-deep); font-size: 12px; overflow-wrap: anywhere; }
.project-permalink small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
/* Sprache des PDF: bewusst zurückhaltend (seit 2026-10-19). `.project-link label` macht jedes
   Label zur Blockzeile in Versalien — hier steht es klein neben der Auswahl. */
.project-link .pdf-language { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.project-link .pdf-language label { display: inline; width: auto; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.project-link .pdf-language select { padding: 3px 6px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--surface); font-size: 12px; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.privacy-note a { color: var(--accent-deep); }

/* Fusszeile nach dem Muster von retanol.it: dunkelgrauer Block, Logo links, Gesellschaft und
   Anschrift in der Mitte, Service-Links rechts. Die Rechtstexte liegen dort und werden
   verlinkt — ABACUS bringt keine eigenen mit. */
.site-footer { margin-top: 70px; padding: 46px 0 38px; color: #e2e4e1; background: #3d3d3b; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 34px 46px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.footer-logo { display: block; height: 30px; width: auto; }
.footer-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 19px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.footer-main p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; }
.footer-main em { color: var(--retanol); font-style: normal; font-weight: 700; }
.footer-contact { color: #b9bdb9; }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--retanol); }
.footer-service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13px; }
.footer-service a { text-decoration: none; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* Hinweis auf eine neue Fassung. Unten mittig, damit er auf dem Handy im Daumenbereich liegt
   und den Kopf der Seite nicht verdeckt; `role="status"` meldet ihn Screenreadern beilaeufig,
   ohne die Eingabe zu unterbrechen. */
.update-banner {
  position: fixed;
  /* Zentriert ueber left/right + margin statt ueber translateX: Bei `left: 50%` stehen einer
     schrumpfenden Leiste nur noch 50%% der Breite zur Verfuegung, und der Satz bricht auf dem
     Handy in vier Zeilen um. */
  left: 12px;
  right: 12px;
  bottom: 18px;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100%% - 24px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  color: #f2f3f0;
  background: var(--brand-deep);
  box-shadow: 5px 5px 0 var(--shadow);
  font-size: 14px;
}

.update-banner button {
  padding: 8px 14px;
  border: 1px solid #f2f3f0;
  background: transparent;
  color: #f2f3f0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.update-banner button:hover { color: var(--brand-deep); background: #f2f3f0; }

/* Angemeldeter Planer in der Kopfzeile. Auf dem Handy bleibt nur «Esci» — der Name kostet
   dort mehr Platz, als er nützt. */
.topbar-user { color: var(--muted); font-size: 12px; letter-spacing: .02em; }

/* „Il mio ABACUS" steht neben Name und Abmelden statt in der Fusszeile (Wunsch Alex,
   2026-09-10): Die eigene Ablage gehoert dorthin, wo der Planer ohnehin nach seinem Konto
   sucht. Sichtbar nur mit Sitzung — `app.js` blendet ihn zusammen mit den beiden anderen ein. */
.topbar-link {
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.topbar-link:hover { color: var(--paper); background: var(--brand); border-color: var(--brand); }

.topbar-logout {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar-logout:hover { color: var(--paper); background: var(--brand); border-color: var(--brand); }

@media (max-width: 720px) { .topbar-user { display: none; } }

/* Sofort-Download im Passo 05. In Produktfarbe, weil er zum empfohlenen Produkt gehört —
   dieselbe Farbe trägt die Kopfzeile der Karte. `--product-accent` wird beim Rendern gesetzt;
   ohne Produkt (Ergebnis ohne Empfehlung) greift der neutrale Markenton. */
/* `.project-link button` (dunkel) ist spezifischer als eine einzelne Klasse und gewann —
   der Knopf blieb schwarz. Deshalb hier mit demselben Elternteil im Selektor. */
.project-link button.pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 0;
  /* Schriftfarbe kommt aus `lesbareSchriftfarbe()`: Auf RISOL-Grün oder EKA-Orange wäre
     Weiss zu blass (3,9 bzw. 2,8:1), auf XTHINN-Violett ist es das Richtige (7,2:1). */
  color: var(--product-ink, #fff);
  background: var(--product-accent, var(--brand));
  box-shadow: 4px 4px 0 var(--shadow);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: .15s;
}

.project-link button.pdf-download:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.project-link button.pdf-download:disabled { opacity: .6; box-shadow: none; transform: none; }
