/* Kündigungsbutton (§ 312k BGB) – Formularseite und Quittung.
 *
 * Das Formular steht in drei verschiedenen Themes (liftdiscount, enwimo,
 * gekauftes Theme mit Elementor). Deshalb: Schrift erben, Farben neutral
 * und kontraststark (alles ≥ 4,5:1 auf Weiß), keine Markenfarben. Die
 * Rechtsseite soll nüchtern aussehen, nicht nach Angebot.
 *
 * Gemessene Kontraste auf #ffffff: Text #1f2328 15,8:1 · Hilfetext #4b5563
 * 7,6:1 · Fehler #b3261e 6,5:1 · Knopf weiß auf #1f4e8c 8,3:1 ·
 * Rahmen #6b7280 4,8:1 (für Bedienelemente reichten 3:1).
 */

.ldk {
	--ldk-text: #1f2328;
	--ldk-leise: #4b5563;
	--ldk-rahmen: #6b7280;
	--ldk-fehler: #b3261e;
	--ldk-knopf: #1f4e8c;
	--ldk-knopf-hover: #163a69;
	--ldk-flaeche: #f6f7f9;
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto 2rem;
	color: var(--ldk-text);
	font: inherit;
	line-height: 1.5;
}
.ldk *, .ldk *::before, .ldk *::after { box-sizing: border-box; }

.ldk-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ldk-einleitung { margin: 0 0 1.25rem; }

.ldk-gruppe {
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
	min-width: 0; /* Fieldset darf sonst auf 375 px nicht schrumpfen */
}
.ldk-gruppe legend,
.ldk-label {
	display: block;
	margin: 0 0 .35rem;
	padding: 0;
	font-weight: 600;
	color: var(--ldk-text);
}
.ldk-label { margin-top: .75rem; }
.ldk-gruppe > .ldk-label:first-child { margin-top: 0; }
.ldk-pflicht { color: var(--ldk-fehler); }
.ldk-frei { font-weight: 400; color: var(--ldk-leise); }

.ldk input[type="text"],
.ldk input[type="email"],
.ldk input[type="date"],
.ldk textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: .65rem .75rem;
	border: 1px solid var(--ldk-rahmen);
	border-radius: 6px;
	background: #fff;
	color: var(--ldk-text);
	font: inherit;
	font-size: 1rem; /* < 16 px zoomt iOS beim Antippen */
	line-height: 1.4;
}
.ldk input[type="date"] { max-width: 16rem; min-height: 2.75rem; }
.ldk textarea { resize: vertical; }
.ldk input:focus-visible,
.ldk textarea:focus-visible,
.ldk .ldk-radio:focus-visible + .ldk-radiolabel,
.ldk-knopf:focus-visible {
	outline: 3px solid var(--ldk-knopf);
	outline-offset: 2px;
}

/* Radioknöpfe: Eingabe und Beschriftung als Geschwister – das braucht
   der Geschwister-Selektor für das Grund-Feld ohne JavaScript. */
.ldk-radio {
	width: 1.15rem; height: 1.15rem;
	margin: .2rem .5rem 0 0;
	vertical-align: top;
	accent-color: var(--ldk-knopf);
}
.ldk-radiolabel {
	display: inline-block;
	width: calc(100% - 2rem);
	margin: 0 0 .5rem;
	vertical-align: top;
	cursor: pointer;
}

/* Grund nur bei außerordentlicher Kündigung. Ohne JS über :checked,
   mit JS zusätzlich über das hidden-Attribut. */
.ldk-grund { display: none; margin: .25rem 0 0 1.65rem; }
#ldk-art-2:checked ~ .ldk-grund { display: block; }
.ldk-grund[hidden] { display: none !important; }

.ldk-datum { margin: 0 0 0 1.65rem; }
.ldk-datum .ldk-label { margin-top: 0; font-weight: 400; }

/* Fehler */
.ldk-feldfehler {
	margin: 0 0 .35rem;
	color: var(--ldk-fehler);
	font-weight: 600;
}
.ldk-feldfehler[hidden] { display: none; }
.ldk [aria-invalid="true"] input,
.ldk input[aria-invalid="true"] { border-color: var(--ldk-fehler); border-width: 2px; }
.ldk-fehlerliste {
	margin: 0 0 1.25rem;
	padding: .75rem 1rem;
	border: 2px solid var(--ldk-fehler);
	border-radius: 6px;
	background: #fff;
	color: var(--ldk-text);
}
.ldk-fehlerliste[hidden] { display: none; }
.ldk-fehlerliste p { margin: 0 0 .35rem; }
.ldk-fehlerliste ul { margin: 0; padding-left: 1.25rem; }
.ldk-fehlerliste a { color: var(--ldk-fehler); text-decoration: underline; }

