/* ---------------------------------------------------------------- */
/* Fonts (self-hosted, migrated from the old Joomla template)        */
/* ---------------------------------------------------------------- */

@font-face {
	font-family: 'Hind';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/hind-v16-latin-300.woff2') format('woff2'),
	     url('../fonts/hind-v16-latin-300.woff') format('woff'),
	     url('../fonts/hind-v16-latin-300.ttf') format('truetype');
}
@font-face {
	font-family: 'Hind';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/hind-v16-latin-regular.woff2') format('woff2'),
	     url('../fonts/hind-v16-latin-regular.woff') format('woff'),
	     url('../fonts/hind-v16-latin-regular.ttf') format('truetype');
}
@font-face {
	font-family: 'Hind';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/hind-v16-latin-500.woff2') format('woff2'),
	     url('../fonts/hind-v16-latin-500.woff') format('woff'),
	     url('../fonts/hind-v16-latin-500.ttf') format('truetype');
}
@font-face {
	font-family: 'Hind';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/hind-v16-latin-600.woff2') format('woff2'),
	     url('../fonts/hind-v16-latin-600.woff') format('woff'),
	     url('../fonts/hind-v16-latin-600.ttf') format('truetype');
}
@font-face {
	font-family: 'Hind';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/hind-v16-latin-700.woff2') format('woff2'),
	     url('../fonts/hind-v16-latin-700.woff') format('woff'),
	     url('../fonts/hind-v16-latin-700.ttf') format('truetype');
}

@font-face {
	font-family: 'Oswald';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/oswald-v49-latin-300.woff2') format('woff2'),
	     url('../fonts/oswald-v49-latin-300.woff') format('woff'),
	     url('../fonts/oswald-v49-latin-300.ttf') format('truetype');
}
@font-face {
	font-family: 'Oswald';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/oswald-v49-latin-regular.woff2') format('woff2'),
	     url('../fonts/oswald-v49-latin-regular.woff') format('woff'),
	     url('../fonts/oswald-v49-latin-regular.ttf') format('truetype');
}
@font-face {
	font-family: 'Oswald';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/oswald-v49-latin-700.woff2') format('woff2'),
	     url('../fonts/oswald-v49-latin-700.woff') format('woff'),
	     url('../fonts/oswald-v49-latin-700.ttf') format('truetype');
}

/* ---------------------------------------------------------------- */
/* Design tokens (colors migrated from the old Joomla template)      */
/* ---------------------------------------------------------------- */

:root {
	--font-body: 'Hind', sans-serif;
	--font-heading: 'Oswald', sans-serif;

	--color-text: #4b4a4d;
	--color-bg: #f3f3f3;
	--color-bg-alt: #ececec;
	--color-primary: #2767ae;
	--color-primary-dark: #005ba9;
	--color-accent: #d60005;
	--color-muted: #9baebd;
	--color-white: #fff;

	--content-width: 1140px;
}

/* ---------------------------------------------------------------- */
/* Reset                                                             */
/* ---------------------------------------------------------------- */

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

body, h1, h2, h3, h4, p, figure {
	margin: 0;
}

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

body {
	min-height: 100vh;
}

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

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

/* ---------------------------------------------------------------- */
/* Base typography                                                   */
/* ---------------------------------------------------------------- */

body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.75em;
}

h1 {
	font-size: 1.9rem;
	color: var(--color-primary);
	text-transform: uppercase;
}

h2 {
	font-size: 1.6rem;
	color: var(--color-primary-dark);
}

h3 {
	font-size: 1.1rem;
	color: var(--color-primary-dark);
}

h4 {
	font-size: 0.9rem;
	color: var(--color-muted);
	text-transform: uppercase;
}

p + p {
	margin-top: 1em;
}

a {
	text-decoration: none;
}

a:hover {
	color: var(--color-primary);
}

.content a:not(.button):not([href^="tel:"]),
.home-intro a:not(.button):not([href^="tel:"]),
.tile-content a:not(.button):not([href^="tel:"]) {
	text-decoration: underline;
}

/* ---------------------------------------------------------------- */
/* Layout shell                                                      */
/* ---------------------------------------------------------------- */

.content,
.home,
.main-menu__inner,
.notice-banner {
	max-width: var(--content-width);
	margin-inline: auto;
	padding-inline: 20px;
}

.content {
	padding-block: 40px;
}

/* Give headings room from whatever text precedes them within a content
   flow (e.g. the Datenschutz page's many consecutive sections), but not
   when a heading opens its own box (e.g. the first heading in .content
   itself, or in a nested .tile-text/.contact-details/.price-section). */
