html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif ;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #192B4A;
  color: #fff;
  padding: 15px;
  z-index: 10000; /* höher als nav (1000) */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* Banner standardmäßig anzeigen */
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Wenn du per JS eine Klasse "hidden" setzt, kann man das Banner elegant ausblenden */
.cookie-banner.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Fixed nav bar */
/* Base styles for the navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    background-color: white;
    padding: 10px 20px;
    z-index: 1000;
}

/* Menu button styles */
.menu-button {
    font-size: 18px; /* Size of the menu button */
    cursor: pointer; /* Pointer cursor on hover */
    display: none; /* Hidden by default */
}

/* Navigation links */
nav ul {
    list-style-type: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    display: flex; /* Default to flex for desktop */
    justify-content: space-evenly; /* Space evenly on desktop */
    width: 100%;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    /* Show the hamburger menu button */
    .menu-button {
        display: block; /* Show the menu button on smaller screens */
    }

    /* Hide the navigation links by default */
    nav ul {
        display: none; /* Hide links on smaller screens */
        flex-direction: column; /* Stack links vertically */
        position: absolute; /* Position absolutely */
        top: 60px; /* Position below the navbar */
        left: 0; /* Align to the left */
        width: 100%; /* Full width */
        background-color: white; /* Background color for dropdown */
        padding: 10px 0; /* Padding for the dropdown */
    }

    /* Show the links when the menu is open */
    nav ul.show {
        display: flex; /* Show the links when the menu is open */
    }
}

/* Hover effect for navbar items */
nav ul li a:hover {
    font-weight: bold;
}

nav ul li a {
    text-decoration: none;
    text-transform: uppercase;
    color: #192B4A;
    padding: 15px 20px;
    display: block; /* Make the link fill the entire list item */
}

/* Home section styles */
#home {
    position: relative;
    height: 200vh; /* Full viewport height */
    background-image: url('images/startseite.jpg'); /* Replace with your background image */
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the image */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow: hidden; /* Prevent overflow */
}

/* Logo styles */
.logo {
    position: absolute; /* Position it absolutely within the home section */
    top: 100px; /* Space from the top border (adjust as needed) */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    z-index: 10; /* Ensure it appears above the background */
    transition: top 0.1s ease;
}

.logo img {
    width: 350px; /* Set a specific width for larger screens */
    height: auto; /* Maintain aspect ratio */
}

/* Responsive design for logo */
@media (max-width: 1200px) {
    .logo img {
        width: 350px; /* Smaller width for medium screens */
    }
}

@media (max-width: 900px) {
    .logo img {
        width: 300px; /* Smaller width for smaller screens */
    }
}

@media (max-width: 600px) {
    .logo img {
        width: 250px; /* Even smaller width for very small screens */
    }
}

@media (max-width: 400px) {
    .logo img {
        width: 200px; /* Minimum width for very narrow screens */
    }
}

/* General section spacing */
.section-spacing {
    padding: 20px 20px; /* Add padding to the top and bottom of each section */
    background-color: white; /* Optional: Add a background color for contrast */
}

/* Header image styles */
.header-image {
    width: 40%; /* Default width for larger screens */
    height: auto; /* Maintain aspect ratio */
    max-width: none; /* Remove max-width to allow full width */
    margin-left: -5%; /* Remove margin */
    padding: 0;
    display: block; /* Ensure it behaves like a block element */
}

/* Responsive design for header image */
@media (max-width: 600px) {
    .header-image {
        width: 80%; /* Increase width to 80% on mobile */
        margin-left: -10%; /* Center the image by removing negative margin */
    }
}


/* --- COMMON STYLES --- */
.blue-box,
.reversed-box {
    display: flex;
    align-items: stretch; /* Stretch children to match height */
    background-color: #192B4A;
    color: white;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    flex-direction: row;
}

/* IMAGE */
.blue-box img,
.reversed-box img {
    width: 600px;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0; /* Inner border-radius not needed inside parent */
}

/* TEXT */
.blue-box-text,
.reversed-box-text {
    flex: 1;
    padding: 40px;
    text-align: left;
    font-family: 'Arial', serif;
    font-size: 1rem;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center text */
}

/* LINKS */
.blue-box a,
.reversed-box a {
    display: block;
    text-decoration: none;
}

/* REVERSED BOX */
.reversed-box {
    flex-direction: row-reverse;
}

