/*
Theme Name: FixKlima
Theme URI: https://fixklima.de
Author: FixKlima
Description: Block-Theme für FixKlima, die Festpreis-Marke der NFG GmbH. Ohne Page-Builder, Schriften lokal eingebunden, Preise und Kontaktdaten kommen aus dem FixKlima-Plugin.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fixklima
Tags: block-theme, full-site-editing, one-column, custom-colors
*/

/* -------------------------------------------------------------
   Grundlagen
   ------------------------------------------------------------- */
:root {
	--fkt-orange: var(--wp--preset--color--fix-orange);
	--fkt-orange-text: var(--wp--preset--color--tief-orange);
	--fkt-ink: var(--wp--preset--color--tinte);
	--fkt-paper: var(--wp--preset--color--weiss);
	--fkt-tint: var(--wp--preset--color--orange-hell);
	--fkt-muted: var(--wp--preset--color--grau);
	--fkt-line: var(--wp--preset--color--linie);
	--fkt-on-dark-muted: #C9C3BE;
	--fkt-radius: 14px;
	--fkt-display: var(--wp--preset--font-family--archivo);
	--fkt-check-orange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A1F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
	--fkt-check-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
	--fkt-check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

/* Kein Abstand zwischen Kopfzeile, Inhalt und Fußzeile. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Abschnitte unter der festen Kopfzeile sichtbar anspringen. */
[id] {
	scroll-margin-top: 88px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--fkt-orange);
	outline-offset: 2px;
	border-radius: 6px;
}

.has-fix-orange-background-color :where(a, button, input, select, textarea, summary):focus-visible,
.fkt-band-orange :focus-visible {
	outline-color: var(--fkt-ink);
}

/* Links auf dunklem Grund */
.has-tinte-background-color a:where(:not(.wp-element-button):not(.fkt-wa)) {
	color: var(--fkt-paper);
}

/* -------------------------------------------------------------
   Logo
   ------------------------------------------------------------- */
.fkt-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--fkt-ink);
	text-decoration: none;
}

.fkt-logo:hover {
	color: var(--fkt-ink);
}

.fkt-logo-mark {
	width: 34px;
	height: 34px;
	flex: none;
}

.fkt-stoerer-shape {
	fill: var(--fkt-orange);
}

.fkt-wordmark {
	font-family: var(--fkt-display);
	font-weight: 900;
	font-size: 25px;
	line-height: 1;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.fkt-fix {
	color: var(--fkt-orange);
}

/* -------------------------------------------------------------
   Kopfzeile
   ------------------------------------------------------------- */
.fkt-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--fkt-paper);
	border-bottom: 1px solid var(--fkt-line);
}

body.admin-bar .fkt-site-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 600px) {
	body.admin-bar .fkt-site-header {
		top: 0;
	}
}

.fkt-header-inner {
	gap: 16px;
}

.fkt-header-nav {
	gap: 24px;
}

.fkt-nav .wp-block-navigation-item__content {
	text-decoration: none;
	font-weight: 500;
}

.fkt-nav .wp-block-navigation-item__content:hover {
	color: var(--fkt-orange-text);
}

.fkt-btn-sm .wp-block-button__link {
	padding: 10px 18px;
	font-size: 15px;
	white-space: nowrap;
}

@media (max-width: 860px) {
	.fkt-nav {
		display: none;
	}
}

@media (max-width: 440px) {
	.fkt-header-inner {
		gap: 10px;
	}
	.fkt-header .fkt-btn-sm .wp-block-button__link {
		padding: 9px 14px;
		font-size: 14px;
	}
}

@media (max-width: 380px) {
	.fkt-wordmark {
		font-size: 21px;
	}
	.fkt-logo-mark {
		width: 28px;
		height: 28px;
	}
	.fkt-header .fkt-btn-sm .wp-block-button__link {
		padding: 9px 13px;
		font-size: 14px;
	}
}

/* -------------------------------------------------------------
   Abschnitte allgemein
   ------------------------------------------------------------- */
.fkt-section-head {
	margin-bottom: clamp(24px, 3vw, 36px);
}

