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

:root {
    --bg: #000;
    --fg: #fff;
    --fg-soft: rgba(255,255,255,0.75);
    --line: rgba(255,255,255,0.12);
}

/* ============================= */
/* Base                          */
/* ============================= */
html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    overflow: hidden; /* Startseite bleibt fullscreen */
}

/* Scroll für Content-Seiten */
html.page,
body.page {
    overflow: auto;
    height: auto;
}

/* ============================= */
/* Smooth Page Fade-In           */
/* ============================= */
body {
    animation: pageFade 1s ease forwards;
    opacity: 0;
}

@keyframes pageFade {
    to { opacity: 1; }
}

/* ============================= */
/* Zentrierter Container         */
/* ============================= */
.container {
    height: 100%;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}

/* ============================= */
/* Logo Animation                */
/* ============================= */
.logo {
    max-width: 80%;
    animation:
        pulse 5s infinite ease-in-out,
        logoFade 1s ease forwards;
    opacity: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

@keyframes logoFade {
    to { opacity: 1; }
}

/* ============================= */
/* Hamburger Button              */
/* ============================= */
#menu-toggle { display: none; }

.hamburger {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: var(--fg);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation zu X */
#menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
#menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================= */
/* Overlay Menü                  */
/* ============================= */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.96);
    display: grid;
    place-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    z-index: 1000;
}

#menu-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
}

.overlay ul {
    list-style: none;
    text-align: center;
}

.overlay li {
    margin: 24px 0;
}

.overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    letter-spacing: 1px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.overlay a:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

/* ============================= */
/* Links                         */
/* ============================= */
a {
    transition: opacity 0.2s ease;
}

a:active {
    opacity: 0.5;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
.footer {
    position: fixed;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;

    animation: footerFade 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;

    z-index: 2;
}

@keyframes footerFade {
    to { opacity: 1; }
}

/* Trenner */
.footer::before {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    margin: 0 auto 12px auto;
    background-color: var(--line);
}

.footer a {
    color: var(--fg-soft);
    text-decoration: none;
}

.footer a:hover {
    opacity: 1;
}

.sep {
    opacity: 0.5;
}

/* Footer im Flow (Privacy etc.) */
body.page .footer {
    position: static;
    margin-top: 64px;
    padding-bottom: 48px;
}

/* ============================= */
/* FIX: Footer Zentrierung       */
/* ============================= */

body.page .footer {
    text-align: center;
}

body.page .footer p {
    max-width: 680px;
    margin: 0 auto;
}


/* ============================= */
/* CONTENT (Privacy etc.)        */
/* ============================= */
body.page main {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

body.page {
    line-height: 1.6;
    font-size: 15px;
}

/* Headings */
body.page h1 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

body.page h2 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 2.2rem;
    margin-bottom: 0.6rem;
}

/* Text */
body.page p {
    margin-bottom: 0.9rem;
    max-width: 60ch;
}

/* Listen */
body.page ul {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

body.page li {
    margin-bottom: 0.35rem;
}

/* Divider */
body.page hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 3rem 0;
    width: 100%;
}

/* ============================= */
/* EN / DE Trennung              */
/* ============================= */
body.page section[lang="en"] {
    margin-bottom: 2.5rem;
}

body.page section[lang="de"] {
    margin-top: 2.5rem;
}

/* ============================= */
/* Mobile                        */
/* ============================= */
@media (max-width: 480px) {
    .hamburger { top: 18px; right: 18px; }
    .overlay a { font-size: 1.6rem; }

    body.page main {
        padding: 0 16px;
    }
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--fg);
    font-family: inherit;
}

.contact-form button {
    margin-top: 1rem;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--fg-soft);
    color: var(--fg);
    cursor: pointer;
}

.contact-form button:hover {
    opacity: 0.7;
}
