@import url('https://fonts.googleapis.com/css2?family=Style+Script&display=swap');

body {
    margin: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Verhindert horizontales Scrollen bei großen Bildern */
    overflow-y: scroll;
    background-color: #ccc; /* Hintergrundfarbe außerhalb der Sections */
}

nav {
    display: flex;
    justify-content: center; /* Zentriere die Navigationselemente horizontal */
    align-items: center; /* Zentriere die Navigationselemente vertikal */
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.menu-icon {
    display: none;
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 1000; /* Sicherstellen, dass das Symbol über allem liegt */
}

/* Mobile Stile */
@media (max-width: 768px) {
    header {
        padding: 20px 0; /* Vergrößert den Header */
        height: 70px; /* Fixiert die Höhe des Headers */
    }

    .menu-icon {
        display: block;
        font-size: 30px; /* Vergrößern Sie das Hamburger-Symbol */
        top: 10px; /* Positionierung des Symbols innerhalb des Headers */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center; /* Zentriere die Navigationselemente vertikal */
        background: #ACF6C8; /* Hintergrundfarbe des Dropdown-Menüs im Hamburger-Menü */
        padding-top: 60px; /* Abstand für das Hamburger-Symbol */
    }

    .nav-links.active {
        display: flex;
        margin-top: 0; /* Kein zusätzlicher Abstand erforderlich */
    }

    .nav-links li {
        margin: 0;
        margin-bottom: 25px; /* Fügt zusätzlichen Abstand zwischen den Menüpunkten hinzu */
    }

    .nav-links li a {
        padding: 15px;
        border-top: 1px solid #444;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        background: #ACF6C8; /* Hintergrundfarbe des Dropdown-Menüs im Hamburger-Menü */
    }
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #ACF6C8; /* Ändern Sie die Hintergrundfarbe */
    padding: 10px 0;
    text-align: center;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
    position: relative; /* Für das Dropdown-Menü */
}

header nav ul li a, .dropdown-button {
    color: black;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

header nav ul li a:hover, .dropdown-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ACF6C8; /* Ändern Sie die Hintergrundfarbe */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%; /* Positioniert direkt unter dem Button */
    left: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000;
    background: #ACF6C8; /* Ändern Sie die Hintergrundfarbe */
    padding: 10px 0;
    text-align: center;
    color: #fff;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer nav ul li {
    color: black;
    font-weight: bold;
    display: inline;
    margin: 0 5px;
}

footer nav ul li a {
    color: black;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2000;
}

footer nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 1001;
}

/* Stil für die Style Script Schrift */
.style-script-regular {
    font-family: "Style Script", cursive;
    font-weight: 400;
    font-style: normal;
}

h2 {
    font-family: "Style Script", cursive; /* Schriftart für h2 */
    font-weight: 900; /* Schriftgewicht für stärkere Darstellung */
    font-size: 60px;
}

/* Stil für die Hero-Sektion */
.hero {
    background: url('background.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.overlay {
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 100%;
    height: auto;
}

main {
    padding-top: 55px; /* Platz für den fixierten Header */
    padding-bottom: 35px; /* Platz für den fixierten Footer */
    padding-left: 15px; /* Abstand vom linken Rand */
    padding-right: 15px; /* Abstand vom rechten Rand */
}

section {
    padding: 50px 15px; /* Abstand innerhalb der Sections */
    min-height: auto; /* Entfernen der festen Höhe */
    background-color: #ccc; /* Hintergrundfarbe der Sections */
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0;
    transform: translateY(50px);
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

#home, #about, #unikate, #schilder, #windlichter, #festliches, #druck, #torten, #contact, #impressum, #datenschutz {
    background-color: #ccc; /* Setzen Sie die Hintergrundfarbe der Sections */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    position: relative;
}

.gallery-item {
    width: calc(30% - 20px); /* 3 Bilder pro Reihe */
    height: auto; /* Höhe anpassen */
    aspect-ratio: 1 / 1; /* Quadratische Bilder */
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.enlarged-overlay {
    display: none; /* Initial unsichtbar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Vollbildbreite */
    height: 100vh; /* Vollbildhöhe */
    background: rgba(0, 0, 0, 0.8); /* Dunkler Hintergrund */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.enlarged-overlay img {
    max-width: 90vw; /* Maximal 90% der Viewport-Breite */
    max-height: 90vh; /* Maximal 90% der Viewport-Höhe */
    object-fit: contain; /* Bild innerhalb des Viewports behalten */
}

.enlarged-overlay.active {
    display: flex; /* Sichtbar, wenn aktiv */
}

/* Stil für das Cookie-Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    display: none; /* Standardmäßig versteckt */
    z-index: 1000;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner a {
    color: red;
    text-decoration: none;
}

.cookie-banner button {
    background-color: white;
    border: none;
    color: #333;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
}

.cookie-banner button:hover {
    background-color: #ddd;
}
