:root {
    /* Dark Theme Default (Antigravity Style) */
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent: #ff6b35; /* Ein warmer, back-ähnlicher Akzent */
    --surface: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --text-muted: #a1a1a6;
}

[data-theme="light"] {
    --bg-color: #eeebe3; /* Ein satteres Natur-Creme (Papier/Mehl), extrem edel */
    --text-color: #1a1a1a;
    --accent: #d84b16; 
    --surface: #ffffff; /* Leuchtend weiß auf Creme */
    --surface-border: rgba(0, 0, 0, 0.12); /* Schärfere Kante */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --text-muted: #666666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative; /* WICHTIG: Damit position: absolute beim child funktioniert! */
}

#tsparticles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Hinter allem */
    pointer-events: none; /* Klicks gehen durch */
    overflow: hidden;
}

.header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    pointer-events: auto;
}

.logo {
    display: none;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.main-nav {
    display: flex;
    gap: 3rem;
    background: var(--surface);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    opacity: 0.6;
    transition: all 0.2s;
    font-size: 1.4rem;
}

.nav-link.active, .nav-link:hover {
    opacity: 1;
    color: var(--accent);
}

.theme-btn {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.6rem;
    backdrop-filter: blur(10px);
    position: absolute;
    right: 40px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 2rem;
}

.title {
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 4rem;
}

/* Der Sentence Builder */
.sentence-builder {
    font-size: 2.2rem;
    font-weight: 300;
    max-width: 900px;
    line-height: 1.8;
}

.word-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0 5px;
    transition: all 0.3s;
}

.word-btn:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

.word-btn.highlight {
    color: var(--accent);
}

.action-btn {
    display: block;
    margin: 3rem auto 0;
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.apply-btn {
    width: 100%;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem;
    border-radius: 50px; /* Abgerundet für modernen look */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.nav-pill {
    padding: 10px 25px;
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}
.apply-btn.hidden {
    display: none;
}

/* Fullscreen Overlay Settings (Google Food Mood Style) */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color); /* Solider Hintergrund */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.fullscreen-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 3rem;
    right: 4rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.5;
}

.close-btn:hover {
    opacity: 1;
}

.list-container {
    height: 80vh;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.list-container::-webkit-scrollbar {
    display: none;
}

.list-item {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 4rem; /* Sehr groß, wie im Beispiel */
    font-family: inherit;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.list-item:hover, .list-item.active {
    opacity: 1;
    color: var(--accent);
    transform: scale(1.05);
}

.footer-huge-text {
    width: 100%;
    text-align: center;
    font-size: 15vw;
    font-weight: 800;
    line-height: 1;
    color: var(--text-color);
    pointer-events: none;
    user-select: none;
    letter-spacing: -3px;
    padding: 50px 0 50px 0;
    position: relative;
    z-index: 10;
}

/* -------------------------------------------
   Recipe Reveal Overlay
------------------------------------------- */
.recipe-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    padding: 20px;
}

[data-theme="light"] .recipe-overlay {
    background: rgba(255, 255, 255, 0.7);
}

.recipe-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.recipe-reveal-content.split-layout {
    background: var(--bg-color);
    width: 95vw;
    max-width: 1400px;
    height: 95vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid var(--surface-border);
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: row;
}

.recipe-image-side {
    flex: 1;
    position: relative;
    background: #000;
}

#recipe-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.recipe-body-side {
    flex: 1;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
}

.recipe-body-inner {
    padding: 3rem 6%; /* Mehr Breite für den Text auf dem Desktop */
    margin-top: auto;
    margin-bottom: auto;
}

/* Typography & Layout per Food Mood Reference */
#recipe-title {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -1px;
}

.recipe-meta-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.recipe-intro {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.ingredients-box {
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    margin-bottom: 3rem;
    background: rgba(255, 107, 53, 0.02);
}

.box-title {
    color: var(--accent);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-grid li {
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    padding-left: 1.2rem;
}
.ingredients-grid li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.wave-divider {
    width: 100px;
    height: 10px;
    margin: 0 auto 3rem auto;
}

.steps-list {
    list-style: none;
    counter-reset: steps;
    padding: 0;
}

.steps-list li {
    counter-increment: steps;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.steps-list li::before {
    content: counter(steps) ". ";
    color: var(--accent);
    font-weight: 600;
}

.recipe-list {
    list-style-position: inside;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.recipe-list li {
    margin-bottom: 0.5rem;
}

.recipe-actions {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.share-btn {
    margin: 0;
    background: #34c759; /* Apple Green */
    box-shadow: 0 10px 30px rgba(52, 199, 89, 0.3);
}

.share-btn:hover {
    background: #30b753;
}

/* -------------------------------------------
   Mobile Optimization
------------------------------------------- */
@media (max-width: 768px) {
    .logo {
        display: block;
        font-size: 1.8rem;
        text-align: left;
        width: 100%;
        padding-bottom: 10px;
    }

    .header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .main-nav {
        gap: 1rem;
        padding: 0.6rem 1.2rem;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap; /* Allows links to wrap securely */
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .theme-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
    }

    .hero {
        padding-top: 120px; /* Push content below stacked header */
        min-height: 80vh;
    }

    .title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .sentence-builder {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .action-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        margin-top: 2rem;
    }

    .footer-huge-text {
        font-size: 18vw;
        padding: 30px 0 30px 0;
    }

    /* Mobile Modal Fixes */
    .recipe-reveal-content.split-layout {
        flex-direction: column;
        height: 90vh; 
        overflow-y: auto; /* Scrollbar on the whole modal container */
        border-radius: 12px;
    }
    
    .recipe-image-side {
        flex: none;
        height: 30vh;
        min-height: 250px;
    }
    
    .recipe-body-side {
        flex: none;
        overflow-y: visible; /* Prevent double scrollbars */
    }
    
    .recipe-body-inner {
        padding: 2rem 5%;
    }
}
