/* Layout: Kontoblatt – jede Sektion eine Zeile mit Randspalte (Label + Icon) und Inhaltsspalte.
   Marke: Petrol und Signalgelb aus dem Logo, schmale Versal-Headlines wie die Wortmarke, Zahlen in Monospace. */
:root {
  --paper: #f3f6f5;
  --sheet: #ffffff;
  --ink: #0e2627;
  --ink-soft: #4a5f5f;
  --line: #d3dedc;
  --teal: #11676a;
  --teal-deep: #0b4a4c;
  --yellow: #ffde59;
  --on-yellow: #0e2627;
  --tint: #e3eeec;
  --ok: #2b7a4b;
  --warn: #a8700b;
  --crit: #b23c2a;
  --on-teal: #f4faf9;
  --band: #0b3f41;
  --on-band: #e9f3f1;
  --on-band-soft: #a9c7c3;

  --f-display: "Bahnschrift SemiCondensed", "Bahnschrift", "Avenir Next Condensed", "Helvetica Neue", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --s-hero: clamp(2.6rem, 1.7rem + 4.2vw, 4.9rem);
  --s-2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --s-3: 1.35rem;
  --s-body: 1.0625rem;
  --s-small: 0.875rem;
  --s-label: 0.74rem;

  --radius: 4px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1616; --sheet: #112121; --ink: #e4efed; --ink-soft: #9fb6b3; --line: #24393a;
    --teal: #4fb5aa; --teal-deep: #7ccdc3; --yellow: #ffde59; --on-yellow: #0e2627; --tint: #15302f;
    --ok: #5cc285; --warn: #e6b04a; --crit: #ef8270; --on-teal: #071313;
    --band: #082a2b; --on-band: #e4efed; --on-band-soft: #9fbfbb;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] {
  --paper: #0b1616; --sheet: #112121; --ink: #e4efed; --ink-soft: #9fb6b3; --line: #24393a;
  --teal: #4fb5aa; --teal-deep: #7ccdc3; --yellow: #ffde59; --on-yellow: #0e2627; --tint: #15302f;
  --ok: #5cc285; --warn: #e6b04a; --crit: #ef8270; --on-teal: #071313;
  --band: #082a2b; --on-band: #e4efed; --on-band-soft: #9fbfbb;
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.logo-dark { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--s-body); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 700; font-stretch: condensed; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.005em; }
h3 { font-family: var(--f-body); font-weight: 700; font-size: var(--s-3); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.label { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); }
.tag { display: inline-block; background: var(--yellow); color: var(--on-yellow); font-family: var(--f-display); font-stretch: condensed; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; padding: 4px 10px 3px; }
sup.src a { font-family: var(--f-mono); font-size: 0.7em; text-decoration: none; padding: 0 1px; }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.nav .btn { padding: 9px 16px; color: var(--on-teal); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; font-size: 0.9rem; padding: 7px 12px; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--sheet); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--teal); color: var(--on-teal); border: 1px solid var(--teal);
  padding: 13px 22px; border-radius: var(--radius); font: inherit; font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--on-teal); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn .icon { width: 18px; height: 18px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-size: var(--s-hero); margin-top: 18px; }
.hero h1 .hl { color: var(--teal); }
.hero .rule { display: block; width: 96px; height: 8px; background: var(--yellow); margin-top: 22px; }
.hero .lead { margin-top: 22px; font-size: 1.16rem; color: var(--ink-soft); max-width: 35em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.proof div { padding: 14px 16px 0 0; display: grid; gap: 2px; }
.proof b { font-family: var(--f-display); font-stretch: condensed; font-size: 1.6rem; line-height: 1.1; text-transform: uppercase; }
.proof span { font-size: 0.84rem; color: var(--ink-soft); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 44px 56px; } }
@media (max-width: 520px) { .proof { grid-template-columns: minmax(0, 1fr); } .proof div { padding: 12px 0; border-bottom: 1px solid var(--line); } }

