/* --- PORTAL: KOMPAKTE LETZTE ÜBERTRAGUNG + DEZENTER BANNER --- */
.latest-transmission-section {
    margin: 42px auto 18px;
    padding: 22px 26px;
}

.latest-transmission-section h2 {
    margin-bottom: 0;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-link,
.news-read-more {
    color: var(--rh-red, #ff3c3c);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-link:hover,
.news-read-more:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--rh-red-glow, rgba(255, 60, 60, 0.4));
}

.latest-news-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.latest-news-item h3 {
    margin: 0 0 5px;
}

.latest-news-item p {
    margin-bottom: 12px;
    max-height: 6.2em;
    overflow: hidden;
}

.portal-banner-slot {
    width: min(800px, 90%);
    margin: 0 auto 44px;
    text-align: left;
}

.portal-banner-label {
    display: inline-block;
    margin: 0 0 7px 14px;
    color: #777;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portal-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 92px;
    padding: 18px 24px;
    border: 1px solid rgba(255, 209, 102, 0.28);
    border-left: 4px solid #ffd166;
    background:
        linear-gradient(120deg, rgba(255, 209, 102, 0.12), rgba(255, 60, 60, 0.035)),
        rgba(255, 255, 255, 0.025);
    color: #ddd;
    text-decoration: none;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.portal-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.55);
    background:
        linear-gradient(120deg, rgba(255, 209, 102, 0.17), rgba(255, 60, 60, 0.055)),
        rgba(255, 255, 255, 0.035);
}

.portal-banner-kicker {
    color: #ffd166;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal-banner strong {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.portal-banner span:last-child {
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .latest-transmission-section {
        margin-top: 24px;
        padding: 20px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .portal-banner-slot {
        margin-bottom: 28px;
    }

    .portal-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
    }
}


/* --- PORTAL: ÖFFENTLICHE INFO-KARTEN FÜR APPROVAL/SEO --- */
.portal-info-grid {
    width: min(900px, 90%);
    margin: 0 auto 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
}

.portal-info-card {
    padding: 18px 18px 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(255, 60, 60, 0.4);
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.24);
}

