@charset 'UTF-8';

/* Theme der Naturheilpraxis Sandra Freund – baut auf Bootstrap 5.3 auf
 * (css/vendor/bootstrap.min.css). Bootstrap wird nicht neu kompiliert,
 * stattdessen werden die Farben über die CSS-Variablen überschrieben. */

/* FONTS
 * Source Sans Pro liegt lokal im Theme (kein Google-Fonts-Request).
-------------------------------------------- */
@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('font/source-sans-pro-v13-latin-ext_latin-300.woff2') format('woff2'),
	     url('font/source-sans-pro-v13-latin-ext_latin-300.woff') format('woff');
}
@font-face {
	font-family: 'Source Sans Pro';
	font-style: italic;
	font-weight: 300;
	font-display: swap;
	src: url('font/source-sans-pro-v13-latin-ext_latin-300italic.woff2') format('woff2'),
	     url('font/source-sans-pro-v13-latin-ext_latin-300italic.woff') format('woff');
}
@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('font/source-sans-pro-v13-latin-ext_latin-regular.woff2') format('woff2'),
	     url('font/source-sans-pro-v13-latin-ext_latin-regular.woff') format('woff');
}
@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('font/source-sans-pro-v13-latin-ext_latin-700.woff2') format('woff2'),
	     url('font/source-sans-pro-v13-latin-ext_latin-700.woff') format('woff');
}
@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('font/source-sans-pro-v13-latin-ext_latin-900.woff2') format('woff2'),
	     url('font/source-sans-pro-v13-latin-ext_latin-900.woff') format('woff');
}

/* FARBEN & BOOTSTRAP-VARIABLEN
-------------------------------------------- */
:root {
	--nhp-magenta: #d11b80;
	--nhp-magenta-dark: #a8156a;
	--nhp-magenta-soft: #fbeef5;
	--nhp-hover-soft: #f5eef2;
	--nhp-green: #86b83a;
	--nhp-green-soft: #f1f7e8;
	--nhp-ink: #2b2530;
	--nhp-muted: #6b6470;
	--nhp-bg: #faf7f5;
	--nhp-line: #ece6e9;
	--nhp-footer: #2a2230;
	--nhp-radius: 1rem;
	--nhp-shadow: 0 10px 30px rgba(43, 37, 48, 0.07);

	--bs-primary: var(--nhp-magenta);
	--bs-primary-rgb: 209, 27, 128;
	--bs-body-font-family: 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--bs-body-font-size: 1.125rem;
	--bs-body-line-height: 1.7;
	--bs-body-color: var(--nhp-ink);
	--bs-body-bg: var(--nhp-bg);
	--bs-link-color: var(--nhp-magenta);
	--bs-link-color-rgb: 209, 27, 128;
	--bs-link-hover-color: var(--nhp-magenta-dark);
	--bs-link-hover-color-rgb: 168, 21, 106;
	--bs-border-color: var(--nhp-line);
	--bs-focus-ring-color: rgba(209, 27, 128, 0.25);
}

.btn-primary {
	--bs-btn-bg: var(--nhp-magenta);
	--bs-btn-border-color: var(--nhp-magenta);
	--bs-btn-hover-bg: var(--nhp-magenta-dark);
	--bs-btn-hover-border-color: var(--nhp-magenta-dark);
	--bs-btn-active-bg: #8f1259;
	--bs-btn-active-border-color: #8f1259;
	--bs-btn-disabled-bg: var(--nhp-magenta);
	--bs-btn-disabled-border-color: var(--nhp-magenta);
	--bs-btn-focus-shadow-rgb: 209, 27, 128;
	font-weight: 700;
}

.btn-outline-primary {
	--bs-btn-color: var(--nhp-magenta);
	--bs-btn-border-color: var(--nhp-magenta);
	--bs-btn-hover-bg: var(--nhp-magenta);
	--bs-btn-hover-border-color: var(--nhp-magenta);
	--bs-btn-active-bg: var(--nhp-magenta-dark);
	--bs-btn-active-border-color: var(--nhp-magenta-dark);
	--bs-btn-focus-shadow-rgb: 209, 27, 128;
	font-weight: 700;
}

