/* Notfalldidaktik
   Layout: Einsatzdokumentation und technischer Plan. Helles, kühles Papier, DIN-Schrift wie auf
   Fahrzeugen und Schildern, Leuchtrot als einziger kräftiger Akzent, ein Warnstreifen nach DIN 30710.
   Keine externen Schriften, kein JavaScript (CSP: style-src 'self'). */
:root {
  --paper: #f3f5f6;      /* Grundfläche, leicht kühl */
  --surface: #ffffff;    /* Flächen für Angebote und Datenblatt */
  --ink: #141a1f;        /* Text */
  --muted: #4b5862;      /* Nebentext */
  --line: #d3dadf;       /* Linien, Raster */
  --red: #c8231a;        /* Leuchtrot, Akzent */
  --blue: #1d4f8f;       /* Signalblau, Plan und Links */
  --stripe-white: #ffffff;
  --on-red: #ffffff;     /* Schrift auf Rot */
  --band-bg: #141a1f;    /* dunkles Band (Ansatz) */
  --band-fg: #f3f5f6;
  --band-muted: #c3ccd2;
  --band-red: #ff6b5c;
  --font-display: "DIN Alternate", "Bahnschrift", "D-DIN", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101418; --surface: #161c21; --ink: #e8edf0; --muted: #a2afb8; --line: #2b343b;
    --red: #ff5a4a; --blue: #8ab4f0; --stripe-white: #e8edf0; --on-red: #14080a;
    --band-bg: #05080a; --band-fg: #e8edf0; --band-muted: #a2afb8; --band-red: #ff6b5c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101418; --surface: #161c21; --ink: #e8edf0; --muted: #a2afb8; --line: #2b343b;
  --red: #ff5a4a; --blue: #8ab4f0; --stripe-white: #e8edf0; --on-red: #14080a;
    --band-bg: #05080a; --band-fg: #e8edf0; --band-muted: #a2afb8; --band-red: #ff6b5c; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.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)); }
.section { padding-block: 88px; }
.section .wrap { display: grid; gap: 22px; }
.section-lead { color: var(--muted); max-width: 64ch; font-size: 1.08rem; }

.label { font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label-red { color: var(--red); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 12px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Kopf */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; background: repeating-linear-gradient(-45deg, var(--red) 0 7px, var(--stripe-white) 7px 14px); border: 2px solid var(--red); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.nav a:hover { color: var(--red); }
.nav-cta { border: 2px solid var(--ink); padding: 6px 14px; }
.nav-cta:hover { border-color: var(--red); }

/* Einstieg */
.hero { padding-top: 72px; background: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-bottom: 64px; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 6px; }
.btn { display: inline-block; background: var(--red); color: var(--on-red); text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; padding: 14px 26px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.link-arrow { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.link-arrow::after { content: " →"; color: var(--red); }
.link-arrow:hover { color: var(--red); }

.warnstreifen { height: 22px; background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--stripe-white) 18px 36px); }

/* Grundriss */
.plan { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); padding: 18px 18px 12px; }
.plan svg { width: 100%; height: auto; }
.plan figcaption { font-size: .88rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.grid-lines path { stroke: var(--line); stroke-width: 1; fill: none; }
.walls rect { fill: none; stroke: var(--ink); stroke-width: 3; }
.mirror { stroke: var(--blue); stroke-width: 6; fill: none; }
.furniture rect, .furniture circle { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.cable { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 7 5; }
.devices path, .devices circle { fill: var(--blue); }
.labels text { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; fill: var(--ink); }
.labels text.small { font-size: 9px; fill: var(--blue); }
.dims path { stroke: var(--muted); stroke-width: 1; fill: none; }
.dims text { font-family: var(--font-display); font-size: 12px; fill: var(--muted); }
.legend-cable { font-family: var(--font-display); font-size: 11px; fill: var(--red); }

/* Datenblatt */
.datenblatt { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 40px; }
.datenblatt .wrap { display: grid; gap: 18px; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.specs div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.specs dt { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.specs dd { margin: 4px 0 0; font-size: .98rem; }

/* Leistungen */
.offer-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 36px; }
.offer-main-text { display: grid; gap: 14px; align-content: start; }
.offer-main h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.offer-main p, .offer p { color: var(--muted); }
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.offer { display: grid; gap: 12px; align-content: start; padding: 30px 32px 32px 0; border-bottom: 1px solid var(--line); }
.offer:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--red); }
.fine { font-size: .88rem; color: var(--muted); }
.price-note { color: var(--ink); max-width: 72ch; font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; }

/* Ansatz */
.section-ansatz { background: var(--band-bg); color: var(--band-fg); }
.section-ansatz .section-lead { color: var(--band-muted); }
.section-ansatz .label-red { color: var(--band-red); }
.statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.06; max-width: 20ch; text-wrap: balance; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 18px; }
.principles div { display: grid; gap: 8px; border-top: 3px solid var(--band-red); padding-top: 16px; }
.principles p { color: var(--band-muted); }
.question { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }

/* Arbeitsweise */
.phases { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: p; border-top: 2px solid var(--ink); }
.phases li { counter-increment: p; display: grid; gap: 6px; align-content: start; padding: 18px 20px 0 0; }
.phase { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.phase::before { content: counter(p) " · "; }
.phases strong { font-family: var(--font-display); font-size: 1.25rem; }
.phase-text { color: var(--muted); }

/* Über mich */
.section-about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about { grid-template-columns: 1fr 2fr; align-items: start; column-gap: 56px; }
.about-text { display: grid; gap: 16px; max-width: 68ch; min-width: 0; }
.about-lead { font-size: 1.2rem; font-weight: 600; }
.about-text p:not(.about-lead) { color: var(--muted); }

/* Kontakt */
.contact { grid-template-columns: 1.2fr 1fr; align-items: start; column-gap: 56px; }
.contact > div:first-child { display: grid; gap: 16px; }
.contact > div:first-child p:not(.label) { color: var(--muted); max-width: 52ch; }
.contact-list { margin: 0; border-top: 2px solid var(--ink); }
.contact-list div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-list dt { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding-top: 4px; }
.contact-list dd { margin: 0; font-size: 1.05rem; min-width: 0; overflow-wrap: anywhere; }
.contact-list a { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }

/* Fuß */
.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 26px; color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--ink); }

/* Rechtstexte */
.legal { padding-block: 64px 96px; max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.2rem; margin: 2em 0 .4em; }
.legal p { color: var(--muted); margin-bottom: .8em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .offer-main { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .phases { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .about, .contact { grid-template-columns: 1fr; row-gap: 22px; }
}
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .section { padding-block: 64px; }
  .hero { padding-top: 48px; }
  .offers { grid-template-columns: 1fr; }
  .offer, .offer:nth-child(even) { padding: 26px 0; border-left: 0; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 460px) {
  .specs { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
}
