/* Farben und Schriftarten */
:root {
    --primary-color: #D6CBAC;
    --secondary-color: #8FA6AC;
    --accent-color: #875F53;
    --text-color: #333;
    --background-color: #f9f9f9;
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

/* Überschriften */
.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color); /* Standardfarbe für Section Titles */
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
}

/* Anpassung der Überschriften in der Hero-Sektion */
.hero .section-title {
    color: #fff;
}

/* Anpassung der Überschriften in der Parallax-Sektion */
.parallax .section-title,
.parallax .subsection-title,
.parallax-light .subsection-title {
    color: #fff;
}

.parallax-light .section-title {
    color: var(--text-color);
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s;
    z-index: 1000;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.privacy-policy-page header {
    background-color: #fff; /* Weißer Hintergrund */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}

body.privacy-policy-page nav .nav-links li a {
    color: var(--text-color); /* Schwarze Links */
}

body.privacy-policy-page nav .nav-links li a::after {
    background-color: #875F53; /* Ändert die Farbe der Unterstreichung */
}

/* Verhindert, dass der Header auf der Privacy Policy Seite transparent wird */
body.privacy-policy-page header.scrolled {
    background-color: #fff; /* Weißer Hintergrund bleibt */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

nav .logo img {
    height: 50px;
    transition: filter 0.3s;
    flex-shrink: 0;
}

nav .nav-links {
    list-style: none;
    display: flex;
}

nav .nav-links li {
    margin-left: 30px;
    position: relative;
}

nav .nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s;
}

nav .nav-links li a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background-color: #D6CBAC;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav .nav-links li a:hover::after {
    width: 100%;
}

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

/* Navigation Links ändern sich beim Scrollen nur auf Desktop */
@media (min-width: 769px) {
    header.scrolled nav .nav-links li a {
        color: var(--text-color);
    }
}

header.scrolled .menu-toggle .bar {
    background-color: var(--text-color);
}

nav .nav-links li a::after {
    background-color: #D6CBAC;
}

/* Hamburger-Menü */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    margin: 4px 0;
    transition: 0.3s;
    background-color: #fff;
}

header.scrolled .menu-toggle .bar {
    background-color: #333;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: url('images/hero_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 120px; /* Platz für den Header */
    padding-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

/* Mission-Kacheln */
.mission-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 40px;
}

.mission-cards .card {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    box-sizing: border-box;
    text-align: center;
    transition: background-color 0.3s;
}

.mission-cards .card:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.mission-cards .card .icon-circle {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-cards .card .icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mission-cards .card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.mission-cards .card p {
    font-size: 16px;
    color: #fff;
}

/* Full-Width Card Styles */
.mission-cards .card.full-width {
    background-color: rgba(255, 255, 255, 0.3);
    flex: 1 1 100%;
    max-width: 800px; /* Setzt die maximale Breite auf 800px */
    margin: 0 auto; /* Zentriert die Karte horizontal */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Full-Width Card Styles Hover*/
.mission-cards .card.full-width:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Full-Width Card Styles Font*/
.mission-cards .card.full-width p {
    color: #000000;
}

/* Meet Us Area */
.meet-us .section-title {
    color: var(--text-color);
}

/* meet-us Cards */
.meet-us-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

/* Standard Card Styles */
.meet-us-cards .card {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    margin: 10px;
    flex: 1 1 calc(25% - 20px); /* 4 Karten nebeneinander */
    max-width: calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
    transition: background-color 0.3s;
    color: var(--text-color); /* Standard Textfarbe */
}

.meet-us-cards .card:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.meet-us-cards .card .icon-circle {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meet-us-cards .card .icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meet-us-cards .card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.meet-us-cards .card p {
    font-size: 16px;
    color: var(--text-color); /* Standard Textfarbe */
}

/* Full-Width Card Styles */
.meet-us-cards .card.full-width {
    flex: 1 1 100%;
    max-width: 800px; /* Setzt die maximale Breite auf 800px */
    margin: 0 auto; /* Zentriert die Karte horizontal */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meet-us-cards .card.full-width h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-color); /* Ändert die Farbe des Textes auf die Akzentfarbe */
}

.meet-us-cards .card.full-width p {
    font-size: 16px;
    color: var(--text-color);
}

.meet-us-cards .card.full-width img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 15px;
}


.working-principles .section-title {
    color: var(--text-color);
}

/* Working Principles Cards */
.working-principles-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

/* Standard Card Styles */
.working-principles-cards .card {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    margin: 10px;
    flex: 1 1 calc(25% - 20px); /* 4 Karten nebeneinander */
    max-width: calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
    transition: background-color 0.3s;
    color: var(--text-color); /* Standard Textfarbe */
}

.working-principles-cards .card:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.working-principles-cards .card .icon-circle {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.working-principles-cards .card .icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.working-principles-cards .card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.working-principles-cards .card p {
    font-size: 16px;
    color: var(--text-color); /* Standard Textfarbe */
}

/* Full-Width Card Styles */
.working-principles-cards .card.full-width {
    flex: 1 1 100%;
    max-width: 800px; /* Setzt die maximale Breite auf 800px */
    margin: 0 auto; /* Zentriert die Karte horizontal */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.working-principles-cards .card.full-width h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-color); /* Ändert die Farbe des Textes auf die Akzentfarbe */
}

.working-principles-cards .card.full-width p {
    font-size: 16px;
    color: var(--text-color);
}

.working-principles-cards .card.full-width img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 15px;
}

