/* Ingenieurbüro Pluskat – Stylesheet
   Schriften liegen lokal im Ordner /fonts (kein Google-Fonts-Abruf, DSGVO-freundlich). */

@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --gruen-dunkel: #0f4d2a;
  --gruen: #1f7a35;
  --gruen-hell: #b9e3c2;
  --grund: #ffffff;
  --grund-grau: #f3f6f4;
  --text: #1c2420;
  --text-leise: #4a5550;
  --linie: #e3e8e5;
  --fuss: #0a2e1a;
  --schrift-titel: "Barlow", "Arial Narrow", "Helvetica Neue", sans-serif;
  --schrift-text: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --breite: 1200px;
  --rand: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
  hyphens: manual;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--gruen); }
a:hover { color: var(--gruen-dunkel); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }
.huelle { max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.kopf .logo img { height: 44px; width: auto; }
.navi { display: flex; align-items: center; gap: 32px; font-family: var(--schrift-titel); font-weight: 500; font-size: 17px; }
.navi a { color: var(--text); text-decoration: none; }
.navi a:hover, .navi a[aria-current="page"] { color: var(--gruen); }
.knopf-tel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  background: var(--gruen); color: #fff; border-radius: 6px; text-decoration: none;
  font-family: var(--schrift-titel); font-weight: 600; font-size: 17px;
}
.knopf-tel:hover { background: var(--gruen-dunkel); color: #fff; }
.menue-knopf {
  display: none; width: 48px; height: 48px; padding: 0; border: 1px solid #d3dbd6; border-radius: 8px;
  background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.kopf-aktionen { display: flex; align-items: center; gap: 12px; }
.kopf-aktionen > .knopf-tel { display: none; }

/* ---------- Titelbereich ---------- */
.titel { position: relative; overflow: hidden; background: var(--gruen-dunkel); color: #fff; }
.titel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.titel::after { content: ""; position: absolute; inset: 0; background: rgba(10, 46, 26, 0.72); }
.titel .huelle { position: relative; z-index: 1; padding-top: 128px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; }
.dachzeile { font-family: var(--schrift-titel); font-weight: 600; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gruen); }
.titel .dachzeile, .kontakt .dachzeile { color: var(--gruen-hell); }
.titel h1 { font-size: 60px; line-height: 1.08; max-width: 820px; }
.titel p { font-size: 21px; max-width: 640px; color: #e6efe8; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px;
  border-radius: 6px; text-decoration: none; font-family: var(--schrift-titel); font-weight: 600; font-size: 18px;
}
.knopf-weiss { background: #fff; color: var(--gruen-dunkel); }
.knopf-weiss:hover { background: #e6efe8; color: var(--gruen-dunkel); }
.knopf-rahmen { border: 2px solid #fff; color: #fff; }
.knopf-rahmen:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nur-mobil { display: none; }

/* ---------- Vertrauensleiste ---------- */
.leiste { background: var(--grund-grau); border-bottom: 1px solid var(--linie); }
.leiste .huelle { padding-top: 32px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.leiste-punkt { display: flex; gap: 14px; align-items: center; font-weight: 600; line-height: 1.3; }
.leiste-punkt svg { flex-shrink: 0; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 104px 0; }
.abschnitt-grau { background: var(--grund-grau); }
.abschnitt-kopf { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 48px; }
.abschnitt-kopf h2, .ueber h2 { font-size: 42px; color: var(--gruen-dunkel); }
.abschnitt-kopf p { color: var(--text-leise); }

.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.karte { background: var(--grund-grau); border-radius: 10px; padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.karte-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 10px; background: var(--gruen); display: flex; align-items: center; justify-content: center; }
.karte-text { display: flex; flex-direction: column; gap: 12px; }
.karte h3 { font-size: 24px; color: var(--gruen-dunkel); }
.karte p { color: var(--text-leise); }

.schritte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.schritt { display: flex; flex-direction: column; gap: 10px; }
.schritt-nr { font-family: var(--schrift-titel); font-weight: 700; font-size: 44px; color: var(--gruen); line-height: 1; }
.schritt-text { display: flex; flex-direction: column; gap: 10px; }
.schritt h3 { font-size: 21px; }
.schritt p { color: var(--text-leise); }

.ueber .huelle { display: flex; gap: 64px; align-items: center; }
.portraet { flex: 0 0 400px; width: 400px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center; border-radius: 10px; background: #dfe7e2; }
.ueber-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ueber-text .rolle { margin-top: -12px; font-family: var(--schrift-titel); font-weight: 500; font-size: 20px; color: var(--gruen); }
.ueber-text p { color: var(--text-leise); }
.haken { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.haken li { display: flex; gap: 12px; align-items: center; }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--gruen-dunkel); color: #fff; }
.kontakt .huelle { display: flex; gap: 64px; }
.kontakt-info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 24px; }
.kontakt-info h2 { font-size: 42px; }
.kontakt-info p { color: #d5e6da; }
.kontakt-wege { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; font-size: 20px; font-weight: 600; }
.kontakt-wege a, .kontakt-wege span { display: flex; gap: 14px; align-items: center; color: #fff; text-decoration: none; }
.kontakt-wege a:hover { text-decoration: underline; color: #fff; }
.formular { flex: 1 1 520px; min-width: 0; background: #fff; color: var(--text); border-radius: 10px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.feld-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.formular label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea {
  font: inherit; font-weight: 400; font-size: 17px; padding: 12px 14px; min-height: 48px;
  border: 1px solid #b8c4bd; border-radius: 6px; background: #fff; color: var(--text); width: 100%;
}
.formular textarea { resize: vertical; min-height: 140px; }
.formular input:focus, .formular textarea:focus { border-color: var(--gruen); outline: 2px solid var(--gruen); outline-offset: 0; }
.formular .zustimmung { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; color: var(--text-leise); line-height: 1.45; }
.zustimmung input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--gruen); }
.formular button {
  min-height: 54px; border: none; border-radius: 6px; background: var(--gruen); color: #fff; cursor: pointer;
  font-family: var(--schrift-titel); font-weight: 600; font-size: 18px;
}
.formular button:hover { background: var(--gruen-dunkel); }
.honig { position: absolute; left: -9999px; }
.meldung { border-radius: 6px; padding: 14px 16px; font-size: 16px; display: none; }
.meldung.ok { display: block; background: #e3f3e6; color: #0f4d2a; }
.meldung.fehler { display: block; background: #fbe9e7; color: #8a1c10; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--fuss); color: #c5d6cb; font-size: 15px; }
.fuss .huelle { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.fuss nav { display: flex; gap: 24px; }
.fuss a { color: #c5d6cb; }
.fuss a:hover { color: #fff; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.unterseite { padding: 80px 0 104px; }
.unterseite .huelle { max-width: 820px; }
.unterseite h1 { font-size: 44px; color: var(--gruen-dunkel); }
.unterseite h2 { font-size: 28px; }
.unterseite-text { display: flex; flex-direction: column; gap: 14px; line-height: 1.65; }
.unterseite-text a { overflow-wrap: anywhere; }

/* =========================================================
   TABLET (bis 1024 px)
   ========================================================= */
@media (max-width: 1024px) {
  :root { --rand: 40px; }
  .kopf .huelle { min-height: 72px; }
  .kopf .logo img { height: 38px; }
  .menue-knopf { display: inline-flex; }
  .kopf-aktionen > .knopf-tel { display: inline-flex; }
  .navi {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--linie); box-shadow: 0 12px 24px rgba(15, 77, 42, 0.12);
  }
  .navi.offen { display: flex; }
  .navi a { padding: 16px var(--rand); border-top: 1px solid var(--linie); font-size: 18px; }
  .navi .knopf-tel { display: none; }

  .titel .huelle { padding-top: 96px; padding-bottom: 88px; gap: 22px; }
  .titel h1 { font-size: 48px; max-width: 640px; }
  .titel p { font-size: 20px; max-width: 600px; }

  .leiste .huelle { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; padding-top: 28px; padding-bottom: 28px; }

  .abschnitt { padding: 80px 0; }
  .abschnitt-kopf { margin-bottom: 36px; }
  .abschnitt-kopf h2, .ueber h2, .kontakt-info h2 { font-size: 36px; }

  .karten { grid-template-columns: 1fr; gap: 16px; }
  .karte { flex-direction: row; align-items: flex-start; gap: 24px; padding: 28px; }
  .karte-text { display: flex; flex-direction: column; gap: 6px; }
  .karte h3 { font-size: 23px; }

  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
  .schritt-nr { font-size: 40px; }

  .ueber .huelle { gap: 40px; align-items: flex-start; }
  .portraet { flex: 0 0 280px; width: 280px; }
  .karte h3 br { display: none; }
  .ueber-text { gap: 16px; }
  .ueber-text .rolle { font-size: 18px; margin-top: -10px; }

  .kontakt .huelle { flex-direction: column; gap: 32px; }
  .kontakt-info { flex: none; gap: 16px; }
  .kontakt-wege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 18px; }
  .kontakt-wege a { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; padding: 16px 18px; }
  .kontakt-wege span { grid-column: 1 / -1; font-weight: 400; color: #d5e6da; }
  .formular { flex: none; padding: 32px; }
}

/* =========================================================
   HANDY (bis 640 px)
   ========================================================= */
@media (max-width: 640px) {
  :root { --rand: 20px; }
  body { font-size: 17px; }
  .kopf .huelle { min-height: 64px; }
  .kopf .logo img { height: 30px; }
  .kopf-aktionen > .knopf-tel { display: none; }

  .titel .huelle { padding-top: 56px; padding-bottom: 52px; gap: 18px; }
  .dachzeile { font-size: 13px; }
  .titel h1 { font-size: 34px; line-height: 1.12; }
  .titel p { font-size: 17px; }
  .knoepfe { flex-direction: column; gap: 12px; margin-top: 6px; }
  .knopf { width: 100%; min-height: 52px; }
  .nur-mobil { display: inline-flex; }
  .nicht-mobil { display: none; }

  .leiste .huelle { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
  .leiste-punkt svg { width: 26px; height: 26px; }

  .abschnitt { padding: 56px 0; }
  .abschnitt-kopf { margin-bottom: 24px; gap: 10px; }
  .abschnitt-kopf h2, .ueber h2, .kontakt-info h2 { font-size: 28px; line-height: 1.18; }

  .karte { flex-direction: column; gap: 10px; padding: 24px 20px; }
  .karte-icon { width: 48px; height: 48px; }
  .karte h3 { font-size: 21px; }

  .schritte { grid-template-columns: 1fr; gap: 24px; }
  .schritt { flex-direction: row; gap: 16px; }
  .schritt-nr { font-size: 30px; width: 44px; flex-shrink: 0; line-height: 1.1; }
  .schritt h3 { font-size: 19px; }
  .schritt-text { display: flex; flex-direction: column; gap: 4px; }

  .ueber .huelle { flex-direction: column; gap: 18px; }
  .portraet { flex: none; width: 100%; aspect-ratio: auto; height: 380px; object-position: center 30%; }
  .ueber-text .rolle { font-size: 17px; }

  .kontakt-wege { grid-template-columns: 1fr; gap: 12px; }
  .formular { padding: 24px 20px; gap: 16px; }
  .feld-reihe { grid-template-columns: 1fr; gap: 16px; }

  .fuss .huelle { flex-direction: column-reverse; gap: 10px; }
  .unterseite { padding: 48px 0 64px; }
  .unterseite h1 { font-size: 32px; }
  .unterseite h2 { font-size: 24px; }
}
