/* ========== BASIC STYLING ========== */
body {
    font-family: var(--body-font), var(--fallback-fonts);
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0 0 100px 0;
    line-height: 1.6;
}

/* ========== TOP MENU STYLES ========== */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    color: black;
    padding: 15px 30px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo styling with hover effects */
.logo {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-logo);
    font-weight: var(--font-weight-bold);
    color: black;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    display: inline-block;
}

.logo:hover {
    color: #00bfff;
    transform: scale(1.05);
}

/* Underline animation for logo */
.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

/* Navigation links container */
.nav-links {
    display: flex;
    gap: 30px;
}

/* Nav links with hover effects */
.nav-link {
    font-family: var(--body-font), var(--fallback-fonts);
    color: black;
    text-decoration: none;
    font-weight: var(--font-weight-regular);
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #00bfff;
}

/* Underline animation for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active nav link styling */
.nav-link.active {
    color: #00bfff;
    font-weight: var(--font-weight-medium);
}

/* Show underline for active links */
.nav-link.active::after {
    width: 100%;
}

/* ========== CONTENT CONTAINERS ========== */
/* Common container styles */
.impressum-container,
.datenschutz-container {
    padding: 60px 5% 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    box-sizing: border-box;
}

/* Datenschutz specific padding */
.datenschutz-container {
    padding-top: 10px;
}

/* Content separator */
.content-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 1000px;
    margin: 50px auto 40px;
}

/* ========== TYPOGRAPHY ========== */
/* Main headings */
.impressum-container h1,
.datenschutz-container h1 {
    font-size: var(--font-size-h1);
    font-family: var(--header-font), var(--fallback-fonts);
    margin-bottom: 30px;
    font-weight: var(--font-weight-bold);
    color: white;
}

/* Section headings */
.impressum-container h2,
.datenschutz-container h2 {
    font-size: calc(var(--font-size-h2) * 0.9);
    font-family: var(--header-font), var(--fallback-fonts);
    margin: 35px 0 15px;
    font-weight: var(--font-weight-medium);
    color: #eaeaea;
    max-width: 800px;
}

/* Paragraphs */
.impressum-container p,
.datenschutz-container p {
    font-size: var(--font-size-body);
    line-height: var(--line-height-large);
    margin-bottom: 20px;
    max-width: 700px;
    color: #cccccc;
}

/* ========== LINKS & INTERACTIVE ELEMENTS ========== */
/* Email and general links */
.impressum-container a,
.datenschutz-container a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

.impressum-container a:hover,
.datenschutz-container a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Index links styling - white instead of blue */
.datenschutz-container .index-link,
.datenschutz-container .index a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.datenschutz-container .index-link:hover,
.datenschutz-container .index a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ========== PAGE TRANSITION EFFECTS ========== */
/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    /* Match your dark background */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    z-index: 9999;
    pointer-events: none;
    /* Allow clicks through when inactive */
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    /* Block clicks when active */
}

/* Body fade-in animation */
body.fade-in-animation {
    animation: fadeIn 1s ease forwards;
}

body.no-animation {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .top-menu {
        padding: 12px 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .impressum-container,
    .datenschutz-container {
        width: 100%;
        padding: 40px 5% 20px;
    }

    .impressum-container h1,
    .datenschutz-container h1 {
        font-size: calc(var(--font-size-h1) * 0.7);
    }

    .impressum-container h2,
    .datenschutz-container h2 {
        font-size: calc(var(--font-size-h2) * 0.7);
    }

    .impressum-container p,
    .datenschutz-container p {
        font-size: calc(var(--font-size-body) * 0.8);
    }
}