/* ========================================================================== */
/* Breakpoints                                                                */
/* - (max-width: 500px)                                                       */
/* - (max-width: 1024px)                                                      */
/* - (min-width: 1025px)                                                      */
/* ========================================================================== */

.page-header {
    z-index: 300;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo a {
    flex-shrink: 0;
}
.page-header .logo {
    width: 8.33rem;
}

.page-header .logo > a:first-child {
    flex: 0 0 8.33rem;
    width: 8.33rem;
    padding-bottom: 3.835rem;
    align-self: flex-start;
}

.page-header.scrolled .logo > a:first-child {
    padding-bottom: 2.971rem;
}

@media (max-width: 1710px) {
    .page-header.scrolled .logo {
        width: 7.869rem;
    }
    .page-header.scrolled .logo > a:first-child {
        flex: 0 0 7.869rem;
        width: 7.869rem;
        padding-bottom: 2.808rem;
    }
}

@media (max-width: 1024px) {
    .page-header .logo {
        width: 8.4375rem;
    }
    .page-header .logo > a:first-child,
    .page-header.scrolled .logo > a:first-child {
        flex: 0 0 8.4375rem;
        width: 8.4375rem;
        padding-bottom: 3.498rem;
    }
}

.project-title-link {
    padding-bottom: 0 !important;
    overflow: unset !important;
    text-decoration: none;
    z-index: 1;
}
.project-title {
    font-size: 20px;
    font-weight: 600;
    /*border: 1px solid #009682;*/
    padding: 6px 10px;
    margin-left: 20px;
    color: #f8f8f8;
    background-color: #009682;
    white-space: nowrap;
}

.project-title-link:hover {
    text-decoration: none;
}

@media only screen and (max-width: 500px) {
    .project-title {
        font-size: 12px;
        padding: 10px;
        margin-left: 16px;
    }
}

.auth-language-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
}

.auth-language-wrapper .navigation-language {
    margin-bottom: 0 !important;
    margin-left: 1.5em;
}

@media (min-width: 1025px) {
    .navigation-language {
        margin-top: 1rem;
    }

    .navigation-profile ul li.navigation-breadcrumb {
        display: none;
    }

    /* Desktop dropdown polish */
    .navigation-profile.active:before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path fill="%2300876c" d="M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"/></svg>');
    }

    .navigation-profile.active .navigation-profile-text {
        color: #00876c;
    }

    .navigation-profile ul {
        border-radius: 8px;
        overflow: visible;
    }

    .navigation-profile ul:before {
        content: "";
        position: absolute;
        top: -9px;
        right: 14px;
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #d1d5d9; /* border color */
        pointer-events: none;
    }

    .navigation-profile ul:after {
        content: "";
        position: absolute;
        top: -8px;
        right: 14px;
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #fff; /* dropdown bg */
        pointer-events: none;
    }

    .navigation-profile ul li {
        font-size: 1.1rem;
    }

    .navigation-profile ul li.navigation-profile-user {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .navigation-profile ul li.navigation-profile-user .profile-meta-label {
        font-size: 0.95rem;
        color: #5c5c5c;
    }

    .navigation-profile ul li.navigation-profile-user .profile-meta-name {
        font-weight: 600;
        color: #111;
        margin-top: 0.35rem;
    }

    .navigation-profile ul li.navigation-profile-user .profile-meta-mail {
        font-size: 0.95rem;
        color: #5c5c5c;
        margin-top: 0.15rem;
    }

    .navigation-profile ul li a {
        font-size: 1.1rem;
    }

    .page-header.scrolled .navigation .navigation-meta {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
        transition-duration: 0.2s;
    }

    .page-header.scrolled .navigation-meta {
        height: auto;
    }
}

/* -------------------------------------------------------------------------- */
/* Navigation: Profil                                                         */
/* -------------------------------------------------------------------------- */
.navigation-profile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.navigation-profile:before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path fill="%23404040" d="M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.navigation-profile-text {
    font-weight: 300;
    color: #404040;
}

.navigation-profile-text:hover {
    color: #00876c;
}

.navigation-profile ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border: 1px solid #d1d5d9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
    min-width: 18rem;
    max-width: 26rem;
    z-index: 350;
    list-style: none;
}

.navigation-profile.active ul {
    display: block;
}

.navigation-profile ul li {
    padding: 0.5em 0;
    font-size: 1.2rem;
    font-weight: 300;
}

