/* ===== JOB DETAIL STYLES ===== */
.job-detail {
    max-width: 1120px;
    margin: 40px auto;
    font-family: 'Montserrat', sans-serif;
    color: #111;
}

/* TITELBEREICH */
.job-header {
    background: #000;
    color: #fff;
    padding: 24px 32px;
    margin-bottom: 24px;
}

.job-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

/* ORT & START direkt unter Titel */
.job-meta-under-title {
    margin-top: 12px;
}

.job-meta-item {
    font-size: 15px;
    margin: 4px 0;
}

.job-meta-item .icon {
    margin-right: 6px;
}

/* WEISSER CONTENT BLOCK */
.job-content {
    background: #fff;
    padding: 32px 48px;
}

/* SEKTIONSTITEL */
.job-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 3px solid #FCEA10;
    color: #000;
}

/* INHALTSTEXTE */
.job-section p,
.job-section ul,
.job-section li {
    font-size: 15px;
    margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .job-header h1 {
        font-size: 24px;
    }
    .job-section h2 {
        font-size: 18px;
    }
    .job-content {
        padding: 24px;
    }
}

/* =====================
   JOB DETAIL STYLES
   Montserrat Extra Fett für Detailseite
   ===================== */
.job-detail,
.job-detail * {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  color: #111 !important;
}

/* Meta oben (Ort, Wann) */
.job-meta-top p,
.job-meta-top strong {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  color: #111 !important;
}

/* Überschriften im Detail */
.job-section h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  margin-top: 24px;
  color: #111 !important;
}

/* Absätze */
.job-desc p,
.job-section p {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
}

/* Listen */
.job-desc ul,
.job-desc ol,
.job-section ul,
.job-section ol {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  margin-left: 20px !important;
}

.job-desc li,
.job-section li {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
}

/* Sicherung für Inline Text (z. B. , ) */
.job-detail span,
.job-detail strong {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
}

/* =====================
   BUTTON-ROW unten: exakt nebeneinander
   (eigener Wrapper, damit WP keine / reinballert)
   ===================== */
.job-actions-row{
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* beide Buttons identisch */
.job-actions-row a{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #FCEA10 !important;
  color: #111 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  height: 48px !important;
  padding: 0 24px !important;
  line-height: 1 !important;
  border: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
  max-width: fit-content;
  margin: 0 !important;
}

/* Optisches Zentrieren (Montserrat wirkt oft "zu tief") */
.job-actions-row a .sovea-btn-text{
  position: relative !important;
  top: -1px !important;
}

.job-actions-row a:hover{
  background-color: #e0cd00 !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* =========================================================
   FIX 1: "Jetzt bewerben" Text wirklich mittig (falls Theme reinfunkt)
   ========================================================= */
.job-actions-row a.job-blitzbewerbung-btn,
.job-actions-row a.sovea-open-apply{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 24px !important;
  height: 48px !important;
}

/* =========================================================
   MODAL (Bewerbungsformular)
   ========================================================= */
.sovea-jdmm-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  z-index: 99998;
}

/* FIX 2: Modal breiter + mehr Luft */
.sovea-jdmm-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(860px, 94vw) !important; /* breiter */
  max-height: 88vh !important;
  background: #fff;
  display: none;
  z-index: 99999;
  border-radius: 0px;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  /* Damit Header oben bleibt und Body sauber scrollt */
  flex-direction: column;
}

