/**
 * HADE Gruppe — Design (1:1 nach hade-gruppe.de, Stand 09/2026)
 *
 * Breakpoints wie bisher: Tablet 768–1024 px, Smartphone bis 767 px.
 */

:root {
	--hade-cyan: #00abdd;
	--hade-cyan-band: rgba(0, 171, 221, 0.81);
	--hade-text: #575757;
	--hade-body: #334155;
	--hade-ink: #1e293b;
	--hade-nav: #7a7a7a;
	--hade-white: #fff;
	--hade-font: 'Kanit', sans-serif;
	--hade-font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--hade-content: 1200px;

	/* Cookie-Banner an die Website anpassen */
	--kph-lime: var(--hade-cyan);
}

/* -------------------------------------------------------------------------
 * Basis
 * ---------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--hade-white);
	color: var(--hade-body);
	font-family: var(--hade-font-system);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.site-main {
	flex: 1 0 auto;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--hade-cyan);
	outline-offset: 2px;
}

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

.site-header {
	position: relative;
	z-index: 100;
	padding: 0 50px;
	background: var(--hade-white);
	border-bottom: 2px solid var(--hade-cyan);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	max-width: var(--hade-content);
	margin: 0 auto;
	padding: 25px 0;
}

.site-branding {
	flex: 0 0 30%;
	width: 30%;
	line-height: 0;
}

.site-branding .custom-logo-link {
	display: inline-block;
	width: 100%;
	max-width: 290px;
}

.site-branding .custom-logo {
	display: block;
	width: 100%;
	height: auto;
}

.site-title {
	font-family: var(--hade-font);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hade-cyan);
}

.site-header__nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu > li {
	position: relative;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	display: flex;
	align-items: center;
	padding: 13px 20px;
	font-family: var(--hade-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hade-nav);
	transition: color 0.3s, transform 0.3s;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a {
	color: var(--hade-cyan);
}

@media (min-width: 1025px) {
	.primary-menu a:hover {
		transform: scale(0.8);
	}
}

.kph-nav-toggle {
	color: #33373d;
}

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

.hade-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 40vh;
	background-color: var(--hade-white);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.hade-hero__band {
	margin-top: 450px;
	padding: 0 100px;
	background: var(--hade-cyan-band);
}

.hade-hero__inner {
	max-width: var(--hade-content);
	margin: 0 auto;
	padding: 100px 0;
}

.hade-hero__title {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	font-family: var(--hade-font);
	color: var(--hade-white);
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.3;
}

.hade-hero__line1,
.hade-hero__line2 {
	display: block;
	margin: -15px 0;
}

.hade-hero__line1 {
	font-size: 60px;
	font-weight: 300;
}

.hade-hero__line2 {
	font-size: 80px;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Text
 * ---------------------------------------------------------------------- */

.hade-text {
	padding: 0 100px;
}

.hade-text__inner {
	max-width: var(--hade-content);
	margin: 0 auto;
	padding: 100px 0;
}

.hade-text__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10px;
	font-family: var(--hade-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 26px;
	color: var(--hade-text);
}

.hade-text__content p {
	margin: 0 0 -20px;
	padding-bottom: 25.6px;
}

.hade-text__content strong,
.hade-text__content b {
	font-weight: 500;
}

/* -------------------------------------------------------------------------
 * Karten
 * ---------------------------------------------------------------------- */

.hade-karten {
	position: relative;
	padding: 100px;
	background-color: var(--hade-cyan);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.hade-karten::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hade-cyan);
	opacity: 0.5;
}

.hade-karten__grid {
	position: relative;
	display: flex;
	gap: 30px;
}

.hade-karte {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-width: 0;
	padding: 40px;
	background: var(--hade-white);
	border-radius: 30px;
	text-align: center;
}

.hade-karte__logo {
	line-height: 0;
}

.hade-karte__logo img {
	display: inline-block;
	width: 100%;
	height: 128px;
	object-fit: contain;
}

.hade-karte__titel {
	display: none;
	margin: 0;
	font-family: var(--hade-font);
	font-size: 40px;
	font-weight: 400;
	line-height: 50px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--hade-cyan);
}

.hade-karte__claim {
	margin: 0;
	font-family: var(--hade-font);
	font-size: 18px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--hade-text);
	-webkit-hyphens: auto;
	hyphens: auto;
}

.hade-button {
	display: inline-block;
	align-self: center;
	margin-top: auto;
	padding: 20px 30px;
	background: var(--hade-cyan);
	border-radius: 40px;
	font-family: var(--hade-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 20px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hade-white);
	transition: all 0.3s;
}

.hade-button:hover,
.hade-button:focus-visible,
.hade-button:visited {
	color: var(--hade-white);
}

.hade-button:focus-visible {
	outline: 2px solid var(--hade-body);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Standardseiten (Impressum, Datenschutz, Formular)
 * ---------------------------------------------------------------------- */

.kph-page {
	padding: 0 10px;
}

.kph-page__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 10px 0;
}

.kph-page__title {
	margin: 0;
	font-family: var(--hade-font);
	font-size: 50px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--hade-cyan);
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

.kph-page__content > :first-child {
	margin-top: 0;
}

.kph-page__content p {
	margin: 0 0 1.6em;
}

.kph-page__content h2,
.kph-page__content h3,
.kph-page__content h4,
.kph-page__content h5 {
	margin: 0 0 20px;
	font-weight: 600;
	color: var(--hade-ink);
}

