/*
Theme Name:     Jobhunt Child
Theme URI:      https://themeforest.net/item/jobhunt-job-board-wordpress-theme-for-wp-job-manager/22563674
Author:         MadrasThemes
Author URI:     https://madrasthemes.com/
Description:    This is the child theme for the jobhunt theme
Template:       jobhunt
Version:        2.1.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    jobhunt-child
Tags:           e-commerce, two-columns, left-sidebar, right-sidebar, custom-colors, custom-menu, featured-images, full-width-template, threaded-comments, rtl-language-support, footer-widgets, sticky-post, theme-options
*/

.job-manager-info .job-manager-button-submit-listing {
    background-color: #522033 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

.job-manager-info .job-manager-button-submit-listing:hover {
    background-color: #76304d !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ✅ AGB + Datenschutz Links Styling */
.job-manager-form .fieldset-terms a {
    color: #522033 !important;
    text-decoration: underline;
    font-weight: 600;
}

.job-manager-form .fieldset-terms a:hover {
    color: #76304d !important; /* dunklerer Ton deiner Brand */
    text-decoration: underline;
}

/* ✅ Checkbox + Text perfekt ausgerichtet */
.job-manager-form .fieldset-terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.job-manager-form .fieldset-terms input[type="checkbox"] {
    margin-top: 4px;
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: #522033;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
	top: -4px;   /* ➜ Hebt das Icon optisch an */
    line-height: 1;
}

.info-icon:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    top: 26px;
    left: 0;
    background: #ffffff;
    color: #333333;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
    z-index: 100;
}

.info-icon:hover:before {
    content: "";
    position: absolute;
    top: 20px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
    z-index: 99;
}

/* Beide Links im AGB + Datenschutz-Hinweis gleich stylen */
.fieldset-agreement-checkbox label a,
label[for="agreement-checkbox"] a,
label[for="job_manager_terms"] a {
    color: #522033 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    font-size: 1.1em !important;  /* gleiche Schriftgröße */
    line-height: 1.4 !important;
}

/* ================================
   JB Search Split – TEMP CSS
   ================================ */

.jbss {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px;

  height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 120px);
}


.jbss-left {
  border-right: 1px solid #eee;
  padding-right: 12px;

  /* Scrollbar nur links */
  overflow-y: auto;
}

.jbss-right {
  overflow-y: auto;
	min-height: 400px;
	position: relative; /* wichtig */
}

.jbss-list {
  display: flex;
  flex-direction: column;
	gap: 2px; /* 🔥 NEU: kontrollierter Abstand */
}

.jbss-card {
  display: block;
  padding: 12px;
  border: 1px solid #e5e5e5;
  margin-bottom: 0px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease, border-color .15s ease;
}

.jbss-card:hover {
  background: #fafafa;
}

/* Titel + Meta beim Hover färben */
.jbss-card:hover .jbss-card-title,
.jbss-card:hover .jbss-card-meta {
  color: #7E0E33;
}

/* sanfter Übergang */
.jbss-card-title,
.jbss-card-meta {
  transition: color 0.15s ease;
}


.jbss-card.is-active {
  border-color: #7b2d3a;
  background: #faf6f7;
}

.jbss-card-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.jbss-card-meta {
  font-size: 13px;
  color: #666;
}

.jbss-card-tags {
  margin-top: 6px;
  font-size: 12px;
}

.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eee;
}

.tag.featured {
  background: #7b2d3a;
  color: #fff;
}

.tag.remote {
  background: #3b82f6;
  color: #fff;
}

.jbss-right.is-loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.jbss-right.is-loading::after {
  content: 'Lade Job…';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 13px;
  color: #666;
}

.jbss .jbss-load-more {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #522033;
  background-color: #522033;
  color: #fff;

  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
	
  transition: background 0.15s ease, opacity 0.15s ease;
}

.jbss .jbss-load-more:hover:not(:disabled) {
  background-color: #7E0E33;
}

.jbss .jbss-load-more:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ================================
   JBSS – Detail Header (FINAL)
   ================================ */

