:root {
    --main-blue: #0b2a43;
    --main-blue-light: #143d5e;
    --main-blue-deep: #061c2e;
    --button-blue: #176fb8;
    --button-blue-hover: #0f5c9c;
    --button-soft: #29455f;
    --button-soft-hover: #355672;
    --page-bg: #f4f6f8;
    --card-bg: #ffffff;
    --text-dark: #0c1b2a;
    --text-muted: #667789;
    --border-light: #dce4ec;
    --shadow: 0 18px 45px rgba(11, 42, 67, 0.12);
    --shadow-strong: 0 24px 65px rgba(5, 20, 34, 0.28);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text-dark);
    font-family: Arial, Helvetica, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background:
        radial-gradient(circle at top left, rgba(23, 111, 184, 0.26), transparent 38%),
        linear-gradient(135deg, var(--main-blue-deep), var(--main-blue));
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(11, 42, 67, 0.22);
}

.site-header.is-scrolled {
    box-shadow: 0 18px 45px rgba(5, 20, 34, 0.34);
}

.header-topline {
    background: rgba(0, 0, 0, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-topline-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 30px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 700;
}

.topline-left,
.topline-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topline-left span::before {
    content: "•";
    margin-right: 8px;
    color: #79b9eb;
}

.topline-right a:hover {
    color: #ffffff;
}

.header-wrap {
    width: min(1240px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 245px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--main-blue);
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-kicker {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #dbe8f5;
}

.brand-text strong {
    margin-top: 5px;
    font-size: 23px;
    color: #ffffff;
}

.main-nav {
    flex: 1;
    min-width: 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 850;
    font-size: 14px;
    transition: 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-icon {
    width: 22px;
    height: 22px;
    margin-right: 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #b9dcf5;
    font-size: 12px;
    font-weight: 900;
}

.nav-link:hover,
.nav-link.active,
.has-dropdown.open > .nav-link {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon,
.has-dropdown.open > .nav-link .nav-icon {
    background: var(--button-blue);
    color: #ffffff;
}

.dropdown-arrow {
    margin-left: 7px;
    font-size: 12px;
    opacity: 0.86;
    transition: 0.18s ease;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: min(620px, calc(100vw - 32px));
    padding: 16px;
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px) scale(0.98);
    transition: 0.18s ease;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    transform: translateX(-50%) rotate(45deg);
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-head {
    position: relative;
    z-index: 2;
    padding: 6px 8px 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dropdown-head strong {
    display: block;
    font-size: 17px;
    color: var(--main-blue);
}

.dropdown-head span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: var(--text-muted);
}

.dropdown-head a {
    padding: 9px 12px;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--button-blue);
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.dropdown-columns {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dropdown-column h3 {
    margin: 0 0 8px;
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.dropdown-grid {
    display: grid;
    gap: 6px;
}

.dropdown-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 16px;
    color: var(--text-dark);
    transition: 0.18s ease;
    border: 1px solid transparent;
}

.dropdown-link-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dropdown-link-title {
    font-weight: 900;
    font-size: 14px;
}

.dropdown-link-desc {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.dropdown-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--button-blue);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.dropdown-link:hover,
.dropdown-link.active {
    background: #e8f2fb;
    border-color: #d3e8f8;
    color: var(--button-blue);
}

.dropdown-link:hover .dropdown-link-desc,
.dropdown-link.active .dropdown-link-desc {
    color: #37617d;
}

.dropdown-link.highlight {
    background: linear-gradient(135deg, #e8f2fb, #ffffff);
    border-color: #c8e2f5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    width: 142px;
    height: 42px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    overflow: hidden;
    transition: 0.2s ease;
}

.header-search:focus-within {
    width: 210px;
    background: rgba(255, 255, 255, 0.16);
}

.header-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 4px 0 14px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    font-weight: 800;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button {
    width: 38px;
    height: 38px;
    margin-right: 2px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--button-blue);
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
}

.header-btn {
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #ffffff;
    transition: 0.2s ease;
    white-space: nowrap;
}

.header-btn-soft {
    background: var(--button-soft);
}

.header-btn-soft:hover {
    background: var(--button-soft-hover);
}

.header-btn-main {
    background: var(--button-blue);
}

.header-btn-main:hover {
    background: var(--button-blue-hover);
}

.mobile-menu-button {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 12px;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 99px;
    transition: 0.2s ease;
}

.header-subtitle {
    width: min(1240px, calc(100% - 40px));
    margin: -12px auto 18px;
    color: #dbe8f5;
    font-size: 15px;
}

.mobile-menu-backdrop {
    display: none;
}

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 70px;
}

.page-card,
.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-card {
    padding: 28px;
}

.page-card h1,
.hero-inner h1 {
    margin: 0 0 12px;
    color: var(--text-dark);
}

.page-card h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.page-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero-card {
    overflow: hidden;
}

.hero-inner {
    padding: 34px;
}

.hero-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--button-blue);
    font-weight: 900;
    font-size: 13px;
}

.hero-inner h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.hero-inner p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

.grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(11, 42, 67, 0.08);
}

.info-box h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

.info-box p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.site-footer {
    background: var(--main-blue);
    color: #ffffff;
}

.footer-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-wrap p {
    margin: 6px 0 0;
    color: #dbe8f5;
}

.footer-wrap nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-wrap a {
    color: #ffffff;
    font-weight: 700;
}

.footer-wrap a:hover {
    text-decoration: underline;
}

@media (max-width: 1240px) {
    .header-wrap {
        flex-wrap: wrap;
        padding: 16px 0;
        gap: 16px;
    }

    .brand {
        flex: 1;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .nav-list {
        justify-content: flex-start;
    }

    .header-actions {
        order: 2;
    }

    .header-subtitle {
        margin-top: -6px;
    }
}

@media (max-width: 860px) {
    .header-topline {
        display: none;
    }

    .site-header {
        position: sticky;
    }

    .header-wrap {
        width: min(100% - 28px, 1240px);
        min-height: 76px;
        justify-content: space-between;
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 64px);
    }

    .brand-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 23px;
        flex: 0 0 auto;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-text strong {
        font-size: 19px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-kicker {
        font-size: 10px;
    }

    .mobile-menu-button {
        display: block;
        position: relative;
        z-index: 1202;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(3, 14, 24, 0.54);
        backdrop-filter: blur(4px);
    }

    body.menu-open .mobile-menu-backdrop {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1200;
        width: min(390px, 92vw);
        height: 100vh;
        padding: 92px 18px 24px;
        background:
            radial-gradient(circle at top left, rgba(23, 111, 184, 0.22), transparent 38%),
            linear-gradient(135deg, var(--main-blue-deep), var(--main-blue));
        box-shadow: -22px 0 55px rgba(0, 0, 0, 0.36);
        overflow-y: auto;
        transform: translateX(105%);
        transition: 0.22s ease;
    }

    body.menu-open .main-nav {
        transform: translateX(0);
    }

    .header-actions,
    .header-subtitle {
        display: none;
        width: 100%;
    }

    body.menu-open .header-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        z-index: 1201;
        width: min(390px, 92vw);
        padding: 14px 18px 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: rgba(6, 28, 46, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }

    body.menu-open .header-subtitle {
        display: none;
    }

    body.menu-open .mobile-menu-button span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.menu-open .mobile-menu-button span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .mobile-menu-button span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-bottom: 138px;
    }

    .nav-link {
        width: 100%;
        min-height: 50px;
        border-radius: 16px;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-label {
        flex: 1;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 8px 0 4px;
        padding: 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border-radius: 16px;
    }

    .dropdown-menu::before {
        display: none;
    }

    .has-dropdown.open > .dropdown-menu {
        display: block;
        transform: none;
    }

    .dropdown-head {
        display: none;
    }

    .dropdown-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dropdown-column h3 {
        margin-top: 2px;
    }

    .dropdown-grid {
        gap: 5px;
    }

    .dropdown-link {
        padding: 12px;
    }

    .header-search {
        width: 100%;
        height: 46px;
    }

    .header-search:focus-within {
        width: 100%;
    }

    .header-search button {
        width: 42px;
        height: 42px;
    }

    .header-btn {
        width: 100%;
    }

    .page-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 22px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer-wrap {
        width: min(100% - 28px, 1180px);
        flex-direction: column;
    }
}

/* MENU-HOVER-FIX START */

/*
    Fix:
    Das Dropdown hat Abstand zum Hauptmenü.
    Beim Bewegen der Maus von "Aktuelles" nach unten Richtung "Haßmersheim"
    darf das Dropdown nicht sofort verschwinden.
*/

@media (min-width: 861px) {
    .has-dropdown {
        position: relative;
    }

    .has-dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 26px;
        z-index: 20;
        background: transparent;
    }

    .dropdown-menu {
        top: calc(100% + 8px);
        z-index: 30;
    }

    .has-dropdown:hover > .dropdown-menu,
    .has-dropdown:focus-within > .dropdown-menu,
    .has-dropdown.open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* MENU-HOVER-FIX ENDE */

/* PORTAL-FORMS START */

.alert {
    margin: 0 0 20px;
    padding: 15px 18px;
    border-radius: 16px;
    font-weight: 800;
    border: 1px solid transparent;
}

.alert-success {
    background: #e9f8ef;
    color: #176136;
    border-color: #bfe8cc;
}

.alert-error {
    background: #fff0f0;
    color: #9a2525;
    border-color: #f1b8b8;
}

.form-card,
.filter-card {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.auth-card {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.form-intro {
    margin-bottom: 22px;
}

.form-intro h1,
.form-card h2,
.content-list h2 {
    margin: 0 0 10px;
    color: var(--text-dark);
}

.form-intro p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.portal-form {
    display: grid;
    gap: 18px;
}

.portal-form label {
    display: grid;
    gap: 8px;
}

.portal-form label span {
    font-weight: 900;
    color: var(--text-dark);
}

.portal-form input,
.portal-form select,
.portal-form textarea,
.filter-form input,
.filter-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text-dark);
    background: #ffffff;
    outline: none;
}

.portal-form textarea {
    resize: vertical;
    line-height: 1.6;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus,
.filter-form input:focus,
.filter-form select:focus {
    border-color: var(--button-blue);
    box-shadow: 0 0 0 4px rgba(23, 111, 184, 0.12);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-button,
.filter-form button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    background: var(--button-blue);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
}

.form-button:hover,
.filter-form button:hover {
    background: var(--button-blue-hover);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.admin-button {
    background: #7a3cff;
}

.form-help {
    margin: 0;
    color: var(--text-muted);
}

.form-help a,
.inline-link {
    color: var(--button-blue);
    font-weight: 900;
}

.filter-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.filter-form a {
    font-weight: 900;
    color: var(--button-blue);
}

.content-list {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.content-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(11, 42, 67, 0.08);
}

.content-card h2 {
    margin: 8px 0 10px;
    color: var(--text-dark);
}

.content-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.content-meta,
.small-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.content-meta span,
.small-links span,
.small-links a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--button-blue);
    font-size: 13px;
    font-weight: 900;
}

.article-view {
    max-width: 900px;
}

.article-author {
    color: var(--text-muted);
    font-weight: 800;
}

.article-body {
    margin-top: 24px;
    line-height: 1.85;
    font-size: 18px;
}

.big-count {
    font-size: 34px !important;
    font-weight: 900;
    color: var(--button-blue) !important;
}

.action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.table-wrap {
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.portal-table th,
.portal-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.portal-table th {
    background: #e8f2fb;
    color: var(--main-blue);
}

@media (max-width: 820px) {
    .form-grid-2,
    .filter-form {
        grid-template-columns: 1fr;
    }

    .button-link {
        width: 100%;
    }

    .form-card,
    .filter-card {
        padding: 22px;
    }
}

/* PORTAL-FORMS ENDE */

/* PROFILE-FUNCTIONS START */

.profile-hero {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(23, 111, 184, 0.16), transparent 34%),
        #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--main-blue), var(--button-blue));
    color: #ffffff;
    font-size: 48px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(11, 42, 67, 0.22);
}

.profile-hero-content h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 48px);
}

