/*
Theme Name:   Elldus Careers (Neve Child)
Theme URI:    https://teamelldus.de/
Description:  Child Theme für das kostenlose Neve-Theme – Karriereseite #teamelldus (Elldus Resort), Design „Studio Slate“: monochrome Slate-Welt auf warmem Off-White, große ruhige Typografie (Bricolage Grotesque + Instrument Sans), scrollgebundene Effekte (Wort-für-Wort-Hero, Parallax-Sheet, horizontale Team-Stimmen, Reveals) und gebrandete Darstellung des Kenjo-Careers-Plugins. Alle Sektionen als Gutenberg-Block-Patterns editierbar.
Author:       Elldus Resort
Version:      4.0.0
Template:     neve
Text Domain:  elldus-careers
License:      GPL-2.0-or-later
Tags:         child-theme, careers, hospitality
*/

/* =====================================================================
   1) MARKEN-TOKENS
   ===================================================================== */
:root {
  --el-font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --el-font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --el-paper:      #FCFBF9;   /* Seitenhintergrund, warmes Off-White */
  --el-paper-2:    #F7F6F2;   /* alternierende Sektionen */
  --el-ink:        #232B2F;   /* Text dunkel */
  --el-slate:      #4C6172;   /* Primär (Marke) */
  --el-slate-dark: #3B4E5D;
  --el-slate-deep: #2E3E4A;   /* dunkle Bänder */
  --el-line:       #E3E1DC;   /* Haarlinien */
  --el-muted:      #75808A;   /* Sekundärtext */
  --el-soft:       #9AA3AB;   /* Tertiärtext */
  --el-word-off:   #D6D3CC;   /* unaktivierte Hero-Wörter */

  --el-radius:     24px;
  --el-radius-sm:  20px;
  --el-maxw:       1240px;
  --el-pad-x:      clamp(18px, 4vw, 36px);
  --el-section-y:  clamp(72px, 10vw, 150px);

  /* ---- Kenjo-Plugin-Buttons an die Marke koppeln (Plugin liest diese Variablen) ---- */
  --pbmit-secondary-color:               var(--el-slate);
  --pbmit-color-secondary:               var(--el-slate);
  --pbmit-emphires-secondary-color:      var(--el-slate);
  --pbmit-emphires-secondary-color-text: #FFFFFF;

  /* ---- Neve-Variablen überschreiben ---- */
  --nv-primary-accent:   var(--el-slate);
  --nv-secondary-accent: var(--el-slate-dark);
  --nv-text-color:       var(--el-ink);
  --nv-text-dark-bg:     var(--el-paper);
  --nv-dark-bg:          var(--el-slate-deep);
  --nv-light-bg:         var(--el-paper);
}

/* =====================================================================
   2) BASIS / TYPOGRAFIE
   ===================================================================== */
