/* =========================================================
   MEDIA PENTAGON – GLOBALER HEADER
   ========================================================= */

:root {
    --mp-header-bg: rgba(248, 250, 252, 0.96);
    --mp-header-bg-solid: #f8fafc;
    --mp-header-blue: #0b1f3a;
    --mp-header-blue-mid: #1d4ed8;
    --mp-header-blue-soft: #dbeafe;
    --mp-header-gold: #f59e0b;
    --mp-header-gold-light: #fbbf24;
    --mp-header-text: #0f172a;
    --mp-header-muted: #64748b;
    --mp-header-border: rgba(148, 163, 184, 0.35);
    --mp-header-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
    --mp-header-width: 1180px;
}

.mp-skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 0 0 10px 10px;
    background: var(--mp-header-blue);
    color: #fff;
    font-weight: 700;
    transition: top 0.2s ease;
}

.mp-skip-link:focus {
    top: 0;
}

.mp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--mp-header-bg);
    border-bottom: 1px solid var(--mp-header-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.mp-header.is-scrolled {
    background: rgba(248, 250, 252, 0.985);
    box-shadow: var(--mp-header-shadow);
}

.mp-header-accent {
    height: 4px;
    background:
        linear-gradient(
            90deg,
            var(--mp-header-blue) 0%,
            var(--mp-header-blue-mid) 38%,
            var(--mp-header-gold) 70%,
            var(--mp-header-gold-light) 100%
        );
}

.mp-header-container {
    width: min(100% - 40px, var(--mp-header-width));
    margin-inline: auto;
}

.mp-header-main {
    position: relative;
}

.mp-header-main .mp-header-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.mp-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: inherit;
    text-decoration: none;
}

.mp-brand-logo {
    width: min(300px, 28vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.14));
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.mp-brand:hover .mp-brand-logo {
    transform: translateY(-1px) scale(1.015);
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.18));
}

.mp-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 15px;
    border-left: 1px solid var(--mp-header-border);
    white-space: nowrap;
}

.mp-brand-line {
    color: var(--mp-header-muted);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.mp-brand-subline {
    color: var(--mp-header-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.mp-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mp-navigation-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mp-navigation-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 10px;
    color: var(--mp-header-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.mp-navigation-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--mp-header-blue-mid),
        var(--mp-header-gold)
    );
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.mp-navigation-link:hover,
.mp-navigation-link:focus-visible {
    color: var(--mp-header-blue);
    background: rgba(29, 78, 216, 0.06);
    transform: translateY(-1px);
}

.mp-navigation-link:hover::after,
.mp-navigation-link:focus-visible::after,
.mp-navigation-link.is-active::after {
    transform: scaleX(1);
}

.mp-navigation-link.is-active {
    color: var(--mp-header-blue);
    background: rgba(29, 78, 216, 0.07);
}

.mp-header-cta {
    min-height: 46px;
    padding: 10px 17px;
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        linear-gradient(
            135deg,
            var(--mp-header-gold),
            var(--mp-header-gold-light)
        );
    color: #3f2600;
    box-shadow:
        0 8px 20px rgba(245, 158, 11, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.mp-header-cta:hover,
.mp-header-cta:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.035);
    box-shadow:
        0 12px 26px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mp-header-cta-arrow {
    font-size: 1.05rem;
    transition: transform 0.18s ease;
}

.mp-header-cta:hover .mp-header-cta-arrow {
    transform: translateX(3px);
}

.mp-menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--mp-header-border);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    color: var(--mp-header-blue);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.mp-menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}

.mp-header.menu-open .mp-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mp-header.menu-open .mp-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mp-header.menu-open .mp-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mp-header-status {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(
            90deg,
            rgba(11, 31, 58, 0.98),
            rgba(15, 23, 42, 0.98)
        );
    color: #cbd5e1;
}

.mp-header-status-inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
}

.mp-status-item,
.mp-status-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mp-status-link {
    margin-left: auto;
    color: #fde68a;
    font-weight: 700;
    text-decoration: none;
}

.mp-status-link:hover {
    color: #fff3bf;
    text-decoration: underline;
}

.mp-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.mp-status-separator {
    width: 1px;
    height: 13px;
    background: rgba(203, 213, 225, 0.25);
}

@media (max-width: 1100px) {
    .mp-brand-copy {
        display: none;
    }

    .mp-brand-logo {
        width: 260px;
    }

    .mp-navigation {
        gap: 12px;
    }

    .mp-navigation-link {
        padding-inline: 8px;
        font-size: 0.82rem;
    }
}

