/* 3D-Konfigurator */
.kf { height: 100%; overflow: hidden; background: var(--stein); }
html:has(.kf) { height: 100%; }

/* ---------- Kopfleiste ---------- */
.kf-kopf {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 24px;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.kf-logo img { height: 30px; width: auto; }
.kf-schritte { flex: 1; min-width: 0; display: flex; justify-content: center; }
.kf-schritte ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.kf-schritte ol::-webkit-scrollbar { display: none; }
.kf-schritte button {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 6px;
  border: 0; border-radius: 999px; background: none;
  font-size: 14px; color: var(--muted); white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s;
}
.kf-schritte button:hover:not(:disabled) { background: var(--stein); color: var(--ink); }
.kf-schritte button:disabled { cursor: default; opacity: .55; }
.kf-schritte .nr {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--linie-2);
  font-family: var(--kopf); font-size: 13px; font-weight: 500;
}
.kf-schritte .fertig .nr { background: var(--gruen-hell); border-color: var(--gruen); color: var(--gruen-text); }
.kf-schritte .fertig .nr::before { content: '✓'; }
.kf-schritte .fertig .nr span { display: none; }
.kf-schritte .aktiv { color: var(--ink); background: var(--stein); }
.kf-schritte .aktiv .nr { background: var(--ink); border-color: var(--ink); color: #fff; }

.kf-kopf-rechts { display: flex; align-items: center; gap: 18px; }
.kf-tel { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.kf-tel svg { width: 18px; height: 18px; color: var(--gruen-text); }
.kf-zurueck {
  font-size: 14px; text-decoration: none; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linie-2);
}
.kf-zurueck:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Hauptbereich ---------- */
.kf-main { display: grid; grid-template-columns: 1fr 460px; height: calc(100% - 68px); }

.kf-buehne { position: relative; overflow: hidden; background: #dfe6ea; }
.kf-canvas { position: absolute; inset: 0; touch-action: none; }
.kf-canvas canvas { outline: none; }
.kf-canvas.zieht canvas { cursor: grabbing !important; }

.k3d-labels { position: absolute; inset: 0; pointer-events: none; transition: opacity .3s; }
.k3d-label {
  position: absolute; left: 0; top: 0;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-family: var(--kopf); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  font-variant-numeric: tabular-nums;
}

.kf-werkzeug {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(20, 24, 28, .12);
}
.kf-werkzeug button {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px; background: none;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background .2s, color .2s;
}
.kf-werkzeug button:hover { background: rgba(0, 0, 0, .05); }
.kf-werkzeug button.aktiv { background: var(--ink); color: #fff; }
.kf-werkzeug svg { width: 17px; height: 17px; }
.kf-werkzeug .trenner { width: 1px; height: 20px; background: var(--linie-2); margin: 0 4px; }
.kf-werkzeug--ansicht { top: 18px; left: 18px; }
.kf-werkzeug--modus { bottom: 22px; left: 50%; transform: translateX(-50%); }
.kf-werkzeug--aktion { top: 18px; right: 18px; }
.kf-werkzeug--aktion:empty { display: none; }

.kf-hinweis {
  position: absolute; left: 50%; bottom: 80px; z-index: 2; transform: translateX(-50%); white-space: nowrap;
  display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(29, 34, 38, .72); color: rgba(255, 255, 255, .92);
  font-size: 12.5px; backdrop-filter: blur(10px);
  transition: opacity .6s;
}
.kf-hinweis svg { width: 16px; height: 16px; }
.kf-hinweis b { color: var(--gruen); font-weight: 600; }
.kf-hinweis.weg { opacity: 0; pointer-events: none; }

.kf-ohne-3d { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: var(--muted); }
.kf-ohne-3d[hidden], .kf-werkzeug[hidden], .kf-hinweis[hidden] { display: none; }

/* ---------- Seitenleiste ---------- */
.kf-panel { display: flex; flex-direction: column; min-height: 0; background: var(--weiss); border-left: 1px solid var(--linie); }
.kf-panel-inhalt { flex: 1; overflow-y: auto; padding: 30px 30px 24px; overscroll-behavior: contain; }
.kf-panel-fuss { border-top: 1px solid var(--linie); padding: 14px 30px 16px; background: var(--weiss); }
.kf-navi { display: flex; gap: 10px; }
.kf-navi #weiter { flex: 1; }
.kf-navi #zurueck { width: 48px; padding: 0; }
.kf-navi #zurueck[hidden] { display: none; }
.kf-zusammen { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13.5px; color: var(--muted); }
.kf-zusammen b { color: var(--ink); font-weight: 600; }
.kf-rechtliches { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.kf-rechtliches a { color: var(--muted); }

.kf-schritt { animation: rein .45s var(--ease); }
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }
.kf-schritt h1 { font-size: 30px; margin: 6px 0 8px; }
.kf-schritt > p.intro { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.kf-gruppe { margin-top: 26px; }
.kf-gruppe:first-of-type { margin-top: 0; }
.kf-gruppe > h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 12px; }
.kf-gruppe > h2 small { font-family: var(--text); font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* Auswahlkarten */
.kf-karten { display: grid; gap: 10px; }
.kf-karten--2 { grid-template-columns: 1fr 1fr; }
.kf-karten--3 { grid-template-columns: repeat(3, 1fr); }
.kf-karte {
  position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 14px 16px; border: 0; border-radius: var(--radius-s);
  background: var(--weiss);
  box-shadow: inset 0 0 0 1.5px var(--linie);
  cursor: pointer;
  transition: box-shadow .2s, background .2s, transform .2s var(--ease);
}
.kf-karte:hover { box-shadow: inset 0 0 0 1.5px var(--linie-2); background: var(--papier); }
.kf-karte:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.kf-karte[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--weiss); }
.kf-karte[aria-pressed="true"]::after {
  content: ''; position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f22' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.kf-karte b { font-family: var(--kopf); font-size: 16px; font-weight: 500; padding-right: 22px; }
.kf-karte span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.kf-karte .kf-empfehlung {
  align-self: flex-start; margin-bottom: 2px; padding: 2px 8px; border-radius: 99px;
  background: var(--gruen); color: var(--ink); font-style: normal; font-size: 11.5px; font-weight: 600;
}
.kf-karte .muster {
  height: 54px; margin: -2px -4px 8px; border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

/* Große Produktkarten im ersten Schritt */
.kf-produkt { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; }
.kf-produkt .bild {
  flex: none; display: grid; place-items: center;
  width: 92px; height: 72px; border-radius: 10px;
  background: var(--stein); color: var(--grau);
  transition: background .2s, color .2s;
}
.kf-produkt[aria-pressed="true"] .bild { background: var(--gruen-hell); color: var(--ink); }
.kf-produkt .bild svg { width: 74px; height: auto; }
.kf-produkt div { display: flex; flex-direction: column; gap: 3px; }

/* Farben */
.kf-farben { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kf-farbe { align-items: center; text-align: center; padding: 16px 8px 12px; }
.kf-farbe .punkt {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 -10px 18px rgba(0, 0, 0, .18), inset 0 8px 14px rgba(255, 255, 255, .18);
}
.kf-farbe b { padding: 0; font-size: 14.5px; }
.kf-farbe[aria-pressed="true"]::after { top: 8px; right: 8px; }
.kf-farbe .punkt.sonder { background: conic-gradient(#b04a3a, #d8a23a, #6c9a3d, #3a7ab0, #6a4aa8, #b04a3a); }

/* Schieberegler mit Zahlenfeld */
.kf-mass { padding: 14px 16px 16px; border-radius: var(--radius-s); background: var(--papier); box-shadow: inset 0 0 0 1px var(--linie); }
.kf-mass + .kf-mass { margin-top: 10px; }
.kf-mass-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kf-mass-kopf label { font-weight: 600; font-size: 14.5px; }
.kf-mass-kopf small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.kf-zahl { display: flex; align-items: center; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.kf-zahl:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.kf-zahl input {
  width: 66px; padding: 7px 0 7px 10px; border: 0; background: none; text-align: right;
  font-family: var(--kopf); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.kf-zahl input::-webkit-outer-spin-button, .kf-zahl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.kf-zahl input:focus { outline: none; }
.kf-zahl span { padding: 0 10px 0 4px; font-size: 13px; color: var(--muted); }
.kf-regler { --p: 50%; width: 100%; height: 28px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.kf-regler::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p), var(--linie-2) var(--p)); }
.kf-regler::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p), var(--linie-2) var(--p)); }
.kf-regler::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .15s;
}
.kf-regler::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.kf-regler:active::-webkit-slider-thumb { transform: scale(1.12); }
.kf-regler:focus-visible { outline: none; }
.kf-regler:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(154, 198, 61, .5); }
.kf-skala { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.kf-info {
  display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px;
  border-radius: var(--radius-s); background: var(--gruen-hell); color: #2f4410;
  font-size: 13.5px; line-height: 1.5;
}
.kf-info svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--gruen-text); }
.kf-info--warn { background: #fdf3e0; color: #5c3d06; }
.kf-info--warn svg { color: #b7791f; }
.kf-flaeche { display: flex; justify-content: space-between; margin-top: 14px; padding: 0 2px; font-size: 14px; color: var(--muted); }
.kf-flaeche b { color: var(--ink); font-family: var(--kopf); font-size: 17px; font-weight: 500; }

/* Wände: Links/Rechts als Segmentschalter */
.kf-segment { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--stein); }
.kf-segment button {
  flex: 1 1 96px;
  min-height: 42px; padding: 6px 8px; border: 0; border-radius: 9px; background: none;
  font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--ink-2); cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.kf-segment button:hover { background: rgba(255, 255, 255, .6); }
.kf-segment button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.kf-segment-text { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); min-height: 1.4em; }

/* Schalter für Extras */
.kf-schalter { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--radius-s); background: #fff; box-shadow: inset 0 0 0 1.5px var(--linie); text-align: left; cursor: pointer; transition: box-shadow .2s; }
.kf-schalter + .kf-schalter { margin-top: 10px; }
.kf-schalter:hover { box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.kf-schalter[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.kf-schalter .icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--stein); }
.kf-schalter .icon svg { width: 22px; height: 22px; }
.kf-schalter div { flex: 1; display: flex; flex-direction: column; }
.kf-schalter b { font-family: var(--kopf); font-weight: 500; font-size: 15.5px; }
.kf-schalter span { font-size: 13px; color: var(--muted); }
.kf-schalter i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--linie-2); transition: background .2s; }
.kf-schalter i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.kf-schalter[aria-pressed="true"] i { background: var(--gruen); }
.kf-schalter[aria-pressed="true"] i::after { transform: translateX(18px); }

