/* Karriere Bereich - Modernes Design */
section#karriere {
    background-color: #cedada;
}

.career-section {
    font-family: 'Open Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.career-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.career-container {
    /* width: 90%; */
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* Header-Bereich */
.career-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.career-header h2 {
    font-size: 36px;
    color: #009a93;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.career-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 15px auto 0;
    border-radius: 2px;
}

.career-header h3 {
    font-family: "Open Sans", Helvetica, Arial, sans-serif !important;
    letter-spacing: normal;
}

.career-header p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

/* Job-Karten Container - Nebeneinander-Layout ab 1580px */
.career-cards-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
}

/* Job-Karte mit Animation */
.career-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Animation für Career-Cards - initial unsichtbar */
    opacity: 0;
    transform: translateY(30px);
}

/* Animation für Career-Cards wird sichtbar */
.career-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Sicherstellen, dass hover-Effekt auch bei sichtbaren Karten funktioniert */
.career-card.visible:hover {
    transform: translateY(-5px);
}

/* Farbakzent oben auf der Karte */
.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* Karten-Header */
.card-header {
    padding: 5px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.card-logo {
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.card-logo img {
    max-width: 180px;
    height: auto;
}

.card-title {
    text-align: center;
}

.card-title h4 {
    color: #009a93;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif !important;
}

.card-position {
    font-size: 30px;
    font-weight: 700;
    color: #009a93;
    margin-bottom: 5px;
    line-height: 1.4;
}

.card-subtitle {
    font-size: 18px;
    color: #009a93;
    margin-top: 5px;
}

/* Hauptcontainer für Bild und Inhalt */
.card-main-content {
    display: flex;
    flex: 1;
}

/* Bild-Container - jetzt links */
.card-image {
    position: relative;
    overflow: hidden;
    width: 40%;
    height: auto;
    min-height: 400px;
    border-radius: 0;
    margin-bottom: -5px;
    margin-top: -1px;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Erstes Bild (Zimmerer/Bauhelfer) - links ausgerichtet */
.card-zimmerer .card-image img {
    object-position: left center;
}

.career-card:hover .card-image img {
    transform: scale(1.05);
}

/* Karten-Inhalt - jetzt rechts neben dem Bild */
.card-content {
    padding: 30px;
    flex: 1;
    width: 60%;
}

.card-section {
    margin-bottom: 25px;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section h4 {
    color: #009a93;
    font-size: 18px !important;
    line-height: 1.6 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif !important;
}

.card-list {
    list-style: none;
    margin-left: 0;
    margin-bottom: 20px;
    padding-left: 15px;
}

.card-list li {
    position: relative;
    padding-left: 27px;
    margin-bottom: 8px;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.card-list li:last-child {
    margin-bottom: 0;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #009a93;
}

.card-ausbildung .card-position {
    font-size: 30px;
    margin-top: 10px;
}

.card-ausbildung .card-title h4 {
    letter-spacing: 1px;
}

.card-text {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Kontakt-Button mit Animation */
.career-contact {
    text-align: center;
    margin-top: 40px;
    /* Animation für Contact-Button - initial unsichtbar */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Animation für Contact-Button wird sichtbar */
.career-contact.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Anpassungen */
@media (max-width: 1580px) {
    /* Karten untereinander ab 1580px Bildschirmbreite */
    .career-cards-container {
        flex-direction: column;
    }
}

/* Bildbreite verkleinern zwischen 1050px und 1580px */
@media (max-width: 1580px) and (min-width: 1051px) {
    .card-image {
        width: 25%;
    }
    
    .card-content {
        width: 75%;
    }
}

@media (max-width: 992px) {
    .career-header h2 {
        font-size: 32px;
    }
}

/* Tablet-Ansicht - Bild bleibt links */
@media (max-width: 900px) and (min-width: 769px) {
    .card-content {
        padding: 25px;
    }
    
    .card-image {
        width: 35%;
        min-height: 350px;
    }
    
    .card-content {
        width: 65%;
    }
    
    .card-section h4 {
        font-size: 16px !important;
    }
    
    .card-list li {
        font-size: 15px !important;
    }
}

/* Mobile Ansicht - Bild zwischen Header und Inhalt */
@media (max-width: 768px) {
    .career-section {
        padding: 10px 0 25px 0;
    }

    .career-header {
        margin-bottom: 40px;
    }
    
    .career-header h2 {
        font-size: 28px;
    }
    
    .career-header p {
        font-size: 16px;
    }
    
    /* Untereinander auf mobilen Geräten */
    .career-cards-container {
        flex-direction: column;
    }
    
    /* Karten-Layout für Mobile umstrukturieren */
    .career-card {
        display: flex;
        flex-direction: column;
    }
    
    .card-header {
        order: 1;
    }
    
    .card-image {
        order: 2;
        width: 100%;
        height: 400px;
        min-height: 350px;
        margin: 0 0 10px 0;
        border-radius: 0;
        position: relative;
    }
    
    .card-main-content {
        order: 3;
        display: block;
    }
    
    .card-content {
        width: 100%;
        padding: 25px;
    }

    .card-ausbildung .card-image img {
        object-position: center top;
    }
}

@media (max-width: 480px) {
    .career-header h2 {
        font-size: 24px;
    }
    
    .card-position {
        font-size: 24px;
    }
    
    .card-image {
        height: 320px;
        min-height: 320px;
    }
}