/* =================================================================== */
/* GRUNDLEGENDE STILE & CSS-VARIABLEN                                    */
/* =================================================================== */
/* Hier definieren wir die zentralen Farbwerte und Einstellungen,      */
/* die auf der gesamten Seite wiederverwendet werden. Das erleichtert   */
/* spätere Design-Anpassungen.                                         */
/* =================================================================== */

:root {
    /* Markenfarben */
    --primary-color: #f29400; /* Haupt-Orange für Buttons und Akzente */
    --primary-color-darker: #c67100; /* Dunkleres Orange für Texte, um WCAG-Kontrast-Richtlinien zu erfüllen */
    
    /* Schrift- und Hintergrundfarben */
    --font-color: #000000; /* Standard-Schriftfarbe (Schwarz) */
    --background-color: #ffffff; /* Standard-Hintergrund (Weiß) */
    --dark-gray-color: #333333; /* Dunkles Grau für die "Über Uns"-Sektion */
}


/* =================================================================== */
/* BODY & GLOBALE EINSTELLUNGEN                                        */
/* =================================================================== */
/* Diese Stile gelten für die gesamte Seite. Wir setzen hier die       */
/* Schriftart, den "Liquid Glass"-Hintergrund und dekorative Effekte.  */
/* =================================================================== */

body {
    margin: 0;
    font-family: Verdana, sans-serif; /* Schriftart wie gewünscht auf Verdana umgestellt */
    color: var(--font-color);
    line-height: 1.6; /* Verbessert die Lesbarkeit von Textblöcken */
    scroll-behavior: smooth; /* Sorgt für sanftes Scrollen bei Anker-Links */
    position: relative; /* Notwendig für die Positionierung der Deko-Elemente */
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    
    /* "Liquid Glass" Hintergrund-Gradient */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Dekorative Hintergrund-"Blobs" für den Liquid-Effekt */
/* Diese Pseudo-Elemente erzeugen die unscharfen Farbflecken im Hintergrund. */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Starker Weichzeichner für den sanften Farbverlauf */
    z-index: -1; /* Positioniert die Blobs hinter allen anderen Inhalten */
}

body::before {
    width: 300px;
    height: 300px;
    background: rgba(242, 148, 0, 0.15); /* Sanftes Orange */
    top: 5%;
    left: -100px;
}

body::after {
    width: 400px;
    height: 400px;
    background: rgba(242, 148, 0, 0.1); /* Sanftes Orange */
    bottom: 10%;
    right: -150px;
}

/* Container für zentrierten Inhalt */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =================================================================== */
/* BARRIEREFREIHEIT (BITV/WCAG)                                        */
/* =================================================================== */
/* Stile zur Verbesserung der Zugänglichkeit für alle Nutzer.          */
/* =================================================================== */

/* "Skip-to-Content"-Link für Tastaturnutzer */
/* Diese Klasse versteckt ein Element visuell, aber nicht für Screenreader. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Macht den Skip-Link sichtbar, wenn er den Fokus erhält */
.skip-link.sr-only:focus {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--dark-gray-color);
    color: white;
    z-index: 2000;
    text-decoration: none;
    border-radius: 4px;
}


/* Sichtbarer Fokus-Stil für Tastaturnutzer */
a:focus, button:focus, [tabindex="0"]:focus {
    outline: 3px solid #005A99; /* Blauer Rahmen für hohen Kontrast */
    outline-offset: 2px;
    box-shadow: none; /* Entfernt andere Schatten, um den Fokus hervorzuheben */
}


/* =================================================================== */
/* HEADER & NAVIGATION                                                 */
/* =================================================================== */
/* Stile für den Kopfbereich der Seite, inklusive Logo und Menü.       */
/* Der Header hat einen "Glassmorphism"-Effekt und bleibt beim         */
/* Scrollen am oberen Bildschirmrand fixiert.                          */
/* =================================================================== */

header {
    /* Glassmorphism Effekt */
    background: rgba(255, 255, 255, 0.6); /* Milchiges Weiß */
    backdrop-filter: blur(10px); /* Weichzeichnung des Hintergrunds */
    -webkit-backdrop-filter: blur(10px); /* Für Safari-Browser */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Dezente untere Kante */
    box-shadow: 0 2px 30px rgba(0,0,0,0.1); /* Sanfter Schatten für mehr Tiefe */
    position: sticky; /* Fixiert den Header oben */
    top: 0;
    z-index: 1000; /* Stellt sicher, dass der Header über anderen Elementen liegt */
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.logo-icon { height: 50px; }
.logo-text { height: 45px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

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

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

.cta-button-nav {
    background-color: var(--primary-color);
    color: var(--font-color); /* WCAG-Anpassung */
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 148, 0, 0.3);
}

.cta-button-nav:hover {
    background-color: #d98300;
    color: var(--font-color);
    box-shadow: 0 6px 20px rgba(242, 148, 0, 0.4);
}

/* Burger-Menü (für mobile Ansicht) */
.burger-menu {
    display: none; /* Standardmäßig auf Desktops ausgeblendet */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.burger-bar {
    width: 2rem;
    height: 0.25rem;
    background: var(--dark-gray-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}


/* =================================================================== */
/* SEKTIONEN & ALLGEMEINE LAYOUT-ELEMENTE                              */
/* =================================================================== */
/* Globale Stile für die Inhalts-Sektionen, Überschriften und Buttons. */
/* Jede Sektion wird als Flex-Container definiert, um den Inhalt       */
/* vertikal zu zentrieren.                                             */
/* =================================================================== */

section {
    /* Padding auf 8em oben/unten. !important wird auf Wunsch verwendet, */
    /* um spezifischere Regeln (wie bei #hero) zu überschreiben.         */
    padding: 8em 0 !important;
    
    /* Flexbox-Eigenschaften zur vertikalen Zentrierung des Inhalts */
    display: flex;
    flex-direction: column; /* Stellt sicher, dass die Elemente untereinander angeordnet werden */
    justify-content: center; /* Zentriert den Inhalt vertikal */
}

/* Abwechselnde Sektions-Hintergründe */
/* Jede ungerade Sektion (1, 3, 5...) hat einen dunkleren Glas-Effekt. */
main > section:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03); /* Dunklerer, transparenter Hintergrund */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Jede gerade Sektion (2, 4, 6...) hat einen helleren Glas-Effekt. */
main > section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.1); /* Hellerer, transparenter Hintergrund */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Die "Über Uns" Sektion behält ihren speziellen dunklen Hintergrund */
#herkunft {
    background-color: var(--dark-gray-color);
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--font-color); /* WCAG-Anpassung */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 148, 0, 0.3);
}

