.itg, .itg * { box-sizing: border-box; }
.itg * { margin: 0; padding: 0; }
.itg {
  --blue:    #0c2340;
  --accent:  #7aafd4;
  --accent2: #378add;
  --paper:   #f7f5f1;
  --line:    #e8e5e0;
  --text:    #1a1a18;
  --body:    #3d3d38;
  --muted:   #5a5a54;
  --w:       1100px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}
.itg a { color: inherit; text-decoration: none; }

/* ── LAYOUT ────────────────────────────────────── */
.itg-wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 56px 40px;
}
.itg-section { border-top: 1px solid var(--line); }
.itg-section.alt { background: var(--paper); }

/* ── TYPO ──────────────────────────────────────── */
.itg-label {
  font-size: 10px; line-height: 1; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.itg-h1 {
  font-size: 46px; line-height: 1.06;
  letter-spacing: -.03em; font-weight: 800;
  color: var(--blue); max-width: 760px; margin-bottom: 18px;
}
.itg-h2 {
  font-size: 30px; line-height: 1.18;
  letter-spacing: -.02em; font-weight: 800;
  color: var(--blue); max-width: 760px; margin-bottom: 14px;
}
.itg-h3 {
  font-size: 15px; line-height: 1.28; font-weight: 800;
  color: var(--blue); margin-bottom: 9px;
}
.itg-p {
  font-size: 15px; line-height: 1.72;
  color: var(--body); max-width: 820px;
}
.itg-small {
  font-size: 13px; line-height: 1.62; color: var(--muted);
}

/* ── KEYFRAMES ─────────────────────────────────── */
@keyframes itg-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes itg-hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes itg-img-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
@keyframes itg-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── HERO ──────────────────────────────────────── */
.itg-hero {
  max-width: var(--w);
  margin: 0 auto;
  padding: 46px 40px 0;
  animation: itg-hero-in .9s cubic-bezier(.2,.8,.2,1) both;
}
.itg-hero-box {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--blue);
}
.itg-hero-media {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0c2340 0%, #1a4a7a 100%);
}
.itg-hero-media img {
  display: block; width: 100%; height: 100%;
  min-height: 480px; object-fit: cover; object-position: center;
  opacity: .84;
  animation: itg-img-zoom 1.6s cubic-bezier(.2,.8,.2,1) .1s both;
}
.itg-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(12,35,64,.92) 0%,
    rgba(12,35,64,.62) 55%,
    rgba(12,35,64,.10) 100%
  );
}
.itg-hero-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 480px; padding: 62px 44px 46px;
}
.itg-hero-copy .itg-label { color: var(--accent); }
.itg-hero-copy .itg-h1   { color: #ffffff; max-width: 650px; }
.itg-hero-copy .itg-p    { color: rgba(255,255,255,.78); max-width: 560px; }

/* hero copy: child staggered */
.itg-hero-copy > *:nth-child(1) { animation: itg-up .75s cubic-bezier(.2,.8,.2,1) .15s both; }
.itg-hero-copy > *:nth-child(2) { animation: itg-up .75s cubic-bezier(.2,.8,.2,1) .26s both; }
.itg-hero-copy > *:nth-child(3) { animation: itg-up .75s cubic-bezier(.2,.8,.2,1) .37s both; }
.itg-hero-copy > *:nth-child(4) { animation: itg-up .75s cubic-bezier(.2,.8,.2,1) .48s both; }

.itg-hero-facts {
  display: grid; grid-template-columns: repeat(2,1fr);
  margin-top: 34px; max-width: 520px;
  border-top: 1px solid rgba(255,255,255,.24);
  border-left: 1px solid rgba(255,255,255,.24);
}
.itg-fact {
  padding: 18px 16px;
  border-right: 1px solid rgba(255,255,255,.24);
  border-bottom: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.04);
}
.itg-fact-title { font-size: 14px; font-weight: 800; color: #ffffff; margin-bottom: 7px; }
.itg-fact-text  { font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.68); }

/* ── SCROLL REVEAL ── */
/* Normale Elemente: nur opacity */
.itg-r {
  opacity: 0;
  transition: opacity .6s cubic-bezier(.2,.8,.2,1);
}
.itg-r.itg-on { opacity: 1; }

