/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===========================
   Index Page – Black fullscreen + footer below fold
   =========================== */
.index-page {
    background-color: #000;
}

.blackout {
    height: 100vh;
    width: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.reveal-text {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff;
    text-align: center;
    max-width: 400px;
    padding: 0 1rem;
}

.word {
    opacity: 0;
    display: inline-block;
    margin-right: 0.3em;
    animation: fadeIn 0.8s ease forwards;
}

.w1 { animation-delay: 0.2s; }
.w2 { animation-delay: 0.4s; }
.w3 { animation-delay: 0.6s; }
.w4 { animation-delay: 0.8s; }
.w5 { animation-delay: 1.5s; }
.w6 { animation-delay: 2s; }
.w7 { animation-delay: 3s; }

@keyframes fadeIn {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.levelup-link {
    position: absolute;
    bottom: 2.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    text-decoration: underline;
    opacity: 0;
    animation: fadeIn 1s ease forwards, blink 2s ease-in-out 6s infinite;
    animation-delay: 5s;
}

.levelup-link:hover {
    opacity: 0.7;
    text-decoration: underline;
    animation: none;
    opacity: 0.7;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

.index-footer {
    background-color: #1a1a1a;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.index-footer a {
    color: #999;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.index-footer a:hover {
    color: #ccc;
    text-decoration: underline;
}

.footer-separator {
    color: #555;
    font-size: 0.85rem;
    user-select: none;
}

/* ===========================
   Navigation (legal pages)
   =========================== */
header {
    background-color: #1e293b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-decoration: none;
}

/* ===========================
   Main Content (legal pages)
   =========================== */
main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* ===========================
   Legal Pages (Impressum / Datenschutz)
   =========================== */
.legal {
    max-width: 800px;
}

.legal h1 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.legal h2 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal h3 {
    font-size: 1.15rem;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal h4 {
    font-size: 1rem;
    color: #475569;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal p {
    margin-bottom: 0.75rem;
    color: #475569;
}

.legal ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #475569;
}

.legal ul li {
    margin-bottom: 0.5rem;
}

.legal a {
    word-break: break-word;
}

/* ===========================
   Footer (legal pages)
   =========================== */
footer:not(.index-footer) {
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-container p {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #64748b;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1e293b;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
