/*
Theme Name:  KcalFox Child
Theme URI:   https://kcalfox.com/
Description: Child-Theme von GeneratePress für kcalfox.com. Farben und Schrift wie in der App, alles vom eigenen Server.
Author:      KcalFox
Template:    generatepress
Version:     1.0.0
Text Domain: kcalfox-child
*/

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('assets/fonts/manrope.woff2') format('woff2');
}

:root {
	--kf-bg: #f2f7f5;
	--kf-surface: #ffffff;
	--kf-ink: #0f3b44;
	--kf-petrol: #0f6e74;
	--kf-petrol-dunkel: #0a5357;
	--kf-mint: #7fd6c2;
	--kf-gold: #d39b1c;
	--kf-gold-hell: #fbf0d4;
	--kf-fett: #c4673f;
	--kf-muted: #4e6a70;
	--kf-linie: #e1ebe8;
	--kf-rot: #b23a5a;
	--kf-gruen: #1d7a4f;
	--kf-radius: 16px;
	--kf-radius-gross: 22px;
	--kf-schrift: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--kf-breite: 760px;
}

/* Grundlagen */
body {
	background: var(--kf-bg);
	color: var(--kf-ink);
	font-family: var(--kf-schrift);
	font-size: 18px;
	line-height: 1.7;
	overflow-x: clip;
}

h1, h2, h3, h4 {
	color: var(--kf-ink);
	font-family: var(--kf-schrift);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-wrap: balance;
}

h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 8px; }
h2 { font-size: clamp(24px, 4.5vw, 30px); margin: 1.8em 0 0.6em; }
h3 { font-size: 21px; margin: 1.4em 0 0.4em; }

p { text-wrap: pretty; }

/* Jeder Textlink ist unterstrichen (Regel wie bei beeventure.de), auch in Tabellen. */
a { color: var(--kf-petrol); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--kf-petrol-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--kf-gold); outline-offset: 2px; border-radius: 6px; }

button, input, select, textarea { font-family: var(--kf-schrift); }

/* Inhaltsbreite: gut lesbar, Werkzeuge dürfen breiter sein */
.separate-containers .inside-article,
.one-container .site-content { background: transparent; padding: 0; }
.site-content { padding: 24px 20px 48px; }
.entry-content > *,
.entry-header { max-width: var(--kf-breite); margin-left: auto; margin-right: auto; }
.entry-content > .kf-werkzeug,
.entry-content > .kf-tabelle-rahmen { max-width: 860px; }
.entry-meta, .post-image, .comments-area { display: none; }

