/* ─── Konfigurator ─── */
.kfg-seite { background: var(--anthrazit-tief); overflow: hidden; height: 100svh; }
.kfg-kopf { height: 64px; display: flex; align-items: center; gap: 1.5rem; padding: 0 1.25rem; background: var(--weiss); color: var(--anthrazit); border-bottom: 1px solid var(--linie); position: relative; z-index: 20; }
.kfg-kopf .logo-bild { height: 3.2rem; }
.kfg-schritte { display: flex; gap: .25rem; list-style: none; margin: 0 auto; padding: 0; counter-reset: k; }
.kfg-schritte button { display: flex; align-items: center; gap: .5rem; border: 0; background: transparent; cursor: pointer; padding: .45rem .7rem; font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; color: var(--text-2); border-radius: 2px; transition: background .3s, color .3s; }
.kfg-schritte .nr { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--alu); border-radius: 50%; font-size: .9rem; transition: all .3s; }
.kfg-schritte button.erledigt .nr { background: var(--anthrazit); border-color: var(--anthrazit); color: var(--weiss); }
.kfg-schritte button[aria-current=step] { color: var(--anthrazit); background: var(--hell); }
.kfg-schritte button[aria-current=step] .nr { background: var(--messing); border-color: var(--messing); color: var(--anthrazit-tief); }
.kfg-schritte button:hover { color: var(--anthrazit); }
.kfg-zurueck { text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.kfg-zurueck:hover { color: var(--messing-text); }

.kfg { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100svh - 64px); }
.kfg-buehne { position: relative; overflow: hidden; background: #c9d3d8; }
#buehne-3d { position: absolute; inset: 0; }
#buehne-3d canvas { display: block; touch-action: none; }
.kfg-labels { position: absolute; inset: 0; pointer-events: none; }
.kfg-mass { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--anthrazit-tief); background: var(--messing); padding: .1rem .5rem; border-radius: 2px; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.zieht, .zieht * { cursor: grabbing !important; user-select: none; }

.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(43,48,51,.14); }
.kfg-werkzeuge { top: 1rem; left: 1rem; flex-wrap: wrap; max-width: calc(100% - 2rem - 300px); }
.kfg-wetter { top: 1rem; right: 1rem; }
.kfg-werkzeuge .trenner { width: 1px; background: var(--linie); margin: 4px 2px; }
.kfg-wz { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; padding: .45rem .7rem; font-size: .88rem; font-weight: 500; cursor: pointer; border-radius: 2px; color: var(--text); transition: background .25s, color .25s; }
.kfg-wz { flex: none; white-space: nowrap; }
.kfg-wz svg { width: 16px; height: 16px; flex: none; }
.kfg-wz:hover { background: var(--hell); }
.kfg-wz[aria-pressed=true] { background: var(--anthrazit); color: var(--weiss); }
.kfg-hinweis { position: absolute; z-index: 4; right: 1rem; bottom: 1rem; margin: 0; font-size: .82rem; color: var(--anthrazit-tief); background: rgba(250,250,248,.7); padding: .3rem .8rem; border-radius: 20px; white-space: nowrap; pointer-events: none; transition: opacity .6s; }
#explosion-hinweis { position: absolute; z-index: 4; left: 50%; bottom: calc(1rem + 280px); transform: translateX(-50%); background: var(--anthrazit); color: var(--weiss); padding: .5rem 1rem; font-size: .9rem; margin: 0; }

.kfg-panel { position: absolute; z-index: 6; left: 1rem; right: 1rem; bottom: 1rem; max-width: 760px; max-height: min(52%, 480px); display: flex; flex-direction: column; background: var(--weiss); border-radius: 3px; box-shadow: 0 18px 50px rgba(43,48,51,.25); }
.kfg-panel-inhalt { padding: 1.4rem 1.5rem .6rem; overflow-y: auto; overscroll-behavior: contain; }
.kfg-panel h2 { font-size: 2rem; margin-bottom: .9rem; }
.kfg-tipp { font-size: .9rem; color: var(--text-2); margin: .4rem 0 .9rem; }
.kfg-tipp a { color: var(--messing-text); font-weight: 600; }
.kfg-fakt { font-size: .9rem; color: var(--messing-text); font-weight: 500; margin: .8rem 0 0; }
.kfg-nav { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.5rem 1rem; border-top: 1px solid var(--linie); }
.kfg-nav .knopf { min-height: 46px; padding: .55rem 1.2rem; font-size: 1.1rem; }

