/* ==================== HUB-SEITEN — Flavor-Stil ==================== */

/* --- Hero --- */
.kk-hub-hero {
	position: relative;
	background: linear-gradient(135deg, #00385e 0%, var(--fl-blue-mid) 100%);
	padding: 160px 0 120px;
	overflow: hidden;
}

.kk-hub-hero-overlay {
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at 50% 50%, rgba(100,192,255,0.12) 0%, transparent 70%);
	pointer-events: none;
}

.kk-hub-hero-inner {
	position: relative; z-index: 1; max-width: 720px;
}

.kk-hub-hero-title {
	color: #fff;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 14px;
}

.kk-hub-hero-subtitle {
	color: rgba(255,255,255,0.8);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.7;
	margin: 0;
	max-width: 600px;
}

.kk-hub-hero-wave {
	position: absolute;
	bottom: -1px; left: 0; right: 0;
	z-index: 2; height: 80px;
	background: url("../img/wave-hero.svg") no-repeat bottom center;
	background-size: 100% 100%;
}

@media (max-width: 767px) {
	.kk-hub-hero { padding: 120px 0 80px; }
	.kk-hub-hero-title { font-size: 1.6rem; }
	.kk-hub-hero-subtitle { font-size: 0.9rem; }
	.kk-hub-hero-wave { height: 50px; }
}

/* --- Artikel-Seite --- */
.kk-hub-page {
	background: var(--fl-white);
}

.kk-hub-content {
	max-width: 780px;
	margin: 0 auto;
	padding: 48px 24px 72px;
}

.kk-hub-content p,
.kk-hub-content li {
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--fl-muted);
}

/* --- Intro --- */
.kk-intro {
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--fl-text);
	border: 1.5px solid var(--fl-blue-border);
	border-top: 3px solid var(--fl-blue);
	padding: 22px 24px;
	margin: 0 0 36px;
	background: var(--fl-white);
	border-radius: var(--fl-radius);
}

.kk-article-toc {
	background: var(--fl-white);
	border: 1.5px solid var(--fl-blue-border);
	border-top: 3px solid var(--fl-blue);
	border-radius: var(--fl-radius);
	padding: 22px 26px;
	margin: 0 0 40px;
}

.kk-article-toc h2 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--fl-heading);
	border-bottom: none;
}

.kk-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.kk-toc-list li {
	padding: 5px 0;
	border-bottom: 1px solid var(--fl-blue-bg);
}
.kk-toc-list li:last-child { border-bottom: none; }

.kk-toc-list a {
	color: var(--fl-blue-mid);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
}
.kk-toc-list a:hover { text-decoration: underline; }

/* --- Artikel-Body --- */
.kk-article-body { margin-top: 8px; }

.kk-article-body h2 {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--fl-heading);
	margin: 48px 0 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--fl-blue-border);
}
.kk-article-body h2:first-child { margin-top: 0; }

.kk-article-body h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--fl-heading);
	margin: 32px 0 12px;
}

.kk-article-body p {
	color: var(--fl-muted);
	line-height: 1.85;
	margin: 0 0 16px;
	font-size: 0.95rem;
}

.kk-article-body a {
	color: var(--fl-blue-mid);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}
.kk-article-body a:hover { color: var(--fl-blue-dark); text-decoration: underline; }

/* --- Listen --- */
.kk-content-list, .kk-article-body ul, .kk-article-body ol,
.flavor-main ul, .flavor-main ol {
	background: rgba(100,120,140,0.04);
	border: 1px solid rgba(100,120,140,0.1);
	border-radius: var(--fl-radius-sm);
	padding: 18px 24px 18px 28px;
	margin: 16px 0 24px;
	list-style: none;
}
.kk-content-list, .kk-article-body ul, .kk-article-body ol,
.flavor-main ul, .flavor-main ol {
	color: var(--fl-blue-dark);
}
.kk-content-list li, .kk-article-body ul li, .kk-article-body ol li,
.flavor-main ul li, .flavor-main ol li {
	color: inherit !important;
	line-height: 1.85;
	margin-bottom: 8px;
	font-size: 0.95rem;
	padding-left: 20px;
	position: relative;
}
.kk-content-list li:last-child, .kk-article-body ul li:last-child, .kk-article-body ol li:last-child,
.flavor-main ul li:last-child, .flavor-main ol li:last-child { margin-bottom: 0; }

