/* ══════════════════════════════════════════════
   JOBPORTALE UNTERSEITE – Eigene Styles
   Fira Sans, Orange-Farbgebung (#f59e0b / #e08e00)
   ══════════════════════════════════════════════ */

/* ── Variablen ── */
.jp-hero,
.jp-usp-bar,
.jp-intro,
.jp-azubi,
.jp-produkte,
.jp-portale,
.jp-prozess,
.jp-cta-final {
  --jp-orange: #f59e0b;
  --jp-orange-dark: #e08e00;
  --jp-orange-light: #fef3c7;
  --jp-dark: #1a1a2e;
  font-family: 'Fira Sans', 'Inter', Arial, sans-serif;
}

/* Hero-Container linksbündig, volle Breite (bündig mit USP-Leiste) */
.jp-hero .container {
  max-width: 1200px;
  width: 100%;
  text-align: left;
}
.jp-hero .page-hero__sub {
  max-width: none;
}

.jp-badge {
  background: var(--jp-orange) !important;
  color: var(--jp-dark) !important;
  font-weight: 600;
  border: none !important;
}

.jp-hero .page-hero__title .text-orange {
  color: var(--jp-orange);
}

/* ── Buttons Orange ── */
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--jp-orange);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius, 8px);
  border: 2px solid var(--jp-orange);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.btn-orange:hover {
  background: var(--jp-orange-dark);
  border-color: var(--jp-orange-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-outline-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--jp-orange);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius, 8px);
  border: 2px solid var(--jp-orange);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline-orange:hover {
  background: var(--jp-orange);
  color: #fff;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius, 8px);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ── Section Labels Orange ── */
.jp-label {
  color: var(--jp-orange) !important;
}

/* ── USP Bar Orange ── */
.jp-usp-bar {
  background: var(--jp-orange) !important;
  padding: 24px 0;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.jp-usp-bar .om-usp-bar__item svg {
  stroke: #fff !important;
  color: #fff !important;
}
.jp-usp-bar .om-usp-bar__item strong {
  color: #fff !important;
}
.jp-usp-bar .om-usp-bar__item span {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Intro Stats Orange ── */
.jp-stat-card .stat-number {
  color: var(--jp-orange) !important;
}
.jp-stat-card,
.om-intro__stat-card.jp-stat-card {
  border-top: 3px solid var(--jp-orange) !important;
}

/* ── Azubiportal Sektion ── */
.jp-azubi {
  padding: 100px 0 0 0;
  background-color: #eaf1f8;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
}
.jp-azubi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.jp-azubi__image {
  position: relative;
  align-self: end;
}
.jp-azubi__image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  vertical-align: bottom;
}
.jp-azubi__text {
  padding-bottom: 100px;
}
.jp-azubi__text .section-label {
  margin-bottom: 12px;
}
.jp-azubi__text h2 {
  color: var(--jp-dark);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.jp-azubi__text p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.jp-azubi__ctas {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Azubi Buttons (azubiportal24.de Style) */
.btn-azubi {
  display: inline-block;
  background: #ff5f5f;
  color: #fff !important;
  border: 2px solid #ff5f5f;
  border-radius: 5px;
  padding: 10px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: -4px 4px 0 0 #be3737;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-azubi:hover {
  background: #e54545;
  border-color: #e54545;
  box-shadow: -2px 2px 0 0 #be3737;
  transform: translate(-2px, 2px);
  color: #fff !important;
}
.btn-azubi--outline {
  background: transparent;
  color: #ff5f5f !important;
  box-shadow: -4px 4px 0 0 rgba(190, 55, 55, 0.3);
}
.btn-azubi--outline:hover {
  background: #ff5f5f;
  color: #fff !important;
  box-shadow: -2px 2px 0 0 #be3737;
}

/* ── Produkte Grid ── */
.jp-produkte {
  padding: 100px 0;
  background: var(--gray-light, #f5f5f7);
}

.jp-produkte__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* ── Produkt Card ── */
.jp-produkt-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.jp-produkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--jp-orange);
}

.jp-produkt-card--highlight {
  border: 2px solid var(--jp-orange);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 40%);
}

.jp-produkt-card__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--jp-orange);
  color: var(--jp-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Produktbild (optional, über dem Icon) ── */
.jp-produkt-card__image {
  width: calc(100% + 56px);
  height: 260px;
  margin: -36px -28px 20px -28px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.jp-produkt-card--highlight .jp-produkt-card__image {
  margin: -36px -28px 20px -28px;
}
.jp-produkt-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jp-produkt-card.has-image .jp-produkt-card__badge {
  top: 248px;
  z-index: 2;
}

.jp-produkt-card__icon {
  width: 48px;
  height: 48px;
  background: var(--jp-orange-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.jp-produkt-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--jp-orange);
}

.jp-produkt-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--jp-dark);
  margin-bottom: 8px;
}

.jp-produkt-card__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
  font-weight: 500;
}