body {
  background: var(--el-paper);
  color: var(--el-ink);
  font-family: var(--el-font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--el-font-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--el-ink);
}
a { color: var(--el-slate); }
a:hover { color: var(--el-ink); }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.wp-block-button__link:focus-visible, .rm-kenjo-button:focus-visible {
  outline: 3px solid var(--el-slate);
  outline-offset: 3px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@keyframes elBounce { from { transform: translateY(0); } to { transform: translateY(6px); } }
@keyframes elPop {
  0%   { transform: scale(.5) rotate(-6deg); }
  60%  { transform: scale(1.12) rotate(-2deg); }
  100% { transform: scale(1) rotate(-2deg); }
}

/* =====================================================================
   3) LAYOUT-HELFER
   ===================================================================== */
.el-section { padding-block: var(--el-section-y); }
.el-section--flush { padding-block: 0; }
.el-alt { background: var(--el-paper-2); border-block: 1px solid var(--el-line); }
.el-white { background: #FFFFFF; border-block: 1px solid var(--el-line); }
.el-container,
.el-section > .wp-block-group__inner-container {
  max-width: var(--el-maxw);
  margin-inline: auto;
  padding-inline: var(--el-pad-x);
}
.el-container--narrow { max-width: 860px; }

.el-eyebrow {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--el-muted);
}
.el-title { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
.el-title .el-accent, .el-accent { color: var(--el-slate); }
.el-lead { font-size: 1.12rem; line-height: 1.65; color: #4A555C; }
.el-note { font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--el-soft); }

/* Sektionskopf mit rechtsbündiger Beschreibung */
.el-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.el-head p:last-child { margin: 0; max-width: 400px; font-size: 1.05rem; line-height: 1.55; color: var(--el-muted); }

/* =====================================================================
   4) BUTTONS & PILLS
   ===================================================================== */
.wp-block-button__link { border-radius: 999px !important; font-weight: 600; }
.el-btn .wp-block-button__link { background: var(--el-slate) !important; color: #fff !important; padding: 16px 32px; transition: background .15s ease; }
.el-btn .wp-block-button__link:hover { background: var(--el-slate-dark) !important; }
.el-btn-light .wp-block-button__link { background: var(--el-paper) !important; color: var(--el-ink) !important; padding: 16px 32px; }
.el-btn-light .wp-block-button__link:hover { background: #FFFFFF !important; }
.el-btn-ghost .wp-block-button__link { background: transparent !important; color: var(--el-ink) !important; box-shadow: inset 0 0 0 1px #C9CDD1; padding: 15px 30px; transition: box-shadow .15s ease; }
.el-btn-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--el-ink); }
.el-dark .el-btn-ghost .wp-block-button__link, .el-cta .el-btn-ghost .wp-block-button__link { color: var(--el-paper) !important; box-shadow: inset 0 0 0 1px rgba(252,251,249,.5); }
.el-dark .el-btn-ghost .wp-block-button__link:hover, .el-cta .el-btn-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--el-paper); }

.el-pill { display: inline-block; margin: 0; border: 1px solid var(--el-line); color: #4A555C; border-radius: 999px; padding: 8px 18px; font-size: .92rem; font-weight: 500; background: #FFFFFF; }
.el-pill--solid { background: var(--el-slate); border-color: var(--el-slate); color: #FCFBF9; font-weight: 600; }
.el-pill--dark { background: var(--el-ink); border-color: var(--el-ink); color: var(--el-paper); font-weight: 600; }
.el-pill--outline { border-color: var(--el-slate); color: var(--el-slate); font-weight: 600; }

/* =====================================================================
   5) HERO – gepinnter Satz mit Wort-Füllung + Parallax-Sheet
   ===================================================================== */
.el-scrollhero { position: relative; }
.el-scrollhero__sticky {
  position: sticky; top: 0; min-height: 100vh; box-sizing: border-box;
  display: grid; align-content: center; justify-items: start;
  max-width: var(--el-maxw); margin-inline: auto;
  padding: 100px var(--el-pad-x) 60px;
}
.el-scrollfill {
  margin: 0;
  font-family: var(--el-font-head);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 22ch;
  color: var(--el-ink);
}
/* JS zerlegt .el-scrollfill in Wörter (.el-w); <strong> wird zum Pop-Wort (.el-w--pop) */
.el-w { display: inline-block; margin-right: .26em; transition: color .45s ease, opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1), filter .45s ease; }
.el-w:not(.is-on) { color: var(--el-word-off); opacity: .35; transform: translateY(.35em); filter: blur(5px); }
.el-w--pop { font-weight: inherit; }
.el-w--pop.is-on {
  background: var(--el-slate); color: var(--el-paper);
  padding: 0 .22em .06em; border-radius: .22em;
  box-shadow: 0 10px 28px rgba(76,97,114,.35);
  animation: elPop .55s cubic-bezier(.34,1.56,.64,1) both;
}
.el-w--pop.is-on strong { color: inherit; }

.el-scroll-hint { margin: 48px 0 0; display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; color: var(--el-soft); }
.el-scroll-hint .el-arrow { display: inline-block; animation: elBounce .7s ease infinite alternate; }

/* Hero-Logo-Intro: großes #teamelldus-Logo über dem noch ungefüllten Satz.
   Wird von theme.js eingefügt und blendet aus, sobald der Text beim
   Scrollen sichtbar wird (Klasse .is-hidden). */
.el-hero-logo {
  position: absolute; inset: 0; z-index: 2; margin: 0;
  display: grid; place-items: center; pointer-events: none;
  transition: opacity .55s ease, transform .55s ease;
}
.el-hero-logo img { width: min(72vw, 540px); max-height: 56vh; height: auto; object-fit: contain; }
.el-hero-logo.is-hidden { opacity: 0; transform: scale(.9); }
/* Solange das Logo steht, den ungefüllten Satz stärker zurücknehmen */
.el-scrollhero:has(.el-hero-logo:not(.is-hidden)) .el-w:not(.is-on) { opacity: .12; }

.el-hero-spacer { height: 66vh; }
body:not(.el-js) .el-hero-spacer { height: 0; } /* ohne JS kein Leerraum */
body:not(.el-js) .el-scrollhero__sticky { min-height: 0; padding-top: clamp(64px, 8vw, 120px); }

.el-sheet { position: relative; z-index: 2; background: var(--el-paper); box-shadow: 0 -24px 60px rgba(35,43,47,.1); padding: clamp(28px, 4vw, 56px) 0 0; }

/* Vollflächige Video-Sektion (Desktop: Querformat bildschirmfüllend,
   Mobil: eigenes Hochkant-Video). theme.js lädt nur die jeweils sichtbare
   Quelle (data-el-src) und startet sie stumm in Schleife. Ohne Video-URL
   bleibt das Poster-Bild stehen. */
.el-video {
  position: relative; width: 100%;
  height: 100vh; height: 100svh;
  overflow: hidden; background: var(--el-slate-deep);
}
.el-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.el-video .el-video__mobile { display: none; }
@media (max-width: 767px) {
  .el-video .el-video__desktop { display: none; }
  .el-video .el-video__mobile { display: block; }
}
.el-video .el-play { position: absolute; left: 24px; bottom: 24px; z-index: 2; margin: 0; }
.el-sheet--flush { padding: 0; }

.el-parallax { position: relative; border-radius: var(--el-radius); overflow: hidden; aspect-ratio: 21 / 9; margin: 0; }
.el-parallax img { width: 100%; height: 124%; margin-top: -12%; object-fit: cover; display: block; will-change: transform; }
body:not(.el-js) .el-parallax img { height: 100%; margin-top: 0; }
.el-play {
  position: absolute; left: 24px; bottom: 24px; z-index: 2; margin: 0;
}
.el-play a {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(252,251,249,.94); color: var(--el-ink) !important;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; backdrop-filter: blur(6px);
}
.el-play a:hover { background: #FFFFFF; }

/* =====================================================================
   6) SCROLL-EFFEKT-HAKEN (Klassen im Editor frei vergebbar)
   .el-reveal        – erscheint scrollgebunden von unten
   .el-slide-left    – slidet scrollgebunden von links herein
   .el-slide-right   – slidet scrollgebunden von rechts herein
   ===================================================================== */
.el-reveal, .el-slide-left, .el-slide-right { will-change: transform, opacity; }
.el-clip-x { overflow-x: clip; }

/* =====================================================================
   7) BENTO-GRID (Benefits)
   ===================================================================== */
.el-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.el-span2 { grid-column: span 2; }

.el-card {
  background: #FFFFFF; border: 1px solid var(--el-line); border-radius: var(--el-radius);
  padding: clamp(26px, 3vw, 38px); box-sizing: border-box; transition: transform .18s ease;
}
.el-card:hover { transform: translateY(-3px); }
.el-card h3 { margin: 0 0 6px; font-family: var(--el-font-body); font-weight: 600; font-size: 1.1rem; letter-spacing: 0; }
.el-card p:last-child { margin-bottom: 0; }
.el-card .el-text { margin: 0; line-height: 1.55; color: var(--el-muted); font-size: .98rem; }

.el-card--dark { background: var(--el-slate-deep); border-color: var(--el-slate-deep); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.el-card--dark h3, .el-card--dark .el-num { color: var(--el-paper); }
.el-card--dark .el-text { color: rgba(252,251,249,.75); }

.el-card--feature { position: relative; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; padding: 0; border: 0; }
.el-card--feature .el-card__media { position: absolute; inset: 0; margin: 0; }
.el-card--feature .el-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.el-card--feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,43,47,.05) 30%, rgba(35,43,47,.82)); }
.el-card--feature .el-card__content { position: relative; z-index: 1; padding: clamp(26px, 3vw, 38px); }
.el-card--feature h3 { color: var(--el-paper); font-size: 1.25rem; }
.el-card--feature .el-text { color: rgba(252,251,249,.82); max-width: 44ch; font-size: 1rem; }

.el-num { margin: 0 0 12px; font-family: var(--el-font-head); font-weight: 600; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; color: var(--el-slate); letter-spacing: -0.02em; }
.el-num--xl { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--el-paper); }