/* Bon / Kalkulationszettel */
.bon { background: var(--sheet); border: 1px solid var(--line); padding: 24px 26px 20px; box-shadow: 0 24px 50px -32px rgba(5, 40, 40, .55); font-family: var(--f-mono); font-size: 0.9rem; position: relative; }
.bon::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 6px; background: var(--yellow); }
.bon-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0 12px; border-bottom: 1px dashed var(--line); }
.bon-head b { font-family: var(--f-display); font-stretch: condensed; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.bon-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.bon-row span:first-child { color: var(--ink-soft); }
.bon-row.sub { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; font-weight: 700; }
.bon-row.total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.08rem; }
.bon-row.total span:last-child { background: var(--yellow); color: var(--on-yellow); padding: 0 6px; }
.bon-bar { display: flex; height: 12px; margin: 14px 0 6px; overflow: hidden; }
.bon-bar i { display: block; height: 100%; }
.bon-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.72rem; color: var(--ink-soft); }
.bon-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.bon-note { margin-top: 12px; font-size: 0.78rem; color: var(--ink-soft); font-family: var(--f-body); }
.c-we { --c: #e0b93c; background: #e0b93c; }
.c-ar { --c: #6aa9a2; background: #6aa9a2; }
.c-fx { --c: #11676a; background: #11676a; }
.c-gw { --c: #0b3f41; background: #0b3f41; }

/* Section rows */
.row { border-top: 1px solid var(--line); }
.row .wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 44px; padding-block: 80px; }
.row-side { padding-top: 8px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.row-side .ref { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-soft); }
.row-side .icon { width: 34px; height: 34px; color: var(--teal); stroke-width: 1.3; }
.row h2 { font-size: var(--s-2); }
.row .intro { margin-top: 16px; color: var(--ink-soft); max-width: 42em; font-size: 1.08rem; }
.row.alt { background: var(--sheet); }
@media (max-width: 900px) { .row .wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 56px; } .row-side { flex-direction: row; align-items: center; gap: 12px; } .row-side .icon { width: 26px; height: 26px; } }

/* Dark band: Marktlage */
.band { background: var(--band); color: var(--on-band); border-top: 0; }
.band .row-side .icon { color: var(--yellow); }
.band .row-side .ref, .band .intro { color: var(--on-band-soft); }
.band a { color: var(--yellow); }
.facts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid color-mix(in srgb, var(--on-band) 22%, transparent); }
.fact { padding: 22px 22px 0 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.fact b { font-family: var(--f-display); font-stretch: condensed; font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.fact p { font-size: 0.95rem; color: var(--on-band); }
.fact small { font-size: 0.78rem; color: var(--on-band-soft); }
.band .note { color: var(--on-band-soft); }
@media (max-width: 960px) { .facts4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts4 { grid-template-columns: minmax(0, 1fr); } }

/* Betriebsarten */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
@media (max-width: 760px) { .types { grid-template-columns: minmax(0, 1fr); } }
.type { background: var(--paper); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.row:not(.alt) .type { background: var(--sheet); }
.type-head { display: flex; align-items: center; gap: 12px; }
.type-head .icon { width: 30px; height: 30px; color: var(--teal); }
.type p { color: var(--ink-soft); font-size: 0.96rem; }
.type ul { margin: 0; padding-left: 18px; font-size: 0.94rem; }
.type li { margin: 3px 0; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: auto; }
.kv div { padding: 10px 8px 0 0; display: grid; gap: 1px; }
.kv span { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.kv b { font-family: var(--f-mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type.wide { grid-column: 1 / -1; }

/* DB-Erklärung */
.db-figure { margin-top: 32px; background: var(--sheet); border: 1px solid var(--line); padding: 26px; overflow-x: auto; }
.row.alt .db-figure { background: var(--paper); }
.db-figure svg { display: block; width: 100%; min-width: 560px; height: auto; }
.db-figure figcaption { margin-top: 12px; font-size: 0.84rem; color: var(--ink-soft); }
.defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 26px; border-top: 2px solid var(--ink); }
.def { padding: 18px 20px 0 0; display: grid; gap: 6px; min-width: 0; }
.def .label { color: var(--teal); }
.def p { font-size: 0.95rem; color: var(--ink-soft); }
.def code { font-family: var(--f-mono); font-size: 0.86rem; background: var(--tint); padding: 2px 6px; color: var(--ink); }
@media (max-width: 760px) { .defs { grid-template-columns: minmax(0, 1fr); } }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.compare > div { border: 1px solid var(--line); padding: 18px 20px; background: var(--sheet); }
.row.alt .compare > div { background: var(--paper); }
.compare .r { display: flex; justify-content: space-between; gap: 12px; font-size: 0.93rem; padding: 4px 0; }
.compare .r span:last-child { font-family: var(--f-mono); }
.compare .r.em { font-weight: 700; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
@media (max-width: 600px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* Kernfelder */
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 34px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fieldcard { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--sheet); }
.fieldcard .top { display: flex; justify-content: space-between; align-items: center; }
.fieldcard .icon { width: 30px; height: 30px; color: var(--teal); }
.fieldcard .code { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-soft); }
.fieldcard p { color: var(--ink-soft); font-size: 0.95rem; }
.fieldcard .out { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.9rem; }
.fieldcard .out b { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 2px; }
.fieldcard.photo { padding: 0; position: relative; overflow: hidden; }
.fieldcard.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fieldcard.photo { min-height: 280px; }
.fieldcard.photo span { position: absolute; left: 16px; bottom: 16px; }
@media (max-width: 960px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* Leistungsstufen */
.ladder { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); }
.row:not(.alt) .step { background: var(--sheet); }
.step .ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--tint); color: var(--teal); }
.step h3 { font-size: 1.12rem; }
.step h3 small { font-family: var(--f-mono); font-weight: 400; font-size: 0.75rem; color: var(--ink-soft); margin-right: 8px; letter-spacing: .05em; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }
.step .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; }
.chip.live { border-color: color-mix(in srgb, var(--ok) 55%, transparent); color: var(--ok); }
.chip.soon { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); }
@media (max-width: 640px) { .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; } .step .status { grid-column: 2; } }
.note { margin-top: 18px; font-size: var(--s-small); color: var(--ink-soft); max-width: 50em; }

/* Werkzeuge */
.tabs { display: flex; gap: 0; margin-top: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); cursor: pointer; margin-bottom: -1px; white-space: nowrap; }
.tab .icon { width: 18px; height: 18px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--yellow); }
.tool-intro { margin-top: 20px; font-size: 0.95rem; color: var(--ink-soft); max-width: 50em; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; }
@media (max-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--sheet); border: 1px solid var(--line); padding: 22px; min-width: 0; }
.row.alt .panel { background: var(--paper); }
.panel h3 { font-size: 1.05rem; margin: 6px 0 14px; }
.panel h4 { font-size: 0.8rem; font-family: var(--f-mono); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sample { display: inline-block; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; background: var(--yellow); color: var(--on-yellow); padding: 2px 8px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 5px; margin-bottom: 13px; align-content: start; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.4; }
.input-unit { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); overflow: hidden; }
.input-unit:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.input-unit input, .input-unit select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--f-mono); font-size: 1rem; padding: 9px 11px; }
.input-unit input:focus, .input-unit select:focus { outline: none; }
.input-unit .unit { display: flex; align-items: center; gap: 0.3em; padding: 0 11px; font-family: var(--f-mono); color: var(--ink-soft); border-left: 1px solid var(--line); background: var(--tint); font-size: 0.85rem; white-space: nowrap; }
.result-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.result-big { font-family: var(--f-mono); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.result-big .yl { background: var(--yellow); color: var(--on-yellow); padding: 0 8px; }
.result-list { margin-top: 16px; display: grid; }
.result-list .r { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; }
.result-list .r span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.result-list .r.em { font-weight: 700; }
.result-list .r.sec { color: var(--ink-soft); font-size: 0.86rem; }
.verdict { margin-top: 16px; padding: 12px 14px; background: var(--tint); font-size: 0.92rem; border-left: 3px solid var(--teal); }
.verdict.warn { border-left-color: var(--warn); }
.verdict.crit { border-left-color: var(--crit); }
.meter { margin-top: 16px; display: grid; gap: 14px; }
.m-row { display: grid; gap: 5px; }
.m-top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.m-top b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.m-bar { position: relative; height: 8px; background: var(--tint); overflow: visible; }
.m-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ok); transition: width .3s; }
.m-bar i.warn { background: var(--warn); }
.m-bar i.crit { background: var(--crit); }
.m-bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; }
.m-band { font-size: 0.75rem; color: var(--ink-soft); }
.pill { font-family: var(--f-mono); font-size: 0.68rem; padding: 1px 7px; border-radius: 999px; margin-left: 8px; border: 1px solid currentColor; vertical-align: 1px; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.crit { color: var(--crit); }
.disclaimer { margin-top: 16px; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }

/* Downloads */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.doc { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.row:not(.alt) .doc { background: var(--sheet); }
.doc .ico { width: 54px; height: 66px; background: var(--teal); color: var(--on-teal); display: grid; place-items: center; position: relative; }
.doc .ico::after { content: "PDF"; position: absolute; bottom: 6px; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: .1em; }
.doc .ico .icon { margin-top: -10px; }
.doc .label { color: var(--teal); }
.doc h3 { font-size: 1.1rem; margin: 2px 0 6px; }
.doc p { color: var(--ink-soft); font-size: 0.93rem; }
.doc a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 0.95rem; }
.doc a:hover { text-decoration: underline; }

/* Über */
.about { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 44px; margin-top: 30px; align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } }
.portrait { position: relative; padding: 0 14px 0 0; width: 100%; max-width: 340px; margin: 0; }
@media (max-width: 900px) { .portrait { max-width: 280px; } }
@media (max-width: 420px) { .portrait { max-width: 240px; } }
.portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0; box-shadow: 14px 14px 0 var(--yellow); }
.portrait figcaption { position: relative; margin-top: 26px; font-size: 0.85rem; color: var(--ink-soft); }
.portrait figcaption b { color: var(--ink); display: block; font-size: 1rem; }
.about-text p + p { margin-top: 14px; }
.about-text .facts { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.about-text .facts li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.about-text .facts li span:first-child { color: var(--ink-soft); }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; margin-top: 30px; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-grid .full { grid-column: 1 / -1; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); color: var(--ink); font: inherit; font-size: 1rem; padding: 10px 12px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 18px; }
.check input { margin-top: 4px; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; }
.direct { display: grid; gap: 12px; align-content: start; }
.direct .item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border: 1px solid var(--line); background: var(--sheet); }
.direct .item .icon { color: var(--teal); margin-top: 2px; }
.direct .item .v { font-family: var(--f-mono); font-size: 0.98rem; margin-top: 2px; word-break: break-all; user-select: all; }
.copy { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--teal); font: inherit; font-size: 0.84rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Quellen */
.sources { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; font-size: 0.88rem; }
.sources li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; color: var(--ink-soft); }
.sources li b { font-family: var(--f-mono); color: var(--teal); font-weight: 400; }
.sources a { word-break: break-word; }

