﻿
/* Wait cursor */
#waitCursor {
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 99;
    font-size: 40px;
}

#waitCursor span {
    margin-top: 40px;
    text-align: center;
    width: 100%;
}

/* base layout */
.jobContainer {
    display: flex;
    gap: 40px;
}

.jobFilterContainer {
    align-self: flex-start;
    position: relative;
}

.jobListContainer {
    flex: 1;
}

#jobCountDisplay {
    margin-bottom: 20px;
    margin-left: 10px;
}

/* Filter */

.jobFilterContainer {
    background-color: var(--ThemeLightColor);
    border-radius: 15px;
}

.jobFilterContent {
    padding: 20px 30px 30px 25px;
}

.jobFilterContainer h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.jobFilterContainer label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.jobFilterContainer input[type="text"],
.jobFilterContainer select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#jobFilterSearchButton {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
    width: 100%;
    margin-top: 5px
}

.jobFilterContainer i {
    font-size: 20px;
    color: #fff;
}

.jobFilterTitle {
    display: none;
}

#clearFilterLink {
    display: block;
    margin-top: 5px;
    text-decoration: none;
}

#clearFilterLink:hover {
    text-decoration: underline;
}

#expandFilterButton {
    position: absolute;
    top: 15px;
    right: 15px; 
    display: none;
}


/* Job object*/
.jobObject {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 7px;
}

.jobObject:hover {
    background-color: var(--ThemeLightColor);
}

.jobObject:hover a {
    text-decoration: none;
}

.jobObjectTitle {
    margin-bottom: 7px;
}

.jobObjectTitle h2 {
    font-size: 21px;
    bottom: 0;
}

.jobObjectJobTypeInfo {
    display: flex;
    gap: 8px;
    color: #333;
}

.jobObjectJobType {
    display: flex;
    align-items: center;
    gap: 5px; 
    padding: 3px 8px; 
    font-size: 14px; 
    line-height: 1.4; 
    border-radius: 12px; 
    white-space: nowrap;
}


/* Job type background based on icon */
.jobObjectJobType:has(.jobtype-festanstellung) {
    background-color: rgba(28, 119, 189, 0.12);
}

.jobObjectJobType:has(.jobtype-temporar) {
    background-color: rgba(184, 206, 40, 0.14);
}

.jobObjectJobType:has(.jobtype-praktikum) {
    background-color: rgba(245, 158, 11, 0.14);
}

.jobObjectJobType:has(.jobtype-lehrstelle) {
    background-color: rgba(230, 57, 70, 0.14);
}

.jobObjectJobType:has(.jobtype-minijob) {
    background-color: rgba(111, 66, 193, 0.14);
}

.jobObjectJobType:has(.jobtype-aufabruf) {
    background-color: rgba(23, 162, 184, 0.14);
}

/* Icon size and spacing */
.jobObjectJobType i {
    font-size: 14px;
    margin-right: 4px;
}

/* Icon colors */
.fa-solid.jobtype-festanstellung {
    color: #1c77bd;
}

.fa-solid.jobtype-temporar {
    color: #b8ce28;
}

.fa-solid.jobtype-praktikum {
    color: #f59e0b;
}

.fa-solid.jobtype-lehrstelle {
    color: #e63946;
}

.fa-solid.jobtype-minijob {
    color: #6f42c1;
}

.fa-solid.jobtype-aufabruf {
    color: #17a2b8;
}



body:not(.home) .jobObject:hover .jobObjectJobType {
    background-color: #F9F9F9;
}

.jobObjectDescription {
    margin-top: 5px;
    font-size: 18px;
    color: var(--CSSColor);
}

.jobObjectAdditionalInfoContainer {
    color: #707070;
    font-size: 16px;
    margin-top: 7px;
}

.jobObjectDate {
    display: inline-block;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #707070
}

.jobObjectCity {
    display: inline-block;
}

.jobObjectCanton {
    display: inline-block;
}


.jobObjectAdditionalInfoPart2
{
    margin-top: 5px;
}

.jobObjectPensum {
    display: inline-block;
    display: inline-block;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #707070
}

.jobObjectEmploymentPeriod {
    display: inline-block;
}

/* Job objects on home page */

/* Container for job list */
.home .jobListContainer #jobList {
    display: flex;
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    gap: 20px; /* space between cards */
    margin: 0;
    padding: 0;
}

/* Individual job card */
.home .jobObject {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(33.333% - 20px); /* 3 cards per row minus gap */
    display: flex;
    flex-direction: column;
}

.home .jobObject:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.home .jobObjectLink {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home .jobObjectTitle {
    padding: 15px 15px 0 15px;
}

.home .jobObjectJobTypeInfo {
    padding-left: 15px;
}

.home .jobObjectDescription,
.home .jobObjectAdditionalInfoContainer {
    padding: 15px;
}

.home .jobObjectTitle h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.home .jobObjectDescription {
    font-size: 14px;
    flex-grow: 1;
}

.home .jobObjectAdditionalInfoContainer {
    font-size: 13px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.home .jobObjectDate {
    display: block;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.home .jobObjectCity {
    display: block;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.home .jobObjectPensum {
    display: block;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.home .jobObjectAdditionalInfoPart2 {
    margin-top: 0;
}

.home #jobCountDisplay
{
    display: none;
}

.home .jobListContainer {
    margin-top: 25px;
    margin-bottom: 20px;
}



@media (max-width: 1023.9px) {

    .jobContainer {
        flex-direction: column;
        gap: 10px;
    }

    .jobFilterContainer {
        width: 100%;
        flex: none;
    }

    .home .jobObject {
        flex: 1 1 100%;
    }

    .jobObjectAdditionalInfoPart2,
    .home .jobObjectAdditionalInfoPart2 {
        margin-top: 0;
    }

    .jobObjectDate,
    .home .jobObjectDate {
        display: block;
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }

    .jobObjectCity,
    .home .jobObjectCity {
        display: block;
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }

    .jobObjectPensum,
    .home .jobObjectPensum {
        display: block;
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }
}


@media (max-width: 767.9px) {
    
    .jobFilterContent {
        padding: 50px 30px 30px 25px;
    }

    .jobListContainer {
        width: 100%;
    }

    #jobFilterJobCategoryContainer {
        display: none;
    }

    #expandFilterButton {
        display: inline-block;
    }

    .jobObjectTitle h2 {
        font-size: 18px;
    }

    .jobObjectDescription {
        font-size: 16px;
    }

    .jobObjectAdditionalInfoContainer {
        font-size: 15px;
    }
}

