/* =========================================================================
   terraXaler — Business Continuity Box

   Eigene Datei, weil der Block auf mehreren Seiten steht: als Hauptthema
   auf /it-loesungen/ und noch einmal ausführlicher auf /terraxaler/.

   Zwei Vorgaben aus dem Review vom 10.09.2026 stecken hier drin:

   1. Der Name dreht sich beim Überfahren um. XALER rückwärts ist RELAX.
      Das läuft als 3D-Drehung um die Y-Achse, weil ein Kreuzblenden den
      Punkt nicht trifft: das Wort soll sich sichtbar umdrehen.
   2. Die Haken wechseln beim Überfahren von Grün auf Lila, die Hausfarbe
      von Xaler. Nur beim Überfahren, damit die Seite im Ruhezustand in
      der Human-Vista-Farbwelt bleibt.

   Die Sektion ist neu gebaut und hält deshalb alle 24 Muster ein: keine
   Verlaufs-Headline, keine Glasflächen, keine Farbnebel, kein
   Versal-Eyebrow.
   ========================================================================= */

/* Die Farben liegen auf :root, weil Wortdreher und Haken auch außerhalb
   der Sektion stehen — auf /terraxaler/ sitzen sie im Seitenkopf. */
:root {
  --tx-lila:    #9A73E0;
  --tx-lila-dk: #7A4FC4;
  --tx-mint:    #7FD8BE;
  --tx-line:    rgba(127, 216, 190, .22);
}

.hv-tx {
  position: relative;
  /* Dieselben Werte wie .hv-itp-sec. Vorher stand hier 116 oben und 100
     unten — zwei krumme Zahlen, die sich von den 112 der Nachbarsektionen
     unterscheiden, ohne dass die Abweichung etwas bedeutet. Beim Scrollen
     liest sich das nicht als Betonung, sondern als Ungenauigkeit. */
  padding: clamp(72px, 8vw, 112px) 24px;
  background: linear-gradient(178deg, #17493F 0%, #113A33 46%, #0C2A25 100%);
  color: #EAF7F0;
  font-family: var(--itp-font, 'Nunito', 'Segoe UI', Helvetica, Arial, sans-serif);
  box-sizing: border-box;
}
.hv-tx *, .hv-tx *::before, .hv-tx *::after { box-sizing: border-box; }

/* 1060, nicht 1080: die Sektionen darueber und darunter setzen ihren Satz auf
   1060. Zwanzig Pixel Unterschied sieht man nicht als Breite, aber man sieht
   die Kante wandern, wenn man von einer Sektion in die naechste scrollt. */
.hv-tx-in {
  max-width: 1060px;
  margin: 0 auto;
}

/* --- Kopf --------------------------------------------------------------- */

.hv-tx-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(127, 216, 190, .34);
  border-radius: 999px;
  background: rgba(46, 140, 116, .24);
  font-size: 13.5px;
  font-weight: 800;
  color: #C6EEDD;
}
.hv-tx-badge svg { flex-shrink: 0; }

/* Der Wortdreher. Die feste Breite verhindert, dass die Zeile beim
   Umdrehen springt — RELAX ist minimal breiter als XALER. */
.hv-tx-brand {
  display: flex;
  width: fit-content;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  font-size: clamp(38px, 6.4vw, 62px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.04;
  color: #FFFFFF;
  margin: 0 0 12px;
}
.hv-tx-brand-pre {
  color: rgba(234, 247, 240, .68);
  transition: opacity .5s ease;
}
/* Beim Überfahren tritt "terra" zurück, damit die Zeile als "relaX"
   gelesen wird und nicht als "terrarelaX". */
.hv-tx-brand:hover .hv-tx-brand-pre,
.hv-tx-brand:focus-within .hv-tx-brand-pre { opacity: .2; }

.hv-tx-flip {
  display: inline-block;
  perspective: 620px;
  cursor: default;
  outline: none;
}
.hv-tx-flip-in {
  position: relative;
  display: inline-block;
  min-width: 3.15em;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.62, .04, .3, 1);
}
.hv-tx-brand:hover .hv-tx-flip-in,
.hv-tx-brand:focus-within .hv-tx-flip-in { transform: rotateY(180deg); }

