/* Startseite — Hero mit rotem Faden, Leistungs- und Projektkarten, Branchenliste,
   Technologien, „Wer wir sind“, Aktuelles, Kontakt (Werte aus „Trivitec-Startseite-3e“). */
@keyframes marq {
  0%, 13% { transform: translateY(0); }
  17%, 30% { transform: translateY(-28px); }
  34%, 47% { transform: translateY(-56px); }
  51%, 63% { transform: translateY(-84px); }
  67%, 80% { transform: translateY(-112px); }
  84%, 96% { transform: translateY(-140px); }
  100% { transform: translateY(-168px); }
}

/* Hero */
.h-hero { padding: 104px var(--gut) 0; gap: 48px; }
.h-h1 {
  font-size: 72px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; color: #F4F7FC; max-width: 20ch; margin: 0;
}
.h-h1 > span { display: block; }
.h-h1 > span:nth-child(1) { animation: fUp .8s cubic-bezier(.22, 1, .36, 1) .2s both; }
.h-h1 > span:nth-child(2) { color: #5C9EEB; animation: fUp .8s cubic-bezier(.22, 1, .36, 1) .35s both; }
.h-h1 > span:nth-child(3) { animation: focusIn 1.6s cubic-bezier(.16, 1, .3, 1) .9s both; }
.h-thread { width: calc(100% + 72px); height: auto; display: block; margin: -20px -72px -28px 0; overflow: visible; }
.h-thread path { animation: fIn 1.2s ease .5s both; }
.h-herofoot { display: flex; align-items: flex-end; justify-content: space-between; gap: 72px; flex-wrap: wrap; animation: fIn .9s ease 1.9s both; }
.h-herofoot p { font-size: 21px; line-height: 1.6; color: #9FB3CC; max-width: 52ch; margin: 0; }
.h-marq {
  position: relative; margin-top: 64px; border-top: 1px solid rgba(244, 247, 252, .08);
  padding: 26px var(--gut); display: flex; align-items: center; gap: 20px;
}
.h-marq-l { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B819C; flex-shrink: 0; }
.h-marq-win { height: 28px; overflow: hidden; flex: 1; }
.h-marq-track { display: flex; flex-direction: column; line-height: 28px; animation: marq 16s cubic-bezier(.7, 0, .3, 1) infinite; }
.h-marq-track span { height: 28px; font-size: 17px; font-weight: 700; color: #C6D4E6; }
.h-marq-r { font-size: 15px; color: #6B819C; flex-shrink: 0; }

/* Allgemein */
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; flex-wrap: wrap; }
.h-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.h-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Leistungskarten */
.h-card {
  position: relative; isolation: isolate; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px; display: flex; flex-direction: column; gap: 16px; color: var(--text);
}
.h-card:hover { color: var(--text); }
.h-card--dark { background: var(--panel); border-color: #24405E; color: #F4F7FC; }
.h-card--dark:hover { color: #F4F7FC; }
.h-num { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--petrol); }
.h-amber {
  position: absolute; right: -6px; bottom: -34px; z-index: -1; font-size: 170px; line-height: 1; font-weight: 700; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--acc); opacity: .55; pointer-events: none;
}
.h-new {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #11998A; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.h-also { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 32px; }
.h-lab { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.h-pill {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 16px;
}

/* Projektkarten */
.h-proj {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; color: var(--text);
}
.h-proj:hover { color: var(--text); }

/* Branchen */
.h-branchen { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.m-br {
  position: relative; display: grid; grid-template-columns: 34px 1fr 28px; column-gap: 20px; align-items: baseline;
  padding: 18px 16px; margin: 0 -16px; border-radius: 6px; border-bottom: 1px solid var(--border-2); color: var(--text); cursor: default;
  transition: background-color .35s ease, box-shadow .35s ease, opacity .35s ease;
}
.m-br:last-child { border-bottom: none; }
.m-br-n { font-size: 14px; font-weight: 700; color: var(--text-3); transition: color .35s ease; }
.m-br-t { font-size: 34px; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; transition: color .35s ease, transform .35s cubic-bezier(.22, .61, .36, 1); display: inline-block; }
.m-br-a { font-size: 22px; font-weight: 700; color: var(--blue); opacity: 0; transform: translateX(-10px); transition: opacity .35s ease, transform .35s ease; }
.m-br-d { grid-column: 2 / 4; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.22, .61, .36, 1); }
.m-br-d > p { overflow: hidden; font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 44ch; margin: 0; }
.m-br:hover, .m-brl:not(:hover) .m-br:first-child { background: var(--surface); box-shadow: 0 10px 26px -14px var(--blue), inset 2px 0 0 var(--acc, #C29A5B); }
.m-br:hover .m-br-n, .m-brl:not(:hover) .m-br:first-child .m-br-n { color: var(--petrol); }
.m-br:hover .m-br-t, .m-brl:not(:hover) .m-br:first-child .m-br-t { color: var(--blue); transform: translateX(6px); }
.m-br:hover .m-br-a, .m-brl:not(:hover) .m-br:first-child .m-br-a { opacity: 1; transform: none; }
.m-br:hover .m-br-d, .m-brl:not(:hover) .m-br:first-child .m-br-d { grid-template-rows: 1fr; }
.m-br:hover .m-br-d > p, .m-brl:not(:hover) .m-br:first-child .m-br-d > p { padding-top: 10px; }
.m-brl { display: flex; flex-direction: column; }
.m-brl:hover .m-br:not(:hover) { opacity: .55; }

/* Technologien */
.h-tech {
  display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 14px;
  background: var(--petrol-soft); border: 1px solid var(--petrol); color: var(--petrol-ink); font-size: 20px; font-weight: 700;
}
.h-tech--blue { align-self: flex-start; background: var(--tint); border-color: var(--blue); color: var(--blue); }
.h-ai {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 26px -12px #1668CF;
}

/* Wer wir sind */
.h-aboutwrap { padding: 0 var(--gut) 118px; }
.m-about { background: var(--panel); border-radius: 16px; overflow: hidden; position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; }
.m-valcol { min-width: 0; border-left: 1px solid rgba(244, 247, 252, .1); display: flex; flex-direction: column; justify-content: center; padding: 80px 40px; gap: 0; }
.m-val {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; align-items: baseline; padding: 22px 16px; border-radius: 6px;
  border-bottom: 1px solid rgba(244, 247, 252, .1);
  transition: background-color .32s ease, box-shadow .32s ease, transform .32s cubic-bezier(.22, .61, .36, 1);
}
.m-val:last-child { border-bottom: 0; }
.m-val:hover { background: rgba(63, 196, 180, .1); box-shadow: inset 2px 0 0 #3FC4B4; transform: translateX(4px); }
.m-val-n { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #6B819C; transition: color .32s ease; }
.m-val:hover .m-val-n { color: #3FC4B4; }

/* Responsiv */
@media (max-width: 1100px) {
  .h-h1 { font-size: 44px; }
  .m-about { grid-template-columns: 1fr !important; }
  .m-valcol { border-left: none !important; border-top: 1px solid rgba(244, 247, 252, .1) !important; padding: 0 40px 64px !important; }
  .h-grid3 { grid-template-columns: 1fr 1fr; }
  .h-branchen { grid-template-columns: 1fr; gap: 48px; }
  .m-br-t { font-size: 28px; }
  .h-aboutwrap { padding-bottom: 72px; }
}
@media (max-width: 900px) {
  .m-valcol { padding: 0 24px 48px !important; }
  .m-aboutl { padding: 56px 24px !important; }
  .h-grid2, .h-grid3 { grid-template-columns: 1fr; }
  .h-ai { grid-template-columns: 1fr; }
  .h-marq-r { display: none; }
  .h-card { padding: 28px; }
}
