/* lewa-systems.de — Design B "Industry".
   Tokens 1:1 aus dem Design-System (design-b/_ds/industry-…/styles.css),
   Schriften selbst gehostet unter fonts/ (keine Anfrage an Google). */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }

:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;

  --ok: #1a7f4b;
  --err: #b4232a;
}

/* — Basis — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.6;
  color: var(--color-text); background-color: var(--color-bg);
  /* Raster des Entwurfs: 48-px-Zellen in Haarlinien */
  background-image:
    linear-gradient(var(--color-neutral-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-neutral-200) 1px, transparent 1px);
  background-size: 48px 48px;
}
h1, h2, h3 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0;
}
p { margin: 0; }
strong { font-weight: 600; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
svg { flex: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.muted { color: var(--color-neutral-800); font-size: 16px; }

/* — Blueprint-Rahmen + Registrierkreuze (Design-System) — */
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0; }
.blueprint.duotone { overflow: visible; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* Duotone: Bild entsättigt und in Stahlblau gewaschen. Der Überzug liegt auf
   einem inneren Rahmen, damit die Kreuze der .blueprint-Hülle sichtbar bleiben. */
.duotone .tone { position: relative; overflow: hidden; height: 100%; }
.duotone .tone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-accent); mix-blend-mode: color;
}

/* — Knöpfe — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4);
  min-height: 52px; padding: 0 var(--space-6);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 19px; line-height: 1.2;
  color: var(--color-text); text-decoration: none; cursor: pointer;
  background: transparent; border: 1px solid var(--color-neutral-700); border-radius: 0;
}
.btn:hover { color: var(--color-text); background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
/* Primärknopf: die einzige gefüllte Fläche. accent-700 statt Basis-Akzent,
   damit weiße Schrift den Kontrast für Fließtextgröße hält. */
.btn-primary { color: #fff; background: var(--color-accent-700); border-color: var(--color-accent-700); justify-content: flex-start; gap: var(--space-6); }
.btn-primary:hover { color: #fff; background: var(--color-accent-800); }
.btn-primary:active { background: var(--color-accent-900); }
.btn-lg { min-height: 56px; padding: 0 var(--space-8); font-size: 21px; }
.btn:disabled { opacity: .45; cursor: progress; }

/* — Kopfzeile — */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-3) var(--space-8); padding-block: var(--space-3);
}
.brand {
  display: flex; align-items: center; gap: var(--space-3); margin-right: auto; min-height: 44px;
  color: var(--color-text); text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 24px; letter-spacing: .01em;
}
.brand:hover { color: var(--color-text); }
.brand img { width: auto; height: 40px; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); overflow-x: auto; max-width: 100%; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  color: var(--color-text); text-decoration: none; font-size: 17px; font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--color-accent-700); }
.site-nav .btn { min-height: 44px; font-size: 18px; white-space: nowrap; }
.site-nav a:focus-visible { outline-offset: -2px; }   /* overflow-x der Leiste schneidet sonst den Ring ab */

/* — Hero — */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: var(--space-8) clamp(32px, 6vw, 80px); align-items: center;
  padding-block: clamp(40px, 7vw, 96px);
}
.hero-text { display: flex; flex-direction: column; gap: var(--space-6); }
.tag {
  align-self: flex-start; padding: 6px 12px;
  font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--color-accent-100); color: var(--color-accent-800);
}
.hero h1 { font-size: clamp(52px, 8vw, 96px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.hero h1 span { color: var(--color-accent-700); }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; max-width: 32em; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-side { display: flex; flex-direction: column; gap: var(--space-4); }
.hero-logo { aspect-ratio: 4 / 3; padding: var(--space-6); display: grid; place-items: center; }
.hero-logo img { width: 100%; max-height: 100%; object-fit: contain; }
.area { padding: var(--space-4) var(--space-6); display: flex; gap: var(--space-3); font-size: 17px; }
.area svg { margin-top: 2px; }

/* Häkchen-Listen (Hero-Fakten, Referenz) */
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.checks li { display: flex; gap: var(--space-2); }
.checks svg { margin-top: 4px; }
.checks-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: var(--space-6); font-size: 17px; }

/* — Abschnitte — */
.sec { border-top: 1px solid var(--color-divider); }
.sec > .wrap { padding-block: clamp(48px, 7vw, 96px); }
.sec-head { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-8); }
.kicker {
  font-family: var(--font-heading); font-size: 18px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700);
}
.sec h2 { font-size: clamp(40px, 5vw, 60px); text-transform: uppercase; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-8) clamp(32px, 6vw, 80px); }

/* Karten-Raster: Leistungen, Ablauf */
.grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-8); }
.card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8) var(--space-6); }
.card h3 { font-size: 28px; }
.card a { font-weight: 600; }
.step-no { font-family: var(--font-heading); font-size: 56px; font-weight: 600; line-height: 1; color: var(--color-accent-700); }

