/* Badge: Positioniert ÜBER dem fixierten WhatsApp-Button (#ks-wa-btn bottom: 24px/56px bzw. 20px/50px).
   Verhindert jede Überlappung bei Erhalt beider Touch-Targets (WCAG 2.5.5).
   Desktop: 24px WA-Bottom + 56px WA-Höhe + 12px Gap = 92px. */
.ks-wissen-coach__badge {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9000;
	background: var(--ks-blue, #1510f0);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 20px;
	min-height: 56px;
	font-weight: 600;
	font-size: 15px;
	box-shadow: 0 8px 24px rgba(21, 16, 240, 0.35);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ks-wissen-coach__badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(21, 16, 240, 0.45);
}

/* Drawer: Schwebt oberhalb des Coach-Badges (92px + 56px + 12px Gap = 160px). */
.ks-wissen-coach__drawer {
	position: fixed;
	right: 24px;
	bottom: 92px;
	z-index: 9001;
	width: min(360px, calc(100vw - 40px));
	max-height: min(70vh, 520px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
	padding: 16px;
}

.ks-wissen-coach__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.ks-wissen-coach__close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	min-width: 32px;
	min-height: 32px;
}

.ks-wissen-coach__pillen {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.ks-wissen-coach__pille {
	text-align: left;
	background: #f2f1fe;
	color: #1510f0;
	border: 1px solid #d9d6fb;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	cursor: pointer;
}

.ks-wissen-coach__antwort {
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 12px;
	min-height: 20px;
}

.ks-wissen-coach__thinking {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #666;
	font-size: 13px;
	font-style: italic;
	padding: 4px 0;
}

.ks-wissen-coach__dots {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

.ks-wissen-coach__dots span {
	width: 6px;
	height: 6px;
	background: var(--ks-blue, #1510f0);
	border-radius: 50%;
	display: inline-block;
	animation: ksPulseDot 1.2s infinite ease-in-out both;
}

.ks-wissen-coach__dots span:nth-child(1) { animation-delay: -0.32s; }
.ks-wissen-coach__dots span:nth-child(2) { animation-delay: -0.16s; }
.ks-wissen-coach__dots span:nth-child(3) { animation-delay: 0s; }

@keyframes ksPulseDot {
	0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
	40% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.ks-wissen-coach__dots span {
		animation: none;
		opacity: 0.8;
	}
}

.ks-wissen-coach__zitate {
	font-size: 12px;
	color: #555;
	margin: 8px 0;
	padding-left: 18px;
}

.ks-wissen-coach__formular {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.ks-wissen-coach__formular input {
	flex: 1;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
}

.ks-wissen-coach__formular button {
	min-height: 44px;
	padding: 8px 16px;
	background: #1510f0;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.ks-wissen-coach__disclaimer {
	font-size: 11px;
	color: #888;
	margin: 0;
}

.ks-wissen-coach__more-link {
	display: inline-block;
	font-size: 13px;
	color: var(--ks-blue, #1510f0);
	margin: 6px 0 10px;
	text-decoration: underline;
	font-weight: 500;
}

.ks-wissen-coach__more-link:hover {
	text-decoration: none;
}

.ks-wissen-coach__cta {
	display: inline-block;
	margin-top: 4px;
	min-height: 44px;
	line-height: 44px;
	padding: 0 16px;
	background: #1510f0;
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

.ks-wissen-context-pille {
	display: block;
	margin-top: 8px;
	background: #f2f1fe;
	color: #1510f0;
	border: 1px solid #d9d6fb;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	cursor: pointer;
}

/* Mobil: Kompakter Badge rechtsbündig über WhatsApp (#ks-wa-btn bottom: 20px / right: 20px / 50px).
   Verhindert die bisherige Überlagerung der 100%-Bottom-Bar mit dem WhatsApp-Button.
   20px WA-Bottom + 50px WA-Höhe + 10px Gap = 80px. */
@media (max-width: 600px) {
	.ks-wissen-coach__badge {
		left: auto;
		right: 20px;
		bottom: 20px;
		width: auto;
		min-height: 48px;
		padding: 12px 18px;
		font-size: 14px;
		text-align: right;
	}
	.ks-wissen-coach__drawer {
		left: 12px;
		right: 12px;
		width: auto;
		bottom: 80px;
		max-height: min(65vh, 480px);
	}
}

/* Teaser-Sektion auf Startseite / Landingpages (Spec §3.2) */
.ks-wissen-teaser {
	background: #f8fafc;
	color: #0f172a;
	padding: 56px 20px;
	margin: 40px 0;
	border-radius: 20px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ks-wissen-teaser__wrap {
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
}

.ks-wissen-teaser__kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ks-blue, #1510f0);
	margin-bottom: 12px;
}

.ks-wissen-teaser h2 {
	font-size: clamp(22px, 3.5vw, 34px);
	font-weight: 800;
	line-height: 1.25;
	color: #0f172a;
	margin: 0 0 14px 0;
}

.ks-wissen-teaser p {
	font-size: clamp(15px, 1.8vw, 17px);
	color: #475569;
	line-height: 1.55;
	max-width: 660px;
	margin: 0 auto 24px auto;
}

.ks-wissen-teaser__pillen {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 24px;
}

.ks-wissen-teaser__pille {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #1e293b;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.ks-wissen-teaser__pille:hover {
	background: var(--ks-blue, #1510f0);
	border-color: var(--ks-blue, #1510f0);
	color: #ffffff;
	transform: translateY(-1px);
}

.ks-wissen-teaser__pille:focus-visible {
	outline: 2px solid var(--ks-blue, #1510f0);
	outline-offset: 2px;
}

.ks-wissen-teaser__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 600px;
	margin: 0 auto 20px auto;
}

.ks-wissen-teaser__input {
	flex: 1 1 300px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	padding: 13px 20px;
	font-size: 15px;
	color: #0f172a;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ks-wissen-teaser__input:focus-visible {
	border-color: var(--ks-blue, #1510f0);
	box-shadow: 0 0 0 3px rgba(21, 16, 240, 0.15);
	outline: 2px solid var(--ks-blue, #1510f0);
	outline-offset: 1px;
}

.ks-wissen-teaser .ks-btn {
	background: var(--ks-blue, #1510f0);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 13px 26px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.ks-wissen-teaser .ks-btn:hover {
	background: #0f0cb8;
}

.ks-wissen-teaser .ks-btn:active {
	transform: translateY(1px);
}

.ks-wissen-teaser .ks-btn:focus-visible {
	outline: 2px solid var(--ks-blue, #1510f0);
	outline-offset: 2px;
}

.ks-wissen-teaser__footer {
	margin-top: 14px;
}

.ks-wissen-teaser__archiv-link {
	color: var(--ks-blue, #1510f0);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color 0.15s;
}

.ks-wissen-teaser__archiv-link:hover {
	color: #0f0cb8;
}

.ks-wissen-teaser__archiv-link:focus-visible {
	outline: 2px solid var(--ks-blue, #1510f0);
	outline-offset: 2px;
}



/* CTA Konsolidierung (Neu ab 2026-09-25) */
.ks-wissen-coach__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.ks-coach-primary-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--nv-primary-accent, #1510f0);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(21, 16, 240, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ks-coach-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(21, 16, 240, 0.3);
}

.ks-coach-secondary-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.ks-coach-secondary-links a,
.ks-coach-secondary-links button {
    background: none;
    border: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.ks-coach-secondary-links a:hover,
.ks-coach-secondary-links button:hover {
    color: var(--nv-primary-accent, #1510f0);
}

.ks-coach-flow-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ks-coach-flow-btn:hover {
    background-color: #e2e8f0;
}

.ks-coach-back-btn {
    background: none;
    border: none;
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 0;
    align-self: flex-start;
}

/* CTA Konsolidierung (Neu ab 2026-09-25) */
.ks-wissen-coach__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    margin-top: 10px;
}

.ks-coach-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ks-coach-box-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.3;
}

.ks-coach-box-btn--primary {
    background-color: var(--nv-primary-accent, #1510f0);
    color: #ffffff !important;
    border: 1px solid var(--nv-primary-accent, #1510f0);
    box-shadow: 0 2px 4px rgba(21, 16, 240, 0.15);
}
.ks-coach-box-btn--primary:hover {
    background-color: #0d0a9e;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(21, 16, 240, 0.2);
}

.ks-coach-box-btn--secondary {
    background-color: #f8fafc;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}
.ks-coach-box-btn--secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.ks-coach-flow-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ks-coach-flow-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a !important;
}

.ks-coach-back-btn {
    background: none;
    border: none;
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 0;
    align-self: flex-start;
}

.ks-coach-box-btn--whatsapp {
    background-color: #25D366;
    color: #ffffff !important;
    border: 1px solid #25D366;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.15);
}
.ks-coach-box-btn--whatsapp:hover {
    background-color: #128C7E;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2);
}
