/* =================================================================
   BREADCRUMB SECTION - White background above hero
   ================================================================= */

.breadcrumb-section {
    position: relative;
    width: 100%;
    background-color: #FFFFFF;
    padding: 16px 0;
    margin-top: 118px; /* Space for fixed header */
    border-bottom: 1px solid #E5E7EB;
}

.breadcrumb-section__nav {
    /* No additional styling needed */
}

/* =================================================================
   PAGE HERO SECTION - Navy background with title
   ================================================================= */

.page-hero-section {
    position: relative;
    width: 100%;
    background-color: rgba(0, 2, 51, 0.8); /* Navy from design system */
    color: #FFFFFF;
    padding: 80px 0;
    font-family: var(--font-lato, 'Lato', sans-serif);
}

/* =================================================================
   BACK LINK SECTION - For subsubpages (replaces hero)
   ================================================================= */

.back-link-section {
    position: absolute;
    z-index: 3;
    margin-top: 118px;
    width: 100%;
}
@media(max-width: 768px){
    .back-link-section {
        position: relative;
        margin-top: 50px;
    }
}

.back-link-section__content {
    position: relative;
    display: flex;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000233; /* Using design system navy */
    font-family: Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: normal;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.back-link__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.back-link:hover .back-link__icon {
    transform: translateX(-2px);
}

.back-link__text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--primär-violet);
}

/* =================================================================
   BREADCRUMBS
   ================================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb__link {
    font-family: var(--font-lato, 'Lato', sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb__link:hover {
    color: #000233; /* Navy on hover */
    text-decoration: underline;
}

.breadcrumb__current {
    font-family: var(--font-lato, 'Lato', sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #000233; /* Navy for current page */
}

.breadcrumb__separator {
    display: flex;
    align-items: center;
    margin: 0 4px;
}

.breadcrumb__arrow {
    width: 12px;
    height: auto;
}

.back-link-section .breadcrumb__arrow {
    transform: rotate(180deg);
}


/* =================================================================
   PAGE TITLE
   ================================================================= */

.page-hero-section__content {
    position: relative;
}

.page-hero-section__title {
    font-family: var(--font-montserrat, 'Montserrat', sans-serif);
    font-size: 48px;
    font-weight: bold;
    line-height: 58px;
    color: #FFFFFF !important;
    margin: 0;
    letter-spacing: 0;
    text-align: left;
    max-width: none;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Large desktop */
@media (min-width: 1400px) {
    .page-hero-section {
        padding: 156px 0;
    }

    .breadcrumb__link,
    .breadcrumb__current {
        font-size: 15px;
    }

    .page-hero-section__title {
        font-size: 56px;
        line-height: 66px;
    }
}

/* Desktop adjustments */
@media (max-width: 1200px) {
    .page-hero-section__title {
        font-size: 44px;
        line-height: 54px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .breadcrumb-section {
        margin-top: 70px;
        padding: 12px 0;
    }

    .back-link__text {
        font-size: 15px;
    }

    .back-link__icon {
        width: 18px;
        height: 18px;
    }

    .page-hero-section {
        padding: 80px 0;
    }

    .page-hero-section + .site-content{
        margin-top: 0;
    }

    .breadcrumb__link,
    .breadcrumb__current {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .breadcrumb-section {
        margin-top: 60px;
        padding: 10px 0;
    }

    .page-hero-section {
        padding: 40px 0;
    }

    .breadcrumb {
        gap: 6px;
    }

    .breadcrumb__separator {
        margin: 0 2px;
    }

    .breadcrumb__link,
    .breadcrumb__current {
        font-size: 12px;
    }

}

/* =================================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .page-hero-section {
        background-color: #000000;
        border-bottom: 2px solid #FFFFFF;
    }

    .page-hero-section__title {
        color: #FFFFFF;
    }

    .breadcrumb__link:hover {
        color: #FFFFFF;
    }

    .breadcrumb__current {
        color: #FFFFFF;
    }

    .breadcrumb__arrow {
        color: #CCCCCC;
    }

    .back-link {
        color: #000000;
    }

    .back-link:hover {
        color: #000000;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .breadcrumb__link,
    .back-link,
    .back-link__icon {
        transition: none;
    }

    .back-link:hover {
        transform: none;
    }

    .back-link:hover .back-link__icon {
        transform: none;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
    .page-hero-section {
        background: white !important;
        color: black !important;
        padding: 30px 0;
        border-bottom: 2px solid black;
        page-break-inside: avoid;
    }

    .page-hero-section__title {
        color: black !important;
        font-size: 24px;
        line-height: 30px;
    }

    .breadcrumb__link,
    .breadcrumb__current {
        font-size: 12px;
    }

    .breadcrumb__arrow {
        color: #333333 !important;
    }

    .breadcrumb__link {
        text-decoration: underline !important;
    }

    .back-link {
        color: #333333 !important;
        text-decoration: underline !important;
    }

    .back-link-section {
        background: white !important;
        border-bottom: 1px solid black !important;
    }
}
