/* ==========================================================================
   Dr. Schön Global – Design-System der statischen Webseite
   Basis: Corporate Design Dr. Schön Finance GmbH (verbindlich)
   Flächen:  NUR #013E5D / #1171B6 (Blau, inkl. Verlauf) und #E3E3E1 (Grau)
   Text:     #013E5D auf Grau · #E3E3E1 auf Blau
   Schrift:  Corporate E Pro Demi (Headlines) · Corporate S Pro (Fließtext)
   ========================================================================== */

/* ---------- Schriften ---------- */
@font-face {
	font-family: "Corporate E Pro Demi";
	src: url("../wp-content/uploads/2022/12/CorporateEPro-Demi.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Corporate E Pro Demi";
	src: url("../wp-content/uploads/2022/12/CorporateEPro-DemiItalic.woff") format("woff");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Corporate S";
	src: url("fonts/CorporateSPro-Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Corporate S";
	src: url("../wp-content/uploads/2022/12/CorporateS-Demi.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Corporate S";
	src: url("../wp-content/uploads/2022/12/CorporateS-DemiItalic.woff") format("woff");
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

/* ---------- Design-Tokens (CI-Werte) ---------- */
:root {
	--blau-1: #013e5d;
	--blau-2: #1171b6;
	--verlauf: linear-gradient(120deg, var(--blau-2), var(--blau-1));
	/* EIN Linien-Verlauf für alle Deko-Linien: dunkleres → helleres Blau */
	--linie: linear-gradient(90deg, var(--blau-2), #6ab1e2);
	--grau: #e3e3e1;
	--text-blau: #013e5d;
	--text-blau-soft: rgba(1, 62, 93, 0.82);
	--hell: #e3e3e1;
	--hell-soft: rgba(227, 227, 225, 0.88);

	--serif: "Corporate E Pro Demi", Georgia, serif;
	--sans: "Corporate S", "Segoe UI", Arial, sans-serif;

	--radius: 10px;
	--radius-klein: 6px;
	--schatten: 0 14px 40px rgba(1, 30, 45, 0.18);
	--schatten-soft: 0 6px 22px rgba(1, 30, 45, 0.12);

	--breite: 1140px;
	--breite-schmal: 800px;
	--abschnitt-y: clamp(4rem, 9vw, 6.5rem);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text-blau);
	background: var(--grau);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 400;
	color: var(--blau-1);
	line-height: 1.22;
	margin: 0 0 1rem;
	overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--blau-2);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover { color: var(--blau-1); }

strong { font-weight: 600; }

.container {
	max-width: var(--breite);
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container.schmal { max-width: var(--breite-schmal); }

/* ---------- Abschnitts-System ---------- */
.abschnitt {
	padding: var(--abschnitt-y) 0;
	scroll-margin-top: 84px;
	background: var(--grau);
}

.abschnitt-blau {
	background: var(--blau-1);
	color: var(--hell-soft);
}

.abschnitt-blau h1,
.abschnitt-blau h2,
.abschnitt-blau h3 {
	color: var(--hell);
}

/* Dezente Trennlinie zwischen aufeinanderfolgenden blauen Abschnitten */
.abschnitt-blau + .abschnitt-blau {
	position: relative;
}

.abschnitt-blau + .abschnitt-blau::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(50%, 560px);
	height: 2px;
	background: var(--linie);
}

/* Zweiter Block innerhalb einer geteilten Sektion („Treffen Sie uns") */
.kontakt-block {
	margin-top: var(--abschnitt-y);
	scroll-margin-top: 84px;
}

/* Abschnitts-Kopf: Überschrift + Verlaufslinie + Intro */
.abschnitt-kopf {
	text-align: center;
	max-width: 780px;
	margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
}

.abschnitt-kopf h2 { margin-bottom: 1rem; }

.abschnitt-kopf h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: var(--linie);
	margin: 0.9rem auto 0;
}

.abschnitt-blau .abschnitt-kopf h2::after {
	background: var(--linie);
}

.abschnitt-kopf .intro {
	font-size: 1.15rem;
	color: var(--text-blau-soft);
	margin: 0;
}

.abschnitt-blau .abschnitt-kopf .intro { color: var(--hell-soft); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: var(--verlauf);
	padding: 0.95em 2.3em;
	border-radius: var(--radius-klein);
	box-shadow: 0 6px 18px rgba(1, 30, 45, 0.3);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(1, 30, 45, 0.4);
	filter: brightness(1.08);
}

/* ---------- Kopfbereich (CI-Grau statt Weiß) ---------- */
.kopf {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(227, 227, 225, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(1, 62, 93, 0.14);
}

.kopf-innen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 72px;
}

.kopf-logo img {
	height: 60px;
	width: auto;
}

.kopf-nav {
	display: flex;
	align-items: center;
	gap: clamp(1.1rem, 3vw, 2.2rem);
}

.kopf-nav a {
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--blau-1);
	padding: 0.35em 0;
	border-bottom: 2px solid transparent;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.kopf-nav a:hover {
	color: var(--blau-2);
	border-bottom-color: var(--blau-2);
}

.kopf-nav a.nav-cta {
	color: #fff;
	background: var(--verlauf);
	padding: 0.6em 1.4em;
	border-radius: var(--radius-klein);
	border-bottom: none;
}

.kopf-nav a.nav-cta:hover {
	filter: brightness(1.08);
	color: #fff;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(88vh, 780px);
	background: var(--blau-1);
	color: var(--hell-soft);
	overflow: hidden;
}

.hero-bild {
	position: absolute;
	inset: 0;
	background: url("../wp-content/uploads/2022/12/AdobeStock_487164117-scaled.jpeg") center 30% / cover no-repeat;
}

.hero-bild::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg,
		rgba(1, 47, 71, 0.96) 0%,
		rgba(1, 55, 84, 0.86) 42%,
		rgba(1, 62, 93, 0.42) 100%);
}

.hero .container {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: clamp(4rem, 9vw, 6rem);
	padding-bottom: clamp(4rem, 9vw, 6rem);
}

.hero-untertitel {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	letter-spacing: 0.02em;
	color: var(--hell-soft);
	margin-bottom: 1.25rem;
	max-width: 34ch;
}

.hero-titel {
	color: var(--hell);
	max-width: 18ch;
	margin-bottom: 2.25rem;
	text-wrap: balance;
}

.hero-titel .betont {
	display: block;
	background: linear-gradient(100deg, #6ab1e2, #d6e9f7);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #d6e9f7;
}

/* ---------- Text-Bild-Abschnitte (auf Blau) ---------- */
.text-bild .container {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.text-bild.bild-rechts .tb-bild { order: 2; }

.tb-bild img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.tb-text h2 { margin-bottom: 0.9rem; }

.tb-text h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: var(--linie);
	margin-top: 0.9rem;
}

.tb-text .intro {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--hell);
	margin-bottom: 1.1rem;
}

.tb-text p { color: var(--hell-soft); }

.zitat {
	margin: 1.75rem 0 0;
	padding-left: 1.25rem;
	border-left: 3px solid;
	border-image: var(--linie) 1;
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1.2rem, 2.2vw, 1.5rem);
	color: var(--hell);
}

