/* ============================================================
   IGR Layout-Framework — Seitengerüst, Header/Footer, Sections,
   Komponenten. Werte aus Handoff 01-design-tokens.md / 02-seiten-struktur.md.
   Divi-Kompatibilität: Sections tragen css_class, innere Layouts laufen
   über eigenes Markup in Text-/Code-Modulen (bewährtes Crossmedia-Muster).
   ============================================================ */

/* ---------- Seitenrahmen ----------
   Full-Width (Entscheidung Burk 04.08.): Sections laufen bis an den Rand,
   Inhalte bleiben über igr-inhalt/igr-schmal begrenzt. Kein Boxed-Container. */
body { background: #fff; }

#page-container {
  background: #fff;
  overflow: visible !important;
}

/* Header-/Footer-Inhalte auf Satzspiegel begrenzen */
.igr-header-inner,
.igr-sponsorbar-inner,
.igr-footer-grid,
.igr-footer-copy {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Divi-Rows in IGR-Sections neutralisieren: volle Breite, Layout macht das Modul-HTML */
.et_pb_section[class*="igr-"] > .et_pb_row {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
.et_pb_section[class*="igr-"] .et_pb_module { margin-bottom: 0; }
/* Spalten nicht floaten lassen — Block-Layout, Breite 100%; Flex/Grids
   liegen ausschließlich im eigenen Markup innerhalb der Module */
.et_pb_section[class*="igr-"] .et_pb_column {
  float: none;
  width: 100%;
  margin: 0;
}
/* Absolute Deko (Welle, Blobs) muss an der SECTION ankern, nicht an der Row —
   Divi-Rows sind position:relative (Crossmedia-Lehre) */
.et_pb_section[class*="igr-"] > .et_pb_row,
.et_pb_section[class*="igr-"] .et_pb_column,
.et_pb_section[class*="igr-"] .et_pb_module,
.et_pb_section[class*="igr-"] .et_pb_code_inner,
.et_pb_section[class*="igr-"] .et_pb_text_inner { position: static !important; }

/* Zeilenumbrüche im Quell-HTML werden zu <br>-Flex-Items — nur die
   strukturellen unterdrücken, gewollte <br> in Links bleiben */
.igr-footer-links > br,
.igr-footer-grid > br,
.igr-footer-grid > div > br,
.igr-sponsorbar-inner > br,
.igr-header-inner > br,
.igr-nav > br { display: none; }

/* Divi-Überschriften-Defaults zurücksetzen */
.et_pb_section[class*="igr-"] h1,
.et_pb_section[class*="igr-"] h2,
.et_pb_section[class*="igr-"] h3 { padding-bottom: 0; }

/* ---------- Typografie-Basisklassen ---------- */
/* Dachzeile. Claas 31.08.2026: als Pille sah sie wie ein Button aus, ist aber keiner.
   Jetzt ohne Rahmen, nur mit dünnem Strich nach unten abgegrenzt. */
.igr-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #b9c6e2;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding: 0 0 8px;
  border-radius: 0;
}
.igr-eyebrow--frei {          /* ohne Pill, für helle Flächen — eigenständige Klasse */
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0D9DE5;
}
/* Mit dem Namen „BodenNeuStart“ keine Versalien — sonst steht dort BODENNEUSTART (Claas, 08.10.2026). */
.igr-eyebrow--marke { text-transform: none; letter-spacing: .3px; font-size: 14px; }
.igr-label-badge {            /* „Bereich 01" etc. */
  display: inline-block;
  align-self: flex-start;
  background: #e9f3e7;
  color: #0D9DE5;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 5px 12px;
  border-radius: 40px;
}

/* ---------- Header (Theme Builder) ---------- */
.et_pb_section.igr-header {
  background: #032863 !important;
  padding: 20px 40px !important;
  position: relative;
  z-index: 100;
  overflow: visible !important;
}
/* Den ganzen Header-Bereich über den Seiteninhalt heben. Divi setzt auf den
   inneren Containern je nach Stand z-index 1/2 oder auto — live lag das
   Leistungen-Dropdown am 24.09.2026 deshalb unter dem Hero-Bild. */
.et-l--header { position: relative; z-index: 100; }
/* wpautop schiebt zwischen die Dropdown-Links <br /> ein, das macht das Menü doppelt so hoch */
.igr-nav-menu > br { display: none; }
.igr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.igr-header-logo img { height: 52px; width: auto; display: block; }
.igr-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  font-size: 14.5px;
  color: #c3d0e8;
  font-family: 'Nunito Sans', system-ui, sans-serif;
}
.igr-nav a { color: inherit; text-decoration: none; }
.igr-nav a.ist-aktiv { color: #239B30; }
.igr-nav .igr-nav-caret { font-size: 10px; opacity: .75; }
.igr-nav-top { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 820px) {
  .et_pb_section.igr-header { padding: 14px 20px !important; }
  .igr-header-logo img { height: auto; width: 190px; max-width: 62vw; }
}

/* ---------- Seitenkopf (alle Unterseiten) ---------- */
.et_pb_section.igr-pagehead {
  background: linear-gradient(150deg,#032863 0%,#04549E 55%,#1c7d28 100%) !important;
  padding: 66px 40px 92px !important;
  position: relative;
  overflow: hidden !important;
}
.igr-pagehead-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}
.igr-pagehead-inner h1 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: #fff;
  margin: 20px 0 16px;
}
.igr-pagehead-inner .igr-intro {
  font-size: 17px;
  line-height: 1.65;
  color: #c3d0e8;
  margin: 0 auto;
  max-width: 560px;
}
.igr-welle {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 70px;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.igr-welle--start { height: 90px; }

@media (max-width: 820px) {
  .et_pb_section.igr-pagehead { padding: 40px 20px 70px !important; }
  .igr-pagehead-inner h1 { font-size: 30px; }
}

/* ---------- Standard-Sections ---------- */
.et_pb_section.igr-sec { padding: 64px 40px !important; background: #fff; }
.et_pb_section.igr-sec--hell { background: #eef2f7 !important; }
.et_pb_section.igr-sec--gross { padding: 72px 40px !important; }
.et_pb_section.igr-sec--navy { background: #032863 !important; padding: 56px 40px !important; }

@media (max-width: 820px) {
  .et_pb_section.igr-sec { padding: 38px 20px !important; }
  .et_pb_section.igr-sec--gross { padding: 44px 20px !important; }
  .et_pb_section.igr-sec--navy { padding: 34px 20px !important; }
}

.igr-inhalt { max-width: 1040px; margin: 0 auto; }
.igr-schmal { max-width: 760px; margin: 0 auto; }

.igr-sec h2,
.igr-h2 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: #032863;
}
@media (max-width: 820px) {
  .igr-sec h2, .igr-h2 { font-size: 24px; }
}

/* Mission-Statement */
.igr-mission {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.igr-mission .igr-statement {
  font-family: 'Comfortaa', cursive;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.5;
  color: #032863;
  margin: 14px 0 0;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.igr-btn {
  display: inline-block;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 40px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.igr-btn--gruen { background: #239B30; color: #fff !important; }
.igr-btn--weiss { background: #fff; color: #032863 !important; }
.igr-btn--navy  { background: #032863; color: #fff !important; }
.igr-btn--klein { font-size: 14.5px; padding: 13px 24px; }

/* ---------- Karten-Grundformen ---------- */
.igr-karte {
  background: #fff;
  border-radius: 22px;
  padding: 34px;
}
.igr-karte--flaeche { background: #eef2f7; }

/* Zweispaltige Text/Bild-Karte (Bereiche, Über, Branchen) */
.igr-splitkarte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
  background: #fff;
  border-radius: 22px;
  padding: 34px;
  overflow: hidden;
}
.igr-splitkarte .igr-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.igr-splitkarte .igr-split-bild {
  min-height: 260px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
.igr-splitkarte--bild-links .igr-split-bild { order: -1; }
.igr-splitkarte h3 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 26px;
  color: #032863;
  margin: 12px 0;
}
.igr-splitkarte p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #55617a;
  margin: 0 0 12px;
}
.igr-splitkarte p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .igr-splitkarte { grid-template-columns: 1fr; padding: 22px; }
  .igr-splitkarte--bild-links .igr-split-bild { order: 0; }
  .igr-splitkarte .igr-split-bild { min-height: 200px; }
  .igr-splitkarte h3 { font-size: 22px; }
}

/* Themen-Karten-Grid (4 Spalten) */
.igr-themen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.igr-themen-karte {
  background: #eef2f7;
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.igr-themen-karte h3 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 18px;
  color: #032863;
  margin: 0 0 8px;
}
.igr-themen-karte p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #55617a;
  margin: 0;
}
/* Genau drei Karten (Fachwissen): drei Spalten statt einer leeren vierten (08.10.2026) */
@media (min-width: 1025px) {
  .igr-themen-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .igr-themen-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .igr-themen-grid { grid-template-columns: 1fr; }
}

/* CTA-Kartenpaar */
.igr-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.igr-cta-karte {
  border-radius: 22px;
  padding: 38px 34px;
}
.igr-cta-karte--weiss { background: #fff; }
.igr-cta-karte--verlauf {
  background: linear-gradient(135deg,#04549E,#032863);
  color: #c3d0e8;
}
.igr-cta-karte h3 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 25px;
  color: #032863;
  margin: 0 0 12px;
}
.igr-cta-karte--verlauf h3 { color: #fff; }
.igr-cta-karte p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #55617a;
  margin: 0 0 22px;
}
.igr-cta-karte--verlauf p { color: #c3d0e8; }
@media (max-width: 820px) {
  .igr-cta-grid { grid-template-columns: 1fr; }
}

/* Verlaufs-CTA einzeln (Themen/Sponsoren/Presse) */
.igr-cta-banner {
  background: linear-gradient(135deg,#04549E,#032863);
  border-radius: 24px;
  padding: 44px 40px;
  text-align: center;
}
.igr-cta-banner h2 { color: #fff; margin: 0 0 12px; }
.igr-cta-banner p {
  color: #c3d0e8;
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ---------- Sponsoren-Balken + Footer (Theme Builder) ---------- */
.et_pb_section.igr-sponsorbar {
  background: #eef2f7 !important;
  border-top: 1px solid #e2e8f1;
  padding: 20px 40px !important;
}
.igr-sponsorbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.igr-sponsorbar-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #6b7ba3;
}
.igr-sponsorbar-label a { color: #04549E; text-decoration: none; }
.igr-sponsorbar-label a:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .et_pb_section.igr-sponsorbar { padding: 18px 20px !important; }
}

.et_pb_section.igr-footer {
  background: #032863 !important;
  padding: 48px 40px 34px !important;
  color: #c3d0e8;
}
.igr-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  font-family: 'Nunito Sans', system-ui, sans-serif;
}
.igr-footer-grid img { height: 56px; width: auto; display: block; margin-bottom: 14px; }
.igr-footer-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #8b9ac0;
  margin: 0;
}
.igr-footer-titel {
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
  font-size: 14px;
}
.igr-footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}
.igr-footer-links a {
  font-size: 14px;
  color: #c3d0e8;
  text-decoration: none;
  line-height: 1.3;
}
.igr-footer-copy {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 13px;
  color: #6b7ba3;
}
@media (max-width: 820px) {
  .et_pb_section.igr-footer { padding: 34px 20px 26px !important; }
  .igr-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* ---------- Formular-Grundstil (Kontakt / CF7) ---------- */
.igr-formkarte {
  background: #fff;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: 0 20px 50px -28px rgba(1,20,58,.4);
}
.igr-formkarte .igr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.igr-formkarte .igr-voll { grid-column: 1 / -1; }
.igr-formkarte label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #032863;
}
.igr-formkarte input[type="text"],
.igr-formkarte input[type="email"],
.igr-formkarte input[type="tel"],
.igr-formkarte select,
.igr-formkarte textarea {
  width: 100%;
  border: 1.5px solid #c8d2e2;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  outline: none;
  margin-top: 6px;
  background: #fff;
}
.igr-formkarte .wpcf7-list-item { margin: 0; }
.igr-formkarte input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #239B30;
}
.igr-formkarte .igr-check-text { font-size: 13.5px; font-weight: 400; color: #55617a; }
@media (max-width: 820px) {
  .igr-formkarte { padding: 28px 22px; }
  .igr-formkarte .igr-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Startseite: Hero ---------- */
.et_pb_section.igr-hero {
  background: linear-gradient(150deg,#032863 0%,#04549E 55%,#1c7d28 100%) !important;
  padding: 78px 40px 120px !important;
  position: relative;
  overflow: hidden !important;
}
.igr-hero-grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  z-index: 2;
}
.igr-hero-grid h1 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin: 20px 0 18px;
}
.igr-hero-grid .igr-hero-text {
  font-size: 18.5px;
  line-height: 1.6;
  color: #c3d0e8;
  max-width: 470px;
  margin: 0;
}
.igr-hero-bildwrap { position: relative; }
.igr-hero-bild {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}
.igr-hero-badge {
  position: absolute;
  left: -14px;
  bottom: -14px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: 0 12px 30px -22px rgba(1,20,58,.5);
  display: flex;
  align-items: center;
  gap: 12px;
}
a.igr-hero-badge { text-decoration: none; transition: box-shadow .18s ease, transform .18s ease; }
a.igr-hero-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(1,20,58,.55); }
.igr-hero-badge .igr-zahl {
  font-family: 'Comfortaa', cursive;
  font-size: 30px;
  font-weight: 700;
  color: #1c7d28;
  line-height: 1;
}
.igr-hero-badge .igr-zahl-label {
  font-size: 12px;
  font-weight: 700;
  color: #55617a;
  max-width: 110px;
  line-height: 1.3;
}
.igr-hero-deko-1 {
  position: absolute;
  top: -60px; right: -40px;
  width: 220px; height: 220px;
  background: rgba(120,170,230,.14);
  pointer-events: none;
}
.igr-hero-deko-2 {
  position: absolute;
  bottom: 30px; left: -50px;
  width: 170px; height: 170px;
  background: rgba(80,160,90,.13);
  pointer-events: none;
}
@media (max-width: 820px) {
  .et_pb_section.igr-hero { padding: 38px 20px 90px !important; }
  .igr-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .igr-hero-grid h1 { font-size: 34px; }
}

/* ---------- Startseite: Bereiche + Themen-Kopfzeile ---------- */
.igr-bereiche {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.igr-sec-kopfzeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.igr-sec-kopfzeile h2 { margin: 0; font-size: 34px; }
.igr-sec-kopfzeile .igr-mehr-link {
  font-weight: 700;
  color: #239B30 !important;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .igr-sec-kopfzeile h2 { font-size: 24px; }
}

/* ---------- Startseite: Kennzahlen ---------- */
.igr-kennzahlen {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  color: #fff;
}
.igr-kennzahl-wert {
  font-family: 'Comfortaa', cursive;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.igr-kennzahl-wert svg { width: 40px; height: 40px; }
.igr-kennzahl-label {
  font-weight: 600;
  color: #b9c6e2;
  margin-top: 4px;
  font-size: 15px;
}
@media (max-width: 820px) {
  .igr-kennzahlen { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* ---------- Startseite: Newsletter ---------- */
.igr-newsletter {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.igr-newsletter h3 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 28px;
  color: #032863;
  margin: 0 0 10px;
}
.igr-newsletter p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #55617a;
  margin: 0 0 24px;
}
.igr-newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.igr-newsletter-form input[type="email"] {
  flex: 1 1 280px;
  max-width: 380px;
  border: 1.5px solid #c8d2e2;
  border-radius: 40px;
  padding: 14px 20px;
  font-size: 15px;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  outline: none;
}

/* ---------- Platzhalter für fehlende Bilder ---------- */
.igr-bild-fehlt {
  background: repeating-linear-gradient(45deg, #dfe7f0 0 14px, #eef2f7 14px 28px);
  border: 1px dashed #c8d2e2;
  position: relative;
  min-height: 240px;
}
.igr-bild-fehlt::after {
  content: "Bild folgt";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #9fb0d6;
}