.navigation-profile ul li.navigation-profile-user {
    padding-top: 0;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e4e4e4;
    font-weight: 300;
    color: #000;
    line-height: 1.4;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.navigation-profile ul li.navigation-profile-user .profile-meta-label,
.navigation-profile ul li.navigation-profile-user .profile-meta-name,
.navigation-profile ul li.navigation-profile-user .profile-meta-mail {
    display: block;
    word-break: normal;
    overflow-wrap: normal;
}

.navigation-profile ul li.navigation-profile-user .profile-meta-mail {
    overflow-wrap: anywhere;
}

.navigation-profile ul li a {
    color: #00876c;
    text-decoration: none;
    font-weight: 300;
    font-size: 1.2rem;
}

.navigation-profile ul li a:hover {
    text-decoration: underline;
}

.navigation-profile-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-decoration: none;
}

.navigation-profile-link:before {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.5em;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23404040" d="M217.9 105.9L340.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L217.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1L32 320c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM352 416l64 0c17.7 0 32-14.3 32-32l0-256c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c53 0 96 43 96 96l0 256c0 53-43 96-96 96l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.navigation-profile-link:hover .navigation-profile-text {
    color: #00876c;
}

/* Mobile view */
@media (max-width: 1024px) {
    .navigation-profile:before {
        width: 1.6em;
        height: 1.6em;
        margin-right: 0;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path fill="%23000000" d="M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"/></svg>');
    }
    
    .navigation-profile.active:before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path fill="%2300876c" d="M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"/></svg>');
    }
    
    .navigation-profile-text {
        display: none;
    }
    
    .navigation-profile ul {
        position: fixed;
        top: 5.3125rem;
        right: 0;
        width: 100%;
        max-width: 46.875rem; 
        height: 100vh;
        padding: 2rem 2.1875rem;
        background-color: #000;
        color: #fff; 
        border: none;
        box-shadow: none;
        z-index: 350;
        overflow-y: auto;
        display: block;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .navigation-profile.active ul {
        transform: translateX(0);
        display: block;
    }
    
    .navigation-profile ul li {
        color: #fff;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.9em 0;
        font-size: 1.35rem;
        font-weight: 400;
        margin: 0;
        line-height: 1.5;
    }
    
    .navigation-profile ul li.navigation-profile-user {
        border-bottom: none;
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
        margin-bottom: 0;
        color: #fff;
    }
    
    .navigation-profile ul li:last-of-type {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .navigation-profile ul li a {
        color: #fff;
        display: block;
        width: 100%;
        padding: 0;
        font-size: inherit;
        font-weight: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

    .navigation-profile ul li a:hover {
        color: #00876c;
        text-decoration: none;
    } 

    .navigation-profile-link:before {
        width: 1.1em;
        height: 1.1em;
        margin-right: 0;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23000000" d="M217.9 105.9L340.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L217.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1L32 320c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM352 416l64 0c17.7 0 32-14.3 32-32l0-256c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c53 0 96 43 96 96l0 256c0 53-43 96-96 96l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"/></svg>');
    }
    
    .navigation-profile-link .navigation-profile-text {
        display: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Navigation: Back to ILIAS Link                                             */
/* -------------------------------------------------------------------------- */
.back-to-ilias-desktop {
    margin-right: 1.5em;
}

.faq-link-desktop {
    margin-right: 1.5em;
}

.faq-nav-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    text-decoration: none;
    color: #555;
    font-size: inherit;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}

.faq-nav-header-link::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    background: #009682;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75em;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-nav-header-link:hover {
    color: #009682;
    background: #f0f9f7;
    text-decoration: none;
}

.back-to-ilias-link {
    text-decoration: none;
    color: #555;
}

.back-to-ilias-link:hover {
    text-decoration: none;
    color: #009682;
}

.back-to-ilias-link:hover .arrow {
    color: #555;
}

.back-to-ilias-link .arrow {
    margin-right: 0.3em;
    font-size: 0.95em;
    position: relative;
}

.back-to-ilias-mobile {
    display: none;
}

.faq-link-mobile {
    display: none;
}

.about-link-mobile {
    display: none;
}


@media (max-width: 1024px) {
    .back-to-ilias-desktop {
        display: none;
    }

    .faq-link-desktop {
        display: none;
    }

    .faq-link-mobile {
        display: block;
    }

    .about-link-mobile {
        display: block;
    }

    .back-to-ilias-mobile {
        display: block;
    }

    .navigation-profile ul li.back-to-ilias-mobile a {
        color: #f8f8f8;
        text-decoration: none;
    }

    .navigation-profile ul li.back-to-ilias-mobile a:hover {
        text-decoration: underline;
    }

    .navigation-profile ul li.back-to-ilias-mobile a .arrow {
        display: none;
    }

    .navigation-profile ul li.navigation-breadcrumb {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border-top: none;
        padding-top: 0;
        padding-bottom: 1rem;
    }

    .navigation-profile ul li.navigation-breadcrumb a.navigation-home-link {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        width: auto;
    }

    .navigation-profile ul li.navigation-breadcrumb .home-icon {
        font-family: "kit-icons" !important;
        font-size: 1.6rem;
        color: #fff;
        background-color: transparent !important;
        padding: 0 !important;
    }

    .navigation-profile ul li.navigation-breadcrumb .home-label {
        font-size: 1.35rem;
        font-weight: 400;
        color: #fff;
    }

    .navigation-profile ul li.navigation-breadcrumb a:hover .home-icon {
        color: #00876c;
    }

    .navigation-profile ul li.navigation-breadcrumb a:hover .home-label {
        color: #00876c;
    }

    .navigation-profile .navigation-profile-close {
        appearance: none;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 2.2rem;
        line-height: 1;
        padding: 0.25rem 0.5rem;
        cursor: pointer;
    }

    .navigation-profile .navigation-profile-close:hover,
    .navigation-profile .navigation-profile-close:focus-visible {
        color: #00876c;
        outline: none;
    }

    .navigation-profile ul li.navigation-profile-user .profile-meta-label {
        display: block;
        font-size: 1.1rem;
        font-weight: 400;
        opacity: 0.9;
    }

    .navigation-profile ul li.navigation-profile-user .profile-meta-name {
        display: block;
        font-size: 1.35rem;
        font-weight: 600;
        margin-top: 0.35rem;
    }

    .navigation-profile ul li.navigation-profile-user .profile-meta-mail {
        display: block;
        font-size: 1.1rem;
        font-weight: 400;
        opacity: 0.75;
        margin-top: 0.25rem;
        word-break: break-word;
    }

    .navigation-language {
        order: -1;
        margin-left: 0;
        margin-right: 1.5em;
    }
}

/*footer_de.twig*/

.page-footer {
    border-top: none;
    background: none;
    margin-top: 0;
    padding: 0;
}

.footer-meta-navigation {
    margin-top: 0;
}

/* Sticky footer only for short pages (login + home) */
html, body {
    min-height: 100vh;
}
body.page-login,
body.page-home {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
body.page-login main,
body.page-home main {
    flex: 1 0 auto;
    /* main has margin: auto in kit base CSS; when body becomes flex, that centers and shrinks it */
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
body.page-login .page-footer,
body.page-home .page-footer {
    flex-shrink: 0;
}

/* login.twig */
.mp-login-toolbar {
    width: 100%;
}

/* Reduce spacing below toolbar on login page */
body:has(.login-container) .mp-login-toolbar {
    margin-bottom: 0.25rem;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30vh;
    padding: 0rem 1rem;
}

.login-content {
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #009682;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.75rem 3.5rem 2rem;
    max-width: 420px;
    width: 100%;
}

.login-content h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #111 !important;
    margin-bottom: 0.5rem;
}

.login-content > p {
    margin: 0 0 1.75rem !important;
    color: #666 !important;
    font-size: 0.92rem;
    line-height: 1.55;
}

.login-button {
    display: inline-block;
    padding: 0.72rem 2.75rem;
    background-color: #009682;
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 0.01em;
    margin-bottom: 1.85rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    /* match publish hover on start page */
    background-color: #00876C;
    box-shadow: none;
    text-decoration: none;
}

/* About hint on login page (secondary action) */
.login-about-hint {
    margin: 0 !important;
    padding-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

.login-about-link {
    color: #009682 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.login-about-link:hover,
.login-about-link:focus-visible {
    color: #00876C !important; /* same hover tone as FAQ / publish */
    text-decoration: underline;
}

/* FAQ hint on login page */
.login-faq-hint {
    margin: 0 !important;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #aaa !important;
    line-height: 1.5;
}

.login-faq-hint a {
    color: #009682 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.login-faq-hint a:hover {
    color: #00876C !important; /* same hover tone as FAQ / publish */
    text-decoration: underline;
}

/* Flash messages on login page */
.login-flash-message {
    margin: 2rem auto;
    max-width: 600px;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.login-flash-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.login-flash-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    font-size: 0.9rem;
}

.login-flash-hidden {
    display: none;
}

/* Sticky Footer for Login page only */
body:has(.login-container) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Keep main aligned with overall page width */
body:has(.login-container) main {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

body:has(.login-container) .login-page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1rem 1.25rem;
}

/* Center flash messages above login box */
body:has(.login-container) .login-page-wrapper .login-flash-message {
    width: 100%;
    max-width: 420px;
    margin: 0;
}

/* Keep login breadcrumb consistent with other pages */

body:has(.login-container) #main-containter,
body:has(.login-container) #search-media-content,
body:has(.login-container) #form-search {
    display: none !important;
}

/* ── FAQ page ──────────────────────────────────────────────────────────── */
#faq-page {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0rem 2.1875rem 5rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #009682;
    flex-wrap: wrap;
}

.faq-header-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Back link – breadcrumb style above title */
.faq-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #009682;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.15s, gap 0.2s;
}

.faq-back-link i {
    font-size: 0.75em;
    transition: transform 0.2s ease;
}

.faq-back-link:hover {
    color: #007d6a;
    text-decoration: none;
}

.faq-back-link:hover i {
    transform: translateX(-3px);
}

.faq-header-main h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #111;
}

.faq-intro {
    font-size: 0.92rem;
    color: #666;
    margin: 0;
}

/* Expand / Collapse toggles – aligned to bottom of header */
.faq-toggles {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-self: flex-end;
}

.faq-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.faq-btn-toggle:hover {
    border-color: #009682;
    color: #009682;
    background: #f0f9f7;
}

/* ── Layout: Sidebar + Content ───────────────────────────────────────────── */
.faq-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ── Sidebar nav ─────────────────────────────────────────────────────────── */
.faq-nav {
    position: sticky;
    top: 1.5rem;
}

.faq-nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.6rem;
    padding-left: 0.75rem;
}

.faq-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #e0e0e0;
}

