/*
Theme Name: Schreinerei Kortmann
Theme URI: https://www.schreinerei-kortmann.de/
Author: kranzkreativ
Author URI: https://www.kranzkreativ.de/
Description: Schlankes eigenes Theme für die Schreinerei Guido Kortmann. Ohne Page-Builder und ohne Bezahl-Plugins; Inhalte im Block-Editor. Farben und Schriften nach CD-Regelwerk 1.0 (20.11.2026).
Version: 1.0.40
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietär
Text Domain: kortmann
*/

/* ---------- Grundwerte (CD-Regelwerk 1.0) ---------- */
:root {
	--k-hellgruen: #75B727;
	--k-dunkelgruen: #133829;
	--k-gruen-web: #1C693F; /* Nummern, Vorzeilen, Seitentitel wie auf der bisherigen Website (Festlegung Andreas 03.12.2026) */
	--k-schwarz: #0A0A0A;
	--k-anthrazit: #2B2B2B;
	--k-hellgrau: #EFEFEF;
	--k-weiss: #FFFFFF;
	--k-sans: "Open Sans", Arial, sans-serif;
	--k-serif: "Merriweather", Georgia, serif;
	--k-max: 1500px; /* Inhalt 1460 px wie bisher */
	--k-rand: 20px;
	--k-abstand: 40px;
	--k-kopf: 96px;
	--k-titel: 3.5vw; /* wie bisher: 3,5 vw, bis 1024 px 40 px, bis 767 px 30 px */
}
@media (max-width: 1024px) { :root { --k-titel: 40px; } }
@media (max-width: 767px) { :root { --k-titel: 30px; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--k-kopf); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--k-sans);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	line-height: 1.5;
	color: var(--k-schwarz);
	background: var(--k-weiss);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--k-hellgruen); text-underline-offset: 3px; }
a:hover { color: var(--k-hellgruen); }
p { margin: 0 0 0.9rem; } /* wie bisher 14,4 px */
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--k-hellgruen); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.k-skip { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--k-hellgruen); color: #fff; padding: 10px 16px; }
.k-skip:focus { left: 10px; top: 10px; }

/* ---------- Kopf ---------- */
.k-kopf {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	background: rgba(10, 10, 10, 0.72);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background 0.3s;
}
.k-kopf.is-gescrollt { background: rgba(10, 10, 10, 0.88); }
.admin-bar .k-kopf { top: 32px; }
@media (max-width: 782px) { .admin-bar .k-kopf { top: 46px; } }

.k-kopf__innen {
	max-width: var(--k-max); margin: 0 auto; padding: 0 var(--k-rand);
	height: var(--k-kopf); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.k-logo img { width: 190px; height: auto; }

.k-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; }
.k-menu a {
	color: #fff; text-decoration: none; text-transform: uppercase;
	font-size: 1rem; font-weight: 500; letter-spacing: 0.7px; padding: 8px 0;
	transition: color 0.2s;
}
.k-menu a:hover, .k-menu .current-menu-item > a, .k-menu .current_page_item > a { color: var(--k-hellgruen); }

.k-burger { display: none; }

@media (max-width: 900px) {
	:root { --k-kopf: 76px; }
	.k-logo img { width: 150px; }
	.k-burger {
		display: block; position: relative; width: 44px; height: 44px;
		background: none; border: 0; cursor: pointer; padding: 0; z-index: 2;
	}
	.k-burger__linie, .k-burger__linie::before, .k-burger__linie::after {
		position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; content: ""; transition: transform 0.3s, top 0.3s, opacity 0.2s;
	}
	.k-burger__linie { top: 21px; }
	.k-burger__linie::before { left: 0; top: -8px; }
	.k-burger__linie::after { left: 0; top: 8px; }
	.k-burger[aria-expanded="true"] .k-burger__linie { background: transparent; }
	.k-burger[aria-expanded="true"] .k-burger__linie::before { top: 0; transform: rotate(45deg); }
	.k-burger[aria-expanded="true"] .k-burger__linie::after { top: 0; transform: rotate(-45deg); }

	.k-nav {
		position: fixed; inset: var(--k-kopf) 0 auto 0; background: rgba(10, 10, 10, 0.96);
		max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
	}
	.admin-bar .k-nav { top: calc(var(--k-kopf) + 46px); }
	.k-nav.is-offen { max-height: 80vh; }
	.k-menu { flex-direction: column; gap: 0; padding: 10px var(--k-rand) 24px; }
	.k-menu a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
}

