/*
Theme Name: Notfalltraining A-Z
Theme URI: https://notfalltraining-a-z.de
Author: Notfalltraining A-Z GbR
Description: Individuelles One-Page-Theme für Notfalltraining A-Z – Erste-Hilfe- und Notfalltrainings für Pflege, Kindergärten/Schulen und Sportvereine.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: notfalltraining-az
*/

/* Selbst gehostete Google Fonts (kein externer Request, kein Cookie-Hinweis nötig) */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/inter-400-600-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: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/inter-400-600-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: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/poppins-600-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: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/poppins-600-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: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/poppins-700-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: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/poppins-700-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: "Poppins";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/poppins-800-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: "Poppins";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/poppins-800-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;
}

:root {
	/* Feste Markenfarben - in beiden Modi identisch */
	--color-navy: #14294f;
	--color-navy-light: #1f3a6e;
	--color-red: #a4283a;
	--color-gold: #e8a13c;
	--color-teal: #1f6f6b;
	--color-white: #ffffff;

	/* Heller Modus: semantische Farben, die der Dunkelmodus überschreibt */
	color-scheme: light;

	--surface: #ffffff;
	--surface-alt: #f4f6f9;
	--border: #e5e8ef;
	--border-soft: #eef0f4;
	--text: #26313f;
	--text-muted: #5a6472;
	--text-faint: #8b95a5;
	--heading: #14294f;
	--bullet: #c3cad6;
	--link: #14294f;
	--focus: #14294f;

	--header-bg: rgba(255, 255, 255, 0.92);
	--footer-bg: #1f3a6e;

	--chip-hover-bg: #14294f;
	--chip-hover-fg: #ffffff;

	--hint-bg: #fff4e6;
	--hint-border: #e8a13c;
	--hint-text: #6b4a12;

	/* Mobiler Hero-Textblock (steht unter dem Foto, nicht darauf) */
	--hero-box-bg: #f4f6f9;
	--hero-box-heading: #14294f;
	--hero-box-text: #46515f;

	--shadow-sm: 0 2px 8px rgba(20, 41, 79, 0.05);
	--shadow-md: 0 4px 14px rgba(20, 41, 79, 0.08);
	--shadow-lg: 0 16px 32px rgba(20, 41, 79, 0.16);
	--shadow-tiles: 0 16px 40px rgba(20, 41, 79, 0.28);

	/* Rückwärtskompatibel: alter Name zeigt auf die neue Fläche */
	--color-bg: var(--surface-alt);
}

/* Dunkelmodus – tiefes Navy statt reinem Schwarz, passend zur Marke.
   WICHTIG: Das gilt zunaechst per echter CSS-Media-Query (System-Einstellung),
   nicht nur ueber das per JS gesetzte data-theme-Attribut. Nur so erkennt
   Android/Chrome, dass die Seite selbst einen Dark Mode anbietet, und
   verzichtet auf sein eigenes "Force Dark" (das sonst zusaetzlich die
   helle Seite nachtraeglich verfaelscht statt unser Design zu nutzen). */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;

		--surface: #0e1728;
		--surface-alt: #16233a;
		--border: #2a3a56;
		--border-soft: #22304a;
		--text: #dde5f2;
		--text-muted: #9fadc2;
		--text-faint: #8493ab;
		--heading: #f0f5fd;
		--bullet: #4d5f7f;
		--link: #8fb4f0;
		--focus: #8fb4f0;

		--header-bg: rgba(14, 23, 40, 0.92);
		--footer-bg: #16233a;

		--chip-hover-bg: #2f4d84;
		--chip-hover-fg: #ffffff;

		--hint-bg: #3a2f18;
		--hint-border: #b98a35;
		--hint-text: #f2ddb4;

		--hero-box-bg: #0c1830;
		--hero-box-heading: #ffffff;
		--hero-box-text: #e3e9f4;

		--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
		--shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
		--shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.55);
		--shadow-tiles: 0 16px 40px rgba(0, 0, 0, 0.55);
	}
}