.hv-tx-flip-f,
.hv-tx-flip-b {
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hv-tx-flip-b {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  color: var(--tx-lila);
}

.hv-tx-brand-note {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(234, 247, 240, .62);
  margin: 0 0 clamp(20px, 3vw, 30px);
}

.hv-tx-lead {
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.68;
  color: rgba(234, 247, 240, .88);
  max-width: 760px;
  margin: 0 0 clamp(30px, 4vw, 48px);
}
.hv-tx-lead strong { color: #FFFFFF; font-weight: 800; }

/* --- Störfallliste: was ausfällt und was dann passiert -------------------
   Ersetzt drei gleich große Karten nebeneinander. Die Fälle stehen jetzt
   untereinander an einer gemeinsamen Schiene — links die Ursache, rechts
   die Antwort, darunter ein gemeinsamer Schluss. Drei Karten behaupten
   Gleichrangigkeit und sagen sonst nichts; eine Schiene zeigt, dass alle
   Wege am selben Punkt enden.
   ------------------------------------------------------------------------ */

.hv-tx-fault {
  margin: 0 0 clamp(38px, 5vw, 60px);
}
.hv-tx-fault-head,
.hv-tx-fault-row {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) 1fr;
  gap: 0 clamp(20px, 3vw, 44px);
}
.hv-tx-fault-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(127, 216, 190, .34);
  font-size: 13px;
  font-weight: 800;
  color: rgba(199, 240, 224, .62);
}
.hv-tx-fault-row {
  padding: 22px 0;
  border-bottom: 1px solid rgba(127, 216, 190, .14);
}
.hv-tx-fault-k {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #EAF7F0;
}
.hv-tx-fault-k b {
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(127, 216, 190, .72);
}
.hv-tx-fault-b h3 {
  margin: 0 0 7px;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: #FFFFFF;
}
.hv-tx-fault-b p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(234, 247, 240, .8);
}
.hv-tx-fault-b p strong { color: #BFEBDA; font-weight: 800; }
.hv-tx-fault-end {
  margin: 18px 0 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #A7EBD6;
}
@media (max-width: 720px) {
  .hv-tx-fault-head { display: none; }
  .hv-tx-fault-row  { grid-template-columns: 1fr; gap: 10px; }
}

/* --- Die Zeitachse -------------------------------------------------------
   Auf /terraxaler/ steht sie anstelle der drei Karten. Der Text spricht von
   einem Schieberegler auf einer Zeitleiste; hier ist sie. Gezeichnet in
   derselben Sprache wie die Bemaßung an den Globen: Achse, Skala, Maßlinien.

   Die verlorene Strecke ist schraffiert, nicht rot. Eine zweite Akzentfarbe
   für „schlecht" wäre laut, und die Länge der Strecke sagt es schon.
   ------------------------------------------------------------------------ */
.hv-tx-time { margin: 0 0 clamp(34px, 4.4vw, 52px); }
.hv-tx-time svg { display: block; width: 100%; height: auto; }
.hv-tx-time figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(234, 247, 240, .58);
  max-width: 68ch;
}