.faq-nav ul li {
    margin: 0;
    padding: 0;
}

.faq-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    border-radius: 0 3px 3px 0;
}

.faq-nav-link i {
    font-size: 0.8em;
    width: 1em;
    text-align: center;
    opacity: 0.7;
    flex-shrink: 0;
}

.faq-nav-link:hover {
    color: #009682;
    text-decoration: none;
    background: #f0f9f7;
}

.faq-nav-link.active {
    color: #009682;
    font-weight: 600;
    border-left-color: #009682;
    background: #f0f9f7;
}

.faq-nav-link.active i {
    opacity: 1;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-width: 0;
}

.faq-section {
    display: block;
    scroll-margin-top: 1.5rem;
}

.faq-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #009682;
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.85rem;
    background: #e9f5f3;
    border-left: 4px solid #009682;
    border-bottom: none;
}

.faq-section h2 i {
    font-size: 0.95em;
    opacity: 0.8;
}

/* ── Accordion ───────────────────────────────────────────────────────────── */
.faq-accordion {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border: 1px solid #dce8e6;
    overflow: hidden;
}

.faq-item:first-child { border-radius: 3px 3px 0 0; }
.faq-item:last-child  { border-radius: 0 0 3px 3px; }
.faq-item + .faq-item { border-top: none; }

