/*
Theme Name: Tierkosten-Kompass
Description: Theme für Tierkosten-Kompass: „Weil dein Tier Familie ist.“ Ratgeber zu Tierarztkosten, Vorsorge, Versicherungen und Produkten für Hund und Katze. Farben Waldgrün, Creme, Salbei und Terrakotta. Schriften lokal gespeichert (keine Verbindung zu Google).
Author: Andreas Stroms
Version: 2.2.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tierkosten-kompass
*/

/* ==========================================================================
   Design-Tokens (Farben stehen zentral in theme.json, hier Kurzformen)
   ========================================================================== */
:root {
	--tkk-wald: var(--wp--preset--color--wald);
	--tkk-wald-dunkel: var(--wp--preset--color--wald-dunkel);
	--tkk-creme: var(--wp--preset--color--creme);
	--tkk-salbei: var(--wp--preset--color--salbei);
	--tkk-salbei-hell: var(--wp--preset--color--salbei-hell);
	--tkk-terrakotta: var(--wp--preset--color--terrakotta);
	--tkk-terrakotta-hell: var(--wp--preset--color--terrakotta-hell);
	--tkk-schrift: var(--wp--preset--color--schrift);
	--tkk-leise: var(--wp--preset--color--schrift-leise);
	--tkk-linie: var(--wp--preset--color--linie);
	--tkk-radius: 20px;
	--tkk-radius-gross: 28px;
	--tkk-schatten: 0 1px 2px rgba(20, 51, 42, 0.06), 0 8px 24px rgba(20, 51, 42, 0.07);
	--tkk-schatten-hover: 0 2px 4px rgba(20, 51, 42, 0.08), 0 16px 40px rgba(20, 51, 42, 0.12);
	--tkk-uebergang: 0.22s ease;
}

/* ==========================================================================
   Grundlagen
   ========================================================================== */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks > * + * { margin-block-start: 0; }
p, li { max-width: 72ch; }
.has-text-align-center { margin-inline: auto; }
::selection { background: var(--tkk-salbei); }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--tkk-wald);
	outline-offset: 2px;
	border-radius: 6px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

.skip-link:focus { background: #fff; color: var(--tkk-wald); padding: 12px 16px; z-index: 100000; }

/* Kleine Überzeile über Überschriften */
.tkk-eyebrow {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tkk-terrakotta);
	margin-bottom: 8px !important;
}
.tkk-lead { font-size: var(--wp--preset--font-size--gross); color: var(--tkk-leise); line-height: 1.55; }
.tkk-akzent { color: var(--tkk-terrakotta); }

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.tkk-kopf {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 246, 238, 0.94);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--tkk-linie);
}
.admin-bar .tkk-kopf { top: 32px; }
/* Auf dem Handy ohne Unschärfe-Effekt, sonst bleibt das Menü-Overlay in der Kopfzeile gefangen */
@media (max-width: 599px) { .tkk-kopf { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--tkk-creme); } }
@media (max-width: 782px) { .admin-bar .tkk-kopf { top: 0; } }

.tkk-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tkk-wald-dunkel); }
.tkk-logo-link:hover { color: var(--tkk-wald-dunkel); }
.tkk-logo-link img { width: 42px; height: 42px; flex: none; }
.tkk-logo-link span { font-family: var(--wp--preset--font-family--nunito); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }

.tkk-kopf .wp-block-navigation a { text-decoration: none; }
.tkk-kopf .wp-block-navigation-item__content { padding: 6px 2px; position: relative; }
.tkk-kopf .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--tkk-terrakotta); transform: scaleX(0); transform-origin: left; transition: transform var(--tkk-uebergang);
}
.tkk-kopf .wp-block-navigation-item__content:hover::after,
.tkk-kopf .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--tkk-creme) !important; padding: 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 22px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
@media (min-width: 600px) and (max-width: 1080px) {
	.tkk-kopf .wp-block-navigation { --navigation-layout-gap: 16px; font-size: 16px; }
}

/* ==========================================================================
   Abschnitte und Flächen
   ========================================================================== */
