/* =========================================================
   Quisbrok GmbH & Co. KG – statische Website
   Eigenständig, ohne WordPress. Schrift, Bilder, Skripte lokal.
   ========================================================= */

/* ---------- Schrift (lokal, kein Google) ---------- */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/open-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/open-sans-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/open-sans-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben & Basis ---------- */
:root {
	--blue: #314579;
	--blue-dark: #26345c;
	--orange: #fa5329;
	--orange-dark: #e2421b;
	--yellow: #ffc529;
	--ink: #1f2733;
	--muted: #5a6573;
	--bg: #ffffff;
	--bg-soft: #f2f5f7;
	--line: #e1e8ed;
	--font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;
	--container: 1180px;
	--header-h: 80px;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(31, 39, 51, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--blue);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font);
	color: var(--blue);
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 0.6em;
}

h1 {
	font-size: clamp(30px, 2rem + 1.6vw, 52px);
}
h2 {
	font-size: clamp(24px, 1.5rem + 1vw, 36px);
}
h3 {
	font-size: clamp(20px, 1.2rem + 0.5vw, 26px);
}

p {
	margin: 0 0 1em;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 84px 0;
}
.section--soft {
	background: var(--bg-soft);
}

.lead {
	font-size: 1.15em;
	color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	background: var(--orange);
	color: #fff;
	font-weight: 600;
	padding: 14px 28px;
	border-radius: 50px;
	border: 0;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
	background: var(--orange-dark);
	text-decoration: none;
	transform: translateY(-2px);
}
.btn--ghost {
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
}
.btn--ghost:hover {
	background: #fff;
	color: var(--blue);
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 20px;
	left: 0;
	right: 0;
	height: var(--header-h);
	background: transparent;
	z-index: 1200;
	transition: background 0.25s ease, box-shadow 0.25s ease,
		border-color 0.25s ease, top 0.25s ease;
	border-bottom: 1px solid transparent;
}
.site-header.solid {
	top: 0;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 6px 20px rgba(31, 39, 51, 0.08);
}
/* Verlauf hinter der transparenten Navigation (bessere Lesbarkeit auf Bildern) */
.site-header::before {
	content: "";
	position: absolute;
	top: -20px;
	left: 0;
	right: 0;
	height: 150px;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0) 100%
	);
	pointer-events: none;
	z-index: -1;
	transition: opacity 0.25s ease;
}
.site-header.solid::before {
	opacity: 0;
}
.header-inner {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 0 clamp(20px, 3.5vw, 56px);
}
.logo {
	display: block;
	line-height: 0;
}
.logo img {
	height: 56px;
	width: auto;
}
/* Weißes Logo über dem Hero, dunkles Logo im festen (weißen) Header */
.logo--dark {
	display: none;
}
.site-header.solid .logo--light {
	display: none;
}
.site-header.solid .logo--dark {
	display: block;
}
.nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}
.nav a {
	color: #fff;
	font-weight: 600;
	font-size: 0.98rem;
	padding: 6px 0;
	position: relative;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
	transition: color 0.2s ease;
}
.site-header.solid .nav a {
	color: var(--blue);
	text-shadow: none;
}
.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--orange);
	transition: width 0.2s ease;
}
.nav a:hover {
	text-decoration: none;
}
.nav a:hover::after {
	width: 100%;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.site-header.solid .nav-toggle span {
	background: var(--blue);
	box-shadow: none;
}
.nav-toggle.open span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
	opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero mit Bilder-Slideshow ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	color: var(--blue-dark);
	overflow: hidden;
}
/* Slideshow-Ebenen (Fade) */
.hero-slideshow {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active {
	opacity: 1;
}
/* sanfter heller Verlauf unten für die Lesbarkeit des dunklen Textes */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		to top,
		rgba(255, 255, 255, 0.78) 0%,
		rgba(255, 255, 255, 0.35) 28%,
		rgba(255, 255, 255, 0) 55%
	);
	pointer-events: none;
}
.hero .container {
	position: relative;
	z-index: 1;
	max-width: 860px;
	margin-left: 0;
	margin-right: auto;
	padding-left: clamp(20px, 3.5vw, 56px);
	padding-right: clamp(20px, 3.5vw, 56px);
	padding-top: calc(var(--header-h) + 24px);
	padding-bottom: 9vh;
}
/* Halbtransparentes weißes Panel hinter dem Hero-Text (bessere Lesbarkeit) */
.hero-card {
	display: inline-block;
	max-width: 760px;
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: var(--radius);
	padding: clamp(22px, 3vw, 38px) clamp(24px, 3.4vw, 44px);
	box-shadow: 0 10px 30px rgba(31, 39, 51, 0.14);
}
.hero .tagline {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--blue-dark);
	margin-bottom: 14px;
	max-width: 720px;
}
.hero h1 {
	color: var(--blue-dark);
	margin-bottom: 0.7em;
}
.hero-card .btn {
	margin-bottom: 0;
}

/* ---------- Intro ---------- */
.intro-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}
.intro-grid img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-height: 460px;
}
.section-title {
	max-width: 760px;
	margin-bottom: 48px;
}
.section-title .kicker {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: var(--orange);
	font-size: 0.85rem;
	display: block;
	margin-bottom: 10px;
}

