/* ==========================================================================
   CLDerDozent V2 CKC – Header / Hauptmenü
   Position und Grundform (schwebende Leiste, „fixed“ beim Scrollen) kommen
   weiterhin aus dem Parent-Theme (#header). Hier nur der Inhalt.
   ========================================================================== */

.ckc-header {
	--ckc-accent: #CB2426;
	--ckc-accent-dark: #a81d1f;
	--ckc-accent-soft: #fbeaea;
	--ckc-ink: #1b1b1b;
	--ckc-ink-2: #4a4a4a;
	--ckc-ink-3: #767676;
	--ckc-line: #e4e4e4;
	--ckc-line-2: #d4d4d4;
	--ckc-bg: #F6F6F6;
	--ckc-paper: #ffffff;
	--ckc-shadow: 0 18px 40px rgba(27, 39, 53, .16);
	--ckc-display: 'Oswald', 'Arial Narrow', sans-serif;
	--ckc-text: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-family: var(--ckc-text);
	color: var(--ckc-ink);
}
:where(.ckc-header) a { color: inherit; text-decoration: none; }
:where(.ckc-header) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; margin: 0; }
:where(.ckc-header) ul { list-style: none; margin: 0; padding: 0; }
.ckc-header :focus-visible { outline: 2px solid var(--ckc-accent); outline-offset: 2px; }
.ckc-header .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---- Leiste: weiß, oben fest, volle Breite (überschreibt die schwebende Leiste des Parent-Themes) ---- */
#header.ckc-header,
#header.ckc-header.fixed {
	position: fixed; top: 0; left: 0; right: 0; width: 100%; height: 72px;
	padding: 0 28px; margin: 0;
	background: var(--ckc-paper); border-radius: 0;
	border-bottom: 1px solid var(--ckc-line);
	box-shadow: none; z-index: 100;
}
#header.ckc-header.fixed { box-shadow: 0 6px 18px rgba(27, 39, 53, .06); }
.admin-bar #header.ckc-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #header.ckc-header { top: 46px; } }
.ckc-bar { display: flex; align-items: center; gap: 28px; width: 100%; height: 100%; }
.ckc-logo { flex: none; display: block; }
.ckc-logo img { display: block; width: auto; height: auto; max-width: 174px; max-height: 50px; }
.ckc-logo span { font-family: var(--ckc-display); font-weight: 600; font-size: 22px; text-transform: uppercase; }

.ckc-nav { flex: 1 1 auto; min-width: 0; }
.ckc-nav__list { display: flex; align-items: center; gap: 4px; }
.ckc-top {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 6px;
	font-family: var(--ckc-text); font-weight: 600; font-size: 16px; line-height: 1.2;
	color: var(--ckc-ink); white-space: nowrap;
	transition: background-color .15s, color .15s;
}
.ckc-top span { font-weight: 600; }
.ckc-top:hover,
.ckc-top[aria-expanded="true"],
.ckc-nav__item.is-current > .ckc-top { background: var(--ckc-bg); color: var(--ckc-ink); }
.ckc-nav__item.is-current > .ckc-top { color: var(--ckc-accent); }
.ckc-chev { width: 12px; height: 12px; flex: none; opacity: .6; transition: transform .2s; }
.ckc-top[aria-expanded="true"] .ckc-chev,
.ckc-acc[aria-expanded="true"] .ckc-chev { transform: rotate(180deg); }

.ckc-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.ckc-icon {
	width: 40px; height: 40px; border-radius: 6px;
	display: grid; place-items: center; color: var(--ckc-ink-2);
}
.ckc-icon:hover, .ckc-icon[aria-expanded="true"] { background: var(--ckc-bg); color: var(--ckc-ink); }
.ckc-icon svg { width: 20px; height: 20px; display: block; }
.ckc-cta {
	display: inline-block; white-space: nowrap;
	background: var(--ckc-accent); color: #fff !important;
	font-family: var(--ckc-display); font-weight: 600; font-size: 17px; line-height: 1.2;
	letter-spacing: .04em; text-transform: uppercase;
	padding: 10px 18px; border-radius: 6px; margin-left: 6px;
	transition: background-color .15s;
}
.ckc-cta:hover { background: var(--ckc-accent-dark); }
.ckc-burger { display: none; }