.jbss-detail-header {
  position: relative;
  top: 0;
  z-index: 20;
	width: 100%;	

  /* ⬇️ HIER ggf. URL anpassen */
  background-image: url('/wp-content/uploads/2025/10/JOBBEAST_Evolution_der_Jobboerse.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 24px 28px;
  border-radius: 16px;
}

/* Nur der Button sticky */
.jbss-cta-sticky {
  position: sticky;
  top: 24px;              /* Abstand vom oberen Rand */
  z-index: 50;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.jbss-apply-btn {
  transition: transform .2s ease, box-shadow .2s ease;
}

.jbss,
.jbss-detail-header,
.jbss-detail-header-inner {
  overflow: visible !important;
}

.jbss-cta-sticky {
  position: sticky;
  top: 24px;              /* Abstand oben im rechten Panel */
  z-index: 50;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Alles im Header → weiß */
.jbss-detail-header,
.jbss-detail-header * {
  color: #fff !important;
}

.jbss-detail-header{
  margin-bottom: 18px;
}

.jbss-detail-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px 32px;
  align-items: start;
}

.jbss-detail-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.jbss-detail-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
	padding-right: 32px; /* 👈 Logo nach links */

  /* darf NICHT hidden sein */
  overflow: visible;
}

/* NUR der Button sticky */
.jbss-apply-btn--sticky {
  position: sticky;
  top: 32px;        /* Abstand zum Viewport-Top */
  z-index: 50;
}

/* Titel */
.jbss-detail-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

/* Meta-Zeile */
.jbss-detail-tags {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 6px;
}

.jbss-detail-cta {
  display: contents;
}

/* Echter Button */
.jbss-apply-btn {
  width: 180px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #7E0E33;
  color: #fff !important;

  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.jbss-apply-btn:hover {
  background: #522033;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}

/* Abstand Content */
.jbss-detail-content {
  padding: 28px 10px;
}

/* ================================
   JBSS – Header Badges
   ================================ */

.jbss-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.jbss-badge {
  max-width: 100%;
  white-space: nowrap;
}

.jbss-badge {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);

  color: #fff;
  white-space: nowrap;
}

.jbss-badge.is-remote {
  background: rgba(59,130,246,0.85);
}

/* eigener Sticky-Kontext */
.jbss-sticky-cta {
  position: sticky;
  top: 60px;
  z-index: 60;

  width: 260px;
  margin-left: auto;
  margin-top: -90px; /* optisch unter dem Logo */
transform: translateX(48px);

}

/* Sicherheit: nichts blockiert sticky */
.jbss,
.jbss-detail-header,
.jbss-detail-header-inner {
  overflow: visible;
}
/* =========================================
   JBSS – Finaler Header Shrink (DESKTOP)
   ========================================= */
@media (min-width: 1024px) {

  /* =========================
     HEADER – Basis
     ========================= */

  .jbss-detail-header {
    position: sticky;
    top: 0;
    z-index: 40;

    padding: 28px 32px;
    transition: padding .25s ease;
  }

  .jbss.is-scrolled .jbss-detail-header {
    padding: 14px 32px;
    backdrop-filter: blur(8px);
  }

  /* =========================
     HEADER GRID
     ========================= */

  .jbss-detail-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 32px;
    row-gap: 14px;
    transition: row-gap .25s ease;
  }

  .jbss.is-scrolled .jbss-detail-header-inner {
    row-gap: 6px;
  }

  /* =========================
     LINKER BEREICH
     ========================= */

  .jbss-detail-left {
    transform-origin: top left;
    transition: transform .25s ease;
  }

  .jbss.is-scrolled .jbss-detail-left {
    transform: scale(0.88);
  }

  /* Titel */
  .jbss-detail-title {
    font-size: 26px;
    line-height: 1.25;
    transition: font-size .25s ease, line-height .25s ease;
  }

  .jbss.is-scrolled .jbss-detail-title {
    font-size: 20px;
    line-height: 1.2;
  }

  /* Meta */
  .jbss-detail-meta {
    margin-top: 4px;
    opacity: 1;
    transition: margin .25s ease, opacity .25s ease;
  }

  .jbss.is-scrolled .jbss-detail-meta {
    margin-top: 2px;
    opacity: 0.75;
  }

  /* Badges */
  .jbss-detail-badges {
    margin-top: 8px;
    max-height: 120px;
    overflow: hidden;
    transition: margin .25s ease, opacity .25s ease, max-height .25s ease;
  }

  .jbss.is-scrolled .jbss-detail-badges {
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    pointer-events: none;
  }

  /* =========================
     🔥 RECHTER BEREICH – FIX
     ========================= */

  .jbss-detail-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  /* IM SCROLL-ZUSTAND AUS DEM GRID LÖSEN */
  .jbss.is-scrolled .jbss-detail-right {
    position: absolute;
    right: 32px;
    bottom: 12px;

    gap: 6px;              /* 👈 exakter Abstand Logo ↔ Button */
  }

  /* =========================
     LOGO
     ========================= */

  .jbss-detail-logo {
    transform-origin: center;
    transition: transform .25s ease;
  }

  .jbss.is-scrolled .jbss-detail-logo {
    transform: scale(0.6);
  }

  /* =========================
     CTA
     ========================= */

  .jbss-apply-btn {
    width: 180px;
    height: 56px;
    flex-shrink: 0;
  }
}


/* ================================
   Job Detail – Company Logo (clean circle)
   ================================ */
.jbss-detail-logo {
  width: 120px;
  height: 120px;

	background: #fff; 
	border-radius: 50%; 
	border: 0.1px solid rgba(255,255,255,0.45);
	
  padding: 4px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
}

.jbss-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ⬅️ LOGOS ≠ Profilfotos */
  border-radius: 50%;
  background: #fff;
}



/* ================================
   JBSS – Card Layout mit Logo
   ================================ */

.jbss-card-inner {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  align-items: center; /* 🔥 DAS ist der Schlüssel */
}

