/* ============================================================
   styles_LB2.css
   ------------------------------------------------------------
   Projekt: Bedachung – Recruiting / Jobs-Seite
   Gilt NUR für: bed_jobs.php

   Zweck:
   - Job-Buttons Layout
   - Grauer Info-Block
   - Icon-Slider Styling
   - Mobile Anpassungen
   ------------------------------------------------------------
   WICHTIG:
   Diese Datei enthält ausschließlich Overrides und Ergänzungen.
   Das Basis-Layout kommt aus build.css.
   ============================================================ */



/* ============================================================
   1) JOB BUTTONS (Couch Jobs)
   ============================================================ */

/* Falls irgendwo Multi-Column aktiv → immer 1 Spalte erzwingen */
.jobs-list-wrap .twocolumn {
  column-count: 1 !important;
}

/* Job-Container immer volle Breite */
.jobs-list-wrap .col-32 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  float: none !important;
}

/* ---------- Button Grundlayout ---------- */

.job-button {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.175);
  position: relative;
  transition: all .3s ease;
}

/* Hover-Farbe = Firmen-Gelb */
.job-button:hover {
  background: #ffac27;
}

/* Inhalt des Buttons */
.job-button-inner {
  height: 90px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Titel links, CTA rechts */
}

/* Jobtitel aus Couch */
.job-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
}

/* HARTE Worttrennung für sehr lange Jobtitel */
.job-title {
  hyphens: auto;
}

/* Entfernt unerwünschte Margins aus Richtext */
.job-title p {
  margin: 0 !important;
}

/* Unterer Balken */
.job-button-bar {
  height: 12px;
  width: 100%;
  background: rgba(0,0,0,0.5);
}


/* ---------- Desktop Breiten-Anpassung ---------- */
@media (min-width: 992px) {
  .jobs-list .col-32.mb-4 {
    flex: 0 0 auto !important;
    width: 70% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}



/* ============================================================
   2) JOB BUTTON CTA ("JETZT BEWERBEN")
   ============================================================ */

.job-cta {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

/* Auf Mobile CTA ausblenden */
@media (max-width: 768px) {
  .job-cta {
    display: none;
  }
}



/* ============================================================
   3) HEADLINES / DIVIDER / BREAKS
   ============================================================ */

.jobs-page h2 {
  text-align: center;
}

/* Standard Divider unter H2 */
.jobs-page h2::after {
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
}

/* Desktop Linebreak Helper */
.desktop-break {
  display: block;
}

@media (max-width: 768px) {
  .desktop-break {
    display: none;
  }
}

/* Mobile Linebreak Helper */
.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}



/* ============================================================
   4) INFO BLOCK (Grauer Bereich)
   ============================================================ */

.jobs-info-block {
  position: relative;
  padding: 50px 0 60px;
  margin-top: 27px;
  margin-bottom: 60px;
}

/* Fullwidth Hintergrund ohne Layoutbruch */
.jobs-info-block::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #e6e6e6;
  z-index: -1;
}

/* Headline */
.info-headline {
  text-transform: uppercase;
  text-align: center;
}

/* Divider identisch zum Hauptdesign */
.info-headline::after {
  content: "";
  display: block;
  width: 5rem;
  border-bottom: 10px solid #ffac27;
  margin: 1.5rem auto;
}

/* Info-Text */
.info-text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Anpassung: gleiche Breite wie oberer Textbereich */
.jobs-info-inner .info-text,
.jobs-info-inner .info-headline {
  max-width: none !important;
}



/* ============================================================
   5) ICON SLIDER (Couch gesteuert)
   ============================================================ */

.icon-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navigation Pfeile */
.icon-nav {
  border: none;
  background: none;
  font-size: 34px;
  font-weight: 800;
  color: #000;
  cursor: pointer;
  line-height: 1;
}

/* Viewport */
.icon-slider {
  overflow: hidden;
  width: 100%;
  max-width: 1160px;
}

/* Track */
.icon-track {
  display: flex;
  gap: 40px;
  transition: transform .6s ease;
  will-change: transform;
}

/* Icon Items */
.icon-item {
  flex: 0 0 200px;
  width: 200px;
}

.icon-item img {
  width: 200px;
  height: auto;
  display: block;
  cursor: default;
}

/* Wichtig: keine CSS-Filter → Farbwechsel erfolgt per JS */
.icon-item img.icon-img {
  filter: none !important;
}

/* ============================================================
   6) MOBILE OPTIMIERUNGEN
   ============================================================ */

@media (max-width: 768px) {

  /* Mehr Seitenabstand für Info-Text */
  .jobs-info-block .col-30 {
    padding-left: 40px;
    padding-right: 40px;
  }

  .jobs-info-block .info-text,
  .jobs-info-block .info-headline {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Slider: nur 1 Icon sichtbar */
  .icon-slider-wrap {
    gap: 12px;
    max-width: 100%;
    padding: 0;
  }

  .icon-slider {
    max-width: 200px;
    width: 200px;
  }

  .icon-track {
    gap: 0;
  }

  .icon-item {
    flex: 0 0 200px;
  }

  .icon-item img {
    cursor: pointer;
  }

  .icon-nav {
    font-size: 32px;
  }
}