/* Manuelle Wahl per Knopf ueberstimmt die System-Einstellung */
:root[data-theme="dark"] {
	color-scheme: dark;

	--surface: #0e1728;
	--surface-alt: #16233a;
	--border: #2a3a56;
	--border-soft: #22304a;
	--text: #dde5f2;
	--text-muted: #9fadc2;
	--text-faint: #8493ab;
	--heading: #f0f5fd;
	--bullet: #4d5f7f;
	--link: #8fb4f0;
	--focus: #8fb4f0;

	--header-bg: rgba(14, 23, 40, 0.92);
	--footer-bg: #16233a;

	--chip-hover-bg: #2f4d84;
	--chip-hover-fg: #ffffff;

	--hint-bg: #3a2f18;
	--hint-border: #b98a35;
	--hint-text: #f2ddb4;

	--hero-box-bg: #0c1830;
	--hero-box-heading: #ffffff;
	--hero-box-text: #e3e9f4;

	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
	--shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
	--shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.55);
	--shadow-tiles: 0 16px 40px rgba(0, 0, 0, 0.55);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
	color: var(--text);
	background: var(--surface);
	line-height: 1.6;
	transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3 {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Site header */
.site-header {
	background: var(--header-bg);
	backdrop-filter: saturate(180%) blur(10px);
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-header .logo {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	min-width: 0;
}

.site-header .logo img {
	height: 60px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

.logo-slogan {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.25;
	color: var(--heading);
	padding-left: 14px;
	border-left: 2px solid var(--border);
	white-space: normal;
}

.ig-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--heading);
	text-decoration: none;
	flex-shrink: 0;
	transition: color 0.15s ease, transform 0.15s ease;
}

.ig-link:hover {
	color: var(--color-red);
}

/* Kontakt-Icons im Header */
.header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.site-header .header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: none;
	cursor: pointer;
	color: var(--heading);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.site-header .header-icon:hover {
	background: var(--surface-alt);
	color: var(--color-red);
}

/* Umschalter hell/dunkel: passendes Symbol je Modus einblenden */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.theme-toggle:hover {
	color: var(--color-gold);
}

.site-header .header-icon .ic {
	width: 21px;
	height: 21px;
}

/* Hero */
.hero {
	position: relative;
	background: var(--color-navy);
	color: var(--color-white);
	overflow: hidden;
}

.hero .hero-photo {
	width: 100%;
	/* Hoehe/Ausschnitt so gewaehlt, dass oben der Kopf nicht angeschnitten
	   wird und unten der Bart noch ueber dem Text frei bleibt. */
	height: 770px;
	object-fit: cover;
	object-position: center 27%;
	opacity: 1;
}

/* Text sitzt unten: der Verlauf dunkelt nur den unteren Bereich ab,
   damit die Gesichter im oberen Teil des Fotos frei bleiben. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
		rgba(20, 41, 79, 0.28) 0%,
		rgba(20, 41, 79, 0.08) 30%,
		rgba(15, 30, 58, 0.58) 55%,
		rgba(12, 24, 48, 0.93) 85%,
		rgba(12, 24, 48, 0.97) 100%);
}

.hero-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	/* unten Platz lassen fuer die ueberlappenden Kachel-Buttons */
	padding: 0 24px 80px;
}

.hero-content .inner {
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

/* Textspalte bleibt schmal, damit die Zeilen gut lesbar bleiben */
.hero-content .inner > * {
	max-width: 620px;
}

.hero h1 {
	font-weight: 800;
	font-size: clamp(28px, 3.4vw, 40px);
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.18;
	text-shadow: 0 2px 18px rgba(8, 16, 32, 0.45);
}

.hero p {
	font-size: 16.5px;
	line-height: 1.6;
	color: #e3e9f4;
	text-shadow: 0 1px 12px rgba(8, 16, 32, 0.4);
}

/* Scroll-Hinweis: mittig auf Hoehe des Fliesstextes, rechts neben den Textzeilen */
.hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 76px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--color-white);
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	background: rgba(12, 24, 48, 0.28);
	z-index: 4;
	animation: nfaz-scroll-bounce 2s ease-in-out infinite;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-scroll:hover {
	border-color: var(--color-white);
	background: rgba(12, 24, 48, 0.55);
}

