/* Navigation bar */

nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 64px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-m);
    margin-top: var(--space-m) !important;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style-type: none;
}

nav ul li {
    margin: 0 var(--space-s);
}
nav ul li a {
    display: flex;
    height: fit-content;
}

nav ul.links {
    margin-left: -38px;
}

nav ul.links li a {
    color: var(--color-text-primary);
}

nav ul.links li a.logo {
    display: flex;
    align-items: center;
}

nav ul.links li a.logo:hover, nav ul.links li a.logo:active {
    color: var(--color-text-primary);
}

nav ul.links li a.logo svg {
    margin-right: var(--space-xs);
}

nav ul.links li a:hover, nav ul.links li a:active {
    color: var(--color-text-secondary);
}

nav ul.cta {
    margin-right: var(--space-xs);
}

nav ul.cta li {
    margin: 0 var(--space-xs);
}

.dropdown {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.dropdown button.pfp {
    background: none;
    border: none;
    padding-right: var(--space-s);
}

nav ul img.pfp {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.dropdown-menu {
    width: 96px;
    position: absolute;
    top: calc(100%);
    right: 0;
    background: var(--color-bg-card);
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
    border-radius: var(--radius-s);
    border: 1px solid var(--color-border);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.2s ease-in-out;
    margin-right: -4px;
}

.dropdown:hover .dropdown-menu, .dropdown > button.pfp:focus + .dropdown-menu, .dropdown:active .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0px);
}

.dropdown-menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.dropdown-menu ul li {
    padding: var(--space-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: background 0.2s ease;
}

.dropdown-menu ul li a {
    color: var(--color-text-primary);
}

.dropdown-menu ul li a:hover, .dropdown-menu ul li a:active {
    color: var(--color-text-secondary);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-s);
    margin-right: var(--space-s);
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animated X when open */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu dropdown */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: calc(63px + var(--space-m));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-m) var(--radius-m);
    z-index: 998;
    padding: var(--space-m);
    flex-direction: column;
    gap: var(--space-s);
}

.nav-mobile-menu a {
    color: var(--color-text-primary);
    font-size: var(--font-size-body);
    padding: var(--space-s) var(--space-m);
    border-radius: var(--radius-s);
    transition: background-color 0.15s ease;
}

.nav-mobile-menu a.btn-primary {
    color: #ffffff;
}

.nav-mobile-menu a:hover, .nav-mobile-menu a:active {
    background-color: var(--color-primary-100);
    color: var(--color-text-primary);
}

.nav-mobile-menu .mobile-cta {
    display: flex;
    gap: var(--space-s);
    margin-top: var(--space-s);
    padding-top: var(--space-s);
    border-top: 1px solid var(--color-border);
}

.nav-mobile-menu .mobile-cta a {
    flex: 1;
}

@media screen and (max-width: 960px) {
    nav ul.links li:not(:first-child) {
        display: none;
    }

    nav ul.cta {
        display: none;
    }

    nav.dashboard ul.cta {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-mobile-menu.open {
        display: flex;

    }

    nav.mob-nav-open {
        border-radius: var(--radius-m) var(--radius-m) 0 0; 
        border-bottom-color: transparent;
    }
}

/* Banner */

.banner {
    width: 100%;
    height: 780px;
    background: var(--color-primary-500);
    margin-top: calc(-64px - var(--space-m));
}

.banner .container {
    padding-top: 164px;
    height: 100%;
}

.banner .left {
    width: 80%;
    height: 100%;
    float: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-m);
}

.banner .left h1 {
    color: #ffffff;
    font-size: 3.2rem;
    margin-bottom: var(--space-xs);
}

.banner .left p {
    color: #ffffff;
    /*text-align: justify;*/
}

.typewriter-container {
    color: #ffffff;
    border-right: 2px solid #00000000;
    padding-right: 5px;
    font-size: 4.2rem;
}

#typewriter {
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    border-right: 2px solid var(--color-primary-300);
    animation: typing 3s steps(30) 1s forwards, blink 0.75s step-end infinite;
    overflow-wrap: break-word;
}

/* Not in use atm */

.banner .right {
    width: 20%;
    height: 100%;
    float: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-m);
}

