/* HEADER */
.site-header {
    width: calc(100% - 40px);
    max-width: 1800px; /* Erhöht für bessere Ausnutzung breiter Bildschirme */
    margin: 22px auto 0;
    position: sticky;
    top: 18px;
    z-index: 50;
}

.header-inner {
    min-height: 78px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    backdrop-filter: blur(30px) saturate(170%);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
}

.main-nav a,
.login-link {
    min-height: 41px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 780;
    font-size: .93rem;
    transition: .22s ease;
    display: inline-flex;
    align-items: center;
}

.main-nav a:hover,
.login-link:hover,
.main-nav a.is-active,
.login-link.is-active {
    color: var(--text);
    background: rgba(255,255,255,.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-shell {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding-inline: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: fit-content;
    line-height: 1.05;
}

/* FOOTER */
.site-footer {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto 28px;
    padding: 0 0 26px;
}

.footer-inner {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(30px) saturate(160%);
    border-radius: 38px;
    box-shadow: var(--shadow-soft);
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
}

.footer-brand p {
    max-width: 380px;
    margin: 22px 0 0;
    color: var(--muted);
    line-height: 1.78;
}

.footer-column h4 { 
    margin: 0 0 20px; 
    font-size: .95rem; 
    font-weight: 800;
    color: var(--text); 
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-column a { display: block; color: var(--muted); padding: 8px 0; transition: .2s; font-weight: 600; }
.footer-links a:hover { color: var(--text); transform: translateX(3px); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 4px 0;
    color: var(--muted);
    font-size: .92rem;
}

@media (max-width: 1080px) {
    .header-inner { 
        border-radius: 30px; 
        grid-template-columns: 1fr; 
        padding: 14px;
    }
    .main-nav, .header-actions { justify-self: stretch; justify-content: center; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .main-nav, .header-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Aktiver Navigationspunkt-Stil für den Registrieren-Button */
.header-actions .btn-primary.is-active {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
    transform: translateY(-2px);
}