.hero-scroll svg {
	width: 22px;
	height: 22px;
}

@keyframes nfaz-scroll-bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50%      { transform: translate(-50%, 7px); }
}

@media (prefers-reduced-motion: reduce) {
	.hero-scroll {
		animation: none;
	}
}

.btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 30px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
	background: var(--color-red);
	color: var(--color-white);
	box-shadow: 0 6px 16px rgba(164, 40, 58, 0.4);
}

.btn-primary:hover {
	box-shadow: 0 10px 22px rgba(164, 40, 58, 0.5);
}

/* Quick-link tiles, overlapping the hero like a floating panel */
.quick-links {
	position: relative;
	margin-top: -60px;
	z-index: 5;
}

.quick-link-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow-tiles);
}

.quick-link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 30px 16px;
	text-decoration: none;
	color: var(--color-white);
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.quick-link:first-child {
	border-left: none;
}

.quick-link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.16);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.quick-link:hover::after {
	opacity: 1;
}

.quick-link > span {
	position: relative;
	z-index: 1;
}

.quick-link .icon .ic {
	width: 32px;
	height: 32px;
	transition: transform 0.15s ease;
}

.quick-link:hover .icon .ic {
	transform: scale(1.08);
}

.quick-link.navy { background: var(--color-navy); }
.quick-link.gold { background: var(--color-gold); }
.quick-link.red { background: var(--color-red); }
.quick-link.teal { background: var(--color-teal); }

/* "Auf einen Blick" – vollwertiger Abschnitt, redaktionelles Raster ohne Icons */
.usp-bar {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 72px 0;
}

.usp-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

.usp-item {
	padding: 4px 28px;
	border-left: 1px solid var(--border);
}

.usp-item:first-child {
	padding-left: 0;
	border-left: none;
}

.usp-item:last-child {
	padding-right: 0;
}

.usp-rule {
	display: block;
	width: 34px;
	height: 3px;
	border-radius: 2px;
	margin-bottom: 18px;
}

.usp-rule.red  { background: var(--color-red); }
.usp-rule.gold { background: var(--color-gold); }
.usp-rule.teal { background: var(--color-teal); }
.usp-rule.navy { background: var(--color-navy); }

.usp-label {
	display: block;
	margin-bottom: 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--text-faint);
}

.usp-text {
	margin: 0;
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--heading);
}

/* Section title */
.section-title {
	text-align: center;
	color: var(--heading);
	text-transform: uppercase;
	font-size: 22px;
	letter-spacing: 0.5px;
	margin: 0 0 30px;
}

/* Course cards */
.courses {
	background: var(--surface-alt);
	padding: 72px 0;
}

.course-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.course-card {
	display: flex;
	flex-direction: column;
	padding-right: 28px;
	border-right: 1px solid var(--border);
}

.course-card:last-child {
	padding-right: 0;
	border-right: none;
}

.course-card img {
	height: 190px;
	width: 100%;
	object-fit: cover;
	border-radius: 14px;
	margin-bottom: 22px;
}

/* Automatisch durchblendende Fotoserie (aktuell: Pflege-Karte) */
.course-slideshow {
	position: relative;
	height: 190px;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 22px;
	background: var(--surface-alt);
}

.course-slideshow img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
	opacity: 0;
	transition: opacity 1.1s ease;
}

.course-slideshow img.is-active {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.course-slideshow img {
		transition: none;
	}
}

.course-title {
	margin: 0 0 14px;
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--heading);
}

.course-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
	color: var(--text-muted);
	flex-grow: 1;
}

.course-card ul li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 7px;
}

