/* ==========================================================================
   0. SPEED BASE SETTINGS
   ========================================================================== */
html {
	scroll-behavior: smooth;
	height: 100%;
}

/* ==========================================================================
   1. RESET & LAYOUT BASIS
   ========================================================================== */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, img, ul, li, fieldset, form, label, article, aside, footer, header, nav, section {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	box-sizing: border-box;
}

article, aside, footer, header, nav, section {
	display: block;
}

body {
	line-height: 1;
	-webkit-text-size-adjust: none;
	background: #ffffff;
	height: 100%;
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 300;
	font-size: 15pt;
	line-height: 1.75em;
	color: #444444;
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
	animation: none !important;
	transition: none !important;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 900;
	color: #ffffff;
	line-height: 1.5em;
}

h2 {
	font-size: 2.25em;
	letter-spacing: -0.035em;
}

h3 {
	font-size: 1.5em;
	letter-spacing: -0.025em;
}

p {
	margin-bottom: 1.5em;
}

a {
	color: #92a0ad;
	text-decoration: none;
	transition: color 0.1s ease-in-out;
}

a:hover {
	color: #3c434a;
}

strong {
	font-weight: 900;
	color: #222222;
}

ul {
	list-style: none;
}

/* ==========================================================================
   2. BUTTONS & INTERAKTIONEN
   ========================================================================== */
.button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 1.5em;
	height: 3em;
	background-color: #92a0ad;
	border-radius: 4px;
	color: #ffffff;
	text-align: center;
	font-weight: 900;
	letter-spacing: -0.015em;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, border-color 0.1s ease-in-out;
}

.button:hover {
	background-color: #a4b0bc;
}

.button.style1 {
	background-color: #92a0ad;
	color: #ffffff !important;
}

.button.style1:hover {
	background-color: #a4b0bc;
}

.button.style2 {
	background-color: transparent;
	border: solid 1px #e5e5e5;
	color: inherit;
}

.button:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.button.style2.down {
	position: relative !important;
	bottom: auto !important;
	left: auto !important;
	transform: none !important;
	margin: 30px auto 0 auto !important;
	width: 3.5rem !important;
	height: 3.5rem !important;
	padding: 0 !important;
	border-radius: 25% !important;
	background-color: #0d3b66 !important;
	color: #ffffff !important;
	border: none !important;
	transition: background-color 0.1s ease, transform 0.1s ease !important;
	z-index: 10 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.button.style2.down::after {
	content: "";
	width: 0.8rem;
	height: 0.8rem;
	border-right: 3px solid #ffffff;
	border-bottom: 3px solid #ffffff;
	transform: rotate(45deg);
	display: inline-block !important;
	position: relative;
	bottom: 0.2rem;
	transition: none !important;
}

.button.style2.down:hover {
	background-color: #0056b3 !important;
	color: #ffffff !important;
	transform: translateY(3px) !important;
}

/* ==========================================================================
   3. HAUPTSEKTIONEN & SEITENBOXEN (Frostglas-Korrektur)
   ========================================================================== */
.main {
	display: flex;
	position: relative;
	margin: 0;
	overflow: hidden;
	align-items: center;
	background-color: #1f2328;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-attachment: fixed !important;
	transition: background-image 1.8s ease-in-out !important;
	content-visibility: auto;
	contain-intrinsic-size: 100vh;
}

.main.fullscreen {
	min-height: 100vh;
}

.main .content {
	position: relative;
	z-index: 1;
	transition: opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
	opacity: 1;
}

.main.style2.left .content {
	transform: translateX(0);
}
.main.inactive.style2.left .content {
	opacity: 0 !important;
	transform: translateX(-150px) !important;
}

.main.style2.right .content {
	transform: translateX(0);
}
.main.inactive.style2.right .content {
	opacity: 0 !important;
	transform: translateX(150px) !important;
}

.main.style1 .content, .main.style3 .content {
	transform: translateY(0);
}
.main.inactive.style1 .content, .main.inactive.style3 .content {
	opacity: 0 !important;
	transform: translateY(100px) !important;
}

.main.dark {
	color: #fff;
	font-weight: 550 !important;
}

.main.dark h2, .main.dark strong {
	color: #ffffff;
}

.main.style1 {
	justify-content: center;
	text-align: center;
	align-items: center !important;
	padding: 0 !important;
}

.main.style1 h2 {
	margin: 0 0 10px 0 !important;
	line-height: 1em;
}

.main.style1 p {
	font-size: 1.35em;
	font-weight: 900;
	line-height: 1.4em;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.main.style1 .content {
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	top: 125px;
	background: transparent !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	border-radius: 0;
	border: none !important;
}

.main.style1 footer {
	width: 100%;
	display: flex;
	justify-content: center;
}

.main.style2 {
	justify-content: flex-start;
	padding: 4rem;
}

.main.style2 .content {
	width: 40rem;
	max-width: 100%;
	padding: 3rem !important;
	box-shadow: 0 0.25rem 2.5rem 0 rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	color: #fff;
	-webkit-backdrop-filter: blur(10px) !important;
	backdrop-filter: blur(10px) !important;
	background-color: rgba(31, 35, 40, 0.45) !important;
	border-radius: 25px;
	border: solid 1px rgba(255, 255, 255, 0.05);
}

.main.style2.left {
	justify-content: flex-start;
}

.main.style2.right {
	justify-content: flex-end;
}

.main.style2 .content ul {
	text-align: left;
	margin-bottom: 1.5rem;
	list-style: disc;
	padding-left: 1.5rem;
}

.main.style2 .content ul li {
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   4. NAVIGATION / HEADER
   ========================================================================== */
#header {
	position: fixed;
	z-index: 10000;
	left: 2rem;
	top: 2rem;
	height: 3.5rem;
	width: calc(100% - 4rem);
	background: transparent !important;
	box-shadow: none !important;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#header h1 {
	margin: 0;
	display: flex;
	align-items: center;
	color: #ffffff;
	font-size: 1.75rem;
}

.logo-link {
	display: flex;
	align-items: center;
	height: 3.5rem;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	color: #ffffff !important;
}

.logo-link:hover {
	background: transparent !important;
	color: #92a0ad !important;
}

.logo-img {
	height: 3.5rem;
	width: auto;
	display: block;
	object-fit: contain;
	margin-right: 15px;
	background: transparent !important;
	border-radius: 10px;
}

#menu-toggle {
	width: 3.5rem;
	height: 3.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	align-items: center;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.9) !important;
	padding: 0;
	box-sizing: border-box;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: background-color 0.1s ease, transform 0.1s ease;
	position: relative;
	z-index: 10001;
}

