/* ==========================================================================
   Kalisi Hochbau – Frontend (Formular, Referenzen, Karte, Rechtstexte)
   Markenfarben aus dem Elementor-Kit: Rot #ED3237 / Anthrazit #373435
   ========================================================================== */

:root {
	--kh-red: #ED3237;
	--kh-red-dark: #C81E23;
	--kh-ink: #373435;
	--kh-ink-deep: #1E1C1D;
	--kh-text: #2B2829;
	--kh-muted: #5F5B5C;          /* AA-Kontrast auf Weiß (ersetzt #7A7A7A) */
	--kh-line: #E2DFDC;
	--kh-line-strong: #C9C4BF;
	--kh-paper: #FFFFFF;
	--kh-concrete: #F4F2EF;       /* warmes Betongrau */
	--kh-focus: 0 0 0 3px rgba(237, 50, 55, .28);
	--kh-radius: 2px;
	--kh-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--kh-body: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--kh-wrap: 1320px;
}

.kh-scope, .kh-legal, .kh-map { font-family: var(--kh-body); color: var(--kh-text); }
.kh-scope *, .kh-scope *::before, .kh-scope *::after { box-sizing: border-box; }
.kh-wrap { width: 100%; max-width: var(--kh-wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.kh-center { text-align: center; margin-top: 32px; }
.kh-missing { background: #FFF3CD; color: #7A4A00; padding: 0 4px; font-size: .85em; }

/* ---------- Typo-Bausteine ---------- */
.kh-eyebrow {
	font: 600 12px/1.2 var(--kh-head); letter-spacing: .14em; text-transform: uppercase;
	color: var(--kh-red); margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
}
.kh-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.kh-eyebrow--light { color: #fff; }
.kh-eyebrow--light::before { background: var(--kh-red); }

/* ---------- Buttons ----------
   Gehärtet gegen Theme-/Elementor-Kit-Stile (Hello Elementor setzt button { background: transparent; color: #c36 }). */
:root { --kh-radius-btn: 6px; }
a.kh-btn, button.kh-btn, .kh-scope .kh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 26px; margin: 0; border: 2px solid transparent !important; border-radius: var(--kh-radius-btn) !important;
	font: 600 15px/1.2 var(--kh-head); letter-spacing: .02em; text-decoration: none !important; text-transform: none;
	box-shadow: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
a.kh-btn:focus-visible, button.kh-btn:focus-visible { outline: none; box-shadow: var(--kh-focus); }
a.kh-btn--primary, button.kh-btn--primary, .kh-scope .kh-btn--primary { background-color: var(--kh-red) !important; border-color: var(--kh-red) !important; color: #fff !important; }
a.kh-btn--primary:hover, button.kh-btn--primary:hover, a.kh-btn--primary:focus, button.kh-btn--primary:focus { background-color: var(--kh-red-dark) !important; border-color: var(--kh-red-dark) !important; color: #fff !important; }
a.kh-btn--ghost, button.kh-btn--ghost, .kh-scope .kh-btn--ghost { background-color: transparent !important; border-color: var(--kh-ink) !important; color: var(--kh-ink) !important; }
a.kh-btn--ghost:hover, button.kh-btn--ghost:hover { background-color: var(--kh-ink) !important; color: #fff !important; }
a.kh-btn--light, button.kh-btn--light { background-color: transparent !important; border-color: rgba(255,255,255,.6) !important; color: #fff !important; }
a.kh-btn--light:hover, button.kh-btn--light:hover { border-color: #fff !important; background-color: rgba(255,255,255,.08) !important; }
.kh-btn--lg { min-height: 56px; padding-inline: 34px; font-size: 16px; }
.kh-btn--block { width: 100%; }

/* Alle Buttons der Website leicht abgerundet (Elementor-Buttons, Formular-Buttons, Chips) */
.elementor-button, .elementor-widget-button .elementor-button, .e-form__buttons button, .wp-block-button__link { border-radius: var(--kh-radius-btn) !important; }
.kh-chip { border-radius: var(--kh-radius-btn); }

/* ==========================================================================
   Anfrageformular
   ========================================================================== */
.kh-inquiry { display: grid; gap: 0; max-width: var(--kh-wrap); margin-inline: auto; background: var(--kh-paper); border: 1px solid var(--kh-line); position: relative; }
.kh-inquiry--split { grid-template-columns: minmax(280px, 400px) 1fr; }
.kh-inquiry__aside {
	background: var(--kh-ink); color: #fff; padding: clamp(28px, 4vw, 48px);
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
	border-top: 4px solid var(--kh-red);
}
.kh-inquiry__title { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--kh-head) !important; color: #fff !important; margin: 0 0 14px !important; text-transform: none !important; }
.kh-inquiry__intro { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.65; margin: 0 0 28px; }
.kh-contact-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.kh-contact-list li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 14px; line-height: 1.5; }
.kh-contact-list__label { font: 600 11px/1.9 var(--kh-head); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.kh-contact-list a { color: #fff !important; text-decoration: none; font-weight: 500; }
.kh-contact-list a:hover { color: var(--kh-red) !important; }

.kh-checks { list-style: none; margin: 0; padding: 0; }
.kh-checks li { position: relative; padding-left: 28px; margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.88); }
.kh-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: var(--kh-red); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.kh-checks--dark li { color: var(--kh-text); font-size: 16px; }

.kh-form { padding: clamp(24px, 4vw, 48px); min-width: 0; }
.kh-step { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
.kh-step__legend { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0 0 14px; margin-bottom: 22px; border-bottom: 1px solid var(--kh-line); font: 700 19px/1.2 var(--kh-head); color: var(--kh-ink); }
.kh-step__no { font: 700 13px/1 var(--kh-head); color: #fff; background: var(--kh-ink); padding: 6px 8px; letter-spacing: .06em; }

.kh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.kh-row--3 { grid-template-columns: 140px 1fr 160px; }
.kh-field { margin-bottom: 20px; min-width: 0; }
.kh-label { display: block; margin-bottom: 7px; font: 600 13.5px/1.35 var(--kh-head); color: var(--kh-ink); letter-spacing: .01em; }
.kh-label abbr, .kh-check abbr, .kh-fineprint abbr { color: var(--kh-red); text-decoration: none; border: 0; }
.kh-optional { font-weight: 400; color: var(--kh-muted); }

.kh-input {
	display: block; width: 100%; min-height: 50px; padding: 12px 14px;
	border: 1px solid var(--kh-line-strong); border-radius: var(--kh-radius); background: #fff;
	font: 400 15px/1.45 var(--kh-body); color: var(--kh-text);
	transition: border-color .15s, box-shadow .15s; appearance: none;
}
textarea.kh-input { min-height: 150px; resize: vertical; }
select.kh-input {
	padding-right: 40px; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, var(--kh-ink) 50%), linear-gradient(135deg, var(--kh-ink) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.kh-input::placeholder { color: #9A9593; }
.kh-input:hover { border-color: var(--kh-ink); }
.kh-input:focus { outline: none; border-color: var(--kh-red); box-shadow: var(--kh-focus); }
.kh-field.is-invalid .kh-input { border-color: var(--kh-red); background: #FFF8F8; }
.kh-error { margin: 6px 0 0; font-size: 13px; color: #B3161B; min-height: 0; }
.kh-error:empty { display: none; }
.kh-error::before { content: "! "; font-weight: 700; }

/* Kachel-Auswahl */
.kh-tiles { display: grid; gap: 10px; }
.kh-tiles--types { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kh-tiles--services { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kh-tile { position: relative; display: block; cursor: pointer; margin: 0; }
.kh-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kh-tile span {
	display: flex; align-items: center; gap: 10px; height: 100%; min-height: 50px; padding: 12px 14px;
	border: 1px solid var(--kh-line-strong); border-radius: var(--kh-radius); background: #fff;
	font: 500 14px/1.3 var(--kh-head); color: var(--kh-ink); transition: border-color .15s, background .15s, box-shadow .15s;
}
.kh-tile span::before { content: ""; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--kh-line-strong); border-radius: 50%; background: #fff; transition: all .15s; }
.kh-tile--check span::before { border-radius: 2px; }
.kh-tile:hover span { border-color: var(--kh-ink); }
.kh-tile input:focus-visible + span { box-shadow: var(--kh-focus); border-color: var(--kh-red); }
.kh-tile input:checked + span { border-color: var(--kh-ink); background: var(--kh-concrete); box-shadow: inset 3px 0 0 var(--kh-red); }
.kh-tile input:checked + span::before { border-color: var(--kh-red); background: var(--kh-red); box-shadow: inset 0 0 0 3px #fff; }
.kh-tile--check input:checked + span::before { box-shadow: none; background: var(--kh-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Upload */
.kh-drop { position: relative; display: block; padding: 26px 20px; border: 1.5px dashed var(--kh-line-strong); border-radius: var(--kh-radius); background: var(--kh-concrete); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.kh-drop:hover, .kh-drop.is-drag { border-color: var(--kh-red); background: #fff; }
.kh-drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.kh-drop__text { font-size: 14px; color: var(--kh-muted); line-height: 1.6; pointer-events: none; }
.kh-drop__text strong { color: var(--kh-ink); }
.kh-drop__list { list-style: none; margin: 10px 0 0; padding: 0; }
.kh-drop__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--kh-line); border-top: 0; font-size: 13px; }
.kh-drop__list li:first-child { border-top: 1px solid var(--kh-line); }
.kh-drop__list li span { color: var(--kh-muted); white-space: nowrap; }

/* Checkboxen */
.kh-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--kh-text); cursor: pointer; margin: 4px 0 0; }
.kh-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--kh-red); cursor: pointer; }
.kh-check a { color: var(--kh-ink); text-decoration: underline; text-underline-offset: 2px; }
.kh-check--privacy { padding: 16px; background: var(--kh-concrete); border-left: 3px solid var(--kh-ink); }
.is-invalid.kh-check--privacy, .kh-check--privacy.is-invalid { border-left-color: var(--kh-red); }

.kh-submit { border-top: 1px solid var(--kh-line); padding-top: 26px; }
.kh-verify { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 6px 16px; padding: 16px; margin: 0 0 14px; background: var(--kh-concrete); border-left: 3px solid var(--kh-ink); }
.kh-verify.is-invalid { border-left-color: var(--kh-red); }
.kh-verify .kh-label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.kh-verify .kh-label svg { flex: none; color: var(--kh-red); }
.kh-verify .kh-label strong { font-size: 17px; white-space: nowrap; }
.kh-verify__input { text-align: center; font-size: 18px !important; font-weight: 700; letter-spacing: .05em; }
.kh-verify__hint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--kh-muted); }
.kh-verify .kh-error { grid-column: 1 / -1; margin: 0; }
@media (max-width: 480px) { .kh-verify { grid-template-columns: 1fr; } }
.kh-submit .kh-btn { margin-top: 20px; }
.kh-fineprint { margin: 14px 0 0; font-size: 12.5px; color: var(--kh-muted); }
.kh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kh-noscript { padding: 12px; background: #FFF3CD; }

.kh-btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: kh-spin .8s linear infinite; }
.kh-form.is-sending .kh-btn__spinner { display: inline-block; }
.kh-form.is-sending button[type="submit"] { pointer-events: none; opacity: .85; }
@keyframes kh-spin { to { transform: rotate(360deg); } }

.kh-form__status { margin: 0 0 24px; padding: 14px 16px; border-left: 3px solid var(--kh-red); background: #FFF5F5; color: #8E1418; font-size: 14px; }

.kh-success { padding: clamp(32px, 5vw, 64px); text-align: left; outline: none; }
.kh-inquiry.is-done .kh-form { display: none; }
.kh-success__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--kh-red); color: #fff; margin-bottom: 22px; }
.kh-success__title { font: 700 26px/1.25 var(--kh-head) !important; color: var(--kh-ink) !important; margin: 0 0 12px !important; }
.kh-success p { font-size: 16px; line-height: 1.6; color: var(--kh-text); }
.kh-success a { color: var(--kh-red); font-weight: 600; }

@media (max-width: 960px) {
	.kh-inquiry--split { grid-template-columns: 1fr; }
	.kh-inquiry__aside { padding-bottom: 24px; }
	.kh-inquiry__aside .kh-checks { display: none; }
}
@media (max-width: 640px) {
	.kh-row, .kh-row--3 { grid-template-columns: 1fr; }
	.kh-tiles--types, .kh-tiles--services { grid-template-columns: 1fr 1fr; }
	.kh-tile span { font-size: 13px; padding: 10px 12px; }
	.kh-submit .kh-btn { width: 100%; }
	.kh-contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 380px) {
	.kh-tiles--types, .kh-tiles--services { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Referenzen (CPT)
   ========================================================================== */
.kh-hero { position: relative; background: var(--kh-ink-deep); color: #fff; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.kh-hero--img { background: linear-gradient(90deg, rgba(20,18,19,.92) 0%, rgba(20,18,19,.7) 55%, rgba(20,18,19,.45) 100%), var(--kh-hero) center/cover no-repeat; }
.kh-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 6px; background: var(--kh-red); }
.kh-hero__title { font: 700 clamp(30px, 4.6vw, 54px)/1.08 var(--kh-head) !important; color: #fff !important; margin: 0 0 18px !important; max-width: 20ch; text-transform: none !important; letter-spacing: -.01em; }
.kh-hero__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255,255,255,.85); max-width: 62ch; margin: 0; }
.kh-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 13px; color: rgba(255,255,255,.6); }
.kh-crumbs a { color: rgba(255,255,255,.85) !important; text-decoration: none; }
.kh-crumbs a:hover { color: #fff !important; text-decoration: underline; }

.kh-facts-bar { background: var(--kh-paper); border-bottom: 1px solid var(--kh-line); }
.kh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 auto; }
.kh-facts__item { padding: 22px 20px 22px 0; border-right: 1px solid var(--kh-line); margin-right: 20px; }
.kh-facts__item:last-child { border-right: 0; }
.kh-facts dt { font: 600 11px/1.4 var(--kh-head); letter-spacing: .14em; text-transform: uppercase; color: var(--kh-muted); margin: 0 0 6px; }
.kh-facts dd { margin: 0; font: 600 16px/1.35 var(--kh-head); color: var(--kh-ink); }

.kh-project__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); align-items: start; }
.kh-prose { font-size: 17px; line-height: 1.75; color: var(--kh-text); max-width: 72ch; }
.kh-prose h2 { font: 700 clamp(22px, 2.2vw, 28px)/1.25 var(--kh-head); color: var(--kh-ink); margin: 1.8em 0 .7em; }
.kh-prose h3 { font: 700 20px/1.3 var(--kh-head); color: var(--kh-ink); margin: 1.5em 0 .6em; }
.kh-prose img { max-width: 100%; height: auto; }
.kh-cta-card { position: sticky; top: 110px; padding: 30px; background: var(--kh-concrete); border-top: 4px solid var(--kh-red); }
.kh-cta-card__title { font: 700 22px/1.25 var(--kh-head) !important; color: var(--kh-ink) !important; margin: 0 0 10px !important; }
.kh-cta-card p { font-size: 15px; line-height: 1.6; margin: 0 0 20px; color: var(--kh-text); }
.kh-cta-card .kh-btn + .kh-btn { margin-top: 10px; }

.kh-quote { margin: 40px 0 0; padding: 28px 32px; background: var(--kh-concrete); border-left: 4px solid var(--kh-red); }
.kh-quote blockquote { margin: 0; border: 0; padding: 0; font: 500 19px/1.55 var(--kh-head); color: var(--kh-ink); }
.kh-quote figcaption { margin-top: 12px; font-size: 14px; color: var(--kh-muted); }

.kh-section { padding-block: clamp(48px, 7vw, 96px); }
.kh-section--alt { background: var(--kh-concrete); }
.kh-section--dark { background: var(--kh-ink); color: #fff; }
.kh-section__title { font: 700 clamp(24px, 2.6vw, 34px)/1.2 var(--kh-head) !important; color: var(--kh-ink) !important; margin: 0 0 32px !important; }

.kh-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kh-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.kh-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kh-gallery__item:hover img { transform: scale(1.04); }

.kh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.kh-card { background: #fff; border: 1px solid var(--kh-line); transition: border-color .2s, box-shadow .25s, transform .25s; }
.kh-card:hover { border-color: var(--kh-line-strong); box-shadow: 0 18px 40px -22px rgba(30,28,29,.4); transform: translateY(-3px); }
.kh-card__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; }
.kh-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--kh-concrete); }
.kh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.kh-card:hover .kh-card__media img { transform: scale(1.04); }
.kh-card__tag { position: absolute; left: 0; bottom: 0; background: var(--kh-red); color: #fff; font: 600 12px/1 var(--kh-head); letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px; }
.kh-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.kh-card__meta { font: 500 13px/1.4 var(--kh-head); color: var(--kh-muted); margin: 0 0 8px; }
.kh-card__title { font: 700 19px/1.3 var(--kh-head) !important; color: var(--kh-ink) !important; margin: 0 0 18px !important; text-transform: none !important; }
.kh-card__more { margin-top: auto; font: 600 14px/1 var(--kh-head); color: var(--kh-red); }

.kh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.kh-chip { padding: 9px 16px; border: 1px solid var(--kh-line-strong); font: 500 14px/1 var(--kh-head); color: var(--kh-ink) !important; text-decoration: none !important; background: #fff; }
.kh-chip span { color: var(--kh-muted); }
.kh-chip:hover { border-color: var(--kh-ink); }
.kh-chip.is-active { background: var(--kh-ink); border-color: var(--kh-ink); color: #fff !important; }
.kh-chip.is-active span { color: rgba(255,255,255,.7); }

.kh-pagination .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.kh-pagination .page-numbers { padding: 10px 14px; border: 1px solid var(--kh-line); color: var(--kh-ink); text-decoration: none; }
.kh-pagination .current { background: var(--kh-ink); color: #fff; border-color: var(--kh-ink); }

.kh-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.kh-band__title { font: 700 clamp(22px, 2.4vw, 30px)/1.25 var(--kh-head) !important; color: #fff !important; margin: 0 0 6px !important; }
.kh-band p { margin: 0; color: rgba(255,255,255,.8); }
.kh-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1024px) {
	.kh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kh-project__body { grid-template-columns: 1fr; }
	.kh-cta-card { position: static; }
}
@media (max-width: 640px) {
	.kh-grid { grid-template-columns: 1fr; }
	.kh-facts { grid-template-columns: 1fr 1fr; }
	.kh-facts__item { border-right: 0; margin-right: 0; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--kh-line); }
}

/* Lightbox */
.kh-lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.kh-lightbox::backdrop { background: rgba(15,14,14,.92); }
.kh-lightbox img { display: block; max-width: 94vw; max-height: 86vh; object-fit: contain; }
.kh-lightbox__bar { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.kh-lightbox button { background: #fff; color: var(--kh-ink); border: 0; padding: 10px 16px; font: 600 14px var(--kh-head); cursor: pointer; }

/* ==========================================================================
   Karte (2-Klick), Social, Rechtstexte
   ========================================================================== */
.kh-map { position: relative; min-height: var(--kh-map-h, 420px); background: var(--kh-concrete); border: 1px solid var(--kh-line); display: grid; place-items: center; overflow: hidden; }
.kh-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kh-map__consent { max-width: 460px; padding: 28px; text-align: center; }
.kh-map__addr { font: 500 16px/1.5 var(--kh-head); color: var(--kh-ink); margin: 0 0 12px; }
.kh-map__note { font-size: 13px; line-height: 1.55; color: var(--kh-muted); margin: 0 0 18px; }
.kh-map__note a { color: var(--kh-ink); }
.kh-map__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.kh-map__remember { font-size: 13px; color: var(--kh-muted); display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }

.kh-social { display: flex; gap: 10px; }
.kh-social a { display: grid; place-items: center; width: 38px; height: 38px; color: inherit; border: 1px solid currentColor; opacity: .85; transition: opacity .2s, color .2s; }
.kh-social a:hover { opacity: 1; color: var(--kh-red); }

.kh-legal { max-width: 820px; font-size: 16px; line-height: 1.7; }
.kh-legal h2 { font: 700 26px/1.25 var(--kh-head); color: var(--kh-ink); margin: 0 0 16px; }
.kh-legal h3 { font: 700 17px/1.3 var(--kh-head); color: var(--kh-ink); margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid var(--kh-line); }
.kh-legal p { margin: 0 0 10px; }
.kh-legal a { color: var(--kh-red); }
.kh-address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
	.kh-scope *, .kh-scope *::before { transition: none !important; animation: none !important; }
}

/* ---------- Einleitungsblock unter dem Hero [kalisi_intro] ---------- */
.kh-intro { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1200px; margin: 0 auto; text-align: left; }
.kh-intro--noimg { grid-template-columns: minmax(0, 760px); justify-content: center; }
.kh-intro__text { min-width: 0; }
.kh-intro .kh-eyebrow { margin: 0 0 14px; }
.kh-intro__title { margin: 0 0 20px; font: 700 clamp(26px, 3vw, 38px)/1.18 var(--kh-head); letter-spacing: -.01em; color: var(--kh-ink); text-transform: none; text-wrap: balance; }
.kh-intro__lead { margin: 0 0 18px; font: 500 clamp(16.5px, 1.35vw, 18.5px)/1.65 var(--kh-body); color: var(--kh-text); }
.kh-intro__p { margin: 0 0 14px; font: 400 15.5px/1.75 var(--kh-body); color: var(--kh-muted); max-width: 62ch; }
.kh-intro__points { list-style: none; margin: 26px 0 30px; padding: 22px 0 0; border-top: 1px solid var(--kh-line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.kh-intro__points li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; font: 600 14.5px/1.45 var(--kh-head); color: var(--kh-ink); }
.kh-intro__points li::before { content: none; }
.kh-intro__points svg { flex: none; margin-top: 1px; color: #fff; background: var(--kh-red); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.kh-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kh-intro__actions .kh-btn { display: inline-flex; align-items: center; gap: 8px; }
.kh-intro__media { position: relative; margin: 0; padding: 0 0 22px 22px; }
.kh-intro__media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 70%; background: var(--kh-red); z-index: 0; }
.kh-intro__media img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 24px 50px -24px rgba(30, 26, 27, .45); }
.kh-intro__badge { position: absolute; z-index: 2; right: -14px; bottom: 44px; display: grid; gap: 2px; padding: 14px 18px; background: var(--kh-ink); color: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.kh-intro__badge strong { font: 700 15px/1.2 var(--kh-head); }
.kh-intro__badge span { font: 500 11.5px/1.2 var(--kh-body); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
@media (max-width: 960px) {
	.kh-intro { grid-template-columns: 1fr; gap: 36px; }
	.kh-intro__media { order: -1; max-width: 560px; }
	.kh-intro__media img { aspect-ratio: 16 / 11; }
	.kh-intro__badge { right: 12px; bottom: 36px; }
}
@media (max-width: 560px) {
	.kh-intro__points { grid-template-columns: 1fr; }
	.kh-intro__actions .kh-btn { width: 100%; justify-content: center; }
	.kh-intro__media { padding: 0 0 14px 14px; }
}

/* ---------- Rechtstexte ---------- */
.kh-legal { margin-inline: auto; text-align: left; }
.kh-legal--privacy h2 { font-size: 21px; margin: 38px 0 12px; padding-top: 24px; border-top: 1px solid var(--kh-line); scroll-margin-top: 120px; }
.kh-legal__lead { font-size: 17px; color: var(--kh-ink); margin-bottom: 8px !important; }
.kh-legal ul { margin: 0 0 14px; padding-left: 1.2em; }
.kh-legal li { margin: 0 0 4px; }
.kh-legal__box { margin: 18px 0; padding: 16px 20px; background: var(--kh-concrete); border-left: 3px solid var(--kh-red); }
.kh-legal__box p:last-child { margin: 0; }
.kh-legal__date { margin-top: 32px !important; font-size: 13.5px; color: var(--kh-muted); }

/* ---------- Einwilligungsbanner ---------- */
.kh-consent { position: fixed; z-index: 2147483000; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 16px; pointer-events: none; font-family: var(--kh-body); }
.kh-consent[hidden] { display: none; }
.kh-consent__card { pointer-events: auto; width: 100%; max-width: 640px; background: #fff; color: var(--kh-text); border-top: 4px solid var(--kh-red); box-shadow: 0 24px 60px -12px rgba(30, 26, 27, .45), 0 0 0 1px rgba(30, 26, 27, .06); padding: 22px 24px 18px; transform: translateY(24px); opacity: 0; transition: transform .28s ease, opacity .28s ease; max-height: calc(100vh - 32px); overflow-y: auto; }
.kh-consent.is-open .kh-consent__card { transform: none; opacity: 1; }
.kh-consent__head { display: flex; align-items: center; gap: 10px; color: var(--kh-red); margin-bottom: 8px; }
.kh-consent__title { margin: 0; font: 700 18px/1.25 var(--kh-head); color: var(--kh-ink); }
.kh-consent__text { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--kh-muted); }
.kh-consent__details { display: grid; gap: 8px; margin: 0 0 14px; }
.kh-consent__details[hidden] { display: none; }
.kh-consent__opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--kh-concrete); cursor: pointer; }
.kh-consent__opt.is-locked { cursor: default; opacity: .85; }
.kh-consent__opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--kh-red); flex: none; }
.kh-consent__opt strong { display: block; font: 600 14px/1.3 var(--kh-head); color: var(--kh-ink); }
.kh-consent__opt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--kh-muted); }
.kh-consent__actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
.kh-consent__btn { appearance: none; border: 0 !important; border-radius: var(--kh-radius-btn) !important; padding: 12px 16px; font: 600 14.5px/1.2 var(--kh-head); cursor: pointer; transition: background .15s, color .15s; }
.kh-consent__btn:focus-visible { outline: none; box-shadow: var(--kh-focus); }
.kh-consent__btn--solid { background-color: var(--kh-ink) !important; color: #fff !important; }
.kh-consent__btn--solid:hover { background-color: #1f1c1d !important; }
.kh-consent__btn[data-kh-consent="all"] { background-color: var(--kh-red) !important; }
.kh-consent__btn[data-kh-consent="all"]:hover { background-color: var(--kh-red-dark) !important; }
.kh-consent__btn--link { background: none !important; color: var(--kh-ink) !important; text-decoration: underline; text-underline-offset: 3px; padding-inline: 6px; }
.kh-consent__btn[hidden] { display: none; }
.kh-consent__links { margin: 12px 0 0; font-size: 12.5px; color: var(--kh-muted); }
.kh-consent__links a { color: var(--kh-muted); text-decoration: underline; }
.kh-consent-fab { position: fixed; z-index: 2147482999; left: 16px; bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--kh-ink); box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06); cursor: pointer; opacity: .85; transition: opacity .15s, transform .15s; }
.kh-consent-fab:hover { opacity: 1; transform: scale(1.05); }
.kh-consent-fab[hidden] { display: none; }
@media (max-width: 560px) {
	.kh-consent { padding: 0; }
	.kh-consent__card { max-width: none; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }
	.kh-consent__actions { grid-template-columns: 1fr 1fr; }
	.kh-consent__btn--link { grid-column: 1 / -1; }
	.kh-consent__btn[data-kh-consent="save"] { grid-column: 1 / -1; }
	.kh-consent-fab { left: 12px; bottom: 12px; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .kh-consent__card { transition: none; } }

/* ---------- Projekt-Portal /projectupload/ ---------- */
.kh-portal { background: var(--kh-concrete); min-height: 70vh; padding-bottom: 64px; }
.kh-portal__bar { background: var(--kh-ink-deep, #1F1C1D); color: #fff; padding: 34px 0 30px; border-bottom: 4px solid var(--kh-red); }
.kh-portal__bar-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.kh-portal__bar .kh-eyebrow { margin: 0 0 8px; }
.kh-portal__title { margin: 0; font: 700 clamp(26px, 3vw, 34px)/1.1 var(--kh-head); color: #fff; }
.kh-portal__user { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.kh-portal__user a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.kh-portal__body { padding-top: 32px; }
.kh-portal__msg { margin: 0 0 24px; padding: 14px 18px; background: #fff; border-left: 4px solid #2E7D32; font-size: 15px; box-shadow: 0 1px 0 var(--kh-line); }
.kh-portal__msg.is-warn { border-color: #E0A100; }
.kh-portal__msg.is-err { border-color: var(--kh-red); }
.kh-portal__h2 { margin: 0 0 18px; font: 700 24px/1.2 var(--kh-head); color: var(--kh-ink); }
.kh-portal__h2 span { color: var(--kh-muted); font-weight: 500; }
.kh-portal__back { margin: 0 0 14px; font-size: 14px; }
.kh-portal__back a, .kh-portal-link { color: var(--kh-ink); text-decoration: underline; text-underline-offset: 3px; }
.kh-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--kh-muted); }

/* Login */
.kh-portal-login { display: grid; place-items: center; padding: 24px 0 40px; }
.kh-portal-login__card { width: 100%; max-width: 440px; background: #fff; padding: 36px 34px 28px; border-top: 4px solid var(--kh-red); box-shadow: 0 24px 60px -30px rgba(30,26,27,.45); }
.kh-portal-login__card > svg { color: var(--kh-red); }
.kh-portal-login__card h2 { margin: 10px 0 6px; font: 700 26px/1.2 var(--kh-head); color: var(--kh-ink); }
.kh-portal-login__card > p { margin: 0 0 22px; color: var(--kh-muted); font-size: 14.5px; line-height: 1.6; }
.kh-portal-login__submit { width: 100%; margin-top: 18px; }
.kh-portal-login__lost { margin: 14px 0 0; text-align: center; font-size: 14px; }
.kh-portal-login__lost a { color: var(--kh-muted); }
.kh-pwd { position: relative; }
.kh-pwd .kh-input { padding-right: 96px; }
.kh-pwd__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--kh-ink); font: 600 13px var(--kh-head); cursor: pointer; padding: 8px 10px; }

/* Liste */
.kh-portal-list__head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.kh-portal-list__head .kh-portal__h2 { margin: 0; }
.kh-portal-search { flex: 1 1 240px; max-width: 360px; margin-left: auto; }
.kh-portal-search .kh-input { min-height: 46px; }
.kh-portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kh-portal-item { display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; align-items: center; margin: 0; padding: 14px; background: #fff; box-shadow: 0 1px 0 var(--kh-line); }
.kh-portal-item__img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--kh-concrete); overflow: hidden; font-size: 12px; color: var(--kh-muted); }
.kh-portal-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-portal-item h3 { margin: 6px 0 4px; font: 700 17px/1.3 var(--kh-head); }
.kh-portal-item h3 a { color: var(--kh-ink); text-decoration: none; }
.kh-portal-item__meta { margin: 0; font-size: 13px; color: var(--kh-muted); }
.kh-portal-item__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
.kh-portal-item__actions form { margin: 0; }
.kh-portal-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.kh-portal-link--danger { color: #B3161B; }
.kh-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.kh-badge { display: inline-block; padding: 3px 8px; font: 700 11px/1.3 var(--kh-head); letter-spacing: .06em; text-transform: uppercase; }
.kh-badge.is-online { background: #E6F4EA; color: #1E6B2E; }
.kh-badge.is-draft { background: #FFF4D6; color: #8A5A00; }
.kh-portal-empty { background: #fff; padding: 40px; text-align: center; }

/* Bearbeiten */
.kh-portal-edit { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.kh-portal-box { margin: 0 0 20px; padding: 22px 22px 8px; background: #fff; border: 0; box-shadow: 0 1px 0 var(--kh-line); min-width: 0; }
.kh-portal-box legend, .kh-portal-box > summary { float: left; width: 100%; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--kh-line); font: 700 16px/1.3 var(--kh-head); color: var(--kh-ink); }
.kh-portal-box legend + * { clear: both; }
.kh-portal-box > summary { float: none; cursor: pointer; list-style: none; }
.kh-portal-box > summary::after { content: "+"; float: right; color: var(--kh-red); }
.kh-portal-box[open] > summary::after { content: "–"; }
.kh-portal-more { padding-bottom: 14px; }
.kh-portal-box--sticky { padding-bottom: 20px; }
.kh-portal-save--end { width: auto; margin: 4px 0 0; }
body:has(.kh-portal-mobilebar) .kh-consent-fab { bottom: 92px; }
.kh-portal-box .kh-check { margin: 0 0 10px; }
.kh-portal-save { width: 100%; margin-top: 10px; }
.kh-portal-edit.is-sending .kh-btn__spinner { display: inline-block; }
.kh-portal-edit.is-sending .kh-portal-save, .kh-portal-edit.is-busy .kh-portal-save { pointer-events: none; opacity: .8; }
.kh-portal-view { display: block; margin-top: 12px; text-align: center; font-size: 14px; color: var(--kh-ink); }
.kh-field--s { max-width: 110px; }
.kh-portal-edit textarea.kh-input { min-height: 0; resize: vertical; line-height: 1.6; }

.kh-photos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.kh-photos:empty { display: none; }
.kh-photo { position: relative; margin: 0; aspect-ratio: 1; background: var(--kh-concrete); cursor: grab; outline-offset: 2px; }
.kh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.kh-photo.is-drag { opacity: .4; }
.kh-photo.is-new { cursor: default; }
.kh-photo__rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(31,28,29,.8); color: #fff; font-size: 13px; cursor: pointer; }
.kh-photo__rm:hover { background: var(--kh-red); }
.kh-photo__cover { position: absolute; top: 6px; left: 6px; cursor: pointer; }
.kh-photo__cover input { position: absolute; opacity: 0; }
.kh-photo__cover span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); color: #9a9596; font-size: 15px; }
.kh-photo__cover input:checked + span { background: var(--kh-red); color: #fff; }
.kh-photo__cover input:focus-visible + span { box-shadow: var(--kh-focus); }
.kh-photo__tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; background: rgba(31,28,29,.8); color: #fff; font-size: 11px; }
.kh-portal-drop { margin-bottom: 14px; padding: 30px 20px; }
.kh-drop__title { display: block; font: 600 15px var(--kh-head); color: var(--kh-ink); }
.kh-drop__hint { display: block; margin-top: 4px; font-size: 13px; color: var(--kh-muted); }
.kh-portal-edit.is-busy .kh-portal-drop { opacity: .6; }
.kh-legacy { margin: 0 0 16px; }
.kh-legacy summary { cursor: pointer; font: 600 14px var(--kh-head); color: var(--kh-ink); padding: 8px 0; }
.kh-legacy__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; max-height: 420px; overflow-y: auto; }
.kh-legacy__item { position: relative; display: block; cursor: pointer; border: 3px solid transparent; }
.kh-legacy__item:has(input:checked) { border-color: var(--kh-red); }
.kh-legacy__item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.kh-legacy__item input { position: absolute; top: 4px; left: 4px; z-index: 1; }
.kh-legacy__item.is-used img { opacity: .4; }
.kh-legacy__item span { position: absolute; bottom: 3px; left: 3px; background: var(--kh-ink); color: #fff; font-size: 10px; padding: 1px 5px; }

@media (max-width: 1000px) {
	.kh-portal-edit { grid-template-columns: 1fr; }
	.kh-portal-box--sticky { position: static; }
	.kh-portal-edit__side { order: -1; }
	.kh-portal-edit { padding-bottom: 76px; }
	.kh-portal-mobilebar { display: block !important; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px -12px rgba(0,0,0,.3); }
	.kh-portal-mobilebar .kh-btn { width: 100%; }
}
.kh-portal-mobilebar { display: none; }
@media (max-width: 700px) {
	.kh-portal-item { grid-template-columns: 96px 1fr; }
	.kh-portal-item__actions { grid-column: 1 / -1; justify-content: flex-start; }
	.kh-portal-search { order: 3; max-width: none; flex-basis: 100%; }
	.kh-portal-login__card { padding: 28px 20px 22px; }
	.kh-photos { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Leerer Zustand Referenzen ---------- */
.kh-empty { max-width: 780px; margin: 8px auto 0; padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px); background: #fff; border: 1px solid var(--kh-line); border-top: 4px solid var(--kh-red); text-align: center; }
.kh-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--kh-concrete); color: var(--kh-red); }
.kh-empty .kh-eyebrow { justify-content: center; margin: 0 0 10px; }
.kh-empty__title { margin: 0 0 12px; font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--kh-head); color: var(--kh-ink); }
.kh-empty__text { margin: 0 auto 24px; max-width: 58ch; font-size: 15.5px; line-height: 1.7; color: var(--kh-muted); }
.kh-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.kh-empty__chips { justify-content: center; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--kh-line); }
@media (max-width: 560px) { .kh-empty__actions .kh-btn { width: 100%; justify-content: center; } }

/* ---------- Schutz vor Theme-Button-Stilen (Hello Elementor: rosa Rahmen/Hover) ---------- */
button.kh-portal-link, button.kh-pwd__toggle { border: 0 !important; background: none !important; box-shadow: none !important; color: var(--kh-ink) !important; padding: 0; border-radius: 0; }
button.kh-pwd__toggle { padding: 8px 10px; }
button.kh-portal-link--danger, button.kh-portal-link--danger:hover { color: #B3161B !important; }
button.kh-portal-link:hover, button.kh-pwd__toggle:hover { background: none !important; color: var(--kh-red) !important; }
button.kh-photo__rm { border: 0 !important; padding: 0; background-color: rgba(31,28,29,.8) !important; color: #fff !important; border-radius: 50% !important; }
button.kh-photo__rm:hover { background-color: var(--kh-red) !important; }
.kh-lightbox button { border: 0 !important; background-color: #fff !important; color: var(--kh-ink) !important; border-radius: var(--kh-radius-btn) !important; }
.kh-lightbox button:hover { background-color: var(--kh-red) !important; color: #fff !important; }
button.kh-consent-fab { border: 0 !important; padding: 0; background-color: #fff !important; color: var(--kh-ink) !important; border-radius: 50% !important; }
button.kh-consent-fab:hover { color: var(--kh-red) !important; }
