/* 01. =================================
			FARBPALETTE & CSS-VARIABLEN
			================================= */
			:root {
				--primary-color-green: #8CC63F;
				--primary-color-blue: #003366;
				--neutral-color-dark-gray: #333333;
				--neutral-color-medium-gray: #888888;
				--neutral-color-light-gray: #F5F5F5;
				--neutral-color-background: #EAEAEA;
				--neutral-color-white: #FFFFFF;
				--section-bg-light-green: #F1F9EC;
				--section-bg-light-gray: #F9F9F9;
			}

			/* 02. =================================
					   GRUNDEINSTELLUNGEN
					   ================================= */
			body {
				font-family: Arial, sans-serif;
				margin: 0;
				padding: 0;
				text-align: center;
				background-color: var(--neutral-color-background);
				color: var(--neutral-color-dark-gray);
			}

			html {
				scroll-behavior: smooth;
			}

			/* 03. =================================
					   HAUPT-CONTAINER
					   ================================= */
			.container {
				max-width: 65%;
				margin: 0 auto;
				background-color: var(--neutral-color-white);
				box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
				border-radius: 5px;
			}

			/* 04. =================================
					   HEADER
					   ================================= */
			header {
				    background-color: rgba(255,255,255,0.2);
					padding: 15px 40px;
					display: flex;
					justify-content: space-between;
					align-items: center;
					border-bottom: 3px solid var(--neutral-color-light-gray);
					position: sticky;
					top: 0;
					z-index: 100;
				    backdrop-filter: blur(2px);
					transition: transform 0.3s ease-in-out; /* Allows smooth sliding */
			}

			header.header-hide {
				transform: translateY(-100%); /* Moves header completely out of view */
			}
			header .logo img {
				height: 100px;
				display: block;
			}

			.header-controls {
				display: flex;
				align-items: center;
				gap: 25px;
			}

			.header-socials .social-icon {
				display: inline-block;
				width: 23px;
				height: 23px;
				vertical-align: middle;
			}

			.header-socials a {
				color: var(--neutral-color-dark-gray);
				font-size: 1.4em;
				transition: color 0.3s ease;
				display: inline-flex;
				justify-content: center;
				align-items: center;
				width: 35px;
				height: 35px;
				text-decoration: none;
			}

			.header-socials a:hover {
				color: var(--section-bg-light-gray);
			}

			/* 05. =================================
			   HAMBURGER & SLIDE-IN-NAVIGATION
			   ================================= */

			.hamburger-button {
				position: relative;
				z-index: 1002;
				display: flex; /* Permanent sichtbar */
				background: none;
				border: none;
				cursor: pointer;
				flex-direction: column;
				width: 30px;
				gap: 5px;
			}

			.hamburger-line {
				width: 100%;
				height: 3px;
				background-color: var(--neutral-color-dark-gray);
				border-radius: 3px;
				transition: all 0.3s ease-in-out;
			}

			.hamburger-button.is-active .hamburger-line:nth-child(1) {
				transform: translateY(8px) rotate(45deg);
			}

			.hamburger-button.is-active .hamburger-line:nth-child(2) {
				opacity: 0;
			}

			.hamburger-button.is-active .hamburger-line:nth-child(3) {
				transform: translateY(-8px) rotate(-45deg);
			}

			.hamburger-button.is-active .hamburger-line:nth-child(4) {
				display: none;
			}
			
			/* Veraltetes .nav-overlay entfernt, da es im HTML nicht verwendet wird */
        
			/* Styles für das Seitenmenü (für alle Bildschirmgrößen) */
			#main-nav {
				position: fixed;
				top: 0;
				right: 0;
				width: 300px;
				max-width: 80%;
				height: 100%;
				background-color: var(--neutral-color-light-gray); /* Ihr Wunsch-Hintergrund */
				box-shadow: -5px 0 15px rgba(0,0,0,0.1);
				padding-top: 60px; /* Mehr Platz für den X-Button oben */
				transform: translateX(100%);
				transition: transform 0.35s ease-in-out;
				visibility: hidden;
				z-index: 1001;
				display: block;
				box-sizing: border-box;
			}

			/* Fügen Sie diesen NEUEN Block für den Schließen-Button hinzu */
			.nav-close-button {
				position: absolute;
				top: 15px;
				right: 15px;
				background: none;
				border: none;
				font-size: 2.5em;
				line-height: 1;
				color: var(--neutral-color-dark-gray);
				cursor: pointer;
				padding: 0;
			}

			#main-nav.is-active {
				transform: translateX(0);
				visibility: visible;
			}

			#main-nav ul {
				list-style: none;
				margin: 0;
				padding: 0;
				display: flex;
				flex-direction: column;
				align-items: center;
				width: 100%;
			}

			#main-nav li {
				width: 100%;
				padding: 0 15px; /* Abstand links und rechts für die Boxen */
				box-sizing: border-box;
				margin-bottom: 10px; /* Abstand zwischen den Boxen */
			}

			#main-nav a {
				display: block;
				padding: 15px;
				text-align: center;
				font-size: 1.1em;
				width: 100%;
				text-decoration: none;
				color: var(--neutral-color-dark-gray);
				font-weight: bold;
				transition: background-color 0.3s, color 0.3s;
				background-color: var(--neutral-color-white); /* Weiße Box */
				border: 1px solid #ddd; /* Heller Rand */
				border-radius: 5px; /* Abgerundete Ecken */
			}

			#main-nav a:hover {
				background-color: var(--primary-color-green);
				color: white;
				border-color: var(--primary-color-green);
			}

			.mobile-socials {
				display: flex;
				justify-content: center;
				gap: 25px;
				padding: 20px;
			}
            
            /* Das erste a-Element im Menü bekommt keinen oberen Rand */
            #main-nav li:first-child a {
                border-top: 1px solid var(--neutral-color-medium-gray);
            }


			/* 06. =================================
					   INHALTSBEREICH (SEKTIONEN)
					   ================================= */
			main {
				padding: 0;
				text-align: left;
			}
			main>section {
				position: relative;
				z-index: 2;
			}
			section {
				padding: 40px 50px;
				border-bottom: 1px solid var(--neutral-color-light-gray);
			}
			section:last-child {
				border-bottom: none;
			}
			#home {
				padding: 0;
				margin-top: -133px; 
				position: relative;
				border-radius: 5px 5px 0 0;
				overflow: hidden;
			}
			#home img#pic1 {
				width: 100%;
				display: block;
				filter: brightness(0.9);
			}
			.home-content {
				position: absolute;
				bottom: 0;
				left: 0;
				width: 100%;
				padding: 40px;
				box-sizing: border-box;
				text-align: center;
				color: white;
				background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
			}
			.home-content h2 {
				color: white;
				font-size: 3.5em;
				text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
				border-bottom-color: var(--primary-color-green);
			}
			section h2 {
				font-size: 2.5em;
				color: var(--primary-color-blue);
				border-bottom: none;
				padding-bottom: 0;
				display: inline-block;
				margin-top: 0;
				margin-bottom: 10px;
			}
			section h2::after {
				content: '';
				display: block;
				background-image: url('green.webp');
				background-size: contain;
				background-repeat: no-repeat;
				background-position: center;
				width: 250px;
				height: 50px;
				margin: -15px -50px;
			}
			#home h2::after {
				display: none;
			}
			main section:nth-of-type(odd) {
				background-color: var(--section-bg-light-green);
			}
			main section:nth-of-type(even) {
				background-color: var(--section-bg-light-gray);
			}
			#home {
				background-color: transparent !important;
			}
			main section#neuigkeiten {
				background-color: var(--section-bg-light-green);
			}


			/* NEUE STYLES: Neuigkeiten Sektion */
			.news-container {
				display: grid;
				grid-template-columns: repeat(4, 1fr);
				gap: 30px;
				margin-top: 30px;
			}

			.news-box {
				background-color: var(--neutral-color-white);
				border-radius: 8px;
				overflow: hidden;
				box-shadow: 0 4px 15px rgba(0,0,0,0.08);
				transition: transform 0.3s ease, box-shadow 0.3s ease;
				display: flex;
				flex-direction: column;
				text-decoration: none; /* NEUE ZEILE: Verhindert den Link-Unterstrich */
			}

			.news-box:hover {
				transform: translateY(-5px);
				box-shadow: 0 8px 25px rgba(0,0,0,0.12);
			}

			.news-media {
				width: 100%;
				height: auto;
				display: block;
			}
			
			.video-container {
				position: relative;
				padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
				height: 0;
				overflow: hidden;
				width: 100%;
				background-color: #000;
			}

			.video-container iframe,
			.video-container video {
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
			}

			.news-content {
				padding: 20px;
				flex-grow: 1;
			}

			.news-date {
				font-size: 0.9em;
				color: var(--neutral-color-medium-gray);
				margin: 0 0 10px 0;
			}

			.news-title {
				font-size: 1.2em;
				color: var(--primary-color-blue);
				margin: 0 0 10px 0;
			}

			.news-text {
				font-size: 1em;
				line-height: 1.6;
				color: var(--neutral-color-dark-gray);
				margin: 0;
			}

			.archive-button-container {
				text-align: center;
				margin-top: 40px;
			}

			.archive-button {
				display: inline-block;
				padding: 12px 30px;
				background-color: var(--primary-color-green);
				color: var(--neutral-color-white);
				text-decoration: none;
				font-size: 1.1em;
				font-weight: bold;
				border-radius: 5px;
				transition: background-color 0.3s ease;
			}

			.archive-button:hover {
				background-color: #7ab33a;
			}
			
			.footer {
				background-color: #c9d9fd;
				padding: 40px;
				color: var(--neutral-color-dark-gray);
				text-align: center;
			}
			.footer-content {
				display: flex;
				justify-content: space-between;
				align-items: flex-start;
				flex-wrap: wrap;
				gap: 30px;
			}
			.footer-column {
				flex: 1;
				min-width: 220px;
			}
			.footer-column h4 {
				color: var(--primary-color-blue);
				margin-top: 0;
				margin-bottom: 15px;
			}
			.footer-column.logo-column {
				display: flex;
				justify-content: center;
				align-items: center;
			}
			.footer-column img {
				height: 80px;
			}
			.footer-column p {
				margin: 0 0 10px 0;
				line-height: 1.6;
			}
			.footer-column a {
				color: var(--neutral-color-dark-gray);
				text-decoration: none;
			}
			.footer-column a:hover {
				color: var(--primary-color-green);
				text-decoration: underline;
			}
			.footer-social-icons {
				display: block;
				gap: 15px;
				margin: auto;
			}
			.footer-social-icons a {
				color: var(--neutral-color-dark-gray);
				font-size: 1.6em;
				transition: color 0.3s ease;
				display: inline-flex;
				justify-content: center;
				align-items: center;
				width: 30px;
				height: 30px;
				text-decoration: none;
			}
			.footer-social-icons a:hover {
				color: var(--primary-color-green);
				text-decoration: none;
			}
			.footer-bottom {
				text-align: center;
				margin-top: 40px;
				padding-top: 20px;
				border-top: 1px solid #ddd;
				font-size: 0.9em;
				color: var(--neutral-color-dark-gray);
			}
			.footer-bottom a {
				color: var(--neutral-color-dark-gray);
			}
			.popup-overlay {
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background-color: rgba(0, 0, 0, 0.6);
				display: none;
				justify-content: center;
				align-items: center;
				z-index: 2000;
				opacity: 0;
				transition: opacity 0.3s ease;
			}
			.popup-overlay.is-visible {
				display: flex;
				opacity: 1;
			}
			.popup-content {
				background: var(--neutral-color-white);
				padding: 30px 40px;
				border-radius: 8px;
				box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
				text-align: center;
				position: relative;
				max-width: 90%;
				width: 450px;
				transform: scale(0.9);
				transition: transform 0.3s ease;
			}
			.popup-overlay.is-visible .popup-content {
				transform: scale(1);
			}
			.popup-content h2 {
				color: var(--primary-color-blue);
				margin-top: 0;
			}
			.popup-close {
				position: absolute;
				top: 10px;
				right: 15px;
				font-size: 2.5em;
				font-weight: bold;
				color: #aaa;
				cursor: pointer;
				line-height: 1;
			}
			.popup-close:hover {
				color: var(--neutral-color-dark-gray);
			}
			.section-box {
				background-color: var(--neutral-color-light-gray);
				padding: 10px;
				border-radius: 8px;
				margin-top: 30px;
				box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
				border-left: 5px solid var(--primary-color-green);
				border-right: 5px solid var(--primary-color-green);
				text-align: left;
			}
			.section-box h3 {
				margin-top: 0;
				color: var(--primary-color-blue);
				font-size: 1.5em;
				margin-bottom: 20px;
			}
			.section-box p {
				line-height: 1.7;
				margin-bottom: 15px;
			}
			.section-box p:last-child {
				margin-bottom: 0;
			}
			.membership-form {
				max-width: 600px;
				margin: 40px auto 0 auto;
				text-align: left;
			}
			.form-group,
			.form-group-radio,
			.form-group-checkbox {
				margin-bottom: 20px;
			}
			.form-group-inline {
				display: flex;
				gap: 20px;
			}
			.form-group-inline .form-group {
				flex: 1;
			}
			.form-label {
				display: block;
				font-weight: bold;
				margin-bottom: 8px;
				color: var(--primary-color-blue);
			}
			.membership-form label {
				font-weight: bold;
				display: block;
				margin-bottom: 8px;
				color: var(--primary-color-blue);
			}
			.membership-form input[type="text"],
			.membership-form input[type="email"],
			.membership-form input[type="tel"],
			.membership-form input[type="date"] {
				width: 100%;
				padding: 12px;
				border: 1px solid #ccc;
				border-radius: 4px;
				font-size: 1em;
				box-sizing: border-box;
			}
			.membership-form input:focus {
				outline: none;
				border-color: var(--primary-color-green);
				box-shadow: 0 0 5px rgba(140, 198, 63, 0.5);
			}
			.form-group-radio .radio-options,
			.form-group-checkbox {
				display: flex;
				align-items: center;
				gap: 20px;
			}
			.form-group-checkbox label,
			.form-group-radio label {
				font-weight: normal;
				display: flex;
				align-items: center;
				gap: 8px;
				color: var(--neutral-color-dark-gray);
			}
			.membership-form input[type="radio"],
			.membership-form input[type="checkbox"] {
				accent-color: var(--primary-color-green);
				width: 1.2em;
				height: 1.2em;
			}
			.submit-btn {
				width: 100%;
				padding: 15px;
				background-color: var(--primary-color-green);
				color: var(--neutral-color-white);
				font-size: 1.2em;
				font-weight: bold;
				border: none;
				border-radius: 5px;
				cursor: pointer;
				transition: background-color 0.3s ease;
			}
			.submit-btn:hover {
				background-color: #7ab33a;
			}
			.form-hinweis {
				background-color: var(--neutral-color-light-gray);
				border-left: 4px solid var(--primary-color-blue);
				padding: 15px;
				margin: 20px auto;
				max-width: 600px;
				text-align: left;
			}
			/* =================================
			   Stile für Breadcrumb-Navigation (Button-Stil)
			   ================================= */

			.breadcrumb-nav {
				display: flex;
				align-items: center;
				gap: 15px; /* Abstand zwischen den Elementen */
				padding: 10px 0;
				margin-bottom: 25px;
			}

			.breadcrumb-nav a {
				display: inline-block;
				padding: 8px 15px;
				background-color: var(--primary-color-green);
				color: var(--neutral-color-white);
				text-decoration: none;
				font-size: 0.9em;
				font-weight: bold;
				border-radius: 5px;
				transition: background-color 0.3s ease, transform 0.2s ease;
			}

			.breadcrumb-nav a:hover {
				background-color: #7ab33a; /* Etwas dunkleres Grün beim Hovern */
				transform: translateY(-2px);
			}

			.breadcrumb-nav .separator {
				font-size: 1.2em;
				font-weight: bold;
				color: var(--neutral-color-medium-gray);
				/* Der Abstand wird jetzt durch 'gap' im Container gesteuert */
			}

			.breadcrumb-nav .current-page {
				color: var(--neutral-color-dark-gray);
				font-weight: normal; /* Normal, um sich von den Buttons abzuheben */
				font-size: 0.9em;
				padding-top: 8px; /* Zur optischen Angleichung an die Buttons */
			}
			
			
			/* =================================
			Stile für Detail- & Veranstaltungs-Seite
		    ================================= */

			.veranstaltung-container {
				padding: 30px;
				background-color: var(--section-bg-light-green);
				border-radius: 8px;
				margin: 40px 0;
			}

			.veranstaltung-media {
				margin-bottom: 30px;
				border-radius: 5px;
				overflow: hidden;
				max-height:650px;
			}

			.veranstaltung-media img,
			.veranstaltung-media .video-container {
				border-radius: 5px;
			}

			.veranstaltung-text h2 {
				font-size: 2.2em;
				color: var(--primary-color-blue);
				margin-top: 0;
			}

			.veranstaltung-text .datum {
				font-weight: bold;
				color: var(--neutral-color-medium-gray);
				margin-bottom: 20px;
				display: block;
			}

			.veranstaltung-text p {
				font-size: 1.1em;
				line-height: 1.7;
			}


			/* Stile für die Bildergalerie */
			.bildergalerie {
				margin-top: 40px;
				padding-top: 30px;
				border-top: 1px solid #ddd;
			}

			.bildergalerie h3 {
				font-size: 1.8em;
				color: var(--primary-color-blue);
				margin-bottom: 20px;
			}

			.galerie-grid {
				display: grid;
				grid-template-columns: repeat(3, 1fr);
				gap: 15px;
			}

			.galerie-grid img {
				width: 100%;
				height: 200px;
				object-fit: cover;
				border-radius: 5px;
				cursor: pointer;
				transition: transform 0.2s ease, box-shadow 0.2s ease;
			}

			.galerie-grid img:hover {
				transform: scale(1.05);
				box-shadow: 0 8px 25px rgba(0,0,0,0.15);
			}
			

			/* =================================
			   RESPONSIVE DESIGN & MEDIA QUERIES
			   ================================= */

			/* Große Desktops (breiter als 1600px) */
			@media (min-width: 1601px) {
				.container {
					max-width: 1400px; 
				}
			}
			
			/* Laptops & mittlere Desktops (bis 1600px) */
			@media (max-width: 1600px) {
				.container {
					max-width: 90%;
				}
			}

			/* Tablets & kleine Laptops (bis 1200px) */
			@media (max-width: 1200px) {
				.news-container {
					grid-template-columns: repeat(2, 1fr);
				}
			}
			
			/* Mobile Geräte - Hochformat (bis 768px) */
			@media (max-width: 768px) {
				.container {
					max-width: 100%;
					border-radius: 0;
					box-shadow: none;
				}
				body {
					padding: 0;
				}
				.news-container {
					grid-template-columns: 1fr;
				}
				#home {
					margin-top: -85px; 
				}
								
				header {
					padding: 15px 20px;
				}
				header .logo img {
					height: 70px;
				}
				
				
				.footer-content {
					flex-direction: column;
					text-align: center;
					align-items: center;
				}
				section {
					padding: 40px 20px;
				}
				
				.galerie-grid {
					grid-template-columns: repeat(2, 1fr);
				}
				
				.home-content {
        /* 1. Stop floating the text over the image */
        position: relative; 
        bottom: auto;
        left: auto;
        
        /* 2. Give it a solid background (using your brand blue) */
		background: linear-gradient(135deg, #314d0d, #6e9e30);        
        /* 3. Add some breathing room */
        padding: 30px 20px;
        margin-top: -5px; /* Removes any tiny gap between image and text */
		}

		/* Optional: Remove the text shadow since it's now on a solid background */
		.home-content h2, 
		.home-content p {
			text-shadow: none;
			color: white; /* Ensure text stays white */
		}

		/* Ensure the header text isn't too massive on mobile */
		.home-content h2 {
			font-size: 1.8em; 
		}
				
			@media (max-width: 576px) {
			    .galerie-grid {
						grid-template-columns: 1fr;
					}
				.galerie-grid img {
						height: 250px;
					}
}
				
				
}