.cta-button:hover {
    background-color: #d98300;
    box-shadow: 0 6px 20px rgba(242, 148, 0, 0.4);
    transform: translateY(-2px);
}


/* =================================================================== */
/* SPEZIFISCHE SEKTIONEN (FEATURES, SHOWCASE, ETC.)                    */
/* =================================================================== */
/* Detaillierte Stile für die einzelnen Inhaltsbereiche wie die        */
/* Feature-Karten, die Bildergalerie und den Kontaktbereich.           */
/* =================================================================== */

/* Hero Sektion */
#hero {
    padding: 0 !important; /* Überschreibt das allgemeine Padding für die Zentrierung */
    min-height: 80vh; /* Füllt einen Großteil des Bildschirms */
    text-align: center;
}

/* ANPASSUNG: h1 Schriftgröße erhöht für bessere visuelle Hierarchie */
.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}


/* Feature-Karten (wird für "Funktionen" und "Zielgruppen" verwendet) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--primary-color-darker);
}

.feature-card h3 {
    color: var(--primary-color-darker);
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Showcase Sektion */
.showcase-top-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    margin-bottom: 80px;
}

.showcase-top-desktop {
    max-width: 70%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 1;
}

.showcase-top-mobile {
    position: absolute;
    max-height: 80%;
    right: 15%;
    bottom: -10%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 3px solid white;
    z-index: 2;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    display: block;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* "Über Uns" Sektion */
#herkunft {
    color: white;
    text-align: center;
}

.herkunft-logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 30px;
}

#herkunft h2 {
    color: var(--primary-color);
}

.herkunft-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Kontakt Sektion */
.kontakt-details-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.kontakt-info {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    text-align: left;
}

.kontakt-info h3 {
    margin-top: 0;
    color: var(--primary-color-darker);
    text-align: center;
    margin-bottom: 25px;
}

.kontakt-info p { margin-bottom: 10px; }
.kontakt-info a {
    color: var(--primary-color-darker);
    text-decoration: none;
    font-weight: bold;
}
.kontakt-info a:hover { text-decoration: underline; }
.kontakt-button-container { text-align: center; }


/* =================================================================== */
/* FOOTER & LIGHTBOX                                                   */
/* =================================================================== */
/* Stile für den Fußbereich sowie für die Lightbox-Funktion, die       */
/* die vergrößerte Ansicht der Galeriebilder ermöglicht.               */
/* =================================================================== */

footer {
    background-color: #222;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.lightbox-close:hover { color: #ccc; }

/* Stile für Impressum & Datenschutz-Seiten */
.legal-page-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left; /* ANPASSUNG: Text linksbündig */
}

/* ANPASSUNG: Überschriften-Größen für Legal Pages */
.legal-page-content h1 {
    font-size: 4em;
    text-align: left; /* ANPASSUNG: h1 linksbündig */
}

.legal-page-content h2 {
    font-size: 2.5em;
}

.legal-page-content h3 {
    font-size: 1.5em;
    color: var(--primary-color-darker);
}

.legal-page-content h2, .legal-page-content h3, .legal-page-content h4 {
    margin-top: 2em;
    text-align: left; /* Unter-Überschriften linksbündig */
}

.legal-page-content a { color: var(--primary-color-darker); }


/* =================================================================== */
/* RESPONSIVE DESIGN (MEDIA QUERIES)                                   */
/* =================================================================== */
/* Passt das Layout für verschiedene Bildschirmgrößen an, um eine      */
/* optimale Darstellung auf Tablets und Smartphones zu gewährleisten.  */
/* =================================================================== */

/* Für Tablets und kleinere Desktops */
@media (max-width: 992px) {
    .showcase-top-mobile { right: 5%; }
    .feature-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Für Smartphones */
@media (max-width: 768px) {
    /* Burger-Menü einblenden und Desktop-Navigation ausblenden */
    .burger-menu {
        display: flex;
    }
    .nav-links {
        display: none; /* Desktop-Menü ausblenden */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    
    /* ANPASSUNG: h1 Schriftgröße für Mobilgeräte */
    .hero-content h1 { font-size: 3em; }
    section h2 { font-size: 2em; }
    .legal-page-content h1 { font-size: 3em; }
    .legal-page-content h2 { font-size: 2em; }

    .showcase-top-container {
        flex-direction: column;
        height: auto;
    }
    .showcase-top-desktop { max-width: 90%; }
    .showcase-top-mobile {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 50%;
        margin-top: -50px;
    }
    .image-gallery { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .kontakt-details-wrapper { flex-direction: column; }
}
