/* TRIPAN Drupal-Schicht: kleine Anpassungen über den portierten React-CSS-Dateien.
   Interaktive React-Elemente ohne JS-Gegenstück ausblenden (Burger, Sprachwahl) —
   kommen mit dem Interaktivitäts-Paket zurück. */
/* entfernt (Pixel-Gate): Verstecken aenderte Chrome-Hoehe -> globaler Versatz */
/* entfernt (Pixel-Gate): Verstecken aenderte Chrome-Hoehe -> globaler Versatz */
main.tp-drupal-main { display: block; }

.tp-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; padding: 32px 0 64px; }
.tp-grid-cards .ref-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pagehead--drupal { padding: 200px 0 24px; }
.pagehead--drupal h1 { margin: 0; color: var(--tp-primary); font-size: clamp(36px,5vw,72px); line-height: 1.05; font-weight: 300; text-transform: uppercase; letter-spacing: -1px; }
.tp-node-content .field { margin-bottom: 18px; }
.tp-node-content .field__label { font-family: var(--font-mono, monospace); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3, #888); margin-bottom: 4px; }
/* Link-Karten: React nutzt div+onClick, wir a+href — Resets hier statt inline, DOM bleibt string-gleich. */
a.ref-card, a.panel-card { text-decoration: none; color: inherit; display: block; }
/* MM-SYNC v1167 topbar: React rendert .tp-topbar aktuell auf allen Routen/BPs display:none (Probe 2026-07-21) */ .tp-topbar{display:none;}

/* MM-RESPONSIVE insight-hero: Port der window.innerWidth-Zweige (Pages2.jsx InsightsDetailPage, Sync 2026-07-21) */
@media (min-width: 1025px) { .tp-vp-le1024 { display: none !important; } }
@media (max-width: 1024px) {
  .tp-vp-gt1024 { display: none !important; }
  .ins-hero-grid { grid-template-columns: 1fr !important; min-height: auto !important; gap: var(--space-9) !important; } /* gap-Reset: v2-boost [style*="1fr 1fr"]-Regel setzt 40px, React-Grid ist @<=1024 aber schon 1fr mit gap 96 */
  .ins-hero-text { padding-right: 0 !important; }
}
@media (min-width: 901px) and (max-width: 1024px) { .ins-hero-container { padding-bottom: 40px !important; } }

/* MM-RESPONSIVE anwendung-hero (Sync 2026-07-21) */
@media (max-width: 1024px) { .anw-hero-grid { min-height: auto !important; } }

/* MM bew-band Inline-Webform: Drupal-Webform-Markup an React bew-grid angleichen (Sync 2026-07-21) */
.bew-band form.webform-submission-bewerbung-form { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: var(--space-6); align-items: stretch; margin-bottom: 0; }
.bew-band .bew-col .form-item, .bew-band .bew-col .js-form-item { margin: 0 0 var(--space-3); }
.bew-band form .form-item label, .bew-band form .js-form-item label { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-3); margin-bottom: 6px; display: block; font-weight: 400; }
.bew-band .bew-sec { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-3); margin-bottom: var(--space-5); display: block; }
.bew-band .form-type-checkbox, .bew-band .js-form-type-checkbox, .bew-band .webform-actions { grid-column: 1 / -1; }
.bew-band form .form-item.form-type-checkbox label, .bew-band form .js-form-item.js-form-type-checkbox label, .bew-band form .form-item.js-form-type-checkbox label { font-family: var(--font-sans, inherit); text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--fg-2); display: inline; margin: 0; }
.bew-band textarea.inp { min-height: 200px; resize: vertical; }
.bew-band .webform-actions { margin: 0; }


/* MM wi-slider: a-Karten wie div-Karten behandeln (v2-boost #2820 selektiert .wi-slider > div) */
@media (max-width: 1023px) {
  .wi-slider > .ref-card { flex: 0 0 80vw !important; scroll-snap-align: start !important; }
}

/* MM bew-band II: hidden inputs erzeugen sonst leere Grid-Rows (+gap); Textarea füllt die Spalte wie React */
.bew-band form > input { display: none; }
.bew-band .bew-col--nachricht { display: flex; flex-direction: column; }
.bew-band .bew-col--nachricht .js-webform-type-textarea { display: flex; flex-direction: column; flex: 1 1 auto; margin-bottom: 0; }
.bew-band .bew-col--nachricht .js-form-item > div { display: flex; flex-direction: column; flex: 1 1 auto; }
.bew-band .bew-col--nachricht textarea.inp { flex: 1 1 auto; min-height: 200px; }
.bew-band .bew-col .js-form-item:last-child { margin-bottom: 0; }