/* ---------- Inhalt ---------- */
.k-main { display: block; }
.k-inhalt {
	max-width: var(--k-max); margin: 0 auto; padding: 0 var(--k-rand);
}
.k-sub .k-inhalt { padding-top: calc(var(--k-kopf) + 177px + var(--k-titel)); } /* wie bisher: Vorzeile fest bei 270 px, Nummer/Titel darunter */
@media (max-width: 900px) { .k-sub .k-inhalt { padding-top: calc(var(--k-kopf) + 60px); } }
.k-404 { padding-bottom: 120px; }

/* Spalten im Verhältnis wie bisher (60/40) */
.k-inhalt .wp-block-columns {
	display: flex; flex-wrap: nowrap; gap: var(--k-abstand); margin: 0 0 var(--k-abstand);
	align-items: flex-start;
}
.k-inhalt .wp-block-column { flex: 1 1 0; min-width: 0; }
.k-inhalt .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
/* Spaltenbreiten wie bisher: 859 / 560 px bei 1460 px Inhalt (40 px Abstand) */
.k-inhalt .wp-block-column[style*="flex-basis:60%"] { flex: 0 0 calc((100% - var(--k-abstand)) * 0.6054) !important; }
.k-inhalt .wp-block-column[style*="flex-basis:40%"] { flex: 0 0 calc((100% - var(--k-abstand)) * 0.3946) !important; }
.k-inhalt .wp-block-column[style*="flex-basis:50%"] { flex: 0 0 calc((100% - var(--k-abstand)) * 0.5) !important; }
/* Seitenkopf: Texte 20 px eingerückt wie bisher */
.k-kopfzeile > .wp-block-column:first-child, .k-kopfzeile.k-erste > .wp-block-column { padding-left: 20px; } /* linke Spalte: Nummer/Titel 20 px eingerückt wie bisher */
.k-inhalt .wp-block-column > *:last-child:not(p) { margin-bottom: 0; } /* Text behält wie bisher seinen Absatzabstand */
/* wie bisher: zwei Abschnitte auf Leistungen enden 20 px tiefer */
.k-inhalt .wp-block-columns.k-luft { padding-bottom: 20px; }
/* wie bisher (Elementor): nach einem Textblock 20 px zusätzlich vor Bild, Galerie usw. */
.k-inhalt .wp-block-column > p:not(.k-num):not(.k-kicker):has(+ :not(p)) { margin-bottom: calc(0.9rem + 20px); }
.k-inhalt .wp-block-columns.are-vertically-aligned-bottom { align-items: flex-end; }
.k-inhalt .wp-block-column.is-vertically-aligned-bottom { align-self: flex-end; }
.k-inhalt .wp-block-column.is-vertically-aligned-center { align-self: center; }

@media (max-width: 900px) {
	.k-inhalt .wp-block-columns { flex-wrap: wrap; gap: 24px; }
	.k-inhalt .wp-block-column, .k-inhalt .wp-block-column[style*="flex-basis"] { flex-basis: 100% !important; }
	.k-inhalt .wp-block-column:empty { display: none; }
	.k-cols--umkehren { flex-direction: column-reverse; }
}

