/* ==========================================================================
   ASEA MMC Bau GmbH — Design-System
   Schriften self-hosted (kein CDN, kein externer Request) — DSGVO-konform.
   ========================================================================== */

@font-face{font-family:Archivo;src:url(/static/fonts/archivo-latin-700-normal.woff2) format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:Archivo;src:url(/static/fonts/archivo-latin-600-normal.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url(/static/fonts/inter-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url(/static/fonts/inter-latin-500-normal.woff2) format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url(/static/fonts/inter-latin-600-normal.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url(/static/fonts/inter-latin-700-normal.woff2) format('woff2');font-weight:700;font-style:normal;font-display:swap}

:root {
  /* --- Layout-Token (verbindlich) --- */
  --container-max: 1180px;
  --page-gutter: 24px;
  --section-gap: 86px;
  --card-radius: 16px;
  --header-height: 74px;
  --btn-h: 54px;
  --grid-gap: 22px;
  /* Lesebreite: eine Zeile Fliesstext haelt so rund 75 Zeichen —
     der Bereich, in dem sich Text am angenehmsten liest. */
  --measure: 62ch;

  /* --- Farben: Graphit + Ziegelrot --- */
  --ink: #16181a;
  --graphite: #23272b;
  --graphite-2: #2e3338;
  --body: #3a4046;
  --muted: #6b7379;
  --line: #dcdfe2;
  --line-soft: #e9ebed;
  --surface: #ffffff;
  --surface-2: #f4f5f6;
  --surface-3: #eceeef;

  --accent: #a33224;
  --accent-dark: #85281c;
  --accent-soft: #f6eceb;

  --focus: #1f6fb2;

  /* --- Typografie: self-hosted, mit echtem Fallback --- */
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: Archivo, Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  /* Typo-Skala — sieben feste Stufen plus zwei fluide Ueberschriften.
     Jede Schriftgroesse im Stylesheet kommt aus dieser Liste, damit die
     Seite nicht aus zwei Dutzend fast gleichen Werten besteht. */
  --fs-2xs:  0.75rem;    /* 12px — Eyebrow, Label, Zahl */
  --fs-xs:   0.8125rem;  /* 13px — Fussnote, Bildunterschrift */
  --fs-sm:   0.9375rem;  /* 15px — Nebentext, Karteninhalt */
  --fs-base: 1rem;       /* 16px — Fliesstext, Eingabefelder, Knopf */
  --fs-lg:   1.0625rem;  /* 17px — Lead */
  --fs-h3:   1.125rem;   /* 18px — Zwischenueberschrift */
  --fs-xl:   1.25rem;    /* 20px — grosse Zwischenueberschrift */
  --fs-h1: clamp(2.1rem, 1.35rem + 2.6vw, 3.35rem);
  --fs-h2: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem);
  --fs-body: var(--fs-base);
  --fs-small: var(--fs-sm);

  --shadow: 0 1px 2px rgba(20, 22, 24, 0.05), 0 8px 26px rgba(20, 22, 24, 0.06);
}

/* -------------------------------------------------------------- Basis */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
  /* Deutsche Komposita ("Datenschutzerklaerung", "Freistellungs-
     bescheinigung") sind laenger als ein 320px-Display. Ohne das hier
     schieben sie die ganze Seite seitlich aus dem Rahmen. */
  hyphens: auto;
  overflow-wrap: break-word;
}
p, li, dd, dt, figcaption, label { hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------ Layout-Bausteine */

.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: calc(var(--section-gap) * 0.62); }
.section--alt { background: var(--surface-2); }

/* Anker duerfen nicht unter dem Sticky-Header liegen */
[id] { scroll-margin-top: calc(var(--header-height) + 18px); }

.section-head {
  max-width: var(--measure);
  margin: 0 0 42px;
}
.eyebrow {
  display: block;
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.rule {
  height: 3px;
  width: 46px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 22px;
}

/* ------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--onDark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--onDark:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  /* Ohne das quetscht der Flexbox das Logo bei engem Kopf zusammen —
     bei 1024px war es messbar 4 % zu schmal. */
  flex: 0 0 auto;
}
.brand__logo {
  height: 38px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--body);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.header-cta { height: 44px; padding-inline: 20px; }

/* Telefonnummer im Kopf — auf dem Telefon der eigentliche Handlungsknopf */
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.header-tel:hover { border-color: var(--ink); color: var(--ink); }
.header-tel__icon { display: flex; color: var(--accent); }
/* Am Schreibtisch rechts neben der Navigation, vor dem roten Knopf. */
.header-tel { order: 1; }
.header-cta { order: 2; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  background: linear-gradient(155deg, var(--graphite) 0%, #1a1d20 62%, #101214 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 88% 8%, rgba(163, 50, 36, 0.30), transparent 68%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.028) 0 2px, transparent 2px 9px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 46px;
  align-items: center;
}
.hero__inner {
  padding-block: clamp(60px, 7vw, 104px);
  max-width: 40rem;
}
.hero__illu {
  margin: 0;
  align-self: end;
  padding-bottom: clamp(28px, 4vw, 56px);
}
.hero__illu img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero__kicker {
  display: inline-block;
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e6b6ae;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero__sub {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: #f0d9d5;
  margin-bottom: 20px;
}
.hero__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-lg);
  max-width: 40rem;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  padding-block: 22px;
}
.hero__strip .item {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-sm);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.hero__strip .item b { color: #fff; font-weight: 600; }
.tick { color: var(--accent); flex: 0 0 auto; font-weight: 700; }

/* --------------------------------------------------------------- Grids */

/* grid-auto-rows: 1fr — alle Reihen gleich hoch. Sonst springt die
   Kartenhoehe von Reihe zu Reihe (216 / 167 / 167 px gemessen) und das
   Raster franst nach unten aus. */
.grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.section--alt .card { background: #fff; }
.card:hover { border-color: #c2c7cb; box-shadow: var(--shadow); }
.card__num {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 0; }

/* --------------------------------------------------------- Ueber uns */

/* Fliesstext bleibt lesbar breit, auch wenn die Spalte aufklappt */
.about > div { max-width: var(--measure); }
.kontaktinfo { max-width: var(--measure); }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 52px;
  align-items: start;
}
.about > * { min-width: 0; }
.facts {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 8px 26px;
  margin: 0;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(9ch, auto) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; font-size: var(--fs-sm);
  text-align: left; line-height: 1.45; }
.facts .todo { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------ Formulare */

.forms {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: start;
}

.kontaktinfo h3 { font-size: var(--fs-xl); margin-bottom: 12px; }
.kontaktinfo > p { color: var(--muted); margin-bottom: 26px; }
.kontaktinfo .small { color: var(--muted); margin-top: 22px; margin-bottom: 0; }

.direkt { margin: 0; border-top: 1px solid var(--line); }
.direkt div {
  display: grid;
  grid-template-columns: minmax(9ch, auto) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.direkt dt { color: var(--muted); font-size: var(--fs-sm); }
.direkt dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.direkt dd.todo { color: var(--accent); }

.formcard {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.formcard h3 { font-size: var(--fs-xl); margin-bottom: 6px; }
.formcard > p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 22px; }
.formcard form { display: flex; flex-direction: column; flex: 1; }

.field { margin-bottom: 16px; }
/* Nachrichtenfeld fuellt die Restfläche, damit beide Formularkarten
   gleich hoch sind, ohne dass eine Luecke ueber dem Button entsteht. */
.field--grow { display: flex; flex-direction: column; flex: 1 1 auto; }
.field--grow textarea.input { flex: 1 1 auto; }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .req { color: var(--accent); }

.input,
select.input,
textarea.input {
  width: 100%;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  height: var(--btn-h);
  transition: border-color 0.15s ease;
}
textarea.input { height: auto; min-height: 128px; padding: 13px 14px; line-height: 1.55; resize: vertical; }
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  /* An der Mitte ausgerichtet — mit festem Pixelwert sass der Pfeil bei
     kleinerer Feldhoehe (--btn-h 50px) schief. */
  background-position: calc(100% - 20px) calc(50% - 2px),
                       calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: #9aa1a7; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Pflicht-Einwilligung: 13px Text und ein 17px-Kaestchen sind auf dem
   Telefon zu klein zum Treffen und zum Lesen. */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 20px;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.consent input {
  margin: 2px 0 0;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  accent-color: var(--accent);
  cursor: pointer;
}
.formcard .btn { margin-top: auto; }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin: 12px 0 0; }

/* Honeypot — fuer Menschen unsichtbar, fuer Bots sichtbar im DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: var(--fs-sm);
  margin-bottom: 24px;
  border: 1px solid;
}
.alert--error { background: var(--accent-soft); border-color: #e3c2bd; color: #7a2418; }

/* ------------------------------------------------------------- Banner */

.draft-banner {
  background: #3a2f10;
  color: #f6e3b0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  padding: 10px 0;
}
.draft-banner .wrap { display: flex; gap: 12px; align-items: flex-start; }
.draft-banner b { color: #ffdf94; }

/* -------------------------------------------------------------- Footer */

.site-footer {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.74);
  padding-block: 56px 0;
  font-size: var(--fs-sm);
}
.site-footer h4 {
  color: #fff;
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Vier Spalten: "Rechtliches" hatte vorher keine eigene und klebte im
   Fuss unter "Einsatzgebiet" — die beiden Listen lasen sich als eine. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand .brand__logo {
  height: 38px;
  width: auto;
  display: block;
}
.site-footer .brand__logo { height: 34px; }

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--grid-gap);
}
.work {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-3);
}
.work figcaption {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
}
.work__trade {
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.work__text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.works__note {
  margin: 26px 0 0;
  max-width: var(--measure);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.footer-brand p { margin-top: 16px; max-width: 34ch; color: rgba(255, 255, 255, 0.62); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}
.todo-inline { color: #e8a99f; }

/* ---------------------------------------------------------- Legal-Seiten */

.legal { max-width: var(--measure); }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: var(--fs-xl); margin-top: 40px; }
.legal h3 { font-size: var(--fs-lg); margin-top: 26px; }
.legal p, .legal li { color: var(--body); }
.legal ul { padding-left: 20px; }
.legal .ph {
  background: var(--accent-soft);
  color: #7a2418;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  font-size: inherit;
}

/* ------------------------------------------------------------- Danke */

.danke { text-align: left; max-width: 56ch; }

/* -------------------------------------------------------------- Admin */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.leads { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); min-width: 900px; }
table.leads th, table.leads td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.leads th { background: var(--surface-2); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ================================ Breakpoints ============================ */

/* Der Kopf braucht ausgeschrieben 1052px (Logo 263 + Navigation 337 +
   Nummer 157 + Knopf 187 + Abstaende + Rand). Darunter Menuetaste — sonst
   schob der rote Knopf zwischen 981 und 1051px rechts aus dem Bild. */
@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--page-gutter) 18px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:hover { border-bottom-color: var(--line-soft); }
  .header-cta { display: none; }
  /* Nummer links, Menuetaste ganz rechts. */
  .header-tel { order: 0; margin-left: auto; }
}

@media (max-width: 980px) {
  :root { --section-gap: 64px; }

  .grid, .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__illu { padding-bottom: 34px; max-width: 560px; }
  .forms { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 32px; }
  .hero__strip .wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 680px) {
  :root { --page-gutter: 18px; --section-gap: 52px; --btn-h: 50px; }

  .grid, .works { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; }
  .formcard { padding: 24px 20px 26px; }
  /* Label ueber Wert statt nebeneinander. Vorher stand hier
     flex-direction — an einem display:grid wirkungslos, die zweispaltige
     Zeile blieb und riss die Seite auf schmalen Telefonen auf. */
  .facts div,
  .direkt div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd, .direkt dd { text-align: left; }
  .brand__logo { height: 30px; }
}

/* Ab hier wird im Kopf der Platz knapp: erst die Nummer auf das
   Hoerersymbol eindampfen, dann das Logo verkleinern. Sonst staucht die
   Flexbox Logo und Menuetaste — bei 320px fehlten gemessen 50px. */
@media (max-width: 500px) {
  .header-tel { padding-inline: 0; width: 44px; justify-content: center; }
  .header-tel__nr { position: absolute; left: -9999px; }
}

@media (max-width: 430px) {
  .site-header .wrap { gap: 10px; }
  .brand__logo { height: 26px; }
}

@media (max-width: 340px) {
  .brand__logo { height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .hero__actions, .forms { display: none; }
}
