/* Hero Section */
.multilingual-hero {
    background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url('../images/MehrsprachigeProjekte/iStock-692334250-1024.jpg');
    background-attachment: fixed;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    padding: var(--sections-vertical-spacing) var(--horizontal-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
}

@media screen and (min-width: 1000px) {
    .multilingual-hero {
        min-height: 100vh;
    }
}

/* Apple devices (iOS Safari) - use scroll with center positioning */
@supports (-webkit-touch-callout: none) {
    .multilingual-hero {
        background-attachment: scroll;
        background-position: bottom;
        background-size: cover;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.multilingual-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-content-width);
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-subtitle {
    margin-bottom: 40px;
}

/* Content Section */
.content-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 0.6s forwards;
}

.content-section-container {
    background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url('../images/MehrsprachigeProjekte/iStock-912783194.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Apple devices (iOS Safari) - use scroll with center positioning */
@supports (-webkit-touch-callout: none) {
    .content-section-container {
        background-attachment: scroll;
        background-position: center;
        background-size: cover;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.section-title {
    margin-top: 0px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 58, 94, 0.2), transparent);
    z-index: 1;
}

.section-title span {
    background: #ffffff;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.content-text {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(34, 58, 94, 0.12);
    border-left: 4px solid var(--header-background-color);
    transition: all 0.4s ease;
    border: 1px solid rgba(34, 58, 94, 0.08);
}

.content-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(34, 58, 94, 0.18);
}

.languages-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.languages-subtitle {
    text-align: center;
    margin: 0;
    position: relative;
}

.languages-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2b4670, transparent);
    border-radius: 1px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.language-item {
    background: white;
    padding: 18px 12px 18px 8px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(34, 58, 94, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(34, 58, 94, 0.15);
    border-left-color: var(--header-background-color);
}

.language-name {
    margin: 0;
    text-align: center;
}

/* Projects Links Section */
.projects-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: calc(var(--sections-vertical-spacing) * 2) var(--horizontal-padding);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 58, 94, 0.03));
    pointer-events: none;
}

.projects-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.projects-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1s forwards;
    margin-bottom: 40px;
    margin-top: 0px;
}

.projects-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.project-year {
    display: inline-block;
    padding: 12px 24px;
    background: var(--header-background-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-year:hover {
    background: #2b4670;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 58, 94, 0.3);
}

.project-year:hover::before {
    left: 100%;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .multilingual-hero {
        min-height: 60vh;
        padding: calc(var(--sections-vertical-spacing) * 1.5) var(--horizontal-padding);
    }

    .hero-title {
        margin-bottom: 15px;
    }

    .hero-subtitle {
        margin-bottom: 30px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title::before {
        height: 1px;
    }

    .section-title span {
        padding: 0 20px;
    }

    .projects-title {
        margin-bottom: 30px;
    }

    .content-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-text {
        padding: 30px 25px;
    }

    .languages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .language-item {
        padding: 16px 12px 16px 8px;
    }

    .projects-links {
        gap: 15px;
    }

    .project-year {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        margin-bottom: 12px;
    }

    .hero-subtitle {
        margin-bottom: 25px;
    }

    .section-title {
        margin-bottom: 25px;
    }

    .section-title span {
        padding: 0 15px;
    }

    .languages-subtitle::after {
        width: 40px;
        bottom: -6px;
    }

    .projects-title {
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .content-text {
        padding: 25px 20px;
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .language-item {
        padding: 15px 10px;
    }

    .projects-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .project-year {
        width: 100px;
        text-align: center;
        padding: 12px 18px;
        font-size: 13px;
    }
}
