* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	color: #444;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3 {
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

.mobile-nav-overlay {
	display: none;
}

/* Hintergrundbild */

.background {
	position: fixed;
	inset: 0;
	background: url("../img/background.jpg") center center no-repeat;
	background-size: cover;
	z-index: -1;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
}

.carousel-section {
	padding: 24px 16px; /* weniger Abstand */
	background: #fff;
}

.carousel {
	max-width: 900px; /* vorher 1200px */
	margin: 0 auto;
}

/* Aktives Bild kompakter */
.carousel-active {
	width: 100%;
	height: 380px; /* kleiner */
	margin-bottom: 12px;
	background: #f3f3f3;
	border-radius: 10px;
	overflow: hidden;
}

.carousel-active img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.carousel-thumbnails-wrapper {
	position: relative;
}

.track-container {
	overflow: hidden;
}

.track {
	display: flex;
	transition: transform 0.4s ease-in-out;
	padding: 0;
	margin: 0;
	list-style: none;
}

.slide {
	min-width: 25%;
	padding: 4px;
	box-sizing: border-box;
	cursor: pointer;
	opacity: 0.8;
	display: flex;
	align-items: center;
}

.slide img {
	width: 100%;
	height: 110px;
	object-fit: contain;
	object-position: center;
	background: #f3f3f3;
	border-radius: 6px;
	display: block;
}

.slide.carousel-active-slide img {
	outline: 2px solid #000;
	outline-offset: -2px;
}

.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	border: none;
	font-size: 18px; /* kleiner */
	padding: 6px 8px;
	cursor: pointer;
	z-index: 10;
	border-radius: 50%;
}

.prev { left: 6px; }
.next { right: 6px; }

/* Tablet */
@media (max-width: 768px) {
	.footer {
		width: 100%;
	}
	.carousel {
		max-width: 100%;
	}

	.carousel-active {
		height: 260px;
	}

	.slide {
		min-width: 50%;
	}

	.slide img {
		height: 90px;
		object-fit: contain;
		object-position: center;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 26px;
		line-height: 1.2;
	}

	h2 {
		font-size: 22px;
	}

	.content {
		padding: 0 15px;
	}
}


/* Mobile */
@media (max-width: 480px) {
	.carousel-active {
		height: 200px;
	}

	.slide {
		min-width: 100%;
	}
}


/* Hauptcontainer */

.main_inner {
	width: calc(100% - 32px);
	max-width: 1100px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.main_inner {
		min-width: 550px;
	}
}

@media (max-width: 1169px) {
	.main_inner {
		padding: 0 !important;
	}
}

/* Container */
.cta-buttons {
	display: flex;
	gap: 40px;
	margin-top: 30px;
}

/* Buttons */
.cta-btn {
	display: inline-block;
	background-color: #4c8c2b;
	color: #fff;
	text-decoration: none;
	padding: 10px 30px;
	border-radius: 6px;
	font-size: 16px;
	text-align: center;
	transition: background 0.2s ease;
	border: 4px solid #4c8c2b;
}

.cta-buttons.right {
	float: right;
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
}

.cta-btn:hover {
	background-color: #f3f3f3;
	color: #4c8c2b;
}

/* 👉 Mobile Verhalten */
@media (max-width: 767px) {
	.cta-buttons {
		flex-direction: column;
		gap: 20px;
	}

	.cta-btn {
		width: 100%;
	}
}

ul {
	list-style-type: circle;
}


/* Hero */

.hero {
	width: 100%;
	text-align: center;
	padding-top: 60px;
	padding-bottom: 30px;
	position: relative;
}

.logo {
	width: 310px;
	max-width: 100%;
}


/* Burger Button */

.mobile-menu-button {
	display: none;
	position: absolute;
	left: 16px;
	top: 10px;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	z-index: 1200;
	font-size: 42px;
}

.mobile-menu-button span {
	display: block;
	width: 39px;
	height: 5px;
	margin: 0 0 7px 0;
	background: #000;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button span:last-child {
	margin-bottom: 0;
}

.mobile-menu-button.is-open span:nth-child(1) {
	transform: translateY(12px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
	transform: translateY(-12px) rotate(-45deg);
}

.map {
	width: 100%;
}

/* Navigation */

.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	background: rgba(255,255,255,0.55);
	backdrop-filter: blur(3px);
}

.nav > a,
.nav > .nav-item {
	flex: 0 0 auto;
}

.nav a, .sidemenu a, .outbound-link {
	text-decoration: none;
	color: #555;
	font-size: 18px;
	font-weight: 400;
	transition: background 0.2s ease, color 0.2s ease;
	text-align: center;
	white-space: nowrap;
}

.outbound-link {
	font-size: 16px;
	white-space: normal;
}

.sidemenu div {
	min-width: 165px;
}

.sidemenu .active, .sidemenu div:hover {
	background: #498c2b !important;
	color: #fff !important;
}

.sidemenu .active a, .sidemenu div:hover a {
	color: #fff !important;
}

.nav > a {
	padding: 15px 27px;
}

.nav > a:hover,
.nav > a.active,
.nav > .nav-item > a:hover,
.nav > .nav-item > a.active {
	background: #498c2b !important;
	color: #fff !important;
}

.annotation {
	font-size: 8pt
}


/* Therapieangebot Wrapper */

.nav-item {
	position: relative;
	display: flex;
	align-items: stretch;
}

.nav-parent {
	display: block;
	padding: 15px 27px;
}

.nav-parent:hover {
	background: #498c2b !important;
	color: #fff;
}

.submenu-toggle {
	display: none;
}


