/* Gefahrgut-Pilot – Designsystem */
:root {
  --navy-950: #060f1f;
  --navy-900: #0b1a33;
  --navy-800: #11264a;
  --navy-700: #1b3866;
  --orange: #ff6b1a;
  --orange-600: #e8590c;
  --orange-soft: #fff0e6;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #0e1a2e;
  --muted: #56627a;
  --border: #dde3ee;
  --primary: #e8590c;
  --primary-ink: #ffffff;
  --primary-soft: #fff0e6;
  --link: #c2410c;
  --ok: #157a3c;
  --ok-soft: #e3f4ea;
  --warn: #93590a;
  --warn-soft: #fff4dc;
  --err: #b42318;
  --err-soft: #fde8e6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 26, 51, .05), 0 8px 24px rgba(11, 26, 51, .07);
  --shadow-lg: 0 20px 50px rgba(11, 26, 51, .18);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070e1c; --surface: #0f1b31; --surface-2: #16243f; --text: #e8edf6; --muted: #9aa8c0; --border: #22334f;
    --primary: #ff7a30; --primary-ink: #1a0b02; --primary-soft: #2e1a0d; --link: #ff9a5c; --orange-soft: #2e1a0d;
    --ok: #5fd08a; --ok-soft: #0f2c1c; --warn: #f2b85b; --warn-soft: #2f230c; --err: #ff8c80; --err-soft: #3a1714;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070e1c; --surface: #0f1b31; --surface-2: #16243f; --text: #e8edf6; --muted: #9aa8c0; --border: #22334f;
  --primary: #ff7a30; --primary-ink: #1a0b02; --primary-soft: #2e1a0d; --link: #ff9a5c; --orange-soft: #2e1a0d;
  --ok: #5fd08a; --ok-soft: #0f2c1c; --warn: #f2b85b; --warn-soft: #2f230c; --err: #ff8c80; --err-soft: #3a1714;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hl { color: var(--orange); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 26, 51, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img, .brand svg { width: 38px; height: 38px; }
.brand .brand-sub { color: var(--orange); }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,107,26,.18); box-shadow: inset 0 0 0 1px rgba(255,107,26,.5); }
.nav .nav-cta { background: var(--orange); color: #1a0b02; margin-left: 6px; }
.nav .nav-cta:hover { background: #ff8a3d; color: #1a0b02; }
@media (max-width: 640px) {
  .site-header .container { padding-top: 8px; padding-bottom: 8px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 10px; font-size: .9rem; }
  .nav .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.dark-band { background: radial-gradient(1200px 500px at 85% -10%, rgba(255,107,26,.22), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(56,110,200,.25), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #e8edf6; position: relative; overflow: hidden; }
.dark-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.dark-band > * { position: relative; }
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } .hero { padding: 48px 0 56px; } }
.hero h1 { color: #fff; margin: 16px 0 20px; }
.hero .lead { font-size: 1.18rem; color: #b9c5da; max-width: 600px; }
.hero .btn-row { margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: #93a3bf; font-size: .9rem; }
.hero-trust span::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: 6px; }

.hero-visual { position: relative; height: 420px; }
.float { position: absolute; background: #fff; color: #111; border-radius: 18px; box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.float.label { top: 10px; left: 30px; width: 300px; padding: 18px; transform: rotate(-3deg); }
.float.label .fl-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.float.label .fl-picts { display: flex; gap: 6px; }
.float.label .fl-picts svg { width: 58px; height: 58px; }
.float.label .fl-signal { font-weight: 900; color: #b42318; letter-spacing: .06em; margin: 6px 0 4px; }
.float.label .fl-lines div { height: 7px; border-radius: 4px; background: #e6eaf1; margin-top: 7px; }
.float.label .fl-lines div:nth-child(2) { width: 80%; }
.float.label .fl-lines div:nth-child(3) { width: 60%; }
.float.plate { right: 10px; top: 170px; width: 190px; padding: 0; background: #ff7b14; border: 6px solid #111; border-radius: 6px; animation-delay: -2s; transform: rotate(4deg); }
.float.plate div { font: 800 2.4rem/1.25 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: center; color: #111; }
.float.plate div + div { border-top: 5px solid #111; }
.float.badge { left: 0; bottom: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; animation-delay: -4s; }
.float.badge .b-ic { width: 42px; height: 42px; border-radius: 12px; background: #e3f4ea; color: #157a3c; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; }
.float.badge strong { display: block; }
.float.badge span { font-size: .85rem; color: #56627a; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: -44px; position: relative; box-shadow: var(--shadow); }
.stats > div { background: var(--surface); padding: 22px 20px; }
.stats strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page head (Unterseiten) ---------- */
.page-head { padding: 44px 0 40px; margin-bottom: 32px; color: #e8edf6; background: var(--navy-900); box-shadow: 0 0 0 100vmax var(--navy-900); clip-path: inset(0 -100vmax); }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 6px; }
.page-head .muted { color: #a9b6cc; max-width: 760px; }
.page-head a { color: #ffb07f; }

.section { padding: 24px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 48px 0 20px; }
.section-head h2 { margin: 6px 0 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--navy-950); color: #93a3bf; font-size: .92rem; }
.site-footer .container { padding-top: 48px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #c3cee0; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .brand { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.brand-note strong { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; cursor: pointer; background: var(--primary); color: var(--primary-ink); padding: 12px 20px; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232, 89, 12, .3); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { box-shadow: var(--shadow); }
.btn.ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.btn.ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
a.card { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(255,107,26,.5); }
a.card .go { position: absolute; top: 20px; right: 20px; color: var(--muted); transition: color .18s, transform .18s; }
a.card:hover .go { color: var(--orange); transform: translateX(3px); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #ff8a3d, #e8590c); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(232, 89, 12, .3); }
.card-icon svg { width: 24px; height: 24px; }
.card.course .card-icon { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); box-shadow: 0 6px 16px rgba(11, 26, 51, .3); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 900; font-size: 2rem; color: var(--orange); letter-spacing: -.03em; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { margin-top: 64px; border-radius: 24px; padding: 40px; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, #ff7a2a, #e8590c 60%, #c2410c); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: 0 20px 50px rgba(232, 89, 12, .3); }
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); max-width: 620px; }
.cta-band .btn { background: var(--navy-900); color: #fff; }
.cta-band .btn:hover { box-shadow: 0 8px 20px rgba(0,0,0,.25); }
@media (max-width: 560px) { .cta-band { padding: 28px 20px; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.notice { border-left: 4px solid var(--warn); background: var(--warn-soft); padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.notice.info { border-color: var(--orange); background: var(--orange-soft); }

/* ---------- Forms ---------- */
input[type="text"], input[type="search"], input[type="date"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; width: 100%; }
input:focus, select:focus { outline: 3px solid rgba(255,107,26,.25); border-color: var(--orange); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(255,107,26,.55); outline-offset: 2px; }
label { font-weight: 700; display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- H-Satz-Liste ---------- */
.hlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hrow { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.hrow .code { font-weight: 800; font-variant-numeric: tabular-nums; }
.hrow .picts { display: flex; gap: 4px; }
.hrow .picts svg { width: 36px; height: 36px; }
.hrow .meta { font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .hrow { grid-template-columns: 64px 1fr; } .hrow .picts { grid-column: 2; } }
.signal { font-weight: 800; font-size: .78rem; padding: 2px 8px; border-radius: 6px; }
.signal.gefahr { background: var(--err-soft); color: var(--err); }
.signal.achtung { background: var(--warn-soft); color: var(--warn); }

/* ---------- Piktogramme ---------- */
.pict-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pict-card { text-align: center; }
.pict-card svg { width: 120px; height: 120px; margin: 0 auto; }
.ghs { display: block; }

/* ---------- Etikett ---------- */
.two-col { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.check-list { max-height: 480px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; padding: 4px; background: var(--surface); }
.check-list label { font-weight: 400; display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; margin: 0; }
.check-list label:hover { background: var(--surface-2); }
.check-list input { accent-color: var(--orange); }
.check-list .grp { font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 8px 4px; }
.label-preview { background: #fff; color: #111; border: 2px solid #111; border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.label-preview .lp-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.label-preview .lp-picts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.label-preview .lp-picts svg { width: 80px; height: 80px; }
.label-preview .lp-signal { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; margin: 6px 0; letter-spacing: .04em; }
.label-preview ul { margin: 6px 0 0; padding-left: 18px; }
.label-preview .lp-note { font-size: .8rem; color: #555; margin-top: 10px; }

/* ---------- Quiz / Schulung ---------- */
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 20px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #ff8a3d, #e8590c); width: 0; transition: width .3s; }
.lesson { max-width: 820px; }
.lesson ul, .lesson ol { padding-left: 22px; }
.lesson li { margin-bottom: 6px; }
.answers { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.answer { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.answer:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-soft); }
.answer.correct { border-color: var(--ok); background: var(--ok-soft); }
.answer.wrong { border-color: var(--err); background: var(--err-soft); }
.answer:disabled { cursor: default; }
.feedback { padding: 14px 16px; border-radius: 12px; margin-top: 8px; }
.feedback.ok { background: var(--ok-soft); color: var(--ok); }
.feedback.bad { background: var(--err-soft); color: var(--err); }
.quiz-pict svg { width: 160px; height: 160px; display: block; margin: 8px auto; }
.toc { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.toc button { font: inherit; font-size: .85rem; border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 5px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.toc button[aria-current="step"] { border-color: var(--orange); color: var(--link); background: var(--orange-soft); }
.toc button.done { color: var(--ok); }
.score { font-size: 3rem; font-weight: 900; letter-spacing: -.03em; }

/* ---------- Rechtliches ---------- */
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
.todo { background: #fff3a8; color: #5a4300; padding: 0 4px; border-radius: 4px; }

/* ---------- Zertifikat / Druck ---------- */
.certificate { display: none; }
@media print {
  @page { size: A4; margin: 18mm; }
  body { background: #fff; color: #000; }
  body.printing-cert > *:not(.certificate) { display: none !important; }
  body.printing-cert .certificate { display: block !important; }
  body:not(.printing-cert) .site-header, body:not(.printing-cert) .site-footer, body:not(.printing-cert) .no-print, body:not(.printing-cert) .page-head { display: none !important; }
  .label-preview { break-inside: avoid; box-shadow: none; }
}
.certificate { font-family: Georgia, "Times New Roman", serif; color: #000; text-align: center; padding: 22mm 12mm; border: 2px solid #0b1a33; outline: 6px solid #ff6b1a; outline-offset: -12px; min-height: 250mm; }
.certificate .c-logo { width: 60px; height: 60px; margin: 0 auto 4mm; }
.certificate .c-brand { font-family: var(--font); font-weight: 800; font-size: 14pt; }
.certificate h1 { font-size: 30pt; margin: 10mm 0 8mm; letter-spacing: 0; }
.certificate .c-name { font-size: 22pt; font-weight: bold; margin: 8mm 0; }
.certificate .c-course { font-size: 16pt; font-weight: bold; }
.certificate .c-sign { display: flex; justify-content: space-around; margin-top: 28mm; font-size: 10pt; }
.certificate .c-sign div { border-top: 1px solid #000; padding-top: 2mm; width: 60mm; }
.certificate .c-note { font-size: 9pt; margin-top: 14mm; color: #333; }

/* ---------- Gefahrgut ---------- */
.plate { display: inline-grid; grid-template-rows: 1fr 1fr; width: 240px; max-width: 100%; aspect-ratio: 4 / 3; background: #ff7b14; border: 7px solid #111; border-radius: 6px; box-shadow: var(--shadow-lg); }
.plate > div { display: grid; place-items: center; font: 800 clamp(2rem, 7vw, 2.8rem)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #111; letter-spacing: .04em; }
.plate > div + div { border-top: 6px solid #111; }
.plate.blank > div { color: transparent; }
.plate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; }
.decode { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.decode li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.decode .dg { width: 44px; height: 44px; border-radius: 10px; background: #ff7b14; color: #111; font-weight: 900; font-size: 1.3rem; display: grid; place-items: center; border: 3px solid #111; }
.adr-labels { display: flex; gap: 6px; flex-wrap: wrap; }
.adr-labels svg { width: 44px; height: 44px; }
.cls-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cls-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.cls-card svg { width: 96px; height: 96px; }
.cls-card .cno { font-weight: 900; color: var(--orange); font-size: .85rem; letter-spacing: .05em; }
.points-table { width: 100%; border-collapse: collapse; }
.points-table th, .points-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.points-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.points-table input, .points-table select { padding: 8px 10px; }
.points-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.points-table .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: 4px 8px; }
@media (max-width: 640px) {
  .points-table thead { display: none; }
  .points-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .points-table td { border: 0; padding: 0; }
  .points-table td:first-child { grid-column: 1 / -1; }
}
.meter { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, #22a35a, #f2b85b 70%, #e23d28); width: 0; transition: width .3s; }
.result-big { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; }
.tool-group-title { display: flex; align-items: center; gap: 10px; }
.tool-group-title .tg-ic { width: 34px; height: 34px; }
.two-col.wide-left { grid-template-columns: 1.4fr .9fr; }
@media (max-width: 820px) { .two-col.wide-left { grid-template-columns: 1fr; } }
.two-col > * { min-width: 0; }
.chip { max-width: 100%; white-space: normal; text-align: left; }
.card h3, .card p { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.cls-card { grid-template-columns: 84px 1fr; }
.cls-card svg { width: 84px; height: 84px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.code { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; min-height: 160px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- Tabellen (Firmen-/Admin-Bereich) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th, .data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.data td.actions { white-space: nowrap; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.due { background: var(--warn-soft); color: var(--warn); }
.status.over, .status.none { background: var(--err-soft); color: var(--err); }
.status.none { background: var(--surface-2); color: var(--muted); }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 9px; }
.btn.danger { background: var(--err); color: #fff; }
.link-btn { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.kpi strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.kpi span { color: var(--muted); font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.editor-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; background: var(--surface-2); }
.editor-item .ei-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; }
.opt-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-bottom: 6px; }
.opt-row input[type="radio"] { accent-color: var(--orange); width: 18px; height: 18px; }
.verify-card { max-width: 640px; }
.verify-card .vc-status { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.verify-card .vc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; }
.vc-icon.ok { background: var(--ok-soft); color: var(--ok); }
.vc-icon.bad { background: var(--err-soft); color: var(--err); }
.certificate .c-qr { display: flex; align-items: center; justify-content: center; gap: 6mm; margin-top: 10mm; font-family: var(--font); font-size: 9pt; text-align: left; }
.certificate .c-qr img, .certificate .c-qr svg { width: 26mm; height: 26mm; }
