@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Light Mode colors matching "Meine Rezepte" */
    --background: #FFF5F0;
    --card-bg: #FFFFFF;
    --text-primary: #3D2F2E;
    --text-secondary: #7A6B6A;
    --text-muted: #B8A6A4;
    --primary: #FF6B5A;
    --primary-hover: #E55A4B;
    --primary-light: rgba(255, 107, 90, 0.12);
    --border: #F0E2DC;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow: 0 10px 30px -5px rgba(61, 47, 46, 0.08), 0 8px 10px -6px rgba(61, 47, 46, 0.04);
    --shadow-hover: 0 20px 40px -5px rgba(61, 47, 46, 0.15);
    --glass-bg: rgba(255, 245, 240, 0.85);
    --glass-border: rgba(240, 226, 220, 0.8);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode colors matching "Meine Rezepte" */
        --background: #1A1212;
        --card-bg: #281E1D;
        --text-primary: #FFF0EC;
        --text-secondary: #C5A8A5;
        --text-muted: #8A7270;
        --primary: #FF8A7A;
        --primary-hover: #FFA294;
        --primary-light: rgba(255, 138, 122, 0.18);
        --border: #3E2C2A;
        --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
        --shadow-hover: 0 25px 35px -5px rgb(0 0 0 / 0.6);
        --glass-bg: rgba(26, 18, 18, 0.85);
        --glass-border: rgba(62, 44, 42, 0.8);
    }
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px; /* space for fixed header */
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Common UI Components --- */

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badge-premium {
    background-color: rgba(255, 215, 0, 0.15);
    color: #FFB800;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #FFFFFF !important;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 107, 90, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 90, 0.4);
    text-decoration: none;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--card-bg);
    color: var(--text-primary) !important;
    border: 1px solid var(--border);
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-full {
    display: block;
    text-align: center;
    width: 100%;
}

/* --- Header / Navigation --- */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.app-logo:hover {
    text-decoration: none;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* --- Hero Section --- */

.hero-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Phone Mockup visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 290px;
    height: 580px;
    background: #000;
    border: 10px solid #2d2d30;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: translateY(-10px) rotate(2deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.mockup-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.mockup-plus {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.mockup-recipe-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.recipe-img-placeholder {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.recipe-info {
    display: flex;
    flex-direction: column;
}

.recipe-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.recipe-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* --- Features Section --- */

.features-section {
    padding: 6rem 2rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Premium Section --- */

.premium-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.price-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.premium-card {
    border: 2px solid var(--primary);
}

.price-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.price-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2.5rem;
}

.price-features li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.price-features li.disabled {
    color: var(--text-muted);
}

.icon-check {
    color: #4CAF50;
    font-weight: bold;
}

.icon-x {
    color: var(--text-muted);
    font-weight: bold;
}

/* --- Download Section --- */

.download-section {
    padding: 6rem 2rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.download-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.download-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-container p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-button {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #000000;
    color: #FFFFFF !important;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    min-width: 170px;
    border: 1px solid rgba(255,255,255,0.1);
}

.store-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    text-decoration: none;
}

.store-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.store-main {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Document Mode (Privacy.html container) --- */

.container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin: 4rem auto;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.doc-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    text-align: center;
}

.doc-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.doc-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--primary);
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.25rem 0 0.5rem 0;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.address-box {
    background: var(--primary-light);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.address-box p {
    margin-bottom: 0.25rem;
}

/* --- Footer --- */

.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.main-footer {
    background-color: var(--background);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-info {
    max-width: 320px;
}

.footer-info p {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Animations --- */

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

/* --- Responsive Layouts --- */

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 70px;
    }
    
    .main-header {
        height: 70px;
    }
    
    .main-nav {
        display: none; /* simple nav solution for mobile */
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
    
    .doc-header h1 {
        font-size: 1.75rem;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
}