.profile-hero-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

.profile-actions,
.profile-quicklinks,
.profile-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.profile-main {
    display: grid;
    gap: 24px;
}

.profile-side {
    display: grid;
    gap: 24px;
}

.profile-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-details dt {
    font-weight: 900;
    color: var(--text-dark);
}

.profile-details dd {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.secondary-button {
    background: var(--button-soft);
}

.secondary-button:hover {
    background: var(--button-soft-hover);
}

.profile-content-groups {
    display: grid;
    gap: 24px;
}

.profile-content-groups h3 {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--main-blue);
}

.profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: #f8fbfd;
    margin-bottom: 10px;
}

.profile-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 16px;
}

.profile-item span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.profile-item-actions a,
.profile-item-actions button {
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
    font-size: 13px;
}

.profile-item-actions a {
    background: #e8f2fb;
    color: var(--button-blue);
}

.profile-item-actions button {
    background: #fff0f0;
    color: #a32121;
}

.muted {
    color: var(--text-muted);
}

@media (max-width: 920px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-side {
        order: -1;
    }
}

@media (max-width: 700px) {
    .profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-avatar {
        margin: 0 auto;
    }

    .profile-actions,
    .profile-quicklinks {
        justify-content: center;
    }

    .profile-item {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-item-actions {
        width: 100%;
    }

    .profile-item-actions a,
    .profile-item-actions form,
    .profile-item-actions button {
        width: 100%;
    }
}

/* PROFILE-FUNCTIONS ENDE */

/* ROLE-SYSTEM START */

.role-overview {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.role-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(11, 42, 67, 0.08);
}

.role-card h2 {
    margin: 0 0 8px;
    color: var(--main-blue);
    font-size: 20px;
}

.role-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.role-super {
    border-color: rgba(122, 60, 255, 0.35);
    background: linear-gradient(135deg, #ffffff, #f3efff);
}

.role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--button-blue);
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.role-seitenadministrator {
    background: #efe8ff;
    color: #5a24c8;
}

.role-adminleitung,
.role-admin,
.role-test_admin {
    background: #e8f2fb;
    color: #176fb8;
}

.role-moderatorleitung,
.role-moderator,
.role-test_moderator {
    background: #e9f8ef;
    color: #176136;
}

.role-user {
    background: #f1f4f7;
    color: #4b5c6b;
}

.role-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.role-form select {
    min-height: 38px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 10px;
    background: #ffffff;
}

.role-form button,
.admin-actions button,
.admin-actions a {
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    font-size: 13px;
}

.role-form button,
.admin-actions a {
    background: var(--button-blue);
    color: #ffffff;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: #f8fbfd;
}

.admin-row strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.admin-row span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

.admin-row p {
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-actions button {
    background: #fff0f0;
    color: #a32121;
}

@media (max-width: 760px) {
    .role-form,
    .admin-row,
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .role-form select,
    .role-form button,
    .admin-actions a,
    .admin-actions button,
    .admin-actions form {
        width: 100%;
    }
}

/* ROLE-SYSTEM ENDE */

/* TEAM-POST-HIGHLIGHT START */

.team-post-card {
    position: relative;
    border: 2px solid rgba(23, 111, 184, 0.32) !important;
    background:
        linear-gradient(135deg, rgba(232, 242, 251, 0.92), #ffffff 46%),
        #ffffff !important;
    box-shadow: 0 18px 42px rgba(23, 111, 184, 0.16) !important;
}

.team-post-card::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--button-blue), #79b9eb);
}

.team-post-card > * {
    position: relative;
    z-index: 2;
}

.super-team-post {
    border-color: rgba(122, 60, 255, 0.38) !important;
    background:
        linear-gradient(135deg, rgba(243, 239, 255, 0.95), #ffffff 48%),
        #ffffff !important;
    box-shadow: 0 20px 48px rgba(122, 60, 255, 0.17) !important;
}

.super-team-post::before {
    background: linear-gradient(180deg, #7a3cff, #176fb8);
}

.team-post-banner {
    margin: 0 0 14px;
    padding: 12px 14px 12px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(23, 111, 184, 0.10);
    color: var(--main-blue);
    font-weight: 900;
    line-height: 1.4;
}

.super-team-post .team-post-banner {
    background: rgba(122, 60, 255, 0.10);
    color: #4c2599;
}

.large-team-banner {
    margin-bottom: 20px;
    font-size: 16px;
}

.team-post-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--button-blue);
    color: #ffffff;
    font-weight: 900;
}

.super-team-post .team-post-icon {
    background: #7a3cff;
}

.team-role-badge {
    background: #e8f2fb !important;
    color: var(--button-blue) !important;
    border: 1px solid rgba(23, 111, 184, 0.22);
}

.team-role-badge.role-seitenadministrator {
    background: #efe8ff !important;
    color: #5a24c8 !important;
    border-color: rgba(122, 60, 255, 0.25);
}

.team-role-badge.role-adminleitung,
.team-role-badge.role-admin,
.team-role-badge.role-test_admin {
    background: #e8f2fb !important;
    color: #176fb8 !important;
}

.team-role-badge.role-moderatorleitung,
.team-role-badge.role-moderator,
.team-role-badge.role-test_moderator {
    background: #e9f8ef !important;
    color: #176136 !important;
    border-color: rgba(23, 97, 54, 0.22);
}

.author-link {
    color: var(--button-blue);
    font-weight: 900;
}

.author-team-note {
    color: var(--button-blue);
    font-weight: 900;
}

.super-team-post .author-team-note,
.super-team-post .author-link {
    color: #5a24c8;
}

@media (max-width: 700px) {
    .team-post-card::before {
        left: 12px;
        top: 14px;
        bottom: 14px;
    }

    .team-post-card {
        padding-left: 28px !important;
    }

    .team-post-banner {
        align-items: flex-start;
    }
}

/* TEAM-POST-HIGHLIGHT ENDE */

/* POST-REPLIES START */

.replies-section {
    margin-top: 28px;
    display: grid;
    gap: 20px;
}

.replies-head {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.replies-head h2 {
    margin: 8px 0 0;
    color: var(--text-dark);
    font-size: clamp(24px, 3vw, 34px);
}

.reply-form-card {
    margin-top: 0;
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(11, 42, 67, 0.08);
    padding: 18px;
}

.comment-child {
    margin-left: 42px;
    background: #f8fbfd;
}

.comment-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--main-blue), var(--button-blue));
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.comment-content {
    min-width: 0;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-head strong a {
    color: var(--text-dark);
}

.comment-head time {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.75;
    font-size: 16px;
}

.comment-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.reply-details {
    min-width: min(520px, 100%);
}

.reply-details summary {
    cursor: pointer;
    color: var(--button-blue);
    font-weight: 900;
    list-style: none;
}

.reply-details summary::-webkit-details-marker {
    display: none;
}

.mini-reply-form {
    margin-top: 12px;
    padding: 14px;
    background: #f4f8fb;
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.delete-comment-button {
    min-height: 36px;
    padding: 8px 13px;
    border: 0;
    border-radius: 999px;
    background: #fff0f0;
    color: #a32121;
    font-weight: 900;
    cursor: pointer;
}

.team-comment {
    border: 2px solid rgba(23, 111, 184, 0.24);
    background:
        linear-gradient(135deg, rgba(232, 242, 251, 0.92), #ffffff 48%),
        #ffffff;
}

.super-team-comment {
    border-color: rgba(122, 60, 255, 0.30);
    background:
        linear-gradient(135deg, rgba(243, 239, 255, 0.95), #ffffff 48%),
        #ffffff;
}

.team-comment-note {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23, 111, 184, 0.10);
    color: var(--button-blue);
    font-size: 13px;
    font-weight: 900;
}

.super-team-comment .team-comment-note {
    background: rgba(122, 60, 255, 0.10);
    color: #5a24c8;
}

.reply-label {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f4f7;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
}

.moderation-comment {
    padding-left: 22px;
}

@media (max-width: 760px) {
    .replies-head {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-card {
        grid-template-columns: 1fr;
    }

    .comment-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .comment-child {
        margin-left: 16px;
    }

    .comment-head {
        flex-direction: column;
    }

    .comment-head time {
        white-space: normal;
    }
}

/* POST-REPLIES ENDE */

/* CATEGORY-SYSTEM START */

.category-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
}

.category-card,
.category-subcategory-panel {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-card-head {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: flex-start;
}

.category-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--main-blue), var(--button-blue));
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(11, 42, 67, 0.18);
}

.hero-category-icon {
    margin-bottom: 14px;
}

.category-card h2,
.category-subcategory-panel h2 {
    margin: 0 0 8px;
    color: var(--text-dark);
}

.category-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.category-count {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--button-blue);
    font-weight: 900;
    font-size: 13px;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subcategory-list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border-radius: 999px;
    background: #f4f8fb;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    font-weight: 800;
    font-size: 13px;
    transition: 0.18s ease;
}