.banner .right .card {
    width: 100%;
}

.banner .right .card .card-img {
    width: 100%;
    height: 230px;
    background: url("http://imgboo.ru/pictures/1756124929Z0kCZBXEIMG_1289.jpeg");
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-m);
    margin-bottom: var(--space-m);
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@media screen and (max-width: 1200px) {
    .banner {
        height: calc(100vh + 64px + var(--space-m))
    }

    .banner .left h1 {
        font-size: 2.8rem;
    }

    .typewriter-container {
        font-size: 3.8rem;
    }
}

@media screen and (max-width: 960px) {
    .banner .left {
        width: 100%;
    }

    .banner .left h1 {
        font-size: 2.4rem;
    }

    .typewriter-container {
        font-size: 3.2rem;
    }

    
    .banner .left p {
        font-size: var(--font-size-body-sm);
    }

    .banner .right {
        width: 0;
    }
}

@media screen and (max-width: 432px) {
    .banner .left h1 {
        font-size: 1.8rem;
    }

    .typewriter-container {
        font-size: 2.4rem;
    }

}

/* Main */

.section {
    margin-top: var(--space-xl) !important;
    margin-bottom: var(--space-xl) !important;
    display: flex;
    gap: var(--space-m);
}

.section img.big {
    width: 100%;
    border-radius: var(--radius-m);
    border: 1px solid var(--color-border);
}

.section .right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-s);
}

.section .left {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-s);
}

.spacer {
    width: 100%;
    height: var(--space-section);
}

/* Mission section */

.section#mission .left p {
    /*text-align: justify;*/
}

/* Function section */

.section#funktion {
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.section#funktion .left {
    width: 30%;
    /*position: sticky;
    top: calc(64px + var(--space-m) + var(--space-l));*/
    align-self: flex-start;
}

.section#funktion .left h2 {
    font-size: var(--font-size-h2);
    color: var(--color-text-primary);
}

.section#funktion .left p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-body-sm);
}

.section#funktion .right {
    width: 70%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-m);
}

/* Step row */
.step-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-l);
    position: relative;
}

/* Connector column */
.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary-500);
    color: var(--color-primary-100);
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: var(--font-size-body-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid var(--color-bg-page);
    box-shadow: 0 0 0 2px var(--color-primary-300);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.step-row:hover .step-dot, .step-row:active .step-dot {
    background-color: var(--color-primary-600);
    transform: scale(1.08);
}

.step-line {
    width: 2px;
    flex: 1;
    min-height: var(--space-xxl);
    background: repeating-linear-gradient(
        to bottom,
        var(--color-primary-300) 0px,
        var(--color-primary-300) 5px,
        transparent 5px,
        transparent 12px
    );
    margin: var(--space-xs) 0;
}

.step-row:last-child .step-line {
    display: none;
}

/* Step card content */
.step-body {
    flex: 1;
    padding-bottom: var(--space-xxl);
}

.step-row:last-child .step-body {
    padding-bottom: var(--space-m);
}

.step-tag {
    display: inline-block;
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-500);
    margin-bottom: var(--space-xs);
}

.step-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-h4);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-s);
    line-height: var(--line-height-heading);
}

.step-desc {
    font-size: var(--font-size-body-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
    margin-bottom: var(--space-m);
}

/* Reuse .card from base.css */
.step-card-hint {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
    background-color: var(--color-primary-100);
    border-radius: var(--radius-m);
    border: 1px solid var(--color-primary-300);
    max-width: 360px;
}

.step-card-hint span.icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-card-hint p {
    margin: 0;
    font-size: var(--font-size-caption);
    color: var(--color-text-secondary);
    line-height: var(--line-height-small);
}

/* Partner Section */

.section#partner {
    display: block;
}

.section#partner h2 {
    text-align: center;
}

.section#partner .partner-logo-container {
    width: 80%;
    margin: 0 auto;
    margin-top: var(--space-xxxl);
    display: flex;
    gap: var(--space-xl) var(--space-xxxl);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.section#partner .partner-logo-container a .logo-partner {
    width: 100px;
    box-sizing: border-box;
}