.portal-info-kicker {
    color: var(--rh-red, #ff3c3c);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.portal-info-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.portal-info-card p {
    margin: 0;
    color: #aaa;
    line-height: 1.55;
    font-size: 0.92rem;
}

.portal-footer {
    text-align: center;
}

.portal-footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portal-footer-links a {
    color: #777;
    text-decoration: none;
}

.portal-footer-links a:hover {
    color: var(--rh-red, #ff3c3c);
    text-shadow: 0 0 8px var(--rh-red-glow, rgba(255, 60, 60, 0.4));
}

.portal-footer-links span {
    color: #333;
}

.legal-page .hero {
    padding-left: 340px;
    padding-right: 340px;
}

.legal-panel {
    width: min(860px, 92vw);
    margin: 35px auto 70px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 60, 60, 0.14);
    border-left: 4px solid var(--rh-red, #ff3c3c);
    text-align: left;
}

.legal-panel h1,
.legal-panel h2 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.legal-panel h1 {
    margin-top: 0;
    color: #fff;
}

.legal-panel h2 {
    margin-top: 28px;
    color: var(--rh-red, #ff3c3c);
    font-size: 0.95rem;
}

.legal-panel p,
.legal-panel li {
    color: #c8c8c8;
    line-height: 1.65;
}

.legal-note {
    padding: 14px 16px;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.22);
    color: #ffd166 !important;
}

.legal-backlink {
    display: inline-flex;
    margin-top: 24px;
    color: #aaa;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legal-backlink:hover {
    color: var(--rh-red, #ff3c3c);
}

@media (max-width: 992px) {
    .portal-info-grid {
        grid-template-columns: 1fr;
        margin-bottom: 28px;
    }

    .legal-page .hero {
        padding-left: 0;
        padding-right: 0;
    }

    .legal-panel {
        padding: 26px 22px;
        margin-top: 20px;
    }
}

/* --- PORTAL: COOKIE-/WERBE-CONSENT --- */
.rh-consent-banner[hidden],
.rh-consent-modal[hidden] {
    display: none !important;
}

.rh-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 120000;
    width: min(920px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(10, 10, 15, 0.96);
    border: 1px solid rgba(255, 60, 60, 0.35);
    border-left: 4px solid var(--rh-red, #ff3c3c);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 60, 60, 0.12);
    backdrop-filter: blur(14px);
    text-align: left;
}

.rh-consent-content strong,
.rh-consent-modal-box h2 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.rh-consent-content p,
.rh-consent-modal-box p {
    margin: 8px 0 0;
    color: #b8b8b8;
    line-height: 1.45;
}

.rh-consent-kicker {
    margin-bottom: 5px;
    color: var(--rh-red, #ff3c3c);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rh-consent-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rh-consent-links a,
.rh-consent-choice a {
    color: #ffd166;
    text-decoration: none;
}

.rh-consent-links a:hover,
.rh-consent-choice a:hover {
    color: #fff;
}

.rh-consent-actions,
.rh-consent-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.rh-consent-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 11px 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rh-consent-btn:hover {
    transform: translateY(-1px);
}

.rh-consent-btn.primary {
    background: var(--rh-red, #ff3c3c);
    border-color: var(--rh-red, #ff3c3c);
    color: #050508;
}

.rh-consent-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.rh-consent-btn.ghost {
    background: transparent;
    color: #aaa;
}

.rh-consent-btn.secondary:hover,
.rh-consent-btn.ghost:hover {
    border-color: rgba(255, 60, 60, 0.55);
    color: #fff;
}

.rh-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 120001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
}

.rh-consent-modal-box {
    position: relative;
    width: min(620px, 94vw);
    padding: 28px;
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid rgba(255, 60, 60, 0.36);
    border-left: 4px solid var(--rh-red, #ff3c3c);
    box-shadow: 0 0 42px rgba(0, 0, 0, 0.8);
    text-align: left;
}

.rh-consent-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.rh-consent-choice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin: 18px 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.rh-consent-choice.disabled {
    cursor: default;
    opacity: 0.78;
}

.rh-consent-choice input {
    margin-top: 4px;
    accent-color: var(--rh-red, #ff3c3c);
}

.rh-consent-choice strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.rh-consent-choice small {
    display: block;
    color: #aaa;
    line-height: 1.45;
}

.portal-ad-privacy-note {
    margin-top: 8px;
    color: #777;
    font-size: 0.78rem;
    text-align: center;
}

.portal-banner-slot[data-ad-consent-state="accepted"] .portal-ad-privacy-note {
    color: #9bdcaa;
}

.portal-banner-slot[data-ad-consent-state="essential"] .portal-ad-privacy-note {
    color: #b8a56c;
}

@media (max-width: 992px) {
    .rh-consent-banner {
        grid-template-columns: 1fr;
        bottom: 10px;
        padding: 16px;
    }

    .rh-consent-actions,
    .rh-consent-modal-actions {
        justify-content: stretch;
    }

    .rh-consent-btn {
        flex: 1 1 100%;
    }

    .rh-consent-modal-box {
        padding: 24px 18px;
    }
}

/* --- PORTAL AUTH: PASSWORT-RESET --- */
.auth-note {
    color: #aaa;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 10px 0 0;
    text-align: left;
}


/* --- PORTAL: LOGOS DIREKT AN DER SYSTEM-LINK-LEISTE --- */
body.portal-page .hud-top-bar {
    position: fixed;
    overflow: visible;
}

.hud-side-logo {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 34px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    opacity: 0.92;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.85));
}

.hud-side-logo-rh {
    left: 16px;
}

.hud-side-logo-cclp {
    right: 16px;
}

.hud-rh-emblem {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0d;
    font-size: 0.84rem;
    line-height: 1;
    background: linear-gradient(135deg, #ff4b4b, #8d1111);
    border: 1px solid rgba(255,255,255,0.32);
    clip-path: polygon(50% 0, 62% 31%, 97% 35%, 70% 56%, 79% 92%, 50% 73%, 21% 92%, 30% 56%, 3% 35%, 38% 31%);
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.5);
}

.hud-rh-emblem::before,
.hud-rh-emblem::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 26px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,60,60,0.85));
    opacity: 0.85;
}

.hud-rh-emblem::before {
    right: 100%;
    transform: skewX(-20deg);
}

.hud-rh-emblem::after {
    left: 100%;
    transform: skewX(20deg) scaleX(-1);
}

.hud-cclp-mark {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 209, 102, 0.88);
    background:
        linear-gradient(90deg, transparent 34%, rgba(255,209,102,0.94) 34% 42%, transparent 42% 51%, rgba(255,209,102,0.94) 51% 59%, transparent 59% 68%, rgba(255,209,102,0.94) 68% 76%, transparent 76%),
        radial-gradient(circle at 50% 50%, rgba(255,209,102,0.18), rgba(255,209,102,0.04) 54%, transparent 56%);
    box-shadow: 0 0 13px rgba(255, 209, 102, 0.3);
}

.hud-cclp-mark::after {
    content: "CCLP";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 231, 160, 0.86);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.43rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-shadow: 0 0 6px rgba(0,0,0,0.95);
}

@media (min-width: 993px) {
    body.portal-page .hud-top-bar {
        padding-left: 112px;
        padding-right: 112px;
    }
}

@media (max-width: 992px) {
    .hud-side-logo {
        display: none;
    }
}

/* --- PORTAL: COMMUNITY PROJECT STRIP ---
   Kleiner Branding-Streifen unter der vorhandenen SYSTEM-LINK-Leiste.
   Feste, sichere Breite: nicht unter linkes Menü oder rechten Chat.
   Kein Weltraum, kein Header-Screenshot, keine Menüelemente im Banner.
*/
body.portal-page::before {
    content: none !important;
    display: none !important;
}

.community-project-strip {
    position: fixed;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 890;
    width: min(760px, calc(100vw - 700px));
    height: 38px;
    min-width: 620px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px;
    pointer-events: none;
    overflow: hidden;
    color: #e7e7e7;
    background:
        linear-gradient(90deg, rgba(255, 60, 60, 0.20), rgba(12, 12, 16, 0.88) 24%, rgba(12, 12, 16, 0.94) 50%, rgba(12, 12, 16, 0.88) 76%, rgba(255, 209, 102, 0.18)),
        radial-gradient(circle at 16% 50%, rgba(255, 60, 60, 0.25), transparent 34%),
        radial-gradient(circle at 84% 50%, rgba(255, 209, 102, 0.16), transparent 32%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 26px),
        rgba(5, 5, 8, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-top-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: rgba(255, 60, 60, 0.34);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 60, 60, 0.23);
    backdrop-filter: blur(9px);
}

.community-project-strip::before,
.community-project-strip::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.26), transparent);
    opacity: 0.75;
}