#menu-toggle span {
	display: block;
	height: 3px;
	width: 1.75rem;
	background-color: #222222 !important;
	border-radius: 2px;
	transition: background-color 0.1s ease;
}

#menu-toggle:hover {
	background-color: #ffffff !important;
	transform: scale(1.05);
}

#menu-toggle:hover span {
	background-color: #0d3b66 !important;
}

#menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(31, 35, 40, 0.98);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

#menu-overlay.open {
	opacity: 1;
	visibility: visible;
}

.close-menu {
	position: absolute;
	top: 2rem;
	right: 3.5rem;
	font-size: 3rem;
	color: #ffffff;
	cursor: pointer;
	line-height: 1;
	transition: color 0.1s ease;
}

.close-menu:hover {
	color: #92a0ad;
}

#menu-overlay nav ul {
	text-align: center;
}

#menu-overlay nav ul li {
	margin: 1.2rem 0;
}

#menu-overlay nav ul li a {
	color: #ffffff;
	font-size: 1.5rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	transition: color 0.1s ease;
}

#menu-overlay nav ul li a:hover {
	color: #92a0ad;
}

/* ==========================================================================
   5. VERTRAGSBEREICH & VISITENKARTE
   ========================================================================== */
.main.style3.secondary {
	background-color: #1f2328 !important;
	color: #ffffff !important;
	padding: 6rem 0;
	justify-content: center;
	text-align: center;
}

.main.style3.secondary h2, 
.main.style3.secondary p, 
.main.style3.secondary strong {
	color: #ffffff !important;
}

.main.style3.secondary .content {
	width: 100%;
	max-width: 50rem;
	background: rgba(31, 35, 40, 0.95) !important;
	padding: 4rem 3rem !important;
	box-shadow: 0 0.25rem 2.5rem 0 rgba(0, 0, 0, 0.25);
	border-radius: 4px;
}

.visitenkarte {
	margin-top: 3rem;
	display: inline-block;
	text-align: center;
	background: #333333 !important;
	padding: 2.5rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.visitenkarte:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.visitenkarte h3 {
	color: #ffffff !important;
	margin-bottom: 0.25rem;
}

.visitenkarte p {
	color: #cbd5e1 !important;
	margin-bottom: 1.5rem;
}

.visitenkarte .actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	list-style: none !important;
	padding: 0 !important;
}

.miezen-rahmen {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 1.25rem auto;
	border: 3px solid #ffffff;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.miezen-bild {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.15s ease;
}

.visitenkarte:hover .miezen-bild {
	transform: scale(1.15);
}

