/* =========================================================
   CbK Systems — Theme Stylesheet
   Farben: Anthrazit #1E2328, Blau #0D47A1, Orange #FF4D00
   ========================================================= */

:root {
	--cbk-dark: #1E2328;
	--cbk-dark-2: #262c33;
	--cbk-blue: #0D47A1;
	--cbk-blue-light: #E6F0FA;
	--cbk-orange: #FF4D00;
	--cbk-orange-2: #E03E00;
	--cbk-gray-light: #F5F7FA;
	--cbk-white: #FFFFFF;
	--cbk-text: #2A2E33;
	--cbk-text-muted: #6B7280;
	--cbk-border: #E3E7EC;

	--cbk-font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
	--cbk-font-body: 'Inter', 'Segoe UI', sans-serif;

	--cbk-radius: 10px;
	--cbk-container: 1160px;
	--cbk-shadow: 0 10px 30px rgba(30, 35, 40, 0.08);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--cbk-font-body);
	color: var(--cbk-text);
	background: var(--cbk-white);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cbk-blue); text-decoration: none; }
a:hover { color: var(--cbk-orange); }
h1, h2, h3, h4 {
	font-family: var(--cbk-font-display);
	color: var(--cbk-dark);
	line-height: 1.2;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
:focus-visible {
	outline: 3px solid var(--cbk-blue);
	outline-offset: 2px;
}

.cbk-container {
	max-width: var(--cbk-container);
	margin: 0 auto;
	padding: 0 24px;
}

.cbk-text-orange { color: var(--cbk-orange); }

.cbk-eyebrow {
	display: inline-block;
	font-family: var(--cbk-font-display);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cbk-blue);
	margin-bottom: 0.6em;
}

.cbk-section { padding: 88px 0; }
.cbk-section--muted { background: var(--cbk-gray-light); }
.cbk-section__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 0.7em; }

/* ---------- Buttons ---------- */
.cbk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-family: var(--cbk-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.cbk-btn--primary {
	background: var(--cbk-orange);
	color: var(--cbk-white);
}
.cbk-btn--primary:hover {
	background: var(--cbk-orange-2);
	color: var(--cbk-white);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(255, 77, 0, 0.28);
}
.cbk-btn--secondary {
	background: var(--cbk-blue);
	color: var(--cbk-white);
}
.cbk-btn--secondary:hover {
	background: #0a3980;
	color: var(--cbk-white);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(13, 71, 161, 0.28);
}

/* ---------- Hexagon-Muster (Signature Element) ---------- */
.cbk-hero__hex,
.cbk-footer__hex {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpolygon points='30,0 90,0 120,52 90,104 30,104 0,52' fill='none' stroke='%23FFFFFF' stroke-opacity='0.06' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size: 220px 190px;
	background-repeat: repeat;
	opacity: 1;
}
.cbk-hero__hex {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='121' viewBox='0 0 140 121'%3E%3Cpolygon points='35,0 105,0 140,60.5 105,121 35,121 0,60.5' fill='none' stroke='%23FFFFFF' stroke-opacity='0.5' stroke-width='1.6'/%3E%3C/svg%3E");
	background-size: 240px 208px;
	opacity: 0.14;
	-webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0) 95%);
	mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0) 95%);
}

