/* ==========================================================================
   CK-Sportprogramme – sportprogramme.org
   Design angelehnt an das Laufportal (Teal #51ac9d, Anthrazit #2f2f2f)
   ========================================================================== */

:root {
	--teal: #51ac9d;
	--teal-strong: #3e9384;
	--teal-soft: #e6f3f1;
	--ink: #2f2f2f;
	--ink-deep: #1c1f20;
	--text: #1f2a2e;
	--text-muted: #5b666a;
	--on-dark: #e8ebef;
	--on-dark-muted: #a9b1b5;
	--bg: #ffffff;
	--bg-alt: #f3f6f6;
	--line: #dde3e4;
	--radius: 14px;
	--radius-s: 8px;
	--shadow: 0 10px 30px rgba(20, 30, 32, 0.08);
	--shadow-lift: 0 18px 40px rgba(20, 30, 32, 0.14);
	--max: 1180px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 68px;
	--font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: var(--teal-strong);
}

h1,
h2,
h3 {
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.015em;
}

h1 {
	font-size: clamp(2.1rem, 5vw, 3.5rem);
	font-weight: 800;
}

h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	font-weight: 800;
}

h3 {
	font-size: 1.25rem;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

.container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 8px;
	z-index: 100;
	background: var(--teal);
	color: #fff;
	padding: 8px 14px;
	border-radius: var(--radius-s);
}

.skip-link:focus {
	left: 8px;
}

:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 3px;
}

.icon {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
.todo {
	background: #fff3b0;
	color: #5a4a00;
	border-radius: 4px;
	padding: 0 4px;
	outline: 1px dashed #d4b300;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
}

.btn .icon {
	width: 20px;
	height: 20px;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--teal);
	color: #fff;
	box-shadow: 0 8px 22px rgba(81, 172, 157, 0.35);
}

.btn-primary:hover {
	background: var(--teal-strong);
}

.btn-ghost {
	color: var(--on-dark);
	border-color: rgba(232, 235, 239, 0.4);
}

.btn-ghost:hover {
	border-color: var(--on-dark);
}

.btn-outline {
	color: var(--teal-strong);
	border-color: var(--teal);
	background: transparent;
}

.btn-outline:hover {
	background: var(--teal-soft);
}

.btn-xl {
	padding: 18px 32px;
	font-size: 1.15rem;
}

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

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: var(--header-h);
	background: rgba(28, 31, 32, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
	background: rgba(47, 47, 47, 0.97);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.header-inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
}

.brand img {
	height: 46px;
	width: auto;
}

.main-nav {
	margin-left: auto;
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.main-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-s);
	color: var(--on-dark);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.97rem;
}

.main-nav a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.header-cta {
	padding: 9px 18px;
	font-size: 0.95rem;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: 0;
	color: var(--on-dark);
	padding: 8px;
	cursor: pointer;
}

.nav-toggle .icon {
	width: 28px;
	height: 28px;
}

@media (max-width: 960px) {
	.nav-toggle {
		display: block;
	}

	.header-cta {
		display: none;
	}

	.main-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		background: var(--ink);
		padding: 8px var(--gutter) 20px;
		box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
		display: none;
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.main-nav a {
		padding: 14px 4px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 0;
	}

	.main-nav .nav-portal {
		display: block;
		margin-top: 16px;
		text-align: center;
	}
}

@media (min-width: 961px) {
	.main-nav .nav-portal {
		display: none;
	}
}

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

.hero {
	position: relative;
	color: var(--on-dark);
	background-color: var(--ink-deep);
	background-image: linear-gradient(90deg, rgba(28, 31, 32, 0.15) 0%, rgba(28, 31, 32, 0.85) 55%),
		url('../img/hero-runner.jpg');
	background-size: cover;
	background-position: left center;
	padding: calc(var(--header-h) + clamp(40px, 8vw, 110px)) 0 clamp(56px, 9vw, 120px);
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.hero-copy {
	grid-column: 2;
}

.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 14px;
}

.hero h1 span {
	color: var(--teal);
}

.hero-lead {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: var(--on-dark);
	max-width: 36em;
	opacity: 0.92;
}