/* Logo-Container */
/* Job Card – Logo rund */
.jbss-card-logo {
  width: 44px;
  height: 44px;

  border-radius: 50%;          /* ← rund */
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.jbss-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Logo selbst */
.jbss-card-logo img {
  max-width: 50px;
  max-height: 50px;
  border-radius: 50%;          /* ← wichtig für PNGs */
  object-fit: contain;
}

/* 🔥 WICHTIG: Abstand der Karten wirklich kontrollieren */
.jbss-job-card {
  margin: 0 !important;
	margin-bottom: 8px !important;
}

/* ================================
   Job Detail – Job Banner
   ================================ */

.jbss-job-banner {
  margin: 32px 0 48px;      /* Luft nach Header, Luft vor Content */
  border-radius: 20px;
  overflow: hidden;

  background: #000;        /* Fallback beim Laden */
}

.jbss-job-banner img {
  display: block;
  width: 100%;
  height: auto;

  object-fit: cover;
}



@media (max-width: 768px) {
  .jbss-job-banner {
    margin: 24px 0 32px;
    border-radius: 14px;
  }
}

/* ================================
   Job Detail – Company Video
   ================================ */

.jbss-company-video {
  margin: 48px 0;
}

.jbss-company-video h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.jbss-video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.jbss-video-wrapper iframe,
.jbss-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ================================
   JBSS – Header Meta (Ort + Firma)
   ================================ */

.jbss-detail-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 15px;
  opacity: 0.95;
}

.jbss-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.jbss-meta-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.9;
}

/* ================================
   FINAL FIX: Right column always top-right
   (paste at VERY END of your CSS)
   ================================ */

.jbss-detail-header-inner{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 260px !important; /* links flexibel, rechts fix */
  grid-auto-rows: min-content !important;               /* keine "stretch"-Zeilen */
  align-items: start !important;
  gap: 24px 32px !important;
}

.jbss-detail-left{
  grid-column: 1 / 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}

.jbss-detail-right{
  grid-column: 2 / 3 !important;
  grid-row: 1 !important;            /* <-- bleibt immer oben */
  align-self: start !important;       /* <-- oben im Grid-Feld */
  justify-self: end !important;       /* <-- rechts im Grid */

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important; /* <-- nicht vertikal zentrieren */
  gap: 18px !important;

  margin: 0 !important;              /* alte margin-top killen */
}

/* ================================
   Company Link Style
   ================================ */

.jbss-company-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.jbss-company-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity .2s ease;
}

.jbss-company-link:hover::after {
  opacity: 1;
}
/* =========================
   Mobile Version
   ========================= */
@media (max-width: 768px) {

  /* =========================
     JBSS Drawer – FINAL FIX
     ========================= */

  #jbss-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
    pointer-events: none;
    visibility: hidden;
  }

  #jbss-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .jbss-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
  }

  .jbss-drawer-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 92vh;
    background: #fff;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transition: transform .25s ease;
    overflow: visible;
  display: flex;
  flex-direction: column;
  }

  #jbss-drawer.is-open .jbss-drawer-panel {
    transform: translateY(0);
  }

  .jbss-drawer-content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

  body.jbss-lock {
    overflow: hidden !important;
  height: 100vh;
    touch-action: none;
  }

  /* =========================
     JBSS – Drawer Layout Fix
     ========================= */

  .jbss-detail.is-drawer .jbss-detail-header-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .jbss-detail.is-drawer .jbss-detail-right {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    transform: none !important;
    margin: 0 !important;
  }

  .jbss-detail.is-drawer .jbss-detail-logo {
    width: 64px;
    height: 64px;
  }

  .jbss-detail.is-drawer .jbss-detail-title {
    font-size: 20px;
    line-height: 1.25;
    word-break: normal;
    white-space: normal;
  }

  .jbss-detail.is-drawer .jbss-detail-meta {
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 14px;
  }

  .jbss-detail.is-drawer .jbss-detail-badges {
    flex-wrap: wrap;
  }

  /* =========================
     Drawer Header / Close
     ========================= */

  .jbss-drawer-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
  }

  .jbss-drawer-close {
    font-size: 24px;
    line-height: 1;
  }
	
#jbss-drawer .jbss-drawer-close {
  background: none;
  border: 0;
  padding: 0;
  color: #666;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
	
	/* CTA im Content ausblenden (nur Mobile Drawer) */
  .jbss-detail.is-drawer .jbss-sticky-cta {
    display: none;
  }
	
	/* Drawer Header als Flex-Bar */
  .jbss-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* Apply Button im Header */
  .jbss-detail.is-drawer .jbss-apply-btn {
    position: static;
    width: auto;
    height: 40px;
    padding: 0 16px;

    font-size: 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: none;
  }
	
	.jbss-drawer-close {
    margin-left: auto;
  }
	
	.jbss-apply-btn--header {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: none;
  }
}


/* Drawer darf keine Klicks fressen, wenn er zu ist */
.jbss-drawer {
  pointer-events: none;
}

/* Nur wenn geöffnet */
.jbss-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

/* ================================
   ORIGIN JOB – WRAPPER (HINTERGRUND)
================================ */
.jbss-origin-wrapper {
  position: relative;
  margin-bottom: 20px;

  padding: 40px 16px 16px;
	padding-top: 50px;
  border-radius: 16px;

  /* helles Umrahmungsfeld */
  background:
    linear-gradient(
      135deg,
      rgba(82, 32, 51, 0.08),
      rgba(82, 32, 51, 0.03)
    );

  border: 1px solid rgba(82, 32, 51, 0.25);

  overflow: visible; /* 🔑 verhindert Abschneiden */
}