.subcategory-list a:hover {
    background: #e8f2fb;
    color: var(--button-blue);
    border-color: #cfe4f4;
}

.subcategory-list small {
    min-width: 22px;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--button-blue);
    font-weight: 900;
    text-align: center;
}

.category-open-link {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--button-blue);
    color: #ffffff;
    font-weight: 900;
}

.category-open-link:hover {
    background: var(--button-blue-hover);
}

.category-subcategory-panel {
    margin-top: 24px;
}

.big-subcategory-list a {
    font-size: 14px;
    padding: 10px 13px;
}

.category-filter-form {
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto auto;
}

@media (max-width: 1080px) {
    .category-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .category-grid,
    .category-card-head,
    .category-filter-form {
        grid-template-columns: 1fr;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
}

/* CATEGORY-SYSTEM ENDE */


/* SINGLE-RIGHT-HEADER-MENU START */

.header-wrap-single-menu {
    justify-content: space-between;
    gap: 22px;
}

.header-wrap-single-menu .brand {
    flex: 0 0 auto;
    margin-right: auto;
}

.header-right-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.unified-right-menu {
    flex: 0 0 auto;
    width: auto;
    order: initial;
}

.single-menu-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 112px;
    height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: var(--button-blue);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    z-index: 1302;
}

.single-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0;
    background: #ffffff;
    border-radius: 99px;
    transition: 0.2s ease;
}

