/* Konstruktionsfabrik – Montagepotenzial-Check
   Farben aus dem Logo: Anthrazit + Signalrot. Schrift wird vom Theme übernommen. */
.kf-mpc {
	--kf-ink: #1f1f1f;
	--kf-anthrazit: #444444;
	--kf-dark: #2b2b2b;
	--kf-red: #e00000;
	--kf-red-dark: #b80000;
	--kf-paper: #ffffff;
	--kf-mist: #f3f3f3;
	--kf-line: #d9d9d9;
	--kf-muted: #5c5c5c;
	--kf-radius: 2px;

	color: var(--kf-ink);
	font-size: 18px;
	line-height: 1.6;
	overflow-wrap: break-word;
}
.kf-mpc *,
.kf-mpc *::before,
.kf-mpc *::after { box-sizing: border-box; }
.kf-mpc [hidden] { display: none !important; }

/* Optional über die ganze Fensterbreite: [kf_montagepotenzial vollbreite="ja"] */
.kf-mpc--full { width: 100vw; margin-left: calc(50% - 50vw); }
body.kf-mpc-page { overflow-x: clip; }

/* Gegen Theme-Vorgaben absichern (Überschriftenfarben, Listenpunkte) */
.kf-mpc .kf-mpc-title { color: #fff !important; }
.kf-mpc .kf-mpc-h2,
.kf-mpc .kf-mpc-step-list h3,
.kf-mpc .kf-mpc-success h3 { color: var(--kf-ink) !important; }
.kf-mpc ul,
.kf-mpc ol { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.kf-mpc li { list-style: none !important; margin-left: 0 !important; }
.kf-mpc li::before,
.kf-mpc li::marker { content: none !important; }

/* Seitenleiste auf der Landingpage ausblenden, Inhalt auf volle Breite */
body.kf-mpc-page #secondary,
body.kf-mpc-page #sidebar,
body.kf-mpc-page .content-area ~ .widget-area,
body.kf-mpc-page #primary ~ aside { display: none !important; }
body.kf-mpc-page #primary,
body.kf-mpc-page .content-area { width: 100% !important; max-width: none !important; float: none !important; margin-right: 0 !important; }

/* Theme-Seitentitel ausblenden, die Landingpage bringt ihre eigene Überschrift mit */
body.kf-mpc-page .entry-header,
body.kf-mpc-page .page-header,
body.kf-mpc-page h1.entry-title,
body.kf-mpc-page .wp-block-post-title { display: none; }

.kf-mpc-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

.kf-mpc p { margin: 0; }
.kf-mpc h1, .kf-mpc h2, .kf-mpc h3 { margin: 0; font-family: inherit; text-wrap: balance; }

.kf-mpc-eyebrow {
	color: var(--kf-red);
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kf-mpc-h2 { font-size: clamp(1.6em, 1.2em + 1.4vw, 2.2em); line-height: 1.2; font-weight: 700; color: var(--kf-ink); }

.kf-mpc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	border: 0;
	border-radius: var(--kf-radius);
	background: var(--kf-red);
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.kf-mpc-btn:hover { background: var(--kf-red-dark); }
.kf-mpc-btn:focus-visible { outline: 3px solid var(--kf-ink); outline-offset: 3px; }
.kf-mpc-btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero mit dem K aus dem Logo */
.kf-mpc-hero {
	position: relative;
	overflow: hidden;
	background: var(--kf-dark);
	color: #fff;
	padding-block: clamp(32px, 4vw, 52px);
}
.kf-mpc-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.kf-mpc-hero-text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.kf-mpc-hero .kf-mpc-eyebrow { color: #ff4d4d; font-size: 1.15em; }
.kf-mpc-title {
	color: #fff;
	font-size: clamp(1.8em, 1em + 3vw, 3em);
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.kf-mpc-accent { color: var(--kf-red); }
.kf-mpc-lead { max-width: 60ch; font-size: clamp(1.1em, 1em + 0.5vw, 1.3em); color: #e6e6e6; }
.kf-mpc-hero .kf-mpc-btn { margin-top: 4px; }

.kf-mpc-mark { display: block; width: clamp(150px, 20vw, 240px); height: auto; }
.kf-mpc-mark-grey { fill: #5a5a5a; }
.kf-mpc-mark-red { fill: var(--kf-red); }

/* Einleitung */
.kf-mpc-intro { background: var(--kf-paper); padding-block: clamp(48px, 6vw, 80px); }
.kf-mpc-intro-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.kf-mpc-text { display: grid; gap: 1em; max-width: 64ch; }
.kf-mpc-text p:first-child { font-size: 1.12em; font-weight: 600; }
.kf-mpc-tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kf-mpc-tags li {
	margin: 0;
	padding: 12px 16px;
	border-left: 4px solid var(--kf-red);
	background: var(--kf-mist);
	font-weight: 700;
}

/* Ablauf */
.kf-mpc-steps { background: var(--kf-mist); padding-block: clamp(48px, 6vw, 80px); }
.kf-mpc-steps .kf-mpc-h2 { margin-bottom: 32px; }
.kf-mpc-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kf-mpc-step-list li {
	margin: 0;
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 28px 24px;
	background: var(--kf-paper);
	border-top: 4px solid var(--kf-anthrazit);
}
.kf-mpc-step-list li:nth-child(2) { border-top-color: var(--kf-red); }
.kf-mpc-num { font-size: 2.4em; font-weight: 800; line-height: 1; color: var(--kf-line); font-variant-numeric: tabular-nums; }
.kf-mpc-step-list h3 { font-size: 1.2em; font-weight: 700; color: var(--kf-ink); }
.kf-mpc-step-list p { color: var(--kf-muted); }
.kf-mpc-honest {
	margin-top: 32px !important;
	max-width: 72ch;
	padding: 18px 22px;
	background: var(--kf-paper);
	border: 1px solid var(--kf-line);
}

/* Formular */
.kf-mpc-form-section { background: var(--kf-paper); padding-block: clamp(56px, 7vw, 96px); scroll-margin-top: 80px; }
.kf-mpc-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.kf-mpc-form-intro { display: grid; gap: 16px; }
.kf-mpc-contact { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--kf-line); color: var(--kf-muted); line-height: 1.7; }
.kf-mpc-contact a { color: var(--kf-ink); }

.kf-mpc-form-card { background: var(--kf-mist); padding: clamp(20px, 3vw, 36px); border-top: 4px solid var(--kf-red); }
.kf-mpc-form { display: grid; gap: 18px; }
.kf-mpc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kf-mpc-field { display: grid; gap: 6px; min-width: 0; }
.kf-mpc-field > label,
.kf-mpc-label { font-weight: 700; font-size: 1em; }
.kf-mpc-field input,
.kf-mpc-field textarea {
	width: 100%;
	margin: 0;
	padding: 11px 12px;
	border: 1px solid #bdbdbd;
	border-radius: var(--kf-radius);
	background: #fff;
	color: var(--kf-ink);
	font: inherit;
	font-size: 16px;
	box-shadow: none;
}
.kf-mpc-field textarea { resize: vertical; min-height: 120px; }
.kf-mpc-field input:focus,
.kf-mpc-field textarea:focus { outline: 2px solid var(--kf-anthrazit); outline-offset: 0; border-color: var(--kf-anthrazit); }
.kf-mpc-field .is-invalid { border-color: var(--kf-red); }

.kf-mpc-drop {
	position: relative;
	display: grid;
	gap: 4px;
	justify-items: center;
	text-align: center;
	padding: 28px 16px;
	border: 2px dashed #a8a8a8;
	border-radius: var(--kf-radius);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.kf-mpc-drop:hover,
.kf-mpc-drop.is-over { border-color: var(--kf-red); background: #fff7f7; }
.kf-mpc-drop:focus-within { outline: 2px solid var(--kf-anthrazit); outline-offset: 2px; }
.kf-mpc-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.kf-mpc-drop-title { font-weight: 700; }
.kf-mpc-drop-title u { color: var(--kf-red); text-underline-offset: 3px; }
.kf-mpc-drop-hint { font-size: 0.95em; color: var(--kf-muted); max-width: 46ch; }

.kf-mpc-files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.kf-mpc-files:empty { display: none; }
.kf-mpc-files li {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid var(--kf-line);
	font-size: 0.95em;
}
.kf-mpc-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-mpc-file-size { color: var(--kf-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kf-mpc-files li.is-too-big { border-color: var(--kf-red); }
.kf-mpc-files li.is-too-big .kf-mpc-file-size { color: var(--kf-red); font-weight: 700; }
.kf-mpc-file-remove {
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: var(--kf-radius);
	background: transparent;
	color: var(--kf-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.kf-mpc-file-remove:hover { background: var(--kf-mist); color: var(--kf-red); }
.kf-mpc-files-total { justify-content: flex-end; border: 0 !important; background: transparent !important; color: var(--kf-muted); padding-block: 0 !important; }

.kf-mpc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.kf-mpc-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.95em; }
.kf-mpc-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--kf-red); }
.kf-mpc-check a { color: var(--kf-ink); }

.kf-mpc-progress { height: 8px; background: var(--kf-line); overflow: hidden; }
.kf-mpc-progress-bar { display: block; height: 100%; width: 0; background: var(--kf-red); transition: width 0.2s linear; }

.kf-mpc-submit { justify-self: start; }
.kf-mpc-required { font-size: 0.95em; color: var(--kf-muted); }

.kf-mpc-error { padding: 12px 16px; background: #fff0f0; border-left: 4px solid var(--kf-red); color: #8a0000; font-weight: 600; }
.kf-mpc-success { padding: 8px 0; display: grid; gap: 10px; }
.kf-mpc-success h3 { font-size: 1.35em; color: var(--kf-ink); }
.kf-mpc-success h3::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 14px; background: var(--kf-red); }

/* PS */
.kf-mpc-ps { background: var(--kf-dark); color: #e6e6e6; padding-block: 36px; }
.kf-mpc-ps p { max-width: 80ch; }
.kf-mpc-ps strong { color: #ff4d4d; }

@media (max-width: 860px) {
	.kf-mpc-intro-grid,
	.kf-mpc-form-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.kf-mpc-step-list { grid-template-columns: minmax(0, 1fr); }
	.kf-mpc-tags { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
	.kf-mpc-hero-inner { grid-template-columns: minmax(0, 1fr); }
	.kf-mpc-mark { display: none; }
}
@media (max-width: 520px) {
	.kf-mpc { font-size: 16px; }
	.kf-mpc-wrap { padding-inline: 16px; }
	.kf-mpc-row { grid-template-columns: minmax(0, 1fr); }
	.kf-mpc-submit { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.kf-mpc * { transition: none !important; }
}