/* About Section*/

.section#about p {
    text-align: right;
}

.section h4 {
    margin-bottom: var(--space-xs);
}

.members-bubble-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.profile-bubble {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-m);
    padding: var(--space-m);
}

.image-container {
    width: 120px;
    height: 120px;
    margin-right: var(--space-m);
}

.member-image {
    height: 100%;
    border-radius: var(--radius-s);
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.member-name {
    margin: 0;
}

.member-role {
    margin: 0;
}

.member-quote {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* FAQ Section */

.section#faq .left {
    width: 30%;
}

.section#faq .left .pill {
    margin-left: 0;
    margin-right: 0;
}

.section#faq .left h2 {
    margin: var(--space-s) 0;
}

.section#faq .left h3 {
    margin: 0;
}

.section#faq .left p {
    margin-bottom: var(--space-xl);
}

.section#faq .right {
    width: 70%;
}

.faq-container {
    width: 100%;
}

.faq-item {
    margin-bottom: var(--space-m);
}

.faq-question {
    padding: var(--space-m);
    text-align: left;
    background-color: var(--color-primary-500);
    color: #ffffff;
    border: none;
    font-size: var(--font-size-body);
    cursor: pointer;
    border-radius: var(--radius-s);
    margin: 0;
    width: 100%;
    border: 1px solid var(--color-primary-500);
}

.faq-question:hover, .faq-question:active {
    background-color: var(--color-primary-600);
    border-color: var(--color-primary-600);
}

.faq-item[open] .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-answer {
    padding: var(--space-m);
    border: 1px solid var(--color-primary-300);
    background-color: var(--color-bg-card);
    border-bottom-left-radius: var(--radius-s);
    border-bottom-right-radius: var(--radius-s);
    margin: 0;
    margin-top: -1px;
}

/* Section contact */

.canvas {
    width: 100%;
    height: 464px;
    background: var(--color-primary-600);
}

.canvas .section {
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-xs);
}

.canvas .section h1 {
    padding: 0;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-s);
}

.canvas .section p {
    text-align: center;
    color: #ffffff;
    /* margin-bottom: var(--space-l); */
    font-size: var(--font-size-h4);
}

.canvas .section h1 {
    color: #ffffff;
}

@media screen and (max-width: 864px) {
    .section {
        display: block;
    }

    .section .left {
        width: 100%;
    }

    .section .right {
        width: 100%;
    }

    .section#funktion {
        display: block;
    }

    .section#funktion .left {
        width: 100%;
    }

    .section#funktion .right {
        width: 100%;
    }

    .section#about .right {
        align-items: flex-start;
    }

    .section#about .right p {
        text-align: left;
    }

    .section#about .right .member-quote {
        text-align: right;
    }

    .section#faq .left {
        width: 100%;
    }

    .section#faq .right {
        width: 100%;
        padding: var(--space-m) var(--space-s);
    }

    .canvas .section {
        display: flex;
    }
}

/* Footer */

footer {
    width: 100%;
    height: 180px;
}

footer .container {
    padding-top: var(--space-s);
}

footer .logo {
    display: flex;
    align-items: center;
    margin-top: var(--space-m);
}

footer .logo svg {
    margin-right: var(--space-s);
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    gap: var(--space-s) var(--space-m);
}

footer ul li a {
    color: var(--color-text-secondary);
    font-weight: bold;
}

footer ul li a:hover, footer ul li a:active {
    color: var(--color-text-primary);
}

footer p {
    width: 64%;
    padding-bottom: var(--space-m);
}

@media screen and (max-width: 864px) {
    footer p {
        width: 100%;
    }
}

/*footer {
    width: 100%;
    height: 320px;
}

footer .section .left {
    width: 18%;
}

footer .left .logo {
    display: flex;
    align-items: center;
}

footer .left .logo svg {
    margin-right: var(--space-s);
}

footer .section .right {
    width: 82%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: start;
    padding: 0;
}

footer .section .right ul {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    list-style-type: none;
}

footer .section .right ul li a {
    color: var(--color-primary-300);
}

footer .section .right ul li a:hover {
    color: var(--color-primary-500);
}*/