/* Nexus Trinity Partners – globale Styles
   Seiteninhalte nutzen überwiegend Inline-Styles aus den Design-Entwürfen;
   hier stehen Schriften, Kopf-/Fußzeile, Formulare und die mobilen Anpassungen. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-300.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/playfair-display-500.woff2") format("woff2"); }

:root {
  --surface: #232323; --deep: #1D1D1B; --raised: #2C2C2C;
  --ink: #F2F2F2; --muted: #A6A6A6; --brand: #595859;
  --hairline: #3A3A3A; --control: #8C8C8C;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
section[id] { scroll-margin-top: 96px; }
h1, h2, h3, p { overflow-wrap: break-word; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--deep); text-decoration: none; border-radius: 2px; }
.skip-link:focus { top: 12px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); border-bottom: 1px solid var(--hairline); }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: 20px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.brand .brand-word { height: 26px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; line-height: 20px; }
.site-nav a { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav .nav-cta { color: var(--deep); background: var(--ink); padding: 12px 20px; border-radius: 2px; border-bottom: 0; }
.site-nav .nav-cta:hover { color: var(--deep); background: #FFFFFF; }
.menu-toggle { display: none; min-height: 44px; padding: 0 18px; background: transparent; color: var(--ink); border: 1px solid var(--control); border-radius: 2px; font: inherit; font-size: 15px; cursor: pointer; }

/* Fußzeile */
.site-footer { background: var(--deep); border-top: 1px solid var(--hairline); }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px 32px 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-logo { display: block; width: 240px; height: auto; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; line-height: 22px; }
.footer-contact address { font-style: normal; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 14px; line-height: 22px; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* Startseite: Kennzeile im Hero immer einzeilig (ab Tablet) */
.hero-eyebrow { white-space: nowrap; }
@media (max-width: 1320px) { .hero-eyebrow { letter-spacing: 0.12em !important; } }
@media (max-width: 720px) { .hero-eyebrow { white-space: normal; } }

/* Startseite: Illustration Menschen + Netzwerk */
.hero-art { display: block; width: 116%; max-width: 640px; height: auto; margin: -56px -9% -56px -7%; }
#start { overflow: hidden; }
.hero-art .ha-links line { transition: stroke-opacity 1.6s cubic-bezier(.4,0,.2,1), stroke-width 1.6s cubic-bezier(.4,0,.2,1); }
.hero-art .ha-node { transition: opacity 1.6s cubic-bezier(.4,0,.2,1); }
.hero-art.hl .ha-links line { stroke-opacity: .1; }
.hero-art.hl .ha-links line.on { stroke-opacity: .85; stroke-width: 1.6; }
.hero-art.hl .ha-node { opacity: .55; }
.hero-art.hl .ha-node.on, .hero-art.hl .ha-hub { opacity: 1; }
@media (max-width: 1240px) and (min-width: 721px) {
  #start .hero-claim { font-size: 54px !important; line-height: 62px !important; }
  .hero-art { margin-right: -4%; }
}
@media (prefers-reduced-motion: reduce) { .hero-art .pulse { display: none; } }
@media (max-width: 960px) { .hero-art { width: 100%; max-width: 520px; margin: 0 auto; } }

/* Interaktive Kacheln und Listen */
a[style*="background: #2C2C2C"]:hover { border-color: var(--control) !important; }
a[style*="background: #F2F2F2"]:hover { background: #FFFFFF !important; color: var(--deep) !important; }

/* Formulare */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 24px; }
.form-grid[hidden] { display: none; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.field input, .field textarea { min-height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--control); border-radius: 2px; color: var(--ink); font-family: inherit; font-size: 16px; }
.field textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
.field input[type="file"] { padding: 12px 14px; }
.field input::placeholder, .field textarea::placeholder { color: #7A7A7A; }
.file-hint { margin: -12px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 48px; padding: 0 28px; background: var(--ink); color: var(--deep); border: none; border-radius: 2px; font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn-primary:hover { background: #FFFFFF; }
button[disabled] { opacity: .6; cursor: progress; }
.tab, .filter { min-height: 44px; padding: 0 20px; border: 1px solid var(--control); background: transparent; color: var(--ink); border-radius: 2px; font-family: inherit; font-size: 15px; cursor: pointer; }
.filter { padding: 0 18px; font-size: 14px; }
.tab[aria-pressed="true"], .filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--deep); }
input:invalid.touched, textarea:invalid.touched { border-color: #D9A0A0 !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.upload-progress { grid-column: 1 / -1; height: 2px; background: var(--hairline); overflow: hidden; }
.upload-progress[hidden] { display: none; }
[data-empty][hidden], [data-hinweis][hidden] { display: none !important; }
.upload-progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s linear; }
.form-status { margin: 0; font-size: 15px; color: var(--ink); }
.form-status:empty { display: none; }
.form-status.is-error { color: #E8B4B4; }

/* Rechtstexte */
.legal { max-width: 1200px; margin: 0 auto; padding: 64px 32px 120px; display: flex; flex-direction: column; }
.legal article { max-width: 760px; padding: 28px 0; border-top: 1px solid var(--hairline); }
.legal h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 34px; }
.legal h3 { margin: 24px 0 8px; font-size: 17px; line-height: 26px; font-weight: 500; color: var(--ink); }
.legal h4 { margin: 18px 0 6px; font-size: 15px; line-height: 24px; font-weight: 500; color: var(--ink); }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 0 0 6px; overflow-wrap: anywhere; hyphens: auto; }
.legal li::marker { color: var(--control); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); overflow-wrap: anywhere; }
.legal p, .legal li { margin: 0 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.legal .note { color: var(--ink); font-size: 18px; line-height: 30px; font-weight: 300; }

/* Mobile Navigation */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; font-size: 18px; line-height: 24px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--hairline); color: var(--muted); }
  .site-nav .nav-cta { margin-top: 16px; text-align: center; padding: 14px 20px; }
}