.single-menu-button em {
    font-style: normal;
    color: #ffffff;
    font-size: 14px;
}

.single-menu-button:hover {
    background: var(--button-blue-hover);
}

body.menu-open .single-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .single-menu-button span:nth-child(2) {
    opacity: 0;
}

body.menu-open .single-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.right-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1301;
    width: min(470px, 94vw);
    height: 100vh;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(23, 111, 184, 0.18), transparent 36%),
        linear-gradient(135deg, var(--main-blue-deep), var(--main-blue));
    color: #ffffff;
    box-shadow: -28px 0 70px rgba(0,0,0,0.38);
    overflow-y: auto;
    transform: translateX(105%);
    transition: 0.24s ease;
}

body.menu-open .right-menu-panel {
    transform: translateX(0);
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1299;
    display: none;
    background: rgba(3, 14, 24, 0.58);
    backdrop-filter: blur(5px);
}

body.menu-open .mobile-menu-backdrop {
    display: block;
}

.right-menu-head {
    min-height: 58px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.right-menu-head strong {
    display: block;
    font-size: 22px;
}

.right-menu-head span {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.right-menu-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 15px;
    background: rgba(255,255,255,0.11);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.right-menu-user {
    margin-bottom: 18px;
}

.right-menu-user-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
}

.right-menu-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--main-blue);
    font-weight: 900;
    font-size: 24px;
}