.kfg-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.kfg-karte { display: grid; text-align: left; gap: .25rem; padding: 0 0 .9rem; border: 1.5px solid var(--alu-hell); background: var(--weiss); cursor: pointer; border-radius: 2px; overflow: hidden; transition: border-color .3s, transform .4s var(--takt); }
.kfg-karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .5rem; }
.kfg-karte .n { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; padding: 0 .9rem; line-height: 1.1; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.kfg-karte .x { font-size: .82rem; color: var(--text-2); padding: 0 .9rem; line-height: 1.4; }
.kfg-karte .ab { font-size: .85rem; font-weight: 600; padding: .2rem .9rem 0; color: var(--messing-text); }
.kfg-karte:hover { border-color: var(--alu); transform: translateY(-2px); }
.kfg-karte[aria-pressed=true] { border-color: var(--messing); box-shadow: inset 0 0 0 1.5px var(--messing); }

.kfg-mass-feld { margin-bottom: 1rem; }
.kfg-mass-feld label { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.kfg-mass-zeile { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.kfg-mass-feld .hilfe { font-size: .82rem; color: var(--text-2); margin: .25rem 0 0; }
.kfg-cm { display: inline-flex; align-items: center; border: 1.5px solid var(--alu-hell); border-radius: 2px; background: var(--weiss); }
.kfg-cm input { width: 5.2rem; border: 0; padding: .55rem .4rem .55rem .7rem; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; text-align: right; background: transparent; color: var(--text); -moz-appearance: textfield; }
.kfg-cm input::-webkit-outer-spin-button, .kfg-cm input::-webkit-inner-spin-button { -webkit-appearance: none; }
.kfg-cm span { padding-right: .7rem; color: var(--text-2); font-size: .9rem; }
.kfg-cm:focus-within { border-color: var(--messing); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--alu); }
input[type=range]::-moz-range-track { height: 2px; background: var(--alu); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--messing); border: 3px solid var(--weiss); box-shadow: 0 0 0 1.5px var(--messing); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--messing); border: 3px solid var(--weiss); box-shadow: 0 0 0 1.5px var(--messing); }