/* ================================
   BADGE
================================ */
.jbss-origin-badge {
  position: absolute;
  top: 24px;
  left: 16px;
	transform: translateY(-50%);

  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;

  color: #522033;
  background: #e9dde1;

  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


/* ================================
   ORIGIN CARD (INNEN)
================================ */
.jbss-origin-wrapper .jbss-job-card {
  margin: 0; /* wichtig */
}

.jbss-origin-wrapper .jbss-card {
  border: 2px solid #522033;
  border-radius: 14px;

  background: #fff;

  box-shadow:
    0 6px 18px rgba(82, 32, 51, 0.15);
}

/* Hover */
.jbss-origin-wrapper .jbss-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px rgba(82, 32, 51, 0.22);
}


/* ================================
   zusätzliche Bewerberbuttons ausblenden
================================ */
button.email_replacement { display:none !important; }


/* =====================================================
   Company Single – Hero Header (ABSOLUT FINAL)
   ===================================================== */

.single-company__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 32px;

  padding: 32px;
  margin-bottom: 32px;

  border-radius: 20px;
  overflow: hidden;

  background-image: url("https://jobbeast.de/wp-content/uploads/2025/10/JOBBEAST_Evolution_der_Jobboerse.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ❌ OVERLAY KOMPLETT ENTFERNEN */
.single-company__head::before {
  display: none !important;
}

/* =====================================================
   ALLE Texte & Icons ERZWUNGEN WEISS
   ===================================================== */

.single-company__head,
.single-company__head *,
.single-company__head a,
.single-company__head span,
.single-company__head i,
.single-company__head i::before,
.single-company__head .la,
.single-company__head .la::before,
.single-company__head .company-location i::before,
.single-company__head .company-website i::before,
.single-company__head .company-email i::before,
.single-company__head .company-location-map i::before {
  color: #ffffff !important;
}

/* Falls SVG-Icons genutzt werden */
.single-company__head svg,
.single-company__head svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
/* =====================================================
   COMPANY LOGO – FLEX-FIX (echter Kreis)
   ===================================================== */

/* 1) Linker Header-Bereich richtet Inhalt vertikal mittig aus */
body.single-company
.single-company__head
.company-single-head__left {
  display: flex !important;
  align-items: center !important;
  gap: 32px; /* Abstand Logo ↔ Text */
}


/* 2) Logo-Wrapper: echter Kreis, sauber zentriert */
body.single-company
.single-company__head
.company-single-head__left
.company-logo {
  flex: 0 0 auto !important;
  max-width: none !important;

  width: 120px !important;
  height: 120px !important;

  border-radius: 50% !important;
  background-color: #ffffff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;

  /* optisches Feintuning */
  margin-top: 2px;
}


/* 3) Logo selbst */
body.single-company
.single-company__head
.company-single-head__left
.company-logo img {
  width: 120px !important;
  height: auto !important;

  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Logo-Kreis bleibt wie gehabt */
body.single-company
.single-company__head
.company-single-head__left
.company-logo {
  width: 120px !important;
  height: 120px !important;

  border-radius: 50% !important;
  background: #fff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;
}

/* 🔥 OPTISCHE Zentrierung des Logos */
body.single-company
.single-company__head
.company-single-head__left
.company-logo img {
  max-width: 100% !important;
  max-height: 100% !important;

  width: auto !important;
  height: auto !important;

  object-fit: contain !important;

  /* ⬆️ leicht nach oben + minimal nach rechts */
  transform: translate(7px, -5px);

  display: block !important;
}



/* =====================================================
   Company Name
   ===================================================== */

.company-name {
  color: #ffffff !important;
  font-weight: 700;
}

/* =====================================================
   Open Positions – Glass Button
   - KEIN Hover
   - KEIN Rahmen
   - KEIN Shadow
   ===================================================== */

.single-company__head .open-positions {
  margin-top: 12px;

  display: inline-flex;
  align-items: center;

  padding: 8px 18px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: none !important;
  box-shadow: none !important;
  outline: none !important;

  font-weight: 600;
  font-size: 14px;

  color: #ffffff !important;
  cursor: default;
}

/* ❌ Hover / Focus / Active KOMPLETT KILLEN */
.single-company__head .open-positions:hover,
.single-company__head .open-positions:focus,
.single-company__head .open-positions:active {
  background: rgba(255, 255, 255, 0.22) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* =====================================================
   Right Side Links
   ===================================================== */

.company-single-head__right a {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: underline;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 768px) {
  .single-company__head {
    flex-direction: column;
    padding: 24px;
  }

  .company-single-head__right {
    margin-top: 16px;
  }

  .company-logo {
    width: 80px !important;
    height: 80px !important;
  }
}

/* =====================================================
   ICONS – THEME !important ÜBERSCHREIBEN
   ===================================================== */

body.single-company 
.single-company__head 
.company-info 
i,
body.single-company 
.single-company__head 
.company-info 
i::before {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* =====================================================
   Single Company – Content volle Breite
   ===================================================== */

body.single-company #primary,
body.single-company .site-main,
body.single-company .single-company-page {
  max-width: 1500px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =====================================================
   Company Header – Abstand Logo zu Inhalt
   ===================================================== */

body.single-company
.single-company__head
.company-single-head__left {
  gap: 32px; /* vorher ~16px → jetzt deutlich luftiger */
}

/* =====================================================
   Company Header – mehr vertikales Padding (Desktop)
   ===================================================== */

@media (min-width: 992px) {
  body.single-company
  .single-company__head {
    padding-top: 70px;
    padding-bottom: 74px;
  }
}

/* =====================================================
   Single Company – mehr Padding links im Contentbereich
   (unter dem Header)
   ===================================================== */

@media (min-width: 992px) {
  body.single-company
  .single-company__content-area {
    padding-left: 30px;
  }
}

/* =====================================================
   Single Company – Überschriften & strong nur halb­fett
   ===================================================== */

body.single-company
.single-company__content-area
h1,
body.single-company
.single-company__content-area
h2,
body.single-company
.single-company__content-area
h3,
body.single-company
.single-company__content-area
h4,
body.single-company
.single-company__content-area
h5,
body.single-company
.single-company__content-area
h6,
body.single-company
.single-company__content-area
strong {
  font-weight: 600 !important; /* halb­fett */
}

/* =====================================================
   Single Company – fehlende Überschriften halb­fett
   ===================================================== */

/* 1️⃣ "Auf einen Blick" (Elementor Heading) */
body.single-company
.elementor-widget-heading
.elementor-heading-title {
  font-weight: 600 !important;
}

/* 2️⃣ Company Name im Header */
body.single-company
.single-company__head
h2.company-name {
  font-weight: 600 !important;
}

/* 3️⃣ "Offene Stellenangebote des Unternehmens" */
body.single-company #company_job_listings > h2,
body.single-company .company-job_listings > h2 {
  font-weight: 500 !important;
}

/* =====================================================
   Single Company – Content Textfarbe (außer Header)
   ===================================================== */

body.single-company
.single-company__content-area,
body.single-company
.single-company__content-area * {
  color: #522033;
}

/* =====================================================
   Single Company – Sidebar Textfarbe
   (Elementor "Auf einen Blick")
   ===================================================== */

body.single-company
.single-company__sidebar,
body.single-company
.single-company__sidebar * {
  color: #522033 !important;
}


/* Benefits Liste – Herz Bullet */
.company-benefits-list {
  margin: 0;
  padding: 0;
}

.company-benefits-list li {
  list-style: none;
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
  color: #522033;
}

/* Benefit Liste – saubere Bullet-Lösung */
.single-company .benefit-item {
  position: relative;
  padding-left: 22px;          /* Abstand links (mehr Platz für Punkt) */
  margin-bottom: 8px;
  color: #522033;
  line-height: 1.45;
}

/* Punkt */
.single-company .benefit-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.5em;                 /* <- perfekte Ausrichtung zur ersten Zeile */
  font-size: 18px;
  line-height: 1;
  color: #522033;
}

/* =====================================================
   Benefits – saubere Bullet-Ausrichtung
   ===================================================== */

body.single-company .jb-benefits-ready .jb-benefit-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;

  margin: 0 0 10px 0 !important;
  line-height: 1.45 !important;
  color: #522033 !important;
}

/* Punkt */
body.single-company .jb-benefits-ready .jb-benefit-item::before {
  content: "•" !important;
  flex-shrink: 0 !important;

  font-size: 20px !important;
  line-height: 1 !important;
  margin-top: 0.1em !important; /* feinjustiert zur Textbaseline */
  color: #522033 !important;
}

/* =====================================================
   Company Profile – Mobile & Tablet Layout
   ===================================================== */

/* Tablet & Mobile */
@media (max-width: 1024px) {

  body.single-company .single-company__inner {
    display: flex;
    flex-direction: column;
  }

  /* Sidebar ganz nach oben */
  body.single-company .single-company__sidebar {
    order: 1;
    margin-bottom: 32px;
  }

  /* Firmenbeschreibung */
  body.single-company .single-company__content-area {
    order: 2;
  }

  /* Jobliste ganz nach unten */
  body.single-company #company-job-listings {
    order: 3;
  }

  body.single-company .single-company__content-area,
  body.single-company .single-company__sidebar {
    width: 100%;
  }
}

/* =====================================================
   Featured Badge – stabil & sichtbar
   ===================================================== */

body.single-company .company-name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  flex-wrap: wrap;
}

body.single-company .company-badge--featured {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1ecb6b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}




/* =====================================================
   Tablet: Header Logo + Text nebeneinander
   ===================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

  body.single-company .single-company__head {
    padding: 32px 32px;
  }

  body.single-company .company-single-head__left {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  body.single-company .company-logo {
    flex: 0 0 auto;
  }

  body.single-company .company-info {
    flex: 1;
  }

  body.single-company .company-name {
    margin-top: 0;
  }
}

/* =====================================================
   TABLET – Header Text korrekt neben Logo ausrichten
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Linke Header-Seite = Logo + Text nebeneinander */
  body.single-company
  .company-single-head__left {
    display: flex !important;
    align-items: center;
    gap: 32px; /* DAS ist der richtige Abstand */
  }

  /* Textblock selbst */
  body.single-company
  .company-info {
    padding: 0 !important; /* Padding hier bewusst raus */
    max-width: calc(100% - 120px);
  }

  /* Firmenname */
  body.single-company
  .company-name {
    margin-top: 0;
    margin-bottom: 6px;
  }

  /* Meta-Zeilen kompakter */
  body.single-company
  .company-location,
  body.single-company
  .company-website,
  body.single-company
  .company-email {
    margin-bottom: 4px;
  }

}