/* Box, Loesung, Team: opacity + leichtes translateY über eigene Wrapper-Klasse */
.itg-box,
.itg-loesung,
.itg-team-card {
  transition:
    opacity .6s cubic-bezier(.2,.8,.2,1),
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    background .28s ease;
}
/* Box, Loesung, Team — Startzustand */
.itg-rg > .itg-box.itg-r,
.itg-rg > .itg-loesung.itg-r,
.itg-rg > .itg-team-card.itg-r {
  opacity: 0;
  transform: translateY(22px);
}
/* Eingeblendet */
.itg-rg > .itg-box.itg-r.itg-on,
.itg-rg > .itg-loesung.itg-r.itg-on,
.itg-rg > .itg-team-card.itg-r.itg-on {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Standard */
.itg-rg > *:nth-child(1) { transition-delay: .00s; }
.itg-rg > *:nth-child(2) { transition-delay: .08s; }
.itg-rg > *:nth-child(3) { transition-delay: .16s; }
.itg-rg > *:nth-child(4) { transition-delay: .24s; }
.itg-rg > *:nth-child(5) { transition-delay: .32s; }
.itg-rg > *:nth-child(6) { transition-delay: .40s; }

/* ── BRANCHEN: nur opacity, transform gehört dem Hover ── */
.itg-branchen-grid.itg-rg > *:nth-child(1) { transition-delay: .00s; }
.itg-branchen-grid.itg-rg > *:nth-child(2) { transition-delay: .12s; }
.itg-branchen-grid.itg-rg > *:nth-child(3) { transition-delay: .24s; }
.itg-branchen-grid.itg-rg > *:nth-child(4) { transition-delay: .36s; }
.itg-branchen-grid.itg-rg > *:nth-child(5) { transition-delay: .48s; }

/* ── HOVER-EFFEKTE — Box, Lösung, Team ─────────── */
/*
   Wichtig: opacity bleibt hier enthalten.
   Sonst überschreibt diese spätere Definition die Scroll-Reveal-Transition.
*/
.itg-box,
.itg-loesung,
.itg-team-card {
  transition:
    opacity .6s cubic-bezier(.2,.8,.2,1),
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    background .28s ease;
}
.itg-box:hover,
.itg-loesung:hover,
.itg-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(12,35,64,.10);
}

/* ── BRANCHEN ──────────────────────────────────── */
.itg-branchen-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px; margin-top: 36px;
  /* Jede Kachel in eigenem Stacking Context — Lift beeinflusst keine Nachbarn */
  isolation: isolate;
}
.itg-branche {
  background: linear-gradient(160deg, #112e56 0%, #0c2340 100%);
  border: 1px solid rgba(122,175,212,.18);
  padding: 40px 20px 36px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; text-decoration: none;
  position: relative; overflow: hidden;
  will-change: transform;
  transition: opacity .6s ease,
              transform .22s ease-out,
              box-shadow .22s ease-out,
              border-color .18s ease;
}
/* Subtiles Raster */
.itg-branche::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122,175,212,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,175,212,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
/* Akzentlinie oben */
.itg-branche::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
}
.itg-branche:hover::before { transform: scaleX(1); }
.itg-branche:hover {
  transform: translateY(-18px);
  box-shadow: 0 32px 56px rgba(12,35,64,.5);
  border-color: rgba(122,175,212,.38);
}

/* Icon */
.itg-branche-icon {
  width: 64px; height: 64px;
  border: 1.5px solid rgba(122,175,212,.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
  position: relative; z-index: 1;
  transition: border-color .2s, background .2s;
}
.itg-branche:hover .itg-branche-icon {
  border-color: var(--accent);
  background: rgba(122,175,212,.1);
}
.itg-branche-icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .18s ease, transform .22s ease-out;
}
.itg-branche:hover .itg-branche-icon svg {
  stroke: #fff;
  transform: scale(1.1);
}

/* Name */
.itg-branche-name {
  font-size: 14px; font-weight: 800; letter-spacing: .01em;
  color: #fff; line-height: 1.2;
  position: relative; z-index: 1;
  /* Name bleibt an seiner Stelle — kein translateY */
}

/* Sub — Fade in weich mit leichtem Delay */
.itg-branche-sub {
  font-size: 12px; line-height: 1.62;
  color: rgba(255,255,255,.0);
  position: relative; z-index: 1;
  margin-top: 10px;
  transition: color .2s cubic-bezier(.2,.8,.2,1);
}
.itg-branche:hover .itg-branche-sub {
  color: rgba(255,255,255,.75);
}
/* ── ANWENDUNGEN ───────────────────────────────── */
.itg-boxgrid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; margin-top: 30px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.itg-box {
  background: #fff; padding: 24px 22px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none; display: block;
  position: relative; overflow: hidden; min-height: 230px;
}
.itg-box > * { position: relative; z-index: 2; }

/* Hover-Bild-Overlay — pure CSS via CSS custom property */
.itg-box::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--itg-bg);
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.05) translateY(10px);
  transition: opacity .36s ease, transform .36s ease;
  z-index: 0;
}
.itg-box::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,35,64,.92), rgba(26,74,122,.80));
  opacity: 0;
  transition: opacity .36s ease;
  z-index: 1;
}
.itg-box:hover::before { opacity: 1; transform: scale(1) translateY(0); }
.itg-box:hover::after  { opacity: 1; }
.itg-box:hover .itg-h3,
.itg-box:hover .itg-small,
.itg-box:hover .itg-box-arrow { color: #fff; }
.itg-box:hover .itg-box-icon  { border-color: rgba(255,255,255,.7); }
.itg-box:hover .itg-box-icon svg { stroke: #fff; }

/* Hover-Bilder per CSS-Variable — /fileadmin/... ersetzen */
.itg-box:nth-child(1) { --itg-bg: url('/fileadmin/bilder/anwendungen/montagepruefung.jpg'); }
.itg-box:nth-child(2) { --itg-bg: url('/fileadmin/bilder/anwendungen/end-of-line.jpg'); }
.itg-box:nth-child(3) { --itg-bg: url('/fileadmin/bilder/anwendungen/retrofit.jpg'); }
.itg-box:nth-child(4) { --itg-bg: url('/fileadmin/bilder/anwendungen/werkerfuehrung.jpg'); }
.itg-box:nth-child(5) { --itg-bg: url('/fileadmin/bilder/anwendungen/kabel.jpg'); }
.itg-box:nth-child(6) { --itg-bg: url('/fileadmin/bilder/anwendungen/varianten.jpg'); }

.itg-box:hover { background: var(--blue); }
.itg-box-icon {
  width: 40px; height: 40px;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: border-color .28s ease;
}
.itg-box-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--blue);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .28s ease;
}
.itg-box-arrow {
  margin-top: 16px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent2); transition: color .28s ease;
}