.portal-card {
	margin-top: 28px;
	padding: 24px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(81, 172, 157, 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.portal-card-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.portal-card-head img {
	width: 58px;
	height: 58px;
	border-radius: 12px;
	background: #fff;
	padding: 2px;
}

.portal-card-head strong {
	display: block;
	font-size: 1.2rem;
	color: #fff;
}

.portal-card-head small {
	color: var(--on-dark-muted);
	font-size: 0.9rem;
}

.portal-card p {
	color: var(--on-dark);
	opacity: 0.9;
	margin-bottom: 18px;
}

.portal-card .btn-xl {
	width: 100%;
}

.hero-secondary {
	margin-top: 16px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 900px) {
	.hero {
		background-image: linear-gradient(180deg, rgba(28, 31, 32, 0.55) 0%, rgba(28, 31, 32, 0.92) 70%),
			url('../img/hero-runner-sm.jpg');
		background-position: center top;
	}

	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-copy {
		grid-column: 1;
	}
}

/* ---------- Sections ---------- */

.section {
	padding: clamp(56px, 8vw, 104px) 0;
}

.section-alt {
	background: var(--bg-alt);
}

.section-dark {
	background: var(--ink);
	color: var(--on-dark);
}

.section-head {
	max-width: 760px;
	margin: 0 auto clamp(32px, 5vw, 56px);
	text-align: center;
}

.section-head p {
	color: var(--text-muted);
	font-size: 1.1rem;
}

.section-dark .section-head p {
	color: var(--on-dark-muted);
}

/* ---------- Zielgruppen ---------- */

.audience-group + .audience-group {
	margin-top: clamp(40px, 6vw, 64px);
}

.audience-group-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.audience-group-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--line);
}

.audience-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-grid.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.persona {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 26px 26px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.persona:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lift);
}

.persona-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--teal-soft);
	color: var(--teal-strong);
	margin-bottom: 16px;
}

.persona-icon .icon {
	width: 26px;
	height: 26px;
}

.persona-step {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--teal-strong);
	margin-bottom: 4px;
}

.persona h3 {
	margin-bottom: 8px;
}

.persona > p {
	color: var(--text-muted);
}

.check-list {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	display: grid;
	gap: 8px;
}

.check-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.check-list .icon {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	color: var(--teal);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: auto 0 18px;
	padding-top: 6px;
}

.chip {
	font-size: 0.8rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg-alt);
	color: var(--text-muted);
	text-decoration: none;
	border: 1px solid var(--line);
}

.chip:hover {
	border-color: var(--teal);
	color: var(--teal-strong);
}

.persona .btn {
	align-self: flex-start;
}

.persona-featured {
	background: var(--ink);
	color: var(--on-dark);
	border-color: var(--ink);
}

.persona-featured > p {
	color: var(--on-dark-muted);
}

.persona-featured .persona-icon {
	background: rgba(81, 172, 157, 0.18);
	color: var(--teal);
}

.persona-featured .chip {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.14);
	color: var(--on-dark);
}

.persona-badge {
	position: absolute;
	top: -12px;
	right: 20px;
	background: var(--teal);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
}

