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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #faf4e1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #132130;
    color: #e0e0e0;
}

.theme-toggle {
    position: fixed;
    top: 30px;
    left: 40px;
    background: none;
    border: 2px solid #333;
    border-radius: 50px;
    width: 60px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
}

body.dark-mode .theme-toggle {
    border-color: #e0e0e0;
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background-color: #333;
    border-radius: 50%;
    transition: transform 0.3s;
}

body.dark-mode .theme-toggle-slider {
    background-color: #e0e0e0;
    transform: translateX(28px);
}

nav {
    position: fixed;
    top: 0;
    right: 0;
    padding: 30px 40px;
    z-index: 100;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

body.dark-mode nav a {
    color: #e0e0e0;
}

nav a:hover {
    color: #666;
}

body.dark-mode nav a:hover {
    color: #aaa;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}

.company-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.company-name span {
    font-size: 42px;
    font-weight: bold;
    color: #333;
    letter-spacing: 3px;
    line-height: 1;
    transition: color 0.3s;
}

body.dark-mode .company-name span {
    color: #e0e0e0;
}

/* ── Mobile ── */
@media (max-width: 600px) {

    /* Bigger toggle hit area */
    .theme-toggle {
        top: 16px;
        left: 16px;
        width: 52px;
        height: 28px;
        padding: 6px;
        /* Invisible extra tap area */
        -webkit-tap-highlight-color: transparent;
    }

    .theme-toggle::after {
        content: '';
        position: absolute;
        inset: -10px;
    }

    .theme-toggle-slider {
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
    }

    body.dark-mode .theme-toggle-slider {
        transform: translateX(24px);
    }

    /* Nav: sits below toggle, full width, wraps cleanly */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 14px 16px 14px 84px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px 0;
        background-color: #faf4e1;
        transition: background-color 0.3s;
        z-index: 99;
    }

    body.dark-mode nav {
        background-color: #132130;
    }

    nav a {
        margin-left: 20px;
        margin-right: 0;
        font-size: 14px;
    }

    /* Push page content down so it clears the nav bar */
    .contact-container,
    .about-container,
    .impressum-container {
        padding-top: 80px;
    }

    /* Scale down homepage logo */
    .logo-placeholder {
        width: 80px;
        height: 80px;
    }

    .company-name span {
        font-size: 28px;
    }
}
