.search-categories-jobboard {
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-bar-jobboard {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2px; 
    width: 100%;
    max-width: 800px;
    align-items: center;
}

.search-bar-field-jobboard {
    flex: 1;
    min-width: 150px;
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid #422800;
    border-radius: 30px;
    box-sizing: border-box;
}

.search-bar-field-jobboard:focus {
    border-color: #ffbe0b;
    outline: none;
    box-shadow: 0 0 4px rgb(252, 203, 99);
}

.search-btn-jobboard {
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 700;
    margin-left: 10px;
}

.filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* Optional: adds spacing between form and button */
    margin-bottom: 1rem; /* Optional: spacing below the filter */
    width: 90%;
    margin: 20px auto;
}
  
#jobFilterForm {
    flex-grow: 1; /* allows the form to expand if needed */
}

select.styled-select {
    background-color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #422800;
    border-radius: 5px;
    /* background-color: #f0f8ff; */
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select.styled-select:hover {
    border-color: #ddd;
}

select.styled-select:focus {
    outline: none;
    border-color: #c7a22a;
    box-shadow: 0 0 5px rgba(199, 160, 42, 0.5);
    background-color: #fff;
}

select.styled-select option {
    padding: 10px;
    font-size: 16px;
}

.clearFilter {
    background-color: #ddd;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: grey;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clearFilter:hover {
    text-decoration: underline;
}
  
/* button:hover {
    background-color: #422800
}   */

.jobboard {
    border-top: 1px solid #ddd;
    flex: 1 0 auto;
    display: flex;
    /* padding: 20px; */
    width: 90%;
    margin: 5px auto;
}
  
.job-list {
    flex: 0 0 30%;
    margin-right: 5px;
}

.job-count {
    padding: 8px;
}
  
/* Job Details nimmt Breite, sticky und scrollbar intern */
.job-details {
    flex: 1 0 70%;
    position: relative;
}
  
.sticky-details {
    position: sticky;
    top: 60px; /* Höhe Header berücksichtigen */
    max-height: calc(100vh - 100px); /* Viewport - Header - Footer */
    overflow-y: auto;
    padding: 10px 30px;
    /* border-left: 0.5px solid #ddd; */
    background: white;
    font-size: 16px;
}

.job_post {
    display: flex;
    flex-direction: row;     /* horizontal layout */
    align-items: center;     /* vertical center */
    gap: 10px;               /* space between columns */
    padding: 10px;
    font-family: "Assistant", sans-serif;            /* Abstand innen */
    width: 100%;                 /* Nutze volle Breite der Spalte */    
    border: 1.5px solid #ddd;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 8px;
}

.job_content_left {
  flex-grow: 1;            /* takes all leftover space */
}

.job_content_right {
  flex-shrink: 0;          /* don’t shrink */
}

.job_content_right img {
    border-radius: 5px;
}

.job_post:hover {
    background-color: #f7f6f6;
    /* border: 1px solid #422800; */
    transition: transform 0.5s ease;
    cursor: pointer;
}

.job_post.selected {
    /* border: 2px solid #422800; */
    background-color: #fff5dd;
}

.jobpost_jobtitle {
    color: #422800;
    margin: 5px 0;
}

.jobpost_jobtitle:hover {
    text-decoration: underline;
}

.info-row {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 18px;
    margin: 3px 0 0 0;
    padding: 0;
}

.company {
    font-size: 17px;
    font-weight: 500;
}

.tab-info {
    border: 1px solid #e6ccb2;
    border-radius: 8px;
    background-color: #e6ccb2;
    padding: 4px 10px;
    margin-top: 12px;
    width: 170px;
    color: #422800;
    font-weight: 600;
    text-align: center;
}

.jobpost_date {
    font-size: 14px;
    margin: 8px 0 0 0;
}

/* job details card */

.job_title_jD {
    font-size: 24px;
    font-weight: 600;
    margin-top: 2px;
}

.location_company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 18px;
    margin-bottom: 16px;
}

.company_jd {
    font-weight: 600;
}

a.application {
    display: inline-block; /* important for margin to take effect */
    margin-bottom: 20px;
}

.application {
    background-color: #ffbe0b;
    border: 2px solid #422800;
    border-radius: 10px;
    box-shadow: #422800 2px 2px 0 0;
    padding: 8px 24px;
    text-decoration: none;
    color: black;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.application:hover {
    background-color: #ffc420;
    transition: transform 0.5s down;
}

.informations {
    display: flex;
    gap: 12px
}

.tab-infos {
    border: 1px solid #e6ccb2;
    background-color: #e6ccb2;
    display: flex;
    padding: 5px 15px;
    border-radius: 24px;
    font-size: 16px;
    color: #422800;
    font-weight: 600;
}

.salary-range {
    background-color: rgb(253, 255, 162);
    border: 1px solid rgb(240, 255, 143);
    text-align: center;
}

.section-headings {
    font-size: 17px;
    padding-bottom: 10px;
}

.job_description, .company_overview, .qualifications, .benefits, .responsibilites {
    padding: 1rem;
    margin-top: 0.5em;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* jobpost detail */
.jobpost-detail-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px auto;
    padding: 10px;
    width: 90%;
}

@media (max-width: 992px) {
    .jobboard {
    flex-direction: column;
  }

  .job-list,
  .job-details {
    width: 100%;
    border: none;
  }

  .job-details {
    display: none;
  }

  .job_post {
    border-bottom: 1px solid #ccc;
  }
}

@media (max-width: 772px) {
    .heroCatch {
        font-size: clamp(2rem, 4.2vw, 3.8rem);
    }    

    .catchHelp {
        font-size: clamp(1rem, 2.1vw, 1.3rem);
    }

    .search-bar-jobboard {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 10px;
        gap: 10px;
        box-sizing: border-box;
    }

    .search-bar-field-jobboard,
    .search-btn-jobboard {
        width: 100% !important;
        max-width: 100%;
        margin: 0; 
        padding: 8px;
        font-size: 16px;
        border: 2px solid #422800;
        border-radius: 8px;
        box-sizing: border-box;
        display: block; 
    }

    .search-btn-jobboard {
        background-color: #ffc107;
        color: black;
        min-width: 0;
    }

    .divider {
        display: none;
    }
}    