
/* Master Stellenportal – Frontend */
.msp-wrap{display:flex;gap:22px;align-items:flex-start;max-width:1200px;margin:0 auto;padding:12px}
.msp-filters{flex:0 0 33%;min-width:260px}
.msp-results{flex:1 1 67%}
@media (max-width: 991px){
  .msp-wrap{flex-direction:column}
  .msp-filters,.msp-results{flex:1 1 auto;min-width:0}
}

.msp-filter-box{background:#fff;border:1px solid #e6e6e6;border-radius:10px;padding:16px;box-shadow:0 6px 20px rgba(0,0,0,.06)}
.msp-filters,.msp-results,.msp-filter-box,.msp-filter-box *{box-sizing:border-box}
.msp-filters,.msp-results,.msp-filter-box,.msp-form-grid > div{min-width:0}
.msp-filter-box .msp-input,
.msp-filter-box .msp-select,
.msp-filter-box .msp-textarea,
.msp-filter-box select,
.msp-filter-box input,
.msp-filter-box textarea{display:block;width:100%;max-width:100% !important;min-width:0}
.msp-filter-title{font-size:18px;font-weight:700;margin:0 0 18px}
.msp-label{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin:18px 0 8px;color:#333}
.msp-input,.msp-select,.msp-textarea{width:100%;border:1px solid #d9d9d9;border-radius:10px;padding:10px 12px;background:#fff;outline:none}
.msp-input:focus,.msp-select:focus,.msp-textarea:focus{border-color:#111;box-shadow:0 0 0 3px rgba(0,0,0,.06)}
.msp-file{width:100%;padding:10px 0}
.msp-help{font-size:12px;color:#666;margin-top:6px}
.msp-filter-box select + .msp-label{margin-top:24px}
.msp-filter-box .msp-btn{margin-top:18px}
.msp-filter-box .msp-btn + .msp-btn{margin-left:8px;margin-top:18px}
.msp-filter-box .msp-label + .msp-select,
.msp-filter-box .msp-label + .msp-input{margin-top:0}
.msp-filter-box .msp-select{margin-bottom:10px}

.msp-btn{border-radius:10px;border:1px solid #d9d9d9;background:#fff;padding:10px 12px;font-weight:700;cursor:pointer;transition:transform .05s ease, box-shadow .2s ease, background .2s ease}
.msp-btn:active{transform:translateY(1px)}
.msp-btn-primary{background:#111;color:#fff;border-color:#111}
.msp-btn-primary:hover{box-shadow:0 8px 22px rgba(0,0,0,.15)}
.msp-btn-ghost{background:#fff}
.msp-btn-ghost:hover{box-shadow:0 8px 22px rgba(0,0,0,.08)}
.msp-btn-wide{width:100%}

.msp-cards{display:flex;flex-direction:column;gap:14px}
.msp-card{background:#fff;border:1px solid #e6e6e6;border-radius:10px;padding:16px;box-shadow:0 6px 20px rgba(0,0,0,.06)}
.msp-card-title{font-size:18px;font-weight:800;margin:0 0 10px;color:#111}
.msp-subtitle{font-weight:500;color:#444}
.msp-meta{display:flex;flex-wrap:wrap;gap:14px;margin:0 0 14px}
.msp-meta-item{display:flex;align-items:center;gap:8px;color:#333;font-weight:600}
.msp-ico{display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center}
.msp-actions{display:flex;gap:10px;flex-wrap:wrap}
.msp-empty{padding:20px;background:#fff;border:1px dashed #ccc;border-radius:10px;color:#444}

.msp-pager{margin-top:14px;display:flex;justify-content:center}
.msp-pager[hidden]{display:none}

/* Modal */
.msp-modal{position:fixed;inset:0;display:none;z-index:2147483000;isolation:isolate}
.msp-modal.is-open{display:block}
.msp-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);z-index:0}
.msp-modal__panel{position:relative;z-index:1;max-width:1100px;width:calc(100% - 36px);max-height:calc(100% - 36px);margin:18px auto;background:#fff;border-radius:14px;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.msp-modal__close{position:absolute;top:12px;right:12px;z-index:3;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.35);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.msp-modal__content{padding:0}
.msp-modal__loading{padding:22px;font-weight:700}

.msp-hero{position:relative}
.msp-hero-img{width:100%;height:360px;object-fit:cover;display:block}
.msp-hero-ph{height:360px;background:linear-gradient(135deg,#f0f0f0,#d9d9d9)}
.msp-hero-bar{background:var(--msp-title-bg,#e7d268);padding:18px}
.msp-hero-title{color:var(--msp-title-text,#fff);text-align:center;font-size:34px;font-weight:300;letter-spacing:.02em}
.msp-hero-shift{font-weight:300}

@media (max-width: 991px){
  .msp-hero-img,.msp-hero-ph{height:240px}
  .msp-hero-title{font-size:22px}
}

.msp-modal-grid{display:grid;grid-template-columns: 1fr 360px;gap:18px;padding:22px}
@media (max-width: 991px){
  .msp-modal-grid{grid-template-columns:1fr}
}
.msp-modal-main{min-width:0;background:var(--msp-description-bg,#ffffff);border:1px solid #ececec;border-radius:14px;padding:20px;box-shadow:0 8px 22px rgba(0,0,0,.04)}
.msp-modal-main h2,.msp-modal-main h3{margin-top:18px}
.msp-modal-main ul{padding-left:18px}
.msp-modal-side{min-width:0}

.msp-side-card{border:1px solid #eee;border-radius:12px;box-shadow:0 8px 22px rgba(0,0,0,.06);overflow:hidden;background:#fff}
.msp-side-head{padding:14px 16px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;font-size:12px;color:#333;background:#fafafa}
.msp-side-row{display:flex;gap:10px;padding:14px 16px;border-top:1px solid #f0f0f0}
.msp-side-ico{width:26px;display:flex;align-items:flex-start;justify-content:center}
.msp-side-label{font-size:12px;color:#666;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.msp-side-value{font-size:14px;color:#111;font-weight:700;margin-top:4px}
.msp-side-foot{padding:16px;border-top:1px solid #f0f0f0}

/* Apply */
.msp-apply{padding:22px;border-top:1px solid #f0f0f0;background:#fcfcfc}
.msp-apply-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.msp-apply-title{font-size:18px;font-weight:900}
.msp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 700px){
  .msp-form-grid{grid-template-columns:1fr}
}
.msp-form-msg{margin-top:12px;font-weight:700}
.msp-apply-form,
.msp-apply-form *{box-sizing:border-box}
.msp-form-grid > div,
.msp-form-grid .msp-input,
.msp-form-grid .msp-select,
.msp-form-grid .msp-textarea{min-width:0;max-width:100% !important;width:100%}
.msp-form-msg.is-ok{color:#0a7a2e}
.msp-form-msg.is-err{color:#b00020}


/* Info buttons / badges */
.msp-modal__panel,
.msp-modal__panel *{box-sizing:border-box}
.msp-info-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:38px;
  padding:8px 14px;
  margin:0 8px 8px 0;
  border-radius:var(--msp-badge-radius,18px);
  background:var(--msp-badge-bg,#f4f4f4);
  color:var(--msp-badge-text,#1f1f1f);
  border:1px solid var(--msp-badge-border,#d8d8d8);
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none !important;
  pointer-events:none;
  cursor:default;
  user-select:none;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.msp-info-badge--small{
  min-height:32px;
  padding:6px 12px;
  font-size:13px;
  margin:4px 0 0;
}
.msp-modal-main p .msp-info-badge:first-child{
  margin-top:2px;
}
.msp-modal-main a.msp-info-badge,
.msp-modal-main .msp-info-badge a{
  pointer-events:none;
}
.msp-side-value{
  margin-top:4px;
}

.msp-section-badge{margin:0 0 14px}.msp-section-badge + ul,.msp-section-badge + p{margin-top:0}


.msp-empty-initiative{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.msp-empty-title{font-size:18px;font-weight:700;color:#222}
.msp-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5;color:#222;margin:14px 0 18px}
.msp-check input{margin-top:3px;flex:0 0 auto}
.msp-privacy-wrap a{color:inherit;text-decoration:underline}
.msp-apply--standalone{border-top:0;background:#fff}

.msp-results-tail{margin-top:14px}
.msp-results-tail .msp-empty{margin-top:0}


/* Mobile optimization v1.0.8 */
@media (max-width: 767px){
  .msp-wrap{
    padding:10px;
    gap:14px;
  }
  .msp-filters,
  .msp-results{
    width:100%;
    flex:1 1 100%;
  }
  .msp-filter-box,
  .msp-card,
  .msp-empty{
    border-radius:14px;
    padding:14px;
  }
  .msp-filter-title{
    font-size:17px;
    margin-bottom:14px;
  }
  .msp-label{
    margin:14px 0 8px;
    font-size:11px;
  }
  .msp-input,
  .msp-select,
  .msp-textarea,
  .msp-filter-box select,
  .msp-filter-box input,
  .msp-filter-box textarea{
    min-height:48px;
    font-size:16px;
    border-radius:12px;
  }
  .msp-filter-box .msp-select{
    margin-bottom:14px;
  }
  .msp-filter-box .msp-btn,
  .msp-filter-box .msp-btn + .msp-btn{
    margin-top:12px;
  }
  .msp-card-title{
    font-size:16px;
    line-height:1.35;
    margin-bottom:12px;
    word-break:break-word;
  }
  .msp-subtitle{
    display:block;
    margin-top:2px;
  }
  .msp-meta{
    gap:10px;
    margin-bottom:12px;
  }
  .msp-meta-item{
    width:100%;
    font-size:15px;
  }
  .msp-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .msp-actions .msp-btn{
    width:100%;
    min-height:46px;
    justify-content:center;
  }
  .msp-pager{
    margin-top:12px;
  }
  .msp-pager .msp-btn{
    width:100%;
    min-height:46px;
  }
  .msp-empty-initiative{
    align-items:stretch;
  }
  .msp-empty-initiative .msp-btn{
    width:100%;
  }
  .msp-modal__panel{
    width:calc(100% - 12px);
    max-height:calc(100% - 12px);
    margin:6px auto;
    border-radius:12px;
  }
  .msp-modal__close{
    top:10px;
    right:10px;
    width:38px;
    height:38px;
  }
  .msp-hero-img,
  .msp-hero-ph{
    height:180px;
  }
  .msp-hero-bar{
    padding:14px 12px;
  }
  .msp-hero-title{
    font-size:18px;
    line-height:1.35;
  }
  .msp-modal-grid{
    padding:12px;
    gap:12px;
  }
  .msp-modal-main{
    padding:14px;
    border-radius:12px;
  }
  .msp-side-card{
    border-radius:12px;
  }
  .msp-side-row{
    padding:12px 14px;
  }
  .msp-apply{
    padding:14px;
  }
  .msp-apply-head{
    flex-direction:column;
    align-items:stretch;
  }
  .msp-apply-head .msp-btn{
    width:100%;
  }
  .msp-form-grid{
    gap:10px;
  }
  .msp-info-badge{
    max-width:100%;
    white-space:normal;
    text-align:center;
  }
}


/* Mobile close button visibility / UX v1.0.9 */
.msp-modal__panel{overflow:auto;-webkit-overflow-scrolling:touch;}
.msp-modal__close{
  position:fixed;
  top:calc(env(safe-area-inset-top, 0px) + 12px);
  right:calc(env(safe-area-inset-right, 0px) + 12px);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:#111;
  font-size:24px;
  font-weight:700;
  box-shadow:0 10px 26px rgba(0,0,0,.20);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:100001;
}
.msp-modal__close:hover{background:#f6f6f6;}
.msp-modal__close:focus-visible{outline:2px solid #111;outline-offset:2px;}

@media (max-width: 767px){
  .msp-modal__panel{
    width:100%;
    max-height:100dvh;
    height:100dvh;
    margin:0;
    border-radius:0;
  }
  .msp-modal__content{padding-top:60px;}
  .msp-hero{margin-top:0;}
  .msp-modal__close{
    top:calc(env(safe-area-inset-top, 0px) + 10px);
    right:calc(env(safe-area-inset-right, 0px) + 10px);
  }
}
