/* Sanfte Pastell-Grün-Farbpalette */
/* CI-Farben definieren */
:root {
	--link-color: #4a8670;       /* Haupt-Link-Farbe */
	--link-hover-color: #76a895; /* Hover-Link-Farbe */
}

/* Globale Links */
a {
	color: var(--link-color);
	text-decoration: none;
}
a:hover,
a:focus {
	color: var(--link-hover-color);
}

/* Navigation */
nav a {
	color: var(--link-color);
}
nav a:hover {
	background: #d1ead4;
	color: var(--link-hover-color);
}

/* Karten-Links */
.category-card a,
.image-card a {
	color: var(--link-color);
}
.category-card a:hover,
.image-card a:hover {
	color: var(--link-hover-color);
}

/* Buttons (falls verlinkt) */
button,
.share-buttons a {
	background: var(--link-color);
	color: #fff;
}
button:hover,
.share-buttons a:hover {
	background: var(--link-hover-color);
}

/* Hauptschrift + Fallbacks */
body {
	margin: 0;
	padding: 0;
	font-family: "Open Sans", sans-serif;
	background: #e6f4ea;   /* mildes Pastell-Grün */
	color: #2f3e2c;        /* dunkles Oliv-Grün für Kontrast */
}

/* Überschriften, Navigation & Buttons in Open Sans Medium */
h1, h2, h3, h4, h5, h6,
nav a,
button,
.share-buttons a {
	font-family: "Open Sans", sans-serif;
	font-weight: 500;
}

header, footer {
	background: #a3d9a5;   /* Pastell-Grün für Kopf- und Fußbereich */
	padding: 1rem;
}
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
nav li {
	position: relative;
	margin-right: 1.5rem;
}
/* Alle Untermenüs standardmäßig verstecken */
nav li > ul {
	display: none;
	position: absolute;
	background: #f0fcf5;   /* helles Mint-Grün */
	padding: 0.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	z-index: 1000;
	min-width: 240px;
	max-width: 400px;
}
/* Erstes Level: unterhalb des Hauptpunkts */
nav > ul > li > ul {
	top: 100%;
	left: 0;
	margin-top: 0.5rem;
}
/* Weiteres Level: seitlich rechts ausklappen */
nav ul ul ul {
	top: 0;
	left: 100%;
	margin-left: 0.5rem;
}
/* Sichtbar wenn .open gesetzt */
nav li.open > ul {
	display: block;
}
nav a {
	text-decoration: none;
	color: #2f3e2c;
	font-weight: bold;
	display: block;
	padding: 0.5rem;
}
nav a:hover {
	background: #d1ead4;   /* sanfter Hover-Effekt */
	border-radius: 0.25rem;
}
main {
	padding: 1rem;
}
.category-grid, .image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
}
.category-card, .image-card {
	background: #ffffff;
	border-radius: 1rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	padding: 0.5rem;
	text-align: center;
}
.category-card img, .image-card img {
	max-width: 100%;
	border-radius: 0.5rem;
}
button, .share-buttons a {
	background: #8fcbb5;    /* Pastell-Grün für Buttons */
	color: #ffffff;
	border: none;
	border-radius: 0.5rem;
	padding: 0.5rem 1rem;
	cursor: pointer;
	margin: 0.25rem;
	text-decoration: none;
	display: inline-block;
}
button:hover, .share-buttons a:hover {
	background: #76b89c;    /* dunklerer Hover-Farbton */
}
.share-buttons {
	margin-top: 1rem;
}
.ad-slot {
	background: #f0fcf5;
	border: 2px dashed #a3d9a5;
	border-radius: 0.5rem;
	text-align: center;
	padding: 1rem;
	margin: 1rem 0;
	color: #666;
}
@media (max-width: 600px) {
	nav ul { flex-direction: column; }
	nav li { margin-bottom: 0.5rem; }
}

/* Section Divider für Überschriften */
.section-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 2rem 0;
}
.section-divider:before,
.section-divider:after {
	content: '';
	flex: 1;
	border-bottom: 2px solid #a3d9a5;
}
.section-divider:not(:empty)::before {
	margin-right: .5em;
}
.section-divider:not(:empty)::after {
	margin-left: .5em;
}

.section-divider-headings {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 0 0;
}
.section-divider-headings:before,
.section-divider-headings:after {
	content: '';
	flex: 1;
	border-bottom: 2px solid #a3d9a5;
}
.section-divider-headings:not(:empty)::before {
	margin-right: 1.5em;
}
.section-divider-headings:not(:empty)::after {
	margin-left: 1.5em;
}

