.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(21, 32, 28, .7);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .4);
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* Ensure Topbar is above overlay when menu is active */
body.nav-active .topbar {
    z-index: 2100;
}

/* Content Grid */
.grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    padding: 60px 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px !important;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link i {
    opacity: 0.6;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary2);
}

.footer-link:hover i {
    opacity: 1;
    color: var(--primary2);
    transform: translateY(-2px);
}

.version-tag {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Consolas, monospace;
    background: rgba(143, 217, 168, 0.08);
    color: var(--primary2);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid rgba(143, 217, 168, 0.15);
    backdrop-filter: blur(5px);
    margin-left: 5px;
}

/* Background Slideshow */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.0) rotate(0deg);
    /* Verhindere das Ruckeln durch Nutzung von Transitions statt Keyframe-Animationen */
    transition: opacity 3s ease-in-out, transform 15s ease-in-out;
}

.bg-slide.active {
    opacity: 0.1;
    transform: scale(1.1) rotate(1.5deg);
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE BREAKPOINTS & MOBILE MENU                                       */
/* -------------------------------------------------------------------------- */

/* Transitions for Body when Menu is active */
body.nav-active {
    overflow: hidden;
}

/* Nav Overlay (Darkens background when mobile menu is open) */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Premium Burger Toggle */
.burger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.24);
}

.burger-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.burger-toggle:focus-visible {
    outline: none;
    border-color: rgba(143, 217, 168, 0.32);
    box-shadow:
        0 0 0 3px rgba(143, 217, 168, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.burger-line {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.burger-line:nth-child(2) {
    width: 18px;
    align-self: flex-end;
    background: var(--primary2);
    /* Moosgrün Akzent */
}

/* Burger Animation to X */
.burger-toggle.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.burger-toggle.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 22px 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(24, 34, 30, 0.98), rgba(24, 34, 30, 0.86));
    backdrop-filter: blur(18px);
}

.mobile-nav-header .brand {
    flex: 1 1 auto;
    min-width: 0 !important;
}

.mobile-nav-header .brand-title {
    min-width: 0;
}

.mobile-nav-header .brand-title strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-mobile-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
}

.close-mobile-nav:hover,
.close-mobile-nav:focus {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(143, 217, 168, 0.18);
    transform: translateY(-1px);
}

.mobile-nav-content {
    padding: 20px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-section-label {
    font-size: 11px;
    color: var(--primary2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin: 25px 0 10px;
    opacity: 0.6;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    padding: 12px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-link i {
    width: 24px;
    font-size: 16px;
    color: var(--muted);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--primary2);
    padding-left: 5px;
}

.mobile-link.account {
    color: var(--accent2);
}

/* Breakpoints */

/* Extra Large (1399px) */
@media screen and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }

    .pill svg {
        margin-right: 5px;
    }
}

/* Large (1199px) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .topbar {
        gap: 14px;
        border-radius: 28px;
        padding: 12px 16px 12px 18px;
    }
}

/* Medium / Mobile Boundary (991px) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .topbar {
        border-radius: 25px;
        padding: 10px 16px 10px 18px;
    }

    .brand-title strong {
        font-size: 18px;
    }

}

/* Small (767px) */
@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    .hero h1 {
        font-size: 38px;
    }
}

/* Extra Small (575px) */
@media screen and (max-width: 575px) {
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .brand-title span {
        display: none;
        /* Hide tagline on very small screens */
    }
}