.community-project-strip::before {
    left: 37%;
}

.community-project-strip::after {
    right: 37%;
}

.community-strip-brand,
.community-strip-claim {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.community-strip-brand {
    gap: 9px;
    letter-spacing: 1.5px;
    font-size: 0.72rem;
    min-width: 0;
}

.community-strip-brand-rh {
    color: #f2f2f2;
    text-shadow: 0 0 10px rgba(255, 60, 60, 0.25);
}

.community-strip-brand-rh strong {
    color: var(--rh-red, #ff3c3c);
    font-weight: 900;
}

.community-strip-brand-cclp {
    color: #f4d06d;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.22);
}

.community-strip-brand-cclp strong {
    color: #ffd166;
    font-weight: 900;
}

.community-strip-emblem {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050508;
    background: linear-gradient(135deg, #ff3c3c, #9b1717);
    border: 1px solid rgba(255, 255, 255, 0.26);
    clip-path: polygon(50% 0, 62% 32%, 98% 35%, 69% 56%, 79% 92%, 50% 72%, 21% 92%, 31% 56%, 2% 35%, 38% 32%);
    font-size: 0.62rem;
    line-height: 1;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.34);
}

.community-strip-cclp-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d9af4d;
    background:
        linear-gradient(90deg, transparent 40%, #d9af4d 40% 48%, transparent 48% 58%, #d9af4d 58% 66%, transparent 66%),
        radial-gradient(circle, rgba(255, 209, 102, 0.15), transparent 62%);
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.24);
}

.community-strip-claim {
    justify-content: center;
    color: rgba(230, 230, 230, 0.78);
    font-size: 0.58rem;
    letter-spacing: 2.2px;
    min-width: 190px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

body.portal-page .hud-top-bar {
    background:
        linear-gradient(180deg, rgba(4, 4, 7, 0.82), rgba(10, 10, 15, 0.97)),
        var(--hud-bg, rgba(10, 10, 15, 0.85));
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.88),
        0 0 18px rgba(255, 60, 60, 0.13),
        inset 0 -1px 10px var(--rh-red-glow, rgba(255, 60, 60, 0.4));
}

body.portal-page .hero {
    position: relative;
    z-index: 1;
    padding-top: 138px;
}

@media (min-width: 993px) and (max-width: 1320px) {
    .community-project-strip {
        width: calc(100vw - 680px);
        min-width: 0;
        height: 36px;
        padding: 0 12px;
        gap: 8px;
    }

    .community-strip-brand {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .community-strip-claim {
        min-width: 150px;
        font-size: 0.50rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 992px) {
    .community-project-strip {
        top: 94px;
        width: min(540px, 92vw);
        min-width: 0;
        height: 34px;
        padding: 0 12px;
        gap: 9px;
        opacity: 0.94;
    }

    .community-strip-brand {
        font-size: 0.58rem;
        letter-spacing: 0.9px;
    }

    .community-strip-claim {
        min-width: auto;
        font-size: 0.47rem;
        letter-spacing: 1.2px;
    }

    .community-strip-emblem,
    .community-strip-cclp-mark {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 560px) {
    .community-project-strip {
        top: 112px;
        height: 32px;
        width: 92vw;
    }

    .community-strip-claim {
        display: none;
    }

    .community-project-strip::before,
    .community-project-strip::after {
        display: none;
    }

    .community-strip-brand {
        font-size: 0.55rem;
    }
}


/* --- PORTAL: ECHTE LOGO-BILDER IM SYSTEM-LINK ---
   Nutzt die hochgeladenen Red-Horizon- und CCLP-Bilder als kleine HUD-Assets.
   Kein CSS-Ersatzlogo, keine Full-Width-Bannerfläche.
*/
.hud-side-logo {
    width: 108px;
    height: 36px;
    opacity: 0.96;
    overflow: hidden;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.95));
}

.hud-side-logo-rh {
    left: 12px;
    justify-content: flex-start;
}

.hud-side-logo-cclp {
    right: 12px;
    justify-content: flex-end;
}

.hud-side-logo-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 34px;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

@media (min-width: 993px) {
    body.portal-page .hud-top-bar {
        min-width: 760px;
        max-width: calc(100vw - 690px);
        padding-left: 126px;
        padding-right: 126px;
        gap: 26px;
    }
}

/* Community-Streifen nutzt nun ebenfalls echte Bilddateien statt CSS-Logo-Nachbau. */
.community-strip-brand {
    flex: 0 0 142px;
    justify-content: center;
    min-width: 0;
}

.community-strip-logo {
    display: block;
    max-width: 136px;
    width: 136px;
    height: 32px;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.9));
}