.jp-produkt-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.jp-produkt-card__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}
.jp-produkt-card__features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--jp-orange);
  font-weight: 700;
}

.jp-produkt-card .btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

/* ── Portale Grid ── */
.jp-portale {
  padding: 100px 0;
}

.jp-portale__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ── Portale Kacheln mit modernem 3D-Klick-Effekt ── */
.jp-portal-card {
  background: #ffffff !important;
  border-radius: 16px;
  padding: 32px 24px;
  /* Feine Kontur + leicht abgesetzter Bodenschatten für den initialen 3D-Stand */
  border: 1px solid rgba(22, 25, 34, 0.06) !important;
  border-top: 2px solid rgba(255, 255, 255, 0.9) !important; /* Subtile Lichtkante oben */
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  
  /* Kombinierter Schatten: Raumtiefe + satter Unterboden-Schatten */
  box-shadow: 
    0 2px 4px rgba(22, 25, 34, 0.02),
    0 4px 12px rgba(22, 25, 34, 0.04),
    0 1px 0px rgba(22, 25, 34, 0.08); /* Physische Unterkante */
    
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Hover: Karte hebt sich elegant an, Schatten wandert mit nach unten */
.jp-portal-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--jp-orange) !important;
  background: #ffffff !important;
  box-shadow: 
    0 12px 24px rgba(22, 25, 34, 0.06), 
    0 20px 40px rgba(245, 158, 11, 0.12) !important; /* Softes orangefarbenes Glühen */
}

/* Klick-Zustand (Active): Karte drückt sich physisch rein – absoluter Klick-Beweis! */
.jp-portal-card:active {
  transform: translateY(-1px) !important; /* Fast ganz runtergedrückt */
  box-shadow: 
    0 2px 6px rgba(22, 25, 34, 0.04),
    0 4px 8px rgba(22, 25, 34, 0.02) !important;
  transition: all 0.08s ease !important; /* Blitzschnelle Reaktion beim Klick */
}

.jp-portal-card img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* Kleiner Bonus: Das Logo skaliert beim Hover minimal mit */
.jp-portal-card:hover img {
  transform: scale(1.03);
}

.jp-portal-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--jp-dark);
  margin-bottom: 4px;
}

.jp-portal-card p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* ── Prozess (heller Hintergrund wie Screenshot) ── */
.jp-prozess {
  background: #f5f5f5 !important;
  padding: 100px 0;
}
.jp-prozess .section-header--light h2 {
  color: var(--jp-dark);
}
.jp-prozess .section-header--light .section-label {
  color: var(--jp-orange);
}
.jp-step-num {
  color: var(--jp-orange) !important;
  border-color: var(--jp-orange) !important;
}
.jp-prozess .om-prozess__step h3 {
  color: var(--jp-dark);
}
.jp-prozess .om-prozess__step p {
  color: #555;
}
.jp-prozess .om-prozess__arrow {
  font-size: 2.6rem;
  color: var(--jp-orange);
}

/* ── CTA Final Orange ── */
.jp-cta-final {
  background: linear-gradient(135deg, var(--jp-dark) 0%, #2d2d4e 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.jp-cta-final .om-cta-final__inner h2 {
  color: #fff;
}
.jp-cta-final .om-cta-final__inner p {
  color: rgba(255,255,255,0.7);
}

/* ── CTA Hintergrundvideo ── */
.jp-cta-final__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}
.jp-cta-final__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(45, 45, 78, 0.80) 100%);
  z-index: 1;
}
.jp-cta-final.has-video .om-cta-final__inner {
  position: relative;
  z-index: 2;
}

/* ── Intro Orange ── */
.jp-intro {
  padding: 100px 0;
}
.jp-intro h2 {
  color: var(--jp-dark);
}