.btn-light,
.btn-outline-light {
	font-weight: 700;
}

/* GRUNDLAGEN
-------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	color: var(--nhp-ink);
	font-weight: 700;
	line-height: 1.25;
}

::selection {
	background: var(--nhp-magenta-soft);
}

.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 2000;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	background: #fff;
	box-shadow: var(--nhp-shadow);
}

.eyebrow {
	margin-bottom: 0.75rem;
	color: var(--nhp-green);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.section-title {
	margin-bottom: 2rem;
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

/* KOPFZEILE
-------------------------------------------- */
.site-header {
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--nhp-line);
}

.site-header .navbar {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

.brand-logo {
	width: auto;
	height: 50px;
}

.brand-text {
	color: var(--nhp-magenta);
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.1;
	white-space: normal;
}

.site-header .nav-link {
	position: relative;
	padding: 0.6rem 0.8rem !important;
	white-space: nowrap;
	color: var(--nhp-ink);
	font-size: 1.05rem;
	/* Only 400/700 are loaded; 600 would resolve to 700 anyway */
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.3;
}

/* Hover/focus: magenta + short line; active: dark magenta + full line */
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
	color: var(--nhp-magenta);
}

.site-header .nav-link.active {
	color: var(--nhp-magenta-dark);
}

.navbar-toggler {
	border: 0;
}

.navbar-toggler:focus {
	box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
}

/* Visible keyboard focus for all interactive elements */
a:focus-visible,
.btn:focus-visible,
.navbar-toggler:focus-visible,
.subnav-link:focus-visible,
.service-card:focus-visible {
	outline: 3px solid var(--nhp-magenta-dark);
	outline-offset: 3px;
	border-radius: 0.4rem;
	box-shadow: none;
}

.btn:focus-visible {
	border-radius: 50rem;
}

/* Bootstrap sets .nav-link:focus-visible / .page-link:focus (0,2,0) with
   outline: 0 and a pale box-shadow. Match or beat that specificity here. */
.site-header .nav-link:focus-visible,
.pagination .page-link:focus-visible {
	outline: 3px solid var(--nhp-magenta-dark);
	outline-offset: 2px;
	border-radius: 0.4rem;
	box-shadow: none;
}

.pagination .page-link:focus {
	box-shadow: none;
}

@media (min-width: 992px) {
	/* Underline indicator, always present, scaled per state */
	.site-header .nav-link::after {
		content: '';
		position: absolute;
		right: 0.8rem;
		bottom: 0;
		left: 0.8rem;
		height: 3px;
		border-radius: 3px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.2s ease;
	}

	.site-header .nav-link:hover::after,
	.site-header .nav-link:focus-visible::after {
		transform: scaleX(0.6);
	}

	.site-header .nav-link.active::after {
		transform: scaleX(1);
	}

	.nav-item-cta {
		display: flex;
		align-items: center;
		margin-left: 1rem;
	}

	.brand-text {
		max-width: 9.5rem;
		font-size: 1.15rem;
	}

	/* Compact sizing so the menu fits one line at 992px */
	.site-header .nav-link {
		padding: 0.6rem 0.55rem !important;
		font-size: 1rem;
	}

	.site-header .nav-link::after {
		right: 0.55rem;
		left: 0.55rem;
	}
}

/* Below xxl there is no room for the CTA in the menu; header shows the compact "Termin" button */
@media (min-width: 992px) and (max-width: 1399.98px) {
	.nav-item-cta {
		display: none;
	}
}

@media (min-width: 1400px) {
	.brand-text {
		max-width: 11rem;
		font-size: 1.35rem;
	}

	.site-header .nav-link {
		padding: 0.6rem 0.8rem !important;
		font-size: 1.05rem;
	}

	.site-header .nav-link::after {
		right: 0.8rem;
		left: 0.8rem;
	}
}

