/* =========================
   MOBILE MENU BUTTON
   ========================= */

.mobile-menu-toggle {
	display: none;

	flex-direction: column;
	align-items: center;
	justify-content: center;

	gap: 6px;

	width: 48px;
	height: 48px;

	margin: 0;
	padding: 0;

	flex: 0 0 auto;

	border: 0;
	border-radius: var(--border-radius);

	background: transparent;

	color: var(--font-color);

	cursor: pointer;
}


/* Burger-Linien */

.mobile-menu-toggle span {
	display: block;

	width: 27px;
	height: 2px;

	background: currentColor;

	border-radius: 2px;

	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}


/* =========================
   BURGER → X
   ========================= */

.mobile-menu-toggle.is-open span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   MOBILE / TABLET
   bis 900px
   ========================================================= */

@media (max-width: 900px) {

	/* =========================
	   HEADER
	   ========================= */

	.site-header {
		position: sticky;
		top: 0;
		z-index: 4000;

		width: 100%;

		background: rgba(255, 255, 255, 0.92);

		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);

		isolation: isolate;
	}


	.site-header-inner {
		position: relative;

		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;

		gap: 0;

		width: 100%;

		padding: 0.8rem 1.5rem;

		box-sizing: border-box;

		animation: none !important;
	}


	/* =========================
	   LOGO
	   ========================= */

	.site-logo {
		display: block;

		flex: 0 0 auto;

		width: auto;
		max-width: 180px;

		overflow: hidden;
	}


	.site-logo img {
		display: block;

		width: auto !important;
		height: 60px !important;

		max-width: 180px !important;
		max-height: 60px !important;

		object-fit: contain;

		animation: none !important;
		transform: none !important;
	}


	/* =========================
	   BURGER
	   ========================= */

	.mobile-menu-toggle {
		display: flex;

		margin-left: auto;
	}


	/* =========================
	   NAVIGATION
	   ========================= */

	.main-navigation {
		display: none;

		flex: 0 0 100%;

		width: 100%;
	}


	.main-navigation.is-open {
		display: block;
	}


	.main-navigation > ul {
		display: flex;
		flex-direction: column;
		align-items: stretch;

		gap: 0;

		width: 100%;

		margin: 0.8rem 0 0 0;
		padding: 0.8rem 0 0 0;

		border-top: 1px solid rgba(0, 0, 0, 0.10);
	}


	.main-navigation > ul > li {
		display: block;

		width: 100%;

		margin: 0;
		padding: 0;
	}


	.main-navigation > ul > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;

		gap: 0.75rem;

		width: 100%;

		padding: 0.8rem 1rem;

		box-sizing: border-box;

		border-radius: var(--border-radius);
	}


	/* =========================
	   UNTERMENÜ
	   ========================= */

	.main-navigation ul ul {
		display: none;

		position: static;

		width: 100%;
		min-width: 0;

		margin: 0;
		padding: 0 0 0.5rem 1.25rem;

		box-sizing: border-box;

		background: transparent;

		box-shadow: none;

		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}


	.main-navigation
	.main-navigation-item.is-open
	> .main-navigation-submenu {
		display: block;
	}


	.main-navigation ul ul li {
		width: 100%;
	}


	.main-navigation ul ul a {
		display: flex;
		align-items: center;
		justify-content: space-between;

		gap: 0.75rem;

		width: 100%;

		padding: 0.6rem 1rem;

		box-sizing: border-box;
	}


	/* =========================
	   MOBILE MENÜPFEILE
	   ========================= */

	.main-navigation-arrow {
		position: static;

		display: inline-flex;
		align-items: center;
		justify-content: center;

		width: 0.8rem;
		height: 0.8rem;

		flex: 0 0 0.8rem;

		margin-left: auto;

		line-height: 0;

		transform: none;

		transition: transform 0.2s ease;
	}


	.main-navigation-arrow svg {
		display: block;

		width: 100% !important;
		height: 100% !important;

		max-width: none;
	}


	.main-navigation-item.is-open
	> a
	> .main-navigation-arrow {
		transform: rotate(90deg);
	}


	/* =========================
	   HERO
	   ========================= */

	/*
	 * Alle Hero-Varianten dürfen mit ihrem
	 * Inhalt wachsen.
	 *
	 * Keine feste Höhe und kein Scrollbereich
	 * mehr innerhalb von .hero-content.
	 */

	.hero-large,
	.hero-small {
		position: relative;

		display: grid !important;

		aspect-ratio: auto !important;

		height: auto !important;

		width: 100%;

		min-height: 320px;

		padding: 2rem 1rem;

		box-sizing: border-box;

		overflow: hidden;
	}


	/*
	 * Large bekommt weiterhin etwas mehr
	 * Grundhöhe als die Small-Varianten.
	 */

	.hero-large {
		min-height: clamp(360px, 45vw, 520px);
	}


	.hero-small {
		min-height: clamp(320px, 40vw, 440px);
	}


	/* =========================
	   HERO HINTERGRUND
	   ========================= */

	.hero-large .hero-image,
	.hero-small .hero-image {
		position: absolute;

		inset: 0;

		z-index: 0;

		display: block;

		width: 100% !important;
		height: 100% !important;

		max-width: none;

		object-fit: cover;
	}


	/*
	 * Dadurch wächst das Hintergrundbild
	 * automatisch mit der Höhe des Heroes.
	 */


	/* =========================
	   HERO CONTENT
	   ========================= */

	.hero-large .hero-content,
	.hero-small .hero-content {
		position: relative !important;

		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;

		z-index: 2;

		width: min(650px, 100%) !important;
		max-width: 650px;

		padding: 1.5rem;

		box-sizing: border-box;

		transform: none !important;

		max-height: none !important;

		overflow: visible !important;
	}


	/* =========================
	   HERO POSITIONEN
	   ========================= */

	.hero.hero-position-center {
		align-items: center;
		justify-items: center;
	}


	.hero.hero-position-top-left {
		align-items: start;
		justify-items: start;
	}


	.hero.hero-position-top-right {
		align-items: start;
		justify-items: end;
	}


	.hero.hero-position-bottom-left {
		align-items: end;
		justify-items: start;
	}


	.hero.hero-position-bottom-right {
		align-items: end;
		justify-items: end;
	}


	/* =========================
	   HERO FILTERED
	   ========================= */

	.hero-small.hero-filtered {
		height: auto !important;

		min-height: clamp(320px, 40vw, 440px);

		overflow: hidden;
	}


	.hero-small.hero-filtered .hero-content {
		max-height: none !important;

		overflow: visible !important;
	}


	/* =========================
	   CONTENT
	   ========================= */

	.page-content {
		width: 100%;

		padding-left: 1.5rem;
		padding-right: 1.5rem;

		box-sizing: border-box;

		line-height: 1.6;
	}


	.page-content img {
		max-width: 100%;
		height: auto;
	}


	/* =========================
	   TEXT + BILD / MEDIA
	   ========================= */

	.ce-textpic,
	.ce-textmedia {
		display: flex !important;
		flex-direction: column !important;

		width: 100%;

		box-sizing: border-box;
	}


	.ce-textpic .ce-gallery,
	.ce-textmedia .ce-gallery {
		order: 1;

		float: none !important;

		width: 100% !important;
		max-width: none !important;

		margin:
			0
			0
			1.5rem
			0 !important;

		box-sizing: border-box;
	}


	.ce-textpic .ce-bodytext,
	.ce-textmedia .ce-bodytext {
		order: 2;

		float: none !important;

		width: 100% !important;
		max-width: none !important;

		margin: 0 !important;

		box-sizing: border-box;
	}


	.ce-textpic.ce-left .ce-gallery,
	.ce-textpic.ce-right .ce-gallery,
	.ce-textpic.ce-intext .ce-gallery,
	.ce-textpic.ce-nowrap .ce-gallery,
	.ce-textmedia.ce-left .ce-gallery,
	.ce-textmedia.ce-right .ce-gallery,
	.ce-textmedia.ce-intext .ce-gallery,
	.ce-textmedia.ce-nowrap .ce-gallery {
		float: none !important;

		width: 100% !important;
		max-width: none !important;

		margin-left: 0 !important;
		margin-right: 0 !important;
	}


	/* =========================
	   TYPO3 BILD-WRAPPER
	   ========================= */

	.ce-gallery .ce-outer,
	.ce-gallery .ce-inner,
	.ce-gallery .ce-row {
		width: 100%;

		margin-left: 0 !important;
		margin-right: 0 !important;
	}


	.ce-gallery .ce-column {
		float: none !important;

		width: 100%;

		margin:
			0
			0
			1rem
			0 !important;
	}


	.ce-gallery figure {
		width: 100%;

		margin: 0;
	}


	.ce-gallery .image-embed-item {
		display: block;

		width: 100%;
		max-width: 100%;
		height: auto;

		margin: 0;
	}


	/* =========================
	   FOOTER
	   ========================= */

	.site-footer {
		text-align: center;
	}


	.site-footer-columns,
	.site-footer-meta {
		width: auto;

		max-width: calc(100% - 2rem);

		margin-left: auto;
		margin-right: auto;
	}


	.site-footer-columns {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		justify-items: center;
	}


	.site-footer-column {
		width: 100%;

		text-align: center;
	}


	.site-footer-column .footer-link-list ul {
		display: flex;
		flex-direction: column;
		align-items: center;

		gap: 0.5rem;

		width: 100%;

		margin: 0;
		padding: 0;
	}


	.site-footer-column .footer-link-list li {
		width: auto;

		text-align: center;
	}


	.site-footer-meta {
		display: flex;
		flex-direction: column;
		align-items: center;

		text-align: center;
	}


	.site-footer-meta > * {
		width: 100%;
	}


	.site-footer-meta .footer-link-list ul {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;

		justify-content: center;
		align-items: center;

		gap: 1rem;

		width: 100%;

		margin: 0;
		padding: 0;
	}


	.site-footer-meta .social-media-links {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;

		align-items: center;
		justify-content: center;

		gap: 0.75rem;

		width: 100%;

		margin-top: 1.25rem;
	}

}