/* ── Interaktive Regionenkarte ── */
.jp-regionenkarte {
  --jp-orange: #f59e0b;
  --jp-orange-dark: #e08e00;
  --jp-dark: #1a1a2e;
  font-family: 'Fira Sans', 'Inter', Arial, sans-serif;
  padding: 80px 0;
  background: #fff;
}
.jp-regionenkarte .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.jp-regionenkarte__text {
  padding-right: 20px;
}
/* Headline h2/h3 – nutzt Theme-Klassen .jobs-hero-text h2 .anim-word
   und .anim-subtitle aus main.css (orange Strich, maskInUp etc.).
   Hier nur Feintuning, das über die Theme-Regeln hinausgeht. */
.jp-regionenkarte .jobs-hero-text h2 em {
  color: var(--jp-orange);
}
.jp-regionenkarte .jobs-hero-text h2 {
  border-left-color: var(--jp-orange);
}
.jp-regionenkarte__text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
}

/* Karten-Container */
.jp-regionenkarte__map {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.jp-map-container {
  position: relative;
  width: 100%;
  cursor: default;
}
.jp-map-base {
  width: 100%;
  height: auto;
  display: block;
}
.jp-map-region {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: filter 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.jp-map-region.active {
  opacity: 1;
  filter: brightness(1.4);
}

/* SVG Hit-Areas */
.jp-map-hitarea {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.jp-map-hitarea a {
  cursor: pointer;
}
.jp-map-hitarea a path {
  fill: transparent;
  stroke: none;
  pointer-events: all;
  cursor: pointer;
  transition: fill 0.3s ease;
}
.jp-map-hitarea a:hover path {
  fill: rgba(255,255,255,0.15);
}

/* Tooltips */
.jp-map-tooltip {
  position: absolute;
  padding: 8px 16px;
  background: var(--jp-dark);
  color: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
  transform: translateX(-50%);
}
.jp-map-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--jp-dark);
}
.jp-map-tooltip.visible {
  opacity: 1;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .jp-produkte__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .jp-azubi__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .jp-azubi__image {
    order: -1;
  }
  .jp-azubi__image img {
    max-width: 380px;
  }
  .jp-azubi__ctas {
    justify-content: center;
  }
  .jp-regionenkarte .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .jp-regionenkarte__text {
    padding-right: 0;
    text-align: center;
  }
  .jp-regionenkarte .jobs-hero-text h2 {
    border-left: none;
    padding-left: 0;
  }
  .jp-regionenkarte .jobs-hero-text h3.anim-subtitle {
    text-align: center;
  }
  .jp-azubi__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .jp-azubi__text {
    padding-bottom: 60px;
    text-align: center;
  }
  .jp-azubi__ctas {
    justify-content: center;
  }
  .jp-regionenkarte__map {
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .jp-produkte__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .jp-portale__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .jp-hero,
  .jp-usp-bar,
  .jp-intro,
  .jp-produkte,
  .jp-portale,
  .jp-prozess,
  .jp-cta-final,
  .jp-regionenkarte,
  .jp-azubi {
    padding: 60px 0;
  }
  .jp-produkte {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .jp-portale__grid {
    grid-template-columns: 1fr;
  }
  .jp-produkt-card {
    padding: 28px 20px;
  }
  .jp-produkt-card__image {
    width: calc(100% + 40px);
    margin: -28px -20px 16px -20px;
    height: 200px;
  }
  .jp-produkt-card.has-image .jp-produkt-card__badge {
    top: 188px;
  }
  .jp-regionenkarte .jobs-hero-text h2 {
    font-size: clamp(32px, 9vw, 52px);
  }
  .jp-regionenkarte__map {
    max-width: 320px;
  }
}

/* ==========================================================================
   ── JOBPORTALE REBRANDING: JP-USP-BAR (Hellgrau + Orange Top-Border) ──
   ========================================================================== */

/* Die umschließende Leiste auf das neue Hellgrau mit oranger Oberkante setzen */
.jp-usp-bar {
    background: #f5f5f7 !important; /* Unser sauberes Portal-Hellgrau */
    border-top: 3px solid #FAA431 !important; /* Job-Orange als dominanter CI-Balken */
    border-bottom: 1px solid rgba(22, 25, 34, 0.05) !important;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(22, 25, 34, 0.06) !important;
}

/* Das innere Grid sauber aufbauen */
.jp-usp-bar .om-usp-bar__grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Die einzelnen Items ausrichten und Trennlinien einziehen */
.jp-usp-bar .om-usp-bar__item {
    background: transparent !important;
    border-right: 1px solid rgba(22, 25, 34, 0.08) !important;
    padding: 36px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Das letzte Item rechts braucht keine Trennlinie */
.jp-usp-bar .om-usp-bar__item:last-child {
    border-right: none !important;
}

/* Beim Drüberfahren eine ganz dezent dunklere Nuance erzeugen */
.jp-usp-bar .om-usp-bar__item:hover {
    background: rgba(22, 25, 34, 0.02) !important;
}

/* Vektor-Icons einheitlich dunkel skalieren */
.jp-usp-bar .om-usp-bar__item svg {
    width: 32px !important;
    height: 32px !important;
    color: #161922 !important; /* var(--dark) */
    display: block !important;
    margin: 0 auto 4px !important;
}

/* Große, schlanke Zahlen (36px, Regular, OVB-Dunkel) */
.jp-usp-bar .om-usp-bar__item strong {
    display: block !important;
    font-family: 'Ropa Sans', 'Inter', Arial, sans-serif !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    color: #161922 !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

/* Kleine Labels darunter */
.jp-usp-bar .om-usp-bar__item span {
    display: block !important;
    font-family: 'Ropa Sans', 'Inter', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #626262 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

/* Mobil-Optimierung (schaltet auf Tablet auf 2 Spalten) */
@media (max-width: 1024px) {
    .jp-usp-bar .om-usp-bar__grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

/* ==========================================================================
   ── JOBPORTALE FINETUNING: ICONS & UNIFIED HERO SPECIFICATIONS ──
   ========================================================================== */

/* 1. ICON STROKE CORRECTION: Konturen der SVGs in das knackige OVB-Schwarz zwingen */
.jp-usp-bar .om-usp-bar__item svg {
    stroke: #161922 !important; /* Verhindert den rötlichen/gelben Rand */
    fill: none !important; /* Verhindert ungewollte weiße oder farbige Füllungen */
}

/* 2. HERO STRUCTURE MATCH: Mindesthöhe & einheitliche Abstände erzwingen */
.jobs-hero,
.jp-hero {
    position: relative !important;
    min-height: 580px !important; /* Von 520px auf die einheitlichen 580px angehoben */
    display: flex !important;
    align-items: center !important;
    padding: 120px 0 80px !important;
    overflow: hidden !important;
}

/* 3. DUNKLES CI-OVERLAY: Das orange-stichige Overlay restlos durch das edle bläuliche Dunkel ersetzen */
.jobs-hero-overlay,
.page-hero__overlay--orange {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(18, 22, 38, 0.42) !important; /* Exakter Farbcode der anderen Master-Seiten */
    z-index: 1 !important;
}

/* Zwingt den Content, sich sauber über das neue dunkle Overlay zu legen */
.jobs-hero-content,
.jp-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

/* ==========================================================================
   ── JOBPORTALE HERO OUTLINE BUTTON ("Alle Produkte entdecken") ──
   ========================================================================== */

/* Normalzustand: Clean in Weiß */
.jobs-hero .btn.btn-outline-dark,
.jobs-hero .btn-outline-dark,
.jp-hero .btn.btn-outline-dark,
.jp-hero .btn-outline-dark {
    background: transparent !important;
    color: #ffffff !important;           /* Weißer Text */
    border: 2px solid #ffffff !important; /* Weiße Border */
    transition: all 0.3s ease !important;
}

/* Hover-Zustand: Wechselt auf Job-Orange */
.jobs-hero .btn.btn-outline-dark:hover,
.jobs-hero .btn-outline-dark:hover,
.jp-hero .btn.btn-outline-dark:hover,
.jp-hero .btn-outline-dark:hover {
    background: #FAA431 !important;     /* Dein dominantes Job-Orange */
    border-color: #FAA431 !important;   /* Rand färbt sich mit */
    color: #ffffff !important;           /* Weißer Text bleibt für perfekten Kontrast */
    box-shadow: 0 8px 24px rgba(250, 164, 49, 0.35) !important; /* Soft-oranger Glüheffekt */
    transform: translateY(-2px) !important;
}