/* ---------- Karten-System ---------- */
.karten-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

.karte {
	position: relative;
	background: var(--grau);
	border-radius: var(--radius);
	box-shadow: var(--schatten-soft);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	overflow: hidden;
}

.karte::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--linie);
}

.karte h3 { margin-bottom: 0.75rem; }

.karte p {
	color: var(--text-blau-soft);
	font-size: 1rem;
}

/* Karten auf blauen Abschnitten: getönte Flächen statt Grau */
.abschnitt-blau .karte {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(227, 227, 225, 0.35);
	box-shadow: none;
}

.abschnitt-blau .karte::before {
	background: var(--linie);
}

.abschnitt-blau .karte h3 { color: var(--hell); }
.abschnitt-blau .karte p { color: var(--hell-soft); }

/* Schritt-Nummern */
.schritt-nummer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.1rem;
	border-radius: 50%;
	background: var(--verlauf);
	color: #fff;
	font-family: var(--serif);
	font-size: 1.35rem;
	box-shadow: 0 6px 16px rgba(1, 62, 93, 0.28);
}

/* ---------- Referenzen (Kundenstimmen mit überstehendem Porträt) ---------- */
.kundenstimmen-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(1.25rem, 3vw, 2rem);
	row-gap: 4.25rem;
	align-items: start;
	max-width: 1000px;
	margin: 3.25rem auto 0;
}

.karte.kundenstimme {
	background: var(--blau-1);
	border: 1px solid rgba(227, 227, 225, 0.35);
	margin: 0;
	overflow: visible;
	padding-top: 4.25rem;
}

.karte.kundenstimme::before { display: none; }

.kundenstimme-foto {
	position: absolute;
	top: -44px;
	left: 50%;
	transform: translateX(-50%);
	width: 92px;
	height: 92px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 8px 22px rgba(1, 30, 45, 0.35);
}