/* ---- Aufklapp-Panels (Mega-Menü, Dropdowns, Suche) ----
   Der transparente obere Rand überbrückt die Lücke zur Leiste,
   damit das Panel beim Hinüberfahren mit der Maus offen bleibt. */
.ckc-panel {
	display: none;
	position: absolute; left: 0; right: 0; top: 100%;
	border-top: 1px solid var(--ckc-line);
	background-color: var(--ckc-paper);
	box-shadow: var(--ckc-shadow);
	max-height: calc(100vh - 72px); overflow-y: auto;
	z-index: 20; text-align: left;
}
.ckc-js .ckc-panel.is-open { display: block; }
.ckc-header:not(.ckc-js) .ckc-has-panel:hover > .ckc-panel,
.ckc-header:not(.ckc-js) .ckc-has-panel:focus-within > .ckc-panel { display: block; }

.ckc-grid {
	display: grid; gap: 32px; padding: 28px 28px 24px;
	grid-template-columns: repeat(var(--ckc-cols), minmax(0, 1fr));
}
.ckc-panel--mega .ckc-grid.has-aside { grid-template-columns: repeat(var(--ckc-cols), minmax(0, 1fr)) minmax(0, 1.15fr); }
.ckc-panel--drop .ckc-grid.has-aside { grid-template-columns: minmax(0, 1.1fr) repeat(var(--ckc-cols), minmax(0, 1fr)); }

.ckc-col__title {
	margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ckc-accent-soft);
	font-family: var(--ckc-display); font-weight: 600; font-size: 15px; line-height: 1.2;
	letter-spacing: .07em; text-transform: uppercase; color: var(--ckc-accent);
}
.ckc-col__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ckc-col ul { display: flex; flex-direction: column; gap: 2px; }
.ckc-col li a {
	display: block; padding: 5px 6px; margin-left: -6px; border-radius: 4px;
	font-size: 15px; line-height: 1.35; color: var(--ckc-ink-2);
}
.ckc-col li a:hover { background: var(--ckc-bg); color: var(--ckc-ink); }
.ckc-col li a b { display: block; color: var(--ckc-ink); font-weight: 600; }
.ckc-col li a small { display: block; font-size: 12.5px; color: var(--ckc-ink-3); }
.ckc-col li a.ckc-more { margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--ckc-accent); }

.ckc-side {
	background: var(--ckc-bg); border-radius: 8px; padding: 18px;
	display: flex; flex-direction: column; gap: 12px;
}
.ckc-side p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ckc-ink-2); }
.ckc-side .ckc-side__title { font-family: var(--ckc-display); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--ckc-ink); }
.ckc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ckc-chip {
	border: 1px solid var(--ckc-line-2); border-radius: 999px; background: var(--ckc-paper);
	padding: 4px 11px; font-size: 13px; font-weight: 600; line-height: 1.4;
}
.ckc-chip:hover { border-color: var(--ckc-accent); color: var(--ckc-accent); }
.ckc-side__termine { margin-top: auto; }
.ckc-side__termine p + p { margin-top: 6px; }
.ckc-side__termine a { color: var(--ckc-accent); font-weight: 600; }

.ckc-foot {
	grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px;
	padding-top: 14px; border-top: 1px solid var(--ckc-line);
	font-size: 14px; font-weight: 600;
}
.ckc-foot a { color: var(--ckc-ink-2); }
.ckc-foot a:hover { color: var(--ckc-accent); }