.hv-tx-time-axis {
  fill: none;
  stroke: rgba(199, 240, 224, .5);
  stroke-width: 1.4;
}
.hv-tx-time-tick {
  fill: none;
  stroke: rgba(199, 240, 224, .3);
  stroke-width: 1;
}
.hv-tx-time-tick--major {
  stroke: rgba(199, 240, 224, .55);
  stroke-width: 1.2;
}
.hv-tx-time-evt {
  fill: none;
  stroke: rgba(234, 247, 240, .34);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.hv-tx-time-drop {
  fill: none;
  stroke: rgba(234, 247, 240, .2);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.hv-tx-time-lead {
  fill: none;
  stroke: rgba(127, 216, 190, .5);
  stroke-width: 1;
}
/* Der Schieberegler selbst: das einzige mintfarbene Element über der Achse. */
.hv-tx-time-handle { fill: var(--tx-mint); }

.hv-tx-time-lbl {
  font-size: 12.5px;
  font-weight: 600;
  fill: rgba(234, 247, 240, .7);
}
.hv-tx-time-lbl--on { fill: #BFEBDA; font-weight: 800; }
.hv-tx-time-h {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  fill: rgba(234, 247, 240, .45);
}
.hv-tx-time-row {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.008em;
  fill: #EAF7F0;
}
.hv-tx-time-loss {
  fill: url(#hvTxHatch);
  stroke: rgba(234, 247, 240, .32);
  stroke-width: 1;
}
.hv-tx-time-loss--on { stroke: var(--tx-mint); }
.hv-tx-time-dim path {
  fill: none;
  stroke: rgba(234, 247, 240, .34);
  stroke-width: 1;
}
.hv-tx-time-dl {
  font-size: 12.5px;
  font-weight: 700;
  fill: rgba(234, 247, 240, .8);
}
.hv-tx-time-dl--on { fill: #BFEBDA; }

/* Zwei Spalten Fließtext unter der Grafik. Absichtlich ohne Rahmen und ohne
   Fläche: sonst stünden hier wieder Karten. */
.hv-tx-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(22px, 3.4vw, 54px);
  margin: 0 0 clamp(38px, 5vw, 58px);
}
.hv-tx-cols h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: #FFFFFF;
  margin: 0 0 10px;
}
.hv-tx-cols p {
  font-size: 15px;
  line-height: 1.64;
  color: rgba(234, 247, 240, .8);
  margin: 0;
}
.hv-tx-cols p strong { color: #BFEBDA; font-weight: 800; }

/* --- Leistungsliste mit Haken -------------------------------------------- */

.hv-tx-h3 {
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 800;
  letter-spacing: -.022em;
  color: #FFFFFF;
  margin: 0 0 18px;
}

.hv-tx-list {
  list-style: none;
  margin: 0 0 clamp(38px, 5vw, 58px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4px 28px;
}
.hv-tx-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 10px 11px 8px;
  border-radius: 10px;
  transition: background .2s ease;
}
.hv-tx-list li:hover { background: rgba(154, 115, 224, .09); }

.hv-tx-tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 216, 190, .16);
  color: var(--tx-mint);
  transition: background .22s ease, color .22s ease;
}
.hv-tx-list li:hover .hv-tx-tick {
  background: rgba(154, 115, 224, .24);
  color: var(--tx-lila);
}
.hv-tx-list li > div { font-size: 15px; line-height: 1.6; color: rgba(234, 247, 240, .82); }
.hv-tx-list li b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

/* --- Beispielrechnung Strom --------------------------------------------- */

.hv-tx-energy {
  margin: 0 0 clamp(34px, 4.5vw, 52px);
  padding: 26px 24px 20px;
  border: 1px solid var(--tx-line);
  border-radius: 16px;
  background: rgba(8, 32, 27, .42);
}
.hv-tx-energy-h {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px;
}
.hv-tx-energy-p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(234, 247, 240, .74);
  margin: 0 0 20px;
  max-width: 700px;
}
.hv-tx-bars { display: grid; gap: 14px; margin-bottom: 18px; }
.hv-tx-bar-l {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(234, 247, 240, .86);
  margin-bottom: 6px;
}
.hv-tx-bar-l span { color: rgba(234, 247, 240, .62); font-weight: 600; }
.hv-tx-bar-t {
  height: 12px;
  border-radius: 6px;
  background: rgba(234, 247, 240, .1);
  overflow: hidden;
}
.hv-tx-bar-f { height: 100%; border-radius: 6px; background: rgba(234, 247, 240, .3); }
.hv-tx-bar-f--good { background: linear-gradient(90deg, #2E8C74, #7FD8BE); }

.hv-tx-energy-out {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  padding-top: 16px;
  border-top: 1px solid var(--tx-line);
}
.hv-tx-energy-out div { font-size: 14.5px; color: rgba(234, 247, 240, .76); }
.hv-tx-energy-out b { display: block; font-size: 21px; font-weight: 900; color: #BFEBDA; letter-spacing: -.02em; }

.hv-tx-src {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(234, 247, 240, .5);
  margin: 14px 0 0;
}

/* --- Herkunft ------------------------------------------------------------ */

.hv-tx-origin {
  padding: 24px 24px 22px;
  border: 1px solid var(--tx-line);
  border-radius: 16px;
  background: rgba(8, 32, 27, .42);
  margin: 0 0 clamp(30px, 4vw, 44px);
}
.hv-tx-origin h3 { font-size: 17px; font-weight: 800; color: #FFFFFF; margin: 0 0 10px; }
.hv-tx-origin p {
  font-size: 15px;
  line-height: 1.66;
  color: rgba(234, 247, 240, .8);
  margin: 0 0 10px;
  max-width: 760px;
}
.hv-tx-origin p:last-child { margin-bottom: 0; }
.hv-tx-origin strong { color: #FFFFFF; font-weight: 800; }

/* --- Weiterführender Link ------------------------------------------------ */

.hv-tx-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #113A33;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hv-tx-more:hover {
  background: var(--tx-lila);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(154, 115, 224, .9);
}
.hv-tx-more svg { transition: transform .2s ease; }
.hv-tx-more:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .hv-tx-flip-in,
  .hv-tx-brand-pre,
  .hv-tx-more,
  .hv-tx-more svg { transition: none; }
}

@media (max-width: 560px) {
  .hv-tx { padding: 58px 18px 52px; }
  .hv-tx-brand { display: block; }
  .hv-tx-energy-out { gap: 14px 24px; }
}
