/* --- Variables --- */
:root {
    /* Colors as dictated by Brand:
       3F6D50 (Primary Green)
       2D5784 (Primary Blue)
       E8AD43 (Accent Gold)
       497B5B (Lighter Green)
    */
    --color-primary-green: #3F6D50;
    --color-primary-blue: #2D5784;
    --color-accent-gold: #E8AD43;
    --color-light-green: #497B5B;

    --color-background-dark: var(--color-primary-blue);
    --color-background-light: #F5F5F0;
    --color-text-light: #FFFFFF;
    --color-text-dark: #1A1A1A;
    --color-text-muted: rgba(255, 255, 255, 0.8);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
    /* FIX für das horizontale Scroll-Problem auf Mobile */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* FIX für das horizontale Scroll-Problem auf Mobile */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* FIX für das horizontale Scroll-Problem auf Mobile */
#smooth-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- FIX: Realistische, scharfe Pinselstriche (Entfernt Unschärfe) --- */
.brush-stroke, .brush-path {
    filter: url(#realistic-brush) !important;
    -webkit-filter: url(#realistic-brush) !important;
    transform-style: preserve-3d; /* Verhindert Weichzeichnen durch Hardware-Beschleunigung */
    backface-visibility: hidden;
    will-change: transform;
}

/* Verhindert, dass die Sektion unter dem Header verschwindet */
section {
    scroll-margin-top: 100px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* --- Utilities --- */
.section-line-divider {
    height: 1px;
    background-color: var(--color-primary-blue);
    width: 100%;
    opacity: 0.3;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-accent-gold);
    color: var(--color-text-dark);
    font-weight: 600;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-green);
    transform: translateY(100%);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--color-text-light);
}

.btn-primary:hover::before {
    transform: translateY(0);
}

/* Secondary Button (z.B. für den Cookie Banner) */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-primary-blue);
    color: var(--color-primary-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(45, 87, 132, 0.05);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    z-index: 100;
    transition: var(--transition-smooth);
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav.scrolled {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
}

/* Desktop Navigation (Orientierungshilfe) */
.desktop-nav-links {
    display: none; /* Mobile first: auf kleinen Screens ausblenden */
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Ab Tablet/Desktop einblenden */
@media (min-width: 992px) {
    .desktop-nav-links {
        display: flex;
    }
    .nav-title-wrapper {
        display: none !important;
    }
}

.desktop-nav-links a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.desktop-nav-links a:hover {
    color: var(--color-primary-green);
}

/* Aktiver State (Scroll-Spy) */
.desktop-nav-links a.active {
    color: var(--color-primary-green);
    font-weight: 700;
}

.desktop-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary-green);
    border-radius: 2px;
}

/* Burger Menu Icon */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

/* Verstecke Burger-Menü auf Desktop */
@media (min-width: 992px) {
    .burger-menu {
        display: none;
    }
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary-blue);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--color-text-light);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--color-text-light);
}

/* Full Screen Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(45, 87, 132, 0.98);
    /* Primary Blue */
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.overlay-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.overlay-link:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-accent-gold);
    transition: var(--transition-smooth);
}

.overlay-link:not(.btn-primary):hover {
    color: var(--color-accent-gold);
}

.overlay-link:not(.btn-primary):hover::after {
    width: 100%;
}

/* Strategie - shown in green */
.overlay-link-green {
    color: var(--color-primary-green) !important;
}

/* Close X Button in Nav Overlay */
.nav-overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-overlay-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary-blue);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.5;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -150%; /* Versteckt den Banner initial, slidet dann rein */
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    padding: 1.5rem 0;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-text-dark);
    font-family: var(--font-body);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .cookie-container {
        flex-direction: row;
    }
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--color-primary-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.cookie-text a:hover {
    opacity: 0.8;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}