/* Hardware */
.hw-intro { display: flex; flex-direction: column; gap: var(--space-4); }
.hw-intro p:first-of-type { font-size: 20px; text-wrap: pretty; }
.hw-item { padding: var(--space-6); }
.hw-item + .hw-item { border-top: 1px solid var(--color-divider); }
.hw-item h3 { font-size: 26px; margin-bottom: var(--space-2); }
.hw-item p { margin-bottom: var(--space-3); }
.hw-item .ab { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-weight: 600; margin: 0; }

/* Preise: Tarif-Tafel mit Haarlinien zwischen den Zellen */
.tarife { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tarif {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); margin: 0 -1px -1px 0;
}
.tarif .no { font-family: var(--font-heading); font-size: 16px; letter-spacing: .1em; color: var(--color-neutral-800); }
.tarif h3 { font-size: 28px; }
.tarif .betrag { display: flex; align-items: baseline; gap: var(--space-2); }
.tarif .zahl { font-family: var(--font-heading); font-size: 72px; font-weight: 600; line-height: 1; }
.tarif.hot { background: var(--color-accent-100); }
.tarif.hot .no { color: var(--color-accent-800); }
.tarif.hot .zahl { color: var(--color-accent-700); }
.tarif-kopf { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.badge { padding: 3px 10px; font-size: 14px; font-weight: 600; color: var(--color-accent-800); border: 1px solid var(--color-accent-700); }
.table { width: 100%; border-collapse: collapse; margin-top: var(--space-8); font-size: 17px; }
.table th, .table td { padding: var(--space-3) var(--space-2); text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.table th { width: 34%; font-weight: 600; }
.table tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* Referenzen */
.ref { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-8) clamp(32px, 5vw, 64px); align-items: center; }
.ref figure { aspect-ratio: 16 / 10; }
.ref figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ref-body { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.ref-body h3 { font-size: 36px; }
.ref-body .art { font-size: 17px; font-weight: 600; color: var(--color-accent-700); }

/* Kontakt */
.kontakt-info { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.mail {
  display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; word-break: break-all;
  font-family: var(--font-heading); font-size: clamp(28px, 3.4vw, 38px); font-weight: 600;
  color: var(--color-text); text-decoration: none;
}
.mail:hover { color: var(--color-accent-700); }
.kontakt-info > p:not(.muted) { font-size: 20px; }
.callback { padding: var(--space-6); display: flex; gap: var(--space-3); }
.callback svg { margin-top: 2px; }
.form-box { padding: var(--space-8) var(--space-6); align-self: start; }
form { display: flex; flex-direction: column; gap: var(--space-6); }
.field label { display: block; margin-bottom: 5px; font-size: 17px; font-weight: 600; }
.field label small { font-size: inherit; font-weight: 400; color: var(--color-neutral-800); }
.input {
  width: 100%; min-height: 52px; padding: 6px 10px;
  font: inherit; font-size: 18px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-neutral-100); border: 1px solid var(--color-neutral-500); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 150px; resize: vertical; }
form .btn-primary { align-self: stretch; }
#form-status:empty { display: none; }
#form-status.ok { color: var(--ok); font-weight: 600; }
#form-status.err { color: var(--err); font-weight: 600; }
/* Honeypot: für Menschen und Screenreader weg, für Bots im DOM. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* — Fußzeile — */
.site-foot { background: var(--color-accent-900); color: var(--color-neutral-100); font-size: 16px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); justify-content: space-between; padding-block: var(--space-6); }
.site-foot nav { display: flex; gap: var(--space-6); }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-neutral-100); }
.site-foot a:hover { color: #fff; }
.site-foot :focus-visible { outline-color: var(--color-accent-300); }

/* — Rechtliches (Impressum, Datenschutz) — */
.legal { max-width: 760px; padding-block: clamp(40px, 6vw, 72px); }
.legal h1 { font-size: clamp(44px, 6vw, 64px); text-transform: uppercase; margin-bottom: var(--space-8); }
.legal h2 { font-size: 26px; margin: var(--space-8) 0 var(--space-2); }
.legal p + p { margin-top: var(--space-3); }

@media (max-width: 540px) {
  html { scroll-padding-top: 8rem; }   /* Kopfzeile ist zweizeilig */
  .site-head .wrap { padding-block: var(--space-2); }
  .site-nav { gap: var(--space-4); }
  .site-nav .btn { order: -1; }   /* Anfrage bleibt in der scrollbaren Leiste sichtbar */
  .btn-lg { width: 100%; }
  .table th, .table td { display: block; width: auto; border: 0; padding-inline: 0; }
  .table th { padding-bottom: 0; }
  .table tr { display: block; border-bottom: 1px solid var(--color-divider); padding-bottom: var(--space-2); }
}