/* Kopfzeile eines Abschnitts: Nummer + Titel */
.k-kopfzeile { margin-top: 200px !important; margin-bottom: 40px !important; }
.k-kopfzeile.k-erste { margin-top: 0 !important; }
.k-band + .k-kopfzeile { margin-top: 250px !important; } /* wie bisher: nach Bildband 250 px … */
.k-band + .k-kopfzeile.k-abstand-200, .k-kopfzeile.k-kontaktkopf { margin-top: 200px !important; } /* … außer Kontakt und Über uns 03 */
.k-kopfzeile.k-kontaktkopf { padding-top: 20px; margin-bottom: 0 !important; }
.k-inhalt .k-kontaktkopf .k-titel, .k-inhalt .k-kontakt-nr .k-titel { margin-left: -5px; }
/* Kontaktseite: Abstände wie bisher */
.k-kopfzeile.k-kontakt-nr { margin-bottom: 0 !important; }
.k-kopfzeile.k-standortkopf { margin-bottom: -5px !important; }
.k-kopfzeile.k-erste.k-ohne-einzug > .wp-block-column:last-child { padding-left: 0; }
.k-inhalt .wp-block-columns.k-ansprech { margin-bottom: 10px; }
/* Kontakt: Bild von Guido beginnt an der Oberkante des „A“ von ANSPRECH (Wunsch Andreas 03.12.2026; 0,173 em = Abstand Zeilenoberkante bis Versalhöhe Open Sans) */
@media (min-width: 901px) { .k-inhalt .wp-block-columns.k-ansprech { margin-top: calc(-40px - 1.827 * var(--k-titel)); } }
.k-inhalt .k-ansprech > .wp-block-column > .wp-block-image:last-child { margin-bottom: 20px; }
.k-inhalt .wp-block-columns.k-ansprech-team { padding-bottom: 36px; }
.k-ansprech-team .wp-block-columns { --k-abstand: 30px; }
@media (max-width: 900px) { .k-kopfzeile, .k-band + .k-kopfzeile, .k-band + .k-kopfzeile.k-abstand-200, .k-kopfzeile.k-kontaktkopf { margin-top: 90px !important; } }

.k-num {
	font-family: var(--k-serif); font-style: italic; font-weight: 300;
	color: var(--k-gruen-web); font-size: var(--k-titel); line-height: 1; margin: 0;
}
.k-home .k-num { margin-bottom: 20px; } /* wie bisher: Startseite 20 px, Unterseiten direkt darunter */
.k-titel, .k-inhalt h2.wp-block-heading {
	font-family: var(--k-sans); font-weight: 800; text-transform: uppercase;
	color: var(--k-hellgruen); font-size: var(--k-titel); line-height: 1; margin: 0 0 20px;
	letter-spacing: 0; hyphens: manual;
}
.k-kicker {
	font-family: var(--k-serif); font-style: italic; font-weight: 300;
	color: var(--k-gruen-web); font-size: var(--k-titel); line-height: 1; margin: 0;
}
.k-seitentitel, .k-inhalt h1.wp-block-heading {
	font-family: var(--k-sans); font-weight: 800; text-transform: uppercase;
	color: var(--k-gruen-web); font-size: var(--k-titel); line-height: 0.9; margin: 0;
}
/* Seitenkopf wie bisher: Seitentitel auf Höhe der Nummer, Vorzeile darüber */
.k-kopfzeile.k-erste, .k-kopfzeile.k-erste > .wp-block-column { align-items: flex-start !important; align-self: flex-start !important; }
.k-kopfzeile.k-erste .k-kicker { margin-top: calc(-1 * var(--k-titel) - 3px); }
.k-kopfzeile.k-erste .k-kicker + * { margin-top: 4px; } /* wie bisher: Seitentitel 4 px unter der Vorzeile */
@media (max-width: 900px) { .k-kopfzeile.k-erste .k-kicker { margin-top: 0; } .k-kopfzeile.k-standortkopf { margin-bottom: 40px !important; } }
.k-seitenkopf { margin-bottom: 40px !important; }
.k-inhalt h3 { font-size: 1.35rem; line-height: 1.2; margin: 1.6em 0 0.5em; font-weight: 700; }
.k-inhalt h4 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.k-inhalt ul:not(.k-team) { padding-left: 1.2em; }

.k-zitat { font-style: italic; margin-top: calc(0.9rem + 40px); } /* wie bisher */
.k-zitat strong { font-style: normal; }

