/* ============================================================
   Ingevon – Plattform für Ingenieurbüros
   Stylesheet. Keine Abhängigkeiten, keine externen Quellen.
   ============================================================ */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourcesans3-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourcesans3-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Farben und Maße ---------- */
:root {
  --papier: #FAF8F5;
  --papier-dunkel: #EDE9E5;
  --linie: #E6E1DA;
  --linie-stark: #D6CFC6;
  --linie-gestrichelt: #C9C0B4;
  --tinte: #2A383D;
  --tinte-weich: #3B4A4F;
  --gruen: #536155;
  --sand: #8C7B68;
  --sand-hell: #D9CDBE;
  --fuss: #29373C;        /* exakt der Hintergrund des dunklen Logos */
  --fuss-text: #C8CFCF;
  --breite: 1240px;
  --rand: 32px;
  --kopf-hintergrund: rgba(250, 248, 245, 0.92);
  --hell: #FAF8F5;            /* immer hell, auch im Dunkelmodus (Text auf Grün/Anthrazit) */
  --headline: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Sanftes Einrasten an Abschnittsanfängen; dazwischen frei scrollbar */
  scroll-padding-top: 81px;          /* Höhe des Kopfs */
}
/* Einrasten nur mit Maus/Trackpad – auf Touch-Geräten stört es das Wischen */
@media (pointer: fine) and (min-width: 761px) {
  html { scroll-snap-type: y proximity; }
}
.hero, .abschnitt, .dach, .kontakt { scroll-snap-align: start; }
.fuss { scroll-snap-align: end; }   /* Seitenende als eigener Rastpunkt, sonst bleibt der Fuß unerreichbar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-decoration: none; }
a:hover { color: var(--tinte); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
  border-radius: 2px;
}
h1, h2, h3 { font-family: var(--headline); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding-left: var(--rand);
  padding-right: var(--rand);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--tinte); color: var(--papier);
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; color: var(--papier); }

.kicker {
  font-family: var(--headline);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: var(--kopf-hintergrund);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf .innen {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { height: 44px; width: auto; }

.nav-schalter {
  display: none;
  background: none; border: 1px solid var(--linie-stark); border-radius: 2px;
  padding: 8px 12px; cursor: pointer; color: var(--tinte);
  font: 600 15px/1 var(--text);
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  font-size: 15px; font-weight: 500;
}
.nav a { color: var(--tinte); }
.nav a:hover { color: var(--gruen); }
.nav a.knopf { color: var(--papier); background: var(--gruen); padding: 10px 20px; border-radius: 2px; }
.nav a.knopf:hover { background: var(--tinte); color: var(--papier); }

/* ---------- Knöpfe ---------- */
.knopf-primaer, .knopf-sekundaer {
  display: inline-block;
  padding: 16px 28px;
  font-weight: 600; font-size: 16px;
  border-radius: 2px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.knopf-primaer { background: var(--gruen); color: var(--papier); }
.knopf-primaer:hover { background: var(--tinte); color: var(--papier); }
.knopf-sekundaer { color: var(--tinte); border: 1px solid var(--linie-gestrichelt); }
.knopf-sekundaer:hover { border-color: var(--tinte); color: var(--tinte); }

/* ---------- Hero ---------- */
.hero { background: var(--papier); }
.hero .innen {
  padding-top: 112px; padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 32px; }
.hero h1 {
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.08; letter-spacing: -0.01em;
}
.hero p { font-size: 20px; max-width: 520px; color: var(--tinte-weich); }
.hero-aktionen { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-bild {
  aspect-ratio: 4 / 3.4;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bild img { width: 70%; height: auto; opacity: .9; }

/* Feste Zeichenfläche für die Punkte – liegt über den Abschnitten, unter dem Kopf */
#punkte-buehne { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.punkt-slot { position: relative; }
.slot-zusammen { aspect-ratio: 1000 / 620; width: 100%; max-width: 520px; justify-self: end; }
.slot-individuell { aspect-ratio: 1000 / 700; width: 100%; max-width: 540px; margin-top: 28px; }
.slot-dach { aspect-ratio: 1000 / 1260; width: 100%; max-width: 420px; justify-self: center; }
.kopf-mit-symbol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px 64px; align-items: center;
}

/* ---------- Abschnitte ---------- */
.abschnitt .innen { padding-top: 120px; padding-bottom: 120px; }
.abschnitt h2 {
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
}
.abschnitt-kopf { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }

.abschnitt-lead { font-size: 19px; line-height: 1.65; color: var(--tinte-weich); max-width: 640px; }
.hero-lead { font-size: 22px !important; color: var(--tinte) !important; font-weight: 500; }

/* Miteinander – vier Prinzipien ohne Kästen */
.miteinander .innen { display: flex; flex-direction: column; gap: 64px; }
.prinzipien {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
@media (max-width: 700px) { .prinzipien { grid-template-columns: 1fr; } }
.prinzipien li { border-top: 1px solid var(--linie-stark); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.prinzipien h3 { font-weight: 400; font-size: 22px; line-height: 1.3; }
.prinzipien p { font-size: 17px; line-height: 1.6; color: var(--tinte-weich); }

/* Plattform statt Konzern */
.plattform { background: var(--papier-dunkel); }
.plattform .innen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px 56px;
  align-items: center;
}
@media (min-width: 1000px) {
  .plattform .innen { grid-template-columns: 1fr 1.2fr; }
}
.plattform-text { display: flex; flex-direction: column; gap: 24px; font-size: 19px; line-height: 1.65; color: var(--tinte-weich); }
.plattform-text p:first-child { font-size: 22px; color: var(--tinte); }

/* DACH-Band */
.dach { background: var(--tinte); color: var(--hell); }
.dach .innen {
  padding-top: 96px; padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px; align-items: center;
}
.dach-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.dach .kicker { color: var(--sand-hell); }
.dach h2 { font-weight: 300; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -0.01em; }
.dach p { font-size: 19px; max-width: 640px; color: var(--fuss-text); }
.dach .dach-schluss { margin-top: 24px; font-family: var(--headline); font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; color: var(--sand-hell); }

.synergien { background: var(--papier-dunkel); }
.synergien .innen { display: flex; flex-direction: column; gap: 64px; }
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--linie-stark);
  border: 1px solid var(--linie-stark);
  list-style: none; margin: 0; padding: 0;
}
.raster li {
  background: var(--papier-dunkel);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
}
.nummer { font-family: var(--headline); font-size: 14px; color: var(--sand); letter-spacing: .1em; }
.raster h3 { font-weight: 400; font-size: 22px; line-height: 1.3; }
.raster p { font-size: 17px; color: var(--tinte-weich); }

.netzwerk .innen { display: flex; flex-direction: column; gap: 56px; }
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.karte {
  background: #fff; border: 1px solid var(--linie);
  display: flex; flex-direction: column; color: var(--tinte);
  transition: border-color .15s ease;
}
a.karte:hover { border-color: var(--gruen); color: var(--tinte); }
.karte-bild {
  aspect-ratio: 16 / 9;
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.karte-bild img { max-height: 72px; width: auto; }
.karte-text { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.karte h3 { font-weight: 400; font-size: 22px; }
.karte p { font-size: 16px; color: var(--tinte-weich); }
.karte-link { font-size: 15px; font-weight: 600; color: var(--gruen); display: flex; gap: 6px; align-items: center; }
.icon { display: inline-block; vertical-align: -2px; }
.karte-frei a { display: inline-flex; align-items: center; gap: 6px; }
.karte-frei {
  border: 1px dashed var(--linie-gestrichelt);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 40px 28px; min-height: 320px;
}
.karte-frei h3 { font-weight: 400; font-size: 22px; }
.karte-frei p { font-size: 16px; color: var(--tinte-weich); }
.karte-frei a { font-size: 15px; font-weight: 600; }
.karte-leer { min-height: 320px; }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--gruen); color: var(--hell); }
.kontakt .innen {
  padding-top: 112px; padding-bottom: 112px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 64px; align-items: center;
}
.kontakt .kicker { color: var(--sand-hell); }
.kontakt h2 { font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; }
.kontakt .abschnitt-kopf p:not(.kicker) { font-size: 19px; max-width: 480px; color: #E6E1DA; }
.kontakt a:focus-visible { outline-color: var(--hell); }

.kontakt-karte {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(250, 248, 245, 0.07);
  border: 1px solid rgba(250, 248, 245, 0.18);
  padding: 32px;
  border-radius: 2px;
}
.kontakt-portrait { display: block; }
.kontakt-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
}
.kontakt-daten { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kontakt-name { font-family: var(--headline); font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; color: var(--hell); }
.kontakt-rolle { font-size: 15px; color: var(--sand-hell); letter-spacing: 0.02em; }
.kontakt-wege { display: flex; flex-direction: column; margin-top: 24px; }
.kontakt-wege a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 0;
  border-top: 1px solid rgba(250, 248, 245, 0.25);
  color: var(--hell);
  font-family: var(--headline);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  overflow-wrap: anywhere;
  transition: color .15s ease;
}
.kontakt-wege a:last-child { border-bottom: 1px solid rgba(250, 248, 245, 0.25); }
.kontakt-wege a:hover { color: var(--sand-hell); }
.kontakt-label { font-family: var(--text); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand-hell); }