/* ---------- Header ---------- */
.cbk-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--cbk-border);
}
.cbk-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 14px 24px;
}
.cbk-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.cbk-header__logo img { height: 40px; width: auto; }
.cbk-nav { flex: 1; }
.cbk-nav__list {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cbk-nav__list a {
	font-family: var(--cbk-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--cbk-dark);
}
.cbk-nav__list a:hover { color: var(--cbk-orange); }
.cbk-header__cta { flex-shrink: 0; }

/* ---------- Sprachumschalter (DE/EN/ES) ---------- */
.cbk-lang-switch {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
}
.cbk-lang-switch__item {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 8px;
	border-radius: 999px;
	border: 1px solid transparent;
	color: var(--cbk-dark);
	opacity: 0.55;
	transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cbk-lang-switch__item:hover { opacity: 0.9; color: var(--cbk-dark); }
.cbk-lang-switch__item.is-active {
	opacity: 1;
	border-color: var(--cbk-border);
	background: var(--cbk-gray-light);
}
.cbk-flag {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	display: block;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.cbk-lang-switch__code {
	font-family: var(--cbk-font-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}
.cbk-nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
}
.cbk-nav__toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--cbk-dark);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.cbk-hero {
	position: relative;
	background: linear-gradient(135deg, var(--cbk-dark) 0%, var(--cbk-dark-2) 60%, #12324f 130%);
	overflow: hidden;
	padding: 120px 0 110px;
}
.cbk-hero__inner { position: relative; z-index: 2; max-width: 780px; }
.cbk-hero__headline {
	color: var(--cbk-white);
	font-size: clamp(2rem, 5vw, 3.4rem);
	margin-bottom: 0.5em;
}
.cbk-hero__sub {
	color: #C9D2DB;
	font-size: 1.15rem;
	max-width: 620px;
	margin-bottom: 1.8em;
}
.cbk-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Services / Leistungen ---------- */
.cbk-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 28px;
	margin-top: 40px;
}
.cbk-service-card {
	background: var(--cbk-white);
	border: 1px solid var(--cbk-border);
	border-radius: var(--cbk-radius);
	padding: 32px 26px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cbk-service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--cbk-shadow);
	border-color: transparent;
}
.cbk-service-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--cbk-blue-light);
	color: var(--cbk-blue);
	margin-bottom: 18px;
}
.cbk-service-card__icon svg { width: 30px; height: 30px; }
.cbk-service-card h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.cbk-service-card p { color: var(--cbk-text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- About Teaser ---------- */
.cbk-about-teaser { background: var(--cbk-gray-light); }
.cbk-about-teaser__inner { max-width: 720px; }
.cbk-link-arrow {
	display: inline-flex;
	align-items: center;
	font-family: var(--cbk-font-display);
	font-weight: 600;
	color: var(--cbk-dark);
}
.cbk-link-arrow:hover { color: var(--cbk-orange); }

/* ---------- CTA Banner ---------- */
.cbk-cta-banner {
	background: linear-gradient(120deg, var(--cbk-blue) 0%, #0a3980 100%);
	color: var(--cbk-white);
	text-align: center;
	padding: 80px 0;
}
.cbk-cta-banner h2 { color: var(--cbk-white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cbk-cta-banner p { color: #D6E3F5; margin-bottom: 1.6em; }

/* ---------- Generic Page Hero ---------- */
.cbk-page-hero {
	background: var(--cbk-gray-light);
	padding: 70px 0 50px;
	border-bottom: 1px solid var(--cbk-border);
}
.cbk-page-hero__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.cbk-page-content { max-width: 780px; }

/* ---------- Unternehmen: Range-Hero ---------- */
.cbk-unternehmen-intro {
	position: relative;
	overflow: hidden;
}
.cbk-unternehmen-intro__bg {
	position: absolute;
	inset: 0;
	background-image: url("../images/unternehmen-hero-bg.jpg");
	background-position: top right;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.35;
	z-index: 0;
}
.cbk-unternehmen-intro > .cbk-page-hero,
.cbk-unternehmen-intro > .cbk-section {
	position: relative;
	z-index: 1;
	background: transparent;
}
.cbk-page-hero--range {
	min-height: 220px;
	display: flex;
	align-items: center;
	padding: 32px 0;
}
.cbk-page-hero--range .cbk-page-hero__title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cbk-page-hero__lede { max-width: 420px; color: var(--cbk-text-muted); font-size: 0.98rem; margin-top: 0.5em; }

/* ---------- Produkt-Teaser ---------- */
.cbk-products__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	margin-top: 32px;
}
.cbk-product-card {
	background: var(--cbk-white);
	border: 1px solid var(--cbk-border);
	border-radius: var(--cbk-radius);
	padding: 30px 24px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cbk-product-card:hover { transform: translateY(-4px); box-shadow: var(--cbk-shadow); }
.cbk-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--cbk-blue-light);
	color: var(--cbk-blue);
	margin-bottom: 16px;
}
.cbk-product-card__media svg { width: 28px; height: 28px; }
.cbk-product-card h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.cbk-product-card p { color: var(--cbk-text-muted); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Wer sind wir (Das Unternehmen) ---------- */
.cbk-wer-sind-wir {
	position: relative;
	overflow: hidden;
	background: var(--cbk-gray-light);
}
.cbk-wer-sind-wir__bg {
	position: absolute;
	inset: 0;
	background-image: url("../images/wer-sind-wir-bg.jpg");
	background-position: center right;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.16;
}
.cbk-wer-sind-wir .cbk-container { position: relative; z-index: 1; }
.cbk-wer-sind-wir__text { max-width: 700px; font-size: 1.02rem; margin-bottom: 2em; }
.cbk-wer-sind-wir__grid { margin-top: 0; }
.cbk-content-placeholder {
	background: #FFF6EF;
	border: 1px dashed var(--cbk-orange);
	border-radius: var(--cbk-radius);
	padding: 16px 20px;
	font-size: 0.92rem;
	color: #7a3d00;
	margin-bottom: 2em;
}
.cbk-legal h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* ---------- Team ---------- */
.cbk-team__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 28px;
	margin-top: 24px;
}
.cbk-team__grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.cbk-team-card { text-align: center; }
.cbk-team-card__photo {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--cbk-blue-light), var(--cbk-gray-light));
	border: 2px dashed var(--cbk-border);
	margin: 0 auto 16px;
}
.cbk-team-card__photo--filled {
	background-size: cover;
	background-position: center;
	border: 0;
}
.cbk-team-card h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.cbk-team-card p { color: var(--cbk-text-muted); margin-bottom: 0; }
.cbk-team-card__role { font-weight: 600; color: var(--cbk-blue); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5em !important; }
.cbk-team-card__desc { font-size: 0.94rem; line-height: 1.55; }

/* ---------- Team-Seite: Hexagon-Wasserzeichen ---------- */
.cbk-team-page { position: relative; }
.cbk-team-page__watermark {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='121' viewBox='0 0 140 121'%3E%3Cpolygon points='35,0 105,0 140,60.5 105,121 35,121 0,60.5' fill='none' stroke='%230D47A1' stroke-opacity='0.4' stroke-width='1.8'/%3E%3C/svg%3E");
	background-size: 240px 208px;
	background-repeat: repeat;
	opacity: 0.75;
	-webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0) 92%);
	mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0) 92%);
}
.cbk-team-page > .cbk-page-hero,
.cbk-team-page > .cbk-section {
	position: relative;
	z-index: 1;
	background: transparent;
}
.cbk-section--translucent { background: rgba(230, 240, 250, 0.45); }

