/*
 * Shared area-page design system.
 *
 * Scoped under .ks-area-page from the approved drafts
 * (selber-machen, verstehen-reparieren, tipps-tricks). Draft-only chrome
 * from those HTML files is not shipped.
 * Astra hardening follows astra-build-reference.py: heading weight, white
 * type on navy, image max-width, button colours.
 *
 * The block lives in Astra's content container. .ks-area stacks the plugin
 * topbar above the page and hides the theme masthead, same as the homepage.
 * Page-specific pieces for Tipps & Tricks stay in area-tipps-tricks.css.
 */

.ks-area #masthead,
.ks-area .ast-mobile-header-wrap,
.ks-area #ast-desktop-header,
.ks-area #ast-mobile-header,
.ks-area .main-header-bar,
.ks-area .ast-main-header-wrap,
.ks-area #secondary,
.ks-area .widget-area {
	display: none !important;
}

.ks-area #content,
.ks-area .site-content {
	padding: 0;
	margin: 0;
}

.ks-area #primary.content-area,
.ks-area.ast-no-sidebar #primary.content-area,
.ks-area #main.site-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* Astra lays .ast-container out as a row, which would place the topbar
 * beside the page. Area routes stack them and let the theme keep its
 * container width (1240px on this site). */
.ks-area #content > .ast-container,
.ks-area .site-content > .ast-container {
	display: block;
	padding-left: 0;
	padding-right: 0;
}

.ks-area .ks-home-topbar {
	position: relative;
	z-index: 5;
	background: #f7f5f0;
	border-bottom: 1px solid #ddd8cf;
}

.ks-area .ks-home-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.25rem;
	padding: 0.65rem 1.25rem;
}

.ks-area .ks-home-topbar__brand {
	color: #2a2a2a;
	text-decoration: none;
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ks-area .ks-home-topbar__brand:hover,
.ks-area .ks-home-topbar__brand:focus {
	color: #2a2a2a;
}

.ks-area .ks-home-topbar__search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	color: #2a2a2a;
	text-decoration: none;
}

.ks-area .ks-home-topbar__search:hover,
.ks-area .ks-home-topbar__search:focus {
	color: #2a2a2a;
}

.ks-area .ks-home-topbar__search-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ks-area .ks-home-topbar__search-icon {
	display: block;
}

@media (max-width: 640px) {
	.ks-area .ks-home-topbar__inner {
		padding: 0.55rem 0.9rem;
	}
}

.ks-area-page {
	--navy: #1b2f57;
	--blue: #2f5f9e;
	--sky: #dbe7f3;
	--cream: #f6f2ea;
	--grey: #eef0f3;
	--ink: #1f2630;
	--muted: #4a5563;
	--warm: #c8792f;
	box-sizing: border-box;
	margin: 0;
	color: var(--ink);
	background: var(--cream);
	font-family: inherit;
	font-size: 18px;
	line-height: 1.65;
}

.ks-area-page *,
.ks-area-page {
	box-sizing: border-box;
}

.ks-area-page .ph {
	position: relative;
}

.ks-area-page .ph img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ks-area-page .hero {
	position: relative;
	height: 440px;
	overflow: hidden;
}

.ks-area-page .hero .ph {
	height: 100%;
}

.ks-area-page .hero .ph img {
	object-position: center 35%;
}

.ks-area-page .hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(18, 32, 60, 0.82) 0%, rgba(18, 32, 60, 0.55) 45%, rgba(18, 32, 60, 0.05) 80%);
}

.ks-area-page .hero h1 {
	position: absolute;
	left: max(24px, calc((100% - 1120px) / 2));
	bottom: 56px;
	margin: 0;
	color: #fff;
	font-size: 64px;
	line-height: 1.05;
	z-index: 3;
	letter-spacing: -0.01em;
}

.ks-area-page .hero h1 .subline,
.ks-area-page .hero h1 .tagline {
	display: block;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.35;
	margin-top: 14px;
	color: #e8eef7;
	letter-spacing: 0;
}

.ks-area-page .hero h1::after {
	content: "";
	display: block;
	width: 72px;
	height: 5px;
	background: var(--warm);
	margin-top: 18px;
	border-radius: 3px;
}

.ks-area-page .wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

.ks-area-page .intro {
	background: #fff;
	margin-top: -40px;
	position: relative;
	z-index: 4;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(27, 47, 87, 0.1);
	padding: 48px 56px;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	align-items: center;
}

.ks-area-page .intro h2 {
	margin: 0 0 18px;
	color: var(--navy);
	font-size: 32px;
	line-height: 1.25;
}

.ks-area-page .intro p {
	margin: 0 0 14px;
	max-width: 62ch;
}

.ks-area-page .intro .lead strong {
	color: var(--blue);
}

.ks-area-page .intro .badge {
	text-align: center;
}

.ks-area-page .intro .badge img {
	width: 300px;
	height: 300px;
	display: block;
	margin: 0 auto;
}

.ks-area-page hr.sep {
	border: 0;
	height: 1px;
	background: #d8d2c4;
	margin: 64px auto;
	max-width: 1120px;
}

.ks-area-page h2.big {
	color: var(--navy);
	font-size: 36px;
	text-align: center;
	margin: 0 0 48px;
	line-height: 1.25;
}

.ks-area-page .sec {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
	margin-bottom: 72px;
}

