/* SPACES Reutlingen – statische Seite (ersetzt WordPress/Elementor).
   Maße, Farben und Abstände 1:1 aus dem Elementor-Original übernommen. */

@font-face {
	font-family: "Sharp Sans";
	src: url("../fonts/SharpSans-Medium.woff2") format("woff2"), url("../fonts/SharpSans-Medium.woff") format("woff");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Sharp Sans";
	src: url("../fonts/SharpSans-Bold.woff2") format("woff2"), url("../fonts/SharpSans-Bold.woff") format("woff");
	font-weight: 700;
	font-display: swap;
}

:root {
	--blau: #2e3192;
	--hellblau: #27aae1;
	--text: #3b3e42;
	--grau: #f2f2f2;
	--verlauf: linear-gradient(30deg, #2e3192, 60%, #27aae1);
	--breite: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: "Sharp Sans", Sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
p { margin: 0 0 .9rem; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 16px; }

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

/* ---------- Buttons ---------- */

.btn {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid var(--text);
	background: var(--grau);
	color: var(--text);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn--weiss { background: #fff; }
.btn--hell { border-color: #fff; background: rgba(0, 0, 0, .15); color: #fff; }
.btn-reihe { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-evenly; margin-top: 35px; }

/* ---------- Header ---------- */

.header { background: var(--verlauf); color: #fff; }
.header__inner {
	display: flex; align-items: center;
	max-width: 1220px; height: 100px;
	margin: 0 auto; padding: 0 10px;
}
.header__logo, .header__rechts { flex: 0 0 222px; padding: 0 10px; }
.header__logo img { height: 60px; width: auto; }
.header__rechts { text-align: right; }
.header__logo-icon, .header__icon-btn { display: none; }

.nav { flex: 1; padding: 0 10px; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav li { flex: 1; }
.nav a {
	display: block; position: relative;
	padding: 13px 20px;
	font-size: 16px; font-weight: 700; line-height: 20px;
	color: var(--grau); text-align: center;
}
.nav a:hover { text-decoration: none; color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0;
	height: 3px; background: #fff;
	opacity: 0; transition: opacity .3s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { opacity: 1; }

.header__icon-btn {
	background: none; border: 0; padding: 0; cursor: pointer;
	width: 30px; height: 30px; color: #fff;
}
.header__icon-btn svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	min-height: 80vh;
	padding: 0 10px;
	text-align: center;
	overflow: hidden;
}
.hero img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
/* Hintergrundvideo: 16:9-iframe, das den Hero wie object-fit: cover füllt. Zusätzlich um 30 %
   vergrößert, damit YouTubes Titelzeile (oben) und Logo (unten) außerhalb des sichtbaren Bereichs liegen. */
.hero__video { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s; }
.hero__video.ist-bereit { opacity: 1; }
.hero__video iframe {
	position: absolute; top: 50%; left: 50%;
	width: max(100%, calc(80vh * 16 / 9));
	aspect-ratio: 16 / 9;
	transform: translate(-50%, -50%) scale(1.3);
	border: 0;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, .2); }
.hero h1 {
	position: relative;
	max-width: var(--breite);
	font-size: 64px; line-height: 1.5; font-weight: 700;
	color: #fff;
	text-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

/* ---------- Feature-Band ---------- */

.band { background: var(--verlauf); color: #fff; text-align: center; padding: 58px 0; }
.band--start { background: linear-gradient(30deg, #2e3192 0%, #27aae1 100%); padding: 72px 0; }
.band--preise { padding: 101px 0; }
.band__titel {
	padding: 10px 10px 80px;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 32px; line-height: 1; font-weight: 600;
}
.band__liste {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 20px;
	margin: 0 auto; padding: 10px; list-style: none;
}
.band__liste--schmal { max-width: 1008px; }
.band__liste svg { display: block; width: 50px; height: 50px; margin: 0 auto 23px; fill: #fff; }
.band__liste h3 { font-size: 28px; }
.band--start .band__liste li { padding-bottom: 16px; }
.band--klein .band__liste svg { width: 43px; height: 43px; }
.band--klein .band__liste h3 { font-size: 24px; }
.band--gross .band__liste h3 { font-size: 32px; }
.band--preise .band__liste h3 { font-size: 48px; }
.band__liste p { margin: 0; font-size: 25.6px; line-height: 1.5; }

/* ---------- Inhaltsabschnitte (Bild + Text) ---------- */

.split { padding: 5% 10px; }
.split--grau { background: var(--grau); }
.split__inner {
	display: grid; grid-template-columns: 550fr 540fr; gap: 50px;
	max-width: var(--breite); margin: 0 auto;
}
.split--rechts .split__inner { grid-template-columns: 540fr 550fr; }
.split--rechts .split__bild { order: 2; }
.split--breit .split__inner { grid-template-columns: 535fr 585fr; gap: 20px; }
.band + .split { margin-top: 100px; }
.band--gross + .split { margin-top: 0; }
.split--breit { padding: 10px; }
.split--breit .split__text { padding: 57px; }
.split--breit .btn-reihe { margin-top: 21px; padding: 10px; }

.split__bild { position: relative; min-height: 300px; border-radius: 50px; overflow: hidden; }
.split__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.split__text h2 { font-size: 32px; line-height: 1; margin-bottom: 20px; }
.split__text .titel-blau { color: var(--blau); }
.split__text > p { text-align: justify; margin-bottom: 34px; }
.split__text .btn-reihe { justify-content: center; }
.split--breit .btn-reihe { justify-content: space-evenly; }

.check-liste { list-style: none; margin: 0; padding: 0; }
.check-liste li { display: flex; align-items: flex-start; }
.check-liste li + li { margin-top: 10px; }
.check-liste svg { flex: none; width: 20px; height: 20px; margin: 2px 2px 0 0; fill: var(--text); }
.check-liste span { padding-left: 6px; }

.split__text > p.preisangabe { text-align: center; font-size: 24px; line-height: 1.5; margin-bottom: 21px; }

.preise {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
	margin: 20px 0 0; padding: 10px; list-style: none; text-align: center;
}
.preise strong { display: block; font-size: 28px; line-height: 1.2; margin: 8px 0 16px; }

/* ---------- Rechtstexte ---------- */

.rechtstext { padding: 5% 10px; }
.rechtstext + .rechtstext { padding-top: 0; }
.rechtstext .container > h2:first-child { font-size: 32px; line-height: 1; font-weight: 700; margin: 0 0 20px; }
.rechtstext--block { text-align: justify; }
.rechtstext h2, .rechtstext h3, .rechtstext h4 { font-weight: 400; margin: .5rem 0 1rem; }
.rechtstext h2 { font-size: 32px; }
.rechtstext h3 { font-size: 28px; }
.rechtstext h4 { font-size: 24px; }
.rechtstext a { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.footer { background: var(--verlauf); color: var(--grau); }
.footer__inner {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
	max-width: var(--breite); margin: 0 auto;
	padding: calc(3% + 10px) 10px;
}
.footer a { color: var(--grau); }
.footer__logo { width: 173px; margin-bottom: 19px; }
.footer h2 { font-size: 28px; line-height: 1; color: var(--grau); margin-bottom: 20px; }
.footer__links { list-style: none; margin: 0; padding: 0; }

.karte {
	position: relative;
	height: 300px;
	background: rgba(255, 255, 255, .1);
	display: flex; align-items: center; justify-content: center;
	text-align: center;
	padding: 20px;
}
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte .btn { font-size: 14px; }
.karte p { font-size: 13px; line-height: 1.4; margin: 12px 0 0; }

.footer__unten {
	background: #000; color: var(--grau);
	text-align: center; font-size: 14.4px; font-weight: 700; line-height: 1.5;
	padding: 2px 10px 16px;
}
.footer__unten a { color: var(--grau); }

/* ---------- Dialoge (Kontakt + Mobilmenü) ---------- */

dialog {
	border: 0; padding: 0;
	max-width: none; max-height: 100dvh;
	color: #fff;
	background: var(--verlauf);
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
dialog::backdrop { background: rgba(0, 0, 0, .8); }
body:has(dialog[open]) { overflow: hidden; }

.dialog__schliessen {
	position: absolute; top: 15px; right: 15px;
	width: 30px; height: 30px; padding: 0;
	background: none; border: 0; cursor: pointer;
	font-size: 34px; line-height: 1; color: #fff;
}

.kontakt { width: 60vw; padding: 70px 6vw; }
.kontakt h2 { font-size: 48px; line-height: 1; text-align: center; margin-bottom: 50px; }
.kontakt__wege {
	display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
	padding: 20px 10px; margin-bottom: 50px; text-align: center;
}
.kontakt__wege a { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.2; }
.kontakt__wege svg { width: 40px; height: 40px; fill: #fff; display: block; margin: 0 auto 23px; }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.formular .voll { grid-column: 1 / -1; }
.formular input, .formular select, .formular textarea {
	width: 100%;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid #69727d; border-radius: 3px;
	font: inherit; font-size: 15px; line-height: 1.4; color: var(--text);
	background: #fff;
}
.formular select { padding: 5px 20px 5px 14px; font-size: 16px; }
.formular textarea { height: 96px; padding: 5px 14px; resize: vertical; }
.formular .hinweis { font-size: 13px; line-height: 1.4; margin: 0; }
.formular .hinweis a { color: #fff; text-decoration: underline; }
.formular button {
	min-height: 40px; padding: 0 24px;
	border: 2px solid #fff; background: rgba(0, 0, 0, .09);
	color: #fff; font: inherit; font-size: 15px; font-weight: 700;
	cursor: pointer;
}
.formular__falle { position: absolute; left: -9999px; }
.formular__status { margin: 0; font-weight: 700; }
.formular__status:empty { display: none; }
.formular__status[data-art="fehler"] { color: #ffd2cf; }

.mobilmenue {
	width: 70vw; height: 100dvh;
	margin: 0; padding: 0 10px;
}
.mobilmenue nav { padding-top: 10px; }
.mobilmenue img { width: 30%; margin: 0 auto 20px; }
.mobilmenue ul { list-style: none; margin: 0 0 50px; padding: 0; }
.mobilmenue li a {
	display: block; position: relative;
	padding: 13px 20px;
	font-size: 16px; font-weight: 700; line-height: 20px;
	color: var(--grau);
}
.mobilmenue li a[aria-current="page"] { color: #fff; }
.mobilmenue li a[aria-current="page"]::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #fff;
}
.mobilmenue .btn { display: table; margin: 0 auto; border-color: var(--grau); background: rgba(0, 0, 0, .08); color: var(--grau); }

/* ---------- 404 ---------- */

.leer { padding: 120px 10px; text-align: center; }
.leer h1 { font-size: 32px; margin-bottom: 20px; }

/* ---------- Tablet: mobiler Header ---------- */

@media (max-width: 1024px) {
	.nav, .header__rechts, .header__logo img.header__logo-gross { display: none; }
	.header__inner { justify-content: space-between; padding: 0 20px; }
	.header__logo { flex: none; padding: 0; }
	.header__logo .header__logo-icon, .header__icon-btn { display: block; }
	.header__logo .header__logo-icon { width: 90px; height: 60px; object-fit: contain; }
	.kontakt { width: 80vw; padding: 70px 8vw; }
}

/* ---------- Mobil ---------- */

@media (max-width: 767px) {
	.hero h1 { font-size: 48px; line-height: 1.3; }

	.band { padding: 16px 0 31px; }
	.band--start { padding: 50px 7%; }
	.band--preise { padding: 40px 0; }
	.band__titel { padding-bottom: 40px; }
	.band__liste { grid-template-columns: 1fr; gap: 36px; }
	.band--klein .band__liste { gap: 35px; }
	.band--gross .band__liste { gap: 20px; }
	.band__liste svg { margin-bottom: 23px; }

	.split { padding: 62px 10%; }
	.split__inner,
	.split--rechts .split__inner,
	.split--breit .split__inner { grid-template-columns: 1fr; gap: 50px; }
	.split--rechts .split__bild { order: 0; }
	.split--breit .split__inner { gap: 20px; }
	.split__bild { height: 360px; min-height: 0; }
	.band + .split { margin-top: 28px; }
	.band--gross + .split { margin-top: 0; }
	.split--breit { padding: 62px 10%; }
	.split--breit .split__text { padding: 16px; }
	.split__text > p { margin-bottom: 20px; }
	.split--breit .btn-reihe { flex-direction: column; align-items: center; }
	.preise { grid-template-columns: 1fr; }

	.rechtstext { padding: 62px 10%; }

	.footer__inner { grid-template-columns: 1fr; padding: calc(10% + 10px) calc(10% + 10px); }
	.footer__logo { width: 146px; }

	.kontakt { width: calc(100vw - 20px); padding: 60px 37px 50px; }
	.kontakt__wege { grid-template-columns: 1fr; }
	.formular { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* Startfokus in Dialogen (Überschrift/Menü) ohne sichtbaren Rahmen */
[tabindex="-1"]:focus { outline: none; }