@media (max-width: 960px) {
	.audience-grid,
	.audience-grid.two {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 640px) and (max-width: 960px) {
	.audience-grid.two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Leistungen (horizontale Kacheln) ---------- */

.service {
	padding: clamp(48px, 7vw, 88px) 0;
	border-top: 1px solid var(--line);
}

.service:nth-of-type(even) {
	background: var(--bg-alt);
}

.service-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.service:nth-of-type(even) .service-visual {
	order: -1;
}

.service-num {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	color: var(--teal-strong);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.service-num .persona-icon {
	margin: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.service h2 {
	font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.service-copy > p {
	color: var(--text-muted);
	font-size: 1.08rem;
}

.service-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	text-decoration: none;
}

.service-link .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.15s ease;
}

.service-link:hover .icon {
	transform: translateX(3px);
}

@media (max-width: 900px) {
	.service-grid {
		grid-template-columns: 1fr;
	}

	.service:nth-of-type(even) .service-visual {
		order: 0;
	}
}

/* ---------- Echte Screenshots ---------- */

.shot {
	display: block;
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-lift);
	border: 1px solid var(--line);
	overflow: hidden;
	background: #fff;
	cursor: zoom-in;
}

.shot img {
	display: block;
	width: 100%;
	height: auto;
}

/* Kleine Ausschnitte (Dialoge) nicht über ihre Originalgröße hinaus vergrößern */
.shot-narrow {
	max-width: 560px;
	margin-inline: auto;
}

/* ---------- Ablauf ---------- */

.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	counter-reset: step;
	position: relative;
}

.steps::before {
	content: '';
	position: absolute;
	top: 32px;
	left: 10%;
	right: 10%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.steps li {
	position: relative;
	text-align: center;
	counter-increment: step;
}

.step-icon {
	position: relative;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--ink);
	border: 2px solid var(--teal);
	color: var(--teal);
}

.step-icon::after {
	content: counter(step);
	position: absolute;
	top: -6px;
	right: -6px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--teal);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.steps h3 {
	font-size: 1.05rem;
	color: #fff;
	margin-bottom: 6px;
}

.steps p {
	font-size: 0.92rem;
	color: var(--on-dark-muted);
	margin: 0;
}

@media (max-width: 900px) {
	.steps {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.steps::before {
		top: 0;
		bottom: 0;
		left: 31px;
		right: auto;
		width: 2px;
		height: auto;
		background: linear-gradient(180deg, transparent, var(--teal) 10%, var(--teal) 90%, transparent);
	}

	.steps li {
		display: grid;
		grid-template-columns: 64px 1fr;
		gap: 18px;
		text-align: left;
		padding: 12px 0;
	}

	.step-icon {
		margin: 0;
	}
}

/* ---------- FAQ ---------- */

.faq {
	max-width: 820px;
	margin-inline: auto;
	display: grid;
	gap: 12px;
}

.faq details {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0 22px;
}

.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 0;
	font-weight: 700;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

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

.faq summary::after {
	content: '+';
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--teal);
	line-height: 1;
	transition: transform 0.2s ease;
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq details p {
	color: var(--text-muted);
	margin-bottom: 18px;
}

/* Preisliste in der FAQ „Was kostet das?“ */
.price-list {
	margin: 0 0 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.price-list > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 24px;
	padding: 14px 18px;
}

.price-list > div + div {
	border-top: 1px solid var(--line);
}

.price-list dt {
	font-weight: 600;
}

.price-list dd {
	margin: 0;
	text-align: right;
	flex-shrink: 0;
	max-width: 45%;
}

.price-list dd strong {
	color: var(--text);
	white-space: nowrap;
}

.price-list > div:first-child {
	background: var(--teal-soft);
}

.price-list small {
	display: block;
	font-weight: 400;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.faq details .price-note {
	font-size: 0.875rem;
}

@media (max-width: 560px) {
	.price-list > div {
		flex-direction: column;
	}

	.price-list dd {
		text-align: left;
		max-width: none;
	}
}

/* ---------- Kontakt ---------- */

.contact {
	background: linear-gradient(135deg, var(--teal) 0%, var(--teal-strong) 100%);
	color: #fff;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.contact h2 {
	color: #fff;
}

.contact p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
}

.contact-card {
	background: #fff;
	color: var(--text);
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow-lift);
	display: grid;
	gap: 14px;
}

.contact-line {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
	word-break: break-word;
}

.contact-line .persona-icon {
	margin: 0;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

.contact-line small {
	display: block;
	font-weight: 400;
	color: var(--text-muted);
	font-size: 0.85rem;
}

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

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

.site-footer {
	background: var(--ink-deep);
	color: var(--on-dark-muted);
	padding: 48px 0 28px;
	font-size: 0.95rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.footer-grid img {
	height: 54px;
	width: auto;
	margin-bottom: 12px;
}

.site-footer h2 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--on-dark);
	margin-bottom: 12px;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.site-footer a {
	color: var(--on-dark-muted);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--teal);
}

.footer-bottom {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.85rem;
}

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

	.footer-grid > :first-child {
		grid-column: 1 / -1;
	}
}

/* ---------- Unterseiten (Rechtliches, 404) ---------- */

.page-hero {
	background: var(--ink);
	color: var(--on-dark);
	padding: calc(var(--header-h) + 48px) 0 40px;
}

.page-hero h1 {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	margin: 0;
}

.prose {
	max-width: 780px;
	padding-block: clamp(40px, 6vw, 72px);
}

.prose h2 {
	font-size: 1.4rem;
	margin-top: 2em;
}

.prose h3 {
	font-size: 1.1rem;
	margin-top: 1.5em;
}

.prose address {
	font-style: normal;
}

.notice {
	padding: 14px 18px;
	border-radius: var(--radius-s);
	background: #fff3b0;
	border: 1px dashed #d4b300;
	color: #5a4a00;
	margin-bottom: 28px;
}

/* ==========================================================================
   Anleitungen (anleitung-*.html, anleitungen.html) – erzeugt von _tools/guide-capture
   ========================================================================== */