/* ---------- Akkordeon (Leistungen) ---------- */
.accordion {
	border-top: 1px solid var(--line);
}
.accordion-item {
	border-bottom: 1px solid var(--line);
}
.accordion-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 26px 8px;
	text-align: left;
	font-family: var(--font);
	font-size: clamp(19px, 1.1rem + 0.5vw, 24px);
	font-weight: 700;
	color: var(--blue);
	transition: color 0.2s ease;
}
.accordion-header:hover {
	color: var(--orange);
}
.accordion-icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	position: relative;
}
.accordion-icon::before,
.accordion-icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.accordion-icon::before {
	top: 50%;
	left: 4px;
	right: 4px;
	height: 3px;
	transform: translateY(-50%);
}
.accordion-icon::after {
	left: 50%;
	top: 4px;
	bottom: 4px;
	width: 3px;
	transform: translateX(-50%);
}
.accordion-item.open .accordion-icon::after {
	transform: translateX(-50%) scaleY(0);
	opacity: 0;
}

.accordion-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.32s ease;
}
.accordion-item.open .accordion-body {
	grid-template-rows: 1fr;
}
.accordion-body > div {
	overflow: hidden;
}
.accordion-content {
	padding: 8px 8px 44px;
}

.topic-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 44px;
	align-items: center;
}
.topic-grid .topic-media img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%;
}
.topic-grid--contain .topic-media {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-soft);
	border-radius: var(--radius);
	padding: 24px;
}
.topic-grid--contain .topic-media img {
	box-shadow: none;
	max-height: 380px;
	width: auto;
}

/* ---------- Karussell (Bad-Galerie) ---------- */
.carousel {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: #11151c;
	box-shadow: var(--shadow);
}
.carousel-viewport {
	overflow: hidden;
}
.carousel-track {
	display: flex;
	transition: transform 0.45s ease;
	will-change: transform;
}
.carousel-slide {
	flex: 0 0 100%;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}
.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.9);
	color: var(--blue);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease;
}
.carousel-btn:hover {
	background: #fff;
}
.carousel-btn--prev {
	left: 14px;
}
.carousel-btn--next {
	right: 14px;
}
.carousel-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 0 16px;
}
.carousel-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dots button.active {
	background: var(--orange);
	transform: scale(1.25);
}
.carousel-counter {
	position: absolute;
	top: 12px;
	right: 14px;
	background: rgba(17, 21, 28, 0.6);
	color: #fff;
	font-size: 0.8rem;
	padding: 4px 10px;
	border-radius: 50px;
}

/* ---------- Kontakt ---------- */
.contact {
	background: var(--blue);
	color: #fff;
}
.contact h2,
.contact h3 {
	color: #fff;
}
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.contact .logo-weiss {
	max-width: 240px;
	margin-bottom: 24px;
}
.contact-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	font-size: 1.1rem;
}
.contact-list li {
	padding: 6px 0;
}
.contact-list a {
	color: #fff;
}
.contact-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius);
	padding: 36px;
}
.contact .download {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	color: #fff;
	font-weight: 600;
}
.contact .download:hover {
	color: var(--yellow);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--blue-dark);
	color: rgba(255, 255, 255, 0.8);
	padding: 28px 0;
	font-size: 0.92rem;
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.footer-links {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
}
.footer-links button {
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	font: inherit;
	padding: 0;
}
.footer-links button:hover {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Modal (Impressum / Datenschutz) ---------- */
.modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	background: rgba(17, 21, 28, 0.6);
	overflow-y: auto;
}
.modal.open {
	display: flex;
}
.modal-box {
	background: #fff;
	border-radius: var(--radius);
	max-width: 860px;
	width: 100%;
	margin: auto;
	box-shadow: var(--shadow);
	position: relative;
}
.modal-content {
	padding: 48px clamp(24px, 5vw, 56px);
}
.modal-content h1 {
	margin-top: 0;
}
.modal-content h2 {
	margin-top: 1.4em;
}
.modal-content h3,
.modal-content h4 {
	margin-top: 1.2em;
}
.modal-content p,
.modal-content li {
	color: var(--ink);
	font-size: 0.98rem;
}
.modal-close {
	position: sticky;
	top: 0;
	float: right;
	margin: 12px 12px -56px auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--blue);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
	transition: background 0.2s ease;
}
.modal-close:hover {
	background: var(--orange);
}

body.no-scroll {
	overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.intro-grid,
	.topic-grid,
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.intro-grid img {
		max-height: 320px;
	}
	.topic-grid .topic-media {
		order: -1;
	}
}

/* Abdunklung hinter der Offcanvas-Navigation */
.nav-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(17, 21, 28, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1050;
}
.nav-backdrop.open {
	opacity: 1;
	visibility: visible;
}

/* ---------- Offcanvas-Navigation ab 1024px ---------- */
@media (max-width: 1024px) {
	.nav-toggle {
		display: flex;
	}
	.nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(340px, 84vw);
		background: #fff;
		box-shadow: -8px 0 30px rgba(31, 39, 51, 0.18);
		padding-top: var(--header-h);
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		z-index: 1100;
	}
	.nav.open {
		transform: translateX(0);
	}
	.nav ul {
		flex-direction: column;
		gap: 0;
		padding: 12px 28px 28px;
	}
	.nav li {
		border-bottom: 1px solid var(--line);
	}
	.nav a {
		display: block;
		padding: 16px 0;
		color: var(--blue);
		text-shadow: none;
		font-size: 1.05rem;
	}
	.nav a::after {
		display: none;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 56px 0;
	}
	.hero {
		min-height: 78vh;
	}
}