@media (max-width: 991.98px) {
	.navbar-collapse {
		padding: 0.5rem 0 1rem;
	}

	.site-header .nav-link {
		padding: 0.65rem 0 !important;
		border-bottom: 1px solid var(--nhp-line);
	}

	.nav-item-cta {
		margin-top: 1rem;
	}

	/* Touch target of at least 44px in the collapsed menu */
	.nav-item-cta .btn {
		padding-block: 0.6rem;
		font-size: 1rem;
		line-height: 1.5;
	}
}

@media (max-width: 575.98px) {
	.brand-logo {
		height: 40px;
	}

	.brand-text {
		font-size: 1.1rem;
	}
}

/* STARTSEITE
-------------------------------------------- */
.home-hero {
	padding: clamp(2rem, 5vw, 4.5rem) 0;
	background:
		radial-gradient(circle at 85% 10%, var(--nhp-magenta-soft) 0, transparent 45%),
		radial-gradient(circle at 5% 90%, var(--nhp-green-soft) 0, transparent 40%),
		#fff;
	border-bottom: 1px solid var(--nhp-line);
}

.home-title {
	margin-bottom: 1rem;
	font-size: clamp(2rem, 4.2vw, 3.2rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.home-lead {
	color: var(--nhp-muted);
	font-size: 1.3rem;
}

.home-hero-image {
	position: relative;
	margin: 0;
}

.home-hero-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.5rem;
	box-shadow: 0 25px 50px rgba(43, 37, 48, 0.15);
}

/* Dezenter Akzent in der Logofarbe hinter dem Foto */
.home-hero-image::before {
	content: '';
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	z-index: -1;
	border-radius: 1.5rem;
	background: var(--nhp-green-soft);
}

.home-hero .container {
	position: relative;
	z-index: 0;
}

@media (max-width: 991.98px) {
	.home-hero-image::before {
		display: none;
	}
}

.service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--nhp-line);
	border-radius: var(--nhp-radius);
	background: #fff;
	box-shadow: var(--nhp-shadow);
	color: var(--nhp-ink);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(43, 37, 48, 0.12);
	color: var(--nhp-ink);
}

.service-card-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 600 / 340;
	object-fit: cover;
}

.service-card-image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--nhp-magenta-soft), var(--nhp-green-soft));
}

.service-card-image--placeholder img {
	width: 110px;
	height: auto;
	opacity: 0.85;
}

.service-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
	border-top: 4px solid var(--nhp-magenta);
}

.service-card-title {
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
	font-weight: 700;
}

.service-card-text {
	margin-bottom: 1rem;
	color: var(--nhp-muted);
	font-size: 1rem;
	line-height: 1.6;
}

.service-card-more {
	margin-top: auto;
	color: var(--nhp-magenta);
	font-weight: 700;
}

.info-card {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--nhp-radius);
	background: #fff;
	box-shadow: var(--nhp-shadow);
}

.info-card h3 {
	margin-bottom: 1rem;
	font-size: 1.45rem;
}

.info-card p {
	color: var(--nhp-muted);
}

.location-list > div {
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--nhp-green);
	border-radius: 0.5rem;
	background: var(--nhp-green-soft);
	font-size: 1rem;
	line-height: 1.6;
}