/* =====================================================
   TABLET – "Auf einen Blick" ordentlich (2 Spalten)
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Sidebar über Job-Listings */
  body.single-company .single-company__content-area{
    display: flex !important;
    flex-direction: column !important;
  }
  body.single-company .single-company__sidebar{
    order: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 28px 0 !important;
  }
  body.single-company #company_job_listings,
  body.single-company .company-job_listings{
    order: 1 !important;
  }

  /* Elementor Root in der Sidebar als 2-Spalten Grid */
  body.single-company .single-company__sidebar .elementor{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 34px !important; /* row / col */
    align-items: start !important;
  }

  /* "Auf einen Blick" (Heading-Container) volle Breite */
  body.single-company .single-company__sidebar .elementor-element-1cea847,
  body.single-company .single-company__sidebar [data-id="1cea847"]{
    grid-column: 1 / -1 !important;
    margin-bottom: 6px !important;
  }

  /* Benefits-Block volle Breite */
  body.single-company .single-company__sidebar .elementor-element-537160d,
  body.single-company .single-company__sidebar [data-id="537160d"]{
    grid-column: 1 / -1 !important;
  }

  /* Pro Info-Block: Icon + Text nebeneinander */
  body.single-company .single-company__sidebar .e-con-inner{
    display: grid !important;
    grid-template-columns: 40px 1fr !important;
    column-gap: 14px !important;
    align-items: start !important;
  }

  /* Kein Buchstaben-Wrapping */
  body.single-company .single-company__sidebar h2,
  body.single-company .single-company__sidebar span,
  body.single-company .single-company__sidebar a{
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    min-width: 0 !important;
  }

  /* Benefits: NICHT column-count, sondern Grid (stabiler) */
  body.single-company .jb-benefits-ready{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 34px !important;
    row-gap: 10px !important;
  }

  body.single-company .jb-benefits-ready .jb-benefit-item{
    margin: 0 !important;
  }
}