.right-menu-user-card strong,
.right-menu-user-card small {
    display: block;
}

.right-menu-user-card small {
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-weight: 800;
}

.right-menu-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.right-menu-login-grid a {
    min-height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.11);
    color: #ffffff;
    font-weight: 900;
}

.right-menu-login-grid a:last-child {
    background: var(--button-blue);
}

.right-menu-search-mobile {
    display: none;
    margin-bottom: 18px;
}

.right-menu-search-mobile form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.right-menu-search-mobile input {
    min-height: 46px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 0 15px;
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    outline: none;
}

.right-menu-search-mobile input::placeholder {
    color: rgba(255,255,255,0.70);
}

.right-menu-search-mobile button {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    background: var(--button-blue);
    color: #ffffff;
    font-weight: 900;
}

.right-menu-content {
    display: grid;
    gap: 14px;
    padding-bottom: 24px;
}

.right-menu-section {
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    overflow: hidden;
}

.right-menu-section.active {
    background: rgba(23,111,184,0.22);
    border-color: rgba(121,185,235,0.30);
}

.right-menu-main-link {
    min-height: 58px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 900;
    font-size: 17px;
}

.right-menu-icon {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.12);
    color: #b9dcf5;
    font-weight: 900;
}

.right-menu-main-link.active .right-menu-icon,
.right-menu-section.active .right-menu-icon {
    background: var(--button-blue);
    color: #ffffff;
}