.course-card ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bullet);
}

/* Über uns – erzählender Abschnitt, bewusst schmaler als das Kursraster.
   Heller Grund und Trennlinie setzen ihn deutlich vom grauen Kursbereich ab;
   dadurch wechseln die Abschnitte durchgehend hell/grau. */
.about {
	position: relative;
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding: 76px 0 72px;
}

/* Kurzer Akzentstrich mittig auf der Trennlinie als optischer Übergang */
.about::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 50%;
	transform: translateX(-50%);
	width: 64px;
	height: 3px;
	border-radius: 2px;
	background: var(--color-gold);
}

.about .container {
	max-width: 780px;
}

.about-heading {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	color: var(--heading);
	line-height: 1.25;
	margin: 10px 0 22px;
}

.about-lead {
	font-size: 18px;
	line-height: 1.65;
	color: var(--text);
	margin: 0 0 22px;
}

/* Der Kernsatz wird durch Linie und Farbe herausgehoben, nicht durch Größe */
.about-highlight {
	margin: 0 0 22px;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--color-red);
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--heading);
}

.about p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-muted);
	margin: 0 0 18px;
}

.about p:last-child {
	margin-bottom: 0;
}

/* Stärken: früher der eigene Bereich „Warum wir“, jetzt Teil von Über uns */
.about-points {
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--border);
}

.about-points h3 {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--heading);
	margin: 0 0 16px;
}

.about-points ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* Als Kacheln statt loser Punkte: gleich hohe Zeilen, auch wenn ein
   Punkt zweizeilig umbricht. */
.about-points li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-alt);
	font-size: 15px;
	line-height: 1.45;
	color: var(--text);
}

.about-points li::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--color-teal);
	/* Häkchen als Maske, damit es sich mit der Farbe mitfärbt */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.2 5.4 12l-1.4 1.4 5.6 5.6L20.4 8.2 19 6.8z'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
		linear-gradient(#000, #000);
	-webkit-mask-composite: xor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.2 5.4 12l-1.4 1.4 5.6 5.6L20.4 8.2 19 6.8z'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
		linear-gradient(#000, #000);
	mask-composite: exclude;
}

/* Bildhinweis (z. B. KI-Kennzeichnung) liegt IM Bild statt darunter -
   so verschiebt er das Kartenlayout nicht und bleibt trotzdem lesbar. */
.course-media {
	position: relative;
	margin-bottom: 22px;
}

.course-media img,
.course-media .course-slideshow {
	margin-bottom: 0;
}

.image-note {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 2;
	padding: 4px 9px;
	border-radius: 6px;
	background: rgba(12, 24, 48, 0.72);
	color: rgba(255, 255, 255, 0.92);
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.2px;
	backdrop-filter: blur(2px);
}

/* Kontaktbereich als eigener Abschnitt.
   Grauer Grund, damit sich der helle Über-uns-Bereich davor absetzt. */
.contact-band {
	background: var(--surface-alt);
	border-top: 1px solid var(--border);
	padding: 68px 0 72px;
}

.contact-band h2 {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 700;
	color: var(--heading);
	margin: 10px 0 10px;
}

.contact-band-intro {
	margin: 0 0 30px;
	font-size: 16px;
	color: var(--text-muted);
}

/* Personen: zwei gleichwertige Spalten, bewusst ohne Kästen.
   Getrennt nur durch eine feine Linie - dieselbe Sprache wie im
   ehemaligen "Warum wir"-Bereich. */
.contact-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	padding-top: 30px;
	border-top: 1px solid var(--border);
}

.contact-card {
	display: flex;
	flex-direction: column;
}

.contact-cards > .contact-card + .contact-card {
	padding-left: 48px;
	border-left: 1px solid var(--border);
}

.contact-card-name {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--heading);
	line-height: 1.3;
}

.contact-card-role {
	margin-top: 5px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text-muted);
}