/* =====================================================
   TABLET – "Auf einen Blick" Heading FIX
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Heading-Wrapper volle Breite */
  body.single-company
  .single-company__sidebar
  .elementor-widget-heading {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Der eigentliche Text */
  body.single-company
  .single-company__sidebar
  .elementor-widget-heading
  .elementor-heading-title {
    display: block !important;
    width: 100% !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
  }

}

/* =====================================================
   TABLET – Header vertikal sauber ausbalancieren
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Der eigentliche Header-Container */
  body.single-company
  .single-company__head {
    padding-top: 36px !important;   /* mehr Luft oben */
    padding-bottom: 18px !important; /* weniger Luft unten */
  }

  /* Sicherheit: kein Extra-Abstand durch Children */
  body.single-company
  .company-info {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.single-company
  .open-positions {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
  }

}

/* =====================================================
   MOBILE (Phone) – Header: Logo mittig, Text links
   ===================================================== */
@media (max-width: 767px) {

  /* Gesamter Header: untereinander */
  body.single-company
  .single-company__head {
    display: flex !important;
    flex-direction: column;
    align-items: center; /* Logo zentrieren */
    padding: 28px 20px 24px !important;
    text-align: left !important;
  }

  /* Logo mittig */
  body.single-company
  .company-logo {
    margin: 0 auto 18px auto !important;
    display: flex;
    justify-content: center;
  }

  /* Info-Block: linksbündig */
  body.single-company
  .company-info {
    width: 100%;
    max-width: 420px; /* verhindert Chaos */
    margin: 0 auto;
    text-align: left !important;
  }

  /* Firmenname */
  body.single-company
  .company-name {
    text-align: left !important;
    margin-bottom: 10px;
  }

  /* Location / Website / Mail */
  body.single-company
  .company-location,
  body.single-company
  .company-website,
  body.single-company
  .company-email {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    text-align: left !important;
  }

  /* Button mittig, aber logisch getrennt */
  body.single-company
  .open-positions {
    margin: 18px auto 0 auto;
    text-align: center;
  }

}
/* =====================================================
   MOBILE – Map-Icon vertikal sauber ausrichten
   ===================================================== */
@media (max-width: 767px) {

  body.single-company
  .company-location {
    align-items: flex-start; /* Text bestimmt die Höhe */
  }

  body.single-company
  .company-location .la-map-marker {
    position: relative;
    top: 4px;              /* feinjustieren */
    font-size: 20px;       /* optional, falls nötig */
    line-height: 1;
  }

}
@media (max-width: 767px) {

  body.single-company
  .company-location .la-map-marker {
    position: relative;
    left: -12px;   /* weiter nach links */
  }

}

/* =====================================================
   MOBILE – "Auf einen Blick" + Readmore
   ===================================================== */
@media (max-width: 767px) {

  /* Überschrift leicht nach links ziehen */
  body.single-company
  .single-company__sidebar
  h2.elementor-heading-title {
    margin-left: -12px;
  }

  /* Wrapper: Abstand Text ↔ Button */
  .readmore-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px; /* 👈 enger */
  }

  /* Text einklappen */
