/*
Theme Name: Chris Kueper
Theme URI: https://www.chriskueper.de
Author: Chris Kueper
Description: Eigenes Theme für chriskueper.de, Richtung „Hybrid“: Film und Foto aus einer Hand.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: chriskueper
*/

@font-face {
	font-family: "Open Sans";
	src: url("assets/fonts/open-sans.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Open Sans";
	src: url("assets/fonts/open-sans-italic.woff2") format("woff2");
	font-weight: 300 800;
	font-style: italic;
	font-display: swap;
}

:root {
	--ck-schwarz: #0e0e0e;
	--ck-weiss: #ffffff;
	--ck-akzent: #ffd600;
	--ck-grau: #f2f2f2;
	--ck-grau-mittel: #ededed;
	--ck-text-leise: #555555;
	--ck-text-mittel: #444444;
	--ck-display: "Open Sans", system-ui, sans-serif;
	--ck-body: "Open Sans", system-ui, sans-serif;
	--ck-nebelblau: #dce6ee;
	--ck-rand: clamp(20px, 3vw, 40px);
	--ck-breite: 1440px;
	--ck-abstand: clamp(88px, 10vw, 152px);
	--ck-radius-gross: 4px;
	--ck-radius: 3px;
}

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

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

body {
	margin: 0;
	background: var(--ck-weiss);
	color: var(--ck-schwarz);
	font-family: var(--ck-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--ck-schwarz); text-underline-offset: 5px; }
a:hover { color: #000; }

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

.screen-reader-text, .ck-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.ck-skip:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--ck-akzent); padding: 12px 18px; border-radius: 999px; font-weight: 600;
}

.ck-container {
	width: 100%;
	max-width: var(--ck-breite);
	margin: 0 auto;
	padding-left: var(--ck-rand);
	padding-right: var(--ck-rand);
}

h1, h2, h3, h4 {
	font-family: var(--ck-display);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.02;
	margin: 0;
}

.ck-h1 { font-size: clamp(50px, 7.2vw, 112px); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; }
.ck-h2 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 800; }
.ck-h3 { font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

.ck-markiert {
	background: var(--ck-akzent);
	padding: 0 0.08em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Buttons */
.ck-button {
	display: inline-flex; align-items: center; gap: 12px;
	min-height: 56px; padding: 0 28px; border-radius: 4px;
	background: var(--ck-schwarz); color: var(--ck-weiss);
	font-size: 16px; font-weight: 800; text-decoration: none;
	transition: transform .15s ease;
}
.ck-button:hover { color: var(--ck-weiss); transform: translateY(-1px); }
.ck-button svg { flex: none; }
.ck-button--klein { min-height: 44px; padding: 0 22px; font-size: 16px; }
.ck-link-play {
	display: inline-flex; align-items: center; gap: 12px; min-height: 56px;
	font-size: 17px; font-weight: 600; text-decoration: none;
}
.ck-link-play__kreis {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%; background: var(--ck-grau-mittel);
}

/* Header */
.ck-header { position: relative; z-index: 10; }
.ck-header__innen {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 40px; padding-top: 24px; padding-bottom: 24px;
}
.ck-logo { display: inline-block; line-height: 0; }
.ck-logo img { width: 128px; height: auto; }

.ck-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-size: 16px; font-weight: 500; }
.ck-nav__liste { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
.ck-nav__liste a { text-decoration: none; }
.ck-nav__liste a:hover,
.ck-nav__liste .current-menu-item > a,
.ck-nav__liste .current_page_item > a { text-decoration: underline; }

/* Hero */
.ck-hero { padding-top: 40px; }
.ck-hero__innen {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px 64px;
}
.ck-hero__text { flex: 1 1 520px; min-width: 0; max-width: 720px; }
.ck-hero__text .ck-h1 { margin-bottom: 32px; }
.ck-hero__lead { margin: 0 0 40px; max-width: 560px; font-size: 21px; line-height: 1.5; color: #2b2b2b; }
.ck-hero__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 48px; }
.ck-hero__kunden { margin: 0; font-size: 15px; color: var(--ck-text-leise); }
.ck-hero__bild { position: relative; flex: 1 1 400px; max-width: 560px; width: 100%; }
.ck-hero__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ck-radius-gross); }
.ck-sticker {
	position: absolute; left: 20px; bottom: 20px; width: 160px; height: 160px; border-radius: 50%;
	background: var(--ck-akzent); color: var(--ck-schwarz);
	display: flex; align-items: center; justify-content: center; text-align: center;
	padding: 22px; transform: rotate(-9deg);
	font-family: var(--ck-display); font-size: 19px; line-height: 1.05; font-weight: 800;
}