.cta-band {
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	background: linear-gradient(120deg, var(--nhp-magenta) 0%, #b0176f 100%);
	color: #fff;
}

.cta-band .cta-title {
	margin-bottom: 0.5rem;
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band .btn-light {
	color: var(--nhp-magenta);
}

/* UNTERSEITEN
-------------------------------------------- */
.page-hero {
	padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
	background:
		radial-gradient(circle at 90% 0%, var(--nhp-magenta-soft) 0, transparent 40%),
		#fff;
	border-bottom: 1px solid var(--nhp-line);
}

.page-title {
	max-width: 52rem;
	margin: 0;
	font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

.page-byline {
	max-width: 52rem;
	margin: 0.75rem 0 0;
	color: var(--nhp-muted);
	font-size: 1.25rem;
}

.page-hero .breadcrumb {
	--bs-breadcrumb-divider-color: var(--nhp-muted);
	--bs-breadcrumb-item-active-color: var(--nhp-muted);
	margin-bottom: 0.75rem;
	font-size: 0.95rem;
}

.page-hero .breadcrumb a {
	text-decoration: none;
}

.page-section {
	padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.content-card {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: var(--nhp-radius);
	background: #fff;
	box-shadow: var(--nhp-shadow);
}

/* Floats aus dem Editor (img.right etc.) nicht aus der Karte laufen lassen */
.content-card::after {
	content: '';
	display: table;
	clear: both;
}

.featured-image {
	margin: calc(clamp(1.5rem, 4vw, 3rem) * -1) calc(clamp(1.5rem, 4vw, 3rem) * -1) 2rem;
}

.featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--nhp-radius) var(--nhp-radius) 0 0;
}

.subnav-card {
	position: sticky;
	top: 6rem;
	padding: 1.5rem;
	border-radius: var(--nhp-radius);
	background: #fff;
	box-shadow: var(--nhp-shadow);
}

.subnav-title {
	margin-bottom: 1rem;
	color: var(--nhp-muted);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.subnav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.subnav-nested {
	margin-left: 1rem;
}

.subnav-link {
	display: block;
	margin-bottom: 0.25rem;
	padding: 0.55rem 0.9rem;
	border-radius: 0.6rem;
	color: var(--nhp-ink);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.subnav-link:hover {
	background: var(--nhp-hover-soft);
	color: var(--nhp-magenta);
}

.subnav-link.active {
	background: var(--nhp-magenta-soft);
	box-shadow: inset 3px 0 0 var(--nhp-magenta);
	color: var(--nhp-magenta-dark);
}

@media (max-width: 991.98px) {
	.subnav-card {
		position: static;
	}
}

/* GALERIE
-------------------------------------------- */
.gallery-item {
	display: block;
	overflow: hidden;
	border: 1px solid var(--nhp-line);
	border-radius: 0.75rem;
	background: #fff;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.04);
}

/* TYPOGRAFIE (Inhalte aus dem CMS-Editor)
-------------------------------------------- */
.typography > *:first-child,
.typography .legal-content > *:first-child {
	margin-top: 0;
}

.typography h1 { font-size: clamp(1.75rem, 3vw, 2.3rem); margin: 0 0 1.25rem; }
.typography h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 2.25rem 0 1rem; }
.typography h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.typography h4 { font-size: 1.15rem; margin: 1.75rem 0 0.75rem; }

.typography p,
.typography ul,
.typography ol {
	margin-bottom: 1.25rem;
}

.typography ul li::marker {
	color: var(--nhp-magenta);
}

.typography blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--nhp-magenta);
	border-radius: 0 0.75rem 0.75rem 0;
	background: var(--nhp-magenta-soft);
	font-style: italic;
}

.typography table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
}

.typography th,
.typography td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--nhp-line);
	text-align: left;
	vertical-align: top;
}