/* Footer */
.site-foot { background: var(--band); color: var(--on-band-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 34px; font-size: var(--s-small); }
.site-foot img { height: 40px; width: auto; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: var(--on-band); }

/* Rechtsseiten */
.legal .wrap { max-width: 800px; padding-block: 56px 80px; }
.legal h1 { font-size: var(--s-2); margin-bottom: 28px; }
.legal h2 { font-family: var(--f-body); text-transform: none; font-size: 1.25rem; font-stretch: normal; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; }
.todo { background: color-mix(in srgb, var(--warn) 22%, transparent); padding: 1px 6px; font-family: var(--f-mono); font-size: 0.88em; }
.center-page .wrap { padding-block: 100px; max-width: 660px; }
.center-page h1 { font-size: var(--s-2); margin-top: 14px; }
.center-page p { margin-top: 14px; color: var(--ink-soft); }
.center-page .btn { margin-top: 26px; }

/* Länderauswahl */
.country-bar { margin-top: 30px; padding: 20px 22px; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--yellow); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 28px; align-items: start; }
.row.alt .country-bar { background: var(--paper); }
.country-bar .field { margin: 0; }
.country-bar select { font-family: var(--f-body); }
.cty-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 0.8fr)) minmax(0, 1.5fr); gap: 0 14px; margin: 0; padding-top: 4px; }
.cty-facts div { display: grid; gap: 2px; min-width: 0; }
.cty-facts dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cty-facts dd { margin: 0; font-family: var(--f-mono); font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cty-note, .cty-src { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.cty-note:empty { display: none; }
.cty-note { color: var(--ink); }
@media (max-width: 900px) { .country-bar { grid-template-columns: minmax(0, 1fr); } .cty-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; } }
@media (max-width: 480px) { .cty-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nav .lang { font-family: var(--f-mono); font-size: 0.85rem; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--line); padding: 5px 9px; border-radius: var(--radius); }
.nav .lang:hover { border-color: var(--teal); }
@media (max-width: 920px) { .nav .lang { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; } }

/* Personal nach Mitarbeitern */
.btn.small { padding: 8px 14px; font-size: 0.9rem; margin-top: 10px; }
.staff-wrap { overflow-x: auto; }
.staff { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 0.9rem; }
.staff th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 6px 6px 0; }
.staff td { padding: 4px 6px 4px 0; vertical-align: middle; }
.staff input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); color: var(--ink); font-family: var(--f-mono); font-size: 0.92rem; padding: 7px 8px; }
.staff input.role { font-family: var(--f-body); }
.staff input:focus { outline: none; border-color: var(--teal); }
.staff input.below { border-color: var(--crit); color: var(--crit); }
.staff td:nth-child(1) { width: 34%; } .staff td:nth-child(2) { width: 17%; } .staff td:nth-child(3) { width: 22%; } .staff td:nth-child(4) { width: 19%; }
.staff tfoot td { font-family: var(--f-mono); font-weight: 700; padding-top: 8px; border-top: 1px dashed var(--line); }
.staff .rm { background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); width: 30px; height: 30px; cursor: pointer; font-size: 1rem; line-height: 1; }
.staff .rm:hover { color: var(--crit); border-color: var(--crit); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Export */
.export { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.export .btn { padding: 9px 14px; font-size: 0.9rem; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { background: var(--sheet); color: var(--ink); border: 0; padding: 8px 14px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
#staff-add { margin-top: 10px; }
.tool > *, .panel { min-width: 0; }
/* Mitarbeiter-Zeilen als Karten, passt in die schmale Eingabespalte */
  .staff { min-width: 0; }
  .staff thead { display: none; }
  .staff tbody tr { display: grid; grid-template-columns: 1fr 1fr 1fr 34px; gap: 6px 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .staff tbody td { display: block; width: auto !important; padding: 0; }
  .staff tbody td:nth-child(1) { grid-column: 1 / 4; }
  .staff tbody td:nth-child(5) { grid-column: 4; grid-row: 1; align-self: center; }
  .staff tbody td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
  .staff tfoot tr { display: flex; justify-content: space-between; gap: 10px; }
  .staff tfoot td { width: auto !important; padding-right: 0; border-top: 0; }
  .staff tfoot td:empty { display: none; }
#staff-hint { display: block; font-size: 0.82rem; line-height: 1.5; margin-top: 10px; }
[hidden] { display: none !important; }
/* Leitfaden "Gastronomie verstehen" – prominent unter der Marktlage */
.guide-feature { background: linear-gradient(180deg, var(--sheet), var(--paper)); }
.gf { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
.gf-cover { display: block; max-width: 300px; box-shadow: 14px 14px 0 var(--yellow); border: 1px solid var(--line); transition: transform .2s ease; }
.gf-cover:hover { transform: translateY(-3px); }
.gf-cover img { display: block; width: 100%; height: auto; }
.gf-tag { display: inline-block; background: var(--yellow); color: #0e2627; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; margin-bottom: 14px; }
.gf-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; }
.gf-list li { position: relative; padding-left: 22px; font-size: 0.97rem; }
.gf-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--teal); }
.gf .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gf-meta { margin-top: 14px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-soft); }
@media (max-width: 900px) { .gf { grid-template-columns: minmax(0, 1fr); gap: 32px; } .gf-cover { max-width: 220px; } }
@media (max-width: 640px) { .gf-list { grid-template-columns: minmax(0, 1fr); } }
.teaser { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--ink); text-decoration: none; font-size: 0.93rem; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.teaser span { background: var(--yellow); color: #0e2627; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; }
.teaser .icon { width: 16px; height: 16px; color: var(--teal); }
.teaser:hover { color: var(--teal); border-color: var(--teal); }
/* Länderauswahl – steuert die gesamte Seite */
.country-gate { background: #0b3f41; color: #e9f3f1; border-bottom: 4px solid var(--yellow); }
.country-gate .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 300px) minmax(0, 1.9fr); gap: 14px 30px; align-items: center; padding-block: 22px; }
.cg-head { display: grid; gap: 2px; }
.cg-kick { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.cg-label { font-family: var(--f-display, inherit); font-weight: 800; font-size: 1.55rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.cg-lead { margin: 4px 0 0; font-size: 0.86rem; color: #b9d3cf; max-width: 30em; }
.cg-select select { width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-size: 1.15rem; font-weight: 700; color: #0e2627; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230e2627' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; border: 0; border-radius: var(--radius); padding: 14px 44px 14px 16px; cursor: pointer; box-shadow: 0 0 0 0 rgba(255,222,89,.5); }
.cg-select select:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.country-gate .cty-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; padding: 0; }
.country-gate .cty-facts dt { color: #9fbfbb; }
.country-gate .cty-facts dd { color: #fff; font-size: 0.92rem; }
.country-gate .cty-note { grid-column: 1 / -1; color: #cfe3df; font-size: 0.82rem; margin: 0; }
.country-gate .cty-note:empty { display: none; }
@media (max-width: 1100px) { .country-gate .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); } .country-gate .cty-facts { grid-column: 1 / -1; } }
@media (max-width: 640px) { .country-gate .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 18px; } .country-gate .cty-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cg-label { font-size: 1.3rem; } }
.cty-chip { font-family: var(--f-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: .06em; padding: 6px 10px; border-radius: var(--radius); background: var(--yellow); color: #0e2627 !important; text-decoration: none; }
.cty-chip::before { content: "◉ "; font-size: 0.7em; vertical-align: 1px; }
.cty-inline { margin-top: 22px; font-size: 0.95rem; }
.cty-inline + .cty-src { margin-top: 4px; font-size: 0.8rem; color: var(--ink-soft); }
.gf-edition { align-self: center; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-soft); }
/* Kalkulations-Kit */
.kit-sec { background: var(--paper); border-top: 4px solid var(--yellow); }
.kit { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.kit-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.kit-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.kit-list .icon { width: 26px; height: 26px; color: var(--teal); }
.kit-list b { display: block; font-size: 0.98rem; }
.kit-list span { font-size: 0.9rem; color: var(--ink-soft); }
.kit-buy { background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: 24px; box-shadow: 10px 10px 0 var(--yellow); display: grid; gap: 14px; }
.kit-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kit-price b { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--teal); }
.kit-price span { font-size: 0.85rem; color: var(--ink-soft); }
.kit-facts { margin: 0; padding-left: 18px; font-size: 0.9rem; display: grid; gap: 6px; }
.kit-btn { justify-content: center; font-size: 1.02rem; padding: 14px 18px; }
.kit-note { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
@media (max-width: 900px) { .kit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .kit-list { grid-template-columns: minmax(0, 1fr); } }
.kit-legal { margin: 0; font-size: 0.78rem; color: var(--ink-soft); }
.legal .formblock { border: 1px dashed var(--line); padding: 14px 18px; margin-top: 10px; background: var(--sheet); }
.legal ol { padding-left: 22px; }
.legal .note { color: var(--ink-soft); font-size: 0.92rem; }
.legal h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
/* Kaufseite */
.buy .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 40em; }
.buy-box { max-width: 520px; margin-top: 24px; background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: 24px; box-shadow: 10px 10px 0 var(--yellow); display: grid; gap: 14px; }
.buy-lang { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.buy-consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 0.85rem; align-items: start; }
.buy-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.kit-btn[disabled] { opacity: .45; cursor: not-allowed; }