.kundenstimme blockquote {
	margin: 0;
	color: var(--hell-soft);
	font-size: 1.04rem;
	line-height: 1.7;
}

.kundenstimme figcaption {
	margin-top: 1.25rem;
	text-align: center;
	font-family: var(--serif);
	font-size: 1rem;
	color: #8fc1e3;
}

/* ---------- Ansprechpartner ---------- */
.profil {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.profil-bild img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.profil-name {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	color: var(--hell);
	margin: 0 0 0.2rem;
}

.profil-rolle {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8fc1e3;
	margin: 0 0 1.4rem;
}

.profil-text p { color: var(--hell-soft); }

/* ---------- Standorte ---------- */
.standorte-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.25rem);
	max-width: 940px;
	margin: 0 auto;
}

.standort { padding: 0; }

.standort .karte-bild {
	position: relative;
	margin: 0;
}

.standort .karte-bild img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
}

.standort .karte-bild figcaption {
	position: absolute;
	right: 0.6rem;
	bottom: 0.4rem;
	font-size: 0.7rem;
}

.standort .karte-bild figcaption a {
	color: rgba(1, 62, 93, 0.7);
	background: rgba(227, 227, 225, 0.8);
	padding: 0.1em 0.5em;
	border-radius: 3px;
	text-decoration: none;
}

.standort-adresse {
	padding: 1.4rem clamp(1.25rem, 3vw, 1.9rem) 1.6rem;
}

.standort-adresse p {
	margin: 0;
	color: var(--text-blau-soft);
}

.standort-adresse p strong { color: var(--blau-1); }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.textseite {
	padding: var(--abschnitt-y) 0;
	background: var(--grau);
}

.textseite h1 {
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	margin-bottom: 0.5rem;
}

.textseite h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: var(--linie);
	margin-top: 0.9rem;
}

.textseite h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	margin-top: 2.5rem;
}

.textseite h3 { margin-top: 2rem; }

.textseite p,
.textseite li {
	color: var(--text-blau-soft);
	overflow-wrap: break-word;
}

.textseite a { word-break: break-word; }

.textseite ul {
	padding-left: 1.25rem;
	margin: 0 0 1.1rem;
}

.textseite li { margin-bottom: 0.5rem; }

/* ---------- Fußbereich ---------- */
.fuss {
	background: var(--blau-1);
	color: var(--hell-soft);
	text-align: center;
	padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.fuss-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 1.5rem;
}

.fuss-nav a {
	color: var(--hell);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
}

.fuss-nav a:hover { color: #8fc1e3; }

.fuss-hinweis {
	font-size: 0.88rem;
	color: rgba(227, 227, 225, 0.75);
	max-width: 620px;
	margin: 0 auto 0.9rem;
}

.fuss-copyright {
	font-size: 0.88rem;
	color: rgba(227, 227, 225, 0.75);
	margin: 0;
}

/* ==========================================================================
   Tablet (bis 980px)
   ========================================================================== */
@media (max-width: 980px) {
	.karten-grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 560px;
		margin: 0 auto;
	}

	.kundenstimmen-grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 640px;
	}

	.text-bild .container {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.text-bild.bild-rechts .tb-bild { order: 0; }

	.tb-bild { max-width: 620px; }

	.profil {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.profil-bild { max-width: 420px; }
}

/* ==========================================================================
   Smartphone (bis 640px)
   ========================================================================== */
@media (max-width: 640px) {
	body { font-size: 1rem; }

	.kopf-nav a:not(.nav-cta) { display: none; }

	.kopf-logo img { height: 46px; }

	.kopf-innen { min-height: 64px; }

	.hero {
		min-height: min(78vh, 640px);
		text-align: center;
	}

	.hero-untertitel,
	.hero-titel {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-bild { background-position: 68% 25%; }

	.hero-bild::after {
		background: linear-gradient(180deg,
			rgba(1, 47, 71, 0.94) 0%,
			rgba(1, 55, 84, 0.82) 55%,
			rgba(1, 62, 93, 0.55) 100%);
	}

	h1, h2, h3, p { hyphens: auto; }

	.standorte-grid { grid-template-columns: minmax(0, 1fr); }

	.kundenstimme blockquote { font-size: 1rem; }

	.kundenstimme-foto {
		width: 80px;
		height: 80px;
		top: -38px;
	}

	.karte.kundenstimme { padding-top: 3.5rem; }

	.abschnitt { scroll-margin-top: 66px; }
}