/* margin-top:auto haelt die Nummern auf einer Linie, auch wenn eine
   Funktionsbezeichnung zweizeilig umbricht. */
.contact-card-action {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 9px;
	margin-top: auto;
	padding-top: 16px;
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--heading);
	text-decoration: none;
	transition: color 0.15s ease;
}

.contact-card-action .ic {
	width: 18px;
	height: 18px;
	color: var(--color-red);
	flex: 0 0 auto;
}

.contact-card-action:hover {
	color: var(--color-red);
}

/* E-Mail: gleiche Bauart wie die Telefonzeilen - gleiche Funktion,
   gleiches Aussehen. Nur das Symbol ist petrol statt rot. */
.contact-mail {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.contact-mail-link {
	margin-top: 0;
	padding-top: 0;
	word-break: break-word;
}

.contact-mail-link .ic {
	color: var(--color-teal);
}

.contact-mail-link:hover {
	color: var(--color-teal);
}

/* Kontaktpersonen (Kontaktseite) */
.contact-person {
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--border-soft);
}

.contact-person:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.contact-person strong {
	display: block;
	color: var(--heading);
	font-size: 15px;
	margin-bottom: 1px;
}

.contact-person a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	padding: 9px 18px;
	border-radius: 30px;
	background: var(--surface-alt);
	border: 1.5px solid transparent;
	color: var(--heading) !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.contact-person a .ic {
	width: 14px;
	height: 14px;
}

.contact-person a:hover {
	background: var(--chip-hover-bg);
	border-color: var(--chip-hover-bg);
	color: var(--chip-hover-fg) !important;
}

/* Kontaktformular (Contact Form 7) */
.contact-form-wrap {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border-soft);
}

.contact-form-wrap .wpcf7-form-control-wrap {
	display: block;
}

.cf7-row {
	margin-bottom: 14px;
}

.cf7-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--heading);
	margin-bottom: 6px;
}

.cf7-row input[type="text"],
.cf7-row input[type="email"],
.cf7-row input[type="tel"],
.cf7-row textarea {
	width: 100%;
	font: inherit;
	font-size: 14px;
	padding: 11px 14px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	background: var(--surface-alt);
	color: var(--text);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.cf7-row textarea {
	min-height: 110px;
	resize: vertical;
}

.cf7-row input:focus,
.cf7-row textarea:focus {
	outline: none;
	border-color: var(--focus);
	background: var(--surface);
}

.cf7-submit-row {
	margin-bottom: 0;
}

.contact-form-wrap input.wpcf7-submit {
	display: inline-block;
	padding: 13px 30px;
	border: none;
	border-radius: 30px;
	background: var(--color-red);
	color: var(--color-white);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.5px;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(164, 40, 58, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form-wrap input.wpcf7-submit:hover {
	box-shadow: 0 10px 22px rgba(164, 40, 58, 0.45);
}

.contact-form-wrap .wpcf7-spinner {
	margin-left: 12px;
}

.contact-form-wrap .wpcf7-not-valid-tip {
	color: var(--color-red);
	font-size: 12px;
	margin-top: 4px;
}

.contact-form-wrap .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 13px;
	border: 1.5px solid var(--border);
}

/* Abschluss-Leiste */
.cta-bar {
	background: var(--color-navy);
	color: var(--color-white);
	padding: 30px 0;
}

.cta-bar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.cta-bar .container > div {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.cta-bar a.button {
	display: inline-block;
	flex: 0 0 auto;
	padding: 13px 30px;
	border-radius: 30px;
	background: var(--color-red);
	color: var(--color-white);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(164, 40, 58, 0.35);
	transition: box-shadow 0.15s ease;
}

.cta-bar a.button:hover {
	box-shadow: 0 10px 22px rgba(164, 40, 58, 0.45);
}

/* Kontaktseite */
.page-hero {
	background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
	color: var(--color-white);
	padding: 64px 0 56px;
	text-align: center;
}

.page-hero .usp-rule {
	margin-left: auto;
	margin-right: auto;
}

.page-hero .usp-label {
	color: #b9c6e0;
}

.page-hero h1 {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 700;
	margin: 10px 0 12px;
}

.page-hero p {
	max-width: 520px;
	margin: 0 auto;
	color: #dfe6f2;
}

.contact-page {
	background: var(--surface-alt);
	padding: 72px 0;
}

.contact-page-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 56px;
	align-items: start;
}

.contact-form-panel,
.contact-direct-panel {
	background: var(--surface);
	border-radius: 18px;
	box-shadow: var(--shadow-md);
	padding: 36px 32px;
}

.contact-form-panel h2,
.contact-direct-panel h2 {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 19px;
	font-weight: 600;
	color: var(--heading);
	margin: 0 0 24px;
}

.contact-page .contact-form-wrap {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.contact-direct-panel .contact-person:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.contact-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border-soft);
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--text-muted);
}