.community-strip-logo-cclp {
    max-width: 132px;
    width: 132px;
}

.community-strip-claim {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
}

@media (max-width: 1280px) and (min-width: 993px) {
    body.portal-page .hud-top-bar {
        min-width: 700px;
        max-width: calc(100vw - 640px);
        padding-left: 104px;
        padding-right: 104px;
        gap: 18px;
    }

    .hud-side-logo {
        width: 88px;
        height: 32px;
    }

    .hud-side-logo-img {
        height: 30px;
    }
}

@media (max-width: 992px) {
    .community-strip-logo {
        width: 104px;
        height: 26px;
    }

    .community-strip-brand {
        flex-basis: 104px;
    }
}

/* --- PORTAL: ORIGINAL-LOGOS LINKS/RECHTS DER ECHTEN SYSTEM-LINK-LEISTE ---
   Keine Mini-Schnipsel im HUD mehr: die echten Bildlogos sitzen in den freien
   Flanken links/rechts der vorhandenen System-Link-Leiste. Der Mittelstreifen
   bleibt bewusst klein und nur als dezente Projektkennzeichnung.
*/
body.portal-page .hud-top-bar {
    width: auto !important;
    min-width: 650px !important;
    max-width: none !important;
    padding: 12px 60px !important;
    gap: 40px !important;
}

.systemlink-logo-rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 112px;
    z-index: 920;
    pointer-events: none;
}

.systemlink-logo-panel {
    position: absolute;
    top: 4px;
    width: clamp(235px, 16vw, 320px);
    height: 82px;
    display: flex;
    align-items: center;
    opacity: 0.96;
    filter: drop-shadow(0 0 18px rgba(0,0,0,0.95));
}