/* Unteroptionen der LED-Spots direkt unter dem Schalter */
.kf-unteroption { margin: -4px 0 10px; padding: 14px 16px 10px; border-radius: 0 0 var(--radius-s) var(--radius-s); background: var(--papier); box-shadow: inset 0 0 0 1px var(--linie); }
.kf-schalter[aria-pressed="true"]:has(+ .kf-unteroption) { border-radius: var(--radius-s) var(--radius-s) 0 0; }
.kf-check--klein { padding: 6px 2px 0; }
.kf-check--klein b { color: var(--ink); }

/* Auswahl der Sonderfarbe im letzten Schritt */
.kf-ral { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.kf-ral button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px;
  border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linie); cursor: pointer;
  transition: box-shadow .2s;
}
.kf-ral button:hover { box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.kf-ral button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.kf-ral span { width: 34px; height: 34px; border-radius: 50%; margin-bottom: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 -6px 10px rgba(0, 0, 0, .18); }
.kf-ral b { font-size: 11.5px; font-weight: 600; }
.kf-ral small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.kf-gruppe.fehler { padding: 12px; margin-inline: -12px; border-radius: 12px; box-shadow: inset 0 0 0 2px #c2410c; }

.kf-textlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 500; color: var(--gruen-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Vergleich Glas/Polycarbonat */
.kf-vergleich { margin-top: 18px; border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px var(--linie); }
.kf-vergleich summary { padding: 13px 16px; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.kf-vergleich summary::after { content: '+'; font-size: 18px; line-height: 1; color: var(--muted); }
.kf-vergleich[open] summary::after { content: '–'; }
.kf-vergleich table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kf-vergleich th, .kf-vergleich td { padding: 9px 16px; border-top: 1px solid var(--linie); text-align: left; vertical-align: top; }
.kf-vergleich th { font-weight: 500; color: var(--muted); width: 30%; }

/* Anfrage */
.kf-bild { position: relative; margin: 0 0 18px; border-radius: var(--radius-s); overflow: hidden; background: var(--stein); aspect-ratio: 16 / 10; }
.kf-bild img { width: 100%; height: 100%; object-fit: cover; }
.kf-bild figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 600; }
.kf-liste { margin: 0 0 22px; padding: 0; list-style: none; border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px var(--linie); }
.kf-liste li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; font-size: 13.5px; }
.kf-liste li + li { border-top: 1px solid var(--linie); }
.kf-liste li span { color: var(--muted); }
.kf-liste li b { font-weight: 600; text-align: right; }
.kf-liste button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-align: right; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }

.kf-form { display: grid; gap: 12px; }
.kf-form .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kf-feld { display: flex; flex-direction: column; gap: 5px; }
.kf-feld label { font-size: 13px; font-weight: 600; }
.kf-feld label small { font-weight: 400; color: var(--muted); }
.kf-feld input, .kf-feld select, .kf-feld textarea {
  width: 100%; padding: 11px 13px; border: 0; border-radius: 9px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--linie-2); font-size: 15px;
  transition: box-shadow .2s;
}
.kf-feld textarea { min-height: 84px; resize: vertical; }
.kf-feld input:focus, .kf-feld select:focus, .kf-feld textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.kf-feld.fehler input, .kf-check.fehler { box-shadow: inset 0 0 0 2px #c2410c; }
.kf-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.kf-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.kf-honig { position: absolute; left: -9999px; }
.kf-weitere { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kf-weitere .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.kf-weitere .btn--wa { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.kf-weitere .btn--wa svg { color: #25d366; }
.kf-meldung { padding: 12px 14px; border-radius: 9px; background: #fdecea; color: #7f1d1d; font-size: 13.5px; }

.kf-danke { text-align: center; padding-top: 20px; }
.kf-danke .haken {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--gruen-hell); color: var(--gruen-text);
  animation: plopp .6s var(--ease);
}
.kf-danke .haken svg { width: 34px; height: 34px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: haken .5s .25s forwards; }
@keyframes plopp { from { transform: scale(.4); opacity: 0; } }
@keyframes haken { to { stroke-dashoffset: 0; } }
.kf-danke ol { text-align: left; margin: 24px 0; padding: 0; list-style: none; counter-reset: s; }
.kf-danke ol li { position: relative; padding: 0 0 16px 40px; font-size: 14px; color: var(--ink-2); counter-increment: s; }
.kf-danke ol li::before { content: ''; position: absolute; left: 8px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gruen); }
.kf-danke ol b { display: block; color: var(--ink); }

.kf-noscript { position: fixed; inset: auto 0 0; padding: 16px; background: #fff; text-align: center; }

/* Druckansicht: Zusammenfassung auf einer Seite */
.kf-druck { display: none; }
@media print {
  .kf { height: auto; overflow: visible; background: #fff; }
  .kf-kopf, .kf-main { display: none !important; }
  .kf-druck { display: block !important; padding: 0; font-size: 12pt; }
  .kf-druck img.logo { width: 220px; margin-bottom: 18px; }
  .kf-druck img.ansicht { width: 100%; border-radius: 8px; margin: 12px 0 18px; }
  .kf-druck table { width: 100%; border-collapse: collapse; }
  .kf-druck td { padding: 6px 0; border-bottom: 1px solid #ddd; }
  .kf-druck td:first-child { color: #555; width: 40%; }
}

/* ---------- Tablet und Handy ---------- */
@media (max-width: 1180px) {
  .kf-schritte .txt { display: none; }
  .kf-schritte button { padding: 0 6px; }
  .kf-schritte .aktiv .txt { display: inline; }
  .kf-schritte .aktiv { padding-right: 14px; }
  .kf-main { grid-template-columns: 1fr 400px; }
  .kf-tel span { display: none; }
}

/* Schmal: 3D-Bild oben fest, nur die Auswahl darunter scrollt – so sieht man jede Änderung sofort */
@media (max-width: 860px) {
  .kf { height: 100dvh; }
  .kf-kopf { height: 58px; padding: 0 14px; gap: 12px; }
  .kf-logo img { height: 22px; }
  .kf-schritte { justify-content: flex-start; }
  .kf-zurueck { display: none; }
  .kf-main { grid-template-columns: 1fr; grid-template-rows: minmax(200px, 42%) minmax(0, 1fr); height: calc(100dvh - 58px); }
  .kf-panel { min-height: 0; border-left: 0; position: relative; z-index: 4; border-radius: 18px 18px 0 0; margin-top: -16px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .1); }
  .kf-panel-inhalt { padding: 22px 18px 20px; }
  .kf-panel-fuss { padding: 10px 16px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
  .kf-rechtliches { margin-top: 6px; }
  .kf-zusammen { margin-bottom: 8px; font-size: 12.5px; }
  .kf-schritt h1 { font-size: 25px; }
  .kf-werkzeug button { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .kf-werkzeug--ansicht { top: 10px; left: 10px; right: auto; max-width: calc(100% - 20px); overflow-x: auto; scrollbar-width: none; }
  .kf-werkzeug--modus { bottom: 30px; }
  .kf-werkzeug--modus span { display: none; }
  .kf-werkzeug--aktion { top: auto; bottom: 30px; right: 10px; }
  .kf-werkzeug--aktion button span { display: none; }
  .kf-hinweis { display: none; }
  .k3d-label { font-size: 12px; padding: 4px 9px; }
  .kf-karten--3 { grid-template-columns: 1fr 1fr; }
  .kf-farben { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .kf-form .zwei { grid-template-columns: 1fr; }
  .kf-werkzeug--ansicht [data-ansicht="darunter"] { display: none; }
}

.kf-ds-hinweis { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.kf-ds-hinweis a { color: var(--ink); }

/* Planungsnummer im letzten Schritt und auf der Dankeseite */
.kf-nummer { margin: 0 0 22px; }
.kf-nummer b { display: block; margin: 2px 0 4px; font-size: 1.15em; letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere; }
.kf-danke .kf-nummer { text-align: left; }

/* Planungsnummer eingeben, im ersten Schritt unter den Produkten */
.kf-nummer-eingabe { margin: 18px 0 22px; }
.kf-nummer-zeile { display: flex; gap: 8px; }
.kf-nummer-zeile input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.kf-nummer-zeile .btn { flex: none; }
.kf-nummer-fehler { margin: 2px 0 0; font-size: 13px; color: #a3261d; }