/* --- RESPONSIVE: TABLET --- */
@media (max-width: 1200px) {
    .blue-box,
    .reversed-box {
        flex-direction: column;
        align-items: center;
    }

    .blue-box img,
    .reversed-box img {
        width: 100%;
        height: auto;
    }

    .blue-box-text,
    .reversed-box-text {
        padding: 20px;
    }
}

/* --- RESPONSIVE: MOBILE --- */
@media (max-width: 600px) {
    .blue-box,
    .reversed-box {
        margin: 20px;
    }

    .blue-box-text,
    .reversed-box-text {
        padding: 15px;
    }
}


/* Section styling to ensure vertical stack */
section#weingut {
    display: block;
    margin-top: 40px; /* Adds space between the previous section and the first box */
}


.text-content {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.text-content h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.text-content p {
    margin-bottom: 20px;
}

/* Kontaktformular */
#Kontakt {
    background-image: url('images/Kontaktformular.jpg');
    background-size: cover; /* Ensure the background image covers the entire section */
    background-position: center; /* Center the background image */
    width: 100%; /* Full width */
    height: 860px; /* Fixed height */
    display: flex;
    justify-content: right; /* Center the contact container */
    align-items: right;
    padding: 20px; /* Add some padding */;
}

.contact-container {
    width: 40%; /* Default width for larger screens */
    max-width: 600px; /* Set a max width for larger screens */
    height: 650px;
    background: rgba(25, 43, 74, 0.8);
    border-radius: 8px;
    margin: 50px;
    padding: 30px;
    color: #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #Kontakt {
        height: auto; /* Allow height to adjust based on content */
        padding: 10px; /* Reduce padding on smaller screens */
    }

    .contact-container {
        width: 90%; /* Fill almost the entire width on mobile */
        margin: 0 auto; /* Center the container */
    }
}

.contact-form h2 {
    text-align: center;
    color: #f9f9f9;
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 90%; /* Keep input fields responsive */
    padding: 8px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    width: 93%; /* Keep button responsive */
    padding: 10px;
    margin-top: 15px;
    border: none;
    background-color: #ffffff;
    color: #000435;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form button:hover {
    background-color: #ddd;
}

/* Weine section styles */
#Weine {
    text-align: left; /* Align the heading to the left */
}

/* Container for wine boxes */
.wine-container {
    display: grid; /* Use grid layout for better control */
    grid-template-columns: repeat(5, 1fr); /* Create 5 equal columns */
    gap: 40px; /* Space between boxes */
    padding: 30px; /* Padding around the container */
}

/* Individual wine box styles */
.wine-box {
    background-color: #192B4A; /* Box color */
    color: white; /* Text color */
    font-size: 12px;
    padding: 14px; /* Padding inside the box */
    border-radius: 8px; /* Rounded corners */
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center items horizontally */
}

/* Image styles */
.wine-box img {
    width: auto; /* Make the image fill the width of the box */
    height: 250px; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space between image and text */
}

/* Text styles */
.wine-box p {
    margin: 0; /* Remove default margin */
    text-align: left; /* Align the text to the left */
}

/* Responsive design */
@media (max-width: 1200px) {
    .wine-container {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for medium screens */
    }
}

@media (max-width: 992px) {
    .wine-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for smaller screens */
    }
}

@media (max-width: 768px) {
    .wine-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 480px) {
    .wine-container {
        grid-template-columns: 1fr; /* 1 column for mobile devices */
    }
}

/* --- Logos nebeneinander auf weißem Hintergrund --- */
.logo-section {
  background-color: white;
  padding: 40px 0;
  max-height: 250px; /* ca. 5cm */
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  display: flex;
  gap: 200px; /* Abstand zwischen Logos */
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Logo-Bild */
.logo-img {
  max-height: 160px;
  max-width: 350px;
  object-fit: contain;
}

/* --- Responsive Anpassung für kleinere Bildschirme --- */
@media (max-width: 768px) {
  .logo-container {
    flex-direction: column;
    gap: 40px; /* kleinerer Abstand zwischen Logos im mobilen Layout */
  }

  .logo-section {
    max-height: none; /* Höhe freigeben, falls zwei Logos mehr Platz brauchen */
  }
}



/* Bestellung */
#Bestellung {
    background-image: url('images/weine.jpg'); /* Background image */
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the image */
    width: 100%; /* Full width */
    height: 100vh; /* Full height of the viewport */
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center vertically */
    justify-content: flex-start; /* Align items to the start (left) */
    padding: 20px; /* Add some padding to prevent content from touching edges */
    box-sizing: border-box; /* Include padding in width/height calculations */
}

