/* =====================================================================
   Terraluxo · 3D-Konfigurator als Vollbild-App (Aufbau wie BAS)
   Desktop: Auswahl links | 3D Mitte | Bauplan rechts
   Handy:   3D oben | Auswahl darunter | Bauplan als Schublade
   ===================================================================== */
.kfg-seite { height: 100svh; overflow: hidden; background: var(--gruen-tief); }
.kfg-kopf { height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 18px; background: var(--papier); border-bottom: 1px solid var(--linie); position: relative; z-index: 30; }
.kfg-kopf .logo { font-size: 17px; flex: none; }
.kfg-kopf .logo-mark { width: 30px; height: 30px; }
.kfg-kopf nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.kfg-kopf nav::-webkit-scrollbar { display: none; }
.kfg-schritte { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 4px; width: max-content; background: var(--creme); border-radius: 999px; }
.kfg-schritte button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 14px 7px 7px; border-radius: 999px; font: 600 13.5px var(--kopf); color: var(--stein); white-space: nowrap; }
.kfg-schritte .nr { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--linie); font: 700 12px var(--kopf); background: var(--papier); }
.kfg-schritte button[aria-current='step'] { background: var(--papier); color: var(--tinte); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.kfg-schritte button[aria-current='step'] .nr { background: var(--holz); border-color: var(--holz); color: #fff; }
.kfg-kopf-rechts { display: flex; align-items: center; gap: 6px; flex: none; }
.kfg-zurueck { font: 600 13.5px var(--kopf); text-decoration: none; padding: 9px 14px; border: 1.5px solid var(--linie); border-radius: 999px; }
.kfg-zurueck:hover { border-color: var(--tinte); }

.kfg { display: grid; grid-template-columns: clamp(330px, 26vw, 400px) minmax(0, 1fr) clamp(320px, 23vw, 370px); height: calc(100svh - 64px); }

/* Auswahl links */
.kfg-panel { display: flex; flex-direction: column; min-height: 0; background: var(--creme); border-right: 1px solid var(--linie); }
.kfg-panel-inhalt { flex: 1; overflow-y: auto; padding: 22px 20px 28px; overscroll-behavior: contain; }
.kfg-panel-inhalt h2 { font-size: 28px; margin-bottom: 6px; }
.kfg-panel-fuss { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--linie); background: var(--papier); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 3px; font: 700 14.5px var(--kopf); text-decoration: none; }
.knopf svg { width: 17px; height: 17px; }
.knopf.dunkel { background: var(--gruen); color: #fff; }
.knopf.dunkel:hover { background: var(--gruen-hell); }
.knopf.messing { background: var(--holz); color: #fff; }
.knopf.messing:hover { background: #a8733d; }
.knopf.leise { background: transparent; box-shadow: inset 0 0 0 1.5px var(--linie); color: var(--tinte); }
.knopf.leise:hover { box-shadow: inset 0 0 0 1.5px var(--tinte); }

.produkte { display: grid; gap: 10px; margin-top: 14px; }
.produkt-karte { display: grid; grid-template-columns: 112px 1fr; text-align: left; padding: 0; border: 1.5px solid var(--linie); border-radius: 4px; background: var(--papier); overflow: hidden; position: relative; transition: border-color .15s, box-shadow .15s; }
.produkt-karte:hover { border-color: #b9b1a2; }
.produkt-karte[aria-pressed='true'] { border-color: var(--holz); box-shadow: 0 0 0 1px var(--holz); }
.produkt-karte[aria-pressed='true']::before { content: '✓'; position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--holz); color: #fff; display: grid; place-items: center; font: 800 12px var(--kopf); }
.produkt-karte img { width: 100%; height: 100%; min-height: 96px; object-fit: cover; }
.produkt-karte .txt { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.produkt-karte b { font: 800 16px/1.2 var(--kopf); }
.produkt-karte small { font-size: 12.5px; line-height: 1.4; color: var(--stein); }
.produkt-karte .ab { align-self: start; margin-top: 4px; font: 700 12px var(--kopf); color: #8a5a28; background: #f3e6d3; padding: 4px 8px; border-radius: 3px; }
.kfg-panel .kacheln { grid-template-columns: 1fr 1fr; }
.kfg-panel .kacheln.klein { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.kfg-panel .kacheln.einspaltig { grid-template-columns: 1fr; }
.kfg-panel .kacheln.einspaltig .kachel b { white-space: nowrap; }
.kfg-panel .farben { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
.kfg-panel .mass-stufen { grid-template-columns: repeat(4, 1fr); }
.kfg-panel .mass-sonder .kachel { min-height: 44px; padding: 10px 12px; }

/* Bühne */
.kfg-buehne { position: relative; overflow: hidden; background: linear-gradient(180deg, #b7cbd3 0%, #dfe6e3 58%, #e4e8e2 100%); }
.kfg-buehne #buehne-3d { position: absolute; inset: 0; }
.kfg-buehne canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.kfg-buehne canvas:active { cursor: grabbing; }
.kfg-buehne .laden { position: absolute; inset: 0; display: grid; place-items: center; font: 600 14px var(--kopf); color: var(--stein); }
#buehne-3d[data-stimmung='abend'] { background: linear-gradient(180deg, #0f1a24 0%, #2a3442 55%, #3b3a3c 100%); }
#buehne-3d[data-stimmung='regen'] { background: linear-gradient(180deg, #7f8b93 0%, #a9b2b7 60%, #b6bcbf 100%); }
#buehne-3d[data-stimmung='schnee'] { background: linear-gradient(180deg, #c9d5dc 0%, #eef2f4 60%, #f6f8f9 100%); }
.kfg-werkzeuge, .kfg-wetter { position: absolute; z-index: 5; display: flex; gap: 4px; padding: 4px; background: rgba(250, 250, 248, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 3px; box-shadow: 0 6px 24px rgba(20, 32, 29, .14); }
.kfg-werkzeuge { top: 14px; left: 50%; transform: translateX(-50%); }
.kfg-wetter { bottom: 14px; left: 50%; transform: translateX(-50%); }
.kfg-wz { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 11px; font: 600 13px var(--kopf); border-radius: 2px; color: var(--tinte); white-space: nowrap; }
.kfg-wz svg { width: 16px; height: 16px; }
.kfg-wz:hover { background: rgba(0, 0, 0, .05); }
.kfg-wz[aria-pressed='true'] { background: var(--gruen); color: #fff; }
.trenner { width: 1px; background: var(--linie); margin: 4px 2px; }
.kfg-hinweis { position: absolute; left: 14px; top: 64px; z-index: 4; margin: 0; font-size: 12.5px; color: var(--stein); background: rgba(250, 250, 248, .85); padding: 6px 10px; border-radius: 3px; pointer-events: none; }
.masse-ebene { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.mass-etikett { position: absolute; left: 0; top: 0; white-space: nowrap; font: 700 13px var(--kopf); color: #fff; background: var(--holz); padding: 5px 9px; border-radius: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }

/* Bauplan rechts */
.kfg-plan { display: flex; flex-direction: column; min-height: 0; background: var(--papier); border-left: 1px solid var(--linie); overflow-y: auto; }
.plan-kopf { padding: 18px 20px 14px; border-bottom: 1px solid var(--linie); position: relative; }
.plan-kopf .zeile { display: flex; justify-content: space-between; gap: 8px; font: 600 11.5px var(--kopf); color: var(--stein); }
.plan-kopf .zeile span { background: var(--creme); padding: 4px 8px; border-radius: 3px; }
.plan-kopf h2 { font-size: 24px; margin: 12px 0 4px; }
.plan-kopf .mass { font: 700 15px var(--kopf); color: var(--holz); }
.plan-kopf .plan-farbtext { font-size: 13px; color: var(--stein); }
.plan-zu { display: none; }
.plan-preis { margin: 14px 14px 0; padding: 18px 18px 8px; background: var(--gruen-tief); color: var(--creme); border-radius: 4px; }
.plan-preis .gross { font: 800 36px/1 var(--kopf); letter-spacing: -.02em; }
.plan-preis .klein { font-size: 12px; opacity: .72; margin: 8px 0 6px; }
.plan-preis .status { font: 600 11.5px var(--kopf); margin: 0 0 10px; color: var(--holz-hell); }
.plan-preis .status.ok::before { content: '● '; color: #7fd1a3; }
.plan-zeilen { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(246, 243, 237, .14); }
.plan-zeilen button { display: grid; width: 100%; text-align: left; border: 0; background: none; color: inherit; padding: 9px 0; border-bottom: 1px solid rgba(246, 243, 237, .1); }
.plan-zeilen button:hover span { color: var(--holz-hell); }
.plan-zeilen span { font: 700 13px var(--kopf); }
.plan-zeilen small { font-size: 12px; opacity: .72; }
.plan-liste { padding: 6px 20px; }
.plan-liste summary { cursor: pointer; padding: 12px 0; font: 800 15px var(--kopf); display: flex; justify-content: space-between; }
.plan-liste summary small { font: 500 12.5px var(--text); color: var(--stein); }
.plan-liste table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.plan-liste td { padding: 7px 0; border-bottom: 1px solid var(--sand); vertical-align: top; }
.plan-liste td:first-child { color: var(--stein); width: 28px; font: 600 11px var(--kopf); padding-top: 9px; }
.plan-liste td:last-child { text-align: right; font-weight: 600; padding-left: 10px; }
.plan-aktionen { margin-top: auto; padding: 14px 20px 18px; border-top: 1px solid var(--linie); display: grid; gap: 8px; position: sticky; bottom: 0; background: var(--papier); }
.plan-aktionen .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-hinweis { font-size: 11.5px; color: var(--stein); margin: 0; text-align: center; }
[data-preis].blitz { animation: flash .5s; }

.kfg-meldung { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--tinte); color: #fff; font: 600 13.5px var(--kopf); padding: 11px 16px; border-radius: 3px; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); }
.kfg-meldung.an { opacity: 1; transform: translate(-50%, 0); }
.kfg-mobilleiste { display: none; }

/* Tablet: Bauplan als Schublade */
@media (max-width: 1180px) {
  .kfg { grid-template-columns: clamp(320px, 36vw, 390px) minmax(0, 1fr); }
  .kfg-plan { position: fixed; right: 0; top: 64px; bottom: 0; width: min(380px, 100%); z-index: 40; transform: translateX(100%); transition: transform .3s; box-shadow: -20px 0 50px rgba(0, 0, 0, .25); }
  .kfg-plan.offen { transform: none; }
  .plan-zu { display: block; position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: var(--sand); border-radius: 3px; font-size: 20px; }
  .kfg-mobilleiste { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 35; gap: 8px; background: var(--papier); padding: 8px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
  .kfg-mobilleiste .preis { display: grid; text-align: left; border: 0; background: none; padding: 0 10px; }
  .kfg-mobilleiste small { font-size: 11px; color: var(--stein); }
  .kfg-mobilleiste strong { font: 800 20px var(--kopf); }
  .kfg-wetter { left: auto; right: 14px; transform: none; bottom: 84px; }
}
/* Handy */
@media (max-width: 760px) {
  .kfg-seite { overflow: auto; height: auto; }
  .kfg-kopf { position: sticky; top: 0; height: 56px; gap: 10px; padding: 0 12px; }
  .kfg-kopf .logo span, .kfg-zurueck { display: none; }
  .kfg-schritte .t { display: none; }
  .kfg-schritte button { padding: 4px; }
  .kfg-schritte button[aria-current='step'] .t { display: inline; padding-right: 8px; }
  .kfg { display: flex; flex-direction: column; height: auto; }
  .kfg-buehne { order: 1; position: sticky; top: 56px; z-index: 20; height: 42svh; min-height: 260px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
  .kfg-panel { order: 2; border: 0; }
  .kfg-panel-inhalt { overflow: visible; padding: 18px 16px 8px; }
  .kfg-panel-fuss { position: static; padding: 12px 16px 96px; background: var(--creme); border: 0; }
  .kfg-werkzeuge { top: 8px; left: 8px; right: 8px; transform: none; overflow-x: auto; scrollbar-width: none; }
  .kfg-wz { padding: 7px 9px; font-size: 12px; }
  .kfg-wetter { bottom: 8px; right: 8px; }
  .kfg-wetter .kfg-wz span { display: none; }
  .kfg-hinweis { display: none; }
  .mass-etikett { font-size: 11px; padding: 3px 6px; }
  .kfg-plan { top: 0; width: 100%; }
  .kfg-mobilleiste { left: 0; right: 0; bottom: 0; border-radius: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); justify-content: space-between; }
  .kfg-mobilleiste .knopf { flex: none; }
  .kfg-meldung { bottom: 90px; }
}

/* Maß-Regler (wie BAS: Regler + Zentimeter-Feld, dazu die Preisstufe) */
.regler { background: var(--papier); border: 1px solid var(--linie); border-radius: 4px; padding: 14px 14px 12px; }
.regler-zeile { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.regler input[type=range], .zahl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--holz) var(--p, 50%), var(--sand) var(--p, 50%)); outline: none; }
.regler input[type=range]::-webkit-slider-thumb, .zahl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f0d39a, #b9824a 60%, #8a5a28); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: grab; }
.regler input[type=range]::-moz-range-thumb, .zahl input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #b9824a; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: grab; }
.regler-hinweis { margin: 8px 0 0; font-size: 12.5px; color: var(--stein); }
.regler-stufe { margin: 6px 0 0; font-size: 12.5px; color: #8a5a28; background: #f6ecdc; padding: 6px 9px; border-radius: 3px; display: inline-block; }
.plan-kopf .stufe { font: 600 12.5px var(--kopf); color: var(--stein); }
.plan-kopf .stufe:empty { display: none; }

/* Glas nach Maß */
.glas-buehne { background: #f8f6f1; }
.glas-zeichnung { position: absolute; inset: 64px 24px 48px; display: grid; place-items: center; }
.glas-zeichnung svg { width: 100%; height: 100%; }
.glas-3d { position: absolute; inset: 0; background: linear-gradient(180deg, #eef2f1, #dcd6cb); }
.glas-3d canvas { width: 100% !important; height: 100% !important; }
.glas-legende { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 14px; font: 600 12px var(--kopf); color: var(--stein); background: rgba(255,255,255,.9); padding: 7px 12px; border-radius: 3px; white-space: nowrap; }
.glas-legende i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.glas-formen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.glas-form-k { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 1.5px solid var(--linie); background: var(--papier); border-radius: 3px; text-align: center; }
.glas-form-k svg { width: 34px; height: 34px; fill: rgba(196,218,212,.5); stroke: #5E7F76; stroke-width: 1.5; }
.glas-form-k b { font: 700 11.5px/1.2 var(--kopf); }
.glas-form-k small { font-size: 10.5px; color: var(--stein); }
.glas-form-k[aria-pressed='true'] { border-color: var(--gruen); box-shadow: inset 0 0 0 1px var(--gruen); background: #f1f5f3; }
.kfg-tipp { color: var(--stein); font-size: 13.5px; margin: 4px 0 6px; }
.bohr-zeile { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: var(--papier); border: 1px solid var(--linie); border-radius: 3px; padding: 10px 12px; margin-top: 8px; font-size: 13px; }
.bohr-zeile.fehler { border-color: #b3261e; }
.bohr-zeile small { width: 100%; color: #b3261e; }
.bohr-zeile input, .bohr-zeile select { width: 74px; height: 36px; border: 1.5px solid var(--linie); border-radius: 3px; padding: 0 6px; font: 600 13px var(--kopf); }
.bohr-zeile .x-btn { width: 32px; height: 32px; margin-left: auto; }
.menge { display: flex; gap: 6px; align-items: center; }
.menge input { width: 80px; height: 46px; text-align: center; border: 1.5px solid var(--linie); border-radius: 3px; font: 800 18px var(--kopf); }
.menge .knopf { width: 46px; padding: 0; font-size: 20px; }
.rechenweg { font-size: 12px; opacity: .75; margin: 0 0 10px; }
.glas-meldung { margin: 12px 14px 0; padding: 12px 14px; border-radius: 4px; font-size: 13px; display: grid; gap: 4px; }
.glas-meldung.fehler { background: #fbe9e7; color: #8c1d18; }
.glas-meldung.anfrage { background: #f6ecdc; color: #6b4a1f; }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) { .glas-formen { grid-template-columns: repeat(4, 1fr); } .glas-legende { display: none; } .glas-zeichnung { inset: 52px 8px 8px; } }
.anzahl-hinweis { font-size: 12.5px; margin: 0 0 8px; padding: 7px 10px; background: rgba(232, 211, 176, .14); border: 1px solid rgba(232, 211, 176, .35); border-radius: 3px; color: var(--holz-hell); }
.anzahl-hinweis b { color: #fff; }
.anzahl-hinweis:empty { display: none; }

/* Hinweis Wunschmaß im Warenkorb-Dialog */
.korb-wunsch { display: block; margin-top: 12px; padding: 10px 12px; background: var(--sand); border-left: 3px solid var(--holz); font-size: 14px; line-height: 1.5; }

/* ---------- Bedienleiste 3D (Funktionen wie terraluxo.de) ---------- */
.kfg-aktionen { position: absolute; z-index: 5; right: 14px; top: 64px; display: flex; flex-direction: column; gap: 4px; padding: 4px; background: rgba(250, 250, 248, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 3px; box-shadow: 0 6px 24px rgba(20, 32, 29, .14); }
.kfg-aktionen .kfg-wz { flex-direction: column; gap: 2px; min-width: 58px; padding: 7px 6px; font-size: 11px; }
.kfg-aktionen .kfg-wz svg { width: 19px; height: 19px; }
.kfg-ar { position: absolute; z-index: 5; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 3px; background: var(--gruen); color: #fff; font: 700 13px/1 var(--kopf); box-shadow: 0 6px 24px rgba(20, 32, 29, .22); }
.kfg-ar svg { width: 18px; height: 18px; }
.kfg-pop { position: absolute; z-index: 6; right: 88px; top: 64px; width: min(340px, calc(100% - 110px)); max-height: calc(100% - 140px); overflow: auto; background: #fff; border-radius: 4px; box-shadow: 0 18px 48px rgba(20, 32, 29, .22); padding: 14px 16px 16px; }
.kfg-pop-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kfg-pop-kopf h3 { font-size: 17px; }
.kfg-pop h4 { margin: 14px 0 8px; font: 700 12.5px/1.2 var(--kopf); letter-spacing: .06em; text-transform: uppercase; color: var(--stein); }
.umg-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.umg-wahl .kachel { padding: 9px 6px; text-align: center; }
.umg-farben { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.umg-farbe { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 1.5px solid var(--linie); border-radius: 3px; background: #fff; font-size: 11px; }
.umg-farbe i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.umg-farbe[aria-pressed=true] { border-color: var(--holz); box-shadow: 0 0 0 2px rgba(185, 130, 74, .25); }
.umg-hinweis, .umg-notiz { font-size: 13px; color: var(--stein); margin: 0 0 6px; }
.umg-notiz { margin-top: 12px; font-size: 12px; }
.bew { display: grid; gap: 6px; margin: 10px 0 14px; font-size: 13.5px; font-weight: 600; }
.bew input { width: 100%; accent-color: var(--holz); }
.kfg-ar-dlg { width: min(520px, 94vw); }
.ar-qr { display: grid; place-items: center; margin: 12px auto; width: 230px; }
.ar-qr svg { width: 220px; height: 220px; }
.ar-buehne model-viewer { width: 100%; height: 360px; background: #f3f1ec; border-radius: 4px; }
.ar-start { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }
.plz-feld input { width: 140px; padding: 12px 14px; font: 600 18px/1 var(--kopf); border: 1.5px solid var(--linie); border-radius: 3px; letter-spacing: .08em; }
.plz-info { margin-top: 10px; font-size: 13.5px; color: var(--stein); }
.plz-info p { margin: 0 0 6px; }
body.kfg-vollbild .kfg-panel, body.kfg-vollbild .kfg-plan, body.kfg-vollbild .kfg-kopf { display: none; }
body.kfg-vollbild .kfg { grid-template-columns: 1fr !important; }
@media (max-width: 899px) {
  .kfg-aktionen { top: auto; bottom: 56px; right: 8px; flex-direction: row; }
  .kfg-aktionen .kfg-wz span { display: none; }
  .kfg-aktionen .kfg-wz { min-width: 38px; }
  .kfg-ar { left: 8px; bottom: 8px; padding: 9px 11px; font-size: 12px; }
  .kfg-pop { right: 8px; left: 8px; width: auto; top: 54px; }
}

/* ---------- Kacheln & Wände: sauberer Überblick (18.11.) ---------- */
.kfg-panel .kachel { display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.kfg-panel .kachel b { overflow-wrap: anywhere; hyphens: auto; }
.kfg-panel .kacheln.klein .kachel { align-items: center; }
.kfg-panel .kachel .aufpreis { margin-top: 6px; color: var(--holz); }
.kfg-panel .kachel[aria-pressed='true'] .aufpreis { display: none; }
.seite-karte { margin: 16px 0 4px; padding: 4px 16px 16px; background: #fff; border: 1px solid var(--linie); border-radius: 4px; box-shadow: 0 1px 2px rgba(20, 40, 35, .04); }
.seite-karte .feld:first-of-type { padding-top: 10px; }
.seite-kopf { display: flex; align-items: center; gap: 14px; padding: 14px 0 12px; border-bottom: 1px solid var(--linie); }
.seite-kopf h3 { font: 800 15px/1.2 var(--kopf); margin: 0; }
.seite-info { margin: 3px 0 0; font-size: 12.5px; color: var(--stein); min-height: 1em; }
.seite-skizze { width: 52px; height: 46px; flex: none; }
.seite-skizze .haus { fill: #d9d2c4; }
.seite-skizze .dach { fill: #eef2f0; stroke: #b9c3bf; stroke-width: 1.2; }
.seite-skizze .aktiv { stroke: var(--holz); stroke-width: 4.5; stroke-linecap: round; fill: none; }
.seite-karte .kacheln { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.seite-karte .kacheln.klein { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.seite-karte .kacheln:not(.klein) { grid-template-columns: 1fr; gap: 6px; }
.seite-karte .kacheln:not(.klein) .kachel { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; min-height: 48px; padding: 11px 30px 11px 14px; }
.seite-karte .kacheln:not(.klein) .kachel b, .seite-karte .kacheln:not(.klein) .kachel small { grid-column: 1; }
.seite-karte .kacheln:not(.klein) .kachel small { margin-top: 2px; }
.seite-karte .kacheln:not(.klein) .kachel .aufpreis { grid-column: 2; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }
.seite-karte .kacheln:not(.klein) .kachel[aria-pressed='true']::after { top: 50%; transform: translateY(-50%); right: 12px; }

/* ---------- Handy: 3D groß und frei (18.11.) ---------- */
@media (max-width: 899px) {
  .kfg-buehne { height: 56svh; min-height: 330px; }
  .kfg-werkzeuge { top: 6px; left: 6px; right: 6px; padding: 3px; gap: 2px; background: rgba(250, 250, 248, .82); }
  .kfg-werkzeuge .kfg-wz { padding: 6px 8px; font-size: 11.5px; }
  .kfg-aktionen { top: 52px; bottom: auto; right: 6px; flex-direction: column; padding: 3px; gap: 2px; background: rgba(250, 250, 248, .82); }
  .kfg-aktionen .kfg-wz { min-width: 0; width: 34px; height: 34px; padding: 0; justify-content: center; }
  .kfg-aktionen .kfg-wz svg { width: 17px; height: 17px; }
  .kfg-aktionen [data-akt^="zoom"] { display: none; }
  .kfg-wetter { bottom: 6px; right: 6px; padding: 3px; gap: 2px; background: rgba(250, 250, 248, .82); }
  .kfg-wetter .kfg-wz { width: 32px; height: 32px; padding: 0; justify-content: center; }
  .kfg-wetter .kfg-wz svg { width: 16px; height: 16px; }
  .kfg-ar { left: 6px; bottom: 6px; padding: 8px 10px; font-size: 11.5px; gap: 6px; }
  .kfg-ar svg { width: 16px; height: 16px; }
  .kfg-ar span { display: inline; }
  .kfg-pop { top: 50px; left: 6px; right: 48px; max-height: calc(100% - 100px); }
  .mass-etikett { font-size: 10.5px; padding: 2px 5px; }
}
@media (max-width: 380px) { .kfg-ar span { display: none; } }

/* ---------- Handy: alle 3D-Funktionen hinter einem Knopf „Ansicht“ ---------- */
.kfg-menue-btn { display: none; }
@media (max-width: 899px) {
  .kfg-menue-btn { display: inline-flex; align-items: center; gap: 6px; position: absolute; z-index: 7; top: 6px; right: 6px; padding: 8px 11px; border: 0; border-radius: 3px; background: rgba(250, 250, 248, .92); box-shadow: 0 4px 14px rgba(20, 32, 29, .16); font: 700 12px/1 var(--kopf); color: var(--tinte); }
  .kfg-menue-btn svg { width: 16px; height: 16px; }
  body:not(.kfg-menue-offen) .kfg-buehne .kfg-werkzeuge,
  body:not(.kfg-menue-offen) .kfg-buehne .kfg-wetter,
  body:not(.kfg-menue-offen) .kfg-buehne .kfg-aktionen,
  body:not(.kfg-menue-offen) .kfg-buehne .kfg-pop { display: none; }
  body.kfg-menue-offen .kfg-buehne::after { content: ''; position: absolute; inset: 0; z-index: 4; background: rgba(20, 32, 29, .18); pointer-events: none; }
  body.kfg-menue-offen .kfg-werkzeuge { top: 48px; left: 6px; right: 6px; }
  body.kfg-menue-offen .kfg-wetter { top: 96px; bottom: auto; left: 6px; right: auto; }
  body.kfg-menue-offen .kfg-aktionen { top: 96px; right: 6px; left: auto; flex-direction: row; }
  body.kfg-menue-offen .kfg-pop { top: 142px; left: 6px; right: 6px; width: auto; max-height: calc(100% - 150px); }
}

/* nur-gsw-Ansichten (Innen/Außen/Schienen-Detail) ausserhalb der Glasschiebewand wirklich ausblenden */
.kfg-wz[hidden] { display: none !important; }

/* Kacheln/Ja-Nein mit Bild (Fensterbank-Zubehör, Bilder von ASG Aluminium) */
.kacheln.mit-bild .kachel { align-content: start; }
.kachel-bild { display: block; width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 6px; background: #fff; border-radius: 3px; }
.kacheln .feld-bild { grid-column: 1 / -1; width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--linie); border-radius: 3px; }
.kacheln .feld-hinweis { grid-column: 1 / -1; margin: 0; }

/* Mehrere Fensterbänke */
.pos-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.pos-liste li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--linie); border-radius: 3px; background: #fff; font-size: 13.5px; }
.pos-liste li b { grid-column: 1; font: 700 13.5px var(--kopf); }
.pos-liste li span { grid-column: 1; color: var(--stein); }
.pos-liste .pos-jetzt { border-color: var(--holz); background: #fbf6ef; }
.pos-weg { grid-column: 2; grid-row: 1 / 3; border: 0; background: none; color: #a3412f; font: 600 13px var(--kopf); cursor: pointer; }
.pos-neu { width: 100%; }