.kfg-wahl { border: 0; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.kfg-wahl.zwei { grid-template-columns: 1fr 1fr; }
.kfg-wahl legend { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; margin-bottom: .4rem; padding: 0; }
.kfg-option, .kfg-extra { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: .1rem .75rem; align-items: start; padding: .8rem .9rem; border: 1.5px solid var(--alu-hell); border-radius: 2px; cursor: pointer; transition: border-color .25s, background .25s; }
.kfg-option input, .kfg-extra input { grid-row: span 2; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--anthrazit); }
.kfg-option .n, .kfg-extra .n { font-weight: 600; line-height: 1.3; }
.kfg-option .x, .kfg-extra .x { grid-column: 2; font-size: .85rem; color: var(--text-2); line-height: 1.4; }
.kfg-extra .p { grid-column: 3; grid-row: 1; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.kfg-option:has(input:checked), .kfg-extra:has(input:checked) { border-color: var(--anthrazit); background: var(--hell); }
.kfg-option:hover, .kfg-extra:hover { border-color: var(--alu); }
.kfg-extras { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.kfg-extra.gesperrt { opacity: .5; cursor: not-allowed; }

.kfg-farben { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.kfg-farbe { display: grid; grid-template-columns: 56px 1fr; gap: .1rem 1rem; align-items: center; text-align: left; padding: .8rem; border: 1.5px solid var(--alu-hell); background: var(--weiss); cursor: pointer; border-radius: 2px; }
.kfg-farbe .muster { grid-row: span 2; width: 56px; height: 56px; background: linear-gradient(135deg, rgba(255,255,255,.25), transparent 45%, rgba(0,0,0,.15)), var(--f); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.kfg-farbe .n { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; }
.kfg-farbe .x { font-size: .85rem; color: var(--text-2); }
.kfg-farbe[aria-pressed=true] { border-color: var(--messing); box-shadow: inset 0 0 0 1.5px var(--messing); }

.kfg-plz { display: grid; gap: .35rem; max-width: 260px; margin-bottom: .6rem; }
.kfg-plz span { font-weight: 600; }
.kfg-plz input { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; letter-spacing: .12em; padding: .45rem .8rem; border: 1.5px solid var(--alu-hell); border-radius: 2px; background: var(--weiss); color: var(--text); }
.kfg-plz input:focus { border-color: var(--messing); outline: none; }
.kfg-plzinfo { font-size: .92rem; color: var(--text-2); }
.kfg-plzinfo p { margin: 0 0 .4rem; }
.kfg-plzinfo strong { color: var(--text); }
.kfg-panel .knopf.breit { margin-top: 1rem; }

/* Bauplan */
.kfg-plan { display: flex; flex-direction: column; background: var(--weiss); border-left: 1px solid var(--linie); min-height: 0; }
.plan-kopf { padding: 1.4rem 1.5rem 1.1rem; border-bottom: 1.5px solid var(--anthrazit); }
.plan-kopf .zeile { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--text-2); }
.plan-kopf h2 { font-size: 2.1rem; margin: .5rem 0 .2rem; }
.plan-kopf .mass { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--messing-text); }
.plan-kopf .farbe { font-size: .9rem; color: var(--text-2); }
.plan-zu { display: none; }
.plan-preis { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--linie); }
.plan-preis .gross { font-family: var(--f-display); font-weight: 700; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-preis .gross.klein-gross { font-size: 2rem; }
.plan-preis .klein { font-size: .82rem; color: var(--text-2); margin: .3rem 0 0; }
.plan-zeilen { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.plan-zeilen li { display: flex; justify-content: space-between; gap: 1rem; }
.plan-zeilen li span:first-child { color: var(--text-2); }
.plan-zeilen li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-liste { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.5rem; overscroll-behavior: contain; }
.plan-liste summary { display: flex; justify-content: space-between; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; list-style: none; }
.plan-liste summary::-webkit-details-marker { display: none; }
.plan-liste summary small { font-family: var(--f-text); font-weight: 400; font-size: .85rem; color: var(--text-2); align-self: center; }
.plan-liste table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .8rem; }
.plan-liste td { padding: .4rem .3rem .4rem 0; border-top: 1px solid var(--linie); vertical-align: top; }
.plan-liste td:first-child { color: var(--messing-text); font-weight: 600; width: 1.8rem; }
.plan-liste td:nth-child(3) { text-align: right; padding-right: .7rem; font-weight: 600; }
.plan-liste td:last-child { color: var(--text-2); }
.plan-aktionen { padding: 1rem 1.5rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; border-top: 1px solid var(--linie); }
.plan-aktionen .knopf { min-height: 46px; font-size: 1.08rem; padding: .5rem .8rem; }
.plan-aktionen .knopf.messing { grid-column: 1 / -1; min-height: 54px; font-size: 1.25rem; }
.plan-hinweis { font-size: .75rem; color: var(--text-2); grid-column: 1 / -1; margin: .2rem 0 0; }

.kfg-mobilleiste { display: none; }
.kfg-meldung { position: fixed; left: 50%; bottom: 1.5rem; z-index: 400; transform: translate(-50%, 150%); background: var(--anthrazit); color: var(--weiss); padding: .8rem 1.2rem; border-radius: 3px; font-size: .92rem; transition: transform .5s var(--takt); }
.kfg-meldung.an { transform: translate(-50%, 0); }

/* Anfrage-Dialog */
.anfrage { width: min(720px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: 3px; background: var(--weiss); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.anfrage::backdrop { background: rgba(43,48,51,.7); backdrop-filter: blur(4px); }
.anfrage-kopf { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.5rem 1.75rem 1rem; border-bottom: 1px solid var(--linie); }
.anfrage-kopf h2 { font-size: 2.2rem; }
.anfrage-kopf button { border: 0; background: var(--hell); width: 40px; height: 40px; cursor: pointer; font-size: 1.4rem; line-height: 1; flex: none; }
.anfrage-inhalt { padding: 1.25rem 1.75rem 1.75rem; }
.a-zus { background: var(--hell); padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-left: 3px solid var(--messing); }
.a-zus p { margin: 0; font-size: .92rem; color: var(--text-2); }
.a-zus .a-prod { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; color: var(--text); }
.a-zus .a-preis { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--text); margin-top: .3rem; }
.a-zus .a-preis small { font-family: var(--f-text); font-size: .8rem; font-weight: 400; color: var(--text-2); }
.anfrage .formular { gap: .85rem; }
.anfrage-fehler { background: #fbe9e4; border-left: 3px solid #b3442a; padding: .9rem 1rem; font-size: .92rem; }
.anfrage-danke h3 { font-size: 2.2rem; margin-bottom: .8rem; }
.anfrage-danke ol { padding-left: 1.2rem; color: var(--text-2); }
.anfrage-danke ol li { margin-bottom: .5rem; }

/* Ab Tablet: Optionen in eigener Spalte links, Modell frei daneben */
@media (min-width: 761px) {
  .kfg { --spalte: clamp(320px, 27vw, 420px); grid-template-columns: minmax(0, 1fr) clamp(330px, 24vw, 380px); }
  .kfg-panel { left: 0; top: 0; bottom: 0; right: auto; width: var(--spalte); max-width: none; max-height: none; border-radius: 0; box-shadow: none; border-right: 1px solid var(--linie); }
  .kfg-panel-inhalt { flex: 1; padding: 1.6rem 1.5rem 1rem; }
  #buehne-3d { left: var(--spalte); }
  .kfg-werkzeuge { left: calc(var(--spalte) + 1rem); max-width: calc(100% - var(--spalte) - 2rem); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .kfg-wetter { top: auto; bottom: 1rem; right: 1rem; }
  .kfg-hinweis { right: auto; bottom: auto; top: 4.4rem; left: calc(var(--spalte) + 1rem); white-space: normal; max-width: 300px; border-radius: 3px; }
  #explosion-hinweis { left: calc(50% + var(--spalte) / 2); bottom: 3.5rem; }
  .kfg-karten { grid-template-columns: 1fr; }
  .kfg-karte { grid-template-columns: 120px 1fr; grid-template-rows: auto auto auto; column-gap: .2rem; padding: 0; }
  .kfg-karte img { grid-row: span 3; height: 100%; aspect-ratio: auto; margin: 0; }
  .kfg-karte .n { padding-top: .75rem; }
  .kfg-karte .ab { padding-bottom: .75rem; }
  .kfg-extras, .kfg-farben, .kfg-wahl.zwei { grid-template-columns: 1fr; }
  .plan-preis .gross { font-size: 2.7rem; }
}
@media (max-width: 1180px) {
  .kfg-schritte .t { display: none; }
  .kfg-schritte button[aria-current=step] .t { display: inline; }
}
@media (max-width: 1100px) {
  .kfg { grid-template-columns: 1fr; }
  .kfg-plan { position: fixed; inset: auto 0 0 0; z-index: 40; max-height: 86svh; transform: translateY(100%); transition: transform .55s var(--takt); box-shadow: 0 -20px 60px rgba(0,0,0,.3); border-radius: 10px 10px 0 0; }
  .plan-offen .kfg-plan { transform: none; }
  .plan-zu { display: block; position: absolute; top: .8rem; right: 1rem; border: 0; background: var(--hell); width: 40px; height: 40px; font-size: 1.4rem; cursor: pointer; }
  .kfg-mobilleiste { display: flex; position: fixed; inset: auto 0 0 0; z-index: 30; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--weiss); border-top: 1px solid var(--linie); }
  .kfg-mobilleiste button.preis { border: 0; background: none; text-align: left; cursor: pointer; padding: 0; }
  .kfg-mobilleiste small { display: block; font-size: .75rem; color: var(--text-2); }
  .kfg-mobilleiste strong { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
  .kfg-mobilleiste .knopf { min-height: 46px; padding: .5rem 1rem; font-size: 1.1rem; }
  .kfg { height: calc(100svh - 64px - 70px); }
}
@media (max-width: 760px) {
  .kfg-seite { overflow-x: hidden; overflow-y: auto; height: auto; }
  .kfg { height: auto; display: block; }
  .kfg-buehne { height: auto; overflow: visible; }
  #buehne-3d { position: relative; height: 52svh; }
  .kfg-kopf nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .kfg-kopf nav::-webkit-scrollbar { display: none; }
  .kfg-schritte { margin: 0; }
  .kfg-werkzeuge { left: .6rem; top: .6rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 1.2rem); }
  .kfg-wetter { top: calc(52svh - 3.1rem); bottom: auto; right: .6rem; }
  .kfg-panel { position: relative; left: 0; right: 0; bottom: 0; max-width: none; max-height: none; border-radius: 0; box-shadow: none; padding-bottom: 76px; }
  .kfg-karten { grid-template-columns: 1fr; }
  .kfg-karte { grid-template-columns: 110px 1fr; grid-template-rows: auto auto auto; column-gap: .2rem; padding: 0; }
  .kfg-karte img { grid-row: span 3; height: 100%; aspect-ratio: auto; margin: 0; }
  .kfg-karte .n { padding-top: .7rem; }
  .kfg-karte .ab { padding-bottom: .7rem; }
  .kfg-extras, .kfg-farben, .kfg-wahl.zwei { grid-template-columns: 1fr; }
  .kfg-hinweis { display: none; }
  .kfg-wz .t { display: none; }
  .kfg-kopf { gap: .6rem; padding: 0 .75rem; }
  .kfg-zurueck { display: none; }
  .kfg-schritte button { padding: .35rem .35rem; }
  #explosion-hinweis { bottom: 1rem; }
}

/* ═════════════════════════════════════════════════════════════════════
   Feinschliff Oktober 2026: nur Optik, keine Inhalte.
   Weiche Flächen, klare Auswahlzustände, Messing nur für Auswahl, Fortschritt und Preis.
   ═════════════════════════════════════════════════════════════════════ */
.kfg-seite {
  --k-flaeche: #f3f3f1;
  --k-karte: #ffffff;
  --k-rand: rgba(43, 48, 51, .11);
  --k-rand-stark: rgba(43, 48, 51, .22);
  --k-messing-hauch: #f7f0e3;
  --k-radius: 12px;
  --k-radius-klein: 8px;
  --k-schatten: 0 1px 2px rgba(43, 48, 51, .06), 0 4px 14px rgba(43, 48, 51, .06);
  --k-schatten-hoch: 0 2px 4px rgba(43, 48, 51, .06), 0 14px 34px rgba(43, 48, 51, .12);
}

/* Kopf und Schrittleiste */
.kfg-kopf { height: 68px; box-shadow: 0 1px 0 var(--k-rand); border-bottom: 0; }
.kfg-schritte { gap: .2rem; padding: 4px; background: var(--k-flaeche); border-radius: 999px; }
.kfg-schritte button { border-radius: 999px; padding: .4rem .85rem .4rem .45rem; font-size: 1.05rem; letter-spacing: .01em; }
.kfg-schritte .nr { width: 26px; height: 26px; border: 1.5px solid var(--k-rand-stark); background: var(--k-karte); font-size: .85rem; position: relative; }
.kfg-schritte button:hover { background: rgba(255,255,255,.7); }
.kfg-schritte button[aria-current=step] { background: var(--k-karte); box-shadow: var(--k-schatten); color: var(--anthrazit-tief); }
.kfg-schritte button[aria-current=step] .nr { background: var(--messing); border-color: var(--messing); color: var(--anthrazit-tief); box-shadow: 0 0 0 4px rgba(195, 154, 82, .18); }
.kfg-schritte button.erledigt { color: var(--anthrazit); }
.kfg-schritte button.erledigt .nr { background: var(--anthrazit); border-color: var(--anthrazit); color: transparent; }
.kfg-schritte button.erledigt .nr::after { content: ''; position: absolute; width: 9px; height: 5px; border: solid var(--weiss); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.kfg-zurueck { padding: .45rem .9rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--k-rand-stark); transition: box-shadow .25s, color .25s; }
.kfg-zurueck:hover { box-shadow: inset 0 0 0 1.5px var(--messing); }

/* Bühne und Werkzeuge */
.kfg-buehne { background: linear-gradient(180deg, #d6dde0, #c4ced3); }
.kfg-werkzeuge, .kfg-wetter { padding: 5px; gap: 3px; border-radius: 999px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 8px 28px rgba(43, 48, 51, .16); }
.kfg-wz { border-radius: 999px; padding: .45rem .85rem; color: var(--anthrazit); }
.kfg-wz:hover { background: rgba(43, 48, 51, .06); }
.kfg-wz[aria-pressed=true] { background: var(--anthrazit-tief); color: var(--weiss); box-shadow: 0 2px 8px rgba(43, 48, 51, .25); }
.kfg-werkzeuge .trenner { margin: 6px 3px; }
.kfg-hinweis { border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: 0 4px 16px rgba(43, 48, 51, .1); padding: .4rem .95rem; }
.kfg-mass { border-radius: 6px; padding: .12rem .55rem; box-shadow: 0 3px 12px rgba(43, 48, 51, .22), 0 0 0 2px rgba(255, 255, 255, .55); }
#explosion-hinweis { border-radius: 999px; padding: .55rem 1.2rem; box-shadow: var(--k-schatten-hoch); }

/* Auswahlspalte */
.kfg-panel { background: var(--k-flaeche); border-radius: var(--k-radius); box-shadow: var(--k-schatten-hoch); }
.kfg-panel h2 { font-size: 2.15rem; letter-spacing: -.005em; line-height: 1.02; margin-bottom: 1.1rem; }
.kfg-panel-inhalt { padding-top: 1.6rem; }
.kfg-nav { background: var(--k-karte); border-top: 1px solid var(--k-rand); border-radius: 0 0 var(--k-radius) var(--k-radius); }
.kfg-nav .knopf { border-radius: var(--k-radius-klein); }
.kfg-tipp { color: var(--text-2); }
.kfg-fakt { display: inline-block; background: var(--k-messing-hauch); color: var(--messing-text); border-radius: var(--k-radius-klein); padding: .55rem .8rem; line-height: 1.45; }

/* Produktkarten */
.kfg-karte { border: 1px solid var(--k-rand); border-radius: var(--k-radius); background: var(--k-karte); box-shadow: var(--k-schatten); position: relative; transition: border-color .3s, box-shadow .35s, transform .4s var(--takt); }
.kfg-karte img { background: var(--hell); }
.kfg-karte .n { font-size: 1.4rem; }
.kfg-karte .ab { display: inline-block; justify-self: start; margin: .15rem .9rem 0; padding: .2rem .55rem; background: var(--k-messing-hauch); border-radius: 999px; font-size: .8rem; letter-spacing: .01em; }
.kfg-karte:hover { border-color: var(--k-rand-stark); box-shadow: var(--k-schatten-hoch); transform: translateY(-2px); }
.kfg-karte[aria-pressed=true] { border-color: var(--messing); box-shadow: 0 0 0 2px var(--messing), var(--k-schatten-hoch); }
.kfg-karte[aria-pressed=true]::after { content: ''; position: absolute; top: .55rem; left: .55rem; width: 26px; height: 26px; border-radius: 50%; background: var(--messing) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%232b3033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: 0 2px 8px rgba(43, 48, 51, .25); }

/* Maße */
.kfg-mass-feld { background: var(--k-karte); border: 1px solid var(--k-rand); border-radius: var(--k-radius); padding: .9rem 1rem .8rem; box-shadow: var(--k-schatten); }
.kfg-mass-feld label { font-size: 1.3rem; }
.kfg-cm { border: 1px solid var(--k-rand-stark); border-radius: var(--k-radius-klein); background: var(--k-flaeche); transition: border-color .25s, box-shadow .25s; }
.kfg-cm:focus-within { border-color: var(--messing); box-shadow: 0 0 0 3px rgba(195, 154, 82, .2); background: var(--k-karte); }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--messing), var(--alu-hell)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--alu-hell); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--messing); }
input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; border: 4px solid var(--weiss); box-shadow: 0 0 0 1px rgba(43, 48, 51, .15), 0 3px 10px rgba(43, 48, 51, .3); transition: transform .2s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid var(--weiss); box-shadow: 0 0 0 1px rgba(43, 48, 51, .15), 0 3px 10px rgba(43, 48, 51, .3); }

/* Optionen (Eindeckung, Befestigung, Extras, Lieferung) */
.kfg-wahl { gap: .6rem; }
.kfg-option, .kfg-extra { grid-template-columns: 24px 1fr auto; gap: .15rem .8rem; padding: .95rem 1rem; border: 1px solid var(--k-rand); border-radius: var(--k-radius); background: var(--k-karte); box-shadow: var(--k-schatten); transition: border-color .25s, box-shadow .3s, background .25s; }
.kfg-option input, .kfg-extra input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--k-rand-stark); background: var(--k-karte); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.kfg-option input[type=radio] { border-radius: 50%; }
.kfg-option input[type=checkbox], .kfg-extra input { border-radius: 6px; }
.kfg-option input[type=radio]:checked { border: 6.5px solid var(--messing); }
.kfg-option input[type=checkbox]:checked, .kfg-extra input:checked { background: var(--messing) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%232b3033' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--messing); }
.kfg-option input:focus-visible, .kfg-extra input:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.kfg-option:hover, .kfg-extra:hover { border-color: var(--k-rand-stark); box-shadow: var(--k-schatten-hoch); }
.kfg-option:has(input:checked), .kfg-extra:has(input:checked) { border-color: var(--messing); background: var(--k-messing-hauch); box-shadow: 0 0 0 1px var(--messing), var(--k-schatten); }
.kfg-option .n, .kfg-extra .n { font-size: 1rem; }
.kfg-extra .p { font-family: var(--f-text); font-size: .78rem; font-weight: 600; color: var(--messing-text); background: var(--k-messing-hauch); border-radius: 999px; padding: .15rem .55rem; align-self: start; }
.kfg-extra .p:empty { display: none; }
.kfg-extra:has(input:checked) .p { background: var(--k-karte); }
.kfg-extra.gesperrt { box-shadow: none; background: transparent; }

/* Farben */
.kfg-farbe { border: 1px solid var(--k-rand); border-radius: var(--k-radius); background: var(--k-karte); box-shadow: var(--k-schatten); padding: .85rem; transition: border-color .25s, box-shadow .3s; }
.kfg-farbe .muster { width: 58px; height: 58px; border-radius: var(--k-radius-klein); background: linear-gradient(145deg, rgba(255,255,255,.38), rgba(255,255,255,0) 42%, rgba(0,0,0,.18)), var(--f); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 3px 10px rgba(43,48,51,.18); }
.kfg-farbe:hover { border-color: var(--k-rand-stark); box-shadow: var(--k-schatten-hoch); }
.kfg-farbe[aria-pressed=true] { border-color: var(--messing); background: var(--k-messing-hauch); box-shadow: 0 0 0 2px var(--messing), var(--k-schatten); }

/* PLZ */
.kfg-plz input { border: 1px solid var(--k-rand-stark); border-radius: var(--k-radius-klein); background: var(--k-karte); box-shadow: var(--k-schatten); }
.kfg-plz input:focus { box-shadow: 0 0 0 3px rgba(195, 154, 82, .2); }
.kfg-plzinfo { background: var(--k-karte); border: 1px solid var(--k-rand); border-left: 3px solid var(--messing); border-radius: var(--k-radius-klein); padding: .75rem .9rem .4rem; margin-bottom: .8rem; }
.kfg-panel .knopf.breit { border-radius: var(--k-radius-klein); }

/* Bauplan */
.kfg-plan { background: var(--k-flaeche); border-left: 1px solid var(--k-rand); }
.plan-kopf { background: var(--k-karte); border-bottom: 1px solid var(--k-rand); }
.plan-kopf .zeile span { padding: .15rem .55rem; border-radius: 999px; background: var(--k-flaeche); font-size: .75rem; letter-spacing: .02em; }
.plan-kopf h2 { font-size: 2.15rem; }
.plan-preis { margin: 1rem 1rem 0; padding: 1.2rem 1.25rem 1.1rem; border: 0; border-radius: var(--k-radius); background: var(--anthrazit-tief); color: var(--weiss); box-shadow: 0 10px 30px rgba(43, 48, 51, .28); position: relative; overflow: hidden; }
.plan-preis::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--messing), rgba(195, 154, 82, .2)); }
.plan-preis .gross { color: var(--weiss); letter-spacing: -.01em; }
.plan-preis .klein { color: rgba(250, 250, 248, .66); line-height: 1.5; }
.plan-zeilen { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid rgba(250, 250, 248, .14); gap: .45rem; }
.plan-zeilen li span:first-child { color: rgba(250, 250, 248, .78); }
.plan-zeilen li span:last-child { color: var(--weiss); font-weight: 600; }
.plan-zeilen .auf { font-style: normal; font-weight: 500; font-size: .78rem; color: var(--messing); background: rgba(195, 154, 82, .14); padding: .08rem .5rem; border-radius: 999px; }
.plan-liste { padding: 1rem; }
.plan-liste details { background: var(--k-karte); border: 1px solid var(--k-rand); border-radius: var(--k-radius); padding: .9rem 1rem .6rem; box-shadow: var(--k-schatten); }
.plan-liste summary { position: relative; padding-right: 1.6rem; }
.plan-liste summary::after { content: ''; position: absolute; right: .2rem; top: 50%; width: 8px; height: 8px; border: solid var(--text-2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.plan-liste details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.plan-liste td { border-top-color: var(--k-rand); padding: .5rem .3rem .5rem 0; }
.plan-liste tr:hover td { background: var(--k-flaeche); }
.plan-aktionen { background: var(--k-karte); border-top: 1px solid var(--k-rand); }
.plan-aktionen .knopf { border-radius: var(--k-radius-klein); }
.plan-aktionen .knopf.messing { box-shadow: 0 8px 22px rgba(195, 154, 82, .35); }

/* Mobilleiste und Meldungen */
.kfg-mobilleiste { box-shadow: 0 -8px 30px rgba(43, 48, 51, .1); border-top: 0; }
.kfg-mobilleiste .knopf { border-radius: var(--k-radius-klein); }
.kfg-meldung { border-radius: 999px; box-shadow: var(--k-schatten-hoch); }

/* Anfrage-Dialog */
.anfrage { border-radius: 16px; }
.anfrage-kopf button { border-radius: 50%; }
.a-zus { border-radius: var(--k-radius); border-left: 0; box-shadow: inset 3px 0 0 var(--messing); background: var(--k-messing-hauch); }
.anfrage .feld input, .anfrage .feld textarea, .anfrage .feld select { border-radius: var(--k-radius-klein); border-width: 1px; border-color: var(--k-rand-stark); }
.anfrage .feld input:focus, .anfrage .feld textarea:focus, .anfrage .feld select:focus { box-shadow: 0 0 0 3px rgba(195, 154, 82, .2); }
.anfrage .knopf { border-radius: var(--k-radius-klein); }

/* Ab Tablet: Spalte bündig, ohne schwebende Ecken */
@media (min-width: 761px) {
  .kfg-panel { border-radius: 0; box-shadow: 1px 0 0 var(--k-rand); border-right: 0; }
  .kfg-nav { border-radius: 0; }
  .kfg-karte[aria-pressed=true]::after { top: .5rem; left: .5rem; }
}
@media (max-width: 1100px) {
  .kfg-plan { border-radius: 16px 16px 0 0; }
}
@media (max-width: 760px) {
  .kfg-panel { border-radius: 0; box-shadow: none; }
  .kfg-schritte { background: transparent; padding: 0; }
  .kfg-schritte button { padding: .3rem .35rem; }
  .kfg-werkzeuge, .kfg-wetter { padding: 3px; }
  .kfg-wz { padding: .4rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kfg-karte, .kfg-option, .kfg-extra, .kfg-farbe { transition: none; }
}

/* Feinschliff: Bauplan als Ganzes scrollbar, Preis-Karte nie abgeschnitten */
.kfg-plan { overflow-y: auto; overscroll-behavior: contain; }
.plan-preis { flex: none; }
.plan-zeilen { font-size: .84rem; gap: .35rem; }
.plan-zeilen li { line-height: 1.35; }
.plan-liste { flex: none; overflow: visible; min-height: auto; }
.plan-aktionen { position: sticky; bottom: 0; margin-top: auto; z-index: 2; }
.kfg-extra .x { grid-column: 2 / -1; }
.kfg-meldung { transform: translate(-50%, calc(100% + 3rem)); opacity: 0; transition: transform .5s var(--takt), opacity .3s; }
.kfg-meldung.an { opacity: 1; }
@media (max-width: 1100px) {
  .plan-kopf .zeile { padding-right: 3.2rem; }
  .plan-zu { border-radius: 50%; }
}

/* ─── Erweiterte Optionen und Fotoansicht (November 2026) ─── */
.kfg-gruppe { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; margin: 1rem 0 .45rem; display: flex; align-items: baseline; gap: .6rem; }
.kfg-gruppe:first-of-type { margin-top: .4rem; }
.kfg-gruppe small { font-family: var(--f-text); font-weight: 600; font-size: .75rem; color: var(--messing-text); background: var(--k-messing-hauch); border-radius: 999px; padding: .12rem .55rem; }
.kfg-farben.klein { grid-template-columns: 1fr 1fr; gap: .5rem; }
.kfg-farben.klein .kfg-farbe { grid-template-columns: 38px 1fr; padding: .55rem .65rem; gap: 0 .7rem; }
.kfg-farben.klein .muster { width: 38px; height: 38px; }
.kfg-farben.klein .n { font-size: 1.05rem; }
.kfg-farben.klein .x { font-size: .76rem; }
.kfg-farbe .muster.metallic { background: linear-gradient(115deg, rgba(255,255,255,.55), rgba(255,255,255,0) 35%, rgba(255,255,255,.25) 55%, rgba(0,0,0,.22)), var(--f); }
.kfg-chips { margin-top: .9rem; }
.kfg-chips .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.kfg-chip { position: relative; cursor: pointer; }
.kfg-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.kfg-chip span { display: block; padding: .55rem .9rem; border: 1px solid var(--k-rand); border-radius: 999px; background: var(--k-karte); box-shadow: var(--k-schatten); font-weight: 600; font-size: .92rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.kfg-chip:hover span { border-color: var(--k-rand-stark); }
.kfg-chip input:checked + span { border-color: var(--messing); background: var(--k-messing-hauch); box-shadow: 0 0 0 1px var(--messing); }
.kfg-chip input:focus-visible + span { outline: 2px solid var(--messing); outline-offset: 2px; }
.kfg-chips .x { margin: .45rem 0 0; font-size: .86rem; color: var(--text-2); }
/* Fotoansicht: leichte Vignette wie bei einer Kamera */
.kfg-foto::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 55%, rgba(20,24,28,.22) 100%); z-index: 1; }
.kfg-foto .kfg-labels { z-index: 2; }