/* Honigtopf: aus dem Bild, aus der Tab-Reihenfolge, für Screenreader
   stumm (aria-hidden im HTML). Nicht display:none – manche Bots füllen
   nur Felder, die gerendert werden. */
.ldk-honig {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important; height: 1px !important;
	overflow: hidden !important;
}

/* Der Knopf „jetzt kündigen“: gut lesbar, groß genug für zittrige Finger. */
.ldk-absenden { margin: 1.5rem 0 .5rem; }
.ldk-knopf {
	display: inline-block;
	min-height: 3rem;
	padding: .75rem 1.5rem;
	border: 0;
	border-radius: 6px;
	background: var(--ldk-knopf);
	color: #fff;
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}
.ldk-knopf:hover { background: var(--ldk-knopf-hover); color: #fff; }
.ldk-knopf[disabled] { opacity: .7; cursor: progress; }
.ldk-knopf--zweit {
	background: #fff;
	color: var(--ldk-knopf);
	border: 2px solid var(--ldk-knopf);
}
.ldk-knopf--zweit:hover { background: var(--ldk-flaeche); color: var(--ldk-knopf-hover); }
.ldk-knopf[hidden] { display: none; }
.ldk-status { min-height: 1.5em; margin: 0; color: var(--ldk-leise); }

.ldk-weitere { margin: 0; }
.ldk-weitere a, a.ldk-weitere { color: var(--ldk-knopf); text-decoration: underline; }
.ldk-hinweis {
	max-width: 640px;
	margin: 0 auto 1rem;
	padding: .75rem 1rem;
	border-left: 4px solid var(--ldk-rahmen);
	background: #f6f7f9;
	color: #1f2328;
}

/* Quittung */
.ldk-quittung {
	padding: 1.25rem;
	border: 1px solid var(--ldk-rahmen);
	border-radius: 8px;
	background: #fff;
}
.ldk-quittung:focus { outline: none; }
.ldk-quittung h2 { margin: 0 0 .75rem; font-size: 1.35rem; line-height: 1.3; color: var(--ldk-text); }
.ldk-abgabe { margin: 0 0 1rem; }
.ldk-beleg { margin: 0 0 1rem; }
.ldk-beleg dt { margin: .6rem 0 0; font-weight: 600; }
.ldk-beleg dd { margin: 0; overflow-wrap: anywhere; }
.ldk-mailhinweis--warnung { padding: .5rem .75rem; border-left: 4px solid var(--ldk-fehler); background: #fff; }
.ldk-aktionen .ldk-knopf { margin: 0 .5rem .5rem 0; }

@media (max-width: 480px) {
	.ldk-knopf { width: 100%; }
	.ldk-quittung { padding: 1rem; }
}

/* ---------------------------------------------------------------------
 * Keine weiteren Angebote auf der Bestätigungsseite (§ 312k BGB, BGH
 * I ZR 200/25). Ausgeblendet werden die Verkaufs- und Kontaktelemente der
 * Themes und Plugins:
 *  - Kopf: der orange Knopf „Kostenloses Angebot“ (ld/enwimo header.php:54,
 *    …-btn--header) und dasselbe im mobilen Menü (…-nav__mobile-extra,
 *    header.php:48, samt Telefonknopf). Vom Kopf bleiben Logo und Menü.
 *  - Menüpunkte, die auf ein Angebot springen: „Sofortangebot“
 *    (#sofortangebot, Hauptmenü ld und enwimo) und „Kostenloses Angebot“
 *    (#anfrage, enwimo-Footermenü „Schnell zum Ziel“).
 *  - Stickybar, Gutschein/„Direkt starten“, Chat, KI, WhatsApp/Anruf.
 * Es BLEIBEN: übrige Navigation, Footer-Rechtsmenü (Impressum, Datenschutz
 * – § 5 DDG, Art. 13 DSGVO), Cookie-Hinweis.
 *
 * Popup Maker (.pum) wird hier ausdrücklich NICHT ausgeblendet: Auf
 * preisportal sind Impressum, Datenschutz, AGB und Widerrufsrecht Popups
 * (click_open). Selbst öffnende Werbe-Popups nimmt PHP gezielt heraus
 * (ldk_popup_ladbar über pum_popup_is_loadable).
 *
 * preisportal (OnePress, Footermenü „Service“; vor Ort gemessen am
 * 29.11.2026): „Angebot anfordern“ (/angebot-und-termin/) und
 * „Beratungs-Termin vereinbaren“ (/beratungs-termin-vereinbaren/) – seit
 * 1.0.1. „Preise & Modelle“ und „Infomaterial“ bleiben als Navigation,
 * wie „Lifte & Preise“ auf ld/enwimo.
 * ------------------------------------------------------------------ */
body.ldk-seite .ld-btn--header,
body.ldk-seite .enwimo-btn--header,
body.ldk-seite .ld-nav__mobile-extra,
body.ldk-seite .enwimo-nav__mobile-extra,
body.ldk-seite a[href*="#sofortangebot"],
body.ldk-seite a[href*="#anfrage"],
body.ldk-seite a[href*="/angebot-und-termin"],
body.ldk-seite a[href*="/beratungs-termin-vereinbaren"],
body.ldk-seite .ld-stickybar,
body.ldk-seite #ldStickybar,
body.ldk-seite .enwimo-stickybar,
body.ldk-seite #enwimoStickybar,
body.ldk-seite .ld-coupon--footer,
body.ldk-seite .enwimo-coupon--footer,
body.ldk-seite .ld-footer__grid > .ld-footer__col:last-child,
body.ldk-seite .enwimo-footer__grid > .enwimo-footer__col:last-child,
body.ldk-seite .ld-footer__cta-text,
body.ldk-seite .enwimo-footer__cta-text,
body.ldk-seite .ld-footer__about,
body.ldk-seite .enwimo-footer__about,
body.ldk-seite .ldch-start,
body.ldk-seite .ldch-pop,
body.ldk-seite #ldchStart,
body.ldk-seite #ldchPop,
body.ldk-seite #ssb-container,
body.ldk-seite .ldc-ki-launch,
body.ldk-seite .ldc-ki-hint,
body.ldk-seite ai-voicereceptionist,
body.ldk-seite .joinchat,
body.ldk-seite .ht-ctc,
body.ldk-seite .wa__btn_popup,
body.ldk-seite .wa__popup_chat_box,
body.ldk-seite #whatsapp-button,
body.ldk-seite .whatsapp-button,
body.ldk-seite .qlwapp,
body.ldk-seite #callnowbutton,
body.ldk-seite .call-now-button,
body.ldk-seite .callnowbutton {
	display: none !important;
}
/* Den Listenpunkt um einen Angebots-Link mit ausblenden (sonst bleibt ein
   leerer Platz samt Trenner). Eigene Regel: Ein Browser ohne :has()
   verwirft nur diese, nicht die Liste oben. */
body.ldk-seite li:has(> a[href*="#sofortangebot"]),
body.ldk-seite li:has(> a[href*="#anfrage"]) {
	display: none !important;
}
/* preisportal: dieselbe Behandlung für die beiden Angebots-Links im
   Footermenü. Eigene Regel – aus demselben :has()-Grund wie oben. */
body.ldk-seite li:has(> a[href*="/angebot-und-termin"]),
body.ldk-seite li:has(> a[href*="/beratungs-termin-vereinbaren"]) {
	display: none !important;
}
body.ldk-seite { padding-bottom: 0 !important; }

/* ---------------------------------------------------------------------
 * Druck: nur die Quittung. „Drucken → Als PDF speichern“ ist der Hauptweg
 * zum dauerhaften Datenträger.
 *
 * Hauptweg mit JavaScript (ldk.js, beforeprint): Eine Kopie der Quittung
 * hängt als direktes Kind an <body>, <html> bekommt .ldk-druck, alles
 * andere ist display:none. Grund: Elementor (preisportal) verpackt Inhalte
 * in .elementor-section/-column/-widget-wrap mit position:relative – ein
 * position:absolute; top:0 bezöge sich dann auf diesen Kasten, die
 * Quittung begänne unter dem unsichtbaren Kopf und zerfiele auf zwei
 * Seiten (nachgestellt: erstes Wort bei y = 682 von 842 pt).
 *
 * Rückfall ohne JavaScript: visibility. Dazu alle Vorfahren auf static,
 * damit top:0 die Seite meint und nicht einen Elementor-Kasten.
 * ------------------------------------------------------------------ */
@media print {
	html.ldk-druck body > *:not(.ldk-druckkopie) { display: none !important; }
	html.ldk-druck body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	html.ldk-druck .ldk-druckkopie { display: block !important; position: static !important; }
	html.ldk-druck .ldk-druckkopie .ldk { max-width: none; margin: 0; }

	html:not(.ldk-druck) body.ldk-seite { visibility: hidden !important; background: #fff !important; }
	html:not(.ldk-druck) body.ldk-seite * { position: static !important; transform: none !important; }
	html:not(.ldk-druck) body.ldk-seite .ldk-quittung,
	html:not(.ldk-druck) body.ldk-seite .ldk-quittung * { visibility: visible !important; }
	html:not(.ldk-druck) body.ldk-seite .ldk-quittung {
		position: absolute !important;
		left: 0 !important; top: 0 !important;
		width: 100% !important;
	}
	.ldk-quittung {
		border: 0 !important;
		padding: 0 !important;
		color: #000 !important;
	}
	.ldk-aktionen,
	.ldk-speichern { display: none !important; }
}
/* Die Druckkopie ist am Bildschirm nie zu sehen. */
.ldk-druckkopie { display: none; }