.bestellung-container {
    background-color: rgba(25, 43, 74, 0.8); /* Semi-transparent background */
    color: white; /* Text color */
    padding: 30px; /* Padding inside the container */
    margin-left: 2%;
    border-radius: 0; /* No rounded corners */
    max-width: 500px; /* Maximum width for the container */
    width: 100%; /* Full width for larger screens */
    min-width: 250px; /* Minimum width for the container */
    height: 100vh; /* Match height to the parent container */
    text-align: left; /* Left-align the text */
    box-sizing: border-box; /* Include padding in width calculations */
}

/* Responsive design */
@media (max-width: 1000px) {
    #Bestellung {
        height: auto; /* Allow height to adjust based on content */
        justify-content: flex-start; /* Keep items aligned to the start (left) */
    }

    .bestellung-container {
        width: 80%; /* Fill 80% of the screen width */
        max-width: 800px; /* Maximum width for the container on smaller screens */
        margin: 0; /* No margin to keep it aligned to the left */
    }
}

@media (max-width: 600px) {
    #Bestellung {
        justify-content: center; /* Center horizontally when screen is very narrow */
        height: auto; /* Allow height to adjust based on content */
    }

    .bestellung-container {
        width: 90%; /* Fill 90% of the screen width */
        max-width: none; /* Remove max-width to allow full coverage */
        margin: 0; /* No margin to keep it aligned to the edges */
        padding: 20px; /* Adjust padding for smaller screens */
        height: 100%; /* Match height to the parent container */
    }
}

/* Galerie */
#Galerie {
    color: black;
    width: 97%;
}

.gallery-fixed {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns by default */
    gap: 1rem;
    padding: 1rem 2rem;
}

.gallery-fixed a img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Responsive design for gallery */
@media (max-width: 1200px) {
    .gallery-fixed {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for medium screens */
    }
}

@media (max-width: 900px) {
    .gallery-fixed {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for smaller screens */
    }
}

@media (max-width: 600px) {
    .gallery-fixed {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for even smaller screens */
    }
}

@media (max-width: 400px) {
    .gallery-fixed {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    margin-bottom: 1rem;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-nav .prev,
.lightbox-nav .next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transform: translateY(-50%);
}

.lightbox-nav .prev {
    left: 10px;
}

.lightbox-nav .next {
    right: 10px;
}


/* Footer styling */
footer {
    background-color: #192B4A; /* Blau */
    color: white;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    font-family: Arial, sans-serif;
}

.footer-box {
    padding: 10px;
    background-color: #192B4A;
    /* Höhe passt sich automatisch an */
}

.contact-info {
    flex: 1 1 60%; /* Linke Box nimmt ca. 60% Breite */
    min-width: 280px;
}

.footer-links {
    flex: 0 0 300px; /* Rechte Box feste Breite */
    display: flex;
    flex-direction: column;
    align-items: center; /* Inhalt horizontal zentrieren */
    gap: 10px;
    padding: 100px;
}

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

footer a:hover {
    text-decoration: underline;
}



/* Section styling for datenschutz */
.datenschutz {
    background-image: url('images/Datenschutz_Helmut_Maglock_1920x932.jpg'); /* Replace with your image path */
    min-height: 80vh;
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the image */
    color: white; /* Text color */
    padding-top: 100px; /* Padding around the text */
    padding-bottom: 40px;
    padding-left: 40px;
    text-align: left; /* Align text to the left */
}

/* --- Datenschutzbereich Start --- */
/* --- Vollflächiger Hintergrundbereich --- */
#datenschutz-background {
  background-image: url("images/Datenschutz_Helmut_Maglock_1920x932.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

/* --- Lesbarer Inhaltsbereich mit halbtransparentem Overlay --- */
#datenschutz-section {
  
  color: white;
  font-family: Arial, sans-serif;
  padding: 60px 30px;
  box-sizing: border-box;
}

#datenschutz-section h1,
#datenschutz-section h2 {
  color: white;
  margin-top: 20px;
  margin-bottom: 15px;
}

#datenschutz-section p,
#datenschutz-section li {
  line-height: 1.6;
  font-size: 1.05rem;
}

#datenschutz-section a {
  color: white;
  text-decoration: underline;
}

#datenschutz-section ul {
  padding-left: 20px;
  margin-top: 10px;
}

#datenschutz-section li {
  margin-bottom: 8px;
  list-style: disc;
  margin-left: 20px;
}

/* Desktop-Zentrierung des Inhaltsbereichs */
@media (min-width: 768px) {
  #datenschutz-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 60px;
  }
}
/* --- Datenschutzbereich Ende --- */



