/* --- Basis Styles (aus dem vorherigen Kontext) --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body, html { height: 100%; width: 100%; overflow-x: hidden; background-color: #f7f4f0;}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
}

.head {
	text-align: center;
	background-color: #92b29b;
	width: auto;
	height: 40px;
}

.head p {
	color: white;
	margin-top: 7px;
	font-size: x-large;
	font-weight: 600;
    font-family: sans-serif;
}

/* --- Checkbox Hack Setup --- */
.menu-toggle {
  position: absolute;
  top: -9999px; /* Versteckt das Input-Feld, aber es bleibt im DOM für Accessibility-Tools erreichbar, wenn man aria-hidden falsch nutzt. Besser: visibility:hidden; opacity:0; z-index: -1; */
  visibility: hidden;
  pointer-events: none;
}

/* --- Navigation Wrapper & Overlay Logik --- */
.nav-wrapper {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 5; /* Höher als Logo und Map */
  
  /* Hintergrund für Lesbarkeit, optional mit Transparenz 
  background-color: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(5px); /* Moderner Milchglas-Effekt
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  
  height: 0; /* Standardmäßig ausgeklappt */
  overflow: hidden;
  /*transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;*/
}

/* Wenn Checkbox gecheckt ist, klappt das Menü auf */
.menu-toggle:checked ~ .nav-wrapper {
  height: auto; /* Oder eine feste Höhe wie '60px' für ein kompaktes Menü 
  padding-top: 1rem;*/
  background-color: #f7f4f0;
  z-index: 50;
}

/* --- Hamburger Button Styling (Die drei Striche) --- */
.hamburger-btn {
  position: absolute;
  top: 1rem; /* Abstand zum oberen Rand */
  right: 1rem; /* Rechtsbündig */
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 30; /* Muss über dem Navigationsinhalt liegen, falls dieser erst später kommt */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px; /* Fester Abstand zwischen den Strichen (wichtig für Konsistenz) */
  
  transition: transform 0.3s ease-in-out;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #652600;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* WICHTIG: Der Drehpunkt muss in der Mitte des Strichs liegen */
  transform-origin: center center; 
}

.menu-toggle:checked ~ .nav-wrapper .hamburger-btn span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle:checked ~ .nav-wrapper .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .nav-wrapper .hamburger-btn span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Optional: Wenn das Menü geschlossen wird, die Farbe zurücksetzen */
.hamburger-btn span {
  transition-delay: 0.1s; /* Verhindert "Zittern" beim schnellen Klicken */
}

/* --- Navigationsinhalt (Liste) --- */
.navig-content {
	/*padding-top: 2rem;  Platz für den Button lassen, wenn das Menü aufklappt */
	text-align: center;
	opacity: 0;
	transform: translateY(-10px);
	visibility: hidden;
	position: relative;
	z-index: 10;
	margin-top: 15px;
	height: 165px;
	font-family: sans-serif;
	font-size: 1.3rem;
	/*transition: opacity 0.2s ease 0.1s, transform 0.3s ease 0.1s;  Verzögerung für sanften Effekt */
}

/* Einblenden des Inhalts, wenn das Menü offen ist */
.menu-toggle:checked ~ .nav-wrapper .navig-content {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	z-index: 10;
}

.navig-content ul {
  list-style: none;
  padding: 0;
}

.navig-content li {
  margin: 5px;
}

.navig-content a {
  text-decoration: none;
  color: #727271;
  font-weight: 600;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.navig-content a:hover {
  color: #6a2700;
}

/* Das Logo: Fixiert an den oberen Rand im Flow */
.logo {
	position: relative; 
	display: flex;
    justify-content: center;
	flex-shrink: 0; /* Verhindert das Zusammenklappen bei Platzmangel */
  
	  /* Exakt oben ausrichten. Da es ein Flex-Item ist, reicht align-self: start nicht immer 
		 bei absolut positionierten Geschwistern, daher nutzen wir relative Positionierung mit Top.
		 Alternativ könnte man margin-top auf -100% setzen, wenn der Wrapper überlappt, aber hier 
		 bleibt es sauber im Flow, da der nav-wrapper absolute ist und den Logo-Platz nicht einnimmt. */
	  
	  /* Um sicherzugehen, dass es visuell oben klebt (falls der nav-wrapper keinen Platz nimmt): */
	margin-top: 0; 
	  
	  /* Beispielhafte Styling für das Logo selbst */
	padding: 14px;
	background-color: #f7f4f0; 
	text-align: center;
  }

/* Die Map: Füllt den restlichen Platz dynamisch aus */
#map {
	flex-grow: 1; 
	  
	/* Optional: Scrollbar nur wenn Inhalt größer als verfügbarer Raum 
	overflow-y: auto; */
	  
	/*background-color: #e0f7fa;  Beispiel-Farbe für die Karte */
	 
	/* Zentrierung des Karten-Content falls nötig */
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Responsive Anpassung (Optional) */
@media (max-width: 600px) {
    #map {
		min-height: 300px; /* Mindesthöhe auf Mobile, damit Map nicht verschwindet */
    }
}

.svgred-container {
	width: 80%;
	max-width:300px;
}

@media (max-width: 430px) {
	.leaflet-popup-content {
		min-width: 180px;
		max-width: 220px;
	}
}

.marketing-teaser {
	padding-left: 17px;
}

.leaflet-popup-content li {
	margin-bottom: 5px;
}

.leaflet-popup-content {
	font-size: 14px !important;
	font-size: 1.15em !important;
}

.leaflet-attribution-flag {
	display: none !important;
}

.leaflet-popup-tip {
	background-color: #f7f4f0;
}

.leaflet-popup-content-wrapper {
	background-color: #f7f4f0;
}

.link {
	word-wrap: break-word;
}

.grid {
	display: grid;
	background-color: white;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Umbrechen, sobald die Box 300 Pixel Breite hat */
}

.grid div {
	margin: 1em;
	padding: 1em;
}

.logolink {
	position: absolute;
	height: 152px;
	width: 300px;
	z-index: 10;
}

@media (max-width: 425px) {
    .logolink {
		width: 65%;
    }
}

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

.bildflex { 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.fa-bus-simple {
	margin-top: 15px;
}

.fa-eye-slash {
	margin-top: 10px;
}

.banner-container {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%); /* Zentriert das Element horizontal */
    
    /* Breite passt sich dem Inhalt an */
    min-width: 300px;
    max-width: 90%; /* Verhindert, dass es auf sehr kleinen Handys über den Rand ragt */
    
    background: #92b29bf2;
    color: white;
    z-index: 1000;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: sans-serif;
}

.banner-content {
	text-align: center;
    gap: 15px;
}

.timer {
	
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    margin-left: 10px;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
	float: inline-end;
	margin-top: -4px;
}

.close-btn:hover {
    opacity: 1;
}

.weingut-container {
	display: flex;
	align-items: center;
	flex-direction: column;
}

.weingut {
	font-family: sans-serif;
	color: #6e6e6e;
	max-width: 640px;
	margin: 15px;
}

.weingut h2 {
	font-size: xx-large;
    font-weight: 600;
	margin-bottom: 25px;
	margin-top: 20px;
}

.weingut address {
	margin-bottom: 15px;
}

.opening-hours-sunday {
	margin-top: 15px;
}

.weingut ul {
	margin-left: 20px;
}

.weingut li {
	margin-bottom: 10px;
}

.weingut p {
	margin-bottom: 7px;
}

.weingut h3 {
	margin-top: 20px;
	margin-bottom: 10px;
}