/* Desktop: Submenu auf keinen Fall anzeigen */

.submenu {
	display: none;
}

.submenu .active {
	background: #498c2b !important;
	color: #fff;
}

/* Layout */

.page_layout {
	margin-top: 26px;
	display: flex;
	gap: 30px;
	align-items: flex-start;
}


/* Content */

.content {
	width: calc(70% - 15px);
	background: #f3f3f3;
	padding: 40px 32px;
	line-height: 1.6;
	min-width: 0;
}


/* Sidebar */

.sidebar {
	width: calc(30% - 15px);
	background: rgba(243,243,243,0.72);
	padding: 30px;
	line-height: 1.6;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.sidebar p,
.sidebar h3,
.sidebar a {
	overflow-wrap: break-word;
	word-break: break-word;
}

.sidebar h3 {
	margin-top: 20px;
}

/* Typografie */

h1 {
	margin-top: 0;
	color: #4c8c2b;
	font-size: 40px;
	font-weight: 400;
}

h2 {
	margin-top: 40px;
	color: #4c8c2b;
	font-size: 34px;
	font-weight: 400;
	text-transform: uppercase;
}

h3 {
	margin-top: 0;
	color: #4c8c2b;
	font-size: 30px;
	font-weight: 300;
	line-height: 1.2;
}


/* Footer */

.footer {
	margin-top: 40px;
	margin-bottom: 40px;
	background: rgba(255,255,255,0.6);
	padding: 20px 30px !important;
}


/* Back to top */

.top {
	position: fixed;
	bottom: 120px;
	left: 20px;
	padding: 10px 12px;
	border: none;
	background: #4c8c2b;
	color: white;
	cursor: pointer;
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.top.visible {
	opacity: 1;
	visibility: visible;
}


/* Tablet */

@media (min-width:768px) and (max-width:1169px) {

	.nav > a,
	.nav-parent {
		padding: 15px 27px;
		font-size: 18px;
	}

	h1 {
		font-size: 30px;
	}

	h2 {
		font-size: 24px;
	}

	h3 {
		font-size: 24px;
	}
}


/* Mobile */

@media (max-width:767px) {
	.sidemenu {
		display: none;
	}

	.main_inner {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.hero {
		padding-top: 60px;
		padding-bottom: 20px;
	}

	.hero::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 50px;
		background: rgba(230, 232, 236, 0.55);
		z-index: 1000;
	}

	.logo {
		width: 310px;
		max-width: calc(100% - 90px);
	}

	.mobile-menu-button {
		display: block;
	}

	.nav {
		display: none;
		position: absolute;
		top: 50px;
		left: 0;
		margin-top: 0;
		z-index: 1100;
		width: 100%;
		max-width: 100%;
		background: rgba(255,255,255,0.72);
		backdrop-filter: blur(2px);
		flex-direction: column;
		box-shadow: none;
	}

	.nav.mobile-open {
		display: flex;
	}

	.nav > a {
		padding: 15px 27px;
		border-right: none;
		border-bottom: 1px solid rgba(0,0,0,0.08);
		text-align: left;
		white-space: normal;
		background: transparent;
	}

	.nav > a:last-child {
		border-bottom: none;
	}

	.nav-item {
		display: block;
		width: 100%;
		position: relative;
	}

	.nav-item .nav-parent {
		display: block;
		width: 100%;
		padding: 18px 62px 18px 27px;
		border-bottom: 1px solid rgba(0,0,0,0.08);
		text-align: left;
		white-space: normal;
		background: transparent;
	}

	.submenu-toggle {
		display: block;
		position: absolute;
		top: 10px;
		right: 9px;
		width: 40px;
		height: 40px;
		border: none;
		border-left: 1px solid rgba(0,0,0,0.08);
		border-bottom: 1px solid rgba(0,0,0,0.08);
		background: rgba(120,120,120,0.18);
		color: #fff;
		font-size: 34px;
		line-height: 1;
		cursor: pointer;
		padding: 0;
		z-index: 2;
	}

	.submenu-toggle.is-open {
		font-size: 38px;
	}

	.submenu {
		display: none;
		width: 100%;
		background: rgba(255,255,255,0.38);
	}

	.submenu.open {
		display: block;
	}

	.submenu a {
		display: block;
		width: 100%;
		padding: 12px 27px;
		font-size: 12px;
		line-height: 1.2;
		text-align: left;
		color: #666;
		border-bottom: 1px solid rgba(0,0,0,0.08);
		background: transparent;
		white-space: normal;
	}

	.submenu a:hover {
		background: #498c2b;
		color: #fff;
	}

	.page_layout {
		flex-direction: column;
		gap: 20px;
		padding: 0 16px;
	}

	.content,
	.sidebar {
		width: 100%;
	}

	.footer {
		width: calc(100% - 32px);
		margin-left: 0px;
		margin-right: 16px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.top {
		left: 16px;
		bottom: 100px;
	}
	.mobile-nav-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 1050;
	}

	.mobile-nav-overlay.is-open {
		display: block;
	}

	.mobile-menu-button {
		display: block;
		z-index: 1201;
	}

	.nav {
		display: none;
		position: absolute;
		top: 50px;
		left: 0;
		margin-top: 0;
		z-index: 1100;
		width: 100%;
		max-width: 100%;
		background: rgba(255,255,255,0.72);
		backdrop-filter: blur(2px);
		flex-direction: column;
		box-shadow: none;
	}

	.nav.mobile-open {
		display: flex;
	}	
}

@media (min-width:481px) and (max-width:767px) {
	.nav {
		width: 300px;
		max-width: 300px;
		left:20px;
	}

}