.fkt-section-head > * {
	max-width: 720px;
}

.fkt-section-head > * + * {
	margin-block-start: 10px;
}

.fkt-eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fkt-orange-text);
}

.fkt-band-orange .fkt-eyebrow,
.has-fix-orange-background-color .fkt-eyebrow {
	color: var(--fkt-ink);
}

.fkt-lead {
	color: var(--fkt-muted);
	font-size: 17px;
}

.fkt-h2-sm {
	font-size: clamp(28px, 3.6vw, 40px);
	margin-block: 8px 20px;
}

/* -------------------------------------------------------------
   Einstieg
   ------------------------------------------------------------- */
.fkt-hero-copy > * + * {
	margin-block-start: 20px;
}

.fkt-hero-title {
	margin: 0;
	font-size: clamp(44px, 6.6vw, 84px);
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

.fkt-claim {
	font-family: var(--fkt-display);
	font-weight: 800;
	font-size: clamp(20px, 2.4vw, 26px);
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.fkt-hero-sub {
	color: var(--fkt-muted);
	font-size: 18px;
	max-width: 30em;
}

.fkt-footnote {
	color: var(--fkt-muted);
	font-size: 13px;
}

.fkt-hero-art {
	position: relative;
	padding-bottom: 12px;
}

.fkt-room {
	display: block;
	width: 100%;
	height: auto;
}

.fkt-room .r-wall { fill: var(--fkt-tint); }
.fkt-room .r-line { stroke: var(--fkt-line); }
.fkt-room .r-paper { fill: var(--fkt-paper); }
.fkt-room .r-card { fill: var(--fkt-paper); stroke: var(--fkt-line); }
.fkt-room .r-orange { fill: var(--fkt-orange); }
.fkt-room .r-muted-stroke { stroke: var(--fkt-muted); }

/* Preisstörer: Form als Hintergrund, Preis als echter Text aus dem Plugin */
.fkt-stoerer {
	position: absolute;
	left: -6px;
	bottom: -18px;
	width: clamp(150px, 19vw, 212px);
	aspect-ratio: 1;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: url("assets/img/stoerer-flaeche.svg") center / contain no-repeat;
	transform: rotate(-8deg);
	color: var(--fkt-ink);
	font-family: var(--fkt-display);
	line-height: 1;
	text-align: center;
}

.fkt-stoerer-ab {
	font-weight: 800;
	font-size: clamp(14px, 1.5vw, 18px);
}

.fkt-stoerer-preis {
	font-weight: 900;
	font-size: clamp(25px, 2.9vw, 34px);
	letter-spacing: -0.04em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.fkt-stoerer-stern {
	position: absolute;
	top: 34%;
	right: 13%;
	font-weight: 800;
	font-size: clamp(14px, 1.5vw, 18px);
}

@media (max-width: 781px) {
	.fkt-hero-media {
		width: 100%;
	}
	.fkt-hero-art {
		max-width: 520px;
		margin-inline: auto;
	}
	.fkt-stoerer {
		left: 0;
		bottom: -10px;
	}
}

/* -------------------------------------------------------------
   Leiste
   ------------------------------------------------------------- */
.fkt-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px 24px;
}

.fkt-facts li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	font-weight: 600;
	font-size: 15px;
}

.fkt-facts li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: var(--fkt-check-orange) center / contain no-repeat;
}

