/* Page Container */
.about-page {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 25%, #f1f3f8 75%, #e8ecf4 100%);
    min-height: 100vh;
}

/* Page Header */
.about-header {
    text-align: center;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--horizontal-padding);
    margin-bottom: calc(var(--sections-vertical-spacing) * 2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.about-title {
    margin: 0;
    margin-bottom: 15px;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2b4670, transparent);
    border-radius: 2px;
}

.about-section-wrapper {
    padding-top: 40px;
}

.berufstatigkeit-section-image {
    background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url('../images/ÜberMich/IMG_7617.jpg');
    background-position: 50% -13%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Apple devices (iOS Safari) - use scroll with center positioning */
@supports (-webkit-touch-callout: none) {
    .berufstatigkeit-section-image {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.weiterbildung-section-image {
    background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url('../images/ÜberMich/Firefly 20250605065340-rotated-cut-with-books-up-19.png');
    background-position: 50% 0%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
}

/* Apple devices (iOS Safari) - use scroll with center positioning */
@supports (-webkit-touch-callout: none) {
    .weiterbildung-section-image {
        background-attachment: scroll;
        background-position: top center;
        background-size: cover;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.weiterbildung-section-image .about-section {
    position: relative;
    z-index: 40 !important;
}

.about-section {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--horizontal-padding);
    padding-bottom: calc(var(--sections-vertical-spacing) * 2.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.about-section-wrapper .about-section {
    padding-bottom: calc(var(--sections-vertical-spacing) * 2.5);
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.about-section:nth-child(2) {
    animation-delay: 0.4s;
}
.about-section:nth-child(3) {
    animation-delay: 0.6s;
}
.about-section:nth-child(4) {
    animation-delay: 0.8s;
}
.about-section:nth-child(5) {
    animation-delay: 1s;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title span {
    background: #f8f9fc;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    display: inline-block;
    line-height: 1.2;
    vertical-align: middle;
    border-radius: 50px;
    padding-bottom: 8px;
}

.career-timeline {
    position: relative;
    padding: 40px 0px 1px 0px;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--header-background-color), #2b4670);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    align-items: center;
}

.timeline-year {
    flex-shrink: 0;
    width: 120px;
    text-align: right;
    margin-right: 11px;
    font-weight: 600;
}

.timeline-point {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    background: var(--header-background-color);
    border-radius: 50%;
    margin-right: 30px;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(34, 58, 94, 0.2);
}

.timeline-content {
    max-width: 1070px;
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(34, 58, 94, 0.1);
    border-left: 4px solid var(--header-background-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(34, 58, 94, 0.15);
}

.timeline-content p {
    margin: 0;
}

.education-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media screen and (max-width: 750px) {
    .education-section {
        grid-template-columns: 1fr;
    }
}

.education-image {
    text-align: center;
}

.education-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(34, 58, 94, 0.15);
    transition: all 0.4s ease;
}

.education-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(34, 58, 94, 0.2);
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.education-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(34, 58, 94, 0.1);
    border-top: 4px solid #2b4670;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(34, 58, 94, 0.15);
}

.education-year {
    margin-bottom: 10px;
}

.education-title {
    margin-bottom: 8px;
}

.education-institution {
    margin-bottom: 10px;
    font-style: italic;
}

.education-link {
    color: #2b4670;
    text-decoration: underline;
}

.continuing-education {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

.continuing-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.continuing-item {
    max-width: 530px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(34, 58, 94, 0.08);
    border-left: 3px solid #2b4670;
    transition: all 0.3s ease;
}

.continuing-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(34, 58, 94, 0.12);
    border-left-color: var(--header-background-color);
}

.continuing-title {
    margin-bottom: 10px;
}

.continuing-detail {
    margin-bottom: 5px;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
    gap: 25px;
}

.publication-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(34, 58, 94, 0.08);
    border-top: 3px solid var(--header-background-color);
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(34, 58, 94, 0.12);
}

.publication-title {
    margin-bottom: 8px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1300px) {
    .weiterbildung-section-image {
        background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
            url('../images/ÜberMich/Firefly 20250605065340-rotated-cut-with-books-up-19.png');
        background-position: 50% 0%;
        background-attachment: fixed;
        background-repeat: no-repeat;
    }

    /* Apple devices (iOS Safari) - use scroll with center positioning */
    @supports (-webkit-touch-callout: none) {
        .weiterbildung-section-image {
            background-attachment: scroll;
            background-position: top center;
            background-size: cover;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        }
    }
}

@media screen and (max-width: 800px) {
    .timeline-year {
        width: 65px;
    }

    .timeline-point {
        margin-right: 20px;
    }

    .career-timeline::before {
        left: 85px;
    }
}

@media screen and (max-width: 750px) {
    .publications-grid {
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: center;
    }

    .publication-item {
        max-width: 390px;
    }
}

@media screen and (max-width: 600px) {
    .timeline-content p {
        text-align: center;
    }
}