/* MM a-vs-button: als <a> portierte Buttons rendern mit geerbter line-height hoeher als Reacts <button> (line-height: normal) */
a.tag, a.btn { line-height: normal; }

/* MM bew-band III: React-Layout — row-gap via margins (bew-grid mb48), Checkboxen kompakt (React: 22/45px Label-Zeilen) */
.bew-band form.webform-submission-bewerbung-form { row-gap: 0; }
.bew-band .bew-col { margin-bottom: 48px; }
@media (max-width: 768px) { .bew-band .bew-col { margin-bottom: 32px; } .bew-band .bew-col--upload { margin-bottom: 48px; } }
.bew-band .form-type-checkbox, .bew-band .js-form-type-checkbox { margin: 0 0 8px; }
.bew-band .js-form-type-checkbox + .webform-actions, .bew-band .form-actions { margin: 40px 0 0; }
.bew-band .js-form-type-checkbox label, .bew-band .js-form-type-checkbox .option { font-size: 14px; line-height: 1.6; margin: 0; }
.bew-band .js-form-type-checkbox .description, .bew-band .form-item .description { margin: 0; }

/* MM-RESPONSIVE hero-bild @1920: React-JS-Zweig (exakt 1920: height 600/kein aspect; >1920: aspect 8/5), Pages2 Z.537/2975 */
@media (min-width: 1920px) and (max-width: 1920.9px) {
  .tp-vp-gt1024 { height: 600px !important; aspect-ratio: auto !important; }
}
@media (min-width: 1921px) {
  .tp-vp-gt1024 { height: auto !important; aspect-ratio: 8 / 5 !important; }
}

/* MM bew-band IV: Checkbox inline neben Label (React-Muster; Drupal stapelt sonst input ueber label, +28px/Item) */
.bew-band .js-form-type-checkbox { display: flex; gap: 10px; align-items: flex-start; }
.bew-band .js-form-type-checkbox input.form-checkbox { margin: 2px 0 0; flex: none; width: 16px; height: 16px; }
.bew-band .js-form-type-checkbox label { flex: 1 1 auto; }

