:root {
    /* Die NEUE Farbpalette */
    --deep-blue: #30618C;      /* Hauptfarbe für Text & dunkle Hintergründe */
    --slate-blue: #4D6873;    /* Farbe für den Fließtext */
    --soft-pale-blue: #D8E0F2; /* Helle Hintergrundfarbe */
    --accent-red: #BF4136;     /* Eleganter Akzent für Icons, Ränder, Hovers */
    --accent-orange: #E8A558;  /* Lebhafter Akzent für Buttons & Aktionen */

    /* Fonts from SYNAPSIS */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;

    /* Renaming colors to match the new design system */
    --palette-bg-light: #ffffff;
    --palette-bg-cool: var(--soft-pale-blue);
    --palette-bg-warm: #F8F4EF; /* Keeping this for variety */

    --palette-text-primary: var(--deep-blue);
    --palette-text-secondary: var(--slate-blue);
    --palette-accent-gold: var(--accent-orange);
    --palette-accent-blue: var(--deep-blue);

    --palette-ui-line: #D1C4B5;
    --palette-footer-bg: var(--deep-blue);
    --palette-footer-text: var(--soft-pale-blue);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--palette-text-primary); background-color: var(--palette-bg-light); line-height: 1.7; overflow-x: hidden; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 100px 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }
h2 { font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: 20px; color: var(--palette-text-primary); line-height: 1.2; }
.section-heading { text-align: center; margin-bottom: 60px; }
.section-heading p { font-size: 1.1rem; color: var(--palette-text-secondary); max-width: 700px; margin: 0 auto; }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

#hero { height: 100vh; position: relative; color: #ffffff; display: flex; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
#hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/sifnos-hero.jpg') no-repeat center top/cover; animation: focusedKenBurns 25s infinite ease-in-out; z-index: -1; }
@keyframes focusedKenBurns { 0% { transform: scale(1.0) translate(0, 0); } 40% { transform: scale(1.15) translate(-2%, 4%); } 60% { transform: scale(1.15) translate(-2%, 4%); } 100% { transform: scale(1.0) translate(0, 0); } }
#hero .content { position: relative; z-index: 1; padding: 0 20px; }
#hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    color: #F5DDBA;
    letter-spacing: 1.5px;
}
#hero h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); color: #FFFFFF; margin-top: 10px; font-weight: 400; font-family: var(--font-body); font-style: italic;}
#hero p {
    max-width: 600px;
    margin: 20px auto;
    font-size: 1.1rem;
}

#hero p a {
    color: var(--palette-accent-gold);
    text-decoration: underline;
}
.cta-button { display: inline-block; padding: 15px 35px; background-color: var(--palette-accent-gold); border: 2px solid var(--palette-accent-gold); color: #ffffff; text-decoration: none; font-size: 1rem; font-weight: 600; border-radius: 5px; transition: all 0.3s; margin-top: 20px; }
.cta-button:hover { background-color: transparent; color: var(--palette-accent-gold); }

.hero-subtitle { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; color: #FFFFFF; margin-top: 10px; font-weight: 400; font-family: var(--font-body); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.8rem); }
.status-tag { font-size: 0.5em; font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; background-color: transparent; border: 1px solid rgba(219, 179, 76, 0.4); color: rgba(219, 179, 76, 0.8); padding: 5px 10px; border-radius: 4px; align-self: center; }

/* --- SECTION BACKGROUND COLORS --- */
#about { background-color: var(--palette-bg-cool); }
#synergy-fields { background-color: var(--palette-bg-light); border-top: 1px solid var(--palette-ui-line); border-bottom: 1px solid var(--palette-ui-line); }

#about .container { max-width: 800px; text-align: center; }
#about .bio-snippet { font-weight: 600; color: var(--palette-text-secondary); margin-bottom: 20px; display: block; }

/* --- SYNERGY FIELDS --- */
.synergy-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.synergy-intro { grid-column: 1 / -1; text-align: center; margin-bottom: 20px; }
.synergy-panel { background: #FFFFFF; border: 1px solid var(--palette-ui-line); border-radius: 12px; padding: 40px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.synergy-panel p { margin-bottom: 20px; }
.synergy-panel h3 { font-size: 2.5rem; margin-bottom: 10px; }
.synergy-panel .tagline { font-weight: 600; color: var(--palette-text-secondary); margin-bottom: 25px; display: block; }
.synergy-panel ul { list-style: none; padding: 0; margin: 0 0 30px 0; }
.synergy-panel ul li { position: relative; padding-left: 25px; margin-bottom: 12px; font-size: 0.95rem; }
.synergy-panel ul li::before { content: '›'; position: absolute; left: 0; top: -3px; font-weight: bold; font-size: 1.5rem; color: var(--palette-accent-gold); }
.synergy-panel.nostos-panel h3 { color: var(--palette-accent-blue); }
.synergy-panel.nexus-panel h3 { color: #A04040; } /* Muted wine red */

footer { background-color: var(--palette-footer-bg); color: var(--palette-footer-text); text-align: center; padding: 30px 20px; }
footer a { color: var(--palette-footer-text); text-decoration: none; margin: 0 10px; transition: color 0.3s; opacity: 0.8; }
footer a:hover { color: #FFFFFF; opacity: 1; }


img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes extra space below image */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

@media (max-width: 992px) {
    .synergy-container {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 60px 0; /* Reduce vertical padding on smaller screens */
    }
}


.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
    background-color: rgba(48, 97, 140, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav .container {
    display: flex;
    justify-content: space-between; /* Changed to space-between */
    align-items: center;
    padding: 0 20px;
}

.main-nav .synapsis-link {
    margin-right: 20px;
}

.main-nav .nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: #fff;
    border-bottom-color: var(--palette-accent-gold);
}

/* Hamburger menu styles */
.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* Ensure it's above other elements */
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Animation for menu toggle */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex; /* Default for desktop */
}

.hero-text-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: clamp(30px, 6vw, 50px);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .main-nav .container {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: space-between; /* Keep brands left, toggle right */
        padding: 10px 15px; /* Reduced padding for smaller screens */
    }

    .main-nav .synapsis-link {
        margin-right: 0;
        margin-bottom: 0; /* No margin-bottom here, as they are side-by-side */
        font-size: 1.2rem;
    }

    .main-nav .nav-brand {
        margin-bottom: 0; /* No margin-bottom here */
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex; /* Show hamburger on small screens */
    }

    .nav-links {
        display: none; /* Hide nav links by default on small screens */
        flex-direction: column;
        width: 100%;
        background-color: rgba(48, 97, 140, 0.95); /* Same as nav background */
        position: absolute;
        top: 100%; /* Position below the main nav */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex; /* Show nav links when active */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0; /* Remove gap, use padding on li */
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
        padding: 8px 0; /* Add padding to list items */
    }

    .main-nav a {
        padding: 0; /* Remove padding from a, it's on li now */
        font-size: 1rem; /* Adjusted font size for menu items */
        display: block; /* Make links fill the li */
    }

    #hero .content {
        padding: 0 15px;
    }

    h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}