.content h1,
.content h2,
.content h3,
.content h4 {
	margin-top: 1.5em;
}

.content h1:first-child,
.content h2:first-child,
.content h3:first-child,
.content h4:first-child {
	margin-top: 0;
}

/* ---------------------------------------------------------------- */
/* Banner                                                             */
/* ---------------------------------------------------------------- */

.banner img {
	width: 100%;
	height: 40vh;
	object-fit: cover;
}

/* Homepage hero: fills the viewport above the fold (matches the old
   site's Galleria, which JS-sized the slider to window height minus the
   nav bar) and is stacked for the crossfade (per-keyframe timing is
   generated in the snippet, since it depends on the editable number of
   slides). */
.banner--slideshow {
	position: relative;
	height: 60vh;
}

.banner--slideshow img {
	position: absolute;
	inset: 0;
	height: 100%;
}

.page-header--hero {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.page-header--hero .banner-header {
	flex: 1;
	min-height: 0;
}

.page-header--hero .banner--slideshow {
	height: 100%;
}

@media (max-width: 991px) {
	.banner--slideshow {
		/* Beats .page-header--hero .banner--slideshow's higher specificity
		   above — same fix the old site's CSS used against its JS-set height. */
		height: 40vh !important;
	}

	.page-header--hero {
		display: block;
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.banner--slideshow img {
		animation: none !important;
		opacity: 0;
	}

	.banner--slideshow img:first-child {
		opacity: 1;
	}
}

/* ---------------------------------------------------------------- */
/* Main menu                                                          */
/* ---------------------------------------------------------------- */

.main-menu {
	background: var(--color-white);
	font-family: var(--font-heading);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
}

.main-menu__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.main-menu ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.main-menu li a {
	display: block;
	padding: 20px 15px;
}

.main-menu li.active a {
	color: var(--color-accent);
}

.main-menu__toggle summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	cursor: pointer;
	list-style: none;
}

.main-menu__toggle summary::-webkit-details-marker {
	display: none;
}

.main-menu__toggle summary::marker {
	content: '';
}

.main-menu__burger {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.main-menu__burger::before,
.main-menu__burger::after {
	content: '';
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	background: currentColor;
}

.main-menu__burger::before {
	top: -7px;
}

.main-menu__burger::after {
	top: 7px;
}

.main-menu__toggle {
	display: none;
}

@media (max-width: 800px) {
	.main-menu {
		position: relative;
	}

	.main-menu__toggle {
		display: block;
	}

	.main-menu__inner > .main-menu__list {
		display: none;
	}

	.main-menu__toggle[open] ~ .main-menu__list {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--color-white);
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	}

	.main-menu li a {
		padding: 15px 20px;
	}
}

.language-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.language-switch a {
	display: block;
	line-height: 0;
}

.language-switch img {
	display: block;
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
}

/* ---------------------------------------------------------------- */
/* Notice banner                                                      */
/* ---------------------------------------------------------------- */

.notice-banner {
	/* Explicit width (not just max-width) because this sits inside the
	   flex column of .page-header--hero on Home: auto cross-axis margins
	   on a flex item disable stretch, which would otherwise shrink this
	   to fit its text instead of filling the content width. */
	width: 100%;
	margin-block: 20px;
	padding-block: 12px;
	color: var(--notice-fg, var(--color-white));
	background: var(--notice-bg, var(--color-primary));
}

.notice-banner p {
	margin: 0;
}

.notice-banner p + p,
.notice-banner :is(h2, h3, h4) + p {
	margin-top: 0.5em;
}

/* The writer field's headings inherit the site-wide h1-h4 styles
   (fixed blue tones, h1/h4 uppercase) — override so they use the
   banner's own contrast-adjusted color instead. */
.notice-banner :is(h2, h3, h4) {
	margin: 0;
	color: inherit;
	text-transform: none;
}

.notice-banner :is(h2, h3, h4) + :is(h2, h3, h4) {
	margin-top: 0.3em;
}

.notice-banner a {
	color: inherit;
	text-decoration: underline;
}

.notice-banner a:hover {
	/* Not var(--color-accent): that's also one of the background color
	   presets, so a fixed hover color can end up identical to the
	   background. Fading the already-contrast-checked text color instead
	   works no matter what background is picked. */
	opacity: 0.7;
}

/* ---------------------------------------------------------------- */
/* Home                                                               */
/* ---------------------------------------------------------------- */

.home-intro {
	padding-block: 30px;
}

.info-box {
	background: var(--color-primary);
	color: var(--color-white);
	padding: 20px;
}

.info-box h2 {
	color: var(--color-white);
}

.info-box h3 {
	color: var(--color-white);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	margin-top: 1em;
}

.info-box a {
	color: var(--color-white);
}

.info-box a:hover {
	color: var(--color-accent);
}

/* ---------------------------------------------------------------- */
/* Tile grid (shared by Home and Service)                             */
/* ---------------------------------------------------------------- */

.tile-grid {
	display: flex;
	flex-direction: column;
}

.tile-row {
	display: grid;
}

.tile-row--triple {
	grid-template-columns: 1fr 1fr 1fr;
}

.tile-row--wide-left {
	grid-template-columns: 2fr 1fr;
}

.tile-row--wide-right {
	grid-template-columns: 1fr 2fr;
}

.tile-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tile-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 20px;
	background: var(--color-bg-alt);
}