/* MM bew-band V: explizite Grid-Plaetze (Auto-Placement stapelte die Spalten) — React-Soll: >=1024 drei nebeneinander, <=1023 [pers|nachricht] + upload Row 2 */
.bew-band .bew-col--persoenlich { grid-row: 1; grid-column: 1; }
.bew-band .bew-col--nachricht { grid-row: 1; grid-column: 2; }
.bew-band .bew-col--upload { grid-row: 1; grid-column: 3; }
@media (min-width: 601px) and (max-width: 768px) {
  .bew-band form.webform-submission-bewerbung-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bew-band .bew-col--upload { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bew-band .bew-col--persoenlich, .bew-band .bew-col--nachricht, .bew-band .bew-col--upload { grid-row: auto; grid-column: 1; }
}

/* MM bew-band VI: Upload als React-Dropzone (2px dashed, Icon, Texte; unsichtbares file-input ueber der Zone) */
.bew-band .bew-col--upload { display: flex; flex-direction: column; }
.bew-band .bew-col .js-webform-type-markup { margin-bottom: 0; }
.bew-band .bew-col--upload > div:not(.js-webform-type-markup) { display: flex; flex-direction: column; flex: 1 1 auto; }
.bew-band .js-form-type-managed-file { border: 2px dashed var(--border); border-radius: var(--tw-radius-control, 8px); padding: 64px 32px; text-align: center; background: var(--bg-2); cursor: pointer; flex: 1 1 0%; min-height: 200px; /* pad hart: Drupal --space-8 loest anders auf als React */ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; position: relative; margin: 0; }
.bew-band .js-form-type-managed-file::before { content: ""; width: 28px; height: 28px; background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23696966' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3C/svg%3E") center / contain no-repeat; }
.bew-band .js-form-type-managed-file input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bew-band .js-form-type-managed-file .js-form-managed-file { position: static; }
.bew-band .js-form-type-managed-file .description { margin: 0; }
.bew-band .dz-line1 { display: block; font-size: 14px; color: var(--fg-1); margin-bottom: 12px; }
.bew-band .dz-line2 { display: block; font-size: 13px; color: var(--fg-3); line-height: 1.5; }

/* MM bew-band VI-b: Zone @<=1023 ohne min-height (React-Messung: 165px inhaltbasiert, pad schrumpft via --space-Variablen) */
@media (min-width: 601px) and (max-width: 768px) { .bew-band .js-form-type-managed-file { min-height: 110px; } }

/* MM bew-band VII: Zone-Padding hart nach React-Messwerten (React: 64/32 @1440, 24/32 @<=1023); leere Flex-Kinder aus dem Gap-Fluss */
@media (min-width: 601px) and (max-width: 768px) { .bew-band .js-form-type-managed-file { padding: 24px 32px; } }
.bew-band .js-form-type-managed-file .visually-hidden { position: absolute; }
.bew-band .js-form-type-managed-file .js-form-managed-file { position: absolute; inset: 0; }

/* MM Referenz-Hero: React-JS-Zweige (innerWidth<=1024: 1 Spalte, kein minHeight, kein paddingRight) als Media Queries */
@media (max-width: 1024px) {
  .pg-ref-detail #rd-hero .container > div { grid-template-columns: minmax(0, 1fr) !important; min-height: 0 !important; }
  .pg-ref-detail #rd-hero .container > div > div { padding-right: 0 !important; }
}

/* MM Unternehmen-Historie: React-Item-Abstand (pb 140, letztes 0) — Regel griff im Drupal-Kontext nicht */
.pg-unt #ue-hist .ls-sticky-item { padding-bottom: 140px; }
.pg-unt #ue-hist .ls-sticky-item:last-child { padding-bottom: 0; }

/* MM Detail-Heroes (Referenz/F&E): React-innerWidth-Zweige — absolutes Bild nur >1024, Fluss-Bild <=1024; 1920er-Sonderfaelle */
.rd-hero-flow { display: none; }
@media (max-width: 1024px) {
  .rd-hero-abs { display: none !important; }
  .rd-hero-flow { display: block; }
  .pg-fe.pg-ld section:first-of-type .container > div { grid-template-columns: minmax(0, 1fr) !important; min-height: 0 !important; }
  .pg-fe.pg-ld section:first-of-type .container > div > div:first-child { padding-right: 0 !important; }
}
@media (min-width: 1920px) and (max-width: 1920.9px) {
  .rd-hero-abs { height: 600px !important; aspect-ratio: auto !important; }
}
@media (min-width: 1921px) {
  .rd-hero-abs { height: auto !important; aspect-ratio: 8 / 5 !important; }
}
/* MM rd-hero-band-pads: React-Computed je Band (padB 24@<=600, 40@601-1024; Grid-Gap 48/96) fuer Referenz- und F&E-Hero */
@media (max-width: 600px) {
  .pg-ref-detail #rd-hero .container, .pg-fe.pg-ld section:first-of-type .container { padding-bottom: 24px !important; }
  .pg-ref-detail #rd-hero .container > div, .pg-fe.pg-ld section:first-of-type .container > div { gap: 48px !important; }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .pg-ref-detail #rd-hero .container, .pg-fe.pg-ld section:first-of-type .container { padding-bottom: 40px !important; }
  .pg-ref-detail #rd-hero .container > div, .pg-fe.pg-ld section:first-of-type .container > div { gap: 96px !important; }
}

/* MM rd-hero-pad0: mobile section-Grundregel gab dem Referenz-Hero 60/48 Padding — React hat 0 */
@media (max-width: 600px) { .pg-ref-detail #rd-hero { padding: 0 !important; } }

/* MM rd-mat mobil: React blendet Zeilen ohne Wert aus */
@media (max-width: 600px) { .rd-mat .rd-mat-leer, .rd-mat tr.rd-mat-leer { display: none !important; } }

/* MM rd-hero-svh: React koppelt den Referenz-Hero hart an die Viewport-Hoehe (>1024) — empirisch bewiesen (VP 1200->1200, 800->800) */
@media (min-width: 1025px) { .pg-ref-detail #rd-hero { height: 100vh; height: 100svh; } }

/* MM Startseite Mobile-Varianten: React rendert h-produkte/h-anwendungen/h-forschung <=600 strukturell anders (JS-innerWidth) — Doppel-Markup mit MQ-Umschaltung */
.hp-mobile-variante { display: none; }
@media (max-width: 600px) {
  section[data-variante="desktop"] { display: none; }
  .hp-mobile-variante { display: block; }
}

/* MM Rechtsseiten: React index.html-Inline-Regel gewinnt dort die Kaskade ueber v2-boost (h3 15px/700/uppercase, Abstaende space-6/space-3) */
.pg-legal .legal-html h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: var(--space-6) 0 var(--space-3); color: var(--fg-1); }
.pg-legal .legal-html li { margin-bottom: 4px; }


/* MM #564 (Katrin): Anwendungsdetail @1024-Band — Projekte (ref-grid, Basis 3) und Paneele
   (panel-grid, Basis 4) einheitlich 3-spaltig; volles Band 1024-1439 (#542). */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  #ad-muster .panel-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* MM #563 Nachbesserung (Katrin): "Was im Bereich ... zaehlt" @1024-Band — Zellen einer
   Grid-Zeile gleich hoch, Text vertikal mittig, Trennlinien einer Zeile auf einer Hoehe. */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  #ad-anf .tpb-line-item { height: 100%; box-sizing: border-box; align-items: center; }
}

/* MM #566 (Katrin): Karriere-Detail — Abstand ueber dem Footer = Karriere-Uebersicht,
   bandweise kalibriert (Werte aus React v1186). */
@media (max-width: 600px) {
  #kd-content { padding-bottom: 21px !important; }
  #kd-content .bew-band, .pg-kd .bew-band { padding-bottom: 32px !important; }
}
@media (min-width: 601px) and (max-width: 1023.98px) {
  #kd-content .bew-band, .pg-kd .bew-band { padding-bottom: 60px !important; }
}
@media (min-width: 1024px) and (max-width: 1439.98px) {
  #kd-content .bew-band, .pg-kd .bew-band { padding-bottom: 35px !important; }
}
@media (min-width: 1440px) {
  #kd-content .bew-band, .pg-kd .bew-band { padding-bottom: 29px !important; }
}


/* MM #567: Silhouetten-Kreis >600, Marquee-Laufband <=600 (React v1192-Parität) */
.tp-hero-marquee { display: none; }
.tp-hero-marquee__track { display: flex; width: max-content; animation: tpHeroMarquee 42s linear infinite; }
.tp-hero-marquee__grp { display: flex; align-items: center; gap: 44px; padding-right: 44px; flex-shrink: 0; }
@keyframes tpHeroMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tp-hero-marquee__track { animation: none; } }
@media (max-width: 600px) {
  .tp-hero-sil { display: none; }
  .tp-hero-marquee { display: block; }
}


/* == TRIPAN Cookie-Banner (#3491) — Bottom-Sheet, Optik 1:1 wie React == */
.tp-ck-overlay {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(0, 0, 0, .45);
    font-family: var(--font-sans, 'Proxima Nova', 'Helvetica Neue', Arial, sans-serif);
}
.tp-ck-sheet {
    background: #fff; width: 100%; max-width: 520px; margin: 0; box-sizing: border-box;
    padding: 26px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 48px rgba(0, 20, 40, .28);
    border-radius: 16px 16px 0 0;
    max-height: calc(100dvh - 24px); overflow-y: auto;
}
.tp-ck-h2 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 300; text-transform: uppercase; letter-spacing: -.01em; color: var(--tp-primary, #0089cc); }
.tp-ck-p { font-size: 14px; color: #4d4c4f; line-height: 1.6; margin: 12px 0 20px; }
.tp-ck-p a { color: var(--tp-primary, #0089cc); text-decoration: underline; text-underline-offset: 2px; }
.tp-ck-btn { font-size: 15px; font-weight: 600; padding: 14px 22px; border: none; cursor: pointer; border-radius: var(--tw-radius-control, 8px); line-height: 1.2; }
.tp-ck-btn--primary { background: var(--tp-yellow, #ffd400); color: #000; }
.tp-ck-btn--secondary { background: #fff; color: #4d4c4f; border: 1px solid var(--tp-grey-30, #cac9ca); }
.tp-ck-btn--full { width: 100%; }
.tp-ck-btn--grow { flex: 1 1 auto; }
.tp-ck-link { font-size: 14px; font-weight: 600; background: none; border: none; color: var(--tp-primary, #0089cc); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 4px; }
.tp-ck-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.tp-ck-actions--detail { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tp-ck-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; border-top: 1px solid var(--tp-grey-30, #cac9ca); }
.tp-ck-row--last { border-bottom: 1px solid var(--tp-grey-30, #cac9ca); }
.tp-ck-row__label { font-size: 15px; font-weight: 600; color: #4d4c4f; }
.tp-ck-row__desc { font-size: 14px; color: #4d4c4f; margin-top: 4px; line-height: 1.5; max-width: 60ch; }
.tp-ck-toggle { width: 44px; height: 24px; flex-shrink: 0; border: none; padding: 0; cursor: pointer; background: var(--tp-grey-30, #cac9ca); position: relative; border-radius: var(--tw-radius-control, 8px); }
.tp-ck-toggle[aria-pressed="true"] { background: var(--tp-primary, #0089cc); }
.tp-ck-toggle[disabled] { opacity: .6; cursor: default; }
.tp-ck-toggle__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left 160ms ease; }
.tp-ck-toggle[aria-pressed="true"] .tp-ck-toggle__knob { left: 23px; }