/* Kopf: bleibt oben stehen, Menü als Umschalter wie in der App */
.site-header {
	background: rgba(255, 255, 255, 0.88);
	border-bottom: 1px solid var(--kf-linie);
	position: sticky;
	top: 0;
	z-index: 50;
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}
.admin-bar .site-header { top: 32px; }
.inside-header { align-items: center; display: flex; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 10px 20px; }
.kf-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--kf-ink); font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.02em; }
.kf-logo img { width: 40px; height: 40px; }
.kf-logo:hover, .kf-logo:focus { color: var(--kf-ink); text-decoration: none; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a { color: var(--kf-ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.kf-kopf-app {
	align-items: center;
	align-self: center;
	background: var(--kf-petrol);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(15, 110, 116, 0.25);
	color: #fff;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	gap: 6px;
	line-height: 1.3;
	margin-left: 14px;
	padding: 10px 18px;
	text-decoration: none;
	transition: background-color .2s, transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.kf-kopf-app::after { content: '→'; margin-left: 6px; transition: transform .2s; }
.kf-kopf-app:hover, .kf-kopf-app:focus { background: var(--kf-petrol-dunkel); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(15, 110, 116, 0.32); }
.kf-kopf-app:hover::after { transform: translateX(3px); }

@media (min-width: 769px) {
	.inside-header { min-height: 72px; }
	.main-navigation { margin-left: auto; }
	.main-navigation .inside-navigation { align-items: center; display: flex; padding: 0; }
	.main-navigation .main-nav > ul {
		background: var(--kf-bg);
		border: 1px solid var(--kf-linie);
		border-radius: 999px;
		display: flex;
		gap: 2px;
		padding: 4px;
	}
	.main-navigation .main-nav > ul > li > a {
		border-radius: 999px;
		line-height: 1.3;
		padding: 9px 18px;
		transition: background-color .2s, color .2s, box-shadow .2s;
	}
	.main-navigation .main-nav > ul > li > a:hover { background: rgba(255, 255, 255, 0.7); color: var(--kf-petrol); }
	.main-navigation .main-nav > ul > li[class*="current-menu-"] > a {
		background: #fff;
		box-shadow: 0 1px 2px rgba(15, 59, 68, 0.08), 0 2px 8px rgba(15, 59, 68, 0.06);
		color: var(--kf-petrol);
	}
}

@media (max-width: 768px) {
	.inside-header { padding: 8px 14px; }
	.kf-kopf-app { display: none; }
	.main-navigation, .main-navigation .menu-toggle { background: transparent; }
	.main-navigation .menu-toggle { border: 1px solid var(--kf-linie); border-radius: 12px; color: var(--kf-ink); line-height: 1; }
	.main-navigation .menu-toggle:hover, .main-navigation.toggled .menu-toggle { background: var(--kf-bg); }
	.has-inline-mobile-toggle #site-navigation.toggled .inside-navigation > .kf-kopf-app { display: inline-flex !important; margin: 4px 20px 16px; order: 5; }
	#site-navigation.toggled .inside-navigation { display: flex; flex-direction: column; align-items: flex-start; }
	#site-navigation.toggled .main-nav { width: 100%; }
	.inside-header { flex-wrap: wrap; min-height: 60px; row-gap: 0; }
	.site-branding { display: flex; align-items: center; line-height: 1; }
	.kf-logo { font-size: 20px; }
	.kf-logo img { width: 36px; height: 36px; }
	#mobile-menu-control-wrapper { align-items: center; display: flex; gap: 8px; margin-left: auto; }
	.kf-kopf-app.kf-kopf-app-mobil { display: inline-flex; font-size: 14px; margin: 0; padding: 8px 14px; box-shadow: none; }
	.kf-kopf-app.kf-kopf-app-mobil::after { display: none; }
	.main-navigation .menu-toggle { align-items: center; display: inline-flex; height: 42px; justify-content: center; width: 42px; padding: 0; }
	#site-navigation:not(.toggled) { height: 0; margin: 0; overflow: hidden; }
	.main-navigation.toggled .main-nav > ul { border-top: 1px solid var(--kf-linie); padding: 6px 0 10px; }
	.main-navigation.toggled .main-nav ul li a { border-radius: 12px; line-height: 1.4; padding: 12px 20px; }
	.main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a { background: var(--kf-bg); color: var(--kf-petrol); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (min-width: 769px) { .kf-kopf-app-mobil { display: none !important; } }
@media (max-width: 359px) { .kf-kopf-app.kf-kopf-app-mobil { display: none; } }

/* Listen: Aufzählungszeichen bleiben innerhalb der Spalte */
.entry-content ul:not([class*="kf-"]),
.entry-content ol:not([class*="kf-"]) { padding-left: 1.5em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content li::marker { color: var(--kf-petrol); font-weight: 700; }

/* Kopfzeile der Seite */
.kf-meta { color: var(--kf-muted); font-size: 15px; margin: 0 0 24px; }

/* Brotkrümel (Yoast) */
.kf-krumen { color: var(--kf-muted); font-size: 14px; max-width: var(--kf-breite); margin: 0 auto 12px; }

/* Kasten „Kurz gesagt“ */
.kf-kurz {
	background: var(--kf-surface);
	border: 1px solid var(--kf-linie);
	border-left: 6px solid var(--kf-mint);
	border-radius: var(--kf-radius);
	margin: 24px auto;
	padding: 18px 22px 6px;
}
.kf-kurz-titel { font-weight: 800; margin: 0 0 4px; color: var(--kf-petrol); text-transform: uppercase; font-size: 14px; letter-spacing: 0.06em; }

/* Knöpfe */
.kf-knopf {
	background: var(--kf-petrol);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	margin: 6px 0;
	min-height: 48px;
	padding: 12px 22px;
	text-decoration: none;
}
.kf-knopf:hover, .kf-knopf:focus { background: var(--kf-petrol-dunkel); color: #fff; }
.kf-knopf-hell { background: var(--kf-surface); color: var(--kf-petrol); border: 2px solid var(--kf-petrol); }
.kf-knopf-hell:hover, .kf-knopf-hell:focus { background: var(--kf-bg); color: var(--kf-petrol-dunkel); }

/* App-Kasten */
.kf-app {
	align-items: flex-start;
	background: var(--kf-ink);
	border-radius: var(--kf-radius-gross);
	color: #e8f3f0;
	display: flex;
	gap: 18px;
	margin: 36px auto;
	padding: 24px;
}
.kf-app img { flex: none; border-radius: 14px; }
.kf-app-titel { color: #fff; font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.kf-app p { margin-bottom: 10px; }
.kf-app .kf-knopf { background: var(--kf-mint); color: var(--kf-ink); }
.kf-app .kf-knopf:hover, .kf-app .kf-knopf:focus { background: #a3e6d7; color: var(--kf-ink); }
.kf-app-klein { font-size: 14px; color: #bfdad6; margin: 4px 0 0; }
@media (max-width: 480px) { .kf-app { flex-direction: column; padding: 20px; } }

/* Werkzeuge (Umrechner, Rechner, Quiz) */
.kf-werkzeug {
	background: var(--kf-surface);
	border: 1px solid var(--kf-linie);
	border-radius: var(--kf-radius-gross);
	box-shadow: 0 10px 30px -18px rgba(15, 59, 68, 0.35);
	margin: 28px auto;
	padding: 22px;
}
.kf-werkzeug-titel { font-size: 22px; margin: 0 0 14px; }
.kf-feld { margin-bottom: 14px; position: relative; min-width: 0; }
.kf-feld label, .kf-feld-titel { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.kf-feld-reihe { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kf-werkzeug input[type="search"],
.kf-werkzeug input[type="number"],
.kf-werkzeug select {
	background: var(--kf-bg);
	border: 2px solid var(--kf-linie);
	border-radius: 12px;
	color: var(--kf-ink);
	font-size: 17px;
	min-height: 48px;
	padding: 10px 12px;
	width: 100%;
	max-width: 100%;
}
.kf-werkzeug input:focus, .kf-werkzeug select:focus { border-color: var(--kf-petrol); outline: none; background: #fff; }
.kf-werkzeug input::placeholder { color: #6f878c; }
.kf-hinweis { color: var(--kf-muted); font-size: 14px; margin: 6px 0 0; }
.kf-umschalter { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.kf-umschalter label { margin: 0; }
.kf-umschalter input { position: absolute; opacity: 0; pointer-events: none; }
.kf-umschalter label {
	border: 2px solid var(--kf-linie);
	border-radius: 999px;
	cursor: pointer;
	font-weight: 700;
	padding: 9px 18px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.kf-umschalter label:has(input:checked) { background: var(--kf-petrol); border-color: var(--kf-petrol); color: #fff; }
.kf-umschalter label:has(input:focus-visible) { outline: 3px solid var(--kf-gold); outline-offset: 2px; }

/* Trefferliste der Live-Suche */
.kf-rg .kf-ohne-js-wahl { margin-top: 8px; }
.kf-rg.kf-bereit .kf-ohne-js-wahl { display: none; }
.kf-rg:not(.kf-bereit) #kf-rg-suche, .kf-rg:not(.kf-bereit) #kf-rg-hinweis { display: none; }
.kf-treffer {
	background: #fff;
	border: 2px solid var(--kf-petrol);
	border-radius: 12px;
	box-shadow: 0 12px 28px -12px rgba(15, 59, 68, 0.4);
	left: 0;
	list-style: none;
	margin: 4px 0 0;
	max-height: 300px;
	overflow-y: auto;
	padding: 4px;
	position: absolute;
	right: 0;
	z-index: 20;
}
.kf-treffer li { border-radius: 8px; cursor: pointer; padding: 8px 10px; line-height: 1.35; }
.kf-treffer li:hover, .kf-treffer li[aria-selected="true"] { background: var(--kf-bg); }
.kf-treffer-art { display: block; color: var(--kf-muted); font-size: 13px; }
.kf-leer { color: var(--kf-muted); cursor: default; }

/* Ergebnis */
.kf-ergebnis { display: block; background: var(--kf-bg); border-radius: var(--kf-radius); padding: 16px 18px; margin-top: 8px; }
.kf-ergebnis-gross { font-size: 20px; line-height: 1.4; margin: 0 0 10px; }
.kf-ergebnis-gross strong { color: var(--kf-petrol); }
.kf-ergebnis-zwei { margin-top: 16px; }
.kf-ergebnis-info, .kf-ergebnis-tipp { font-size: 15px; color: var(--kf-muted); margin: 6px 0 0; }
.kf-ergebnis-tipp { color: var(--kf-ink); }
.kf-werte { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (max-width: 420px) { .kf-werte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kf-werte li { background: #fff; border-radius: 12px; padding: 8px 10px; text-align: center; }
.kf-wert { display: block; font-size: 19px; font-weight: 800; }
.kf-wert-name { display: block; font-size: 13px; color: var(--kf-muted); }
.kf-fehler { color: var(--kf-rot); font-weight: 700; margin: 0; }
.kf-marke { background: var(--kf-gold-hell); border-radius: 999px; color: #6b4b00; font-size: 12px; font-weight: 800; padding: 2px 8px; white-space: nowrap; }
.kf-marke-bls { background: #e3eef0; color: var(--kf-petrol-dunkel); }

/* Tabellen */
.kf-tabelle-rahmen { overflow-x: auto; margin: 20px auto; border-radius: var(--kf-radius); border: 1px solid var(--kf-linie); background: #fff; }
.kf-tabelle { border-collapse: collapse; font-size: 16px; margin: 0; width: 100%; border: 0; }
.kf-tabelle caption { caption-side: top; font-weight: 700; padding: 12px 14px 4px; text-align: left; }
.kf-tabelle th, .kf-tabelle td { border: 0; border-bottom: 1px solid var(--kf-linie); padding: 9px 12px; text-align: left; vertical-align: top; }
.kf-tabelle thead th { font-size: 14px; color: var(--kf-muted); }
.kf-tabelle td { white-space: nowrap; }
.kf-gruppe th { background: var(--kf-bg); color: var(--kf-petrol); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.kf-art { display: block; color: var(--kf-muted); font-size: 13px; font-weight: 400; }
.kf-tabelle-klein { margin: 12px 0 4px; background: #fff; border-radius: 12px; }
.kf-balken-zelle { width: 35%; }
.kf-balken { display: block; height: 10px; border-radius: 99px; background: var(--kf-mint); margin-top: 8px; }
.kf-quelle { color: var(--kf-muted); font-size: 14px; }

/* Quiz */
.kf-quiz-stand { color: var(--kf-muted); font-size: 14px; margin: 0; }
.kf-quiz-frage { font-size: 20px; font-weight: 800; margin: 4px 0 12px; }
.kf-quiz-antworten { display: grid; gap: 8px; margin-bottom: 12px; }
.kf-quiz-antwort {
	background: var(--kf-bg);
	border: 2px solid var(--kf-linie);
	border-radius: 12px;
	color: var(--kf-ink);
	cursor: pointer;
	font-size: 17px;
	font-weight: 600;
	min-height: 48px;
	padding: 10px 14px;
	text-align: left;
}
.kf-quiz-antwort:hover:not(:disabled),
.kf-quiz-antwort:focus:not(:disabled) { border-color: var(--kf-petrol); background: #fff; color: var(--kf-ink); }
.kf-quiz-antwort:disabled, .kf-quiz-antwort.kf-richtig, .kf-quiz-antwort.kf-falsch { color: var(--kf-ink); }
.kf-quiz-antwort:disabled { cursor: default; opacity: 0.7; }
.kf-quiz-antwort.kf-richtig { border-color: var(--kf-gruen); background: #e4f4ec; opacity: 1; }
.kf-quiz-antwort.kf-richtig::after { content: ' ✓'; color: var(--kf-gruen); }
.kf-quiz-antwort.kf-falsch { border-color: var(--kf-rot); background: #fbe9ee; opacity: 1; }
.kf-quiz-antwort.kf-falsch::after { content: ' ✗'; color: var(--kf-rot); }
.kf-quiz-erkl { background: var(--kf-bg); border-radius: 12px; padding: 12px 14px; }
.kf-quiz-ende:focus { outline: none; }

/* Häufige Fragen: Karten mit Fragezeichen und Plus, das sich zum Kreuz dreht */
.entry-content details {
	background: #fff;
	border: 1px solid var(--kf-linie);
	border-radius: var(--kf-radius);
	box-shadow: 0 1px 2px rgba(15, 59, 68, 0.04);
	margin: 12px auto;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
	interpolate-size: allow-keywords;
}
.entry-content details:hover { border-color: #c6dcd6; box-shadow: 0 4px 16px rgba(15, 59, 68, 0.07); }
.entry-content details[open] { border-color: var(--kf-mint); box-shadow: 0 6px 22px rgba(15, 110, 116, 0.10); }
.entry-content summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 17px;
	font-weight: 700;
	gap: 14px;
	line-height: 1.4;
	list-style: none;
	padding: 16px 18px;
}
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::before {
	align-items: center;
	background: var(--kf-gold-hell);
	border-radius: 10px;
	color: #8a6410;
	content: '?';
	display: flex;
	flex: 0 0 34px;
	font-size: 17px;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	transition: background-color .2s, color .2s;
}
.entry-content summary::after {
	background:
		linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
		var(--kf-bg);
	border-radius: 50%;
	color: var(--kf-petrol);
	content: '';
	flex: 0 0 30px;
	height: 30px;
	margin-left: auto;
	transition: transform .25s ease, background-color .2s;
}
.entry-content details[open] summary::before { background: var(--kf-petrol); color: #fff; }
.entry-content details[open] summary::after { transform: rotate(45deg); }
.entry-content summary:hover::after { background-color: #e3f3ee; }
.entry-content summary:focus-visible { outline-offset: -3px; border-radius: var(--kf-radius); }
.entry-content details > :not(summary) { color: var(--kf-ink); margin: 0; padding: 0 18px 18px 66px; }
.entry-content details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.entry-content details[open]::details-content { block-size: auto; }
@media (max-width: 480px) {
	.entry-content summary { font-size: 16px; gap: 12px; padding: 14px; }
	.entry-content summary::before { flex-basis: 30px; height: 30px; }
	.entry-content details > :not(summary) { padding: 0 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.entry-content details::details-content, .entry-content summary::after { transition: none; }
}

/* Bildunterschriften einheitlich */
figcaption, .wp-element-caption { color: var(--kf-muted); font-size: 14px; text-align: left; margin-top: 6px; }

/* Fuß */
.site-footer .site-info { background: var(--kf-ink); color: #bfdad6; font-size: 15px; }
.site-footer .site-info a { color: #fff; }
.kf-fuss-quelle { font-size: 13px; }

/* Startseite: Kacheln zu den Rechnern */
.kf-kacheln { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 20px auto; padding: 0; }
.kf-kacheln li { background: #fff; border: 1px solid var(--kf-linie); border-radius: var(--kf-radius); padding: 16px 18px; }
.kf-kacheln a { font-weight: 800; font-size: 18px; }
.kf-kacheln p { font-size: 15px; color: var(--kf-muted); margin: 4px 0 0; }

@media (max-width: 480px) {
	body { font-size: 17px; }
	.site-content { padding: 16px 14px 40px; }
	.kf-werkzeug { padding: 16px; border-radius: var(--kf-radius); }
	.kf-tabelle { font-size: 15px; }
	.kf-tabelle th, .kf-tabelle td { padding: 8px; }
}

/* Handy: Faktor-Tabelle ohne kcal-Spalten (die zeigt der Umrechner), damit nichts seitlich geschoben werden muss */
@media (max-width: 560px) {
	.kf-tabelle-rahmen .kf-tabelle:not(.kf-tabelle-klein) th:nth-child(n+4),
	.kf-tabelle-rahmen .kf-tabelle:not(.kf-tabelle-klein) td:nth-child(n+4) { display: none; }
	.kf-tabelle td .kf-marke { display: table; margin-top: 4px; }
	.kf-tabelle caption { font-size: 15px; }
}
@media (max-width: 560px) {
	.kf-tabelle td { white-space: normal; }
	.kf-tabelle .kf-balken-zelle { width: 22%; }
}

.kf-mz-reihe { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }

/* Startseite: Kopfbereich mit App-Vorschau */
.home .site-content { padding-top: 8px; }
.home .entry-content > h2 { text-align: center; }
.entry-content > .kf-held { max-width: 1080px; }
.kf-held {
	align-items: center;
	background: radial-gradient(120% 120% at 100% 0%, #dff3ec 0%, var(--kf-bg) 55%);
	border: 1px solid var(--kf-linie);
	border-radius: 28px;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	margin: 8px auto 32px;
	padding: 48px 48px 44px;
}
.kf-held h1 { font-size: clamp(32px, 5.2vw, 50px); margin: 8px 0 14px; }
.kf-held-marke { color: var(--kf-petrol); font-size: 14px; font-weight: 800; letter-spacing: .04em; margin: 0; text-transform: uppercase; }
.kf-held-unter { color: var(--kf-muted); font-size: 19px; margin: 0 0 22px; }
.kf-held-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.kf-held-knoepfe .kf-knopf { margin: 0; }
.kf-held-klein { color: var(--kf-muted); font-size: 15px; margin: 0; }
.kf-held-klein::before { content: '✓ '; color: var(--kf-gruen); font-weight: 800; }
.kf-held-bild { display: flex; justify-content: center; }
.kf-handy {
	background: #fff;
	border: 1px solid var(--kf-linie);
	border-radius: 30px;
	box-shadow: 0 24px 60px rgba(15, 59, 68, 0.16), 0 4px 14px rgba(15, 59, 68, 0.06);
	max-width: 300px;
	padding: 18px 18px 14px;
	transform: rotate(2deg);
	width: 100%;
}
.kf-handy p, .kf-handy ul { margin: 0; }
.kf-handy-tag { font-size: 13px; font-weight: 800; color: var(--kf-muted); text-transform: uppercase; letter-spacing: .05em; }
.kf-ring { display: grid; place-items: center; margin: 6px 0 10px; }
.kf-ring > * { grid-area: 1 / 1; }
.kf-ring p { text-align: center; line-height: 1.15; }
.kf-ring strong { display: block; font-size: 28px; font-weight: 800; }
.kf-ring span { font-size: 12px; color: var(--kf-muted); }
.kf-makros, .kf-eintraege { list-style: none; padding: 0; }
.kf-makros li { align-items: center; display: grid; font-size: 12px; gap: 8px; grid-template-columns: 58px minmax(0, 1fr) 42px; margin: 0 0 6px; }
.kf-makros b { background: var(--kf-bg); border-radius: 99px; height: 8px; position: relative; overflow: hidden; }
.kf-makros b::after { background: var(--f); border-radius: 99px; content: ''; inset: 0 auto 0 0; position: absolute; width: var(--w); }
.kf-makros em, .kf-eintraege em { font-style: normal; font-weight: 700; text-align: right; }
.kf-eintraege { border-top: 1px solid var(--kf-linie); margin-top: 10px !important; padding-top: 6px; }
.kf-eintraege li { display: flex; font-size: 13px; justify-content: space-between; gap: 8px; padding: 5px 0; margin: 0; }
.kf-eintraege em::after { content: ' kcal'; color: var(--kf-muted); font-weight: 500; }

/* Startseite: Schritte und Vorteile als Karten */
.entry-content > .kf-schritte, .entry-content > .kf-vorteile { max-width: 1080px; }
.entry-content ol.kf-schritte { counter-reset: schritt; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; }
.kf-schritte li { background: #fff; border: 1px solid var(--kf-linie); border-radius: var(--kf-radius); counter-increment: schritt; margin: 0; padding: 20px 20px 18px; }
.kf-schritte li::before { align-items: center; background: var(--kf-petrol); border-radius: 12px; color: #fff; content: counter(schritt); display: flex; font-weight: 800; height: 36px; justify-content: center; margin-bottom: 10px; width: 36px; }
.kf-schritte strong { display: block; font-size: 19px; }
.entry-content ul.kf-vorteile { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; padding: 0; }
.kf-vorteile li { background: #fff; border: 1px solid var(--kf-linie); border-radius: var(--kf-radius); margin: 0; padding: 18px 20px; position: relative; }
.kf-vorteile li::before { background: var(--kf-mint); border-radius: 99px; content: ''; display: block; height: 4px; margin-bottom: 12px; width: 36px; }
.kf-vorteile strong { font-size: 18px; }
.kf-vorteile p { color: var(--kf-muted); font-size: 16px; margin: 4px 0 0; }

@media (max-width: 800px) {
	.kf-held { grid-template-columns: minmax(0, 1fr); padding: 28px 20px 24px; border-radius: 22px; }
	.kf-held-unter { font-size: 17px; }
	.kf-handy { transform: none; max-width: 280px; }
}
@media (max-width: 400px) {
	.kf-held-knoepfe .kf-knopf { text-align: center; width: 100%; }
}

/* Cookie-Hinweis (Complianz): mittig, KcalFox-Farben, Ablehnen gleichwertig zu Akzeptieren */
body {
	--cmplz_banner_width: 480px;
	--cmplz_banner_border_radius: 20px 20px 20px 20px;
	--cmplz_banner_border_color: #e1ebe8;
	--cmplz_banner_border_width: 1px 1px 1px 1px;
	--cmplz_title_font_size: 18px;
	--cmplz_text_font_size: 15px;
	--cmplz_link_font_size: 15px;
	--cmplz_category_body_font_size: 14px;
	--cmplz_text_color: #17323a;
	--cmplz_hyperlink_color: #0f6e74;
	--cmplz_button_font_size: 16px;
	--cmplz_button_border_radius: 999px 999px 999px 999px;
	--cmplz_button_accept_background_color: #0f6e74;
	--cmplz_button_accept_border_color: #0f6e74;
	--cmplz_button_accept_text_color: #ffffff;
	--cmplz_button_deny_background_color: #0f6e74;
	--cmplz_button_deny_border_color: #0f6e74;
	--cmplz_button_deny_text_color: #ffffff;
	--cmplz_button_settings_background_color: #ffffff;
	--cmplz_button_settings_border_color: #0f6e74;
	--cmplz_button_settings_text_color: #0f6e74;
	--cmplz_slider_active_color: #0f6e74;
	--cmplz_category_header_always_active_color: #0f6e74;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner { box-shadow: 0 18px 50px rgba(15, 59, 68, 0.25); font-family: inherit; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title { font-weight: 800; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn { font-weight: 700; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-links a { text-decoration: underline; text-underline-offset: 3px; }
.kf-fuss-knopf {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.kf-fuss-knopf:hover { text-decoration-thickness: 2px; }
/* Cookie-Richtlinie steht in der Datenschutzerklärung: doppelten Link ausblenden */
#cmplz-cookiebanner-container .cmplz-cookiebanner a[class="cmplz-link cookie-statement"] { display: none; }

/* Mega-Menü (Max Mega Menu, Design in inc/megamenu.php): Aufbau wie auf beeventure.de */
@media (min-width: 769px) {
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu {
		box-shadow: 0 24px 40px rgba(15, 59, 68, 0.25);
		padding: 28px max(24px, calc((100vw - 1200px) / 2 + 44px)) 36px !important;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-kf-mm-alles {
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
		margin-bottom: 18px;
		padding-bottom: 20px;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-kf-mm-alles > a.mega-menu-link {
		align-items: center;
		display: flex;
		gap: 16px;
		justify-content: space-between;
	}
	#mega-menu-wrap-primary .kf-mm-titel { color: #fff; font-size: 24px; font-weight: 800; }
	#mega-menu-wrap-primary .kf-mm-knopf {
		background: #f3c969;
		border-radius: 999px;
		color: #0f3b44;
		font-size: 15px;
		font-weight: 800;
		padding: 9px 18px;
		white-space: nowrap;
	}
	#mega-menu-wrap-primary .kf-mm-knopf::after { content: " →"; }
	#mega-menu-wrap-primary li.mega-kf-mm-alles > a:hover .kf-mm-knopf,
	#mega-menu-wrap-primary li.mega-kf-mm-alles > a:focus .kf-mm-knopf { background: #fff; }
	/* Nur die Seite markieren, auf der man ist, nicht jedes Thema, das auf sie verlinkt */
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor:not(.mega-current-menu-item):not(.mega-toggle-on) > a.mega-menu-link {
		background: transparent;
		color: #17323a;
	}
}
@media (max-width: 768px) {
	/* Max Mega Menu versteckt den Burger von GeneratePress; wir behalten ihn, das Mega-Menü liegt im aufgeklappten Bereich */
	body.mega-menu-primary .main-navigation button.menu-toggle { display: inline-flex; }
}
@media (max-width: 768px) {
	.has-inline-mobile-toggle #site-navigation.toggled .inside-navigation > #mega-menu-wrap-primary { display: block; width: 100%; }
	#mega-menu-wrap-primary .kf-mm-titel { display: none; }
	#mega-menu-wrap-primary .kf-mm-knopf::after { content: " →"; }
}
@media (min-width: 769px) and (max-width: 1024px) {
	/* Tablet: Menü kompakter, damit „App öffnen“ in derselben Zeile bleibt */
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link { font-size: 15px; padding: 0 10px; }
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item { margin: 0 1px; }
}
/* Menüpfeile ohne Symbolschrift (Dashicons werden für Besucher nicht geladen) */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	display: inline-block;
	font-family: inherit;
	height: 7px;
	margin: -4px 0 0 2px;
	transform: rotate(45deg);
	transition: transform 0.2s;
	vertical-align: middle;
	width: 7px;
}
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children.mega-toggle-on > a.mega-menu-link > span.mega-indicator::after {
	margin-top: 2px;
	transform: rotate(-135deg);
}
@media (min-width: 769px) {
	/* Aktuelle Seite nur dezent markieren (Strich unter dem Wort); die Pille bekommt nur das geöffnete Thema */
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item:not(.mega-toggle-on) > a.mega-menu-link,
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor:not(.mega-toggle-on) > a.mega-menu-link {
		background: transparent;
		color: #0f6e74;
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 8px;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor:not(.mega-current-menu-item):not(.mega-toggle-on) > a.mega-menu-link {
		color: #17323a;
		text-decoration: none;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item:not(.mega-toggle-on) > a.mega-menu-link:hover {
		background: #e6f4f1;
	}
}
/* GeneratePress färbt jeden Knopf beim Überfahren dunkel mit weißer Schrift; unsere hellen Knöpfe behalten ihre Farben */
.kf-fuss-knopf:hover, .kf-fuss-knopf:focus { background: none; color: inherit; }
.main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus { color: var(--kf-ink); }