/* =========================================================
   SMARTPHONE
   bis 600px
   ========================================================= */

@media (max-width: 600px) {

	/* =========================
	   HEADER
	   ========================= */

	.site-header-inner {
		padding: 0.65rem 1rem;
	}


	/* =========================
	   LOGO
	   ========================= */

	.site-logo {
		max-width: 155px;
	}


	.site-logo img {
		width: auto !important;
		height: 52px !important;

		max-width: 155px !important;
		max-height: 52px !important;
	}


	/* =========================
	   BURGER
	   ========================= */

	.mobile-menu-toggle {
		width: 44px;
		height: 44px;
	}


	.mobile-menu-toggle span {
		width: 25px;
	}


	/* =========================
	   HERO
	   ========================= */

	.hero-large,
	.hero-small {
		height: auto !important;

		min-height: 300px;

		padding: 1.5rem 1rem;
	}


	.hero-large .hero-content,
	.hero-small .hero-content {
		width: 100% !important;

		padding: 1.25rem;

		max-height: none !important;

		overflow: visible !important;
	}


	.hero-small.hero-filtered {
		height: auto !important;

		min-height: 300px;
	}


	.hero-small.hero-filtered .hero-content {
		max-height: none !important;

		overflow: visible !important;
	}


	/* =========================
	   CONTENT
	   ========================= */

	.page-content {
		padding-left: 1rem;
		padding-right: 1rem;
	}


	/* =========================
	   FOOTER
	   ========================= */

	.site-footer-columns {
		grid-template-columns: 1fr;

		gap: 0;
	}


	.site-footer-column {
		padding-block-start: 1.5rem;
	}


	.site-footer-column:first-child {
		padding-block-start: 0;
	}


	.site-footer-meta {
		margin-block-start: 2rem;
	}


	.site-footer-meta .footer-link-list ul {
		flex-direction: column;

		gap: 0.5rem;
	}


	.site-footer-meta .social-media-links {
		flex-direction: row;

		gap: 0.75rem;
	}


	/* =========================
	   TEXT + BILD
	   ========================= */

	.ce-textpic .ce-gallery,
	.ce-textmedia .ce-gallery {
		margin-bottom: 1rem !important;
	}

}


/* =========================================================
   SEHR KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 420px) {

	.site-logo {
		max-width: 145px;
	}


	.site-logo img {
		height: 48px !important;

		max-width: 145px !important;
		max-height: 48px !important;
	}

}