/* Glasshop Konfigurator – Modal im Stil des bisherigen Konfigurators (Cyan #40D3E0, Schwarz, Titillium Web). */
.gkf, .gkf-print {
	--gkf-accent: #40d3e0;
	--gkf-accent-dark: #1fa9b5;
	--gkf-accent-soft: #e8f9fb;
	--gkf-ink: #111;
	--gkf-muted: #6b7280;
	--gkf-line: #d9dde1;
	--gkf-bg: #ececec;
	--gkf-radius: 6px;
	font-family: "Titillium Web", sans-serif;
	color: var(--gkf-ink);
}
.gkf *, .gkf *::before, .gkf *::after { box-sizing: border-box; }

/* Alter Konfigurator-Button und Standard-Warenkorb ausblenden, solange der neue aktiv ist */
.gkf-active form.cart,
.gkf-active .configure-product { display: none !important; }

/* Handy: Elemente des Themes (Warenkorb im Kopf, Cookie-Leiste) ragen über den Bildschirm hinaus – die Seite
   ließ sich dadurch seitlich verschieben/zoomen und das Modal wurde breiter als der Bildschirm. */
html:has(body.gkf-active), body.gkf-active { overflow-x: hidden; }
@supports (overflow: clip) { html:has(body.gkf-active), body.gkf-active { overflow-x: clip; } }

/* Button auf der Produktseite – wie der bisherige „Konfigurieren“-Button */
.gkf .gkf-launch {
	appearance: none;
	margin: 10px 0 20px;
	padding: 15px 50px;
	border: 0;
	border-radius: 5px;
	background: var(--gkf-accent);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s;
}
.gkf .gkf-launch:hover { background: var(--gkf-ink); }

/* Modal */
body.gkf-open { overflow: hidden; }
.gkf-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	background: #fff;
	animation: gkf-in .18s ease-out;
}
@keyframes gkf-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1025px) {
	.gkf-modal { grid-template-columns: minmax(0, 1fr) minmax(480px, 50%); grid-template-rows: minmax(0, 1fr); }
}