/* Parallax Sections */
.parallax,
.parallax-light {
    background-image: url('images/parallax_background.jpg'); /* Korrigiert auf die richtige Hintergrundbild-URL */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 20px;
    text-align: center;
}

.parallax::after,
.parallax-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.parallax::after {
    background: rgba(0, 0, 0, 0.6); /* Dunkler Overlay für Parallax */
}

.parallax-light::after {
    background: rgba(255, 255, 255, 0.7); /* Heller Overlay für About */
}

.parallax .overlay,
.parallax-light .overlay-light {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
}

.parallax p,
.parallax-light p {
    color: #fff;
}

.parallax-light .overlay-light {
    color: var(--text-color); /* Ändert die Farbe des Textes auf die Standardfarbe */
}

/* Facts & Figures Section */
.facts-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
}

.facts-cards .card {
    background-color: rgba(255, 255, 255, 0.6); /* Transparenz auf 60% reduziert */
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    box-sizing: border-box;
    text-align: center;
    transition: background-color 0.3s;
    color: #000; /* Textfarbe auf Schwarz gesetzt */
}

.facts-cards .card.full-width {
    flex: 1 1 100%;
    max-width: 100%;
}

.facts-cards .card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.facts-cards .card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.facts-cards .card p,
.facts-cards .card ul {
    font-size: 16px;
}

.facts-cards .card ul {
    list-style-type: disc;
    margin: 10px 0;
    padding-left: 20px;
    text-align: left;
}

.facts-cards .card ul li {
    margin-bottom: 5px;
}

.facts-cards .card:hover {
    background-color: rgba(255, 255, 255, 0.8); /* Leichter Hover-Effekt */
}

/* About Section Content */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 40px;
    justify-content: center; /* Zentriert die Inhalte */
}

.about-content img {
    flex: 1 1 300px;
    max-width: 400px; /* Begrenzung der maximalen Breite auf großen Bildschirmen */
    height: auto; /* Hält das Seitenverhältnis des Bildes bei */
    border-radius: 10px;
    margin: 20px;
    object-fit: cover; /* Hält das Bild proportional */
}

.about-cards {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    margin: 20px;
    max-width: 100%; /* Verhindert Überlauf */
}