/* Mobile Layout: Inline-Größen der Entwürfe sanft reduzieren */
@media (max-width: 720px) {
  .site-header-inner { padding: 14px 20px; }
  .brand { gap: 12px; }
  .brand img { height: 32px; }
  .brand .brand-word { height: 17px; }
  main p, main h1 { hyphens: auto; }
  #start .hero-claim, .hero-eyebrow { hyphens: manual; }
  .site-footer-inner { padding: 48px 20px 32px; }
  .legal { padding: 40px 20px 72px; }

  [style*="font-size: 64px"] { font-size: 40px !important; line-height: 48px !important; }
  [style*="font-size: 44px"] { font-size: 32px !important; line-height: 40px !important; }
  [style*="font-size: 30px"] { font-size: 25px !important; line-height: 33px !important; }
  [style*="font-size: 26px"] { font-size: 22px !important; line-height: 30px !important; }

  [style*="padding: 120px 32px"] { padding: 72px 20px !important; }
  [style*="padding: 96px 32px 120px"] { padding: 56px 20px 72px !important; }
  [style*="padding: 96px 32px 80px"] { padding: 56px 20px 48px !important; }
  [style*="padding: 64px 32px"] { padding: 48px 20px !important; }
  [style*="padding: 48px;"] { padding: 28px !important; }
  [style*="gap: 64px"] { gap: 40px !important; }

  [style*="minmax(420px"], [style*="minmax(360px"], [style*="minmax(320px"], [style*="minmax(300px"], [style*="minmax(280px"] { grid-template-columns: 1fr !important; }
  /* Leistungen auf der Startseite: Spalten untereinander statt nebeneinander */
  article[style*="border-right: 1px solid #3A3A3A"] { border-right: 0 !important; border-bottom: 1px solid #3A3A3A; }
  article[style*="padding: 40px"] { padding: 32px 0 !important; }
}

/* Leistungsseiten: erklärende, statische Diagramme */
.lf-wrap { display: flex; flex-direction: column; gap: 32px; }
.lf { position: relative; width: 100%; max-width: 760px; margin: 0 auto; }
.lf svg { display: block; width: 100%; height: auto; }
.lf-l { position: absolute; font-size: 14px; line-height: 19px; color: #A6A6A6; }
.lf-l.c { transform: translateX(-50%); text-align: center; max-width: 30%; }
.lf-l.cap { font-size: 12px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; background: #232323; padding: 2px 10px 2px 0; }
.lf-l.hub { color: #F2F2F2; max-width: 40%; }
.lf-badge, .lf-n { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #8C8C8C; background: #232323; color: #F2F2F2; font-size: 13px; line-height: 1; }
.lf-badge { position: absolute; transform: translate(-50%, -50%); }
.lf-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 40px; max-width: 760px; width: 100%; margin: 0 auto; padding: 0; list-style: none; }
.lf-legend li { display: flex; align-items: flex-start; gap: 12px; color: #A6A6A6; font-size: 15px; line-height: 22px; }
@media (max-width: 720px) {
  .lf-l { font-size: 11px; line-height: 14px; }
  .lf-l.cap { font-size: 10px; line-height: 13px; letter-spacing: .12em; }
  .lf-l.c { max-width: 31%; }
  .lf-badge { width: 20px; height: 20px; font-size: 11px; }
  .lf-legend { grid-template-columns: 1fr; }
}
.lf-l.r { transform: translateX(-100%); text-align: right; max-width: 26%; }
.lf-l.lft { text-align: left; max-width: 26%; }
.lf-l.c.above { transform: translate(-50%, -100%); }
.lf-l.cap.hubin { background: none; padding: 0; color: #F2F2F2; letter-spacing: .18em; font-size: 11px; white-space: nowrap; max-width: none; }
@media (max-width: 720px) { .lf-l.cap.hubin { font-size: 7px; line-height: 9px; letter-spacing: .05em; margin-top: -3px; } .lf-l.r, .lf-l.lft { max-width: 24%; } }
/* Helles Slogan-Band: auf dem Handy so kompakt wie das Verhältnis am Desktop (ca. ein Viertel) */
@media (max-width: 720px) {
  .lf-band > div { padding: 28px 20px !important; gap: 8px !important; }
  .lf-band h2 { font-size: 26px !important; line-height: 34px !important; }
  .lf-band p { font-size: 11px !important; letter-spacing: .16em !important; }
}
/* Stellenseite: Ansprechpartner-Kachel bündig mit der ersten Trennlinie unter „Die Perspektive“
   (Überschrift 38px Zeilenhöhe + 16px Abstand), nur wenn beide Spalten nebeneinander stehen */
@media (min-width: 969px) { .job-contact { margin-top: 54px; } }
/* Startseite: Miniaturen der Leistungsgrafiken auf den Kacheln */
.lf-mini { display: block; width: 132px; height: auto; margin-bottom: 8px; }

/* Branchenseiten: Segmente als typografisches Raster (Stil wie die Branchenliste der Startseite) */
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.seg-item { padding: 20px 0 22px; border-top: 1px solid #3A3A3A; font-family: 'Playfair Display', Georgia, serif; font-size: 22px; line-height: 30px; color: #F2F2F2; hyphens: manual; }
.seg + section > div { padding-top: 64px !important; }
@media (max-width: 960px) { .seg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .seg > div { padding: 56px 20px 0 !important; }
  .seg-grid { gap: 0 20px; }
  .seg-item { font-size: 18px; line-height: 24px; padding: 16px 0 18px; }
  .seg + section > div { padding-top: 40px !important; }
}
.seg-grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .seg-grid.c3 { grid-template-columns: repeat(2, 1fr); } }
/* Startseite Branchenliste: in der einspaltigen Ansicht keine doppelte Linie zwischen den letzten beiden Einträgen */
@media (max-width: 575px) { .br-last-l { border-bottom: none !important; } }
.seg-grid.c5 { grid-template-columns: repeat(5, 1fr); gap: 0 24px; }
@media (max-width: 960px) { .seg-grid.c5 { grid-template-columns: repeat(2, 1fr); } .seg-grid.odd { grid-template-columns: 1fr; } }
/* Raster: Spalten immer gleich breit, auch bei langen Wörtern */
.seg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg-grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .seg-grid, .seg-grid.c3, .seg-grid.c4, .seg-grid.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg-grid.odd { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) { .seg-item { hyphens: auto; overflow-wrap: break-word; } }

/* Eigene Upload-Felder: native Auswahl unsichtbar, aber fokussier- und prüfbar */
label:has(> .file-native) { position: relative; }
.file-native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-ui { display: flex; align-items: center; gap: 16px; min-height: 48px; box-sizing: border-box; padding: 6px; background: #232323; border: 1px solid #8C8C8C; border-radius: 2px; cursor: pointer; }
.file-btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; background: #F2F2F2; color: #1D1D1B; border-radius: 2px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #A6A6A6; }
.file-name.has-files { color: #F2F2F2; }
.file-ui:hover { border-color: #F2F2F2; }
.file-native:focus-visible + .file-ui { outline: 2px solid #F2F2F2; outline-offset: 2px; }
.file-native:invalid.touched + .file-ui { border-color: #D9A0A0; }

/* Dezente Scroll-Effekte: Inhalte blenden beim ersten Erscheinen einmalig sanft ein (nur mit JS, nicht bei reduzierter Bewegung) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

.hero-eyebrow { font-weight: 400; }
@media (max-width: 720px) { .portrait-rund { width: 240px !important; margin: 0 auto; } }

/* Aufzählungspunkte in Stellenanzeigen: kleiner, runder Punkt */
.li-dot { position: absolute; left: 4px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: #A6A6A6; }
/* Startseite Branchen: zwei Spalten, Lesereihenfolge spaltenweise (links oben nach unten, dann rechts) */
@media (min-width: 576px) { .br-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: repeat(3, auto); grid-auto-flow: column; } }