.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    color: #222;
    line-height: 1.45;
    transition: background 0.15s, color 0.15s;
}

.faq-question:hover {
    background: #f0f9f7;
    color: #009682;
}

.faq-question[aria-expanded="true"] {
    background: #009682;
    color: #fff;
}

.faq-chevron {
    flex-shrink: 0;
    font-size: 0.72em;
    opacity: 0.65;
    transition: transform 0.22s ease, opacity 0.15s;
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Answer panel */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f7fdfb;
    border-left: 3px solid #009682;
}

.faq-answer p,
.faq-answer ul {
    margin: 0.85rem 1.1rem;
    font-size: 0.9rem;
    line-height: 1.72;
    color: #333;
}

.faq-answer ul {
    padding-left: 1.4rem;
}

.faq-answer li {
    margin-bottom: 0.3rem;
}

.faq-answer strong {
    color: #111;
}

.faq-answer a {
    color: #009682;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer kbd {
    background: #eee;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 0.1em 0.4em;
    font-size: 0.82em;
    font-family: monospace;
}

.faq-answer code {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 0.1em 0.35em;
    font-size: 0.82em;
    font-family: monospace;
}

/* Contact button */
.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #009682;
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.48rem 1.1rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
    margin-top: 0.1rem;
}

.faq-contact-btn:hover {
    background: #007d6a;
    text-decoration: none !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    .faq-layout {
        grid-template-columns: 180px 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    #faq-page {
        padding: 1.5rem 1.5rem 3rem;
    }

    .faq-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.25rem;
    }

    .faq-header-actions {
        align-items: flex-start;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .faq-nav {
        position: static;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }

    .faq-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        border-left: none;
    }

    .faq-nav-link {
        border: 1px solid #dce8e6;
        border-left: 1px solid #dce8e6;
        border-radius: 2rem;
        margin-left: 0;
        padding: 0.3rem 0.7rem;
        font-size: 0.78rem;
    }

    .faq-nav-link.active {
        background: #009682;
        color: #fff;
        border-color: #009682;
    }

    .faq-nav-link.active i {
        opacity: 1;
    }
}
/* ── Login page: about + FAQ hint row ───────────────────────────────────── */
.login-hint-link {
    color: #009682 !important;
    text-decoration: none;
    font-weight: 600;
}