@media (max-width: 520px) {
  .kontakt-karte { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .kontakt-portrait { max-width: 220px; }
}

/* ---------- Fuß ---------- */
.fuss { background: var(--fuss); color: var(--fuss-text); }
.fuss .innen {
  padding-top: 56px; padding-bottom: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.fuss img { height: 56px; width: auto; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.fuss a { color: var(--fuss-text); }
.fuss a:hover { color: #fff; }
.fuss a:focus-visible { outline-color: #fff; }

/* ---------- Textseiten (Impressum, Datenschutz, 404) ---------- */
.textseite .innen { padding-top: 96px; padding-bottom: 120px; max-width: 820px; }
.textseite h1 { font-weight: 300; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin-bottom: 40px; }
.textseite h2 { font-weight: 400; font-size: 24px; margin: 48px 0 16px; }
.textseite h3 { font-weight: 500; font-size: 19px; margin: 32px 0 12px; }
.textseite p, .textseite ul { margin: 0 0 16px; color: var(--tinte-weich); }
.textseite ul { padding-left: 22px; }
.textseite li { margin-bottom: 6px; }
.textseite a { text-decoration: underline; text-underline-offset: 3px; }
.textseite a.knopf-primaer { text-decoration: none; margin-top: 16px; }
.textseite address { font-style: normal; color: var(--tinte-weich); margin-bottom: 16px; }
.stand { font-size: 15px; color: var(--sand); margin-top: 48px; }
.hinweis-platzhalter {
  background: #FFF4D6; border-left: 4px solid #D9A62E; padding: 12px 16px; margin-bottom: 32px; font-size: 16px;
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  :root { --rand: 16px; }
  body { font-size: 17px; }
  .hero .innen { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  .abschnitt .innen { padding-top: 72px; padding-bottom: 72px; }
  .dach .innen { padding-top: 64px; padding-bottom: 64px; }
  .kontakt .innen { padding-top: 72px; padding-bottom: 72px; }
  .raster li { min-height: 0; padding: 28px 20px; }
  .karte-frei { min-height: 0; }
  .fuss .innen { flex-direction: column; align-items: flex-start; }

  /* Navigation einklappen – nur wenn JavaScript läuft (Klasse js auf <html>) */
  .js .nav-schalter { display: inline-block; }
  .js .nav { display: none; width: 100%; }
  .js .nav.offen { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .js .nav li { border-top: 1px solid var(--linie); }
  .js .nav a { display: block; padding: 14px 4px; }
  .js .nav a.knopf { margin-top: 8px; text-align: center; }
  .kopf .innen { flex-wrap: wrap; }
}

.logo-dunkel { display: none; }

/* ---------- Dunkelmodus (Systemeinstellung) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1E292D;          /* Seitenhintergrund */
    --papier-dunkel: #26333A;   /* abgesetzte Abschnitte */
    --linie: #36454B;
    --linie-stark: #3F4F56;
    --linie-gestrichelt: #4A5B62;
    --tinte: #F1ECE4;           /* Text */
    --tinte-weich: #C9CFCD;
    --sand: #BCAD9C;            /* Kicker etwas heller als im Hellmodus */
    --fuss: #29373C;           /* Fuß: exakt der Hintergrund des dunklen Logos */
    --fuss-text: #9FA9A9;
    --kopf-hintergrund: #29373C; /* exakt der Hintergrund des dunklen Logos */
  }
  .kopf { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .logo-hell { display: none; }
  .logo-dunkel { display: block; }
  .nav-schalter { border-color: var(--linie-stark); }
  .knopf-sekundaer { border-color: var(--linie-gestrichelt); }
  .karte { background: var(--papier-dunkel); }
  .karte-bild { background: var(--papier-dunkel); border-bottom-color: var(--linie); }  /* Logo in heller Fassung, keine Platte */
  .dach { background: #141C1F; }
  .hinweis-platzhalter { background: #4A3F1E; border-left-color: #D9A62E; color: var(--tinte); }
  .skip { background: var(--tinte); color: var(--papier); }
}