.guide {
	--mark: #ff7a1a;
	padding-block: clamp(32px, 5vw, 64px);
}

.guide-breadcrumb {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 14px;
}

.guide-intro {
	max-width: 780px;
	font-size: 1.15rem;
	color: var(--text-muted);
	margin: 0 0 28px;
}

/* Inhaltsübersicht der Schritte */
.guide-toc {
	list-style: none;
	padding: 0;
	margin: 0 0 clamp(32px, 5vw, 56px);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.guide-toc a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 6px;
	border-radius: 999px;
	background: var(--bg-alt);
	border: 1px solid var(--line);
	color: var(--text);
	text-decoration: none;
	font-size: 0.92rem;
}

.guide-toc a:hover {
	border-color: var(--teal);
	background: var(--teal-soft);
}

.guide-toc span {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--teal);
	color: #fff;
	font-weight: 700;
	font-size: 0.8rem;
}

/* Schritt-Kachel: Screenshot 60 %, Text 40 % */
.guide-steps {
	list-style: none;
	padding: 0;
	margin: 0;
}

.guide-step {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	padding: clamp(14px, 2vw, 22px);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.guide-figure {
	margin: 0;
	min-width: 0;
}

.guide-shot {
	position: relative;
	display: block;
	border-radius: var(--radius-s);
	border: 1px solid var(--line);
	overflow: hidden;
	background: var(--bg-alt);
	cursor: zoom-in;
}

.guide-shot img {
	display: block;
	width: 100%;
	height: auto;
}

/* Ausschnitt: das Bild ist größer als die Kachel und wird verschoben (Werte setzt build-guide.mjs) */
.guide-shot.is-cropped img {
	position: absolute;
	max-width: none;
	height: auto;
}

.guide-shot-missing {
	aspect-ratio: 16 / 10;
	display: grid;
	place-items: center;
	border-style: dashed;
	color: var(--text-muted);
	cursor: default;
}

.guide-text h2 {
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	margin: 10px 0 12px;
}

.guide-text p {
	margin: 0 0 12px;
}

.guide-no {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--teal-soft);
	color: var(--teal-strong);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}

.guide-no small {
	font-weight: 500;
	opacity: 0.8;
}

.guide-tip {
	padding: 10px 14px;
	border-left: 3px solid var(--teal);
	background: var(--bg-alt);
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
	font-size: 0.95rem;
	color: var(--text-muted);
}

/* Markierungen über dem Screenshot (SVG, Koordinaten in Screenshot-Pixeln) */
.guide-marks {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

.mk-marker {
	fill: #ffe14d;
	opacity: 0.55;
	mix-blend-mode: multiply;
}

.mk-ring-halo {
	fill: none;
	stroke: #fff;
	stroke-width: 12;
	opacity: 0.9;
}

.mk-ring {
	fill: none;
	stroke: var(--mark);
	stroke-width: 6;
	animation: mk-pulse 2.4s ease-in-out infinite;
}

.mk-arrow-halo {
	fill: none;
	stroke: #fff;
	stroke-width: 14;
	stroke-linecap: round;
	opacity: 0.9;
}

.mk-arrow {
	fill: none;
	stroke: var(--mark);
	stroke-width: 7;
	stroke-linecap: round;
}

.mk-arrow-head {
	fill: var(--mark);
}

.mk-label circle {
	fill: var(--mark);
	stroke: #fff;
	stroke-width: 4;
}

.mk-label text {
	fill: #fff;
	font: 700 24px var(--font);
	text-anchor: middle;
	dominant-baseline: central;
}

@keyframes mk-pulse {
	50% {
		opacity: 0.55;
	}
}

/* Moderner Pfeil von Schritt zu Schritt */
.guide-connector {
	position: relative;
	display: flex;
	justify-content: center;
	height: 84px;
}

.guide-connector::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
	border-radius: 3px;
	background: linear-gradient(to bottom, transparent, var(--teal) 30%, var(--teal) 70%, transparent);
}

.guide-connector span {
	position: relative;
	align-self: center;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--teal), var(--teal-strong));
	box-shadow: 0 6px 16px rgba(62, 147, 132, 0.35), 0 0 0 6px var(--bg);
}

.guide-connector svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.guide-done {
	margin-top: clamp(32px, 5vw, 56px);
	padding: clamp(20px, 3vw, 32px);
	border-radius: var(--radius);
	background: var(--teal-soft);
	text-align: center;
}