.mobile-nav-header {
	display: none;
}

.logo-img {
	min-height: 120px;
	max-height: 120px;
	width: auto;
	display: block;
	margin: 0 auto;
}

/* Grundlayout Header */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0rem 1rem;
	background: var(--header-bg, #a3d9a5);
}

/* Burger-Icon */
.nav-toggle {
	background: none;
	border: none;
	cursor: pointer;
	width: 2rem;
	height: 2rem;
	position: relative;
}
.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
	content: '';
	display: block;
	background: #2f3e2c;
	height: 3px;
	border-radius: 2px;
	position: absolute;
	width: 100%;
	transition: transform 0.3s;
}
.nav-toggle .burger {
	top: 50%; transform: translateY(-50%);
}
.nav-toggle .burger::before {
	top: 0;
}
.nav-toggle .burger::after {
	bottom: 0;
}

/* Sidebar-Navigation */
.site-nav {
	position: fixed;
	top: 0; left: 0;
	height: 100vh;
	width: 80vw;
	max-width: 300px;
	background: #f0fcf5;
	padding: 2rem 1rem;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	z-index: 999;
}
.site-nav.open {
	transform: translateX(0);
}

/* Nav-Liste */
.site-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-nav li {
	margin-bottom: 1rem;
}
.site-nav a {
	color: var(--link-color);
	text-decoration: none;
	font-weight: bold;
	display: block;
	padding: 0.5rem 0;
}
.site-nav .submenu-toggle {
	background: none;
	border: none;
	font: inherit;
	font-weight: bold;
	cursor: pointer;
	padding: 0.5rem 0;
}

/* Untermenüs initial verstecken */
.site-nav li > ul {
	display: none;
	padding-left: 1rem;
}
.site-nav li.open > ul {
	display: block;
}

/* Desktop: Sidebar immer sichtbar als horizontaler Nav */
@media (min-width: 801px) {
	.nav-toggle,
	.site-nav {
		display: none;
	}
	header, header + nav {
		display: block;
	}
}

.nav-desktop {
	display: flex;
	align-items: center;
}


/* ---------------------------------- */
/* Desktop: Mobile-Details ausblenden  */
@media (min-width: 801px) {
	.mobile-menu { display: none; }
	.nav-desktop { display: block; }
}

/* Hide default details/summary auf Mobile */
.mobile-menu { display: none; }

/* Hamburger-Button */
.nav-toggle {
	background: none;
	border: none;
	cursor: pointer;
	width: 2rem;
	height: 2rem;
	position: relative;
	z-index: 1001; /* über der Sidebar */
}
.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
	content: '';
	display: block;
	background: #2f3e2c;
	height: 3px;
	border-radius: 2px;
	position: absolute;
	width: 100%;
	transition: transform 0.3s;
}
.nav-toggle .burger {
	top: 50%; transform: translateY(-50%);
}
.nav-toggle .burger::before {
	top: 0;
}
.nav-toggle .burger::after {
	bottom: 0;
}
/* Animation: Burger → X */
.nav-toggle.open .burger {
	background: transparent;
}
.nav-toggle.open .burger::before {
	transform: rotate(45deg) translate(5px,5px);
}
.nav-toggle.open .burger::after {
	transform: rotate(-45deg) translate(5px,-5px);
}

/* Sidebar */
.site-nav {
	position: fixed;
	top: 0; left: 0;
	height: 100vh;
	width: 80vw;
	max-width: 300px;
	background: #f0fcf5;
	padding: 2rem 1rem;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	z-index: 1000;
}
.site-nav.open {
	transform: translateX(0);
}
/* Submenu */
.submenu-toggle {
	background: none;
	border: none;
	font: inherit;
	font-weight: bold;
	cursor: pointer;
	padding: 0.5rem 0;
	width: 100%;
	text-align: left;
}
.site-nav li > ul {
	display: none;
	padding-left: 1rem;
	margin-top: 0.5rem;
}
.site-nav li.open > ul {
	display: block;
}

/* Desktop: verberge mobile-Steuerelemente */
@media (min-width: 801px) {
	.nav-toggle,
	.site-nav {
		display: none;
	}
	.nav-desktop {
		display: block;
	}
}