.systemlink-logo-panel-rh {
    left: max(20px, calc(50% - 660px));
    justify-content: flex-start;
}

.systemlink-logo-panel-cclp {
    right: max(20px, calc(50% - 660px));
    justify-content: flex-end;
}

.systemlink-original-logo {
    display: block;
    width: 100%;
    max-height: 82px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.systemlink-original-logo-rh {
    object-position: left center;
}

.systemlink-original-logo-cclp {
    object-position: right center;
}

/* Dezenter Stripe direkt unter dem echten HUD, nicht als Logo-Banner. */
.community-project-strip {
    top: 72px !important;
    width: min(620px, calc(100vw - 760px)) !important;
    min-width: 420px !important;
    height: 24px !important;
    justify-content: center !important;
    padding: 0 26px !important;
    gap: 0 !important;
    background:
        linear-gradient(90deg, transparent, rgba(255,60,60,0.18) 10%, rgba(10,10,15,0.92) 28%, rgba(10,10,15,0.96) 50%, rgba(10,10,15,0.92) 72%, rgba(255,209,102,0.16) 90%, transparent),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 30px) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,60,60,0.42) !important;
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.55), inset 0 -1px 0 rgba(255,209,102,0.10) !important;
}

.community-project-strip::before,
.community-project-strip::after {
    display: none !important;
}

.community-strip-claim {
    flex: none !important;
    min-width: 0 !important;
    color: rgba(230,230,230,0.82) !important;
    font-size: 0.53rem !important;
    letter-spacing: 2.4px !important;
    text-align: center !important;
    justify-content: center !important;
}

.community-strip-claim strong {
    color: #ffd166;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255,209,102,0.25);
}

body.portal-page .hero {
    padding-top: 142px !important;
}

@media (max-width: 1520px) and (min-width: 993px) {
    .systemlink-logo-panel {
        width: clamp(185px, 14vw, 250px);
        height: 72px;
    }

    .systemlink-original-logo {
        max-height: 72px;
    }

    .systemlink-logo-panel-rh {
        left: max(14px, calc(50% - 590px));
    }

    .systemlink-logo-panel-cclp {
        right: max(14px, calc(50% - 590px));
    }

    .community-project-strip {
        width: min(540px, calc(100vw - 680px)) !important;
        min-width: 360px !important;
    }
}

@media (max-width: 1240px) and (min-width: 993px) {
    .systemlink-logo-panel {
        opacity: 0.72;
        width: 160px;
    }

    .community-project-strip {
        width: 420px !important;
        min-width: 320px !important;
    }
}

@media (max-width: 992px) {
    .systemlink-logo-rail {
        display: none;
    }

    .community-project-strip {
        top: 98px !important;
        width: min(520px, 88vw) !important;
        min-width: 0 !important;
        height: 24px !important;
    }

    .community-strip-claim {
        font-size: 0.48rem !important;
        letter-spacing: 1.5px !important;
    }
}

@media (max-width: 560px) {
    .community-project-strip {
        top: 116px !important;
        width: 86vw !important;
    }

    .community-strip-claim {
        font-size: 0.44rem !important;
        letter-spacing: 1px !important;
    }
}


/* --- FINAL FIX: echte Original-Logos außen, nicht im HUD und ohne Crop --- */
.systemlink-logo-rail {
    top: 0 !important;
    height: 126px !important;
    z-index: 930 !important;
    overflow: visible !important;
}

.systemlink-logo-panel {
    top: 2px !important;
    width: 360px !important;
    height: 118px !important;
    overflow: visible !important;
    opacity: 0.94 !important;
    filter: drop-shadow(0 0 16px rgba(0,0,0,0.95)) !important;
}

.systemlink-logo-panel-rh {
    left: clamp(24px, 6vw, 96px) !important;
    right: auto !important;
    justify-content: flex-start !important;
}

.systemlink-logo-panel-cclp {
    right: clamp(24px, 6vw, 96px) !important;
    left: auto !important;
    justify-content: flex-end !important;
}

.systemlink-original-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

.systemlink-original-logo-rh {
    object-position: left center !important;
}

.systemlink-original-logo-cclp {
    object-position: right center !important;
}