.about-card {
    background-color: rgba(0, 0, 0, 0.1); /* Leicht dunklerer Hintergrund */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: var(--text-color); /* Standardfarbe für Text in Cards */
    text-align: left; /* Fügt linksbündige Ausrichtung hinzu */
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.about-card p {
    font-size: 16px;
    color: var(--text-color); /* Standardfarbe für Paragraphen */
}

/* Contact Section */
.contact-section {
    background-image: url('images/parallax_background.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 20px;
    text-align: center;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dunkler Overlay */
}

.contact-section .overlay {
    position: relative;
    z-index: 1;
    color: #fff;
}

.contact-section p {
    font-size: 20px;
}

.contact-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

footer a.impressum-link {
    color: #8FA6AC; /* Gleiche Farbe wie MailTo-Links */
    text-decoration: none;
    font-weight: bold;
}

footer a.impressum-link:hover {
    text-decoration: underline; /* Gleicher Hover-Effekt wie MailTo links */
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(50, 50, 50, 0.9);
    color: #fff;
    padding: 15px 20px;
    display: none; /* Versteckt das Banner standardmäßig */
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    font-size: 14px;
    box-sizing: border-box;
}

.cookie-consent-banner p {
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-banner a.cookie-link {
    color: #8FA6AC; /* Gleiche Farbe wie MailTo-Links */
    text-decoration: underline;
}

.cookie-consent-banner button.accept-cookies-button {
    background-color: var(--accent-color);
    border: none;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.cookie-consent-banner button.accept-cookies-button:hover {
    background-color: #a56a5c; /* Dunklerer Farbton beim Hover */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px; /* Maximum width of the modal */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

/* Legal Notice Content Styles */
.modal-content h2 {
    margin-top: 0;
    color: var(--accent-color);
}

.modal-content p {
    margin: 10px 0;
    line-height: 1.5;
    font-size: 14px; /* Kleinere Schriftgröße */
    color: #666; /* Graue Farbe */
}

.modal-content a {
    color: #8FA6AC; /* Gleiche Farbe wie MailTo-Links */
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline; /* Gleicher Hover-Effekt */
}

/* Privacy Policy Styles */
.privacy-policy {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Für den Schließen-Button */
}

.privacy-policy .section-title {
    text-align: center;
    color: var(--text-color);
}

.privacy-policy p {
    font-size: 14px; /* Kleinere Schriftgröße */
    color: #666; /* Graue Farbe */
    line-height: 1.5;
    margin-bottom: 15px;
}

.privacy-policy a.cookie-link,
.privacy-policy a {
    color: #8FA6AC; /* Gleiche Farbe wie MailTo-Links */
    text-decoration: none;
}

.privacy-policy a.cookie-link:hover,
.privacy-policy a:hover {
    text-decoration: underline; /* Gleicher Hover-Effekt */
}

.privacy-policy .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #8FA6AC; /* Gleiche Farbe wie MailTo-Links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.privacy-policy .close-button:hover {
    color: #875F53; /* Ändert die Farbe beim Hover */
}

/* Spezifische Formatierung für den mailto-Link */
a[href^="mailto"] {
    color: #8FA6AC; /* Setzt die Farbe des Links auf #8FA6AC */
}

a[href^="mailto"]:hover {
    text-decoration: underline; /* Beibehaltung der Unterstreichung beim Hover */
}

/* Highlight Klasse für hervorgehobenen Text */
.highlight {
    color: #ffffff; /* Weißer Text */
    font-weight: bold; /* Fettgedruckter Text */
    background-color: #647378; /* Leicht dunklerer Hintergrund als #8FA6AC */
    padding: 2px 6px; /* Abstand um den Text herum */
    border-radius: 4px; /* Abgerundete Ecken für einen sanfteren Look */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .working-principles-cards .card {
        flex: 1 1 calc(33.333% - 20px); /* 3 Karten nebeneinander */
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .working-principles-cards .card {
        flex: 1 1 calc(50% - 20px); /* 2 Karten nebeneinander */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    /* Hamburger-Menü anzeigen */
    .menu-toggle {
        display: flex;
    }

    nav .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
    }

    nav .nav-links li {
        margin: 20px 0;
    }

    nav .nav-links li a {
        font-size: 24px;
        color: #fff;
    }

    nav .nav-links li a::after {
        background-color: #D6CBAC;
    }

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

    nav .nav-links li a:hover::after {
        width: 100%;
    }

    nav .nav-links.active {
        transform: translateX(0%);
    }

    nav .logo img {
        height: 40px;
    }

    nav .logo {
        flex: 1;
    }

    nav {
        padding: 10px 20px;
    }

    /* Mission-Kacheln */
    .mission-cards {
        flex-direction: column;
        align-items: center;
    }

    .mission-cards .card {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 10px;
    }

    /* Über Uns Sektion */
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-cards {
        width: 100%;
        max-width: 100%; /* Verhindert Überlauf */
    }

    /* Facts & Figures Cards */
    .facts-cards .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Working Principles Cards */
    .working-principles-cards .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .working-principles-cards .card.full-width h3 {
        max-width: 100%;
    }

    /* Deaktivierung von Parallax-Effekten auf mobilen Geräten */
    .parallax,
    .parallax-light {
        background-attachment: scroll; /* Parallax auf mobilen Geräten deaktivieren */
    }

    /* About Section on Mobile */
    .about-content img {
        flex: none;
        max-width: 100%; /* Verhindert, dass das Bild den Container überläuft */
        width: 100%; /* Volle Breite auf mobilen Geräten */
        margin: 0 0 20px 0; /* Keine horizontalen Margen */
    }

    .parallax-light {
        padding: 100px 10px; /* Reduziert horizontales Padding */
    }
}

/* Initialer Zustand der zu animierenden Elemente */
.content-section,
.parallax,
.hero {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Zustand nach dem Hinzufügen der 'active' Klasse */
.content-section.active,
.parallax.active,
.hero.active {
    opacity: 1;
    transform: translateY(0);
}

/* Padding nur für .content-section und nicht den Header */
.content-section {
    padding-top: 60px;
}