.el-path { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.el-path .el-arrow-sep { color: var(--el-soft); margin: 0; }
.el-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.el-chips .el-pill { padding: 7px 14px; font-size: .88rem; }

/* =====================================================================
   8) ARBEITSBEREICHE – interaktive Liste mit Bildvorschau
   ===================================================================== */
.el-dept-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.el-dept-list { border-bottom: 1px solid var(--el-line); }
.el-dept-row {
  display: flex; align-items: baseline; gap: 18px; padding: 22px 0;
  border-top: 1px solid var(--el-line); text-decoration: none; color: var(--el-ink);
  transition: padding-left .18s ease, color .18s ease;
}
.el-dept-row:hover, .el-dept-row:focus-visible, .el-dept-row.is-active { padding-left: 14px; color: var(--el-slate); }
.el-dept-row p { margin: 0; }
.el-dept-num { font: 500 .85rem ui-monospace, monospace; color: var(--el-soft); min-width: 32px; }
.el-dept-name { font-family: var(--el-font-head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; color: inherit; }
.el-dept-note { margin-left: auto !important; font-size: .92rem; font-weight: 500; color: var(--el-soft); white-space: nowrap; }
.el-dept-thumb { display: none; } /* Quelle für die Vorschau – im Editor sichtbar/pflegbar */

.el-dept-preview { position: sticky; top: 110px; }
.el-dept-preview .el-media { border-radius: var(--el-radius-sm); overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.el-dept-preview .el-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.el-dept-preview figcaption, .el-dept-preview .el-caption { margin: 14px 4px 0; font-weight: 600; color: var(--el-ink); }

/* =====================================================================
   9) DUNKLES BAND (Zahlen / Weltoffenheit)
   ===================================================================== */
.el-dark { background: var(--el-slate-deep); color: var(--el-paper); }
.el-dark .el-eyebrow { color: #8FA3B3; }
.el-statement { margin: 0; font-family: var(--el-font-head); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.15; letter-spacing: -0.025em; color: var(--el-paper); max-width: 24ch; }
.el-statement .el-dim { color: #8FA3B3; }
.el-stats { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid rgba(252,251,249,.18); }
.el-stat-num { margin: 0; font-family: var(--el-font-head); font-weight: 600; font-size: 2rem; color: var(--el-paper); }
.el-stat-label { margin: 4px 0 0; font-size: .95rem; color: #8FA3B3; }

/* =====================================================================
   10) STIMMEN – horizontale Scroll-Strecke
   ===================================================================== */
.el-hscroll { position: relative; }
body.el-js .el-hscroll { height: 280vh; }
.el-hscroll__sticky { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
body.el-js .el-hscroll__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.el-hscroll__head { max-width: var(--el-maxw); width: 100%; box-sizing: border-box; margin-inline: auto; padding-inline: var(--el-pad-x); }
.el-htrack { display: flex; gap: clamp(16px, 2vw, 28px); padding: clamp(32px, 4vw, 52px) var(--el-pad-x) 12px; }
body.el-js .el-htrack { width: max-content; will-change: transform; }
body:not(.el-js) .el-htrack { overflow-x: auto; } /* Fallback ohne JS: normal seitlich wischen */

.el-quote-card {
  margin: 0; flex: 0 0 auto; width: min(460px, 76vw); box-sizing: border-box;
  background: #FFFFFF; border: 1px solid var(--el-line); border-radius: var(--el-radius);
  padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 22px;
}
.el-quote { margin: 0; font-family: var(--el-font-head); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--el-ink); letter-spacing: -0.01em; border: 0; padding: 0; }
.el-person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.el-person .wp-block-image, .el-person figure { margin: 0; }
.el-person img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.el-person-name { margin: 0; font-weight: 600; color: var(--el-ink); }
.el-person-role { margin: 0; font-size: .9rem; color: var(--el-muted); }

.el-quote-card--dark { background: var(--el-slate-deep); border-color: var(--el-slate-deep); justify-content: center; align-items: flex-start; gap: 18px; }
.el-quote-card--dark .el-quote, .el-quote-card--dark h3 { color: var(--el-paper); }
.el-quote-card--dark .el-text { color: rgba(252,251,249,.75); margin: 0; line-height: 1.55; }

/* =====================================================================
   11) JOBS (Kenjo) – Filter-Pills + gebrandete Plugin-Ausgabe
   ===================================================================== */
.el-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }

.rm-kenjo-careers { display: grid; gap: 0; border: 1px solid var(--el-line); border-radius: var(--el-radius-sm); background: #FFFFFF; overflow: hidden; }
.rm-kenjo-job { border: 0 !important; border-bottom: 1px solid var(--el-line) !important; border-radius: 0 !important; padding: 36px clamp(24px, 4vw, 44px) !important; background: #FFFFFF; overflow: hidden; transition: background .18s ease; }
.rm-kenjo-job:last-child { border-bottom: 0 !important; }
.rm-kenjo-job:hover { background: var(--el-paper-2); }
.rm-kenjo-job h2 { margin: 0 0 6px; font-family: var(--el-font-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.1; color: var(--el-ink); letter-spacing: -0.02em; }
.rm-kenjo-job__header p { color: var(--el-muted); font-weight: 500; }
.rm-kenjo-job__header .rm-kenjo-job__availability { font-weight: 600; color: var(--el-slate); }
.rm-kenjo-job__description { color: #4A555C; line-height: 1.6; max-width: 62ch; }

.rm-kenjo-button {
  border-radius: 999px !important;
  padding: 13px 28px;
  font-weight: 600 !important;
  transition: filter .15s ease;
}
.rm-kenjo-button:hover, .rm-kenjo-button:focus { filter: brightness(.9); }

.rm-kenjo-apply { border-top: 1px solid var(--el-line); }
.rm-kenjo-apply input, .rm-kenjo-apply select, .rm-kenjo-apply textarea { border: 1px solid #D5D2CB; border-radius: 12px; }
.rm-kenjo-apply input:focus, .rm-kenjo-apply select:focus, .rm-kenjo-apply textarea:focus { border-color: var(--el-slate); box-shadow: 0 0 0 3px rgba(76,97,114,.12); outline: none; }

/* =====================================================================
   12) FAQ (Details-Blöcke)
   ===================================================================== */
.el-faq { border-bottom: 1px solid var(--el-line); }
.el-faq details, .el-faq .wp-block-details { border-top: 1px solid var(--el-line); padding: 2px 4px; margin: 0; background: transparent; }
.el-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-weight: 600; font-size: 1.1rem; color: var(--el-ink); padding: 20px 0; }
.el-faq summary::-webkit-details-marker { display: none; }
.el-faq summary::after { content: "+"; color: var(--el-soft); font-size: 1.3rem; line-height: 1; }
.el-faq details[open] summary::after { content: "–"; }
.el-faq details p { margin: 0 0 22px; line-height: 1.65; color: #4A555C; max-width: 62ch; }

/* =====================================================================
   13) ABSCHLUSS-CTA & PERSONEN-KARTEN
   ===================================================================== */
.el-cta { background: var(--el-slate); color: var(--el-paper); }
.el-cta h2, .el-cta .el-title { color: var(--el-paper); }
.el-cta .el-lead { color: rgba(252,251,249,.8); }
.el-person-card { display: flex; align-items: center; gap: 16px; border: 1px solid rgba(252,251,249,.25); border-radius: 18px; padding: 16px 22px; }
.el-person-card .wp-block-image, .el-person-card figure { margin: 0; }
.el-person-card img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.el-person-card .el-person-name { color: var(--el-paper); }
.el-person-card .el-person-role { color: rgba(252,251,249,.7); }
.el-cta .el-note { color: rgba(252,251,249,.55); }

/* =====================================================================
   14) FIXE CTA-LEISTE (Pattern „CTA-Leiste“, JS blendet sie ein)
   ===================================================================== */
.el-ctabar {
  position: fixed; left: 50%; bottom: clamp(14px, 3vw, 24px); z-index: 999;
  display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 999px;
  background: rgba(35,43,47,.92); backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(35,43,47,.28);
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.el-ctabar.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
body:not(.el-js) .el-ctabar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } /* ohne JS immer sichtbar */
.el-ctabar .wp-block-buttons { display: flex; gap: 6px; flex-wrap: nowrap; }
.el-ctabar .el-btn-light .wp-block-button__link { padding: 13px 26px; font-size: 15.5px; white-space: nowrap; }
.el-ctabar .el-btn-bar-ghost .wp-block-button__link { background: transparent !important; color: var(--el-paper) !important; padding: 12px 20px; font-size: 15.5px; white-space: nowrap; }
.el-ctabar .el-btn-bar-ghost .wp-block-button__link:hover { color: #FFFFFF !important; }

/* =====================================================================
   15) GUTENBERG-FEINSCHLIFF
   ===================================================================== */
/* Generisches abgerundetes Medien-Element (Leitbild, Bereichs-Vorschau) */
.el-media { border-radius: var(--el-radius); overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.el-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bild-Block im Parallax-Wrapper füllt die Fläche */
.el-parallax .wp-block-image { margin: 0; height: 100%; }

/* Kursiv (em) als Akzent nutzbar – kein echtes Italic */
.el-title em { font-style: normal; color: var(--el-slate); }
.el-statement em { font-style: normal; color: #8FA3B3; }
.el-scrollfill strong { font-weight: inherit; } /* Pop-Wort erbt Schriftgewicht */

/* Bereichs-Zeile: Link erbt Farbe */
.el-dept-name a { color: inherit; text-decoration: none; }

/* Absatz-Abstände in kompakten Komponenten neutralisieren */
.el-person p, .el-person-card p, .el-path p, .el-chips p, .el-filters p, .el-dept-row p { margin-top: 0; margin-bottom: 0; }
.el-person .wp-block-group, .el-person-card .wp-block-group { display: block; }
.el-htrack .wp-block-image, .el-person .wp-block-image, .el-person-card .wp-block-image { margin: 0; flex: 0 0 auto; }

/* Buttons in der dunklen Zitat-Karte etwas kompakter */
.el-quote-card--dark .el-btn-light .wp-block-button__link { padding: 12px 24px; font-size: .95rem; }

/* Columns-Karten (Quereinstieg/Initiativ) */
.wp-block-column.el-card:hover { transform: none; }

/* Neve: volle Breite der Sektionen sicherstellen */
.elldus .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.elldus .nv-content-wrap > .alignfull:first-child { margin-top: 0; }

/* Karriere-Seiten (JS setzt body.el-karriere): Neve-Layout neutralisieren,
   damit die Seite exakt der Design-Vorschau entspricht – unabhängig von den
   Seiteneinstellungen (Container/Titel/Sidebar). */
.el-karriere .container,
.el-karriere .container-fluid { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.el-karriere .nv-content-wrap,
.el-karriere .nv-single-page-wrap,
.el-karriere .nv-index-posts { padding: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.el-karriere .nv-page-title,
.el-karriere h1.entry-title,
.el-karriere .nv-thumb-wrap,
.el-karriere .nv-tags-list { display: none !important; }
/* position:sticky darf von keinem Vorfahren beschnitten werden.
   WICHTIG: Neve legt overflow:hidden auf div.wrapper – das bricht sonst ALLE
   Sticky-Effekte (gepinnter Hero, Stimmen-Strecke, Bereichs-Vorschau). */
.el-karriere .wrapper,
.el-karriere .neve-main,
.el-karriere #content,
.el-karriere article,
.el-karriere .nv-content-wrap,
.el-karriere .nv-single-page-wrap,
.el-karriere .container,
.el-karriere .single-page-container { overflow: visible !important; }
/* Container ist jetzt full-width – vw-Hack zurücknehmen (verhindert auch Quer-Scrollbalken) */
.el-karriere .alignfull { margin-left: 0; margin-right: 0; width: 100%; max-width: 100%; }
.el-karriere { overflow-x: clip; }

/* Canvas-Vorlage „Karriere (Elldus)“: Inhalt liegt direkt in <main>, ohne Container */
.elldus-canvas { display: block; width: 100%; overflow: visible; }
.elldus-canvas > * { margin-block: 0; }
.elldus-canvas .alignfull { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: 100% !important; }

/* Legacy-Gruppen-Markup: Installationen OHNE theme.json (weder Parent noch Child)
   rendern in jede wp:group einen Wrapper .wp-block-group__inner-container. Der macht
   aus allen Grid-/Flex-Komponenten Einspalter, weil er das einzige Kind ist.
   Das Child-Theme liefert deshalb eine theme.json mit; dieses Sicherheitsnetz
   neutralisiert den Wrapper zusätzlich, falls er doch gerendert wird. */
.elldus .wp-block-group__inner-container { display: contents; }
.elldus :is(.el-head, .el-filters, .el-person, .el-person-card, .el-path, .el-chips,
  .el-stats, .el-htrack, .el-dept-row, .el-dept-grid, .el-dept-list, .el-bento,
  .el-card, .el-card__content, .el-quote-card, .el-scrollhero, .el-scrollhero__sticky,
  .el-hscroll__sticky, .el-sheet, .el-faq, .el-container, .el-section)
  > .wp-block-group__inner-container > * { margin-block-start: 0; }
.elldus .el-quote-card > .wp-block-group__inner-container > .el-person { margin-block-start: auto; }

/* Gutenberg-/theme.json-Auto-Abstände (is-layout-flow: margin-block-start auf Kindern)
   in unseren Flex-/Grid-Komponenten neutralisieren – sonst verschiebt sich die Anordnung. */
.elldus .el-head > *, .elldus .el-filters > *, .elldus .el-person > *, .elldus .el-person-card > *,
.elldus .el-path > *, .elldus .el-chips > *, .elldus .el-stats > *, .elldus .el-stats > * > *,
.elldus .el-htrack > *, .elldus .el-dept-row > *, .elldus .el-dept-grid > *, .elldus .el-dept-list > *,
.elldus .el-bento > *, .elldus .el-card > *, .elldus .el-card__content > *,
.elldus .el-quote-card > *, .elldus .el-scrollhero > *, .elldus .el-scrollhero__sticky > *,
.elldus .el-hscroll__sticky > *, .elldus .el-sheet > *, .elldus .el-faq > * { margin-block-start: 0; }
/* Ausnahmen wiederherstellen */
.elldus .el-quote-card > .el-person { margin-block-start: auto; }
.elldus .el-card__content > h3, .elldus .el-card > h3 { margin-top: 0; }
.elldus .el-scrollfill { margin-block-start: 0; }
.elldus .el-scroll-hint { margin-block-start: 48px; }
.elldus .el-eyebrow { margin-block-start: 0; }

/* =====================================================================
   16) RESPONSIVE
   ===================================================================== */
@media (max-width: 940px) {
  .el-bento { grid-template-columns: 1fr !important; }
  .el-span2 { grid-column: auto !important; }
  .el-dept-grid { grid-template-columns: 1fr !important; }
  .el-dept-preview { display: none !important; }
  .el-card--dark { min-height: 0; }
}

/* =====================================================================
   17) LAYOUT-HÄRTUNG – Nebeneinander-Anordnungen unumstößlich machen.
   Gewinnt gegen Neve, Global Styles, Optimierungs-Plugins & Ladereihenfolge.
   ===================================================================== */
.el-head { display: flex !important; align-items: flex-end !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 24px; }
.el-bento { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px !important; }
.el-span2 { grid-column: span 2; }
.el-dept-grid { display: grid !important; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: clamp(28px, 4vw, 72px) !important; align-items: start !important; }
.el-dept-row { display: flex !important; align-items: baseline !important; gap: 18px !important; }
.el-dept-note { margin-left: auto !important; }
.el-dept-thumb { display: none !important; }
.el-stats { display: flex !important; flex-wrap: wrap !important; gap: clamp(28px, 5vw, 72px) !important; }
.el-htrack { display: flex !important; gap: clamp(16px, 2vw, 28px) !important; }
.el-quote-card { display: flex !important; flex-direction: column !important; }
.el-person, .el-person-card { display: flex !important; align-items: center !important; flex-direction: row !important; gap: 14px !important; }
.el-person-card { gap: 16px !important; }
.el-path { display: flex !important; align-items: center !important; flex-wrap: wrap !important; gap: 12px !important; }
.el-chips { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.el-filters { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.el-scroll-hint { display: inline-flex !important; align-items: center !important; gap: 10px !important; }
.el-scrollhero__sticky { display: grid !important; position: sticky !important; top: 0 !important; }
.el-card--dark { display: flex !important; flex-direction: column !important; justify-content: flex-end !important; }
.el-card--feature { display: flex !important; align-items: flex-end !important; }
.el-ctabar { display: flex !important; align-items: center !important; }
.el-ctabar .wp-block-buttons { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; }

/* Fallback für wp:columns/wp:buttons, falls die Core-Block-Styles nicht geladen werden */
.elldus .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.elldus .wp-block-buttons > .wp-block-button { margin: 0; }
@media (min-width: 782px) {
  .elldus .wp-block-columns { display: flex !important; gap: 2em; align-items: inherit; }
  .elldus .wp-block-columns.are-vertically-aligned-center { align-items: center !important; }
  .elldus .wp-block-column { flex: 1 1 0 !important; min-width: 0; margin: 0; }
}
@media (max-width: 781px) {
  .elldus .wp-block-columns { display: flex !important; flex-wrap: wrap !important; gap: 24px; }
  .elldus .wp-block-column { flex-basis: 100% !important; min-width: 0; margin: 0; }
}

/* Mobile-Verhalten der Härtung (wiederholt, damit es NACH den !important-Regeln greift) */
@media (max-width: 940px) {
  .el-bento { grid-template-columns: 1fr !important; }
  .el-span2 { grid-column: auto !important; }
  .el-dept-grid { grid-template-columns: 1fr !important; }
  .el-dept-preview { display: none !important; }
}

/* =====================================================================
   18) MOBILE-FEINSCHLIFF (schmale Viewports)
   ===================================================================== */
/* Stabile Pins auf Mobilgeräten: svh ignoriert die ein-/ausblendende
   Browser-Adressleiste (iOS/Android) – 100vh bleibt als Fallback stehen. */
.el-scrollhero__sticky { min-height: 100vh; min-height: 100svh; }
body.el-js .el-hscroll__sticky { height: 100vh; height: 100svh; }

@media (max-width: 640px) {
  /* Bereichs-Liste: Notiz („Küche, Service & Bar →“) passt nicht neben den
     Namen – in die zweite Zeile, bündig mit dem Namen, ohne Abschneiden. */
  .el-dept-row { flex-wrap: wrap !important; row-gap: 2px; padding: 18px 0; }
  .el-dept-note { flex-basis: 100%; margin-left: 50px !important; white-space: normal; }

  /* Kompaktere Sektions-Innenabstände auf kleinen Screens */
  .el-card, .el-card--feature .el-card__content, .el-quote-card { padding: 22px; }
  .el-card--feature, .el-card--dark { min-height: 280px; }
}

/* Fixe CTA-Leiste: auf schmalen Screens volle Breite mit Rand statt
   zentrierter Pille (sonst ragt sie aus dem Viewport). */
@media (max-width: 520px) {
  .el-ctabar {
    left: 12px; right: 12px; bottom: 12px;
    transform: translateY(18px);
    justify-content: center;
  }
  .el-ctabar.is-shown, body:not(.el-js) .el-ctabar { transform: translateY(0); }
  .el-ctabar .wp-block-buttons { width: 100%; justify-content: center; }
  .el-ctabar .el-btn-light .wp-block-button__link { padding: 12px 16px; font-size: 14px; }
  .el-ctabar .el-btn-bar-ghost .wp-block-button__link { padding: 12px 12px; font-size: 14px; }
}