.community-project-strip {
    top: 74px !important;
    width: min(680px, calc(100vw - 720px)) !important;
    min-width: 440px !important;
    height: 26px !important;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255,60,60,0.20) 11%, rgba(12,12,18,0.94) 30%, rgba(18,15,13,0.98) 50%, rgba(12,12,18,0.94) 70%, rgba(255,209,102,0.20) 89%, transparent 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 34px) !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    border-bottom: 1px solid rgba(255,60,60,0.46) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.58), inset 0 0 16px rgba(255,60,60,0.035) !important;
}

.community-strip-claim {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: rgba(235,235,235,0.84) !important;
    font-size: 0.54rem !important;
    letter-spacing: 2.7px !important;
}

.community-strip-claim strong {
    display: inline-block !important;
    margin-left: 0 !important;
    color: #ffd166 !important;
    letter-spacing: 2.2px !important;
}

@media (max-width: 1520px) and (min-width: 993px) {
    .systemlink-logo-panel {
        width: 300px !important;
        height: 102px !important;
    }

    .systemlink-logo-panel-rh {
        left: clamp(18px, 4.5vw, 68px) !important;
    }

    .systemlink-logo-panel-cclp {
        right: clamp(18px, 4.5vw, 68px) !important;
    }

    .community-project-strip {
        width: min(610px, calc(100vw - 620px)) !important;
        min-width: 380px !important;
    }
}

@media (max-width: 1240px) and (min-width: 993px) {
    .systemlink-logo-panel {
        width: 230px !important;
        height: 86px !important;
        opacity: 0.78 !important;
    }

    .community-project-strip {
        width: 420px !important;
        min-width: 320px !important;
    }
}

@media (max-width: 992px) {
    .systemlink-logo-rail {
        display: none !important;
    }
}


/* --- FINAL VISIBLE LOGO FLANK FIX
   Logos stehen jetzt innerhalb der freien Portal-Fläche:
   nach dem linken Menü (320px) und vor dem rechten Chat (320px),
   nicht mehr darunter. Das HUD bleibt unverändert darüber. --- */
body.portal-page .systemlink-logo-rail {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    height: 116px !important;
    z-index: 940 !important; /* unter HUD, aber nicht im Chat/Menü */
    pointer-events: none !important;
    overflow: visible !important;
}

body.portal-page .systemlink-logo-panel {
    position: fixed !important;
    top: 4px !important;
    width: 250px !important;
    height: 96px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
    opacity: 0.95 !important;
    filter: drop-shadow(0 0 16px rgba(0,0,0,0.95)) !important;
}

/* 320px = Desktop-Menübreite, 320px = Desktop-Chatbreite.
   +18px Abstand, damit die Bilder nicht unter den Sidebars liegen. */
body.portal-page .systemlink-logo-panel-rh {
    left: 338px !important;
    right: auto !important;
    justify-content: flex-start !important;
}

body.portal-page .systemlink-logo-panel-cclp {
    right: 338px !important;
    left: auto !important;
    justify-content: flex-end !important;
}

body.portal-page .systemlink-original-logo {
    width: 250px !important;
    height: 96px !important;
    max-width: 250px !important;
    max-height: 96px !important;
    object-fit: contain !important;
    object-position: center center !important;
    pointer-events: none !important;
    user-select: none !important;
}

body.portal-page .community-project-strip {
    top: 75px !important;
    width: 560px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 760px) !important;
    height: 24px !important;
}

@media (max-width: 1680px) and (min-width: 1461px) {
    body.portal-page .systemlink-logo-panel {
        width: 205px !important;
        height: 82px !important;
    }

    body.portal-page .systemlink-original-logo {
        width: 205px !important;
        height: 82px !important;
        max-width: 205px !important;
        max-height: 82px !important;
    }

    body.portal-page .systemlink-logo-panel-rh {
        left: 332px !important;
    }

    body.portal-page .systemlink-logo-panel-cclp {
        right: 332px !important;
    }

    body.portal-page .community-project-strip {
        width: 500px !important;
    }
}

/* Wenn zwischen Menü, HUD und Chat zu wenig Platz ist, blenden wir die Flankenlogos aus,
   statt sie wieder unter Menü/Chat zu schieben. */
@media (max-width: 1460px) {
    body.portal-page .systemlink-logo-rail {
        display: none !important;
    }

    body.portal-page .community-project-strip {
        width: min(520px, 82vw) !important;
        max-width: 82vw !important;
    }
}