.tkk-abschnitt { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.tkk-abschnitt--eng { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.tkk-flaeche-salbei { background: var(--tkk-salbei-hell); }
.tkk-flaeche-wald { background: var(--tkk-wald); color: #fff; }
.tkk-flaeche-wald :where(h1, h2, h3, h4) { color: #fff; }
.tkk-flaeche-wald a:where(:not(.wp-element-button)) { color: #fff; }
.tkk-flaeche-wald .tkk-eyebrow { color: #F2C9B3; }
.tkk-flaeche-wald .tkk-lead, .tkk-flaeche-wald p { color: #E3ECE6; }

.tkk-kopfbereich { margin-bottom: clamp(28px, 4vw, 48px) !important; }
.tkk-kopfbereich > * { margin-top: 0; }
.tkk-kopfbereich .tkk-lead { margin-top: 14px; }

/* ==========================================================================
   Startseite: Bild oben (Hero)
   ========================================================================== */
.tkk-hero { position: relative; overflow: hidden; }
.tkk-hero::before {
	content: ""; position: absolute; right: -12vw; top: -18vw; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
	border-radius: 50%; background: radial-gradient(circle, var(--tkk-salbei-hell) 0%, rgba(238, 243, 234, 0) 70%); pointer-events: none;
}
.tkk-hero > * { position: relative; }
.tkk-hero h1 { margin-top: 0; }
.tkk-hero-bild { position: relative; margin: 0; }
.tkk-hero-bild img {
	width: 100%; aspect-ratio: 4 / 4.2; height: auto; object-fit: cover; object-position: 40% center;
	border-radius: 240px 240px var(--tkk-radius-gross) var(--tkk-radius-gross);
	box-shadow: var(--tkk-schatten);
}
@media (max-width: 781px) {
	.tkk-hero-bild img { aspect-ratio: 4 / 3.4; border-radius: 160px 160px var(--tkk-radius) var(--tkk-radius); }
}
.tkk-faktenkarte {
	background: #fff; border-radius: 18px; box-shadow: var(--tkk-schatten-hover); padding: 16px 20px !important;
	max-width: 300px; margin-top: -72px !important; margin-left: auto !important; margin-right: 0 !important; position: relative; z-index: 3;
	border-left: 4px solid var(--tkk-terrakotta);
}
.tkk-faktenkarte p { margin: 0; font-size: 15px; line-height: 1.45; }
.tkk-faktenkarte .tkk-faktenkarte__zahl { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 22px; color: var(--tkk-wald-dunkel); margin: 2px 0; }
.tkk-faktenkarte .tkk-faktenkarte__klein { color: var(--tkk-leise); font-size: 13px; }
@media (max-width: 781px) { .tkk-faktenkarte { margin-top: -56px !important; margin-right: 12px !important; } }

/* Kleine Einstiegs-Links unter dem Hero-Text */
.tkk-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.tkk-chips li { margin: 0; }
.tkk-chips a {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
	background: #fff; border: 1px solid var(--tkk-linie); color: var(--tkk-wald-dunkel); font-weight: 600; font-size: 15px; text-decoration: none;
	transition: border-color var(--tkk-uebergang), background var(--tkk-uebergang);
}
.tkk-chips a:hover { border-color: var(--tkk-wald); background: var(--tkk-salbei-hell); }
.tkk-vertrauenszeile { font-size: 15px; color: var(--tkk-leise); }

/* ==========================================================================
   Karten
   ========================================================================== */
.tkk-karte, .is-style-karte {
	background: #fff; border: 1px solid var(--tkk-linie); border-radius: var(--tkk-radius);
	padding: clamp(20px, 2.4vw, 28px) !important; height: 100%;
	transition: transform var(--tkk-uebergang), box-shadow var(--tkk-uebergang), border-color var(--tkk-uebergang);
}
.tkk-karte > :first-child, .is-style-karte > :first-child { margin-top: 0; }
.tkk-karte h3 { margin-bottom: 8px; }
.tkk-karte p { color: var(--tkk-leise); }
.tkk-karte--link { position: relative; }
.tkk-karte--link:hover, .tkk-karte--link:focus-within { transform: translateY(-3px); box-shadow: var(--tkk-schatten-hover); border-color: #d6cdbd; }
.tkk-karte--link h3 a { text-decoration: none; color: inherit; }
.tkk-karte--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tkk-karte--link h3 a:focus-visible { outline: none; }
.tkk-karte--link:focus-within { outline: 3px solid var(--tkk-wald); outline-offset: 2px; }
.tkk-mehr { font-weight: 600; color: var(--tkk-wald) !important; margin-top: auto; }
.tkk-mehr::after { content: " →"; transition: margin var(--tkk-uebergang); }
.tkk-karte--link:hover .tkk-mehr::after { margin-left: 4px; }

/* Karte mit Bild oben */
.tkk-bildkarte { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.tkk-bildkarte .wp-block-image { margin: 0; }
.tkk-bildkarte .wp-block-image img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; transition: transform 0.5s ease; }
.tkk-bildkarte:hover .wp-block-image img { transform: scale(1.03); }
.tkk-bildkarte__text { padding: 20px 24px 24px !important; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tkk-bildkarte__text > * { margin: 0 !important; }
.tkk-kategorie { font-family: var(--wp--preset--font-family--nunito); font-size: 13px !important; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tkk-terrakotta) !important; }

/* Große Kacheln Hund / Katze */
.tkk-tierkachel { position: relative; border-radius: var(--tkk-radius-gross); overflow: hidden; background: var(--tkk-wald); color: #fff; min-height: 100%; display: flex; flex-direction: column; }
.tkk-tierkachel .wp-block-image { margin: 0; }
.tkk-tierkachel .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; display: block; transition: transform 0.6s ease; }
.tkk-tierkachel:hover .wp-block-image img { transform: scale(1.03); }
.tkk-tierkachel__text { padding: 24px 28px 28px !important; flex: 1; }
.tkk-tierkachel__text > * { margin-top: 0; }
.tkk-tierkachel h3 a { color: #fff; text-decoration: none; }
.tkk-tierkachel h3 a:hover { text-decoration: underline; }
.tkk-tierkachel h3 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.tkk-tierkachel p { color: #E3ECE6; }
.tkk-tierkachel ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.tkk-tierkachel li { margin: 0; }
.tkk-tierkachel li a { color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.tkk-tierkachel li a::before { content: "› "; color: #F2C9B3; }
.tkk-tierkachel li a:hover { text-decoration: underline; }
.tkk-tierkachel--katze { background: #5B3B2E; }
@media (max-width: 480px) { .tkk-tierkachel ul { grid-template-columns: 1fr; } }

/* Themenkarten mit Symbol */
.tkk-symbol { width: 52px; height: 52px; border-radius: 16px; background: var(--tkk-salbei); position: relative; margin-bottom: 16px !important; }
.tkk-symbol::after {
	content: ""; position: absolute; inset: 13px; background: var(--tkk-wald);
	-webkit-mask: var(--tkk-maske) center / contain no-repeat; mask: var(--tkk-maske) center / contain no-repeat;
}
.tkk-symbol--praxis { --tkk-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.tkk-symbol--op { --tkk-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 14 10'/%3E%3Cpath d='m14 10 3-6 3 3-6 3'/%3E%3Cpath d='M4 20h6'/%3E%3C/svg%3E"); }
.tkk-symbol--schild { --tkk-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.tkk-symbol--herz { --tkk-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.tkk-symbol--kalender { --tkk-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.tkk-symbol--rechner { --tkk-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='3'/%3E%3Cpath d='M8 7h8M8 12h2M14 12h2M8 16h2M14 16h2'/%3E%3C/svg%3E"); }
.tkk-symbol--pfote { --tkk-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cellipse cx='12' cy='16' rx='4.5' ry='3.8'/%3E%3Cellipse cx='6' cy='10' rx='2' ry='2.6'/%3E%3Cellipse cx='18' cy='10' rx='2' ry='2.6'/%3E%3Cellipse cx='9.3' cy='5.6' rx='2' ry='2.6'/%3E%3Cellipse cx='14.7' cy='5.6' rx='2' ry='2.6'/%3E%3C/svg%3E"); }
.tkk-symbol--buch { --tkk-maske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 19V5M9 8h6'/%3E%3C/svg%3E"); }

/* ==========================================================================
   Kästen: Hinweis, Quelle, Platzhalter
   ========================================================================== */
.tkk-hinweis, .is-style-hinweis {
	background: var(--tkk-terrakotta-hell); border-radius: 16px; padding: 18px 22px !important;
	border-left: 4px solid var(--tkk-terrakotta);
}
.tkk-hinweis > *, .is-style-hinweis > * { margin-top: 0; margin-bottom: 0.5em; }
.tkk-hinweis > :last-child, .is-style-hinweis > :last-child { margin-bottom: 0; }

.tkk-quelle, .is-style-quelle {
	background: var(--tkk-salbei-hell); border-radius: 16px; padding: 18px 22px !important; font-size: 16px;
}
.tkk-quelle > *, .is-style-quelle > * { margin-top: 0; margin-bottom: 0.4em; }
.tkk-quelle > :last-child, .is-style-quelle > :last-child { margin-bottom: 0; }

.tkk-platzhalter, .is-style-platzhalter {
	border: 2px dashed #C9A48F; border-radius: 16px; padding: 18px 22px !important; background: #FFFCF8; color: #6A4A3C;
}
.tkk-platzhalter::before, .is-style-platzhalter::before {
	content: "Platzhalter: fehlt noch"; display: inline-block; font-family: var(--wp--preset--font-family--nunito); font-weight: 800; font-size: 12px;
	letter-spacing: 0.06em; text-transform: uppercase; background: #C9A48F; color: #fff; border-radius: 999px; padding: 2px 10px; margin-bottom: 10px;
}
.tkk-platzhalter > *, .is-style-platzhalter > * { margin-top: 0; margin-bottom: 0.4em; }

/* Fakten-Zahlen */
.tkk-zahlen { gap: 16px !important; }
.tkk-zahl { background: #fff; border-radius: var(--tkk-radius); padding: 22px 24px !important; border: 1px solid var(--tkk-linie); }
.tkk-zahl > * { margin: 0 !important; }
.tkk-zahl strong, .tkk-zahl .tkk-zahl__wert { display: block; font-family: var(--wp--preset--font-family--fraunces); font-size: clamp(26px, 3vw, 32px); color: var(--tkk-wald-dunkel); font-weight: 600; line-height: 1.15; }
.tkk-zahl .tkk-zahl__text { color: var(--tkk-leise); font-size: 15px; margin-top: 6px !important; }

/* Aufzählung mit Haken */
.tkk-haken { list-style: none; padding-left: 0; }
.tkk-haken li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.tkk-haken li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--tkk-salbei) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4A37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tkk-flaeche-wald .tkk-haken li::before { background-color: rgba(255, 255, 255, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2C9B3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }

/* Nummerierte Schritte */
.tkk-schritte { counter-reset: tkk-schritt; list-style: none; padding: 0; }
.tkk-schritte li { counter-increment: tkk-schritt; position: relative; padding-left: 52px; margin-bottom: 18px; min-height: 36px; }
.tkk-schritte li::before {
	content: counter(tkk-schritt); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
	background: var(--tkk-terrakotta); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 16px;
}

/* ==========================================================================
   Tabellen
   ========================================================================== */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border: 1px solid var(--tkk-linie); border-radius: 16px; overflow: hidden; font-size: 16px; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--tkk-linie); padding: 12px 16px; text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--tkk-wald); color: #fff; font-weight: 600; border-bottom: 0; }
.wp-block-table tbody tr:nth-child(even) td { background: #FCFAF6; }
.wp-block-table tbody tr:last-child td, .wp-block-table tfoot td { border-bottom: 0; }
.wp-block-table tfoot td { background: var(--tkk-salbei-hell); font-weight: 600; }
.wp-block-table figcaption { font-size: 14px; color: var(--tkk-leise); text-align: left; margin-top: 8px; }
.wp-block-table.has-fixed-layout table, .wp-block-table table.has-fixed-layout { table-layout: auto; }
.is-style-vergleich td:first-child { font-weight: 600; color: var(--tkk-wald-dunkel); }
@media (max-width: 600px) {
	.wp-block-table table { font-size: 15px; }
	.wp-block-table th, .wp-block-table td { padding: 10px 12px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.wp-element-button, .wp-block-button__link { transition: background-color var(--tkk-uebergang), transform var(--tkk-uebergang), box-shadow var(--tkk-uebergang); }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(169, 81, 47, 0.25); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--tkk-wald); color: var(--tkk-wald); background: transparent; padding: 12px 24px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tkk-wald); color: #fff; box-shadow: none; }
.tkk-flaeche-wald .wp-block-button.is-style-outline > .wp-block-button__link { border-color: #fff; color: #fff; }
.tkk-flaeche-wald .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--tkk-wald); }
.wp-block-button.is-style-wald > .wp-block-button__link, .tkk-knopf-wald .wp-block-button__link { background: var(--tkk-wald); }

/* Partnerlinks: immer mit „Anzeige“ */
.wp-block-button.is-style-anzeige { position: relative; }
.wp-block-button.is-style-anzeige::before {
	content: "Anzeige"; display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #5A5A5A; text-transform: none;
}
.tkk-partner { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tkk-partner__anzeige { font-size: 12px; font-weight: 600; color: #5A5A5A; }
.tkk-partner__link {
	display: inline-block; background: var(--tkk-terrakotta); color: #fff !important; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.tkk-partner__link:hover { background: #8E4226; }
.tkk-partner-platzhalter { border: 2px dashed #C9A48F; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #6A4A3C; background: #FFFCF8; }

/* ==========================================================================
   Brotkrumen und Seitenkopf
   ========================================================================== */
.tkk-brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; font-size: 15px; color: var(--tkk-leise); }
.tkk-brotkrumen li { margin: 0; }
.tkk-brotkrumen li + li::before { content: "›"; margin: 0 8px; color: #9AA39D; }
.tkk-brotkrumen a { color: var(--tkk-leise); text-decoration: none; }
.tkk-brotkrumen a:hover { color: var(--tkk-wald); text-decoration: underline; }
.tkk-seitenkopf { background: var(--tkk-salbei-hell); border-bottom: 1px solid var(--tkk-linie); }
.tkk-seitenkopf .wp-block-post-title { margin-top: 18px; font-size: clamp(34px, 5vw, 52px); }
.tkk-seitenkopf .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--gross); color: var(--tkk-leise); margin-top: 12px; }
.tkk-seitenkopf .wp-block-post-excerpt__excerpt { margin: 0; }
.tkk-stand { font-size: 14px; color: var(--tkk-leise); }
.tkk-stand .wp-block-post-date { display: inline; }

/* Inhaltsbereich normaler Seiten */
.tkk-inhalt h2 { margin-top: 1.8em; }
.tkk-inhalt h3 { margin-top: 1.5em; }
.tkk-inhalt .wp-block-columns { margin-top: 24px; }

/* ==========================================================================
   Bilder
   ========================================================================== */
.tkk-rundbild img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--tkk-radius-gross); display: block; }
.tkk-bogenbild img { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 560px; object-fit: cover; border-radius: 200px 200px var(--tkk-radius-gross) var(--tkk-radius-gross); display: block; }

/* Hinweis „KI-Bild“ unten rechts im Foto (Blockstil „KI-Bild“) */
.wp-block-image.is-style-ki-bild,
.wp-block-cover.is-style-ki-bild { position: relative; }
.wp-block-image.is-style-ki-bild::after,
.wp-block-cover.is-style-ki-bild::after {
	content: "KI-Bild"; position: absolute; right: 10px; bottom: 7px; z-index: 2;
	color: rgba(255, 255, 255, 0.85); font-size: 10px; line-height: 1.4; letter-spacing: 0.02em;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.6); pointer-events: none;
}
.wp-block-image.is-style-ki-bild img { display: block; }
/* Platzhalter-Grafik statt Foto */
.logged-in .wp-block-image.is-style-platzhalter-bild::after {
	content: "Platzhalter: Foto folgt"; position: absolute; left: 12px; top: 12px; z-index: 2;
	background: rgba(255, 255, 255, 0.9); color: #6A4A3C; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.wp-block-image.is-style-platzhalter-bild { position: relative; }

/* ==========================================================================
   Rechner
   ========================================================================== */
.tkk-rechner {
	background: #fff; border: 1px solid var(--tkk-linie); border-radius: var(--tkk-radius-gross);
	padding: clamp(20px, 3vw, 36px); box-shadow: var(--tkk-schatten); margin-block: 32px;
}
.tkk-rechner fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.tkk-rechner legend { font-weight: 600; margin-bottom: 10px; padding: 0; color: var(--tkk-wald-dunkel); }
.tkk-rechner input[type="number"], .tkk-rechner input[type="text"], .tkk-rechner select {
	font: inherit; font-size: 17px; color: var(--tkk-schrift); background: #fff; border: 1.5px solid #CFC6B6; border-radius: 12px; padding: 10px 12px; min-height: 46px;
	transition: border-color var(--tkk-uebergang), box-shadow var(--tkk-uebergang);
}
.tkk-rechner input:focus, .tkk-rechner select:focus { border-color: var(--tkk-wald); box-shadow: 0 0 0 3px rgba(30, 74, 55, 0.15); outline: none; }
.tkk-rechner input:focus-visible, .tkk-rechner select:focus-visible { outline: 3px solid var(--tkk-wald); outline-offset: 1px; }
.tkk-rechner__titel { margin-top: 0; }
.tkk-rechner__klein { font-size: 15px; color: var(--tkk-leise); }
.tkk-rechner__quelle { font-size: 14px; color: var(--tkk-leise); border-top: 1px solid var(--tkk-linie); padding-top: 12px; margin-top: 16px; }

/* Auswahlknöpfe (Hund/Katze usw.) */
.tkk-umschalter { display: flex; flex-wrap: wrap; gap: 10px; }
.tkk-umschalter legend { width: 100%; }
.tkk-umschalter label { position: relative; cursor: pointer; }
.tkk-umschalter input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tkk-umschalter span {
	display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #CFC6B6; background: #fff; font-weight: 600;
	transition: all var(--tkk-uebergang);
}
.tkk-umschalter label:hover span { border-color: var(--tkk-wald); }
.tkk-umschalter input:checked + span { background: var(--tkk-wald); border-color: var(--tkk-wald); color: #fff; }
.tkk-umschalter input:focus-visible + span { outline: 3px solid var(--tkk-wald); outline-offset: 2px; }
.tkk-umschalter--gross span { padding: 14px 28px; font-size: 18px; }

.tkk-schalter { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.tkk-schalter input, .tkk-got__wahl input { width: 22px; height: 22px; accent-color: var(--tkk-wald); flex: none; margin-top: 2px; }
.tkk-feld { display: flex; flex-direction: column; gap: 8px; font-weight: 600; color: var(--tkk-wald-dunkel); max-width: 320px; }

.tkk-knopf {
	font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; border: 0; border-radius: 999px; padding: 13px 24px;
	background: var(--tkk-terrakotta); color: #fff; transition: background var(--tkk-uebergang), transform var(--tkk-uebergang);
}
.tkk-knopf:hover { background: #8E4226; transform: translateY(-1px); }
.tkk-knopf--leise { background: transparent; color: var(--tkk-wald); border: 2px solid var(--tkk-wald); padding: 11px 22px; }
.tkk-knopf--leise:hover { background: var(--tkk-salbei-hell); }
.tkk-knopf:focus-visible { outline: 3px solid var(--tkk-wald); outline-offset: 3px; }

/* Gebühren-Rechner */
.tkk-rechner [hidden] { display: none !important; }
.tkk-got__mehr { margin-top: 14px; }
.tkk-got__mehr summary { cursor: pointer; font-weight: 600; color: var(--tkk-wald); padding: 10px 0; }
.tkk-got__mehr summary:hover { color: var(--tkk-terrakotta); }
.tkk-rechner__optionen { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; margin-bottom: 8px; }
.tkk-rechner__optionen fieldset { margin-bottom: 0; }
.tkk-got__liste { margin-top: 20px !important; }
.tkk-got__gruppe { font-family: var(--wp--preset--font-family--nunito); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tkk-terrakotta); margin: 18px 0 6px; }
.tkk-got__zeilen { border: 1px solid var(--tkk-linie); border-radius: 14px; overflow: hidden; }
.tkk-got__zeile { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--tkk-linie); }
.tkk-got__zeile:last-child { border-bottom: 0; }
.tkk-got__zeile:has(input:checked) { background: var(--tkk-salbei-hell); }
.tkk-got__wahl { display: flex; gap: 12px; cursor: pointer; align-items: flex-start; }
.tkk-got__wahl small { display: block; color: var(--tkk-leise); font-size: 13px; }
.tkk-got__menge input { width: 64px; min-height: 40px !important; padding: 6px 8px !important; }
.tkk-got__satz { font-variant-numeric: tabular-nums; color: var(--tkk-leise); font-size: 15px; white-space: nowrap; }
.tkk-got__ergebnis { margin-top: 24px; }
.tkk-got__tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tkk-got__tabelle caption { text-align: left; font-family: var(--wp--preset--font-family--fraunces); font-size: 22px; font-weight: 600; color: var(--tkk-wald-dunkel); margin-bottom: 10px; }
.tkk-got__tabelle th, .tkk-got__tabelle td { padding: 10px 8px; border-bottom: 1px solid var(--tkk-linie); text-align: right; }
.tkk-got__tabelle th[scope="row"] { text-align: left; font-weight: 400; }
.tkk-got__tabelle thead th { font-size: 14px; color: var(--tkk-leise); font-weight: 600; }
.tkk-got__tabelle tfoot th, .tkk-got__tabelle tfoot td { font-weight: 700; font-size: 18px; color: var(--tkk-wald-dunkel); border-bottom: 0; background: var(--tkk-salbei-hell); }
.tkk-got__tabelle tfoot th { border-radius: 12px 0 0 12px; }
.tkk-got__tabelle tfoot td:last-child { border-radius: 0 12px 12px 0; }
.tkk-got__notdiensthinweis { background: var(--tkk-terrakotta-hell); padding: 10px 14px; border-radius: 12px; font-size: 15px; }
@media (max-width: 600px) {
	.tkk-got__zeile { grid-template-columns: 1fr auto; }
	.tkk-got__satz { grid-column: 1 / -1; padding-left: 34px; margin-top: -6px; }
	.tkk-got__tabelle { font-size: 14px; }
	.tkk-got__tabelle th, .tkk-got__tabelle td { padding: 8px 4px; }
	.tkk-got__tabelle tfoot th, .tkk-got__tabelle tfoot td { font-size: 15px; }
}

/* Kostenplaner */
.tkk-fortschritt { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: none; }
.tkk-fortschritt li {
	flex: 1; margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--tkk-leise);
	padding-bottom: 12px; border-bottom: 4px solid var(--tkk-linie); transition: border-color var(--tkk-uebergang), color var(--tkk-uebergang);
}
.tkk-fortschritt li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tkk-linie); color: var(--tkk-schrift); font-size: 14px; flex: none; }
.tkk-fortschritt li.ist-aktiv { color: var(--tkk-wald-dunkel); border-color: var(--tkk-terrakotta); }
.tkk-fortschritt li.ist-aktiv span { background: var(--tkk-terrakotta); color: #fff; }
.tkk-fortschritt li.ist-fertig { border-color: var(--tkk-wald); color: var(--tkk-wald); }
.tkk-fortschritt li.ist-fertig span { background: var(--tkk-wald); color: #fff; }
@media (max-width: 480px) { .tkk-fortschritt li { font-size: 13px; flex-direction: column; align-items: flex-start; gap: 6px; } }
.tkk-plan__titel { margin-top: 0; }
.tkk-plan__titel:focus { outline: none; }
.tkk-plan__navi { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.tkk-plan__posten { display: grid; gap: 0; border: 1px solid var(--tkk-linie); border-radius: 14px; overflow: hidden; }
.tkk-plan__posten-zeile { display: grid; grid-template-columns: 1fr 130px 130px; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--tkk-linie); }
.tkk-plan__posten-zeile:last-child { border-bottom: 0; }
.tkk-plan__label { font-weight: 600; }
.tkk-plan__label small { display: block; font-weight: 400; font-size: 14px; color: var(--tkk-leise); margin-top: 2px; }
.tkk-plan__betrag { position: relative; display: flex; align-items: center; }
.tkk-plan__betrag input { width: 100%; padding-right: 30px !important; text-align: right; }
.tkk-plan__betrag > span { position: absolute; right: 12px; color: var(--tkk-leise); }
.tkk-plan__eigener-name { width: 100%; max-width: 280px; }
@media (max-width: 600px) {
	.tkk-plan__posten-zeile { grid-template-columns: 1fr 1fr; }
	.tkk-plan__label { grid-column: 1 / -1; }
}
.tkk-plan__summen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tkk-plan__summen > div { background: var(--tkk-salbei-hell); border-radius: 16px; padding: 18px; }
.tkk-plan__summen span { display: block; font-size: 15px; color: var(--tkk-leise); }
.tkk-plan__summen strong { font-family: var(--wp--preset--font-family--fraunces); font-size: clamp(22px, 3vw, 30px); color: var(--tkk-wald-dunkel); font-weight: 600; font-variant-numeric: tabular-nums; }
.tkk-plan__summen > div:last-child { background: var(--tkk-wald); }
.tkk-plan__summen > div:last-child span, .tkk-plan__summen > div:last-child strong { color: #fff; }
@media (max-width: 600px) { .tkk-plan__summen { grid-template-columns: 1fr; } }
.tkk-plan__balken { list-style: none; padding: 0; display: grid; gap: 14px; }
.tkk-plan__balken li { margin: 0; max-width: none; }
.tkk-plan__balken-kopf { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 6px; }
.tkk-plan__balken-kopf span:last-child { color: var(--tkk-leise); font-variant-numeric: tabular-nums; text-align: right; }
.tkk-plan__balken-spur { display: block; height: 10px; border-radius: 999px; background: var(--tkk-salbei-hell); overflow: hidden; }
.tkk-plan__balken-spur span { display: block; height: 100%; background: linear-gradient(90deg, var(--tkk-wald), #3F7A5F); border-radius: inherit; transition: width 0.5s ease; }
.tkk-plan__hinweise li { margin-bottom: 8px; }

/* Versicherungs-Check */
.tkk-check__balken { height: 8px; border-radius: 999px; background: var(--tkk-salbei-hell); overflow: hidden; margin-bottom: 24px; }
.tkk-check__balken span { display: block; height: 100%; width: 0; background: var(--tkk-terrakotta); border-radius: inherit; transition: width 0.35s ease; }
.tkk-check__frage legend { font-family: var(--wp--preset--font-family--fraunces); font-size: clamp(21px, 2.5vw, 26px); line-height: 1.25; font-weight: 600; }
.tkk-check__zahl { display: block; font-family: var(--wp--preset--font-family--source-sans); font-size: 14px; font-weight: 600; color: var(--tkk-terrakotta); margin-bottom: 6px; }
.tkk-check__antworten { display: grid; gap: 10px; margin-bottom: 20px; }
.tkk-check__antworten label { position: relative; cursor: pointer; }
.tkk-check__antworten input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tkk-check__antworten span {
	display: block; padding: 14px 18px 14px 50px; border: 1.5px solid #CFC6B6; border-radius: 14px; background: #fff; font-weight: 600; position: relative;
	transition: all var(--tkk-uebergang);
}
.tkk-check__antworten span::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid #9AA39D; background: #fff; }
.tkk-check__antworten label:hover span { border-color: var(--tkk-wald); background: var(--tkk-salbei-hell); }
.tkk-check__antworten input:checked + span { border-color: var(--tkk-wald); background: var(--tkk-salbei-hell); }
.tkk-check__antworten input:checked + span::before { border-color: var(--tkk-wald); background: var(--tkk-wald); box-shadow: inset 0 0 0 3px #fff; }
.tkk-check__antworten input:focus-visible + span { outline: 3px solid var(--tkk-wald); outline-offset: 2px; }
.tkk-check__ergebnis:focus { outline: none; }
.tkk-check__ergebnis h3 { margin-top: 0; }
.tkk-check__empfehlung { background: var(--tkk-salbei-hell); border-radius: 16px; padding: 18px 22px; }
.tkk-check__empfehlung p:first-child { margin-top: 0; font-weight: 600; color: var(--tkk-wald-dunkel); }
.tkk-check__empfehlung p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Fußbereich
   ========================================================================== */
.tkk-fuss { background: var(--tkk-wald-dunkel); color: #D5E0D9; }
.tkk-fuss a { color: #fff; text-decoration: none; }
.tkk-fuss a:hover { text-decoration: underline; color: #fff; }
.tkk-fuss h2 { color: #fff; font-size: 17px; font-family: var(--wp--preset--font-family--source-sans); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; }
.tkk-fuss ul { list-style: none; padding: 0; margin: 0; }
.tkk-fuss li { margin-bottom: 8px; font-size: 16px; }
.tkk-fuss__marke { font-family: var(--wp--preset--font-family--nunito); font-weight: 800; font-size: 22px; color: #fff; }
.tkk-fuss__claim { font-family: var(--wp--preset--font-family--fraunces); font-size: 20px; color: #F2C9B3; }
.tkk-fuss__unten { border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: #B8C8BF; }
.tkk-fuss__unten p { max-width: none; }

/* ==========================================================================
   Bewegung: dezent, und aus, wenn gewünscht
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.tkk-einblenden { animation: tkk-einblenden 0.7s ease both; }
	.tkk-einblenden-2 { animation: tkk-einblenden 0.7s 0.12s ease both; }
	@keyframes tkk-einblenden { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Druck (Kostenplaner)
   ========================================================================== */
@media print {
	.tkk-kopf, .tkk-fuss, .tkk-plan__navi, .tkk-fortschritt, .tkk-brotkrumen { display: none !important; }
	.tkk-rechner { box-shadow: none; border: 0; padding: 0; }
	body { background: #fff; }
}

/* Korrekturen 25.10.2026 (Live-Prüfung) */
.tkk-hinweis p, .tkk-quelle p, .tkk-platzhalter p, .is-style-hinweis p, .is-style-quelle p, .is-style-platzhalter p,
.tkk-hinweis li, .tkk-quelle li, .tkk-platzhalter li { max-width: none; }
.tkk-bildkarte > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.wp-block-column > .tkk-bildkarte { height: 100%; }
.wp-block-columns .tkk-bildkarte .wp-block-image img { aspect-ratio: 16 / 9; }
.tkk-bildkarte__text .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
@media (max-width: 600px) {
  .tkk-karte, .is-style-karte { padding: 20px !important; }
  .tkk-bildkarte { padding: 0 !important; }
  .tkk-symbol { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px !important; }
  .tkk-tierkachel__text { padding: 20px !important; }
}
@media (max-width: 480px) { .tkk-tierkachel ul { grid-template-columns: 1fr 1fr; gap: 6px 12px; } .tkk-tierkachel li a { font-size: 15px; } }
/* Handy: lange Wörter in Überschriften trennen, breite Tabellen seitlich wischbar */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 600px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
  .tkk-hero h1, .tkk-hero h2 { hyphens: manual; -webkit-hyphens: manual; }
  h1.wp-block-post-title, .tkk-seitenkopf h1 { font-size: clamp(28px, 8vw, 36px) !important; }
  .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wp-block-table th, .wp-block-table td { hyphens: auto; -webkit-hyphens: auto; }
  .wp-block-table table:has(th:nth-child(4)) { min-width: 540px; }
  .wp-block-table table:has(th:nth-child(4)) td, .wp-block-table table:has(th:nth-child(4)) th { white-space: nowrap; }
  .wp-block-table table:has(th:nth-child(4)) td:first-child, .wp-block-table table:has(th:nth-child(4)) th:first-child { white-space: normal; min-width: 180px; }
}
.tkk-check__navi { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tkk-check__navi [data-weiter] { margin-left: auto; }
.tkk-check__navi [data-weiter]:disabled { opacity: 0.45; cursor: not-allowed; }
.tkk-mehr-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; }
.tkk-mehr-links a { font-weight: 600; color: var(--tkk-wald); text-decoration: none; }
.tkk-mehr-links a::after { content: " →"; }
.tkk-mehr-links a:hover { text-decoration: underline; }
.tkk-faktenkarte__klein a { color: inherit; font-weight: 600; }