/* ── LÖSUNGEN ──────────────────────────────────── */
.itg-loesungen-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; margin-top: 30px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.itg-loesung {
  background: #fff; padding: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  display: flex; flex-direction: column;
}
.itg-loesung:hover { background: var(--paper); }
.itg-loesung-img {
  width: 100%; height: 180px; overflow: hidden;
  background: #eaf2f8; border-bottom: 1px solid var(--line);
}
.itg-loesung-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
  transition: transform .55s ease;
}
.itg-loesung:hover .itg-loesung-img img { transform: scale(1.09); }
.itg-loesung-body { padding: 24px 22px 26px; flex-grow: 1; display: flex; flex-direction: column; }
.itg-loesung-tag {
  font-size: 9px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent2); background: #e0ecf7;
  padding: 3px 8px; display: inline-block;
  margin-bottom: 14px; align-self: flex-start;
}
.itg-loesung-name {
  font-size: 17px; font-weight: 800; line-height: 1.2;
  color: var(--blue); margin-bottom: 10px;
}
.itg-loesung-text {
  font-size: 13px; line-height: 1.62; color: var(--muted); flex-grow: 1;
}
.itg-loesung-arrow {
  margin-top: 18px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent2);
}

/* ── RELATION BAND ─────────────────────────────── */
.itg-rel {
  border-top: 1px solid #dce4ec; border-bottom: 1px solid #dce4ec;
  background: #f0f4f8;
}
.itg-rel-inner {
  max-width: var(--w); margin: 0 auto; padding: 18px 40px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.itg-rel-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: #5a7a96; white-space: nowrap;
}
.itg-rel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.itg-rel-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border: 1px solid #bcd4e8; background: #fff;
  color: var(--blue); font-size: 13px; font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.itg-rel-link:hover { background: var(--paper); border-color: var(--accent); }
.itg-rel-link span {
  color: var(--accent); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ── TEAM / KONTAKT ────────────────────────────── */
.itg-team-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; margin-top: 30px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.itg-team-card {
  background: #fff; padding: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  cursor: default;
}
.itg-team-img {
  width: 100%; height: 200px;
  background: #eaf2f8; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.itg-team-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top; display: block;
}
.itg-team-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #dce8f0; font-size: 28px; font-weight: 800;
  color: var(--blue); letter-spacing: .04em;
}
.itg-team-body { padding: 22px 20px 24px; flex-grow: 1; }
.itg-team-name { font-size: 15px; font-weight: 800; color: var(--blue); line-height: 1.2; margin-bottom: 4px; }
.itg-team-role {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.itg-team-qual { font-size: 12px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.itg-team-links { font-size: 13px; line-height: 2; }
.itg-team-links a { color: var(--blue); font-weight: 700; display: block; }
.itg-team-links a:hover { color: var(--accent2); }

.itg-contact-box {
  margin-top: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.itg-contact-inner {
  padding: 22px 24px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.itg-contact-links { font-size: 14px; line-height: 2; }
.itg-contact-links a { color: var(--blue); font-weight: 700; display: block; }
.itg-contact-links a:hover { color: var(--accent2); }

/* ── REDUCED MOTION ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .itg-hero,
  .itg-hero-media img,
  .itg-hero-copy > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
  /* Scroll-Reveal sofort sichtbar, aber Hover-Transforms bleiben */
  .itg-r {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
  .itg-branchen-grid { grid-template-columns: repeat(3,1fr); }
  .itg-boxgrid,
  .itg-loesungen-grid,
  .itg-team-grid { grid-template-columns: repeat(2,1fr); }
  .itg-wrap, .itg-hero { padding-right: 22px; padding-left: 22px; }
  .itg-hero-facts { grid-template-columns: 1fr; }
  .itg-hero-copy { padding: 42px 24px 32px; }
  .itg-rel-inner { padding: 14px 22px; }
}
@media (max-width: 540px) {
  .itg-branchen-grid { grid-template-columns: repeat(2,1fr); }
  .itg-boxgrid,
  .itg-loesungen-grid,
  .itg-team-grid { grid-template-columns: 1fr; }
}