.js-readmore {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.js-readmore.is-open {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

  /* =====================================================
     READMORE BUTTON – RESET & BASIS
     ===================================================== */
  body .readmore-toggle {
    all: unset;
    box-sizing: border-box;

    display: flex-start;
    align-items: center;
    justify-content: center;

    margin-top: 4px;          /* 👈 Abstand nach oben */
    padding: 5px 16px;        /* flach & unauffällig */

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;

    cursor: pointer;
    border-radius: 999px;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: background 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
  }

  /* =====================================================
     HELLE BEREICHE
     ===================================================== */
  body .readmore-toggle {
    background: rgba(255,255,255,0.35);
    color: #5a1f33;
    border: 1px solid rgba(90,31,51,0.22);
    box-shadow: none;
  }

  body .readmore-toggle:hover {
    background: rgba(255,255,255,0.45);
  }

  /* =====================================================
     DUNKLE BEREICHE (.beast-dark)
     ===================================================== */
  body .beast-dark .readmore-toggle,
  body .beast-dark .readmore-toggle span {
    color: #ffffff !important;
  }

  body .beast-dark .readmore-toggle {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4);
  }

  body .beast-dark .readmore-toggle:hover {
    background: rgba(255,255,255,0.28);
  }
}

@media (max-width: 767px) {

  body .readmore-toggle {
    align-self: center;     /* 👈 macht ihn kurz */
    border: none !important;/* 👈 Rahmen weg */
  }

}

/* HELLE BEREICHE – sanfter Schatten */
body .readmore-toggle {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}


/* =====================================================
   DESKTOP
   ===================================================== */
@media (min-width: 1025px) {
  .jbss-drawer-close {
    display: none !important;
  }
}

/* ===============================
   Banner in Ergebnisliste
   =============================== */

/* List CTA Banner */
.jbss-list-banner {
  margin: 18px 0 26px;
  display: flex;
  justify-content: center;
}

/* CTA Button */
.jbss-list-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 520px;

  background: linear-gradient(90deg, #7E0E33 0%, #2B193D 100%);
  color: #fff;

  border: none;
  border-radius: 999px;

  padding: 14px 28px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;

  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover / Focus */
.jbss-list-banner-btn:hover,
.jbss-list-banner-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(43, 25, 61, 0.35);
  color: #fff;
}

/* Active (Click) */
.jbss-list-banner-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(43, 25, 61, 0.25);
}

/* =====================================================
   TABLET = MOBILE (JOBBEAST HEADER SAFE MODE)
   ===================================================== */

/* Elementor Tablet explizit wie Mobile behandeln */
body[data-elementor-device-mode="tablet"]
header.jbss-detail-header {
  padding: 28px 20px 24px !important;
}

/* Header immer einspaltig */
body[data-elementor-device-mode="tablet"]
.jbss-detail-header-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;

  width: 100% !important;
  max-width: 100% !important;
}

/* Linke Seite ebenfalls untereinander */
body[data-elementor-device-mode="tablet"]
.jbss-detail-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;

  width: 100% !important;
  max-width: 100% !important;
}

/* Logo zentrieren */
body[data-elementor-device-mode="tablet"]
.jbss-detail-left img {
  width: 88px !important;
  height: 88px !important;
  margin: 0 auto !important;
}

/* Textblock */
body[data-elementor-device-mode="tablet"]
.jbss-detail-left * {
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: left !important;
  max-width: 100% !important;
}

/* Firmenname / Jobtitel */
body[data-elementor-device-mode="tablet"]
.jbss-detail-left h1,
body[data-elementor-device-mode="tablet"]
.jbss-detail-left h2 {
  text-align: left !important;
  line-height: 1.25 !important;
}

/* CTA mittig unter Text */
body[data-elementor-device-mode="tablet"]
.jbss-detail-right {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 10px !important;
}

/* =====================================================
   Company profile: MOBILE (Phone): Company Header neu anordnen
   Logo oben, Text darunter, linksbündig
   ===================================================== */

@media (max-width: 767px) {

  /* linker Kopfbereich wird vertikal */
  body.single-company 
  .single-company__head 
  .company-single-head__left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  /* Logo ganz nach oben */
  body.single-company 
  .single-company__head 
  .company-logo {
    order: 1;
    margin: 0 !important;
  }

  body.single-company 
  .single-company__head 
  .company-logo img {
    max-width: 110px;
    height: auto;
  }

  /* Firmeninfos darunter */
  body.single-company 
  .single-company__head 
  .company-info {
    order: 2;
    text-align: left !important;
    width: 100%;
  }

  /* Firmenname */
  body.single-company 
  .single-company__head 
  h2.company-name {
    text-align: left !important;
    justify-content: flex-start;
  }	

  /* Standort / Website / Telefon etc. */
  body.single-company 
  .single-company__head 
  .company-location,
  body.single-company 
  .single-company__head 
  .company-website,
  body.single-company 
  .single-company__head 
  .company-phone,
  body.single-company 
  .single-company__head 
  .company-email {
    justify-content: flex-start;
    text-align: left;
  }
}
/* =====================================================
   MOBILE (Phone) – Header Feintuning
   ===================================================== */