/* ---------- Kontakt ---------- */
.cbk-kontakt__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}
.cbk-kontakt__list { list-style: none; padding: 0; margin: 1.4em 0; }
.cbk-kontakt__list li { margin-bottom: 1em; }
.cbk-kontakt__map {
	border-radius: var(--cbk-radius);
	overflow: hidden;
	border: 1px solid var(--cbk-border);
	margin-top: 1.6em;
}
.cbk-kontakt__map iframe { width: 100%; height: 300px; border: 0; display: block; }

.cbk-form-wrap, .cbk-kontakt__form-wrap {
	background: var(--cbk-gray-light);
	border-radius: var(--cbk-radius);
	padding: 32px;
}
.cbk-form__row { margin-bottom: 18px; }
.cbk-form__row label {
	display: block;
	font-family: var(--cbk-font-display);
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
	color: var(--cbk-dark);
}
.cbk-form__row input,
.cbk-form__row textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--cbk-border);
	border-radius: 8px;
	font-family: var(--cbk-font-body);
	font-size: 0.98rem;
	background: var(--cbk-white);
}
.cbk-form__row input:focus,
.cbk-form__row textarea:focus {
	border-color: var(--cbk-blue);
	outline: none;
}
.cbk-form__honeypot { position: absolute; left: -9999px; opacity: 0; }
.cbk-alert {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 0.95rem;
}
.cbk-alert--success { background: #E7F6EC; color: #1E7A3B; border: 1px solid #B7E4C5; }
.cbk-alert--error { background: #FDECEA; color: #A31810; border: 1px solid #F5C2BC; }

/* ---------- Footer ---------- */
.cbk-footer {
	position: relative;
	background: var(--cbk-dark);
	color: #B9C1C9;
	padding: 70px 0 0;
	overflow: hidden;
}
.cbk-footer__hex { opacity: 1; }
.cbk-footer__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 50px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cbk-footer__logo { height: 44px; width: auto; margin-bottom: 14px; }
.cbk-footer__brand p { color: #8E98A1; font-size: 0.92rem; }
.cbk-footer__heading {
	color: var(--cbk-white);
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 1em;
}
.cbk-footer__list { list-style: none; margin: 0; padding: 0; }
.cbk-footer__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 0.92rem;
}
.cbk-footer__list a { color: #B9C1C9; }
.cbk-footer__list a:hover { color: var(--cbk-orange); }
.cbk-footer__list svg { flex-shrink: 0; margin-top: 3px; color: var(--cbk-orange); }
.cbk-footer__bottom {
	position: relative;
	z-index: 2;
	padding: 22px 0;
	font-size: 0.85rem;
	color: #7A828A;
}

/* ---------- Blog / Index Fallback ---------- */
.cbk-post-card { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--cbk-border); }
.cbk-post-card h2 { font-size: 1.3rem; }
.cbk-post-card__excerpt { color: var(--cbk-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.cbk-footer__inner { grid-template-columns: 1fr 1fr; }
	.cbk-kontakt__grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
	.cbk-nav { position: fixed; inset: 70px 0 0 0; background: var(--cbk-white); transform: translateY(-110%); transition: transform 0.25s ease; z-index: 90; padding: 24px; overflow-y: auto; }
	.cbk-nav.is-open { transform: translateY(0); }
	.cbk-nav__list { flex-direction: column; gap: 4px; }
	.cbk-nav__list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--cbk-border); }
	.cbk-nav__toggle { display: flex; }
	.cbk-header__cta { display: none; }
	.cbk-hero { padding: 90px 0 70px; }
	.cbk-section { padding: 56px 0; }
	.cbk-footer__inner { grid-template-columns: 1fr; }
	.cbk-page-hero--range { padding: 40px 0; }
	.cbk-unternehmen-intro__bg { opacity: 0.2; }
}

/* ---------- Kontakt: Datenschutz-Checkbox ---------- */
.cbk-form__consent-label {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--cbk-text-muted);
}
.cbk-form__consent-label input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}
.cbk-form__consent-label a { color: var(--cbk-blue); text-decoration: underline; }

/* ---------- Home: Hero-Schlagwörter ---------- */
.cbk-hero__keywords {
	color: var(--cbk-orange);
	font-family: var(--cbk-font-display);
	font-weight: 600;
	font-size: clamp(1rem, 2vw, 1.25rem);
	letter-spacing: 0.02em;
	margin: 0 0 1em;
}

/* ---------- Home: Das Unternehmen (Textabschnitt) ---------- */
.cbk-unternehmen-home { background: var(--cbk-gray-light); }
.cbk-unternehmen-home__inner { max-width: 760px; }
.cbk-unternehmen-home__text {
	font-size: 1.1rem;
	color: var(--cbk-text);
	margin-bottom: 0;
}
