/* Profilbild-Höhe erhöhen */
#lebenslauf-container .text-center img {
    width: 240px; /* Behalte die Breite bei */
    height: 300px; /* Erhöhe die Höhe des Bildes */
    object-fit: cover;
    border-radius: 8px;
}

.edu-header {
    display: flex;
    align-items: baseline;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.edu-header strong {
    font-weight: bold;
    margin-right: 0.3rem;
}

.edu-header .institution strong {
    font-weight: bold;
}

.job-header {
    display: flex;
    align-items: baseline; /* Oder center, wenn du’s ganz gerade willst */
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.job-header strong {
    font-weight: bold;
    margin-right: 0.3rem;
}

.job-header .arbeitgeber {
    font-weight: normal;
}

.cv-section {
    background-color: white;
    padding: 2rem 0;
}

.cv-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cv-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-table td {
    vertical-align: top;
    padding-bottom: 1.5rem;
}

.cv-date {
    width: 140px;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    padding-right: 1rem;
    padding-left: 1rem;
    text-align: left;

    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    text-decoration: none;
    color: inherit;
}

/* Listen in Tabellen */
.cv-table ul {
    padding-left: 1.2rem;
    margin: 0;
}

.cv-table li {
    margin-bottom: 0.3rem;
}

.cv-section ul {
    padding-left: 1.7rem;
    margin: 0;
    font-weight: normal;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.cv-table td > strong {
    font-size: 16px;
    display: inline-block;
    margin-bottom: 6px; /* Abstand von Bold table schrift */
}

.cv-section li {
    margin-bottom: 0.3rem;
    font-weight: normal;
}

.referenzen-titel_custom {
    color: #12407A;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 16px;
}

/* Responsive Anpassung */
@media (max-width: 768px) {

    .cv-table td,
    .cv-table td > *,
    .job-header,
    .cv-section p,
    .cv-section ul,
    .cv-section li {
        text-align: left !important;
    }

    /* Allgemeine Anpassungen für kleine Bildschirme */
    .cv-table {
        display: block;
        width: 100%;
    }

    .cv-table tr {
        display: block;
        margin-bottom: 2rem;
    }

    .cv-table td {
        display: block;
        width: 100%;
        padding: 0.3rem 0;
    }

    .cv-date {
        font-size: 0.95rem;
        padding: 0;
        margin-bottom: 0.4rem;
    }

    .cv-table td > strong {
        font-size: 1rem;
        display: block;
        margin-bottom: 0.3rem;
    }

    .cv-table li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-left: 1.2rem;
    }

    .cv-section ul {
        padding-left: 1.2rem;
    }

    #lebenslauf-container {
        margin-top: -5rem; /* Verringert den Abstand oben auf Handys */
    }

    #lebenslauf-container .text-center img {
        height: 250px; /* Bildhöhe für kleinere Geräte */
        margin-top: -1rem; /* Bild auf mobilen Geräten richtig positionieren */
    }

    .job-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.2rem;
    }

    .job-header strong,
    .job-header .arbeitgeber {
        display: block;
        margin: 0;
    }
}

/* Für größere Bildschirme (ab 769px) */
@media (min-width: 769px) {
    #lebenslauf-container .text-center img {
        height: 300px; /* Bildhöhe für größere Geräte */
        margin-top: -8rem; /* Weniger Abstand auf Desktop-Bildschirmen */
    }
}