@media (max-width: 860px) {
	.fkt-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.fkt-facts {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------
   Pakete
   ------------------------------------------------------------- */
.fkt-packs.is-layout-grid {
	gap: 16px;
}

.fkt-pack {
	height: 100%;
	padding: 22px;
	background: var(--fkt-paper);
	border: 1.5px solid var(--fkt-line);
	border-radius: var(--fkt-radius);
	gap: 12px;
}

.fkt-pack-featured {
	border: 2.5px solid var(--fkt-ink);
}

.fkt-pack h3 {
	margin: 0;
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.fkt-meta {
	color: var(--fkt-muted);
	font-size: 14px;
}

.fkt-meta-small {
	color: var(--fkt-muted);
	font-size: 13px;
	line-height: 1.4;
}

.fkt-price {
	font-family: var(--fkt-display);
	font-weight: 900;
	font-size: clamp(30px, 2.9vw, 38px);
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--fkt-orange-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.fkt-price-talk {
	font-size: 24px;
	letter-spacing: -0.02em;
	color: var(--fkt-ink);
	white-space: normal;
	line-height: 1.1;
}

.fkt-pack-cta {
	margin-top: auto !important;
	width: 100%;
}

.fkt-note {
	margin-top: 18px;
	color: var(--fkt-muted);
	font-size: 14px;
}

/* -------------------------------------------------------------
   Was drin ist, was extra kostet
   ------------------------------------------------------------- */
.fkt-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.fkt-checks li {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin: 0;
}

.fkt-checks li::before {
	content: "";
	width: 22px;
	height: 22px;
	margin-top: 1px;
	background: var(--fkt-check-deep) center / contain no-repeat;
}

.fkt-extras {
	margin: 0;
	overflow-x: auto;
	background: var(--fkt-paper);
	border: 1.5px solid var(--fkt-line);
	border-radius: var(--fkt-radius);
}

.fkt-extras table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.fkt-extras thead {
	border: 0;
}

.fkt-extras th,
.fkt-extras td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--fkt-line);
}

.fkt-extras tbody tr:last-child td {
	border-bottom: 0;
}

.fkt-extras th {
	color: var(--fkt-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fkt-extras td:first-child {
	width: 56px;
	color: var(--fkt-muted);
	font-variant-numeric: tabular-nums;
}

.fkt-extras th:last-child,
.fkt-extras td:last-child {
	text-align: right;
	white-space: nowrap;
}

.fkt-extras td:last-child {
	font-family: var(--fkt-display);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.fkt-extras th,
.fkt-extras td {
	overflow-wrap: normal;
	word-break: normal;
}

@media (max-width: 600px) {
	.fkt-extras table {
		font-size: 14px;
	}
	.fkt-extras th,
	.fkt-extras td {
		padding: 10px 8px;
	}
	.fkt-extras th:first-child,
	.fkt-extras td:first-child {
		width: 34px;
		padding-left: 12px;
	}
	.fkt-extras th:last-child,
	.fkt-extras td:last-child {
		padding-right: 12px;
		white-space: normal;
		min-width: 4.5em;
	}
}

/* -------------------------------------------------------------
   Ablauf
   ------------------------------------------------------------- */
.fkt-steps.is-layout-grid {
	gap: 16px;
}

.fkt-step {
	padding-top: 18px;
	border-top: 3px solid var(--fkt-ink);
}

.fkt-step > * + * {
	margin-block-start: 10px;
}

.fkt-step .fkt-num,
.fkt-num {
	margin: 0;
	font-family: var(--fkt-display);
	font-weight: 900;
	font-size: 44px;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--fkt-orange);
}

.fkt-step h3 {
	font-size: 21px;
}

.fkt-step p,
.fkt-step ul {
	color: var(--fkt-muted);
	font-size: 15px;
}

.fkt-step ul {
	margin-block-end: 0;
	padding-left: 18px;
}

/* -------------------------------------------------------------
   Preisrechner-Band
   ------------------------------------------------------------- */
.fkt-calc-intro > * + * {
	margin-block-start: 14px;
}

.fkt-calc-title {
	font-size: clamp(34px, 5vw, 58px);
	line-height: 0.98;
	letter-spacing: -0.04em;
}

.fkt-calc-lead {
	font-size: 18px;
	font-weight: 500;
}

.fkt-calc-points {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 6px;
	font-weight: 500;
}

.fkt-calc-points li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.fkt-calc-points li::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: var(--fkt-check-ink) center / contain no-repeat;
}

.fkt-calc-slot {
	min-width: 0;
}

/* -------------------------------------------------------------
   Über FixKlima und Gebiet
   ------------------------------------------------------------- */
.fkt-about .wp-block-column > * + * {
	margin-block-start: 16px;
}

.fkt-lead-dark {
	font-size: 18px;
	max-width: 32em;
}

.fkt-towns {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fkt-towns li {
	margin: 0;
	padding: 6px 12px;
	border: 1.5px solid var(--fkt-line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
}

.fkt-map {
	display: block;
	width: 100%;
	max-width: 460px;
	height: auto;
	margin-inline: auto;
}

.fkt-map .m-ring { fill: var(--fkt-tint); stroke: var(--fkt-orange); }
.fkt-map .m-rhine { stroke: var(--fkt-muted); }
.fkt-map .m-dot { fill: var(--fkt-ink); }
.fkt-map .m-home { fill: var(--fkt-orange); }
.fkt-map .m-label { fill: var(--fkt-ink); font-family: var(--wp--preset--font-family--inter); font-size: 11px; font-weight: 500; }
.fkt-map .m-label.strong { font-size: 13px; font-weight: 700; }
.fkt-map .m-quiet { fill: var(--fkt-muted); font-family: var(--wp--preset--font-family--inter); font-size: 11px; font-style: italic; }
.fkt-map .m-km { fill: var(--fkt-orange-text); font-family: var(--fkt-display); font-size: 13px; font-weight: 800; }

/* -------------------------------------------------------------
   Fragen
   ------------------------------------------------------------- */
.fkt-faq > * {
	max-width: 820px;
}

.fkt-faq > * + * {
	margin-block-start: 10px;
}

.fkt-faq .wp-block-details {
	overflow: hidden;
}

.fkt-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	list-style: none;
	cursor: pointer;
	font-family: var(--fkt-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.fkt-faq summary::-webkit-details-marker {
	display: none;
}

.fkt-faq summary::after {
	content: "+";
	flex: none;
	font-size: 26px;
	line-height: 1;
	color: var(--fkt-orange-text);
}

.fkt-faq details[open] summary::after {
	content: "–";
}

.fkt-faq details > p,
.fkt-faq details > :not(summary) {
	margin: 0;
	padding: 0 20px 18px;
	color: var(--fkt-muted);
	max-width: 62ch;
}

/* -------------------------------------------------------------
   Kontakt
   ------------------------------------------------------------- */
.fkt-contact h2 {
	margin: 0;
}

.fkt-contact-lead {
	margin-top: 12px;
	color: var(--fkt-on-dark-muted);
	font-size: 17px;
}

.fkt-contact-row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 4px 20px;
	margin: 0;
	font-size: 17px;
}

.fkt-contact-label {
	align-self: center;
	color: var(--fkt-on-dark-muted);
	font-size: 14px;
	font-weight: 500;
}

.fkt-contact-value {
	font-weight: 600;
	overflow-wrap: anywhere;
}

a.fkt-wa,
.fkt-wa a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--fkt-orange);
	color: var(--fkt-ink);
	font-family: var(--fkt-display);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.2;
	text-decoration: none;
}

a.fkt-wa:hover,
.fkt-wa a:hover {
	background: #FF7A47;
	color: var(--fkt-ink);
}

@media (max-width: 420px) {
	.fkt-contact-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------
   Fußzeile
   ------------------------------------------------------------- */
.fkt-site-footer {
	border-top: 1px solid var(--fkt-line);
}

.fkt-footer-top {
	gap: 16px;
}

.fkt-footer-brand {
	color: var(--fkt-muted);
	font-size: 14px;
}

.fkt-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 14px;
}

.fkt-legal a {
	text-decoration: none;
	font-weight: 500;
}

.fkt-legal a:hover {
	color: var(--fkt-orange-text);
}

/* -------------------------------------------------------------
   Unterseiten (Impressum, Datenschutz, AGB, Widerruf)
   ------------------------------------------------------------- */
.fkt-page-title {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.fkt-page .wp-block-post-content h2 {
	font-size: clamp(24px, 3vw, 32px);
	margin-top: 2em;
}

.fkt-page .wp-block-post-content h3 {
	font-size: 20px;
	margin-top: 1.6em;
}

.fkt-list-title {
	font-size: clamp(24px, 3vw, 32px);
}