.button.button-email {
	background-color: #43576a !important;
	color: #ffffff !important;
	border: none !important;
	width: 120px !important;
}

.button.button-email:hover {
	background-color: #536c84 !important;
}

.button.button-green {
	background-color: #2e7d32 !important;
	color: #ffffff !important;
	border: none !important;
	width: 120px !important;
}

.button.button-green:hover {
	background-color: #388e3c !important;
}

/* ==========================================================================
   6. FOOTER & SCROLL-TO-TOP
   ========================================================================== */
#footer {
	height: 25px;
	background: #1f2328;
	color: #a0b2c6;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

#footer a {
	color: #a0b2c6;
	transition: color 0.1s ease-in-out;
}

#footer a:hover {
	color: #ffffff;
}

#footer .menu {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
	line-height: 1;
}

#footer .menu li {
	border-left: solid 1px rgba(255, 255, 255, 0.15);
	padding: 0 1rem;
	margin: 0;
	line-height: 1;
	font-size: 0.85rem;
}

#footer .menu li:first-child {
	border-left: 0;
	padding-left: 0;
}

#scroll-to-top {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 45px;
	height: 45px;
	background: #333333;
	border: none;
	border-radius: 25%;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 99999;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	transition: background-color 0.1s ease, transform 0.1s ease;
	color: #ffffff;
}

#scroll-to-top::before {
	content: "";
	width: 0.8rem;
	height: 0.8rem;
	border-left: 3px solid #ffffff;
	border-top: 3px solid #ffffff;
	transform: rotate(45deg);
	display: inline-block !important;
	position: relative;
	top: 0.2rem;
	transition: none !important;
}

#scroll-to-top:hover {
	background: #0056b3;
	transform: translateY(-3px);
	color: #ffffff;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN & MOBILE PERFORMANCE
   ========================================================================== */
@media screen and (min-width: 737px) {
	.main, body .main {
		background-attachment: fixed !important;
	}
}

@media screen and (max-width: 1280px) {
	body {
		font-size: 13pt;
	}
	.main.style1 {
		padding: 0 !important;
	}
	.main.style2 {
		padding: 3rem;
	}
	.main.style2 .content {
		padding: 3rem !important;
	}
}

@media screen and (max-width: 1000px) {
	body .main.style1 {
		padding: 0 !important;
	}
	body .main.style1 .content {
		padding: 0 !important;
		width: 100%;
	}
	.main.style2 {
		justify-content: center !important;
		padding: 2rem;
	}
	.main.style2 .content {
		width: 40rem;
		align-items: center;
		text-align: center;
		padding: 3rem !important;
	}
	.main.style2 .content ul {
		text-align: left;
	}
}

@media screen and (max-width: 736px) {
	body {
		font-size: 12pt;
		-webkit-overflow-scrolling: touch;
	}

	.main.style1 {
		padding: 0 !important;
		align-items: center !important;
	}
	.main.style1 .content {
		padding: 0 !important;
	}
	.main.style1 h2 {
		font-size: 2.25em;
	}
	.main.style2 {
		padding: 1rem;
	}
	.main.style2 .content {
		padding: 3rem !important;
	}
	
	.main.style3.secondary .content {
		padding: 2rem 1.5rem !important;
		width: calc(100% - 2rem);
	}
	
	.main, body .main, body.is-touch .main {
		background-attachment: fixed !important;
		background-size: cover !important;
		background-position: center !important;
		transition: background-image 1.8s ease-in-out !important;
	}
	
	#header {
		left: 1rem;
		top: 1rem;
		width: calc(100% - 2rem);
	}

	#menu-toggle {
		background: rgba(255, 255, 255, 0.9) !important;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
	}

	#menu-toggle span {
		background-color: #222222 !important;
	}

	#menu-toggle:hover span {
		background-color: #0d3b66 !important;
	}

	.visitenkarte {
		max-width: 100% !important;
	}

	#footer {
		height: auto !important;
		padding: 1.5rem 1rem !important;
	}

	#footer .menu {
		flex-wrap: wrap !important;
		justify-content: center !important;
		gap: 0.75rem 0 !important;
	}

	#footer .menu li {
		border-left: none !important;
		padding: 0 0.75rem !important;
	}
}

/* Jeder Link im Footer bekommt einen festen Abstand nach rechts */
.footer-nav a {
	text-decoration: none;
	color: #a0b2c6;
	margin-right: 25px;
	position: relative;
}

.footer-nav a:hover {
	color: #ffffff;
}

/* Der Trennstrich wird per CSS angehängt */
.footer-nav a:not(:last-child)::after {
	content: "|";
	position: absolute;
	right: -15px;
	color: rgba(255, 255, 255, 0.2);
}
