/* =========================================================================
   IT-BLOCK STARTSEITE
   Ersetzt den bisherigen NIS-2-Block an derselben Position und verbreitert
   ihn von "Sicherheit" auf "IT insgesamt".
   Hintergrund: der vorhandene Code-Regen aus nis2.js wird weiterverwendet.

   Bewusste Abweichungen vom alten Block (Anti-Muster-Audit):
   - kein Vier-Karten-Raster        (Muster 8)
   - keine runden Icon-Kästchen     (Muster 11)
   - kein pulsierender Punkt        (Muster 21)
   - kein Versal-Eyebrow            (Muster 2)
   ========================================================================= */

.hv-itb {
  --itb-ink:        #10312B;
  --itb-ink-soft:   #3D5C54;
  --itb-muted:      #7A968D;
  --itb-line:       rgba(17, 58, 51, .16);
  --itb-accent:     #2E8C74;
  --itb-accent-dk:  #17594B;
  --itb-font: 'Nunito', 'Segoe UI', Helvetica, Arial, sans-serif;

  position: relative;
  padding: clamp(80px, 10vw, 140px) 24px;
  background: #FFFFFF;
  font-family: var(--itb-font);
  color: var(--itb-ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.hv-itb *, .hv-itb *::before, .hv-itb *::after { box-sizing: border-box; }

/* --- Hintergrund: Code-Regen (nis2.js) ---------------------------------- */
.hv-itb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hv-itb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .78;
}
/* Der Verlauf hält die Mitte frei, damit der Text auf dem bewegten
   Hintergrund lesbar bleibt. Ohne ihn flackert die Schrift. */
.hv-itb-bg-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 54% 48% at 50% 46%,
      rgba(255, 255, 255, .93) 0%,
      rgba(255, 255, 255, .66) 44%,
      rgba(255, 255, 255, .18) 78%,
      rgba(255, 255, 255, 0) 100%);
}

.hv-itb-in {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
}

/* --- Kopf ---------------------------------------------------------------
   Absichtlich linksbündig und auf 720px begrenzt: die Sektion davor ist
   zentriert, die danach auch. Der Wechsel bricht den Gleichtakt.
   ------------------------------------------------------------------------ */
.hv-itb-head {
  max-width: 720px;
  margin: 0 0 clamp(56px, 6vw, 82px);
}
.hv-itb-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.032em;
  color: var(--itb-ink);
  margin: 0 0 20px;
}
.hv-itb-title b {
  font-weight: 800;
  color: var(--itb-accent-dk);
}
.hv-itb-lead {
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.62;
  font-weight: 400;
  color: var(--itb-ink-soft);
  margin: 0;
  max-width: 620px;
}
.hv-itb-lead strong { font-weight: 700; color: var(--itb-ink); }

/* =========================================================================
   SYSTEMLINIE — der mutige Zug
   Drei Stationen auf EINER durchgehenden Linie statt drei Karten.
   Die Spalten sind absichtlich unterschiedlich breit: Monitoring ist die
   laufende Leistung und bekommt mehr Gewicht.
   ========================================================================= */
.hv-itb-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.32fr;
  gap: 0;
  margin-bottom: clamp(56px, 6vw, 84px);
}

/* Die durchgehende Linie. Läuft auf Höhe der Stationsmarken quer durch
   alle drei Spalten und franst an beiden Enden aus. */
.hv-itb-rail::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(46, 140, 116, 0) 0%,
    rgba(46, 140, 116, .45) 6%,
    rgba(46, 140, 116, .45) 94%,
    rgba(46, 140, 116, 0) 100%);
}

.hv-itb-stop {
  position: relative;
  padding: 0 clamp(20px, 2.6vw, 38px) 0 0;
}
.hv-itb-stop + .hv-itb-stop { padding-left: clamp(20px, 2.6vw, 38px); }

/* Stationsmarke: die Linie läuft sichtbar hindurch, deshalb ein Ring mit
   weißem Grund statt eines Icon-Kästchens. */
.hv-itb-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(46, 140, 116, .45);
  margin-bottom: 22px;
}
.hv-itb-dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--itb-accent);
}
/* Dritte Station ist die laufende Leistung — massiver Punkt. */
.hv-itb-stop--wide .hv-itb-dot {
  border-color: var(--itb-accent-dk);
  background: var(--itb-accent-dk);
}
.hv-itb-stop--wide .hv-itb-dot::after { background: #FFFFFF; }

.hv-itb-stop h3 {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: 1.25;
  color: var(--itb-ink);
  margin: 0 0 10px;
}
.hv-itb-stop p {
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--itb-ink-soft);
  margin: 0;
  max-width: 34ch;
}
.hv-itb-stop p strong { font-weight: 700; color: var(--itb-ink); }

/* Zusatzzeile nur bei der breiten Station */
.hv-itb-stop-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--itb-line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--itb-muted);
  max-width: 38ch;
}

/* =========================================================================
   ZWEI HANDLUNGSPFADE
   Gleichwertig nebeneinander, nicht Haupt- und Nebentaste.
   ========================================================================= */
.hv-itb-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--itb-line);
  padding-top: clamp(34px, 4vw, 48px);
}
.hv-itb-path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hv-itb-path p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--itb-ink-soft);
  margin: 0;
  max-width: 42ch;
}
.hv-itb-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: transform .32s cubic-bezier(.22, .61, .36, 1),
              background-color .32s, color .32s, border-color .32s;
}
.hv-itb-btn svg { transition: transform .32s cubic-bezier(.22, .61, .36, 1); }
.hv-itb-btn:hover svg { transform: translateX(4px); }

.hv-itb-btn--solid {
  background: var(--itb-accent-dk);
  color: #FFFFFF;
  border: 1px solid var(--itb-accent-dk);
}
.hv-itb-btn--solid:hover { background: #124337; }

.hv-itb-btn--line {
  background: transparent;
  color: var(--itb-accent-dk);
  border: 1px solid rgba(46, 140, 116, .5);
}
.hv-itb-btn--line:hover {
  border-color: var(--itb-accent-dk);
  background: rgba(46, 140, 116, .06);
}

/* =========================================================================
   RESPONSIV
   Unter 860px kippt die Linie in die Senkrechte. Sie bleibt eine
   durchgehende Linie — die Aussage "ein System" darf mobil nicht zerfallen.
   ========================================================================= */
@media (max-width: 860px) {
  .hv-itb { padding: 64px 20px; }

  .hv-itb-rail {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-left: 34px;
  }
  .hv-itb-rail::before {
    top: 0;
    bottom: 0;
    left: 11px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg,
      rgba(46, 140, 116, 0) 0%,
      rgba(46, 140, 116, .45) 4%,
      rgba(46, 140, 116, .45) 96%,
      rgba(46, 140, 116, 0) 100%);
  }
  .hv-itb-stop,
  .hv-itb-stop + .hv-itb-stop { padding: 0; }
  .hv-itb-dot {
    position: absolute;
    left: -34px;
    top: 0;
    margin-bottom: 0;
  }
  .hv-itb-stop p,
  .hv-itb-stop-note { max-width: none; }

  .hv-itb-paths { grid-template-columns: 1fr; gap: 30px; }
  .hv-itb-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hv-itb-title { font-size: clamp(26px, 7.4vw, 34px); }
  .hv-itb-canvas { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-itb-btn, .hv-itb-btn svg { transition: none; }
}
