/* --- CSS Variables & Design System --- */
:root {
    /* Colors */
    --bg-primary: #FEFCF6;   /* Creme */
    --bg-secondary: #F5F0E8; /* Warm Beige */
    --bg-tertiary: #E8DFD0;  /* Sand */
    
    --text-primary: #3C2A1A; /* Dunkelbraun (adapted for contrast) */
    --text-secondary: #8B6F4E; /* Mittelbraun */
    
    --accent-primary: #5C4033; /* Dark Brown (used as brand action) */
    --accent-gold: #B8960C;    /* Gold */
    --accent-gold-hover: #D4A926; /* Warmgold */
    
    --success: #5B8C5A;
    --error: #A94442;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 64px;
    --space-hero: 120px;
    
    /* BorderRadius */
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    --rad-full: 999px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(92, 64, 51, 0.08);
    --shadow-hover: 0 12px 32px rgba(92, 64, 51, 0.12);
    --shadow-card: 0 2px 8px rgba(92, 64, 51, 0.05);
}

/* --- Resets & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

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

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

/* --- Layout Elements --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xxl) var(--space-lg);
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(254, 252, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(92, 64, 51, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-primary);
    cursor: pointer;
    text-decoration: none;
}

.logo-svg {
    height: 32px;
    width: 32px;
}

.logo-image {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--rad-full);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.nav-btn {
    padding: 10px 20px;
    border-radius: var(--rad-full);
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-btn:hover {
    background-color: var(--bg-tertiary);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--text-primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid rgba(92, 64, 51, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(92, 64, 51, 0.05);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #fff;
    box-shadow: 0 4px 14px rgba(184, 150, 12, 0.25);
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-hero) + 80px) var(--space-lg) var(--space-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 150, 12, 0.08) 0%, rgba(254, 252, 246, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 auto var(--space-xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xxl);
}

.hero-image-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--rad-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transform-origin: center bottom;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Vision Section --- */
.vision {
    background-color: var(--bg-secondary);
    padding: var(--space-hero) 0;
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

.vision-card {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--rad-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.vision-card .icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--rad-sm);
}

/* --- Features Section --- */
.features {
    padding: var(--space-hero) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: 32px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-image-container {
    flex: 1;
    position: relative;
}

.mockup-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--rad-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    position: relative;
}

.bg-beige {
    background-color: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
}

.bg-dark {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.folder-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.folder-label {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-primary);
    background: rgba(255,255,255,0.6);
    padding: 8px 24px;
    border-radius: var(--rad-sm);
    box-shadow: var(--shadow-soft);
}

.search-bar-mock {
    width: 80%;
    background: rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: var(--rad-full);
    margin-bottom: var(--space-xl);
    font-family: var(--font-body);
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.search-results {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.result-item {
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: var(--rad-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

/* --- Security Section --- */
.security {
    background-color: #f7f3ed; /* darker creme */
    padding: var(--space-hero) 0;
    border-top: 1px solid rgba(92, 64, 51, 0.05);
    border-bottom: 1px solid rgba(92, 64, 51, 0.05);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

.sec-item {
    text-align: center;
}

.sec-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-card);
    color: var(--accent-gold);
}

.sec-item h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--accent-primary);
}

.sec-item p {
    font-size: 0.95rem;
    margin: 0 auto;
}

/* --- Pricing Section --- */
.pricing {
    background-color: var(--bg-primary);
    padding: calc(var(--space-hero) / 2) var(--space-lg);
    display: flex;
    justify-content: center;
}

.pricing-box {
    background: var(--bg-secondary);
    border-radius: var(--rad-lg);
    padding: var(--space-xxl);
    box-shadow: var(--shadow-card);
    max-width: 900px;
    width: 100%;
}

.pricing-box h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

.pricing-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto;
}

/* --- CTA Section --- */
.cta {
    padding: var(--space-hero) var(--space-lg);
    display: flex;
    justify-content: center;
}

.cta-box {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 64px 40px;
    border-radius: var(--rad-lg);
    text-align: center;
    max-width: 800px;
    width: 100%;
    box-shadow: var(--shadow-hover);
}

.cta-box h2 {
    color: var(--bg-secondary);
}

.cta-box p {
    color: rgba(254, 252, 246, 0.8);
    margin: 0 auto var(--space-xl);
}

.cta-form {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.input-mail {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--rad-full);
    border: none;
    font-size: 1rem;
    outline: none;
}

.cta-note {
    font-size: 0.8rem !important;
    margin-top: var(--space-md) !important;
    margin-bottom: 0 !important;
    opacity: 0.7;
}

/* --- Language Toggle --- */
.lang-toggle {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: var(--rad-sm);
    cursor: pointer;
    transition: all var(--trans-fast);
}

.lang-toggle:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* --- Footer --- */
footer {
    background: var(--bg-primary);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    border-top: 1px solid rgba(92, 64, 51, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-copy {
    font-size: 0.85rem;
    margin: 0;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(254, 252, 246, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid rgba(92, 64, 51, 0.1);
        box-shadow: var(--shadow-soft);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: var(--space-sm) 0;
    }

    .nav-btn-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm) var(--space-md);
    }

    .pricing-box {
        padding: var(--space-xl);
    }

    .section-container {
        padding: var(--space-xl) var(--space-md);
    }

    .vision {
        padding: var(--space-xxl) 0;
    }

    .security {
        padding: var(--space-xxl) 0;
    }

    .features {
        padding: var(--space-xxl) var(--space-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .vision-cards {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Start states for GSAP animations */
.gsap-reveal, .gsap-fade-up, .gsap-scale-up, .gsap-slide-left, .gsap-slide-right {
    opacity: 0;
    visibility: hidden;
}

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(184, 150, 12, 0.2);
    color: var(--text-primary);
}
