@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/mulish-v12-latin-regular.woff2') format('woff2'),
         url('../fonts/mulish-v12-latin-regular.woff') format('woff'),
         url('../fonts/mulish-v12-latin-regular.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0b0e17;
    background-image: url('../img/header-background-edited.jpg');
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f1f5f9;
}

body:not(.legal-body) {
    overflow: hidden;
}

/* Dezenter Name oben links */
.brand-header {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 10;
}

.brand-name {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
    transition: color 0.2s ease;
}

.brand-name strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.brand-name:hover {
    color: #ffffff;
}

/* Startseite */
.hero {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 24px 6vh;
    background: radial-gradient(circle at center, rgba(6, 10, 22, 0.42) 0%, rgba(6, 10, 22, 0.25) 100%);
}

.slogan {
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 0.9s ease-out both;
    max-width: 820px;
}

.slogan-top {
    font-size: clamp(1.6rem, 3.6vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 10px;
}

.slogan-bottom {
    font-size: clamp(3.2rem, 8.5vw, 6.8rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.05;
    text-transform: uppercase;
    color: #ffffff;
}

.slogan-bottom::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 22px auto 20px;
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.2), rgba(255, 255, 255, 0.9), rgba(147, 197, 253, 0.2));
    border-radius: 2px;
}

.slogan-subtext {
    font-size: clamp(0.92rem, 1.5vw, 1.08rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-footer {
    position: fixed;
    bottom: 14px;
    right: 20px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.legal-footer a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer a:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.legal-footer span {
    margin: 0 6px;
}

/* Rechtstext-Seiten (Impressum & Datenschutz) */
body.legal-body {
    overflow-y: auto;
}

.legal-backdrop {
    min-height: 100vh;
    width: 100%;
    background: rgba(8, 11, 20, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 40px 20px 64px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.legal-card {
    width: 100%;
    max-width: 820px;
    background: rgba(15, 20, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.legal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.legal-nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.legal-content {
    line-height: 1.7;
    font-size: 0.96rem;
    color: #cbd5e1;
}

.legal-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.legal-content h2 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}

.legal-content h3 {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-top: 22px;
    margin-bottom: 8px;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content strong {
    color: #f8fafc;
}

.legal-content a {
    color: #93c5fd;
    text-decoration: none;
    word-break: break-word;
}

.legal-content a:hover {
    text-decoration: underline;
    color: #bfdbfe;
}