/* ---------- Dropdown in Desktop-Navigation sichtbar machen ---------- */
@media (min-width: 801px) {
	.nav-desktop li.has-submenu > ul {
		display: none; /* Standard: versteckt */
	}
	.nav-desktop li.has-submenu:hover > ul,
	.nav-desktop li.has-submenu:focus-within > ul,
	.nav-desktop li.has-submenu.open > ul {
		display: block; /* Sichtbar bei Hover oder .open */
	}
	.nav-desktop li.has-submenu > a {
		cursor: pointer;
	}
	.nav-desktop li.has-submenu > ul {
		position: absolute;
		top: 100%;
		left: 0;
		background: #f0fcf5;
		padding: 0.5rem;
		border-radius: 0.5rem;
		box-shadow: 0 2px 6px rgba(0,0,0,0.1);
		z-index: 1000;
		min-width: 240px;
		max-width: 400px;
	}
}

@media (min-width: 801px) {
	.nav-desktop {
		position: relative; /* Referenz für das Dropdown */
	}
	.nav-desktop li.has-submenu {
		position: relative;
	}

	/* Untermenü ausrichten */
	.nav-desktop li.has-submenu > ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		background: #f0fcf5;
		padding: 0.5rem;
		border-radius: 0.5rem;
		box-shadow: 0 2px 6px rgba(0,0,0,0.1);
		z-index: 1000;
		min-width: 240px;
		max-width: 400px;
	}

	/* Sichtbar bei Hover, Fokus ODER wenn Klasse .open gesetzt */
	.nav-desktop li.has-submenu:hover > ul,
	.nav-desktop li.has-submenu:focus-within > ul,
	.nav-desktop li.has-submenu.open > ul {
		display: block;
	}

	/* Sorgt dafür, dass das Dropdown nicht aus dem Fenster läuft */
	.nav-desktop li.has-submenu > ul {
		right: auto;
		left: 0;
	}
	.nav-desktop li.has-submenu > ul.dropdown-right {
		right: 0;
		left: auto;
	}

	/* Responsive Anpassung: Wenn das Dropdown zu weit rechts ist, rechtsbündig anzeigen */
}

@media (min-width: 801px) {
	.nav-desktop li.has-submenu {
		position: relative;
	}
	.nav-desktop li.has-submenu > ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		background: #f0fcf5;
		padding: 0.5rem;
		border-radius: 0.5rem;
		box-shadow: 0 2px 6px rgba(0,0,0,0.1);
		z-index: 1000;
		min-width: 240px;
		max-width: 400px;
		transition: left 0.15s, right 0.15s;
	}
	.nav-desktop li.has-submenu.open > ul,
	.nav-desktop li.has-submenu:hover > ul,
	.nav-desktop li.has-submenu:focus-within > ul {
		display: block;
	}
}


@media (min-width: 801px) {
	.site-nav { display: none !important; }
	.nav-toggle { display: none !important; }
}

@media (max-width: 800px) {
	.nav-toggle {
		/*display: block !important;*/
		position: absolute;
		top: 1rem;
		right: 1rem;
		z-index: 1001;
		background: none;
		border: none;
		width: 2rem;
		height: 2rem;
	}
	.nav-desktop {
		display: none !important;
	}
	.site-nav {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 80vw;
		max-width: 320px;
		height: 100vh;            /* WICHTIG: ganze Fensterhöhe */
		background: #f0fcf5;
		box-shadow: 2px 0 8px rgba(0,0,0,0.08);
		padding: 2rem 1rem 1rem 1.5rem;
		transform: translateX(-110%);
		transition: transform 0.3s;
		z-index: 1000;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	.site-nav.open {
		transform: translateX(0);
	}
	.site-nav ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}
	.site-nav li {
		margin-bottom: 0.5rem;
		position: relative;
	}
	.site-nav a, .site-nav .submenu-toggle {
		display: block;
		background: none;
		border: none;
		font: inherit;
		font-weight: bold;
		color: var(--link-color);
		text-align: left;
		padding: 0.5rem 0;
		width: 100%;
		cursor: pointer;
	}
	.site-nav a {
		text-decoration: none;
	}
	.site-nav .submenu-toggle:after {
		content: "▸";
		float: right;
		transition: transform 0.2s;
	}
	.site-nav li.open > .submenu-toggle:after {
		transform: rotate(90deg);
	}
	.site-nav li > ul {
		display: none;
		margin: 0.2rem 0 0.2rem 1rem;
		padding-left: 0.5rem;
		border-left: 2px solid #a3d9a5;
	}
	.site-nav li.open > ul {
		display: block;
	}
}
@media (min-width: 801px) {
	.nav-toggle {
		display: none !important;
	}
	.site-nav {
		display: none !important;
	}
	.nav-desktop {
		display: flex !important;
	}
}