.login-hint-link:hover {
    text-decoration: underline;
}

.login-hint-sep {
    padding: 0 0.45rem;
    color: #c6c6c6;
}

/* ── FAQ page: about link in intro ─────────────────────────────────────── */
.faq-about-link {
    color: #009682 !important;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.faq-about-link:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════════════
   About page  (#about-page)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --about-teal: #009682;
    --about-teal-dark: #007d6a;
    --about-teal-light: #e6f4f2;
    --about-teal-mid: #cce9e5;
    --about-slate: #3d5a6c;
    --about-slate-light: #edf1f4;
    --about-text: #1c2b2a;
    --about-muted: #637a78;
    --about-border: #e0ecea;
    --about-radius: 12px;
    --about-shadow: 0 2px 12px rgba(0,100,85,0.09);
    --about-shadow-hover: 0 8px 28px rgba(0,100,85,0.17);
}

#about-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.about-hero {
    position: relative;
    background: linear-gradient(140deg, #009682 0%, #006b5e 60%, #004d44 100%);
    color: #fff;
    padding: 3.5rem 2.5rem 5rem;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 50%),
                      radial-gradient(circle at 10% 90%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.about-hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
}

.about-back-link:hover {
    color: #fff;
    text-decoration: none;
}

.about-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.about-hero-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.86);
    line-height: 1.65;
    margin: 0 auto 2rem;
    max-width: 640px;
}

.about-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.about-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.about-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.about-hero-wave svg {
    width: 100%;
    height: 48px;
}

/* ── Shared section styles ───────────────────────────────────────────────── */
.about-section {
    padding: 4rem 2.5rem;
}

.about-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--about-teal);
    background: var(--about-teal-light);
    border-radius: 2rem;
    padding: 0.3rem 0.85rem;
    margin-bottom: 0.9rem;
}

.about-section-label--center {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.about-section-title--center {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--about-text);
    margin: 0 auto 2.5rem;
    letter-spacing: -0.01em;
}

/* ── Overview section ───────────────────────────────────────────────────── */
.about-section-overview {
    background: #fff;
}

.about-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-overview-text h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--about-text);
    margin: 0 0 1.1rem;
    letter-spacing: -0.01em;
}

.about-overview-text p {
    font-size: 0.975rem;
    color: var(--about-muted);
    line-height: 1.8;
    margin: 0 0 0.85rem;
}

/* ── Audience sections ───────────────────────────────────────────────────── */
.about-section-students {
    background: #f6fbfa;
}

.about-section-lecturers {
    background: #fff;
}

.about-audience-header {
    margin-bottom: 2rem;
}

.about-audience-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 2rem;
    padding: 0.45rem 1.1rem 0.45rem 0.8rem;
    margin-bottom: 0.6rem;
}

.about-audience-badge--students {
    background: var(--about-teal-light);
    color: var(--about-teal-dark);
}

.about-audience-badge--lecturers {
    background: var(--about-slate-light);
    color: var(--about-slate);
}

.about-audience-desc {
    font-size: 0.95rem;
    color: var(--about-muted);
    margin: 0;
}

/* ── Cards grid ─────────────────────────────────────────────────────────── */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.about-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--about-border);
    border-radius: var(--about-radius);
    padding: 1.6rem 1.5rem 1.5rem;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.about-section-lecturers .about-card {
    background: #f6fbfa;
}

.about-card:hover {
    box-shadow: var(--about-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--about-teal-mid);
}

.about-card--future {
    border-style: dashed;
}

.about-card--future:hover {
    transform: none;
    box-shadow: var(--about-shadow);
}