@media (max-width: 900px) {
    body.mp-menu-lock {
        overflow: hidden;
    }

    .mp-header-main .mp-header-container {
        min-height: 76px;
    }

    .mp-brand-logo {
        width: min(270px, 68vw);
    }

    .mp-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .mp-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 108px);
        overflow-y: auto;
        padding: 16px 20px 22px;
        border-top: 1px solid var(--mp-header-border);
        border-bottom: 1px solid var(--mp-header-border);
        display: grid;
        gap: 15px;
        background: rgba(248, 250, 252, 0.99);
        box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
    }

    .mp-header.menu-open .mp-navigation {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mp-navigation-list {
        display: grid;
        gap: 5px;
    }

    .mp-navigation-link {
        width: 100%;
        min-height: 48px;
        padding: 11px 14px;
        border: 1px solid rgba(148, 163, 184, 0.22);
        background: #fff;
        font-size: 0.94rem;
    }

    .mp-navigation-link::after {
        left: 14px;
        right: auto;
        width: 42px;
    }

    .mp-header-cta {
        min-height: 50px;
    }

    .mp-header-status-inner {
        justify-content: center;
    }

    .mp-header-status-inner .mp-status-separator,
    .mp-header-status-inner .mp-status-item:nth-of-type(2) {
        display: none;
    }

    .mp-status-link {
        margin-left: 8px;
    }
}

@media (max-width: 560px) {
    .mp-header-container {
        width: min(100% - 24px, var(--mp-header-width));
    }

    .mp-header-main .mp-header-container {
        min-height: 70px;
    }

    .mp-brand-logo {
        width: min(230px, 66vw);
    }

    .mp-menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .mp-header-status-inner {
        min-height: 28px;
        font-size: 0.65rem;
    }

    .mp-status-link {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-header *,
    .mp-header *::before,
    .mp-header *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   ZWEITE NAVIGATIONSZEILE
   ========================================================= */
.mp-secondary-navigation {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.mp-secondary-navigation-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    /*
       Desktop: Start ungefähr unter "Projekte".
       Die Zeile bleibt bewusst offen für weitere Links.
    */
    padding-left: 52%;
}

.mp-secondary-navigation-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 8px;
    color: var(--mp-header-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.mp-secondary-navigation-link::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mp-header-blue-mid), var(--mp-header-gold));
    transform: scaleX(0);
    transition: transform .18s ease;
}

.mp-secondary-navigation-link:hover,
.mp-secondary-navigation-link:focus-visible,
.mp-secondary-navigation-link.is-active {
    color: var(--mp-header-blue);
    background: rgba(29, 78, 216, 0.06);
    transform: translateY(-1px);
}

.mp-secondary-navigation-link:hover::after,
.mp-secondary-navigation-link:focus-visible::after,
.mp-secondary-navigation-link.is-active::after {
    transform: scaleX(1);
}

@media (max-width: 900px) {
    .mp-secondary-navigation {
        display: none;
    }

    /* Games wandert mobil in das aufgeklappte Hauptmenü. */
    .mp-navigation-list::after {
        content: "🎮  Games";
        display: none;
    }
}


.mp-games-mobile-link {
    display: none;
}

@media (max-width: 900px) {
    .mp-games-mobile-link {
        display: list-item;
    }
}

/* =========================================================
   MEDIA PENTAGON – ZWEITE LINKZEILE / GAMES
   ========================================================= */

.mp-secondary-navigation {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.mp-secondary-navigation-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding-left: 52%;
}

.mp-secondary-navigation-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 8px;
    color: var(--mp-header-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.mp-secondary-navigation-link::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mp-header-blue-mid), var(--mp-header-gold));
    transform: scaleX(0);
    transition: transform .18s ease;
}

.mp-secondary-navigation-link:hover,
.mp-secondary-navigation-link:focus-visible,
.mp-secondary-navigation-link.is-active {
    color: var(--mp-header-blue);
    background: rgba(29, 78, 216, 0.06);
    transform: translateY(-1px);
}

.mp-secondary-navigation-link:hover::after,
.mp-secondary-navigation-link:focus-visible::after,
.mp-secondary-navigation-link.is-active::after {
    transform: scaleX(1);
}

.mp-games-mobile-link {
    display: none;
}

@media (max-width: 900px) {
    .mp-secondary-navigation {
        display: none;
    }

    .mp-games-mobile-link {
        display: list-item;
    }
}