.kph-page__content h2 {
	font-size: 28px;
	line-height: 1.3;
}

.kph-page__content h3 {
	font-size: 24px;
	line-height: 1.3;
}

.kph-page__content h4 {
	font-size: 20px;
	line-height: 1.2;
}

.kph-page__content ul,
.kph-page__content ol {
	margin: 16px 0;
	padding-left: 20px;
}

.kph-page__content a {
	color: inherit;
	text-decoration: underline;
}

.kph-page--notitle {
	padding: 0;
}

.kph-page--notitle .kph-page__inner {
	max-width: var(--hade-content);
	padding: 100px 0 0;
}

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

.site-footer {
	padding: 0 50px;
	background: var(--hade-cyan);
	color: var(--hade-white);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	max-width: var(--hade-content);
	margin: 0 auto;
	padding: 20px 0;
}

.site-footer__legal,
.site-footer__social {
	flex: 0 0 50%;
	width: 50%;
}

.site-footer__legal p {
	margin: 0;
	font-family: var(--hade-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 26px;
}

.site-footer__legal a {
	color: inherit;
	text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
	text-decoration: underline;
}

.site-footer__social {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
	min-height: 35px;
}

.hade-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background: var(--hade-cyan);
	color: var(--hade-white);
	transition: opacity 0.3s;
}

.hade-social svg {
	width: 35px;
	height: 35px;
}

.hade-social:hover {
	opacity: 0.9;
}

.site-footer :focus-visible {
	outline-color: var(--hade-white);
}

/* „Nach oben“ */
.hade-to-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 99;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 31.5px;
	height: 31.5px;
	border-radius: 2px;
	background: #046bd2;
	color: var(--hade-white);
	text-decoration: none;
}

.hade-to-top[hidden] {
	display: none;
}

/* -------------------------------------------------------------------------
 * Tablet (768–1024 px)
 * ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.site-header__inner {
		padding: 20px 0;
	}

	.site-branding {
		flex-basis: 60%;
		width: 60%;
	}

	.site-header__nav {
		justify-content: flex-end;
	}

	.site-header .site-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--hade-white);
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
	}

	.primary-menu {
		display: block;
	}

	.primary-menu a {
		justify-content: flex-start;
		padding: 15px 50px;
		color: #33373d;
	}

	.primary-menu a:hover,
	.primary-menu a:focus-visible {
		background: #3f444b;
		color: var(--hade-white);
	}

	.hade-hero__band {
		margin-top: 300px;
		padding: 0 50px;
	}

	.hade-hero__inner {
		padding: 50px 0;
	}

	.hade-hero__line1 {
		font-size: 50px;
	}

	.hade-hero__line2 {
		font-size: 70px;
	}

	.hade-text {
		padding: 0 50px;
	}

	.hade-text__inner {
		padding: 50px 0;
	}

	.site-footer {
		padding: 0 50px;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.hade-karten {
		padding: 60px 40px;
	}

	.hade-karten__grid {
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		align-content: center;
		gap: 15px;
	}

	.hade-karte {
		flex: 0 0 48%;
		width: 48%;
		min-height: 300px;
		justify-content: center;
		padding: 30px;
	}

	.hade-karte__logo {
		display: none;
	}

	.hade-karte__titel {
		display: block;
		font-size: 35px;
		line-height: 45px;
	}

	.hade-karte__button {
		margin-top: 0;
		padding: 15px 25px;
	}
}

/* -------------------------------------------------------------------------
 * Smartphone (bis 767 px)
 * ---------------------------------------------------------------------- */

@media (max-width: 767px) {
	.site-header {
		padding: 0 30px;
	}

	.site-header__inner {
		gap: 0;
	}

	.site-branding {
		flex-basis: 70%;
		width: 70%;
	}

	.site-header__nav {
		flex-basis: 30%;
		width: 30%;
	}

	.primary-menu a {
		padding: 15px 30px;
	}

	.hade-hero__band {
		margin-top: 250px;
		padding: 0 30px;
	}

	.hade-hero__inner {
		padding: 50px 0;
	}

	.hade-hero__line1,
	.hade-hero__line2 {
		margin: 0;
	}

	.hade-hero__line1 {
		font-size: 25px;
	}

	.hade-hero__line2 {
		font-size: 40px;
	}

	.hade-text {
		padding: 0 30px;
	}

	.hade-text__inner {
		padding: 30px 0;
	}

	.hade-karten {
		padding: 30px;
	}

	.hade-karten__grid {
		flex-direction: column;
		gap: 15px;
	}

	.hade-karte {
		padding: 30px;
	}

	.kph-page__title {
		font-size: 34px;
	}

	.kph-page--notitle .kph-page__inner {
		padding: 100px 20px 0;
	}

	.site-footer {
		padding: 0 30px;
	}

	.site-footer__inner {
		flex-direction: column;
		padding: 30px 0;
	}

	.site-footer__legal,
	.site-footer__social {
		flex-basis: auto;
		width: 100%;
		text-align: center;
	}

	.site-footer__social {
		justify-content: center;
		margin-top: 10px;
	}

	.hade-to-top {
		right: 20px;
		bottom: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.primary-menu a,
	.hade-button {
		transition: none;
	}

	.primary-menu a:hover {
		transform: none;
	}
}