.sovea-jdmm-modal header{
  background: #000;
  color: #fff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sovea-jdmm-modal header h3{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

/* Close Button im Header */
.sovea-jdmm-close{
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* Body: mehr padding + scroll */
.sovea-jdmm-body{
  padding: 24px !important;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(88vh - 64px) !important;
}

/* =========================================================
   MOBILE FIX: Modal muss scrollbar sein + Absenden immer erreichbar
   - Vollbild-Modal ohne translate (iOS/Android sicher)
   - Buttons sticky am unteren Rand
   ========================================================= */
@media (max-width: 640px){
  .sovea-jdmm-modal{
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100svh !important; /* stabiler als vh auf Mobile */
    max-height: none !important;
    transform: none !important;
  }

  .sovea-jdmm-body{
    flex: 1 1 auto;
    max-height: none !important;
    padding-bottom: 16px !important;
  }

  /* Action-Leiste bleibt sichtbar, damit "Bewerbung senden" immer klickbar ist */
  .sovea-jdmm-actions{
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 0 4px;
    margin-top: 12px !important;
  }
}

/* Grid: mehr Abstand, nicht gequetscht */
.sovea-jdmm-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px !important;
}

@media (max-width: 640px){
  .sovea-jdmm-grid{
    grid-template-columns: 1fr;
  }
}

.sovea-jdmm-field label{
  display: block;
  font-weight: 900;
  margin-bottom: 8px !important;
  font-size: 14px !important;
}

.sovea-jdmm-field input{
  width: 100%;
  height: 46px !important;
  padding: 0 14px !important;
  border: 1px solid #ddd;
  border-radius: 0px;
  font-weight: 700; /* bisschen ruhiger, sonst wirkt es zu eng */
  font-size: 15px !important;
  box-sizing: border-box;
}

.sovea-jdmm-field input[type="file"]{
  height: auto;
  padding: 12px !important;
}

/* Privacy Bereich */
.sovea-jdmm-privacy-row{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sovea-jdmm-privacy-row input{
  margin-top: 4px;
}

.sovea-jdmm-privacy-link{
  color: #111;
  text-decoration: underline;
  font-weight: 900;
  cursor: pointer;
}

.sovea-jdmm-privacy-box{
  display: none;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 0px;
  background: #fff;
}

/* Buttons unten */
.sovea-jdmm-actions{
  display: flex;
  gap: 14px !important;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px !important;
  flex-wrap: wrap;
}

.sovea-jdmm-submit{
  background: #FCEA10;
  color: #111;
  border: none;
  height: 46px;
  padding: 0 18px;
  border-radius: 0px;
  font-weight: 900;
  cursor: pointer;
}

.sovea-jdmm-submit:hover{
  filter: brightness(0.95);
}

/* Message Box (OK/ERR) */
.sovea-jdmm-msg{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 0px;
  display: none;
  font-weight: 800;
}

.sovea-jdmm-msg.ok{
  background: #e9f9ee;
  border: 1px solid #9be2b0;
}

.sovea-jdmm-msg.err{
  background: #ffecec;
  border: 1px solid #ffb3b3;
}

/* Feld-Fehler */
.sovea-jdmm-error{
  color: #b10000;
  font-weight: 800;
  font-size: 13px;
  margin-top: 6px;
}

/* Optional: nur Modal Schriftgewicht etwas ruhiger, damit es nicht so "gequetscht" wirkt */
.sovea-jdmm-modal *{
  font-weight: 700 !important;
}
.sovea-jdmm-modal header *{
  font-weight: 900 !important;
}
/* =====================
   RADIUS RESET: ALLES AUF 0 (JOB DETAIL + MODAL)
   ===================== */

/* Job-Detail Buttons & ggf. Boxen */
.job-detail,
.job-detail *{
  border-radius: 0 !important;
}

/* Job Detail Modal */
.sovea-jdmm-modal,
.sovea-jdmm-modal *,
.sovea-jdmm-modal-backdrop,
.sovea-jdmm-privacy-box,
.sovea-jdmm-msg,
.sovea-jdmm-field input,
.sovea-jdmm-field select,
.sovea-jdmm-field textarea,
.sovea-jdmm-submit,
.sovea-jdmm-actions button,
.sovea-jdmm-actions a{
  border-radius: 0 !important;
}

/* =========================================================
   EXTRA HARD RESET (falls Theme mit !important reinfunkt)
   - erzwingt eckige Ecken auch bei Buttons/Inputs/Selects/Textareas
   - entfernt "native" Rundungen (Safari/iOS)
   ========================================================= */
.job-detail .job-content,
.job-detail .job-header,
.job-detail .job-section,
.job-detail a,
.job-detail button,
.job-detail input,
.job-detail select,
.job-detail textarea,
.sovea-jdmm-modal a,
.sovea-jdmm-modal button,
.sovea-jdmm-modal input,
.sovea-jdmm-modal select,
.sovea-jdmm-modal textarea{
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-clip: padding-box !important;
}

/* =========================================================
   ULTRA HARD RESET NUR FÜR DAS BEWERBUNGSFORMULAR (falls Theme/Plugin ALLES rund macht)
   - zielt bewusst auf IDs, damit es IMMER gewinnt
   ========================================================= */
#soveaJdmmModal,
#soveaJdmmModal *{
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

#soveaJdmmModal input,
#soveaJdmmModal select,
#soveaJdmmModal textarea,
#soveaJdmmModal button,
#soveaJdmmModal a{
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* File-Input Button (Chrome/Edge/Safari) */
#soveaJdmmModal input[type="file"]::file-selector-button,
#soveaJdmmModal input[type="file"]::-webkit-file-upload-button{
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Checkbox soll natürlich bleiben (nur Ecken egal, aber native Optik behalten) */
.sovea-jdmm-modal input[type="checkbox"]{
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
}
