/*
* Diese Datei wurde mit hilfe von GEMINI PRO erstellt, 
* da meinen eigegen CSS Skills nicht gereicht haben mein Konzept
* schon in HTML und CSS umzusetzen. 
* Weil mir aber einer wirklich darstellung der Daten wichtig war 
* habe ich mich deshalt trotzdem gegen Figma entschieden habe.
*/

:root {
    /* Farbpalette "Organic Forest" */
    --color-sky: #F0F9F9;          /* Sehr helles Blau/Weiß für den Start */
    --color-forest: #2D6A4F;       /* Hauptfarbe Dunkelgrün */
    --color-forest-light: #40916C; /* Helleres Grün */
    --color-lime: #D8F3DC;         /* Ganz helles Grün (Hintergründe) */
    --color-accent: #E09F3E;       /* Warmes Orange/Gold für Highlights */
    --color-text: #1B4332;         /* Fast schwarz für Text */
    --color-white: #FFFFFF;
    --color-trunk: #8D6E63; /* Helles Braun für den nächsten Abschnitt */
    --color-earth: #2b2118;

    /* Typografie */
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Effekte */
    --shadow-soft: 0 10px 40px -10px rgba(45, 106, 79, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(12px);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth; /* Weiches Scrollen bei Anker-Links */
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-sky);
    line-height: 1.6;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive Größe */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-forest);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--color-forest);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.3);
}

.btn-top {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

.btn-top span {
    font-size: 1.2rem;
}


/* SVG Welle unten */
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 100px;
    transform: rotate(180deg);
}

.wave-bottom .shape-fill {
    fill: var(--color-lime); /* Die Farbe der nächsten Section */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.highlight-underline {
    position: relative;
    z-index: 1;
}

/* Ein Pinselstrich unter dem Wort */
.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -5px;
    width: 105%;
    height: 15px;
    background: var(--color-forest-light);
    opacity: 0.3;
    z-index: -1;
    border-radius: 20px 5px 20px 5px;
    transform: rotate(-1deg);
}

/* Welle unten (Übergang zu Dunkelgrün) */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.wave-separator svg {
    display: block;
    width: calc(150% + 1.3px);
    height: 120px;
}
.shape-fill-dark {
    fill: var(--color-forest); /* Farbe der nächsten Sektion */
}

/* Typografie Anpassungen für Dunkel */
.badge-dark {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Footer Styling */
footer {
    text-align: center;
    margin-top: auto; /* Drückt Footer nach unten */
    padding-top: 4rem;
    opacity: 0.5;
    font-size: 0.9rem;
}



/* === GLOBALER LOADER === */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-sky); /* Hintergrundfarbe der Seite */
    z-index: 9999; /* Über allem anderen */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Klasse zum Ausblenden (wird per JS gesetzt) */
.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: var(--color-forest);
}

.loader-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-forest-light);
    display: inline-block;
}

.spin {
    animation: spin 1.5s infinite linear;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.loader-content h3 {
    font-family: var(--font-heading);
    margin: 0;
    font-size: 1.5rem;
}

.loader-content p {
    margin-top: 5px;
    opacity: 0.7;
    font-size: 0.9rem;
}