/* --- VARIABLES & RESET --- */
:root {
    /* Gunmetal & Bone Palette */
    --gunmetal: #474448;
    --shadow-grey: #2d232e;
    --bone: #e0ddcf;
    --taupe-grey: #534b52;
    --parchment: #f1f0ea;

    /* Semantic Mapping */
    --bg-main: var(--parchment);      
    --bg-contrast: var(--bone);       
    --bg-dark: var(--shadow-grey);    
    
    --text-primary: var(--shadow-grey);
    --text-secondary: var(--taupe-grey);
    --text-light: var(--parchment);
    
    --accent: var(--gunmetal);
    
    /* Spacing */
    --container-width: 1100px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- LANGUAGE SWITCHING LOGIC --- */
/* Hide German text when body has the English class */
.lang-en .de-text {
    display: none !important;
}

/* Hide English text when body has the German class */
.lang-de .en-text {
    display: none !important;
}
/* ------------------------------------- */

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--shadow-grey);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px; 
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Primary Button (Dark on Light) */
.btn-primary {
    background-color: var(--shadow-grey);
    color: var(--bone);
}

.btn-primary:hover {
    background-color: var(--gunmetal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 35, 46, 0.2);
}

/* Inverse Button (Light on Dark) */
.btn-primary-inv {
    background-color: var(--bone);
    color: var(--shadow-grey);
}

.btn-primary-inv:hover {
    background-color: var(--parchment);
    transform: scale(1.05);
}

/* Small Button (Navbar) */
.btn-sm {
    padding: 8px 20px;
    background-color: var(--shadow-grey);
    color: var(--parchment);
}

.btn-sm:hover {
    background-color: var(--gunmetal);
}

/* Text Link Button */
.btn-text {
    color: var(--bone);
    margin-left: 20px;
    border-bottom: 1px solid transparent;
    padding: 8px 0;
}

.btn-text:hover {
    color: var(--parchment);
    border-bottom: 1px solid var(--parchment);
}

/* --- NAVIGATION --- */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(241, 240, 234, 0.95); /* Parchment with opacity */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(45, 35, 46, 0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shadow-grey);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    color: var(--shadow-grey);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--taupe-grey);
}

/* Hamburger Icon Styling */
.hamburger {
    display: none; /* Hide on desktop */
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: var(--shadow-grey);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
/* END Hamburger Icon Styling */

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    background-color: var(--bg-dark);
    color: var(--parchment);
    padding: 100px 0 120px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.tagline {
    display: inline-block;
    color: var(--bone);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: var(--parchment); 
}

.hero-text {
    font-size: 1.25rem;
    color: var(--bone);
    margin-bottom: 40px;
    max-width: 650px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    align-items: center;
}

/* Abstract Shape Background */
.hero-bg-shape {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gunmetal) 0%, rgba(45, 35, 46, 0) 70%);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 100px 0;
}

.bg-contrast {
    background-color: var(--bg-contrast); 
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--taupe-grey);
}

/* --- GRIDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* --- PROBLEM CARDS (Flat) */
.flat-card {
    text-align: left;
    padding: 20px;
    border-left: 2px solid var(--bone);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 20px;
}

.flat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--shadow-grey);
}

.flat-card p {
    color: var(--taupe-grey);
    font-size: 1rem;
}

/* --- SOLUTION FEATURE CARDS --- */
.feature-card {
    background: var(--parchment); 
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(45, 35, 46, 0.05);
    border: 1px solid rgba(45, 35, 46, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensures equal height in grid */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(45, 35, 46, 0.1);
    border-color: var(--bone);
}

.step-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--bone); 
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.bg-contrast .step-number {
    color: #d1cebf; 
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--shadow-grey);
    margin-bottom: 15px;
    position: relative;
}

.feature-card p {
    color: var(--taupe-grey);
    position: relative;
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--gunmetal);
    color: var(--parchment);
    text-align: center;
}

.cta-content h2 {
    color: var(--parchment);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--bone);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-dark);
    padding: 40px 0;
    text-align: center;
    color: var(--taupe-grey);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Styling for the Cookie Link (NEW) */
.footer-links {
    margin-top: 10px;
}

.footer-links .cookie-link {
    color: var(--bone); /* Light color on dark background, similar to btn-text */
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    padding: 5px 0;
}

.footer-links .cookie-link:hover {
    color: var(--parchment);
    border-bottom: 1px solid var(--parchment);
}
/* END Styling for the Cookie Link */

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    
    .nav-container {
        /* Reset flex-direction for correct mobile stacking */
        flex-direction: row; 
        align-items: center;
    }
    
    /* Show hamburger icon on mobile */
    .hamburger {
        display: block; 
    }
    
    /* Mobile Menu Container */
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(45, 35, 46, 0.1);
        transform: translateY(-100%); /* Hide menu initially */
        transition: transform 0.3s ease-in-out;
        border-bottom: 1px solid rgba(45, 35, 46, 0.05);
    }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        transform: translateY(0); /* Show menu */
    }
    
    .nav-links a {
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid var(--parchment);
        margin: 0;
    }
    
    .btn-sm {
        margin-top: 10px;
    }
    
    /* Original mobile fixes */
    .hero-section { text-align: center; padding: 60px 0 80px; }
    .hero-content { margin: 0 auto; }
    .hero-section h1 { font-size: 2.5rem; }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .btn-text { margin-left: 0; }

    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flat-card { text-align: center; border-left: none; border-top: 2px solid var(--bone); }
}

@media (max-width: 480px) {
    .hero-section h1 { font-size: 2rem; }
}