.ks-area-page .sec:nth-of-type(even) .media {
	order: 2;
}

.ks-area-page .media img {
	position: absolute;
	inset: 0;
}

.ks-area-page .media {
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 24px;
}

.ks-area-page .sec h3 {
	color: var(--navy);
	font-size: 26px;
	line-height: 1.3;
	margin: 0 0 16px;
}

.ks-area-page .sec p {
	margin: 0 0 14px;
}

.ks-area-page .sec p.hl strong {
	color: var(--blue);
}

.ks-area-page .tip {
	display: flex;
	gap: 20px;
	align-items: center;
	background: var(--sky);
	border-left: 5px solid var(--navy);
	border-radius: 10px;
	padding: 14px 20px 14px 14px;
	margin-top: 22px;
}

.ks-area-page .tip img {
	width: 120px;
	height: 120px;
	flex: 0 0 120px;
}

.ks-area-page .tip .lbl {
	display: block;
	font-weight: 700;
	color: var(--navy);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 2px;
}

.ks-area-page .tip .q {
	font-style: italic;
	font-size: 18px;
	line-height: 1.5;
	color: #22314d;
}

.ks-area-page .cta {
	background: var(--navy);
	color: #fff;
	padding: 72px 24px 80px;
	margin-top: 8px;
}

.ks-area-page .cta .inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.ks-area-page .cta h2 {
	font-size: 40px;
	margin: 0 0 20px;
}

.ks-area-page .cta h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 5px;
	background: var(--warm);
	margin: 16px auto 0;
	border-radius: 3px;
}

.ks-area-page .cta p {
	color: #e3e9f3;
	margin: 0 0 14px;
}

.ks-area-page a.btn {
	display: inline-block;
	margin: 26px 0 22px;
	background: var(--warm);
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	text-decoration: none;
	padding: 18px 36px;
	border-radius: 10px;
	box-shadow: 0 4px 0 #8f5420;
}

.ks-area-page .claim,
.ks-area-page .tagline {
	font-style: italic;
	color: #c9d6ea;
	font-size: 17px;
}

@media (max-width: 760px) {
	.ks-area-page {
		font-size: 17px;
	}

	.ks-area-page .hero {
		height: 300px;
	}

	.ks-area-page .hero::after {
		background: linear-gradient(0deg, rgba(18, 32, 60, 0.85) 0%, rgba(18, 32, 60, 0.2) 70%);
	}

	.ks-area-page .hero h1 {
		font-size: 40px;
		bottom: 56px;
		left: 20px;
	}

	.ks-area-page .hero h1 .subline,
	.ks-area-page .hero h1 .tagline {
		font-size: 18px;
		margin-top: 10px;
	}

	.ks-area-page .wrap {
		padding: 0 16px;
	}

	.ks-area-page .intro {
		grid-template-columns: 1fr;
		padding: 28px 22px;
		gap: 8px;
	}

	.ks-area-page .intro .badge {
		order: -1;
	}

	.ks-area-page .intro .badge img {
		width: 180px;
		height: 180px;
	}

	.ks-area-page .intro h2 {
		font-size: 26px;
	}

	.ks-area-page hr.sep {
		margin: 44px 16px;
	}

	.ks-area-page h2.big {
		font-size: 27px;
		margin-bottom: 32px;
	}

	.ks-area-page .sec {
		display: block;
		margin-bottom: 52px;
	}

	.ks-area-page .sec:nth-of-type(even) .media {
		order: 0;
	}

	.ks-area-page .media {
		position: relative;
		top: auto;
		aspect-ratio: 16 / 10;
		margin-bottom: 22px;
	}

	.ks-area-page .sec h3 {
		font-size: 22px;
	}

	.ks-area-page .tip {
		padding: 12px 14px 12px 10px;
		gap: 12px;
	}

	.ks-area-page .tip img {
		width: 92px;
		height: 92px;
		flex-basis: 92px;
	}

	.ks-area-page .tip .q {
		font-size: 17px;
	}

	.ks-area-page .cta {
		padding: 52px 20px 60px;
	}

	.ks-area-page .cta h2 {
		font-size: 32px;
	}

	.ks-area-page a.btn {
		display: block;
		font-size: 18px;
		padding: 16px 18px;
	}
}

/* Hardening against Astra globals. */
.ks-area-page {
	font-family: inherit;
}

.ks-area-page h1,
.ks-area-page h2,
.ks-area-page h3 {
	font-family: inherit;
	font-weight: 700;
	clear: none;
	text-transform: none;
}

.ks-area-page .hero h1,
.ks-area-page .cta h2 {
	color: #fff;
}

.ks-area-page .hero h1 .subline,
.ks-area-page .hero h1 .tagline {
	color: #e8eef7;
	font-weight: 400;
}

.ks-area-page p {
	margin-top: 0;
}

.ks-area-page img {
	max-width: none;
}

.ks-area-page .tip img,
.ks-area-page .intro .badge img {
	max-width: 100%;
}

.ks-area-page a.btn,
.ks-area-page a.btn:visited,
.ks-area-page a.btn:hover,
.ks-area-page a.btn:focus {
	color: #fff;
	text-decoration: none;
}

.ks-area-page a.btn:hover {
	background: #b56a24;
}

.ks-area-page hr.sep {
	border: 0;
	height: 1px;
}