.typography img {
	max-width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

.typography img.left,
.typography video.left {
	float: left;
	max-width: 50%;
	margin: 0.35rem 1.75rem 1rem 0;
}

.typography img.right,
.typography video.right {
	float: right;
	max-width: 50%;
	margin: 0.35rem 0 1rem 1.75rem;
}

.typography img.leftAlone {
	display: block;
	margin: 0 0 1rem;
}

.typography img.center,
.typography video.center {
	display: block;
	margin: 0 auto 1rem;
	clear: both;
}

.typography video {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 1rem;
	border-radius: 0.75rem;
}

.typography .captionImage {
	max-width: 100%;
	margin-bottom: 1.25rem;
}

.typography .captionImage img {
	margin: 0;
	width: 100%;
}

.typography .captionImage.left {
	float: left;
	margin: 0.35rem 1.75rem 1rem 0;
}

.typography .captionImage.right {
	float: right;
	margin: 0.35rem 0 1rem 1.75rem;
}

.typography .captionImage.left[style],
.typography .captionImage.right[style] {
	max-width: 50%;
}

.typography .captionImage.center {
	margin: 0 auto 1.25rem;
}

.typography .captionImage p {
	clear: both;
	margin: 0.4rem 0 0;
	color: var(--nhp-muted);
	font-size: 0.95rem;
	font-style: italic;
}

@media (max-width: 575.98px) {
	.typography img.left,
	.typography img.right,
	.typography video.left,
	.typography video.right,
	.typography .captionImage.left,
	.typography .captionImage.right,
	.typography .captionImage.left[style],
	.typography .captionImage.right[style] {
		float: none;
		max-width: 100%;
		margin: 0 0 1.25rem;
	}

	/* Editor may add inline width/margins; keep captioned images flush left, full width */
	.typography .captionImage[style] {
		width: auto !important;
		max-width: 100% !important;
		margin-inline: 0 !important;
	}
}

/* Altlasten aus dem Skel-Template, die noch im CMS-Inhalt stecken */
.byline {
	display: block;
	color: var(--nhp-muted);
	font-size: 1.15rem;
}

ul.list {
	padding-left: 1.5rem;
	list-style: disc;
}

.YouTube {
	position: relative;
	height: 0;
	margin-bottom: 1.5rem;
	padding-bottom: 56.25%;
	overflow: hidden;
	border-radius: 0.75rem;
}

.YouTube iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

/* FORMULARE
 * SilverStripe gibt extraClass sowohl am Feld als auch am Holder aus, daher
 * bekommen die Eingabefelder das Aussehen von .form-control per Selektor
 * statt per Klasse (siehe FormField_holder.ss).
-------------------------------------------- */
.field .middleColumn input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.field .middleColumn select,
.field .middleColumn textarea {
	display: block;
	width: 100%;
	padding: 0.7rem 1rem;
	border: 1px solid #ddd5da;
	border-radius: 0.75rem;
	background-color: #fff;
	color: var(--nhp-ink);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	-webkit-appearance: none;
	appearance: none;
}

.field .middleColumn input:focus,
.field .middleColumn select:focus,
.field .middleColumn textarea:focus {
	border-color: var(--nhp-magenta);
	outline: 0;
	box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.field .middleColumn textarea {
	min-height: 12rem;
}

.field.holder-required .middleColumn input,
.field.holder-validation .middleColumn input,
.field.holder-required .middleColumn textarea,
.field.holder-validation .middleColumn textarea {
	border-color: #d52349;
}

.form-label {
	font-weight: 700;
}

/* Checkbox im Stil von .form-check-input */
.form-check {
	padding-left: 2rem;
}

.form-check input[type="checkbox"] {
	float: left;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.2rem 0 0 -2rem;
	border: 2px solid #c8bec4;
	border-radius: 0.35rem;
	background: #fff no-repeat center / 0.85rem;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.form-check input[type="checkbox"]:checked {
	border-color: var(--nhp-magenta);
	background-color: var(--nhp-magenta);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
}

.form-check input[type="checkbox"]:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.form-check-label {
	color: var(--nhp-muted);
	font-size: 1rem;
	line-height: 1.55;
	cursor: pointer;
}

/* Feldbezogene Fehlermeldungen (Pflichtfeld, Turnstile) */
.field .message {
	clear: both;
	margin-top: 0.35rem;
	color: #d52349;
	font-size: 0.95rem;
}

.field .message.good {
	color: #3b8a3e;
}

/* Pflichtfeld-Stern aus FormField_holder.ss / CheckboxField_holder.ss */
form label .required,
form .required-note .required {
	color: var(--nhp-magenta);
	font-weight: 700;
}

/* Legende zum Pflichtfeld-Stern (LiteralField in ContactPage.php) */
form .required-note {
	margin: 0 0 1rem;
	color: var(--nhp-muted);
	font-size: 0.95rem;
}

form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.cf-turnstile {
	margin-bottom: 1rem;
}

/* Overlay mit der Statusmeldung nach dem Absenden (ContactPageForm.ss).
 * Liegt fest ueber der ganzen Seite, damit die Meldung nicht im Text
 * untergeht - geschlossen wird per Button, Hintergrundklick oder Esc. */
.form-overlay {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(43, 37, 48, 0.6);
	animation: form-overlay-fade 0.2s ease-out;
}

/* Seite hinter dem Overlay nicht mitscrollen lassen */
body.has-form-overlay {
	overflow: hidden;
}

.form-overlay .form-overlay-box {
	width: 100%;
	max-width: 30rem;
	padding: 2rem;
	border-top: 5px solid var(--nhp-magenta);
	border-radius: var(--nhp-radius);
	background: #fff;
	color: var(--nhp-ink);
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-overlay .form-overlay-box.good {
	border-top-color: #4caf50;
}

.form-overlay .form-overlay-box.error,
.form-overlay .form-overlay-box.bad {
	border-top-color: #d52349;
}

.form-overlay .message {
	margin: 0 0 1.5rem;
	color: var(--nhp-ink);
	font-size: 1.15rem;
	line-height: 1.5;
}

@keyframes form-overlay-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Consent-Sperre vor dem Kontaktformular (ContactPageForm.ss).
 * Ausgangszustand ist gesperrt: Das Formular liegt abgeblendet hinter
 * dem Hinweis, turnstile-consent.js setzt .consent-granted, sobald
 * Turnstile im CCM19-Banner freigegeben ist. */
.form-consent {
	position: relative;
}

[data-consent-gate] form {
	opacity: 0.35;
	filter: blur(2px);
	user-select: none;
}

[data-consent-gate] .form-consent-notice {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 1.5rem 0;
}

[data-consent-gate] .form-consent-box {
	width: 100%;
	max-width: 30rem;
	padding: 1.75rem;
	border-top: 5px solid var(--nhp-magenta);
	border-radius: var(--nhp-radius);
	background: #fff;
	color: var(--nhp-ink);
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

[data-consent-gate] .form-consent-box p {
	margin: 0 0 1.25rem;
	line-height: 1.5;
}

/* Freigegeben: Overlay weg, Formular wieder normal. */
[data-consent-gate].consent-granted form {
	opacity: 1;
	filter: none;
	user-select: auto;
}

[data-consent-gate].consent-granted .form-consent-notice {
	display: none;
}

/* FUSSZEILE
-------------------------------------------- */
.site-footer {
	padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
	background: var(--nhp-footer);
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.02rem;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	color: #f39bcb;
}

.footer-heading {
	margin-bottom: 1.25rem;
	color: #fff;
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li + li {
	margin-top: 0.5rem;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.72);
}

.footer-links a[aria-current="page"] {
	color: #fff;
}

.footer-locations {
	margin-bottom: 1.25rem;
	line-height: 1.55;
}

.footer-locations strong {
	color: #fff;
}

.footer-contact {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.footer-contact li + li {
	margin-top: 0.35rem;
}

.footer-contact-label {
	display: inline-block;
	min-width: 4.5rem;
	color: rgba(255, 255, 255, 0.5);
}

.footer-social {
	display: flex;
	gap: 0.6rem;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	transition: background-color 0.15s ease;
}

.footer-social a:hover {
	background: var(--nhp-magenta);
	color: #fff;
}

.footer-social svg {
	width: 1.2rem;
	height: 1.2rem;
	fill: currentColor;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.92rem;
}

.footer-bottom a {
	color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
	.site-header .nav-link::after,
	.service-card,
	.gallery-item img,
	.form-overlay {
		transition: none;
		animation: none;
	}

	.service-card:hover,
	.gallery-item:hover img {
		transform: none;
	}
}