/* Burger-Icon Styling (Animation zum X beim Öffnen) */
.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
	content: '';
	display: block;
	background: #2f3e2c;
	height: 3px;
	border-radius: 2px;
	position: absolute;
	width: 100%;
	transition: transform 0.3s, background 0.2s;
}
.nav-toggle .burger {
	position: absolute;
	top: 50%; left: 0;
	transform: translateY(-50%);
}
.nav-toggle .burger::before {
	content: '';
	position: absolute;
	top: -8px;
	left: 0;
}
.nav-toggle .burger::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
}
.nav-toggle.open .burger {
	background: transparent;
}
.nav-toggle.open .burger::before {
	transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open .burger::after {
	transform: rotate(-45deg) translate(5px, -5px);
}


/* Blog/Markdown-Artikel-Styles */
.blog-article {
	background: #ffffff;
	border-radius: 1.5rem;
	box-shadow: 0 4px 24px rgba(163, 217, 165, 0.10), 0 1.5px 4px #0001;
	padding: 2rem 2rem 2.5rem 2rem;
	max-width: 800px;
	margin: 1rem auto;
	font-size: 1.12rem;
	line-height: 1.8;
}

.blog-article h1, .blog-article h2, .blog-article h3, .blog-article h4, .blog-article h5, .blog-article h6 {
	color: #00695c;
	font-family: "Open Sans", sans-serif;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}
.blog-article h1 { font-size: 2rem; margin-top: 0; }
.blog-article h2 { font-size: 1.5rem; border-bottom: 2px solid #a3d9a5; padding-bottom: .2em;}
.blog-article h3 { font-size: 1.15rem; color: #004d40; }
.blog-article h4, .blog-article h5, .blog-article h6 { font-size: 1rem; color: #388e7d; }

.blog-article p {
	margin: 1.2em 0;
}
.blog-article ul, .blog-article ol {
	margin: 1.2em 0 1.2em 2em;
	padding-left: 1.5em;
}
.blog-article ul {
	/*list-style: disc inside;*/
}
.blog-article ol {
	/*list-style: decimal inside;*/
}
.blog-article li {
	margin-bottom: 0.5em;
}
.blog-article blockquote {
	border-left: 4px solid #a3d9a5;
	background: #f0fcf5;
	color: #24634f;
	padding: 1em 1.2em;
	margin: 1.5em 0;
	border-radius: 0.7em;
	font-style: italic;
}
.blog-article code, .blog-article pre {
	font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
	background: #f0fcf5;
	border-radius: 0.3em;
	padding: 0.18em 0.6em;
	font-size: 0.98em;
	color: #004d40;
}
.blog-article pre {
	display: block;
	padding: 1em;
	overflow-x: auto;
}
.blog-article table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	background: #f8fafc;
	box-shadow: 0 1px 3px #a3d9a522;
	border-radius: 0.6em;
	overflow: hidden;
}
.blog-article th, .blog-article td {
	padding: 0.75em 1em;
	border: 1px solid #d1ead4;
	text-align: left;
}
.blog-article th {
	background: #e6f4ea;
	color: #00695c;
	font-weight: 600;
}
.blog-article tr:nth-child(even) {
	background: #f0fcf5;
}

/* Infoboxen, z.B. für „Wusstest du schon...“ */
.blog-article .infobox {
	background: #e6f4ea;
	color: #24634f;
	border-left: 6px solid #a3d9a5;
	padding: 1.1em 1.5em;
	margin: 2em 0;
	border-radius: 0.7em;
	box-shadow: 0 1px 6px rgba(163,217,165,0.08);
	font-weight: 500;
}

/* Links im Artikel */
.blog-article a {
	color: var(--link-color);
	text-decoration: underline;
}
.blog-article a:hover {
	color: var(--link-hover-color);
	background: #d1ead4;
	border-radius: .2em;
	transition: background 0.2s;
}

/* Abstand zu ähnlichen Artikeln */
.related-articles {
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 2px dashed #a3d9a5;
	font-size: 1.02em;
}
.related-articles ul {
	list-style: circle inside;
	margin-left: 1em;
}

/* Responsive: */
@media (max-width: 700px) {
	.blog-article {
		/*padding: 1rem 0.3rem 1.5rem 0.3rem;*/
		font-size: 1rem;
	}
}

/*.category-description {*/
/*	margin: 1.1em 0 1.6em 0;*/
/*	font-size: 1.12em;*/
/*	line-height: 1.55;*/
/*	color: #20573a;*/
/*	background: #f8fcf9;*/
/*	border-radius: 0.7em;*/
/*	padding: 1em 1.2em;*/
/*}*/

.mobile-categories {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mobile-category-item {
	margin-bottom: 8px;
}
.mobile-cat-toggle {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	font-size: 1em;
	padding: 8px 0;
	cursor: pointer;
}
.mobile-subcategories {
	margin-left: 18px;
	margin-top: 6px;
	list-style: disc;
}
.mobile-subcategory-item a {
	color: #2f3e2c; /* Deine Farbe */
	text-decoration: none;
	font-size: 0.98em;
}
.site-nav .mobile-categories {
	display: block !important;
	background: #ffeaa7; /* Testweise gelb, dann siehst du sie sofort */
	color: #2d3436;
}

@media (max-width: 800px) {
	.site-nav .mobile-categories,
	.site-nav .mobile-category-item > ul {
		/*display: block !important;*/
		position: static !important;
		background: none !important;
		box-shadow: none !important;
		min-width: unset !important;
		max-width: unset !important;
		border-radius: 0 !important;
		padding: 0;
		margin: 0;
	}
	.site-nav .mobile-category-item {
		margin-bottom: 0.2em;
	}
	.site-nav .mobile-category-item > button,
	.site-nav .mobile-category-item > a {
		background: none;
		color: #2f3e2c;
		font-size: 1em;
		font-weight: bold;
		width: 100%;
		text-align: left;
		border: none;
		padding: 0.45em 0;
	}
	.site-nav .mobile-subcategories {
		margin-left: 1em;
		margin-top: 0.1em;
		background: none;
		border: none;
		list-style: disc inside;
		color: #2f3e2c;
		font-weight: normal;
		font-size: 0.98em;
		display: none;
	}
	.site-nav .mobile-category-item.open > .mobile-subcategories {
		display: block !important;
	}
}

.site-nav .mobile-categories,
.site-nav .mobile-subcategories {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.site-nav .mobile-category-item {
	margin-bottom: 0.5em;
}

.site-nav .mobile-cat-toggle {
	background: none;
	border: none;
	font-size: 1.08em;
	font-weight: bold;
	color: #2f3e2c;
	padding: 0.25em 0;
	width: 100%;
	text-align: left;
	cursor: pointer;
}

.site-nav .mobile-subcategories {
	padding-left: 1em;
	margin-top: 0.25em;
}

.site-nav .mobile-subcategories li a {
	font-weight: normal;
	font-size: 1em;
	padding: 0.2em 0 0.2em 0.3em;
	color: #2f3e2c;
}

.site-nav .mobile-subcategories {
	display: none !important;
}
.site-nav .mobile-category-item.open > .mobile-subcategories {
	display: block !important;
}

.site-nav .mobile-categories .mobile-category-item:last-child {
	margin-bottom: 2.2em;
}

/* Moderne Scrollbar für alle Browser (Chrome, Edge, Safari, Firefox) */
.site-nav,
.site-nav * {
	scrollbar-width: thin;
	scrollbar-color: #a3d9a5 #e6f4ea;
}

/* Webkit-Browser (Chrome, Edge, Safari) */
.site-nav::-webkit-scrollbar {
	width: 10px;
	background: #e6f4ea;
	border-radius: 12px;
}
.site-nav::-webkit-scrollbar-thumb {
	background: #a3d9a5;
	border-radius: 12px;
	border: 2px solid #e6f4ea;
}
.site-nav::-webkit-scrollbar-thumb:hover {
	background: #2f7c5f;
}
.site-nav::-webkit-scrollbar-corner {
	background: #e6f4ea;
}

.breadcrumb {
	background: #e6f4ea;
	padding: 0em 1em 0em 1em;
	border-radius: 0.5em;
	font-size: 1.05em;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.breadcrumb li {
	display: flex;
	margin-right: 0 !important;
	align-items: center;
	font-weight: normal;
}

.breadcrumb li a {
	color: #2f3e2c;
	text-decoration: none;
	font-weight: 600;
}

.breadcrumb li span {
	color: #2f3e2c;
	font-weight: 400;
}

.breadcrumb li + li:before {
	content: "›";
	color: #2f7c5f;
	margin: 0 0.7em;
	font-weight: 700;
	font-size: 1em;
}

.breadcrumb li:last-child a, .breadcrumb li:last-child span {
	font-weight: 500;
}

.breadcrumb li:first-child a {
	font-weight: bold;
}

@media (max-width: 700px) {
	.breadcrumb {
		font-size: 0.8em;
		padding: 0.2em 0.7em;
	}
	.breadcrumb li + li:before {
		margin: 0 0.4em;
	}
}