/* Bilder */
.k-inhalt .wp-block-image { margin: 0 0 20px; }
.k-inhalt .wp-block-image img { width: 100%; height: auto; }
.k-inhalt .wp-block-image.k-hoch img { aspect-ratio: auto; }
.k-inhalt .wp-block-image figcaption { font-size: 0.9rem; margin-top: 8px; }
.k-inhalt .wp-block-image a, .k-inhalt .wp-block-gallery a { display: block; overflow: hidden; cursor: zoom-in; }
.k-inhalt .wp-block-image a img, .k-inhalt .wp-block-gallery a img { transition: transform 0.6s ease; }
.k-inhalt .wp-block-image a:hover img, .k-inhalt .wp-block-gallery a:hover img { transform: scale(1.04); }

.k-inhalt .wp-block-gallery {
	display: grid; gap: 20px; margin: 0 0 20px; padding: 0;
	grid-template-columns: repeat(var(--k-spalten, 3), minmax(0, 1fr));
}
.k-inhalt .wp-block-gallery.columns-2 { --k-spalten: 2; }
.k-inhalt .wp-block-gallery.columns-3 { --k-spalten: 3; }
.k-inhalt .wp-block-gallery.columns-4 { --k-spalten: 4; }
.k-inhalt .wp-block-gallery .wp-block-image { margin: 0; width: auto !important; }
.k-inhalt .wp-block-gallery.is-cropped .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; height: 100%; }
.k-home .k-inhalt .wp-block-gallery { gap: 30px; } /* Startseite wie bisher 30 px */
/* Bildreihe mit gleicher Höhe (wie bisher): Breite nach Seitenverhältnis, Wert kommt aus functions.php */
.k-inhalt .wp-block-gallery.k-reihe { display: flex; flex-wrap: nowrap; align-items: flex-start; }
.k-inhalt .wp-block-gallery.k-reihe .wp-block-image { flex: var(--k-r, 1) 1 0; min-width: 0; }
.k-inhalt .wp-block-gallery.k-reihe .wp-block-image img { aspect-ratio: var(--k-r, auto); object-fit: cover; height: auto; }
/* Kleine Kacheln 125 px (Kunden) */
.k-inhalt .wp-block-gallery.k-kacheln { grid-template-columns: repeat(auto-fill, 125px); }
.k-inhalt .wp-block-gallery.k-kacheln .wp-block-image img { aspect-ratio: 1; }
.k-inhalt .wp-block-gallery.k-quadrat .wp-block-image img { aspect-ratio: 1; }
@media (max-width: 600px) {
	.k-inhalt .wp-block-gallery.columns-3, .k-inhalt .wp-block-gallery.columns-4 { --k-spalten: 2; }
	.k-inhalt .wp-block-gallery { gap: 10px; }
}

/* Schaltflächen */
.k-inhalt .wp-block-buttons, .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.wp-block-button__link, .k-form button, .k-karte__laden {
	display: inline-block; background: var(--k-schwarz); color: #fff; border: 0; border-radius: 0;
	font-family: var(--k-sans); font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.9px;
	padding: 12px 24px; line-height: 1; text-decoration: none; cursor: pointer; transition: background 0.2s;
}
.wp-block-button__link:hover, .k-form button:hover, .k-karte__laden:hover { background: var(--k-hellgruen); color: #fff; }

/* ---------- Bildbühne Startseite ---------- */
.k-buehne {
	position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden;
	margin-inline: calc(50% - 50vw); background: var(--k-schwarz); color: #fff;
}
.k-buehne__slides, .k-buehne__slide { position: absolute; inset: 0; }
.k-buehne__slide { opacity: 0; transition: opacity 1.4s ease; }
.k-buehne__slide.is-active { opacity: 1; }
.k-buehne__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.k-buehne__slide.is-active .k-buehne__img { transform: scale(1); }
.k-buehne::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0) 100%); pointer-events: none; }
.k-buehne__claim {
	position: absolute; z-index: 2; left: max(var(--k-rand), calc((100vw - var(--k-max)) / 2 + var(--k-rand))); top: 30%;
	margin: 0; font-family: var(--k-serif); font-style: italic; font-weight: 800; color: #fff;
	/* wie bisher: „ist unsere Leidenschaft“ 100 px, „Holz“ 160 px (Desktop 1440 px), 80/128 px Tablet, 44/70 px Handy */
	font-size: clamp(40px, 23px + 5.55vw, 100px); line-height: 1.2;
}
.k-buehne__claim span { display: block; opacity: 0; transform: translateY(24px); animation: k-claim 1s ease forwards; }
.k-buehne__claim span:nth-child(2) { animation-delay: 0.25s; }
.k-buehne__claim span:nth-child(3) { animation-delay: 0.5s; }
.k-buehne__holz { color: var(--k-hellgruen); font-size: 1.6em; line-height: 1; font-weight: 900; }
@keyframes k-claim { to { opacity: 1; transform: none; } }