.about-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.about-card-icon--teal {
    background: linear-gradient(135deg, #009682, #00b89e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,150,130,0.3);
}

.about-card-icon--slate {
    background: linear-gradient(135deg, #3d5a6c, #557a8e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(61,90,108,0.25);
}

.about-card-icon--muted {
    background: #ececec;
    color: #888;
}

.about-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #888;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 2rem;
    padding: 0.2em 0.6em;
}

.about-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--about-text);
    margin: 0 0 0.55rem;
    line-height: 1.3;
}

.about-card p {
    font-size: 0.875rem;
    color: var(--about-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Screenshot placeholders ─────────────────────────────────────────────── */
.about-screenshot-placeholder {
    border-radius: 8px;
    overflow: hidden;
}

.about-screenshot-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--about-teal-light);
    border: 2px dashed var(--about-teal-mid);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    color: var(--about-muted);
    font-size: 0.82rem;
    text-align: center;
    min-height: 120px;
}

.about-screenshot-box i {
    font-size: 2rem;
    opacity: 0.4;
    color: var(--about-teal);
}

.about-screenshot-inline {
    margin-top: 1.1rem;
}

.about-screenshot-fullwidth {
    margin-top: 2.5rem;
}

.about-overview-visual .about-screenshot-box {
    min-height: 260px;
}

/* ── How it works ────────────────────────────────────────────────────────── */
.about-section-how {
    background: linear-gradient(180deg, #f6fbfa 0%, #fff 100%);
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-bottom: 0;
}

.about-steps::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--about-teal-mid), var(--about-teal-mid));
    z-index: 0;
}

.about-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.25rem 1.5rem;
    position: relative;
}

.about-step-num {
    width: 36px;
    height: 36px;
    background: var(--about-teal-light);
    color: var(--about-teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.about-step-connector {
    display: none;
}

.about-step-icon {
    width: 56px;
    height: 56px;
    background: var(--about-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(0,150,130,0.35);
    position: relative;
    z-index: 1;
}

.about-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--about-text);
    margin: 0 0 0.4rem;
}

.about-step p {
    font-size: 0.84rem;
    color: var(--about-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.about-cta-section {
    background: linear-gradient(135deg, #009682 0%, #006b5e 100%);
    padding: 3.5rem 2.5rem;
}

.about-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-cta-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.45rem;
    letter-spacing: -0.01em;
}

.about-cta-text p {
    color: rgba(255,255,255,0.82);
    font-size: 0.975rem;
    margin: 0;
    line-height: 1.55;
}

.about-cta-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    border-radius: 6px;
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.about-btn-primary {
    background: #fff;
    color: var(--about-teal) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.about-btn-primary:hover {
    background: #edfaf8;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-decoration: none;
}

.about-btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.45);
}

.about-btn-ghost:hover {
    background: rgba(255,255,255,0.22);
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .about-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-steps::before {
        display: none;
    }

    .about-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-hero h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 2.5rem 1.25rem 4rem;
    }

    .about-section {
        padding: 2.5rem 1.25rem;
    }

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

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

    .about-cta-section {
        padding: 2.5rem 1.25rem;
    }

    .about-btn {
        width: 100%;
        justify-content: center;
    }

    .about-hero-pills {
        gap: 0.4rem;
    }

    .about-pill {
        font-size: 0.75rem;
        padding: 0.28rem 0.7rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Medienportal: Toolbar-Sort/Ansicht/Badges-Dropdowns mobil (über ILIAS-Theme) */
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 800px) {
    #sort-dropdown-menu.sort-dropdown-menu.show,
    #view-dropdown-menu.sort-dropdown-menu.show,
    #badges-dropdown-menu.sort-dropdown-menu.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        z-index: 400 !important;
        background-color: #ffffff !important;
        border: 1px solid #d1d5d9 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
        color: #111111 !important;
    }

    #sort-dropdown-menu.sort-dropdown-menu.show .sort-dropdown-item,
    #view-dropdown-menu.sort-dropdown-menu.show .sort-dropdown-item {
        opacity: 1 !important;
        visibility: visible !important;
        color: #111111 !important;
        background-color: transparent !important;
        font-size: 13px !important;
        -webkit-text-fill-color: #111111 !important;
    }
    #badges-dropdown-menu.sort-dropdown-menu.show .sort-dropdown-item {
        opacity: 1 !important;
        visibility: visible !important;
        color: #111111 !important;
        background-color: transparent !important;
        font-size: 13px !important;
    }
}