/* Links: Titel + Skizze */
.gkf-modal__visual { display: flex; flex-direction: column; background: var(--gkf-bg); min-height: 0; }
.gkf-modal__head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 24px; }
.gkf-modal__head h2 { margin: 0; font-size: 30px; font-weight: 400; line-height: 1.15; color: var(--gkf-ink); }
.gkf .gkf-close {
	appearance: none;
	flex: none;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--gkf-ink);
	display: grid;
	place-items: center;
	padding: 0;
	line-height: 0;
	cursor: pointer;
}
.gkf-modal__head .gkf-close { margin-top: -3px; } /* Mitte = erste Titelzeile (30 px × 1,15) */
.gkf .gkf-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gkf .gkf-close:focus { background: none; outline: none; }
.gkf .gkf-close:hover { background: none; color: var(--gkf-accent-dark); }
.gkf .gkf-close:focus-visible { box-shadow: 0 0 0 3px rgba(64, 211, 224, .6); }
.gkf-modal__sketch { flex: 1; display: grid; place-items: center; padding: 8px 24px 8px; min-height: 0; }
.gkf-sketch { width: 100%; max-width: 620px; max-height: 100%; overflow: visible; }
.gkf-dim path { stroke: #97a3aa; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.gkf-dim rect { fill: #fff; stroke: #dbe3e6; stroke-width: 1; }
.gkf-dim text { font-family: "Titillium Web", sans-serif; font-size: 12px; font-weight: 400; fill: #5b676e; }
.gkf-dim tspan { font-weight: 600; fill: var(--gkf-ink); }
img.gkf-icon { object-fit: contain; }
.gkf-profile {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin: 0 24px 14px;
	font-size: 13px;
	line-height: 1.3;
	color: #555;
}
.gkf-profile svg { display: block; flex: none; width: 150px; height: auto; }
.gkf-profile__glass { fill: #a9dde4; stroke: #6cc4cf; stroke-width: 1; }
.gkf-profile__dim { stroke: #9a9a9a; stroke-width: 1.5; fill: none; }
.gkf-profile text { font-family: "Titillium Web", sans-serif; font-size: 20px; font-weight: 600; fill: var(--gkf-ink); }
.gkf-preview {
	margin: 0 24px 20px;
	padding: 8px 12px;
	border-radius: var(--gkf-radius);
	background: #fff8e1;
	border: 1px solid #f3d27a;
	font-size: 13px;
}

/* Rechts: Auswahl + Fuß */
.gkf-modal__panel { display: flex; flex-direction: column; min-height: 0; background: #fff; }
.gkf-modal__scroll { flex: 1; overflow-y: auto; padding: 28px 40px 12px; overscroll-behavior: contain; }
.gkf-step { margin: 0 0 26px; }
.gkf-step h3 { margin: 0 0 12px; font-size: 20px; font-weight: 400; color: var(--gkf-ink); }

.gkf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gkf-tiles--shapes { grid-template-columns: repeat(var(--gkf-cols, 7), minmax(0, 1fr)); gap: 8px; }
.gkf-tiles--wide, .gkf-tiles--fill { grid-template-columns: repeat(var(--gkf-cols, 2), minmax(0, 1fr)); }
.gkf .gkf-tile {
	appearance: none;
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	padding: 10px 18px;
	border: 1px solid var(--gkf-line);
	border-radius: var(--gkf-radius);
	background: #fff;
	color: var(--gkf-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.2;
	text-align: left;
	white-space: normal; /* Theme setzt bei Buttons nowrap – lange Texte sollen umbrechen */
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.gkf .gkf-tile > * { min-width: 0; max-width: 100%; }
.gkf .gkf-tile:hover { border-color: var(--gkf-ink); background: #fff; color: var(--gkf-ink); }
.gkf .gkf-tile[aria-pressed="true"] { border: 2px solid var(--gkf-ink); padding: 9px 17px; }
.gkf .gkf-tile[aria-pressed="true"]::before {
	content: "";
	position: absolute;
	top: -9px;
	left: -9px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--gkf-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.gkf .gkf-tile:disabled { opacity: .35; cursor: not-allowed; }
.gkf .gkf-tile--text { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
/* Form-Kacheln: große, gefüllte Symbole mit Namen darunter */
.gkf .gkf-tile--shape { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 3px 8px; text-align: center; font-size: 13px; line-height: 1.2; hyphens: auto; }
.gkf .gkf-tile--shape[aria-pressed="true"] { padding: 9px 2px 7px; background: var(--gkf-accent-soft); font-weight: 600; }
.gkf .gkf-tile--shape .gkf-icon { width: 38px; height: 38px; }
.gkf .gkf-tile--shape > span { overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; } /* „Parallelo-gramm“ statt „Parallelogram-m“ */
.gkf-icon { width: 48px; height: 48px; flex: none; }
.gkf-icon polygon, .gkf-icon ellipse { fill: #dff4f7; stroke: var(--gkf-accent-dark); stroke-width: 3; stroke-linejoin: round; }
.gkf-price { display: block; color: var(--gkf-muted); font-size: 13px; }

.gkf-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.gkf-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 14px; }
.gkf-fields--sizes { grid-template-columns: repeat(var(--gkf-cols, 2), minmax(0, 1fr)); }
.gkf-field small { color: var(--gkf-muted); font-size: 12px; }
.gkf input[type="number"], .gkf select {
	width: 100%;
	min-height: 52px;
	padding: 10px 14px;
	border: 1px solid var(--gkf-line);
	border-radius: var(--gkf-radius);
	background: #fff;
	font: inherit;
	font-size: 17px;
	color: var(--gkf-ink);
}
.gkf input[type="number"]:focus, .gkf select:focus { outline: none; border-color: var(--gkf-ink); box-shadow: 0 0 0 3px rgba(64, 211, 224, .35); }
.gkf-area { margin: 10px 0 0; color: var(--gkf-muted); font-size: 14px; }
.gkf-area strong { color: var(--gkf-ink); }
.gkf-fixed { margin: 0; font-size: 16px; }
.gkf-fixed .gkf-price { display: inline; }
.gkf-fixed em { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--gkf-accent-soft); font-style: normal; font-size: 12px; }

/* Lochbohrungen: Liste, Formular, Darstellung auf der Skizze */
.gkf-holes { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.gkf-holecard {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--gkf-line);
	border-radius: var(--gkf-radius);
	background: #fff;
	font-size: 14px;
	line-height: 1.45;
}
.gkf-holecard.is-editing { border-color: var(--gkf-accent); background: var(--gkf-accent-soft); }
.gkf-holecard.is-bad { border-color: #e2a3a3; }
.gkf-holecard__no {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--gkf-accent);
	color: #fff;
	font-weight: 700;
}
.gkf-holecard__text { flex: 1; min-width: 0; }
.gkf-holecard__text em { display: block; color: #a12626; font-style: normal; }
.gkf-holecard__actions { display: flex; flex: none; gap: 6px; }
.gkf .gkf-iconbtn {
	appearance: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--gkf-line);
	border-radius: var(--gkf-radius);
	background: #fff;
	color: var(--gkf-muted);
	cursor: pointer;
	transition: color .15s, border-color .15s, background-color .15s;
}
.gkf .gkf-iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gkf .gkf-iconbtn:hover, .gkf .gkf-iconbtn:focus-visible { border-color: var(--gkf-accent-dark); background: var(--gkf-accent-soft); color: var(--gkf-accent-dark); outline: none; }
.gkf .gkf-iconbtn--danger:hover, .gkf .gkf-iconbtn--danger:focus-visible { border-color: #e2a3a3; background: #fdecec; color: #b42323; }
.gkf .gkf-addbtn {
	appearance: none;
	width: 100%;
	padding: 14px;
	border: 1.5px dashed var(--gkf-accent-dark);
	border-radius: var(--gkf-radius);
	background: #fff;
	color: var(--gkf-accent-dark);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.gkf .gkf-addbtn:hover { background: var(--gkf-accent-soft); }
.gkf .gkf-addbtn:disabled { border-color: var(--gkf-line); color: var(--gkf-muted); cursor: not-allowed; background: #fff; }
.gkf-holeform { padding: 16px; border: 1px solid var(--gkf-accent); border-radius: var(--gkf-radius); background: #f7fdfe; }
.gkf-hint { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--gkf-accent-dark); border-radius: 4px; background: var(--gkf-accent-soft); font-size: 14px; line-height: 1.45; }
.gkf-field--wide { grid-column: 1 / -1; }
.gkf-seg { display: flex; gap: 0; margin-bottom: 4px; }
.gkf .gkf-seg button {
	appearance: none;
	flex: 1;
	padding: 7px 8px;
	border: 1px solid var(--gkf-line);
	background: #fff;
	color: var(--gkf-ink);
	font: inherit;
	font-size: 13px;
	white-space: nowrap;
	cursor: pointer;
}
.gkf .gkf-seg button:first-child { border-radius: var(--gkf-radius) 0 0 var(--gkf-radius); }
.gkf .gkf-seg button:last-child { border-left: 0; border-radius: 0 var(--gkf-radius) var(--gkf-radius) 0; }
.gkf .gkf-seg button[aria-pressed="true"] { border-color: var(--gkf-accent-dark); background: var(--gkf-accent-dark); color: #fff; font-weight: 600; }
.gkf-holeform > .gkf-label { margin-bottom: 8px; color: var(--gkf-ink); font-size: 14px; letter-spacing: 0; text-transform: none; }
.gkf-tiles--holes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gkf .gkf-tile--hole { min-height: 62px; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
.gkf-holecount { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; margin-top: 14px; }
.gkf-holecount .gkf-field { width: 150px; }
.gkf .gkf-holecount input[type="number"] { min-height: 46px; text-align: center; }
.gkf-holecount__price { padding-bottom: 10px; font-size: 20px; font-weight: 700; color: var(--gkf-ink); }
.gkf-holecount small { padding-bottom: 13px; color: var(--gkf-muted); font-size: 13px; }
.gkf-posrows { margin-top: 14px; }
.gkf-poshead, .gkf-posrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; }
.gkf-poshead { padding: 0 8px 4px; color: var(--gkf-muted); font-size: 12px; }
.gkf-posrow { padding: 6px 8px; border-top: 1px solid #e6eef0; }
.gkf-posrow:first-child { border-top: 0; }
.gkf-posrow:focus-within { background: #fff; border-radius: var(--gkf-radius); }
.gkf-posrow .gkf-holecard__no { width: 26px; height: 26px; font-size: 13px; }
.gkf-posfield { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gkf-posfield .gkf-seg { flex: none; margin: 0; }
.gkf .gkf-posfield .gkf-seg button { flex: none; padding: 9px 10px; }
.gkf .gkf-posfield input[type="number"] { flex: 1; min-width: 64px; min-height: 40px; padding: 6px 10px; font-size: 16px; }
.gkf-holeform .gkf-error { margin: 12px 0 0; text-align: left; }
.gkf-holeform__actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.gkf .gkf-btn--small { min-width: 0; padding: 10px 20px; font-size: 16px; }
.gkf .gkf-link { appearance: none; padding: 0; border: 0; background: none; color: var(--gkf-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.gkf input[readonly] { background: #f3f4f5; color: var(--gkf-muted); }

.gkf-hole ellipse { fill: var(--gkf-bg); stroke: var(--gkf-accent-dark); stroke-width: 1.5; }
.gkf-hole text { font-family: "Titillium Web", sans-serif; font-size: 11px; font-weight: 700; fill: var(--gkf-accent-dark); }
.gkf-hole.is-draft ellipse { fill: rgba(64, 211, 224, .18); stroke-dasharray: 3 2; }
.gkf-hole.is-bad ellipse { stroke: #d33; }
.gkf-hole__guide { stroke: var(--gkf-accent-dark); stroke-width: 1.2; stroke-dasharray: 4 3; fill: none; }
.gkf-hole__cross { stroke: var(--gkf-accent-dark); stroke-width: .8; fill: none; }
.gkf-hole.is-bad .gkf-hole__guide, .gkf-hole.is-bad .gkf-hole__cross { stroke: #d33; }
.gkf-hole__label rect { fill: var(--gkf-accent-dark); }
.gkf-hole__label text { font-size: 9.5px; font-weight: 600; fill: #fff; }
.gkf-hole.is-bad .gkf-hole__label rect { fill: #d33; }

/* Fuß: links Auswahl, rechts Preis; darunter Menge + Warenkorb */
.gkf-modal__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "summary summary" "lines total" "lines buy" "error error";
	align-items: start;
	gap: 0 24px;
	padding: 14px 40px 18px;
	background: #fff;
	border-top: 1px solid #e3e3e3;
	box-shadow: 0 -10px 24px rgba(0, 0, 0, .05);
}
.gkf-label { display: block; color: var(--gkf-muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.gkf-summary { grid-area: summary; min-width: 0; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #ececec; }
.gkf-summary .gkf-label { margin-bottom: 6px; }
.gkf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gkf-chips li {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--gkf-accent-soft);
	color: var(--gkf-ink);
	font-size: 14px;
	line-height: 1.4;
}
.gkf-chips li:first-child { background: var(--gkf-accent); color: #fff; font-weight: 600; }
.gkf-total { grid-area: total; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.gkf-total strong { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; transition: opacity .15s; }
.gkf-modal.is-loading [data-total] { opacity: .4; }
.gkf-total__tax { color: var(--gkf-muted); font-size: 12px; }
.gkf-lines { grid-area: lines; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; max-width: 380px; gap: 3px 24px; margin: 2px 0 0; font-size: 14px; color: #444; }
.gkf-lines dt { text-align: left; }
.gkf-lines dd { margin: 0; text-align: right; white-space: nowrap; }
.gkf-error { grid-area: error; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--gkf-radius); background: #fdecec; color: #8a1c1c; font-size: 14px; }
.gkf-buy { grid-area: buy; display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 14px; }
.gkf-qty { display: flex; align-items: center; gap: 4px; }
.gkf .gkf-qty button {
	appearance: none;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 4px;
	background: var(--gkf-accent);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}
.gkf .gkf-qty input[type="number"] { width: 64px; min-height: 42px; padding: 6px; text-align: center; -moz-appearance: textfield; }
.gkf .gkf-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 230px;
	padding: 13px 28px;
	border: 0;
	border-radius: 5px;
	background: var(--gkf-accent);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s;
}
.gkf .gkf-btn svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gkf .gkf-btn svg circle { fill: currentColor; stroke: none; }
.gkf .gkf-btn:hover { background: var(--gkf-ink); }
.gkf .gkf-btn:disabled { background: #b8bec4; cursor: not-allowed; }

/* KI-Berater (Plugin glasshop-ki-copilot) wie beim alten Modal links über der Skizze statt über dem Warenkorb-Button */
body.gkf-open .gkc-root button.gkc-launcher,
body.gkf-open .gkc-root .gkc-panel { right: auto; left: 24px; }
body.gkf-open .gkc-root .gkc-panel { transform-origin: bottom left; }
body.gkf-open .gkc-root .gkc-teaser { display: none; }

/* Mobil: Titel als dunkle Leiste, Skizze kompakt oben, Fuß kompakt unten */
@media (max-width: 1024px) {
	.gkf-modal { grid-template-rows: auto minmax(0, 1fr); }
	.gkf-modal__head { align-items: center; background: #333; padding: 8px 12px 8px 16px; }
	.gkf-modal__head .gkf-close { margin-top: 0; }
	.gkf-modal__head h2 { order: 0; flex: 1; font-size: 22px; color: #fff; text-align: center; }
	.gkf .gkf-close { order: 2; color: #fff; }
	.gkf .gkf-printbtn { order: 1; } /* Aussehen mobil: unten nach den Grundregeln */
	.gkf .gkf-close:focus { background: none; color: #fff; }
	.gkf .gkf-close:hover { background: none; color: var(--gkf-accent); }
	.gkf-modal__sketch { flex: none; height: 210px; padding: 4px 16px 8px; transition: height .2s ease, padding .2s ease; }
	/* beim Scrollen der Auswahl: Skizze als schmale Leiste (Tipp darauf vergrößert wieder) */
	.gkf-modal.is-compact .gkf-modal__sketch { height: 92px; padding: 2px 16px 4px; cursor: zoom-in; }
	.gkf-modal__sketch { grid-template-rows: minmax(0, 1fr); overflow: hidden; } /* Skizze passt sich der Höhe an */
	.gkf-modal__sketch .gkf-sketch { width: auto; max-width: 100%; height: 100%; }
	.gkf-modal.is-compact [data-profile], .gkf-modal.is-compact .gkf-preview { display: none; }
	.gkf-sketch { height: 100%; }
	.gkf-profile { margin: 0 16px 6px; font-size: 12px; }
	.gkf-profile svg { width: 90px; }
	.gkf-preview { margin: 0 16px 10px; }
	.gkf-modal__scroll { padding: 20px 16px 12px; }
	.gkf-tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
	.gkf-tiles--shapes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gkf-fields--sizes, .gkf-tiles--wide, .gkf-tiles--fill { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Handy: zwei je Zeile */
	.gkf-tiles--holes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.gkf .gkf-tile--hole { padding: 8px 4px; font-size: 14px; }
	.gkf-holeform { padding: 12px; }
	.gkf-poshead { display: none; }
	.gkf-posrow { grid-template-columns: 26px minmax(0, 1fr); gap: 6px 8px; }
	.gkf-posrow .gkf-holecard__no { grid-row: 1 / span 2; }
	.gkf .gkf-tile--shape { font-size: 14px; }
	.gkf .gkf-tile { min-height: 56px; }
	.gkf-modal__foot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "total" "error" "buy"; gap: 2px; align-items: stretch; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
	.gkf-summary { display: none; }
	.gkf-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; text-align: left; }
	.gkf-total .gkf-label { grid-column: 1; grid-row: 1; }
	.gkf-total strong { grid-column: 2; grid-row: 1 / span 2; font-size: 24px; }
	.gkf-total__tax { grid-column: 1; grid-row: 2; }
	.gkf-lines { display: none; }
	.gkf-buy { margin-top: 6px; align-self: stretch; }
	.gkf .gkf-btn { min-width: 0; flex: 1; padding: 12px 16px; font-size: 16px; }
	/* KI-Berater: nur Symbol, oben rechts über der Skizze – verdeckt weder Auswahl noch Warenkorb */
	body.gkf-open .gkc-root button.gkc-launcher { left: auto; right: 10px; top: 54px; bottom: auto; padding: 5px; }
	body.gkf-open .gkc-root button.gkc-launcher .gkc-launcher-text { display: none; }
}
.gkf-holenote { margin: 8px 0 0; color: var(--gkf-muted); font-size: 13px; }

/* Isolierglas: je Scheibe eine Kachelreihe */
.gkf-pane + .gkf-pane { margin-top: 14px; }
.gkf-pane h4 { margin: 0 0 8px; font-size: 14px; font-weight: 400; color: var(--gkf-muted); }
.gkf .gkf-tile.is-other { color: var(--gkf-muted); }
.gkf .gkf-tile.is-other .gkf-price { font-size: 11px; }

/* Sprossen: Aufteilung als Bild-Kacheln, Breite/Farbe als kleine Kacheln (wie Lochbohrungen) */
.gkf-barform { margin-top: 14px; padding: 16px; border: 1px solid var(--gkf-accent); border-radius: var(--gkf-radius); background: #f7fdfe; }
.gkf-barform .gkf-label { display: block; margin-bottom: 8px; color: var(--gkf-ink); font-size: 14px; letter-spacing: 0; text-transform: none; }
.gkf-tiles--bars { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gkf .gkf-tile--bar { flex-direction: column; justify-content: center; gap: 2px; padding: 8px 4px; text-align: center; font-size: 13px; line-height: 1.2; }
.gkf .gkf-tile--bar[aria-pressed="true"] { padding: 7px 3px; background: var(--gkf-accent-soft); font-weight: 600; }
.gkf .gkf-tile--bar .gkf-price { font-weight: 400; }
.gkf-baricon { width: 44px; height: 35px; margin-bottom: 2px; }
.gkf-baricon rect { fill: #e3f6f8; stroke: var(--gkf-ink); stroke-width: 1.6; }
.gkf-baricon path { fill: none; stroke: var(--gkf-ink); stroke-width: 2.2; stroke-linecap: square; }
.gkf-barcount { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.gkf-stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 6px; }
.gkf .gkf-stepper button { min-height: 46px; padding: 0; border: 0; border-radius: var(--gkf-radius); background: var(--gkf-accent); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.gkf .gkf-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.gkf .gkf-stepper input[type="number"] { min-height: 46px; text-align: center; -moz-appearance: textfield; }
.gkf-stepper input::-webkit-inner-spin-button, .gkf-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gkf-barrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.gkf-chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gkf .gkf-tile--chip { min-height: 44px; padding: 8px 14px; gap: 8px; font-size: 14px; }
.gkf .gkf-tile--chip[aria-pressed="true"] { padding: 7px 13px; background: var(--gkf-accent-soft); }
.gkf-swatch { flex: none; width: 16px; height: 16px; border: 1px solid #9aa3a8; border-radius: 50%; }
.gkf-barinfo { margin: 14px 0 0; color: var(--gkf-muted); font-size: 14px; }
.gkf-barinfo strong { color: var(--gkf-ink); }
.gkf-barrow > div:only-child { grid-column: 1 / -1; } /* Alu: keine Farbwahl → Breiten über die ganze Zeile */
.gkf-barnote { margin: 12px 0 0; color: var(--gkf-muted); font-size: 13px; }
.gkf-barnote a { color: var(--gkf-accent); text-decoration: underline; }
@media (max-width: 1024px) {
	.gkf-barform { padding: 12px; }
	.gkf-tiles--bars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.gkf-barrow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.gkf-barcount { gap: 8px; }
}

/* Zusatzmaß größer als die Scheibe (Höhe 1 ≥ Höhe, Breite 1 ≥ Breite …) */
.gkf .gkf-field input.is-invalid { border-color: #d33; box-shadow: 0 0 0 3px rgba(221, 51, 51, .12); }
.gkf .gkf-field input.is-invalid + small { color: #d33; }

/* Auf Anfrage: Anfrage statt Warenkorb */
.gkf .gkf-btn[hidden] { display: none; }
.gkf-modal.is-request .gkf-total__tax { visibility: hidden; }
.gkf-modal.is-inquiry .gkf-buy, .gkf-modal.is-inquiry .gkf-lines, .gkf-modal.is-inquiry .gkf-total { display: none; }
.gkf-inquiry h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.gkf-inquiry > p { margin: 0 0 14px; }
.gkf-inq-summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--gkf-line, #e3e6e8); border-radius: var(--gkf-radius); background: #f7fdfe; font-size: 14px; }
.gkf-inq-summary dt { color: var(--gkf-muted); }
.gkf-inq-summary dd { margin: 0; }
.gkf-inq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gkf-inquiry .gkf-field { display: block; margin-bottom: 12px; }
.gkf-inquiry .gkf-field > span { display: block; margin-bottom: 4px; font-size: 14px; }
.gkf-inquiry input[type="text"], .gkf-inquiry input[type="email"], .gkf-inquiry input[type="tel"], .gkf-inquiry textarea { width: 100%; box-sizing: border-box; }
.gkf-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 13px; line-height: 1.45; }
.gkf-consent input { flex: none; margin-top: 3px; }
.gkf-consent a { color: var(--gkf-accent); text-decoration: underline; }
.gkf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gkf-inq-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.gkf .gkf-linkbtn { padding: 0; border: 0; background: none; color: var(--gkf-ink); text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 1024px) {
	.gkf-inq-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* Ecken mit Radius */
.gkf-cornerform { margin-top: 14px; padding: 16px; border: 1px solid var(--gkf-accent); border-radius: var(--gkf-radius); background: #f7fdfe; }
.gkf-cornerrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.gkf-cornerprices { display: grid; gap: 6px; padding-top: 24px; color: var(--gkf-muted); font-size: 13px; }
.gkf-cornerprices span { padding: 6px 10px; border-radius: var(--gkf-radius); }
.gkf-cornerprices span.is-active { background: var(--gkf-accent-soft); color: var(--gkf-ink); }
.gkf-cornerhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.gkf-cornerhead .gkf-label { color: var(--gkf-ink); font-size: 14px; letter-spacing: 0; text-transform: none; }
.gkf-cornernote { margin: 10px 0 0; font-size: 13px; }
.gkf-barinfo.is-bad { color: #d33; }
.gkf-corner { cursor: pointer; }
.gkf-corner circle { fill: #fff; stroke: var(--gkf-accent-dark); stroke-width: 1.5; }
.gkf-corner text { font-family: "Titillium Web", sans-serif; font-size: 11px; font-weight: 700; fill: var(--gkf-accent-dark); pointer-events: none; }
.gkf-corner.is-on circle { fill: var(--gkf-accent-dark); }
.gkf-corner.is-on text { fill: #fff; }
.gkf-corner:hover circle { stroke-width: 2.5; }
@media (max-width: 1024px) {
	.gkf-cornerform { padding: 12px; }
	.gkf-cornerrow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.gkf-cornerprices { padding-top: 0; }
}

/* Drucken: Knopf oben rechts in der Skizze, Druckansicht nur im Druck */
.gkf .gkf-printbtn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 14px; border: 1px solid var(--gkf-line); border-radius: var(--gkf-radius); background: #fff; color: var(--gkf-ink); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.gkf .gkf-printbtn[hidden] { display: none; }
.gkf .gkf-printbtn:hover { border-color: var(--gkf-accent-dark); background: #fff; color: var(--gkf-accent-dark); }
.gkf .gkf-printbtn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(64, 211, 224, .6); }
.gkf-printbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.gkf-print { display: none; }
@media (max-width: 1024px) {
	.gkf .gkf-printbtn, .gkf .gkf-printbtn:hover { margin: 0; padding: 8px; border-color: transparent; background: none; color: #fff; }
	.gkf .gkf-printbtn:hover { color: var(--gkf-accent); }
	.gkf-printbtn span { display: none; } /* mobil nur Symbol */
	.gkf-printbtn svg { width: 24px; height: 24px; }
}
@media print {
	@page { margin: 14mm; }
	body.gkf-printing { overflow: visible !important; background: #fff !important; }
	body.gkf-printing > *:not(.gkf-print) { display: none !important; }
	body.gkf-printing .gkf-print { display: block; color: #111; font-family: "Titillium Web", Arial, sans-serif; font-size: 11pt; }
	.gkf-print header { margin-bottom: 4mm; padding-bottom: 3mm; border-bottom: 1px solid #ccc; }
	.gkf-print h1 { margin: 0 0 1mm; font-size: 18pt; font-weight: 600; }
	.gkf-print header p { margin: 0; color: #555; }
	.gkf-print__sketch { width: 120mm; margin: 0 auto; }
	.gkf-print__sketch svg { display: block; width: 100%; height: auto; }
	.gkf-print .gkf-profile { display: flex; align-items: center; justify-content: center; gap: 4mm; margin: 0 0 4mm; color: #555; font-size: 9pt; }
	.gkf-print .gkf-profile svg { width: 30mm; height: auto; }
	.gkf-print table { width: 100%; margin: 0; border: 0; border-collapse: collapse; page-break-inside: avoid; }
	.gkf-print th, .gkf-print td { padding: 1.6mm 2mm; border: 0; border-bottom: 1px solid #e3e3e3; background: none !important; text-align: left; vertical-align: top; }
	.gkf-print th { width: 45mm; color: #555; font-weight: 400; }
	.gkf-print tr:last-child th, .gkf-print tr:last-child td { border-bottom: 0; padding-top: 3mm; font-size: 13pt; font-weight: 700; color: #111; }
	.gkf-print__note { margin: 4mm 0 0; color: #777; font-size: 8.5pt; }
	.gkf-print .gkf-corner circle, .gkf-print .gkf-hole ellipse { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.gkf-print svg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