/* UL: Spiegelstriche */
.kk-content-list li::before, .kk-article-body ul li::before,
.flavor-main ul li::before {
	content: '\2013'; /* Halbgeviertstrich – */
	position: absolute; left: 0; color: var(--fl-muted);
}

/* OL: Nummerierung */
.kk-article-body ol, .flavor-main ol { counter-reset: kk-ol; }
.kk-article-body ol li::before, .flavor-main ol li::before {
	counter-increment: kk-ol;
	content: counter(kk-ol) '.';
	position: absolute; left: 0; color: var(--fl-blue-dark); font-weight: 600;
}

/* CTA: 1:1 kopiert von flavor-cta-light + flavor-cta-light-blue + flavor-waved-alt */
.kk-cta-box {
	/* flavor-cta-light */
	padding: 80px 32px 100px;
	text-align: center;
	position: relative;
	/* flavor-cta-light-blue */
	background: #ddeefb;
	/* reset */
	border: none;
	border-radius: 0;
	margin: 48px -24px;
}
.kk-cta-box::before { content: none; }
.kk-cta-box::after { content: none; }
/* flavor-cta-light h2 — auf p angewandt weil Hub-HTML p statt h2 hat */
.kk-cta-box p {
	color: var(--fl-heading);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 10px;
}
/* flavor-btn — 1:1 kopiert */
a.kk-cta-button,
a.kk-cta-button:link,
a.kk-cta-button:visited {
	display: inline-block;
	padding: 14px 34px;
	font-size: 0.85rem;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent !important;
	line-height: 1.4;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-family: var(--fl-font);
	background: var(--fl-orange) !important;
	color: var(--fl-white) !important;
	border-color: var(--fl-orange) !important;
	margin-top: 8px;
}
/* flavor-btn:hover — 1:1 kopiert */
a.kk-cta-button:hover {
	background: rgba(255,146,0,0.85) !important;
	border-color: rgba(255,146,0,0.85) !important;
	color: var(--fl-white) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(255,255,255,0.3);
}

.kk-faq {
	background: var(--fl-white);
	border: 1.5px solid var(--fl-blue-border);
	border-top: 3px solid var(--fl-blue);
	border-radius: var(--fl-radius);
	padding: 26px 28px;
	margin: 40px 0;
}
.kk-faq > h2 {
	border-bottom: none;
	margin-top: 0;
	font-size: 1.2rem;
	font-weight: 700;
}
.kk-faq-item {
	border-bottom: 1px solid var(--fl-blue-border);
	padding: 14px 0;
}
.kk-faq-item:last-child { border-bottom: none; padding-bottom: 0; }

.kk-faq-item h3 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--fl-heading);
	margin: 0 0 6px;
}
.kk-faq-item p {
	color: var(--fl-muted);
	margin: 0;
	line-height: 1.75;
	font-size: 0.9rem;
}

.kk-fazit {
	background: var(--fl-white);
	border: 1.5px solid var(--fl-blue-border);
	border-top: 3px solid var(--fl-blue);
	border-radius: var(--fl-radius);
	padding: 24px 28px;
	margin: 40px 0;
}
.kk-fazit h2 {
	color: var(--fl-heading);
	border-bottom: none;
	margin-top: 0;
	font-size: 1.15rem;
	font-weight: 700;
}
.kk-fazit p {
	color: var(--fl-muted);
	margin: 0;
	line-height: 1.85;
	font-size: 0.95rem;
}

.kk-hub-content > *:empty { display: none; }