.tile-text {
	margin-bottom: 20px;
}

.tile-content .button {
	margin-top: auto;
}

.tile-price {
	font-weight: 700;
	color: var(--color-primary-dark);
}

.tile-content--on-primary {
	background: var(--color-primary);
	color: var(--color-white);
}

.tile-content--on-primary h2 {
	color: var(--color-white);
}

.tile-content--on-primary .tile-price {
	color: var(--color-white);
}

.tile-content--on-primary a:hover {
	color: var(--color-accent);
}

.tile-content--on-primary .button {
	color: var(--color-primary);
	background: var(--color-white);
	border-color: var(--color-white);
}

.tile-content--on-primary .button:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-white);
}

@media (max-width: 700px) {
	.tile-grid {
		margin-inline: -20px;
	}

	.tile-row--triple,
	.tile-row--wide-left,
	.tile-row--wide-right {
		grid-template-columns: 1fr;
	}

	.tile-row--wide-right img {
		order: -1;
	}
}

/* ---------------------------------------------------------------- */
/* Price tables (Preise)                                              */
/* ---------------------------------------------------------------- */

.price-section {
	padding-block: 30px;
}

.price-table-wrap {
	overflow-x: auto;
}

.price-table {
	width: 100%;
	min-width: 500px;
	border-collapse: collapse;
}

.price-table th,
.price-table td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--color-bg-alt);
	text-align: right;
	white-space: nowrap;
}

.price-table th:first-child,
.price-table td:first-child {
	text-align: left;
	white-space: normal;
}

.price-table thead th {
	background: var(--color-primary);
	color: var(--color-white);
	font-weight: 400;
}

.course-widgets {
	margin-top: 1em;
}

.course-widgets div {
	padding: 10px 0;
	border-bottom: 1px solid var(--color-bg-alt);
}

/* ---------------------------------------------------------------- */
/* Contact (Kontakt)                                                  */
/* ---------------------------------------------------------------- */

.maps-embed {
	margin-top: 20px;
}

.maps-embed iframe {
	display: block;
	width: 100%;
	height: 600px;
	border: 0;
}

.contact-info {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 30px;
	align-items: start;
	padding-block: 30px;
}

.contact-info img {
	width: 100%;
	height: auto;
}

@media (max-width: 700px) {
	.contact-info {
		grid-template-columns: 1fr;
	}
}

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

.button {
	display: inline-block;
	margin-top: 20px;
	padding: 6px 15px;
	font-weight: 300;
	color: var(--color-white);
	background: var(--color-primary);
	border: 1px solid var(--color-primary);
}

.button:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-white);
}

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

.site-footer {
	margin-top: 40px;
	font-size: 0.9rem;
}

.footer-social {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: var(--content-width);
	margin-inline: auto;
	padding: 20px;
	background: var(--color-primary-dark);
}

.footer-main {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 40px;
	align-items: start;
	max-width: var(--content-width);
	margin-inline: auto;
	padding: 30px 20px;
}

.footer-logo img {
	width: 140px;
}

.footer-company {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--color-primary-dark);
	margin-bottom: 0.5em;
}

.footer-legal ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-credit {
	background: var(--color-bg-alt);
	text-align: center;
	padding: 10px 20px;
	color: var(--color-muted);
	font-size: 0.85rem;
}

.footer-credit-name {
	font-weight: 600;
}

a.footer-credit-name {
	text-decoration: underline;
}

a.footer-credit-name:hover {
	color: var(--color-primary);
}

@media (max-width: 700px) {
	.footer-main {
		grid-template-columns: 1fr;
	}
}