.right-menu-groups {
    padding: 0 14px 14px;
    display: grid;
    gap: 12px;
}

.right-menu-group h3 {
    margin: 0 0 8px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.right-menu-links {
    display: grid;
    gap: 7px;
}

.right-menu-link {
    padding: 12px 13px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #ffffff;
    transition: 0.18s ease;
}

.right-menu-link:hover,
.right-menu-link.active {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.16);
}

.right-menu-link.highlight {
    background: rgba(23,111,184,0.30);
    border-color: rgba(121,185,235,0.26);
}

.right-menu-link.logout-link {
    background: rgba(255, 93, 93, 0.14);
}

.right-menu-link strong {
    display: block;
    font-size: 14px;
}

.right-menu-link small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,0.68);
    font-size: 12px;
    line-height: 1.35;
}

.right-menu-link em {
    flex: 0 0 auto;
    min-height: 23px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--button-blue);
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

.header-actions {
    display: none !important;
}

.header-wrap-single-menu .header-search {
    width: 180px;
}

.header-wrap-single-menu .header-search:focus-within {
    width: 260px;
}

@media (max-width: 980px) {
    .header-wrap-single-menu .header-search {
        display: none;
    }

    .right-menu-search-mobile {
        display: block;
    }

    .header-wrap-single-menu {
        min-height: 78px;
    }

    .single-menu-button {
        min-width: 96px;
        padding-left: 13px;
        padding-right: 13px;
    }
}

