@font-face {
  font-family: 'MyLocalFont';
  src: url('../fonts/Figtree.ttf') format('truetype');
}
p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere; /* Fallback, damit lange Wörter nicht layouten sprengen */
  word-break: normal;
}
.flex-container {
    display: flex;
    justify-content: space-between;
    justify-items: baseline;
}

.page-header-root {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    background-color: var(--mud-palette-background);
    color: white;
}

/* Hintergrundbild als unterste Ebene */
.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-items: center;
    align-items: center;
    opacity: 0.9;
    z-index: 1;
}

    .page-header-bg::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100px;
        background: linear-gradient( to bottom, rgba(255, 255, 255, 0), var(--mud-palette-background) );
        pointer-events: none;
        z-index: 2;
    }

/* Durchgängiger blauer Balken */
.page-header-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 140px;
    transform: translateY(-50%);
    background-color: rgba(18, 65, 92, 0.6);
    z-index: 2;
}

/* Inhaltsebene */
.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 48px;
}

/* Textbereich links */
.page-header-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 760px;
    z-index: 99;
}

/* MudText h1 */
.page-header-title {
    font-weight: 600;
    line-height: 1.15;
    font-size: 4em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    
}

/* Rechter Bereich für Bild + Icon */
.page-header-media {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 260px;
}

/* Rechtes Bild */
.page-header-image-container {
    display: flex;
    align-items: center ;
    justify-content: center;
}

.page-header-image {
    display: block;
    max-height: 175px;
    max-width: 500px;
    z-index: 3;  
}

/* Rechtes Icon */
.page-header-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-icon {
    display: block;
    max-height: 180px;
    max-width: 300px;
    z-index: 3;
}

/* Responsive Padding-Anpassung */
@media (max-width: 1280px) {
    .page-header-content {
        padding-left: 3rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }
    .page-header-title {
        font-weight: 500;
        font-size: 3em;
    }
}

@media (max-width: 800px) {
    .page-header-content {
        padding-top: 2rem;
        padding-left: 2rem;
        padding-bottom: 1rem;
    }
    .page-header-title {
        font-weight: 400;
        font-size: 2em;
    }
    .page-header-icon {
        max-height: 100px;
        max-width: 150px;
    }
    .page-header-image {
        display: block;
        max-height: 100px;
        max-width: 500px;
        z-index: 3;
    }
    .page-header-bar {
        top: 40%;
        height: 100px;
    }
    .page-header-media {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 100px;
    }
}