.k-buehne__nav { position: absolute; z-index: 3; left: 40px; bottom: 50px; display: flex; gap: 8px; }
.k-buehne__prev, .k-buehne__next {
	width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; opacity: 0.85;
}
.k-buehne__prev::before, .k-buehne__next::before {
	content: ""; position: absolute; left: 12px; top: 10px; width: 12px; height: 12px;
	border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
.k-buehne__next::before { left: 7px; transform: rotate(-135deg); }
.k-buehne__prev:hover, .k-buehne__next:hover { opacity: 1; }
.k-buehne__dots { position: absolute; z-index: 3; right: 40px; bottom: 40px; display: flex; align-items: center; }
.k-buehne__dot {
	background: none; border: 0; color: #fff; font-family: var(--k-serif); font-style: italic; font-weight: 400;
	font-size: 18px; line-height: 1.2; cursor: pointer; padding: 5px 9px; transition: font-size 0.3s ease, color 0.3s ease;
}
.k-buehne__dot:hover { color: var(--k-hellgruen); }
.k-buehne__dot.is-active { color: var(--k-hellgruen); font-size: 40px; }
.k-buehne__runter {
	position: absolute; z-index: 3; left: 50%; bottom: 20px; width: 46px; height: 46px; margin-left: -23px;
	border: 2px solid rgba(255,255,255,0.85); border-radius: 50%;
	animation: k-hupf 2.4s ease-in-out infinite;
}
.k-buehne__runter::before {
	content: ""; position: absolute; left: 50%; top: 11px; width: 2px; height: 18px; margin-left: -1px; background: #fff;
}
.k-buehne__runter::after {
	content: ""; position: absolute; left: 50%; top: 20px; width: 9px; height: 9px; margin-left: -5px;
	border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
@keyframes k-hupf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 700px) {
	.k-buehne__claim { top: 41%; }
	.k-buehne__runter, .k-buehne__nav { display: none; }
	.k-buehne__dots { right: var(--k-rand); bottom: 30px; }
}
/* Abstände zwischen den Abschnitten wie auf der bisherigen Seite (ca. 200 px) */
.k-home .k-inhalt > .k-buehne + *, .k-home .k-inhalt > .wp-block-columns { margin-top: 200px; }
@media (max-width: 900px) { .k-home .k-inhalt > .k-buehne + *, .k-home .k-inhalt > .wp-block-columns { margin-top: 90px; } }
/* Startseite wie bisher: Galerie und Team beginnen auf Höhe des Titels, Abschnitte mit 20 px Rand */
@media (min-width: 901px) {
	.k-inhalt .wp-block-columns.k-start-1, .k-inhalt .wp-block-columns.k-start-2 { padding: 20px 0; }
	.k-start-1 > .wp-block-column:first-child { padding-top: calc(var(--k-titel) + 26px); } /* Titelhöhe + 6 px */
	.k-start-2 > .wp-block-column:last-child { padding-top: calc(var(--k-titel) + 20px); } /* Nummer + 20 px */
}

/* ---------- Bildband mit Wellen ---------- */
.k-band {
	position: relative; overflow: hidden; margin: 120px calc(50% - 50vw) 0; /* 20 px Abschnittsrand + 100 px wie bisher */
	min-height: max(200px, 30vw);
}
.k-band__bg {
	position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat;
	transform: scale(var(--k-zoom, 1.12)); will-change: transform;
}
.k-welle { position: absolute; left: 0; width: calc(100% + 2px); height: 100px; fill: #fff; z-index: 1; }
.k-welle--top { top: -1px; }
.k-welle--bottom { bottom: -1px; transform: rotate(180deg); }
@media (max-width: 700px) { .k-welle { height: 48px; } .k-band { margin-top: 64px; } }

/* ---------- Team ---------- */
.k-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.k-team__item { position: relative; overflow: hidden; background: var(--k-hellgrau); aspect-ratio: 1; outline: none; }
.k-team__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.k-team__info {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
	padding: 15px 15px 20px; color: #fff; background: rgba(0, 48, 8, 0.87); /* wie bisher */
	opacity: 0; transition: opacity 0.35s ease;
}
.k-team__name { font-family: var(--k-serif); font-style: italic; font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.k-team__role { font-size: 16px; line-height: 1.3; }
.k-team__item:hover .k-team__info, .k-team__item:focus .k-team__info, .k-team__item:focus-within .k-team__info { opacity: 1; }
.k-team__item:hover img { transform: scale(1.05); }
.k-team__link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.k-team__link:focus-visible { outline: 3px solid var(--k-hellgruen); outline-offset: -3px; }
.k-team__info { pointer-events: none; }
@media (hover: none) { .k-team__info { opacity: 1; background: linear-gradient(0deg, rgba(0, 48, 8, 0.87) 0%, rgba(0, 48, 8, 0) 50%); } }
@media (max-width: 600px) { .k-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .k-team__info { padding: 10px 12px; } }

/* ---------- Kontakt: Formular + Karte ---------- */
.k-kontakt { display: grid; grid-template-columns: calc((100% - var(--k-abstand)) * 0.6054) calc((100% - var(--k-abstand)) * 0.3946); gap: var(--k-abstand); align-items: start; margin-bottom: 0; }
@media (max-width: 900px) { .k-kontakt { grid-template-columns: 1fr; } }

/* Formular wie bisher (Elementor-Einstellungen der alten Seite): Beschriftung 16 px halbfett, Felder weiß mit 2 px Rahmen in Hellgrün, 16 px Abstand */
.k-form__feld { margin: 0 0 16px; }
.k-form { margin-top: 28px; } /* wie bisher */
.k-form label { display: block; font-size: 16px; font-weight: 600; line-height: 16px; color: var(--k-schwarz); margin: 0; padding-bottom: 8px; }
.k-form input[type="text"], .k-form input[type="email"], .k-form input[type="tel"], .k-form textarea {
	display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 21px; color: var(--k-schwarz);
	background: #fff; border: 2px solid var(--k-hellgruen); border-radius: 0; padding: 15px; margin: 0;
	transition: border-color 0.2s;
}
.k-form input[type="text"], .k-form input[type="email"], .k-form input[type="tel"] { height: 53px; }
.k-form input:focus, .k-form textarea:focus { outline: none; border-color: var(--k-gruen-web); }
.k-form textarea { resize: vertical; height: 116px; min-height: 116px; }
/* Datenschutz-Hinweis und Einwilligung bewusst etwas kleiner (Wunsch Andreas 03.12.2026) */
.k-form__hinweis { font-size: 15px; line-height: 22px; color: var(--k-schwarz); margin: 0 0 12px; }
.k-form__check { display: flex; gap: 8px; align-items: center; min-height: 22px; margin: 0 0 16px; }
.k-form__check input { margin: 0; width: 15px; height: 15px; accent-color: var(--k-hellgruen); flex: none; }
.k-form .k-form__check label { font-weight: 400; font-size: 15px; line-height: 22px; padding: 0; margin: 0; }
.k-form__senden { margin: 0; }
.k-form button { padding: 11px 24px; line-height: 18px; } /* 40 px hoch wie bisher */
.k-form__hp { margin: 0 !important; position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.k-form__meldung { padding: 14px 16px; margin: 0 0 20px; font-weight: 600; }
.k-form__meldung--ok { background: #e9f4dc; color: var(--k-dunkelgruen); border-left: 4px solid var(--k-hellgruen); }
.k-form__meldung--fehler { background: #fbeaea; color: #7a1414; border-left: 4px solid #c62828; }

.k-karte { position: relative; height: 438px; margin-top: 52px; background: var(--k-dunkelgruen); color: #fff; overflow: hidden; }
/* Karte oben bündig mit dem ersten Formularfeld: 28 px Formularabstand + 24 px Beschriftung (Wunsch Andreas 03.12.2026) */
@media (max-width: 900px) { .k-karte { margin-top: 23px; } }
.k-karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.k-karte__hinweis {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding: 32px; gap: 14px;
	background:
		radial-gradient(circle at 80% 15%, rgba(117, 183, 39, 0.25), transparent 45%),
		repeating-linear-gradient(35deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 26px),
		var(--k-dunkelgruen);
}
.k-karte__pin { width: 44px; height: 44px; fill: var(--k-hellgruen); }
.k-karte__adresse { margin: 0; font-size: 1.05rem; }
.k-karte__laden { background: var(--k-hellgruen); }
.k-karte__laden:hover { background: #fff; color: var(--k-schwarz); }
.k-karte__text { margin: 0; font-size: 0.85rem; opacity: 0.85; max-width: 34em; }
.k-karte__text a, .k-karte__extern { color: #fff; }
.k-karte__extern { font-size: 0.85rem; }

/* ---------- Rechtstexte ---------- */
/* Datenschutz: gleiche Textspalte wie im Impressum – bündig mit der Überschrift, 60 px Luft rechts (Wunsch Andreas 03.12.2026) */
.k-recht { max-width: 860px; box-sizing: border-box; padding: 0 60px 0 20px; }
@media (max-width: 900px) { .k-recht { max-width: none; padding: 0; } }
/* Impressum/Datenschutz wie bisher: Kopf höher (Nummer bei 234 px), Absatz vor Agentur-Block mit 20 px mehr */
.k-kopfzeile.k-erste.k-rechtkopf { margin-top: calc(-39px - var(--k-titel)) !important; }
@media (max-width: 900px) { .k-kopfzeile.k-erste.k-rechtkopf { margin-top: 0 !important; } }
.k-inhalt .k-abstand-20 { margin-top: calc(0.9rem + 20px); }
/* Impressum: Rechtstexte bündig mit der Überschrift (20 px) und mehr Luft zur rechten Spalte (Wunsch Andreas 03.12.2026) */
.k-recht-spalten > .wp-block-column:first-child { padding: 0 60px 0 20px; }
@media (max-width: 900px) { .k-recht-spalten > .wp-block-column, .k-recht-spalten > .wp-block-column:first-child { padding: 0; } }
.k-recht h2 { font-size: 1.5rem !important; margin: 2em 0 0.6em !important; color: var(--k-schwarz) !important; text-transform: none !important; line-height: 1.2 !important; }
.k-recht h3 { font-size: 1.2rem; }
.k-recht a { word-break: break-word; }
.k-recht > :first-child { margin-top: 0 !important; }
.k-recht ul { margin: 0 0 1em; padding-left: 1.3em; }
.k-recht li { margin-bottom: 0.35em; }

/* ---------- Einblend-Animationen ---------- */
.k-anim { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.k-anim.k-anim--fade { transform: none; }
.k-anim.k-anim--bounce { transform: scale(0.3); transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.215, 0.61, 0.355, 1.35); }
.k-anim.is-sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.k-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
	.k-buehne__claim span { animation: none; opacity: 1; transform: none; }
	.k-buehne__runter { animation: none; }
	.k-band__bg { transform: none !important; }
}

/* ---------- Lightbox ---------- */
.k-lightbox {
	position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 10, 0.94);
	display: flex; align-items: center; justify-content: center; padding: 60px 70px;
	opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.k-lightbox.is-offen { opacity: 1; visibility: visible; }
.k-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.k-lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.4rem; line-height: 1; padding: 10px 16px; opacity: 0.8; }
.k-lightbox button:hover { opacity: 1; color: var(--k-hellgruen); }
.k-lightbox__zu { top: 10px; right: 10px; }
.k-lightbox__zurueck { left: 6px; top: 50%; transform: translateY(-50%); }
.k-lightbox__vor { right: 6px; top: 50%; transform: translateY(-50%); }
.k-lightbox__text { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: #fff; font-family: var(--k-serif); font-style: italic; font-size: 18px; line-height: 1.4; padding: 0 60px; }
@media (max-width: 600px) { .k-lightbox { padding: 50px 10px; } }

/* ---------- Fuß ---------- */
.k-fuss { margin-top: 200px; color: #fff; }
.k-fuss__bild { height: 558px; background: url("assets/img/spaehne.jpg") center / cover no-repeat; }
.k-fuss__box { position: relative; margin-top: -200px; min-height: 200px; background: rgba(10, 10, 10, 0.8); }
.k-fuss__innen {
	max-width: var(--k-max); margin: 0 auto; padding: 20px 0;
	display: grid; grid-template-columns: 310fr 433fr 382fr 375fr; gap: 0; align-items: start;
}
.k-fuss__innen > * { padding: 0 20px; }
.k-fuss__logo img { width: 146px; }
.k-fuss__spalte p { font-family: var(--k-serif); font-style: italic; font-weight: 500; font-size: 16px; line-height: 27px; margin: 0 0 14px; }
.k-fuss__label { font-weight: 500; }
.k-fuss a { color: #fff; text-decoration: none; }
.k-fuss a:hover { color: var(--k-hellgruen); }
.k-fuss__leiste { background: var(--k-schwarz); }
.k-fuss__leiste-innen {
	max-width: var(--k-max); margin: 0 auto; padding: 20px var(--k-rand) 34px;
	display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap;
	font-size: 14px; font-weight: 600; line-height: 27px; text-transform: uppercase; letter-spacing: 1.1px;
}
.k-fuss__copy { opacity: 0.6; text-transform: none; letter-spacing: 0; }
.k-fuss__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
@media (max-width: 900px) {
	.k-fuss__innen { grid-template-columns: 1fr 1fr; }
	.k-fuss__bild { height: 360px; }
	.k-fuss__box { margin-top: -120px; }
}
@media (max-width: 560px) {
	.k-fuss__innen { grid-template-columns: 1fr; gap: 10px; }
	.k-fuss__logo { margin-bottom: 14px; }
}

/* Kleine Bilder (Größe „Mittel“) nicht hochskalieren */
.k-inhalt .wp-block-image.size-medium img { width: auto; max-width: 100%; }
/* wie bisher: kleines Bild auf Leistungen überlappt das große (−88 px / 50 px) */
.k-inhalt .wp-block-column > .wp-block-image.size-medium { position: relative; z-index: 1; margin: -88px 0 0 50px; }
@media (max-width: 1024px) { .k-inhalt .wp-block-column > .wp-block-image.size-medium { max-width: 35%; } }

/* Handy: alle Überschriften linksbündig an der Bildkante; auf Unterseiten Vorzeile + Seitentitel zuerst, dann 01 … (Wunsch Andreas 03.12.2026) */
@media (max-width: 900px) {
	.k-kopfzeile > .wp-block-column:first-child, .k-kopfzeile.k-erste > .wp-block-column { padding-left: 0; }
	.k-inhalt .k-kopfzeile .has-text-align-right, .k-inhalt .k-ansprech .has-text-align-right { text-align: left; }
	.k-inhalt .k-kontaktkopf .k-titel, .k-inhalt .k-kontakt-nr .k-titel { margin-left: 0; }
	.k-kopfzeile.k-erste > .wp-block-column:last-child { order: -1; }
}