.contact-note .ic {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--color-teal);
}

/* Rechtstexte (Impressum, Datenschutz, ...) */
.legal-page {
	padding: 48px 0 72px;
}

.legal-page .back-link {
	display: inline-block;
	margin-bottom: 28px;
	color: var(--heading);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.legal-page .back-link:hover {
	color: var(--color-red);
}

.legal-page h1 {
	color: var(--heading);
	text-transform: uppercase;
	font-size: 28px;
	letter-spacing: 0.3px;
	margin: 0 0 8px;
}

.legal-content {
	max-width: 760px;
}

.legal-content .legal-hint {
	background: var(--hint-bg);
	border: 1.5px solid var(--hint-border);
	border-radius: 10px;
	padding: 16px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hint-text);
	margin: 24px 0 32px;
}

.legal-content h2 {
	color: var(--heading);
	font-size: 19px;
	margin: 34px 0 12px;
}

.legal-content h2:first-of-type {
	margin-top: 0;
}

.legal-content p,
.legal-content li {
	font-size: 15px;
	color: var(--text);
}

.legal-content ul {
	padding-left: 20px;
}

.legal-content a {
	color: var(--link);
	font-weight: 600;
}

/* Footer */
.site-footer {
	background: var(--footer-bg);
	color: var(--color-white);
	padding: 44px 0 30px;
}

.footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.site-footer .brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer-logo {
	height: 56px;
	width: auto;
}

.brand-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.brand-name {
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 0.2px;
}

.site-footer .tagline {
	font-style: italic;
	font-size: 13px;
	opacity: 0.75;
}

.site-footer .ig-link {
	color: var(--color-white);
	font-weight: 600;
	font-size: 14px;
}

.site-footer .ig-link:hover {
	color: var(--color-gold);
}

.footer-ig svg {
	color: var(--color-gold);
	transition: color 0.15s ease, transform 0.2s ease;
}

.footer-ig:hover svg {
	color: var(--color-white);
	transform: scale(1.12);
}

.footer-legal {
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	justify-content: center;
}

.footer-legal-menu {
	list-style: none;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.footer-legal-menu li {
	display: flex;
	align-items: center;
}

.footer-legal-menu li:not(:last-child)::after {
	content: "•";
	margin: 0 16px;
	opacity: 0.35;
}

.footer-legal-menu a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2px;
	transition: color 0.15s ease;
}

.footer-legal-menu a:hover {
	color: var(--color-gold);
}