.guide-done h2 {
	margin-bottom: 6px;
}

.guide-done .btn {
	margin: 6px 4px 0;
}

/* Übersicht aller Anleitungen */
.guide-cards {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 24px;
}

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

.guide-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lift);
}

.guide-card img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top right;
	border-bottom: 1px solid var(--line);
}

.guide-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 20px;
}

.guide-card-body strong {
	font-size: 1.15rem;
}

.guide-card-body span {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.guide-card-body .guide-card-meta {
	margin-top: auto;
	color: var(--teal-strong);
	font-weight: 600;
}

@media (max-width: 860px) {
	.guide-step {
		grid-template-columns: 1fr;
	}

	.guide-toc {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(-1 * var(--gutter));
		padding: 0 var(--gutter) 6px;
		scrollbar-width: none;
	}

	.guide-toc a {
		white-space: nowrap;
	}
}

.guide-extra-title {
	font-size: 1.3rem;
	margin: 48px 0 12px;
}

.guide-extra {
	padding-left: 1.2em;
	max-width: 780px;
}

/* ==========================================================================
   Checklisten (checkliste-*.html) – Bildschirm und Druck/PDF
   ========================================================================== */

.lead {
	font-size: 1.15rem;
	color: var(--text-muted);
}

.todo-list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 8px;
}

.todo-list li {
	position: relative;
	padding-left: 32px;
}

.todo-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 18px;
	height: 18px;
	border: 2px solid var(--teal);
	border-radius: 4px;
}

.link-list .print-url,
.print-only {
	display: none;
}

.small-print {
	margin-top: 2.5em;
	font-size: 0.9rem;
	color: var(--text-muted);
}

@media print {
	@page {
		size: A4;
		margin: 16mm 16mm 18mm;
	}
	body {
		font-size: 10.5pt;
		line-height: 1.45;
	}
	.site-header,
	.site-footer,
	.skip-link,
	.no-print {
		display: none !important;
	}
	.print-only {
		display: block;
	}
	.print-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 8px;
		margin-bottom: 4px;
		border-bottom: 2px solid var(--teal);
		font-size: 9pt;
		color: var(--text-muted);
	}
	/* Seiten mit eigenem Druckkopf: Hero ausblenden, Titel steht im Druckkopf */
	main:has(.print-head) .page-hero {
		display: none;
	}
	.prose {
		padding: 0;
		max-width: none;
	}
	.print-title {
		font-size: 20pt;
		line-height: 1.2;
		margin: 14px 0 6px;
	}
	.prose h2 {
		font-size: 13pt;
		margin-top: 1.3em;
		break-after: avoid;
	}
	.prose h3 {
		font-size: 11pt;
		break-after: avoid;
	}
	.todo-list li,
	.guide-tip,
	ol li {
		break-inside: avoid;
	}
	.link-list .print-url {
		display: block;
		font-size: 8.5pt;
		color: var(--text-muted);
		word-break: break-all;
	}
	a {
		color: inherit;
	}
}

/* ==========================================================================
   Cookie-Banner (assets/js/analytics.js)
   ========================================================================== */

.cookie-banner {
	position: fixed;
	left: var(--gutter);
	right: var(--gutter);
	bottom: 16px;
	z-index: 1000;
	max-width: var(--max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 20px 28px;
	padding: 18px 22px;
	background: var(--ink-deep);
	color: var(--on-dark);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lift);
	font-size: 0.9rem;
	line-height: 1.5;
}

.cookie-banner h2 {
	margin: 0 0 4px;
	font-size: 1rem;
	color: #fff;
}

.cookie-banner p {
	margin: 0;
	color: var(--on-dark-muted);
}

.cookie-banner a {
	color: var(--teal);
}

.cookie-banner-text {
	flex: 1;
}

.cookie-banner-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.cookie-banner .btn {
	padding: 10px 18px;
	font-size: 0.95rem;
}

.cookie-banner .btn-outline {
	color: var(--on-dark);
	border-color: rgba(232, 235, 239, 0.4);
}

.cookie-banner .btn-outline:hover {
	background: transparent;
	border-color: var(--on-dark);
}

@media (max-width: 760px) {
	.cookie-banner {
		flex-direction: column;
		align-items: stretch;
		bottom: 10px;
	}

	.cookie-banner-actions {
		flex-direction: column-reverse;
	}
}