@media (max-width: 767px) {
	.kk-hub-content { padding: 28px 16px 48px; }
	.kk-cta-box { padding: 64px 18px; margin-left:-16px; margin-right:-16px; }
	.kk-faq { padding: 18px 18px; }
	.kk-intro { padding: 16px 16px; }
	.kk-article-toc { padding: 16px 18px; }
	.kk-article-body h2 { margin-top: 36px; }
}

/* ==================== RECHTSTEXTE (Impressum, DSE) ==================== */

/* Impressum-Bild mit Kontaktdaten */
.kk-legal-img { max-width: 280px; width: 100%; height: auto; margin: 32px 0; }

/* Abstände zwischen Überschriften und Absätzen in Rechtstexten */
.kk-legal h1 { margin-bottom: 32px; }
.kk-legal h2 { margin-top: 40px; margin-bottom: 16px; }
.kk-legal p  { margin-bottom: 16px; }

/* Kontaktformular */
.kk-contact-form { max-width: 560px; margin-top: 32px; }
.kk-form-group { margin-bottom: 20px; }
.kk-form-group label {
	display: block; margin-bottom: 6px;
	font-weight: 600; font-size: 0.95rem; color: var(--fl-heading);
}
.kk-required { color: #e04444; }
.kk-form-group input,
.kk-form-group textarea {
	width: 100%; padding: 12px 14px;
	font-family: var(--fl-font); font-size: 0.95rem; color: var(--fl-text);
	border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm);
	background: var(--fl-white); transition: border-color 0.2s;
}
.kk-form-group input:focus,
.kk-form-group textarea:focus {
	outline: none; border-color: var(--fl-blue-mid);
	box-shadow: 0 0 0 3px rgba(100,192,255,0.15);
}
.kk-form-group textarea { resize: vertical; min-height: 140px; }
.kk-form-submit {
	display: inline-block; padding: 12px 32px;
	font-family: var(--fl-font); font-size: 1rem; font-weight: 600;
	color: var(--fl-white); background: var(--fl-heading);
	border: none; border-radius: var(--fl-radius-sm); cursor: pointer;
	transition: background 0.2s;
}
.kk-form-submit:hover { background: var(--fl-blue-dark); }
.kk-form-success {
	margin-top: 24px; padding: 16px 20px;
	background: #eefbf3; border: 1px solid #b6e6cb; border-radius: var(--fl-radius-sm);
	color: #1a6b3c; font-size: 0.95rem;
}
.kk-form-error {
	margin: 16px 0; padding: 14px 18px;
	background: #fef2f2; border: 1px solid #f5c6c6; border-radius: var(--fl-radius-sm);
	color: #9b2c2c; font-size: 0.95rem;
}

/* Preis-/Feature-Karten (Preise-Seite, Über-uns-Seite) */
.kk-pricing-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0;
}
.kk-pricing-card {
	background: var(--fl-white); border: 1.5px solid var(--fl-blue-border);
	border-top: 3px solid var(--fl-blue); border-radius: var(--fl-radius); padding: 24px;
}
.kk-pricing-card h3 { margin-bottom: 8px; font-size: 1.05rem; color: var(--fl-heading); }
.kk-pricing-card p { font-size: 0.92rem; color: var(--fl-muted); margin: 0; }
.kk-pricing-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .kk-pricing-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
	.kk-pricing-grid, .kk-pricing-grid-4 { grid-template-columns: 1fr; }
}

/* Tech-Stack-Tags */
.kk-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.kk-tech-tag {
	background: var(--fl-blue-bg); border: 1px solid var(--fl-blue-border);
	border-radius: 6px; padding: 4px 12px; font-size: 0.85rem; color: var(--fl-heading);
}

/* DSE: WordPress-HTML-Block ohne eigene Wrapper-Klasse */
.flavor-main h1 { margin-bottom: 32px; }
.flavor-main h2 { margin-top: 40px; margin-bottom: 16px; }
.flavor-main h3 { margin-top: 28px; margin-bottom: 12px; }
.flavor-main h4 { margin-top: 20px; margin-bottom: 8px; }
.flavor-main p  { margin-bottom: 14px; }
/* Listen-Styles oben definiert */