@media (max-width: 767px) {

  body.single-company
  .single-company__head
  .company-single-head__left
  .company-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.single-company
  .single-company__head
  .company-single-head__left
  .company-logo img {
    display: block !important;
    margin: 0 auto !important;
    transform: none !important; /* killt alte Offsets */
  }

}


@media (max-width: 767px){

  /* Firmenname: Flex vom Theme killen -> Badge bleibt inline */
  body.single-company .single-company__head .company-info h2.company-name{
    display: block !important;          /* <- wichtig: kein flex */
    margin: 0 0 10px 0 !important;
    line-height: 1.25 !important;
  }

  body.single-company .single-company__head .company-info h2.company-name .company-badge--featured{
    display: inline-flex !important;
    vertical-align: middle !important;
    margin-left: 8px !important;
    position: relative !important;
    top: -1px !important;
  }

	  /* Infoblock bekommt volle Breite */
  body.single-company .company-info{
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  /* Jede Info-Zeile MUSS volle Breite haben */
  body.single-company .company-location,
  body.single-company .company-website,
  body.single-company .company-phone,
  body.single-company .company-email{
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    text-align: left !important;
  }
	
  /* LOGO – alleine, zentriert */
  body.single-company .company-logo{
    align-self: center !important;
    margin-bottom: 20px !important;
  }
	
  body.single-company .company-location i::before{
    position: relative;
    left: 12px; /* feinjustieren: 1–3px je nach Geschmack */
  }

}

/* =====================================================
   Company profile: TABLET (768–1024px)
   basiert auf funktionierendem Mobile-Layout
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px){

  /* linker Header: horizontal */
  body.single-company
  .single-company__head
  .company-single-head__left{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 28px !important;
  }

  /* Logo links */
  body.single-company
  .single-company__head
  .company-logo{
    flex: 0 0 140px !important;
    margin: 0 !important;
  }

  body.single-company
  .single-company__head
  .company-logo img{
    max-width: 120px !important;
    height: auto !important;
  }

  /* 🔑 DAS war der fehlende Teil */
  body.single-company
  .single-company__head
  .company-info{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;

    width: 100% !important;
  }

  /* Firmenname */
  body.single-company
  .single-company__head
  h2.company-name{
    display: block !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }

  /* Info-Zeilen */
  body.single-company
  .company-location,
  body.single-company
  .company-website,
  body.single-company
  .company-phone,
  body.single-company
  .company-email{
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

}

@media (max-width: 1024px){

  body.single-company .company-logo{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.single-company .company-logo img{
    display: block !important;
    max-width: 70% !important;   /* sorgt für Luft im Kreis */
    max-height: 70% !important;
    object-fit: contain !important;
    margin: 0 !important;
    transform: none !important;  /* killt evtl. Theme-Offsets */
  }

}

/* =====================================================
   TABLET (768–1024px)
   "Auf einen Blick" – Titel neben Icon, Text darunter
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px){

  /* rechter Textblock */
  body.single-company
  .single-company__sidebar
  h2.mas-elementor-multipurpose-text__title{
    display: grid !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;

    margin: 0 !important;
    line-height: 1.3 !important;
  }

  /* TITEL-SPAN */
  body.single-company
  .single-company__sidebar
  h2.mas-elementor-multipurpose-text__title > span:first-child{
    display: block !important;
    font-weight: 600 !important;
    margin-top: 18px !important;
  }

}

/* =====================================================
   Multipurpose-Text: Einheitliche H2-Optik (global)
   ===================================================== */

/* H2-Grundlayout */
.mas-elementor-multipurpose-text__title{
  display: grid;
  grid-template-rows: auto auto;
  margin: 0;
  line-height: 1.3;
}

/* FALL: Inhalt liegt direkt im h2 */
.mas-elementor-multipurpose-text__title > span:first-child{
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

/* FALL: Inhalt liegt in <a> (z.B. Unternehmensgröße) */
.mas-elementor-multipurpose-text__title > a{
  display: grid;
  grid-template-rows: auto auto;
  text-decoration: none;
  color: inherit;
}

/* Titel innerhalb <a> */
.mas-elementor-multipurpose-text__title > a > span:first-child{
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Beschreibungstext */
.mas-elementor-multipurpose-text__highlighted-text{
  display: block;
  font-weight: 400;
}

/* <br> raus – wir steuern Abstände sauber */
.mas-elementor-multipurpose-text__title br{
  display: none;
}

/* =====================================================
   TABLET – Sonderfall: Multipurpose-Text MIT <a>-Wrapper
   (z.B. Unternehmensgröße)
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px){

  body.single-company
  .single-company__sidebar
  h2.mas-elementor-multipurpose-text__title > a{
    display: grid !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
  }

  /* Titel */
  body.single-company
  .single-company__sidebar
  h2.mas-elementor-multipurpose-text__title > a > span:first-child{
    display: block !important;
    font-weight: 600 !important;
    margin-top: 18px !important; /* exakt wie bei der anderen Variante */
  }

  /* <br> neutralisieren */
  body.single-company
  .single-company__sidebar
  h2.mas-elementor-multipurpose-text__title > a br{
    display: none !important;
  }

}

/* ================================
   JBSS – Externes Job-Angebot Badge
   ================================ */
.jbss-card .tag.external {
  background: transparent;
  color: #999;
  font-size: 0.72rem;
  font-weight: 400;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.01em;
}