.ckc-lead p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ckc-ink-2); max-width: 36ch; }
.ckc-lead .ckc-lead__title { margin-bottom: 8px; font-family: var(--ckc-display); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--ckc-ink); }
.ckc-btn2 {
	display: inline-block; border: 1.5px solid var(--ckc-ink); border-radius: 6px;
	padding: 7px 14px; font-size: 14px; font-weight: 600;
}
.ckc-btn2:hover { background: var(--ckc-ink); color: #fff; }

/* ---- Suche ---- */
.ckc-search { display: flex; gap: 10px; align-items: center; }
.ckc-panel--search .ckc-search { padding: 18px 28px; }
.ckc-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px;
	border: 1px solid var(--ckc-line-2); border-radius: 6px; background: #fff;
	font: 16px var(--ckc-text); color: var(--ckc-ink);
}
.ckc-search input[type="search"]:focus { border-color: var(--ckc-accent); outline: none; }
.ckc-search .ckc-cta { margin: 0; }

/* ---- Schmale Desktops ---- */
@media only screen and (min-width: 1200px) and (max-width: 1365px) {
	.ckc-bar { gap: 16px; }
	.ckc-nav__list { gap: 0; }
	.ckc-top { padding: 10px 9px; font-size: 15px; }
	.ckc-right { gap: 4px; }
	.ckc-cta { padding: 10px 14px; margin-left: 2px; }
}

/* ---- Handy-/Tablet-Menü ---- */
.ckc-mnav { display: none; }

@media only screen and (max-width: 1199px) {
	.ckc-nav, .ckc-search-toggle, .ckc-right > .ckc-cta, .ckc-panel { display: none !important; }
	.ckc-burger { display: grid; }
	.ckc-mnav {
		position: absolute; left: 0; right: 0; top: 100%;
		border-top: 1px solid var(--ckc-line);
		background-color: var(--ckc-paper); box-shadow: var(--ckc-shadow);
		max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain;
		z-index: 20; text-align: left;
	}
	.ckc-mnav.is-open { display: block; }
	.ckc-mnav > ul > li { border-bottom: 1px solid var(--ckc-line); }
	.ckc-acc {
		width: 100%; display: flex; justify-content: space-between; align-items: center;
		padding: 16px 20px; font-weight: 600; font-size: 17px; line-height: 1.3; text-align: left;
	}
	.ckc-acc .ckc-chev { width: 14px; height: 14px; }
	.ckc-sub { display: none; background: var(--ckc-bg); padding: 6px 0 12px; }
	.ckc-acc[aria-expanded="true"] + .ckc-sub { display: block; }
	.ckc-sub .ckc-sub__title {
		margin: 12px 20px 4px; font-family: var(--ckc-display); font-weight: 600; font-size: 13px;
		letter-spacing: .08em; text-transform: uppercase; color: var(--ckc-accent);
	}
	.ckc-sub a { display: block; padding: 8px 20px 8px 28px; font-size: 15px; line-height: 1.35; color: var(--ckc-ink-2); }
	.ckc-sub a.ckc-more { color: var(--ckc-accent); font-weight: 600; }
	.ckc-mcta { display: block; margin: 20px; text-align: center; }
	.ckc-msearch { margin: 0 20px 18px; }
	.ckc-msearch .ckc-icon { flex: none; background: var(--ckc-bg); }
	.ckc-mlinks { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0 20px 24px; font-size: 14px; color: var(--ckc-ink-3); }
	.ckc-mlinks a:hover { color: var(--ckc-accent); }
}

@media only screen and (max-width: 991px) {
	#header.ckc-header, #header.ckc-header.fixed { padding: 0 16px; }
	.ckc-bar { gap: 12px; }
	.ckc-logo img { max-height: 42px; max-width: 150px; }
	.ckc-mnav {
		height: calc(100vh - 72px); height: calc(100dvh - 72px); max-height: none;
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ckc-header * { transition: none !important; }
}