/* Agentur-Hinweis ganz unten */
.footer-credit {
	display: flex;
	justify-content: center;
	padding-top: 18px;
	margin-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.momente-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: rgba(255, 255, 255, 0.62);
	text-decoration: none;
	font-size: 12.5px;
	letter-spacing: 0.2px;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.momente-link img {
	height: 20px;
	width: auto;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.momente-link:hover {
	color: var(--color-white);
}

.momente-link:hover img {
	opacity: 1;
}

/* ==========================================================================
   Mobile (eigenständig gestaltet, nicht 1:1 vom Desktop abgeleitet)
   Farben, Schriften und Markenwerte bleiben identisch zum Desktop.
   ========================================================================== */

@media (max-width: 782px) {

	/* --- Grundrhythmus etwas kompakter für Mobile --- */
	.section-title {
		font-size: 19px;
		margin-bottom: 22px;
	}

	/* --- Header --- */
	.site-header .logo img {
		height: 42px;
	}

	.logo-slogan {
		display: none;
	}

	.site-header .container {
		gap: 12px;
	}

	.header-actions {
		gap: 2px;
	}

	.site-header .header-icon {
		width: 36px;
		height: 36px;
	}

	.site-header .header-icon .ic {
		width: 19px;
		height: 19px;
	}

	/* --- Hero ---
	   Mobil steht der Text UNTER dem Foto statt darauf. Sonst muesste das Foto
	   hoch genug sein, um Platz fuer den Text zu lassen - und wird dann seitlich
	   so stark beschnitten, dass die Gesichter angeschnitten sind. */
	.hero .hero-photo {
		height: 320px;
		object-position: center 30%;
	}

	.hero::before {
		display: none;
	}

	.hero-content {
		position: static;
		padding: 26px 20px 55px;
		/* Eigene Flaeche: im Dunkelmodus dunkler als --color-navy, sonst wuerde
		   der Block mit der navyfarbenen Kachel darunter verschmelzen. */
		background: var(--hero-box-bg);
	}

	.hero h1 {
		font-size: clamp(26px, 7.5vw, 34px);
		color: var(--hero-box-heading);
		text-shadow: none;
	}

	.hero p {
		font-size: 15px;
		color: var(--hero-box-text);
		text-shadow: none;
	}

	/* Mobil fehlt zwischen Text und Kacheln der Platz - dort wird ohnehin gewischt */
	.hero-scroll {
		display: none;
	}

	.hero-content .inner > * {
		max-width: 100%;
	}

	/* --- Quick-Links: horizontales Swipe-Karussell statt starrem Grid --- */
	.quick-links {
		margin-top: -30px;
	}

	.quick-link-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		border-radius: 0;
		overflow: visible;
		box-shadow: none;
	}

	.quick-link {
		border-left: none;
		border-radius: 16px;
		padding: 26px 14px;
		box-shadow: 0 10px 24px rgba(20, 41, 79, 0.2);
	}

	.quick-link:first-child {
		border-left: none;
	}

	/* --- "Auf einen Blick": gestapelt mit waagerechten Trennlinien --- */
	.usp-bar {
		padding: 40px 0;
	}

	.usp-grid {
		grid-template-columns: 1fr;
	}

	.usp-item {
		padding: 22px 0;
		border-left: none;
		border-top: 1px solid var(--border);
	}

	.usp-item:first-child {
		padding-top: 0;
		border-top: none;
	}

	.usp-item:last-child {
		padding-bottom: 0;
	}

	.usp-rule {
		margin-bottom: 14px;
	}

	.usp-text {
		font-size: 16px;
	}

	/* --- Kurse: gestapelt mit waagerechten Trennlinien --- */
	.courses {
		padding: 40px 0;
	}

	.course-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.course-card {
		padding: 28px 0;
		border-right: none;
		border-top: 1px solid var(--border);
	}

	.course-card:first-child {
		padding-top: 0;
		border-top: none;
	}

	.course-card:last-child {
		padding-bottom: 0;
	}

	.course-card img,
	.course-slideshow {
		height: 200px;
		margin-bottom: 18px;
	}

	.course-title {
		font-size: 17px;
	}

	/* --- Über uns --- */
	.about {
		padding: 42px 0;
	}

	.about-heading {
		font-size: 23px;
		margin: 8px 0 18px;
	}

	.about-lead {
		font-size: 16.5px;
	}

	.about-highlight {
		font-size: 17px;
		padding-left: 16px;
	}

	.about p {
		font-size: 15.5px;
	}

	/* Stärken mobil untereinander statt zweispaltig */
	.about-points ul {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.about-points {
		margin-top: 26px;
		padding-top: 22px;
	}

	.about-points li {
		padding: 12px 14px;
		font-size: 14.5px;
	}

	.about {
		padding: 46px 0 42px;
	}

	/* Kontakt mobil: untereinander, Trennlinie waagerecht statt senkrecht */
	.contact-band {
		padding: 42px 0 46px;
	}

	.contact-band-intro {
		margin-bottom: 24px;
		font-size: 15px;
	}

	.contact-cards {
		grid-template-columns: 1fr;
		gap: 0;
		padding-top: 24px;
	}

	.contact-cards > .contact-card + .contact-card {
		margin-top: 24px;
		padding-top: 24px;
		padding-left: 0;
		border-left: none;
		border-top: 1px solid var(--border);
	}

	.contact-card-action {
		padding-top: 12px;
		font-size: 16.5px;
	}

	.contact-mail {
		margin-top: 24px;
		padding-top: 20px;
	}

	/* --- Warum + Kontakt: gestapelt --- */
	.why-contact {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 40px 20px;
	}

	.why-contact > div:last-child {
		padding-left: 0;
		padding-top: 32px;
		margin-top: 32px;
		border-left: none;
		border-top: 1px solid var(--border);
	}

	.why-contact h2 {
		font-size: 19px;
	}

	/* --- CTA-Leiste --- */
	.cta-bar .container {
		flex-direction: column;
		text-align: center;
		gap: 14px;
	}

	.cta-bar a.button {
		width: 100%;
	}

	/* --- Footer --- */
	.footer-top {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}

	.brand-text {
		align-items: center;
	}
}

@media (max-width: 480px) {
	.hero h1 {
		font-size: clamp(24px, 8vw, 30px);
	}

	.quick-link {
		flex-basis: 72%;
		padding: 22px 14px;
		font-size: 13px;
	}

	.quick-link .icon .ic {
		width: 28px;
		height: 28px;
	}
}

/* ==========================================================================
   Kontaktseite mobil - das Desktop-Raster (1.3fr/1fr + 56px Spalte) wuerde
   sonst zwei ~150px schmale Spalten erzeugen.
   ========================================================================== */

@media (max-width: 782px) {

	.page-hero {
		padding: 40px 0 34px;
	}

	.page-hero h1 {
		font-size: clamp(25px, 7vw, 30px);
		margin: 8px 0 10px;
	}

	.page-hero p {
		font-size: 15px;
	}

	.contact-page {
		padding: 30px 0 44px;
	}

	/* Untereinander statt nebeneinander */
	.contact-page-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.contact-form-panel,
	.contact-direct-panel {
		padding: 24px 18px;
		border-radius: 14px;
	}

	.contact-form-panel h2,
	.contact-direct-panel h2 {
		font-size: 17px;
		margin-bottom: 18px;
	}

	/* Telefon/E-Mail als volle Zeilen - bequemere Tippflaeche am Daumen.
	   word-break, damit die lange E-Mail-Adresse umbricht statt zu ueberlaufen. */
	.contact-person a {
		display: flex;
		width: 100%;
		justify-content: center;
		text-align: center;
		word-break: break-word;
		margin-top: 12px;
		padding: 12px 14px;
	}

	/* 16px verhindert, dass iOS Safari beim Antippen ins Feld zoomt */
	.cf7-row input[type="text"],
	.cf7-row input[type="email"],
	.cf7-row input[type="tel"],
	.cf7-row textarea {
		font-size: 16px;
		padding: 12px 14px;
	}

	.cf7-row textarea {
		min-height: 130px;
	}

	.contact-form-wrap input.wpcf7-submit {
		width: 100%;
		padding: 15px 20px;
	}

	.contact-note {
		font-size: 13px;
		margin-top: 20px;
		padding-top: 18px;
	}

	/* Agentur-Hinweis */
	.momente-link {
		font-size: 12px;
	}
}