@media (max-width: 700px) {
    .header-topline {
        display: none;
    }

    .header-wrap-single-menu {
        width: min(100% - 28px, 1240px);
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 112px);
    }

    .brand-text strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .single-menu-button {
        min-width: 54px;
        width: 54px;
        height: 48px;
        border-radius: 16px;
        padding: 12px;
    }

    .single-menu-button em {
        display: none;
    }

    .right-menu-panel {
        width: min(420px, 94vw);
        padding: 18px;
    }

    .right-menu-login-grid {
        grid-template-columns: 1fr;
    }
}

/* SINGLE-RIGHT-HEADER-MENU ENDE */

/* RIGHT-MENU-SHARP-FIX START */

/* Seite beim geöffneten Menü nicht mehr extrem verschwommen machen */
.mobile-menu-backdrop {
    background: rgba(3, 14, 24, 0.34) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Rechtes Menü klarer, heller und besser lesbar */
.right-menu-panel {
    background:
        radial-gradient(circle at top left, rgba(23, 111, 184, 0.28), transparent 38%),
        linear-gradient(135deg, #061c2e 0%, #0b2a43 55%, #103958 100%) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: -24px 0 65px rgba(0, 0, 0, 0.42) !important;
}

/* Menü-Inhalt deutlicher */
.right-menu-section {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.right-menu-section.active {
    background: rgba(23, 111, 184, 0.32) !important;
    border-color: rgba(121, 185, 235, 0.42) !important;
}

.right-menu-main-link {
    color: #ffffff !important;
}

.right-menu-link {
    background: rgba(255, 255, 255, 0.11) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.right-menu-link:hover,
.right-menu-link.active {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
}

.right-menu-link small,
.right-menu-head span,
.right-menu-user-card small {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Schließen-X oben rechts immer sichtbar */
.right-menu-close {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

.right-menu-close:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

/* Menü-Button rechts oben klar sichtbar */
.single-menu-button {
    background: #176fb8 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(23, 111, 184, 0.28) !important;
}

.single-menu-button:hover {
    background: #0f5c9c !important;
}

/* Header soll nicht verschwommen wirken */
.site-header,
.header-wrap,
.header-right-area,
.brand {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Mobile: Menü etwas breiter und besser nutzbar */
@media (max-width: 700px) {
    .right-menu-panel {
        width: min(430px, 96vw) !important;
        padding: 18px !important;
    }

    .right-menu-head strong {
        font-size: 20px !important;
    }

    .right-menu-main-link {
        min-height: 54px !important;
    }

    .right-menu-link {
        padding: 13px !important;
    }
}

/* RIGHT-MENU-SHARP-FIX ENDE */

/* RIGHT-MENU-OVERLAY-CLEANUP START */

/*
    Fix für das rechte Header-Menü:
    - Suche und Menü-Button liegen nicht mehr über dem geöffneten Menü
    - Menüpanel steht sauber über allem
    - X-Button ist oben rechts klar sichtbar
    - Menü-Kopf hat genug Abstand
    - Hintergrund bleibt sichtbar, aber nicht störend
*/

body.menu-open {
    overflow: hidden !important;
}

body.menu-open .header-right-area {
    pointer-events: none !important;
}

body.menu-open .header-search,
body.menu-open .single-menu-button {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mobile-menu-backdrop {
    z-index: 1990 !important;
    background: rgba(3, 14, 24, 0.42) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.right-menu-panel {
    z-index: 2000 !important;
    top: 0 !important;
    right: 0 !important;
    width: min(500px, 94vw) !important;
    height: 100vh !important;
    padding: 26px 24px 30px !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow-y: auto !important;
}

.right-menu-head {
    position: sticky !important;
    top: -26px !important;
    z-index: 2002 !important;
    margin: -26px -24px 18px !important;
    padding: 24px 24px 18px !important;
    background:
        radial-gradient(circle at top left, rgba(23, 111, 184, 0.28), transparent 42%),
        linear-gradient(135deg, #061c2e 0%, #0b2a43 70%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.14) !important;
}

.right-menu-head strong {
    font-size: 24px !important;
    color: #ffffff !important;
}

.right-menu-head span {
    color: rgba(255,255,255,0.82) !important;
}

.right-menu-close {
    position: relative !important;
    z-index: 2003 !important;
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.20) !important;
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 900 !important;
    display: grid !important;
    place-items: center !important;
}

.right-menu-close:hover {
    background: rgba(255,255,255,0.32) !important;
}

.right-menu-user {
    margin-top: 4px !important;
}

.right-menu-content {
    padding-bottom: 40px !important;
}

.right-menu-section {
    box-shadow: 0 10px 28px rgba(0,0,0,0.14) !important;
}

.right-menu-main-link {
    font-size: 18px !important;
}

.right-menu-link strong {
    font-size: 15px !important;
}

.right-menu-link small {
    font-size: 12px !important;
    color: rgba(255,255,255,0.78) !important;
}

@media (max-width: 700px) {
    .right-menu-panel {
        width: min(430px, 96vw) !important;
        padding: 22px 18px 28px !important;
    }

    .right-menu-head {
        top: -22px !important;
        margin: -22px -18px 18px !important;
        padding: 22px 18px 16px !important;
    }

    .right-menu-head strong {
        font-size: 21px !important;
    }
}

/* RIGHT-MENU-OVERLAY-CLEANUP ENDE */