/* Film / Foto Kacheln */
.ck-split { padding-top: 96px; }
.ck-split__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.ck-kachel {
	position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--ck-radius-gross);
	overflow: hidden; background: var(--ck-schwarz); color: var(--ck-weiss); text-decoration: none;
}
.ck-kachel img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	filter: brightness(.72); transition: transform .6s ease;
}
.ck-kachel:hover img { transform: scale(1.03); }
.ck-kachel__text { position: absolute; left: 32px; right: 32px; bottom: 28px; }
.ck-kachel__titel {
	display: block; font-family: var(--ck-display); font-size: clamp(44px, 4.6vw, 68px);
	line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--ck-weiss);
}
.ck-kachel__sub { display: block; margin-top: 10px; font-size: 18px; line-height: 1.4; color: var(--ck-weiss); }
.ck-kachel:hover { color: var(--ck-weiss); }

/* Sektionen */
.ck-sektion { padding-top: var(--ck-abstand); }
.ck-sektion__kopf {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
	gap: 12px 32px; margin-bottom: 48px;
}
.ck-sektion__kopf .ck-h2 { max-width: 900px; }
.ck-mehr { font-size: 17px; font-weight: 600; }

/* Leistungen */
.ck-leistungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 24px; }
.ck-leistung { text-decoration: none; display: block; }
.ck-leistung img, .ck-leistung .ck-platzhalter { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ck-radius); }
.ck-leistung h3 { margin: 20px 0 8px; }
.ck-leistung p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ck-text-mittel); }
.ck-leistung:hover h3 { text-decoration: underline; }

/* Projekt-Raster */
.ck-projekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 48px 24px; }
.ck-projekt { display: block; text-decoration: none; }
.ck-projekt__bild { border-radius: var(--ck-radius); overflow: hidden; background: var(--ck-grau); }
.ck-projekt__bild img, .ck-projekt__bild .ck-platzhalter { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.ck-projekt:hover .ck-projekt__bild img { transform: scale(1.03); }
.ck-projekt__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.ck-projekt__titel { font-family: var(--ck-display); font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.ck-projekt__bereich { font-size: 15px; color: var(--ck-text-leise); white-space: nowrap; }

.ck-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; padding: 0; list-style: none; }
.ck-filter a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 4px;
	background: var(--ck-grau-mittel); text-decoration: none; font-weight: 500;
}
.ck-filter a[aria-current="page"] { background: var(--ck-schwarz); color: var(--ck-weiss); }

/* Dunkler Block */
.ck-dunkel { margin-top: var(--ck-abstand); background: var(--ck-schwarz); color: var(--ck-weiss); }
.ck-dunkel a { color: var(--ck-weiss); }
.ck-dunkel__innen {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 48px 72px; padding-top: 128px; padding-bottom: 128px;
}
.ck-dunkel__text { flex: 1 1 520px; min-width: 0; max-width: 680px; }
.ck-dunkel__text .ck-h2 { margin-bottom: 28px; color: var(--ck-weiss); }
.ck-dunkel__text p { margin: 0 0 18px; font-size: 19px; color: #d4d4d4; }
.ck-dunkel__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; font-size: 16px; font-weight: 600; }
.ck-dunkel img { flex: 1 1 420px; max-width: 600px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--ck-radius-gross); }
.ck-akzent-text { color: var(--ck-akzent); }

/* Instagram */
.ck-insta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ck-insta img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }

/* Kunden */
.ck-kunden {
	display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none;
	font-family: var(--ck-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; font-weight: 800; color: #6a6a6a;
}

/* Kontakt */
.ck-kontakt { margin-top: var(--ck-abstand); background: var(--ck-akzent); color: var(--ck-schwarz); }
.ck-kontakt__innen { padding-top: 120px; padding-bottom: 120px; }
.ck-kontakt .ck-h1 { font-size: clamp(46px, 6.6vw, 104px); max-width: 1100px; margin-bottom: 24px; }
.ck-kontakt p { margin: 0 0 40px; max-width: 560px; font-size: 20px; }
.ck-kontakt__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ck-kontakt__aktionen .ck-button { overflow-wrap: anywhere; }
.ck-kontakt__aktionen a:not(.ck-button) { font-size: 18px; font-weight: 600; }

/* Footer */
.ck-footer { background: var(--ck-schwarz); color: #bdbdbd; font-size: 15px; }
.ck-footer__innen {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: 24px 40px; padding-top: 48px; padding-bottom: 48px;
}
.ck-footer__social { display: flex; gap: 20px; }
.ck-footer__social a { display: inline-flex; color: #e0e0e0; }
.ck-footer__recht { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.ck-footer a { color: #e0e0e0; text-decoration: none; }
.ck-footer a:hover { color: var(--ck-weiss); }
.ck-footer__recht a:hover { text-decoration: underline; }
.ck-kontakt + .ck-footer, .ck-dunkel + .ck-footer { margin-top: 0; }
main > :last-child:not(.ck-kontakt) { padding-bottom: var(--ck-abstand); }

/* Unterseiten: Kopf */
.ck-seitenkopf { padding-top: 56px; padding-bottom: 56px; }
.ck-seitenkopf .ck-h1 { font-size: clamp(44px, 6vw, 96px); }
.ck-seitenkopf p { margin: 24px 0 0; max-width: 720px; font-size: 21px; line-height: 1.5; color: #2b2b2b; }
.ck-zurueck { display: inline-block; margin-bottom: 24px; font-size: 15px; font-weight: 600; text-decoration: none; }
.ck-zurueck:hover { text-decoration: underline; }

/* Projektseite */
.ck-projektkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.ck-projektkopf__fakten { display: flex; gap: 40px; margin: 0; font-size: 16px; }
.ck-projektkopf__fakten dt { color: var(--ck-text-leise); font-size: 14px; margin-bottom: 4px; }
.ck-projektkopf__fakten dd { margin: 0; font-weight: 600; }
.ck-titelbild img { width: 100%; max-height: 82vh; object-fit: cover; border-radius: var(--ck-radius-gross); }

/* Inhalte aus dem Editor */
.ck-inhalt { padding-top: 64px; overflow-wrap: break-word; }
.ck-h1, .ck-h2 { overflow-wrap: break-word; hyphens: auto; }
.ck-inhalt > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.ck-inhalt > .alignwide, .ck-inhalt > .wp-block-gallery, .ck-inhalt > .ck-video-wrap, .ck-inhalt > .wp-block-embed { max-width: 1360px; }
.ck-inhalt > .alignfull { max-width: none; }
.ck-inhalt p, .ck-inhalt li { font-size: 19px; line-height: 1.65; }
.ck-inhalt h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 800; margin: 64px auto 20px; }
.ck-inhalt h3 { font-size: 26px; font-weight: 800; margin: 48px auto 16px; }
.ck-inhalt figure { margin-top: 48px; margin-bottom: 48px; }
.ck-inhalt .wp-block-gallery { gap: 16px; }
.ck-inhalt .wp-block-gallery img, .ck-inhalt .wp-block-image img { border-radius: 3px; }
.ck-inhalt figcaption { font-size: 14px; color: var(--ck-text-leise); text-align: left; margin-top: 10px; }

/* Video mit Zwei-Klick */
.ck-video {
	position: relative; aspect-ratio: 16 / 9; border-radius: var(--ck-radius-gross); overflow: hidden;
	background: var(--ck-schwarz); color: var(--ck-weiss);
}
.ck-video__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.ck-video__start {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%);
	display: inline-flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px; border: 0; border-radius: 4px;
	background: var(--ck-weiss); color: var(--ck-schwarz); font: 600 17px/1 var(--ck-body); cursor: pointer;
}
.ck-video__play {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%; background: var(--ck-akzent);
}
.ck-video__hinweis {
	position: absolute; left: 24px; right: 24px; bottom: 16px; margin: 0;
	font-size: 13px; line-height: 1.4; color: #e6e6e6; text-align: center;
}
.ck-video__hinweis a { color: var(--ck-weiss); }
.ck-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ck-video.ist-aktiv .ck-video__bild, .ck-video.ist-aktiv .ck-video__start, .ck-video.ist-aktiv .ck-video__hinweis { display: none; }

/* Blog-Liste */
.ck-beitraege { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 56px 24px; }
.ck-beitrag { text-decoration: none; display: block; }
.ck-beitrag img, .ck-beitrag .ck-platzhalter { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--ck-radius); }
.ck-beitrag time { display: block; margin-top: 16px; font-size: 14px; color: var(--ck-text-leise); }
.ck-beitrag h2 { margin-top: 6px; font-size: 26px; font-weight: 800; line-height: 1.15; }
.ck-beitrag:hover h2 { text-decoration: underline; }

.ck-platzhalter { display: block; background: var(--ck-grau); }

.ck-pagination { margin-top: 64px; display: flex; gap: 12px; flex-wrap: wrap; }
.ck-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
	padding: 0 14px; border-radius: 4px; background: var(--ck-grau-mittel); text-decoration: none;
}
.ck-pagination .current { background: var(--ck-schwarz); color: var(--ck-weiss); }

@media (max-width: 640px) {
	body { font-size: 16px; }
	.ck-hero__lead { font-size: 18px; }
	.ck-sticker { width: 124px; height: 124px; font-size: 15px; padding: 16px; }
	.ck-kachel__text { left: 20px; right: 20px; bottom: 20px; }
	.ck-dunkel__innen, .ck-kontakt__innen { padding-top: 88px; padding-bottom: 88px; }
	.ck-video__start { font-size: 15px; transform: translate(-50%, -70%); }
	.ck-video__hinweis { font-size: 11px; left: 12px; right: 12px; bottom: 8px; }
	.ck-projektkopf__fakten { gap: 24px; }
	.ck-leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
	.ck-leistung .ck-h3 { font-size: 19px; }
	.ck-leistung p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ck-kachel img, .ck-projekt__bild img, .ck-button { transition: none; }
}

/* Zentrierte Projektseite */
.ck-zentriert { text-align: center; }
.ck-zentriert .ck-projektkopf { flex-direction: column; align-items: center; gap: 24px; }
.ck-zentriert .ck-projektkopf__fakten { justify-content: center; }
.ck-zentriert p { margin-left: auto; margin-right: auto; }
.ck-sektion__kopf.ck-zentriert { justify-content: center; }
.ck-inhalt--zentriert { padding-top: 16px; }
.ck-inhalt--zentriert > p, .ck-inhalt--zentriert > h2, .ck-inhalt--zentriert > h3 { text-align: center; }
.ck-inhalt--zentriert > ul { list-style: none; padding: 0; text-align: center; }

/* Textmarker-Animation */
.ck-markiert--animiert {
	background: linear-gradient(var(--ck-akzent), var(--ck-akzent)) no-repeat 0 0 / 0% 100%;
	animation: ck-marker 0.9s cubic-bezier(.6,.05,.25,1) 0.35s forwards;
}
@keyframes ck-marker { to { background-size: 100% 100%; } }

/* Film-Kachel mit Video, Foto-Kachel mit Diashow beim Überfahren */
.ck-kachel__video, .ck-kachel__slides, .ck-kachel__slides img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ck-kachel__video { opacity: 0; transition: opacity .4s ease; filter: brightness(.72); }
.ck-kachel.ist-aktiv .ck-kachel__video { opacity: 1; }
.ck-kachel__slides img { opacity: 0; transition: opacity .6s ease; transform: none !important; }
.ck-kachel__slides img.ist-sichtbar { opacity: 1; }
.ck-kachel__text { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
	.ck-markiert--animiert { animation: none; background-size: 100% 100%; }
}

/* Header-Video ganz oben */
.ck-headervideo { position: relative; height: min(88vh, 900px); min-height: 520px; background: #000; overflow: hidden; color: var(--ck-weiss); }
.ck-headervideo__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.ck-headervideo__text { position: absolute; left: 0; right: 0; bottom: 64px; }
.ck-headervideo .ck-h1 { color: var(--ck-weiss); margin-bottom: 36px; }
.ck-headervideo .ck-markiert { color: var(--ck-schwarz); }
.ck-headervideo .ck-hero__aktionen { margin-bottom: 0; }
.ck-button--hell { background: var(--ck-weiss); color: var(--ck-schwarz); }
.ck-button--hell:hover { color: var(--ck-schwarz); }
.ck-link-play--hell, .ck-link-play--hell:hover { color: var(--ck-weiss); }
.ck-link-play--hell .ck-link-play__kreis { background: var(--ck-akzent); color: var(--ck-schwarz); }
.ck-hero { padding-top: var(--ck-abstand); }

/* Kundenlogos */
.ck-logos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px 32px; margin: 0; padding: 0; list-style: none; align-items: center; }
.ck-logos img { width: 100%; max-width: 160px; height: auto; margin: 0 auto; }

/* Zwischenüberschriften: Open Sans Regular */
.ck-zwischen { font-family: var(--ck-body); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.01em; color: var(--ck-schwarz); margin: 0 0 32px; }
.ck-nav { font-weight: 600; }

/* Zweite Akzentfarbe Nebelblau */
.ck-flaeche-blau { background: var(--ck-nebelblau); }
.ck-hero.ck-flaeche-blau { padding-top: var(--ck-abstand); padding-bottom: var(--ck-abstand); }
.ck-sektion.ck-flaeche-blau { margin-top: var(--ck-abstand); padding-bottom: var(--ck-abstand); }
.ck-filter a { background: var(--ck-nebelblau); }
.ck-projekt__bild, .ck-platzhalter { background: var(--ck-nebelblau); }
.ck-sticker { box-shadow: none; }

.ck-dunkel + .ck-sektion.ck-flaeche-blau { margin-top: 0; }

/* Headline über dem Video: Zeilen nicht überlappen */
.ck-h1--video { line-height: 1.08; }
.ck-h1--video .ck-zeile { display: block; margin-bottom: 0.08em; }
.ck-h1 .ck-markiert { padding: 0.02em 0.1em; }

/* Intro: großes Porträt, Titel ragt ins Bild */
.ck-intro .ck-hero__innen { position: relative; align-items: center; gap: 0; }
.ck-intro .ck-hero__text { flex: 0 1 46%; max-width: none; position: relative; z-index: 2; }
.ck-intro .ck-hero__bild { flex: 0 0 62%; max-width: none; margin-left: -8%; }
.ck-intro .ck-hero__bild img { aspect-ratio: 4 / 4.4; }
.ck-intro__titel { margin-bottom: 32px; margin-right: -30%; position: relative; }
.ck-intro .ck-sticker { left: auto; right: 28px; bottom: 28px; width: 176px; height: 176px; font-size: 21px; }

/* Weiche Übergänge Weiß / Nebelblau */
.ck-fade { background: linear-gradient(to bottom, var(--ck-weiss) 0, var(--ck-nebelblau) 160px, var(--ck-nebelblau) calc(100% - 160px), var(--ck-weiss) 100%); }
.ck-dunkel + .ck-sektion.ck-fade { background: linear-gradient(to bottom, var(--ck-nebelblau) 0, var(--ck-nebelblau) calc(100% - 160px), var(--ck-weiss) 100%); }
.ck-headervideo + .ck-fade { background: linear-gradient(to bottom, var(--ck-nebelblau) 0, var(--ck-nebelblau) calc(100% - 160px), var(--ck-weiss) 100%); }

/* Versalien als Highlight */
.ck-caps { text-transform: uppercase; letter-spacing: 0.02em; }
.ck-label { margin: 0 0 14px; font-family: var(--ck-display); font-weight: 800; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.ck-label::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--ck-akzent); margin-right: 10px; vertical-align: 0.05em; }

/* Weitere Projekte mittig, auch wenn es nur zwei sind */
.ck-projekte--mitte { display: flex; flex-wrap: wrap; justify-content: center; }
.ck-projekte--mitte > * { flex: 0 1 calc((100% - 48px) / 3); min-width: 280px; }

.ck-intro .ck-hero__lead, .ck-intro .ck-hero__kunden { max-width: 440px; }

/* Kundenstimmen */
.ck-inhalt .wp-block-quote { margin: 64px auto; padding: 0; border: 0; text-align: center; max-width: 860px; }
.ck-inhalt .wp-block-quote p { font-family: var(--ck-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.015em; }
.ck-inhalt .wp-block-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; color: var(--ck-text-leise); }

@media (max-width: 1100px) { .ck-logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .ck-logos { grid-template-columns: repeat(3, 1fr); } }

/* Über mich: ein durchgehender Blocksatz, Bilder gleich groß, abwechselnd links und rechts */
.ck-ueber__text { max-width: calc(1120px + 2 * var(--ck-rand)); padding-top: 72px; font-size: 18px; line-height: 1.7; }
.ck-ueber__text::after { content: ""; display: block; clear: both; }
.ck-ueber__text .ck-h1 { font-size: clamp(46px, 6vw, 96px); margin: 6px 0 24px; }
.ck-ueber__lead { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; margin: 0 0 56px; max-width: 900px; }
.ck-ueber__abschnitt { display: flow-root; padding-top: 48px; }
.ck-ueber__text h2 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; }
.ck-ueber__text p:not(.ck-label):not(.ck-ueber__lead) { margin: 0 0 18px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.ck-ueber__text a { color: inherit; text-decoration-color: var(--ck-akzent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ck-ueber__bild { width: 36%; margin: 6px 0 16px; }
.ck-ueber__bild img { width: 100%; aspect-ratio: 4 / 3; object-position: 50% 30%; height: auto; object-fit: cover; border-radius: var(--ck-radius); display: block; }
.ck-ueber__bild--rechts { float: right; margin-left: 48px; }
.ck-ueber__bild--links { float: left; margin-right: 48px; }
.ck-ueber__mehr { max-width: calc(1120px + 2 * var(--ck-rand)); padding-top: 72px; }
.ck-ueber__mehr-titel { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; }
.ck-ueber__kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ck-ueber__kachel { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 24px 56px 24px 24px; background: var(--ck-nebelblau); border-radius: var(--ck-radius); text-decoration: none; transition: background .15s ease; }
.ck-ueber__kachel:hover { background: var(--ck-akzent); }
.ck-ueber__kachel-art { font-size: 14px; color: var(--ck-text-mittel); }
.ck-ueber__kachel-titel { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.ck-ueber__kachel svg { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); }
.ck-label--hell { color: var(--ck-weiss); }
@media (max-width: 960px) {
	.ck-ueber__kacheln { grid-template-columns: repeat(2, 1fr); }
	.ck-ueber__bild { width: 38%; }
}
@media (max-width: 640px) {
	.ck-ueber__text { padding-top: 48px; font-size: 17px; }
	.ck-ueber__lead { margin-bottom: 32px; }
	.ck-ueber__bild { float: none; width: 100%; }
	.ck-ueber__bild img { aspect-ratio: 4 / 3; }
	.ck-ueber__abschnitt { padding-top: 40px; }
	.ck-ueber__bild { margin: 0 0 20px; }
	.ck-ueber__mehr { padding-top: 48px; }
	.ck-ueber__kacheln { grid-template-columns: 1fr; gap: 8px; }
	.ck-ueber__kachel { padding: 18px 52px 18px 20px; }
}

/* Kontaktseite */
.ck-kontaktseite { background: var(--ck-nebelblau); }
.ck-kontaktseite__innen { display: flex; gap: 96px; align-items: flex-start; padding-top: 96px; padding-bottom: 120px; }
.ck-kontaktseite__text { flex: 1 1 55%; }
.ck-kontaktseite__text .ck-h1 { font-size: clamp(44px, 5.6vw, 88px); margin: 8px 0 32px; }
.ck-kontaktseite__text p { font-size: 19px; line-height: 1.7; max-width: 600px; margin: 0 0 18px; }
.ck-kontaktseite__lead { font-size: 22px !important; line-height: 1.55 !important; }
.ck-kontaktseite__text a { color: inherit; text-decoration-color: var(--ck-akzent); text-decoration-thickness: 3px; }
.ck-kontaktseite__wege { flex: 0 0 38%; list-style: none; margin: 16px 0 0; padding: 40px; background: var(--ck-weiss); border-radius: var(--ck-radius-gross); }
.ck-kontaktseite__wege li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid #e6e6e6; }
.ck-kontaktseite__wege li:first-child { padding-top: 0; }
.ck-kontaktseite__art { font-size: 14px; color: var(--ck-text-leise); }
.ck-kontaktseite__wert { font-size: 21px; font-weight: 800; color: var(--ck-schwarz); text-decoration: none; overflow-wrap: anywhere; }
a.ck-kontaktseite__wert:hover { text-decoration: underline; text-decoration-color: var(--ck-akzent); text-decoration-thickness: 3px; }
.ck-kontaktseite__wege .ck-kontaktseite__knopf { border-bottom: 0; padding-bottom: 0; padding-top: 28px; }
.ck-kontaktseite + .ck-footer { margin-top: 0; }
@media (max-width: 860px) {
	.ck-kontaktseite__innen { flex-direction: column; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
	.ck-kontaktseite__wege { width: 100%; padding: 28px; }
}

.ck-kontakt .ck-h1, .ck-kontaktseite .ck-h1, .ck-ueber .ck-h1 { hyphens: manual; }

.ck-ueber__video--oben { max-width: none; padding: 0; background: var(--ck-schwarz); }
.ck-ueber__video--oben .ck-video { aspect-ratio: 16 / 9; }
.ck-ueber__video--oben .ck-video { border-radius: 0; max-width: 1600px; margin: 0 auto; }

/* Kopfzeile läuft mit */
html { scroll-padding-top: 96px; }
.ck-header { position: sticky; top: 0; z-index: 50; background: var(--ck-weiss); transition: box-shadow .2s ease; }
.ck-header.ist-gescrollt { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.ck-header__innen { flex-wrap: nowrap; transition: padding .2s ease; }
.ck-header.ist-gescrollt .ck-header__innen { padding-top: 12px; padding-bottom: 12px; }
.ck-logo img { transition: width .2s ease; }
.ck-header.ist-gescrollt .ck-logo img { width: 104px; }
.admin-bar .ck-header { top: 32px; }

/* Burger-Menü */
.ck-burger { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ck-schwarz); cursor: pointer; }
.ck-burger__linien { position: relative; width: 26px; height: 18px; }
.ck-burger__linien span { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.ck-burger__linien span:nth-child(1) { top: 0; }
.ck-burger__linien span:nth-child(2) { top: 7.5px; }
.ck-burger__linien span:nth-child(3) { top: 15px; }
.ck-burger[aria-expanded="true"] .ck-burger__linien span:nth-child(1) { top: 7.5px; transform: rotate(45deg); }
.ck-burger[aria-expanded="true"] .ck-burger__linien span:nth-child(2) { opacity: 0; }
.ck-burger[aria-expanded="true"] .ck-burger__linien span:nth-child(3) { top: 7.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
	html { scroll-padding-top: 76px; }
	.ck-header__innen { padding-top: 12px; padding-bottom: 12px; }
	.ck-logo img, .ck-header.ist-gescrollt .ck-logo img { width: 100px; }
	.ck-burger { display: inline-flex; }
	.ck-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		display: none; flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--ck-rand) 28px; background: var(--ck-weiss);
		box-shadow: 0 16px 24px rgba(0, 0, 0, .08); max-height: calc(100vh - 72px); overflow-y: auto;
	}
	.ck-header.ist-offen .ck-nav { display: flex; }
	.ck-nav__liste { flex-direction: column; gap: 0; }
	.ck-nav__liste a { display: block; padding: 14px 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
	.ck-nav .ck-button { margin-top: 16px; justify-content: center; min-height: 56px; }
	body.ist-menue-offen { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .ck-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ck-header { top: 0; } }

/* Nach oben */
.ck-hoch {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
	border: 0; border-radius: var(--ck-radius-gross); background: var(--ck-akzent); color: var(--ck-schwarz);
	cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}
.ck-hoch.ist-sichtbar { opacity: 1; visibility: visible; transform: none; }
.ck-hoch:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .ck-hoch { right: 14px; bottom: 14px; width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .ck-header, .ck-header__innen, .ck-logo img, .ck-hoch { transition: none; } }

/* Handy: Intro auf der Startseite untereinander */
.ck-button { white-space: nowrap; }
@media (max-width: 860px) {
	.ck-intro .ck-hero__innen { flex-direction: column; align-items: stretch; gap: 32px; }
	.ck-intro .ck-hero__text, .ck-intro .ck-hero__bild { flex: none; width: 100%; max-width: none; margin-left: 0; }
	.ck-intro__titel { margin-right: 0; }
	.ck-intro .ck-hero__lead, .ck-intro .ck-hero__kunden { max-width: none; }
	.ck-intro .ck-hero__bild img { aspect-ratio: 4 / 5; }
	.ck-intro .ck-sticker { right: 16px; bottom: 16px; width: 120px; height: 120px; font-size: 15px; }
}
.ck-kontaktseite .ck-h1, .ck-ueber .ck-h1, .ck-kontakt .ck-h1 { line-height: 1.04; }
@media (max-width: 640px) {
	.ck-footer__innen { gap: 20px; padding-top: 36px; padding-bottom: 36px; }
	.ck-footer__recht { gap: 6px 18px; font-size: 14px; }
	.ck-footer__recht span { flex-basis: 100%; }
}

/* Blog: Vorschaubilder in 16:9 */
.ck-beitrag img, .ck-beitrag .ck-platzhalter { aspect-ratio: 16 / 9; }
.ck-titelbild img { aspect-ratio: 16 / 9; max-height: none; }

/* Über mich: Links auf einem Nebelblau-Band, Titel ragt über die Kante */
.ck-ueber__mehr { margin-top: 120px; background: var(--ck-nebelblau); padding: 0 0 96px; max-width: none; }
.ck-ueber__mehr-innen { max-width: calc(1120px + 2 * var(--ck-rand)); }
.ck-ueber__mehr-titel { font-size: clamp(48px, 7vw, 104px); line-height: 1.04; letter-spacing: -0.035em; transform: translateY(-0.5em); margin: 0 0 -0.25em; }
.ck-ueber__gruppe { font-size: 15px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin: 40px 0 14px; }
.ck-ueber__gruppe:first-of-type { margin-top: 0; }
.ck-ueber__kachel { background: var(--ck-weiss); }
@media (max-width: 640px) {
	.ck-ueber__mehr { margin-top: 88px; padding-bottom: 64px; }
	.ck-ueber__mehr-titel { font-size: 48px; }
}

/* Kontaktblock: Überschrift ragt über die Kante ins Gelb */
.ck-kontakt__innen { padding-top: 0; }
.ck-kontakt .ck-h1 { transform: translateY(-0.5em); margin-bottom: calc(24px - 0.4em); }
@media (max-width: 640px) { .ck-kontakt__innen { padding-top: 0; } }

/* Projekt- und Blogkarten: Titel greift ins Bild */
.ck-projekt__meta, .ck-beitrag__text { position: relative; z-index: 1; margin: -30px 56px 0 0; padding: 16px 20px 0 0; background: var(--ck-weiss); border-top-right-radius: var(--ck-radius); }
.ck-beitrag time { margin-top: 0; }
@media (max-width: 640px) { .ck-projekt__meta, .ck-beitrag__text { margin-right: 32px; margin-top: -24px; padding-top: 12px; } }

/* Bewegung beim Scrollen (nur wenn JavaScript läuft) */
.ck-anim .ck-rein { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--ck-verzug, 0ms); }
.ck-anim .ck-rein.ist-drin { opacity: 1; transform: none; }
.ck-anim .ck-projekt.ck-rein .ck-projekt__bild img, .ck-anim .ck-beitrag.ck-rein img { transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.ck-anim .ck-projekt.ist-drin .ck-projekt__bild img, .ck-anim .ck-beitrag.ist-drin img { transform: scale(1); }
.ck-anim .ck-projekt.ist-drin:hover .ck-projekt__bild img { transform: scale(1.04); transition-duration: .6s; }
.ck-beitrag__bild { border-radius: var(--ck-radius); overflow: hidden; background: var(--ck-nebelblau); }
.ck-beitrag img { transition: transform .6s ease; }
.ck-anim .ck-beitrag.ist-drin:hover img { transform: scale(1.04); }

/* Textmarker: Links und Markierungen werden beim Scrollen gelb angestrichen */
.ck-anim .ck-marker-link {
	text-decoration: none;
	background-image: linear-gradient(var(--ck-akzent), var(--ck-akzent));
	background-repeat: no-repeat; background-position: 0 92%; background-size: 0% 0.42em;
	transition: background-size .9s cubic-bezier(.6,.05,.25,1), background-position .3s ease;
	transition-delay: var(--ck-verzug, 0ms);
}
.ck-anim .ck-marker-link.ist-drin { background-size: 100% 0.42em; }
.ck-anim .ck-marker-link.ist-drin:hover { background-size: 100% 100%; background-position: 0 100%; transition-delay: 0ms; }
.ck-anim .ck-markiert--scroll { background-color: transparent; background-image: linear-gradient(var(--ck-akzent), var(--ck-akzent)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 1s cubic-bezier(.6,.05,.25,1) .15s; }
.ck-anim .ck-markiert--scroll.ist-drin { background-size: 100% 100%; }

@media (prefers-reduced-motion: reduce) {
	.ck-anim .ck-rein, .ck-anim .ck-rein img { opacity: 1; transform: none !important; transition: none; }
	.ck-anim .ck-marker-link, .ck-anim .ck-markiert--scroll { transition: none; background-size: 100% 0.42em; }
	.ck-anim .ck-markiert--scroll { background-size: 100% 100%; }
}
