/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Add Google Font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #192354;
    --accent-color: #56ab2f;
    --text-color: #425466;
    --light-bg: #F6F9FC;
    --white: #ffffff;
    --font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Apply Raleway to all text elements */
body,
button,
input,
select,
textarea {
    font-family: var(--font-family);
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Navigation */
.nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    background-image: url("assets/gec-logo.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 189px;
    height: 53px;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

.language-switch {
    font-family: var(--font-family);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-switch:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero section */
.hero {
    padding: 10rem 2rem 8rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

/* Add an overlay to ensure text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(231, 243, 249, 0.65) 10%,
        rgba(156, 194, 229, 0.65) 50%,
        rgba(99, 168, 224, 0.65) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Move hero text styles to hero-content */
.hero-content h1 {
    font-family: var(--font-family);
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem auto;
    color: #192354;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 1000px;
}

.hero p {
    font-family: var(--font-family);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Content sections */
.section {
    padding: 8rem 2rem;
    position: relative;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section h2 {
    font-family: var(--font-family);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.section p {
    font-family: var(--font-family);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Alternating sections */
.section:nth-child(even) {
    background-color: var(--light-bg);
}

.section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99,91,255,0.05) 0%, rgba(255,255,255,0) 70%);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.footer p {
    font-family: var(--font-family);
    opacity: 0.9;
    font-size: 1rem;
}

.footer p:first-child {
    margin-bottom: 0.5rem;
}

/* Footer Links */
.footer-links {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Legal Sections */
.section.impressum,
.section.privacy-policy {
    background-color: var(--light-bg);
    padding: 4rem 2rem;
    display: none; /* Hide by default */
}

.section.impressum.visible,
.section.privacy-policy.visible {
    display: block;
}

.section.impressum h2,
.section.privacy-policy h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.section.impressum h3,
.section.privacy-policy h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.section.impressum p,
.section.privacy-policy p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.section.impressum ul,
.section.privacy-policy ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.section.impressum li,
.section.privacy-policy li {
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 5rem;
    }

    .section {
        padding: 10rem 2rem;
    }
}

@media (max-width: 767px) {
    .logo {
        width: 125px;
        height: 35px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 125px;
        height: 35px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1,
.hero p,
.section-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.section-content {
    animation-delay: 0.2s;
}

/* Cookie Settings Dialog */
.cookie-settings-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cookie-settings-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-settings-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cookie-settings-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cookie-settings-close {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-settings-close:hover {
    background: #10183e;
}
