/* Bruag Balkonkonfigurator. CI: 001_Firmenwissen/020_Wissensdatenbank_Marke/02_Corporate_Identity */
@font-face { font-family: 'Neue Frutiger World'; src: url(../fonts/NeueFrutigerWorld-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Neue Frutiger World'; src: url(../fonts/NeueFrutigerWorld-Book.woff2) format('woff2'); font-weight: 350; font-display: swap; }
@font-face { font-family: 'Neue Frutiger World'; src: url(../fonts/NeueFrutigerWorld-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neue Frutiger World'; src: url(../fonts/NeueFrutigerWorld-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Neue Frutiger World'; src: url(../fonts/NeueFrutigerWorld-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --schwarz: #1a1a1a;          /* Black 90%, Text und Headlines */
  --dunkel: #2a2b33;           /* Dark Grey */
  --grau: #677686;             /* Light Grey */
  --linie: #e4e1db;
  --flaeche: #ffffff;
  --grund: #f4f2ee;
  --weich: #efece6;
  --gold: #ebb260;             /* Akzent, sparsam */
  --rot: #ca0019;              /* Orient Red, nur Haupt-CTA */
  --radius: 10px;
  --seite: 440px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Neue Frutiger World', 'Frutiger', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 350; color: var(--schwarz); background: var(--grund);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
h2, h3, h4 { font-weight: 300; margin: 0; color: var(--schwarz); }

.app { display: grid; grid-template-columns: 1fr var(--seite); height: 100%; }

/* ---------- 3D ---------- */
.viewer { position: relative; overflow: hidden; background: #dfe3e6; min-height: 0; }
.viewer canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.masslabel { background: rgba(42, 43, 51, .88); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; font-weight: 500; }
.masslabel.klein { background: rgba(255, 255, 255, .92); color: var(--dunkel); font-weight: 400; }
.eckdaten, .speichern, .prototyp, .werkzeuge, .ansichten, .bedienhinweis { position: absolute; z-index: 2; }
.berechnung { position: absolute; z-index: 3; top: 16px; left: 50%; transform: translate(-50%, -8px); background: rgba(42, 43, 51, .88); color: #fff; font-size: 13px; padding: 6px 14px; border-radius: 16px; opacity: 0; transition: .2s; pointer-events: none; }
.berechnung.sichtbar { opacity: 1; transform: translate(-50%, 0); }
.ohne3d { position: absolute; inset: 0; margin: auto; height: fit-content; max-width: 320px; text-align: center; color: var(--grau); font-size: 14px; }
.eckdaten { top: 16px; left: 16px; background: rgba(255, 255, 255, .94); border-radius: var(--radius); padding: 10px 14px; max-width: min(520px, 70%); box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.eckdaten strong { display: block; font-weight: 500; font-size: 14px; }
.eckdaten span { color: var(--grau); font-size: 13px; }
.speichern { top: 16px; right: 16px; background: #fff; border: 0; border-radius: 20px; padding: 7px 14px; font-size: 13px; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.prototyp { top: 56px; right: 16px; background: var(--dunkel); color: #fff; font-size: 11px; letter-spacing: .04em; padding: 4px 10px; border-radius: 12px; text-transform: uppercase; }
.werkzeuge { left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.werkzeuge button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.werkzeuge button:hover { background: #fff; }
.werkzeuge svg { width: 20px; height: 20px; fill: none; stroke: var(--dunkel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ansichten { right: 16px; bottom: 16px; display: flex; gap: 6px; }
.ansichten button { border: 0; background: rgba(255, 255, 255, .94); border-radius: 16px; padding: 6px 12px; font-size: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.ansichten button:hover { background: #fff; }
.ansichten button[hidden] { display: none; }
.bedienhinweis { bottom: 14px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; color: rgba(42, 43, 51, .7); background: rgba(255, 255, 255, .6); padding: 3px 10px; border-radius: 10px; }

/* ---------- Seitenleiste ---------- */
.seite { min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--grund); border-left: 1px solid var(--linie); }
.kopf { display: flex; align-items: center; gap: 14px; padding: 14px 20px 10px; background: #fff; }
.kopf .logo { height: 34px; }
.kopf strong { display: block; font-weight: 500; font-size: 15px; }
.kopf small { color: var(--grau); font-size: 12px; }
.schritte { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 8px 16px 10px; background: #fff; border-bottom: 1px solid var(--linie); }
.schritte button { border: 0; background: none; padding: 4px 6px; font-size: 13px; color: var(--grau); display: flex; align-items: center; gap: 6px; border-radius: 6px; }
.schritte button span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--weich); font-size: 11px; font-weight: 500; }
.schritte button.erledigt span { background: #d9dde2; color: var(--dunkel); }
.schritte button.aktiv { color: var(--schwarz); font-weight: 500; }
.schritte button.aktiv span { background: var(--dunkel); color: #fff; }
.modus { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.modus > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.modus small { color: var(--grau); font-size: 12px; }
.modus .seg button { padding: 5px 14px; }
.panel { flex: 1; overflow-y: auto; padding: 4px 16px 20px; min-height: 0; }
.panel > h2 { font-size: 24px; padding: 6px 4px 12px; }

.karte { background: var(--flaeche); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; border: 1px solid var(--linie); }
.karte header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.karte h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--grau); }
.karte .rechts { font-size: 13px; color: var(--grau); }
.hinweis { color: var(--grau); font-size: 13px; margin: 10px 0 0; }
.unterlabel { font-size: 13px; margin: 14px 0 6px; }

.seg { display: inline-flex; background: var(--weich); border-radius: 22px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 20px; font-size: 14px; }
.seg button.aktiv { background: var(--dunkel); color: #fff; }

.kacheln { display: grid; gap: 8px; }
.kacheln.drei { grid-template-columns: repeat(3, 1fr); }
.kacheln.zwei { grid-template-columns: repeat(2, 1fr); }
.kachel { border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 10px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.kachel strong { font-weight: 500; font-size: 14px; }
.kachel small { color: var(--grau); font-size: 12px; line-height: 1.3; }
.kachel.aktiv { border-color: var(--dunkel); box-shadow: inset 0 0 0 1px var(--dunkel); }
.kachel:hover { border-color: #bfc4ca; }
.gr-icon { width: 100%; height: 44px; margin-bottom: 4px; }
.gr-wand { stroke: var(--grau); stroke-width: 4; }
.gr-platte { fill: var(--weich); }
.gr-linie { fill: none; stroke: var(--rot); stroke-width: 3.5; stroke-linejoin: round; }
.skizze { width: 100%; height: 86px; background: var(--grund); border-radius: 6px; margin-bottom: 6px; }
.sk-bau { fill: #d6d2ca; }
.sk-boden { stroke: #b5b0a6; stroke-width: 2; }
.sk-fenster { fill: #fff; stroke: #b5b0a6; stroke-width: 1; }
.sk-fensterlinie { stroke: #b5b0a6; stroke-width: 1; }
.sk-platte { fill: var(--dunkel); }
.sk-uk { fill: var(--grau); }
.sk-gurt { fill: #fff; stroke: var(--grau); stroke-width: 1; }
.sk-pfosten { stroke: var(--grau); stroke-width: 2; }

.regler { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin: 6px 0 10px; }
.regler label { grid-column: 1 / -1; font-size: 13px; }
.regler input[type=range] { width: 100%; accent-color: var(--dunkel); }
.zahl { display: flex; align-items: center; gap: 4px; }
.zahl button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--linie); background: #fff; }
.zahl input { width: 62px; text-align: center; border: 1px solid var(--linie); border-radius: 6px; padding: 5px; font: inherit; }
.zahl span { font-size: 13px; color: var(--grau); }

.schalter { display: flex; align-items: center; gap: 12px; margin: 10px 0; cursor: pointer; }
.schalter input { display: none; }
.schalter .knopf { width: 40px; height: 22px; border-radius: 11px; background: #d4d1ca; position: relative; flex: none; transition: .2s; }
.schalter .knopf::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.schalter input:checked + .knopf { background: var(--dunkel); }
.schalter input:checked + .knopf::after { left: 21px; }
.schalter .txt { font-size: 14px; }
.schalter small { display: block; color: var(--grau); font-size: 12px; }

.designbild { margin: 0 0 12px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--weich); }
.designbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.designbild.glatt { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.designinfo { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.designinfo .gross { display: block; font-size: 22px; font-weight: 300; }
.designinfo .grau { color: var(--grau); font-size: 12px; }
.designinfo dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 13px; }
.designinfo dt { color: var(--grau); }
.designinfo dd { margin: 0; }
.stufe { letter-spacing: 1px; font-size: 10px; color: var(--dunkel); }
.stufe i { color: #d4d1ca; font-style: normal; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { border: 1px solid var(--linie); background: #fff; border-radius: 16px; padding: 4px 12px; font-size: 13px; }
.chips button.aktiv { background: var(--dunkel); color: #fff; border-color: var(--dunkel); }
.designraster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.designkarte { position: relative; border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 6px; text-align: left; }
.designkarte .muster { display: block; width: 100%; aspect-ratio: 8 / 5; border-radius: 5px; background: var(--weich); margin-bottom: 6px; object-fit: cover; }
.designkarte strong { display: block; font-weight: 500; font-size: 13px; }
.designkarte small { color: var(--grau); font-size: 11px; }
.designkarte .verlauf { position: absolute; top: 10px; left: 10px; font-style: normal; font-size: 10px; background: rgba(255, 255, 255, .9); color: var(--schwarz); padding: 1px 7px; border-radius: 8px; font-weight: 500; }
.designkarte em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10px; background: var(--gold); color: var(--schwarz); padding: 1px 7px; border-radius: 8px; font-weight: 500; }
.designkarte.aktiv { border-color: var(--dunkel); box-shadow: inset 0 0 0 1px var(--dunkel); }

.farbraster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.farbe { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 6px; }
.farbe span { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.farbe span.metallic { background-image: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%) !important; background-blend-mode: overlay; }
.farbe strong { font-weight: 500; font-size: 13px; }
.farbe small { color: var(--grau); font-size: 11px; }
.farbe.aktiv { border-color: var(--dunkel); box-shadow: inset 0 0 0 1px var(--dunkel); }
.fassaden { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fassaden button { border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 6px 4px 5px; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fassaden button span { width: 100%; height: 26px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.fassaden button.aktiv { border-color: var(--dunkel); box-shadow: inset 0 0 0 1px var(--dunkel); }
.karte.intern { border-color: var(--gold); background: #fffaf0; }
.karte.intern h3 { color: #8a6420; }
.knopf-link { display: inline-block; border: 1px solid var(--gold); background: #fff; border-radius: 20px; padding: 7px 14px; font-size: 13px; color: var(--schwarz); text-decoration: none; }
.karte.intern .tabelle { font-size: 12px; }
.karte.intern .tabelle td, .karte.intern .tabelle th { padding-right: 8px; }
.karte.intern .tabelle td:nth-child(n+4) { text-align: right; white-space: nowrap; }
.karte.intern .tabelle th:nth-child(n+4) { text-align: right; }
.bruag-badge { display: inline-block; margin-left: 8px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--schwarz); padding: 2px 8px; border-radius: 8px; vertical-align: middle; }
.liste { display: flex; flex-direction: column; gap: 6px; }
.zeile { display: flex; align-items: center; gap: 10px; border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 8px 10px; text-align: left; font-size: 14px; }
.zeile.aktiv { border-color: var(--dunkel); box-shadow: inset 0 0 0 1px var(--dunkel); }
.punkt { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabelle th { text-align: left; font-weight: 500; color: var(--grau); padding: 4px 6px 6px 0; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 6px 6px 6px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle.daten td:first-child { color: var(--grau); width: 38%; }

.haken { list-style: none; margin: 0; padding: 0; }
.haken li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0 7px 26px; border-bottom: 1px solid var(--linie); position: relative; font-size: 14px; }
.haken li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2px solid var(--dunkel); border-bottom: 2px solid var(--dunkel); transform: rotate(-45deg); }
.haken b { font-weight: 500; white-space: nowrap; }
.lieferzeit { margin: 0; font-size: 16px; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.knoepfe button { border: 1px solid var(--linie); background: #fff; border-radius: 20px; padding: 7px 14px; font-size: 13px; }
.knoepfe button:hover { border-color: var(--dunkel); }

.kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.kennzahlen div { background: var(--grund); border-radius: 8px; padding: 8px; text-align: center; }
.kennzahlen b { display: block; font-weight: 500; font-size: 15px; }
.kennzahlen span { font-size: 11px; color: var(--grau); }
.karte h4 { font-size: 13px; font-weight: 500; margin: 12px 0 4px; }
.positionen { list-style: none; margin: 0; padding: 0; }
.positionen li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.positionen li small { display: block; color: var(--grau); font-size: 12px; }
.positionen b { font-weight: 500; white-space: nowrap; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-top: 12px; }
.total b { white-space: nowrap; }
.total span { font-weight: 500; }
.total b { font-size: 24px; font-weight: 300; }
.mwst { text-align: right; color: var(--grau); font-size: 12px; margin: 2px 0 0; }
.platzhalter { font-size: 12px; background: #fbf3e4; border-radius: 6px; padding: 6px 10px; margin: 10px 0 0; }

.elementplan { width: 100%; height: auto; }
.pl-titel { font-size: 11px; fill: var(--schwarz); font-weight: 500; }
.pl-platte { fill: #96999c; stroke: #6f7377; stroke-width: .5; }
.pl-loch { fill: #fff; stroke: none; }
.pl-mass { font-size: 9px; fill: var(--grau); }
.pl-linie { stroke: var(--grau); stroke-width: .6; }
.pl-hinweis { font-size: 12px; color: var(--grau); margin: 6px 0 0; }

.abschluss { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; }
.schritte-nachher { margin: 0 0 14px; padding-left: 18px; font-size: 13px; color: var(--schwarz); }
.schritte-nachher li { margin: 3px 0; }
.cta { width: 100%; background: var(--rot); color: #fff; border: 0; border-radius: 24px; padding: 13px 18px; font-size: 15px; font-weight: 500; }
.cta:hover { background: #b10016; }
.kontakt { display: flex; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--dunkel); color: #fff; display: grid; place-items: center; font-weight: 500; flex: none; }
.kontakt strong { display: block; font-weight: 500; font-size: 14px; }
.kontakt small { color: var(--grau); font-size: 12px; }
.kontaktlinks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; }
.kontaktlinks a { color: var(--dunkel); }

/* ---------- Preisleiste ---------- */
.leiste { background: #fff; border-top: 1px solid var(--linie); padding: 12px 20px 14px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .04); }
.preiszeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.preiszeile small { display: block; color: var(--grau); font-size: 12px; }
.preiszeile b { display: block; font-size: 26px; font-weight: 300; line-height: 1.15; }
.pos-toggle { border: 1px solid var(--linie); background: #fff; border-radius: 16px; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.positionen.kompakt { max-height: 180px; overflow-y: auto; margin-top: 8px; }
.positionen.kompakt li { font-size: 12px; padding: 4px 0; }
.navi { display: flex; gap: 8px; margin-top: 10px; }
.navi button { border-radius: 22px; padding: 11px 16px; font-size: 14px; }
.zurueck { background: #fff; border: 1px solid var(--linie); }
.zurueck:disabled { opacity: .4; cursor: default; }
.weiter { flex: 1; background: var(--dunkel); color: #fff; border: 0; font-weight: 500; }
.weiter.cta { background: var(--rot); }

/* ---------- Dialog, Meldung ---------- */
.dialog { border: 0; border-radius: 14px; padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialog::backdrop { background: rgba(26, 26, 26, .45); }
.dialog form { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.dialog h2 { font-size: 22px; }
.dialog p { margin: 0; font-size: 14px; color: var(--grau); }
.dialog label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.dialog input, .dialog textarea { font: inherit; border: 1px solid var(--linie); border-radius: 6px; padding: 8px 10px; }
.dialog .klein { font-size: 12px; }
.dialog .knoepfe { justify-content: flex-end; margin-top: 6px; }
.dialog .knoepfe .cta { width: auto; padding: 9px 18px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--dunkel); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 20; }
.toast.sichtbar { opacity: 1; transform: translate(-50%, 0); }
.offerte { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 44% minmax(0, 1fr); height: 100%; }
  .seite { border-left: 0; border-top: 1px solid var(--linie); min-height: 0; }
  .kopf { display: none; }
  .schritte { flex-wrap: nowrap; overflow-x: auto; }
  .schritte button { white-space: nowrap; }
  .eckdaten { max-width: calc(100% - 130px); padding: 7px 10px; top: 10px; left: 10px; }
  .eckdaten strong { font-size: 13px; }
  .eckdaten span { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .speichern { display: none; }   /* Link kopieren gibt es in der Übersicht */
  .prototyp { display: none; }   /* auf dem Handy steht der Hinweis in der Preisleiste */
  .werkzeuge [data-aktion=vollbild] { display: none; }
  .ansichten { right: 10px; bottom: 10px; gap: 4px; }
  .ansichten button { padding: 5px 9px; font-size: 11px; }
  .werkzeuge { flex-direction: row; left: 10px; bottom: 10px; gap: 6px; }
  .werkzeuge button { width: 34px; height: 34px; }
  .modus { padding: 8px 16px; }
  .modus small { display: none; }
  .modus .seg { flex-wrap: nowrap; }
  .panel > h2 { font-size: 20px; padding: 4px 4px 8px; }
  .leiste { padding: 8px 16px 10px; }
  .preiszeile small:last-of-type { display: none; }
  .navi { margin-top: 6px; }
  .navi button { padding: 9px 14px; }
  .bedienhinweis { display: none; }
  .kacheln.drei { grid-template-columns: repeat(3, 1fr); }
  .kennzahlen { grid-template-columns: repeat(2, 1fr); }
  .preiszeile b { font-size: 22px; }
}

/* ---------- Druck: Offerte im Layout der Zoho-Angebotsvorlage v7 ---------- */
@media print {
  @page { size: A4; margin: 12mm 10mm 8mm 10mm; }
  body { background: #fff; }
  .app, .dialog, .toast { display: none !important; }
  .offerte { display: block; }
  .bruag-quote { font-family: "Neue Frutiger World", "Frutiger", Arial, sans-serif; color: #1a1a1a; font-size: 10pt; line-height: 1.5; }
  .bq-head { display: table; width: 100%; margin-bottom: 18px; }
  .bq-head-left { display: table-cell; vertical-align: top; width: 40%; }
  .bq-logo { height: 34px; }
  .bq-claim { margin-top: 6px; font-size: 7.5pt; color: #677686; letter-spacing: .06em; }
  .bq-head-right { display: table-cell; vertical-align: top; text-align: right; font-size: 8.5pt; color: #677686; line-height: 1.5; }
  .bq-head-right .brand { color: #1a1a1a; font-weight: 500; margin-bottom: 2px; }
  .bq-title { display: table; width: 100%; padding: 12px 0 10px; border-top: 1px solid #d5d5d8; border-bottom: 1px solid #d5d5d8; margin-bottom: 14px; }
  .bq-title-l { display: table-cell; vertical-align: baseline; }
  .bq-title-l h1 { font-size: 20pt; font-weight: 400; margin: 0; color: #1a1a1a; }
  .bq-title-l h1 .num { color: #677686; font-weight: 300; margin-left: 8px; }
  .bq-title-r { display: table-cell; vertical-align: baseline; text-align: right; font-size: 8.5pt; color: #677686; }
  .bq-title-r .date { color: #1a1a1a; margin-bottom: 2px; }
  .bq-address { display: table; width: 100%; margin-bottom: 18px; }
  .bq-address-l { display: table-cell; vertical-align: top; width: 50%; padding-right: 18px; }
  .bq-address-r { display: table-cell; vertical-align: top; width: 50%; padding-left: 18px; }
  .bq-recipient { padding: 12px 15px; background: #f5f6f7; border-left: 4px solid #2a2b33; margin-bottom: 12px; }
  .bq-recipient .company { font-size: 12pt; font-weight: 600; margin-bottom: 3px; }
  .bq-recipient-details { padding-left: 4px; font-size: 9pt; }
  .bq-recipient-details table, .bq-meta table { border-collapse: collapse; }
  .bq-recipient-details td { padding: 2px 14px 2px 0; vertical-align: top; }
  .bq-meta table { font-size: 9pt; }
  .bq-meta td { padding: 3px 16px 3px 0; vertical-align: top; }
  .bq-recipient-details .lbl, .bq-meta .lbl { color: #677686; }
  .bq-project { padding: 9px 13px; background: #f5f6f7; border-left: 3px solid #2a2b33; margin-bottom: 14px; font-size: 9.5pt; }
  .bq-project .lbl, .bq-cond .lbl { text-transform: uppercase; font-size: 7pt; color: #677686; letter-spacing: .1em; margin-bottom: 2px; }
  .bq-project .val { font-weight: 500; }
  .bq-bild { margin: 0 0 14px; }
  .bq-bild img { width: 100%; max-height: 85mm; object-fit: cover; }
  .bq-deckblatt { margin-top: 10mm; }
  .bq-deckblatt img { max-height: 150mm; }
  .bq-seite2 { page-break-before: always; }
  .bq-section { font-size: 9.5pt; margin-bottom: 14px; }
  .bq-section h2, .bq-plan h2 { font-size: 11pt; font-weight: 500; margin: 0 0 8px; }
  .bq-section ul { margin: 5px 0; padding-left: 18px; }
  .bq-section li { margin-bottom: 3px; }
  .bq-fineprint { font-size: 8pt; color: #677686; line-height: 1.4; padding-top: 4px; border-top: 1px dotted #d5d5d8; margin-top: 7px; }
  .bq-items { width: 100%; border-collapse: collapse; font-size: 9pt; margin-bottom: 12px; page-break-inside: auto; }
  .bq-items th { text-align: left; padding: 7px 6px; border-bottom: 1.5px solid #2a2b33; color: #2a2b33; font-weight: 500; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .05em; }
  .bq-items th.r, .bq-items td.r, .bq-summe td.r { text-align: right; }
  .bq-items td { padding: 7px 6px; border-bottom: 1px solid #d5d5d8; vertical-align: top; }
  .bq-items td.pos { color: #677686; width: 30px; }
  .bq-items .it-title { font-weight: 600; font-size: 9.5pt; margin-bottom: 3px; }
  .bq-items .it-desc { font-size: 8.5pt; line-height: 1.4; }
  .bq-summe { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: 10pt; }
  .bq-summe td { padding: 5px 0; }
  .bq-summe td:first-child { width: 50%; }
  .bq-summe .lbl { color: #677686; text-align: right; padding-right: 30px; }
  .bq-summe .bq-total td { padding-top: 9px; border-top: 1.5px solid #2a2b33; font-weight: 600; font-size: 11pt; color: #1a1a1a; }
  .bq-summe .bq-total td:first-child { border-top: 0; }
  .bq-summe .bq-total .lbl { color: #1a1a1a; }
  .bq-link { font-size: 7pt; color: #677686; word-break: break-all; margin-top: 8px; }
  .bq-footer-l { width: 60%; }
  .bq-cond { display: table; width: 100%; padding: 14px 16px; background: #f5f6f7; margin-bottom: 22px; font-size: 9.5pt; box-sizing: border-box; }
  .bq-cond-l, .bq-cond-r { display: table-cell; vertical-align: top; width: 50%; }
  .bq-cond-r { padding-left: 32px; }
  .bq-sign { font-size: 9.5pt; margin-bottom: 22px; page-break-inside: avoid; }
  .bq-sign .company { font-weight: 500; }
  .bq-legal { font-size: 9pt; margin-bottom: 18px; }
  .bq-legal p { margin: 0 0 7px; page-break-inside: avoid; }
  .bq-legal strong { font-weight: 600; color: #2a2b33; }
  .bq-plan { page-break-before: always; }
  .bq-plan .elementplan { width: 100%; max-height: 200mm; }
  .bq-footer { display: table; width: 100%; border-top: 1px solid #d5d5d8; padding-top: 9px; margin-top: 16px; font-size: 7.5pt; color: #677686; line-height: 1.4; }
  .bq-footer-l, .bq-footer-r { display: table-cell; vertical-align: bottom; }
  .bq-footer-r { text-align: right; max-width: 60%; word-break: break-all; }
  .bq-footer strong { color: #1a1a1a; font-weight: 500; }
  .intern { page-break-inside: avoid; font-size: 8.5pt; margin-bottom: 16px; }
}

/* ---------- Schrittleiste deutlich als Bedienelement (29.09.2026) ---------- */
.schritte { gap: 6px; padding: 10px 16px 12px; background: var(--grund); }
.schritte button { background: #fff; border: 1px solid var(--linie); padding: 6px 10px 6px 6px; font-size: 13px; color: var(--dunkel); border-radius: 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.schritte button:hover { border-color: var(--dunkel); }
.schritte button span { background: var(--weich); color: var(--dunkel); }
.schritte button.erledigt { border-color: #cfd4da; }
.schritte button.erledigt span { background: var(--dunkel); color: #fff; }
.schritte button.aktiv { background: var(--dunkel); border-color: var(--dunkel); color: #fff; font-weight: 500; }
.schritte button.aktiv span { background: #fff; color: var(--dunkel); }

/* ---------- Balkontypen ---------- */
.typen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.typen button { border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 8px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 96px; cursor: pointer; }
.typen button small { color: var(--grau); font-size: 12px; }
.typen button.aktiv { border-color: var(--dunkel); box-shadow: inset 0 0 0 1px var(--dunkel); }
.typen button.neu { justify-content: center; color: var(--dunkel); border-style: dashed; }
button.link { border: 0; background: none; color: var(--grau); text-decoration: underline; padding: 6px 0 0; font-size: 13px; cursor: pointer; }

/* ---------- Info aufklappbar ---------- */
details.info { margin-top: 10px; border-top: 1px solid var(--linie); padding-top: 8px; }
details.info summary { cursor: pointer; font-size: 14px; color: var(--dunkel); }
details.info ul { margin: 8px 0; padding-left: 18px; font-size: 13px; color: var(--dunkel); }
details.info a { font-size: 13px; color: var(--dunkel); }
.tabelle.masse td:not(:first-child), .tabelle.masse th:not(:first-child) { text-align: right; white-space: nowrap; }
.tabelle.masse td:last-child { white-space: normal; }

/* ---------- Balkontypen als Karten (29.09.2026) ---------- */
.typkarte { border-color: var(--dunkel); box-shadow: inset 0 0 0 1px var(--dunkel); }
.typkarte .kacheln { margin: 12px 0 4px; }
.typzeile { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.typzeile:hover { border-color: var(--dunkel); }
.typzeile .nr { width: 26px; height: 26px; border-radius: 50%; background: var(--weich); display: grid; place-items: center; font-size: 12px; font-weight: 500; flex: none; }
.typzeile > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.typzeile small { color: var(--grau); font-size: 12px; }
.typzeile .bearbeiten { font-size: 12px; color: var(--dunkel); text-decoration: underline; }
.typneu { width: 100%; border: 1px dashed var(--grau); background: transparent; border-radius: var(--radius); padding: 12px; margin-bottom: 12px; color: var(--dunkel); font: inherit; font-size: 14px; cursor: pointer; }
.typneu:hover { border-color: var(--dunkel); background: #fff; }
.kacheln.kompakt .kachel { padding: 8px; }
.kacheln.kompakt .gr-icon { height: 30px; }
.zwischentitel { font-size: 13px; font-weight: 500; margin: 14px 0 6px; color: var(--schwarz); }
.zwischentitel:first-child { margin-top: 0; }
.tabelle.masse { width: 100%; table-layout: fixed; }
.tabelle.masse th:first-child, .tabelle.masse td:first-child { width: 34%; }
.tabelle.masse td:last-child { white-space: normal; word-break: break-word; }

/* ---------- Fotomontage ---------- */
.viewer.fotomodus { background-size: cover; background-position: center; background-repeat: no-repeat; }
.knopf-datei { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--dunkel); border-radius: 18px; background: #fff; cursor: pointer; font-size: 14px; }
.knopf-datei:hover { background: var(--weich); }

/* ---------- Retusche, Dialoge (29.09.2026) ---------- */
.retuscherahmen { position: absolute; border: 1.5px dashed #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); pointer-events: none; z-index: 5; }
.dialog .zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog select { font: inherit; padding: 7px; border: 1px solid var(--linie); border-radius: 6px; }
.dialog .bestaetigung { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.dialog .bestaetigung input { width: auto; margin-top: 3px; }

/* ---------- Testversion (claude.ai): Rückmeldung und Offerte auf dem Bildschirm ---------- */
body.test .speichern { display: none; }
.rueckmeldung-knopf { position: absolute; z-index: 3; left: 50%; top: 16px; transform: translateX(-50%); background: var(--schwarz); color: #fff; border: 0; border-radius: 20px; padding: 8px 16px; font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.rueckmeldung-knopf:focus-visible { outline: 2px solid var(--schwarz); outline-offset: 3px; }
.rm-note { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rm-note legend { font-size: 13px; margin-bottom: 4px; padding: 0; }
.rm-note label { flex-direction: row !important; }
.rm-note input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rm-note span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--linie); border-radius: 8px; cursor: pointer; font-size: 15px; }
.rm-note input:checked + span { background: var(--schwarz); color: #fff; border-color: var(--schwarz); }
.rm-note input:focus-visible + span { outline: 2px solid var(--schwarz); outline-offset: 2px; }
.rm-note small { flex-basis: 100%; font-size: 12px; color: var(--grau); }
.dialog select { width: 100%; }
.rm-ausweich { display: flex; flex-direction: column; gap: 8px; background: #f4f4f2; border-radius: 8px; padding: 12px; }
.rm-ausweich textarea { font-size: 12px; }
.rm-adresse { user-select: all; }
.offerte-ansicht { position: fixed; inset: 0; z-index: 30; background: rgba(26, 26, 26, .55); overflow: auto; padding: 0 16px 32px; }
.offerte-leiste { position: sticky; top: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; max-width: 820px; margin: 0 auto; padding: 12px 0; color: #fff; }
.offerte-leiste span { font-size: 13px; opacity: .8; flex: 1; min-width: 0; }
.offerte-leiste button { background: #fff; color: var(--schwarz); border: 0; border-radius: 20px; padding: 7px 16px; font: inherit; font-size: 13px; cursor: pointer; }
.offerte-blatt { max-width: 900px; margin: 0 auto; background: #fff; color: #1a1a1a; padding: 22px 24px; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
@media (max-width: 900px) { .rueckmeldung-knopf { top: auto; bottom: 54px; } .offerte-blatt { padding: 18px 16px; } }

/* ---------- Leistungen als Ablauf, Kundenangaben ---------- */
.prozess { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.prozess li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.prozess li:last-child { border-bottom: 0; }
.prozess .schalter { margin: 0; align-items: flex-start; }
.prozess .haken-fix { width: 40px; height: 22px; flex: none; position: relative; }
.prozess .haken-fix::after { content: ''; position: absolute; left: 13px; top: 4px; width: 12px; height: 7px; border-left: 2px solid var(--dunkel); border-bottom: 2px solid var(--dunkel); transform: rotate(-45deg); }
.prozess .txt { font-size: 14px; }
.prozess .txt small { display: block; color: var(--grau); font-size: 12px; }
.angaben { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.angaben label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--grau); }
.angaben label:first-child { grid-column: 1 / -1; }
.angaben input { font: inherit; color: var(--schwarz); border: 1px solid var(--linie); border-radius: 6px; padding: 7px 9px; }
.angaben input:invalid { border-color: #d9a3a3; }

/* ---------- Massfreigabe hervorgehoben, drei Bestellwege ---------- */
.karte.freigabe { border: 2px solid var(--gold); background: #fffaf0; }
.karte.freigabe.an { border-color: var(--dunkel); background: #fff; }
.karte.freigabe .schalter .txt { font-size: 15px; font-weight: 500; }
.karte.freigabe .schalter small { font-weight: 350; }
.wege { display: flex; flex-direction: column; gap: 8px; }
.wege .cta.nebenweg { background: #fff; color: var(--schwarz); border: 1px solid var(--dunkel); font-weight: 400; }
.wege .cta.nebenweg:hover { background: var(--weich); }
.wege .cta:disabled { opacity: .45; cursor: not-allowed; }

/* Leistung, die nicht abwählbar ist (Massaufnahme bei Montage) */
.schalter.fest { opacity: .75; cursor: default; }
.schalter.fest input:disabled + .knopf { filter: none; }

/* Elementteilung: Plattenbreiten als Reihe unter der Zeile statt umgebrochen in einer Spalte (Manuel 15.10.2026) */
.tabelle.masse tr.mit-teilung td { border-bottom: 0; padding-bottom: 2px; }
.tabelle.masse tr.teilung td { text-align: left; white-space: normal; padding-top: 0; }
.tabelle.masse .teilung-label { font-size: 11px; color: var(--grau); margin-right: 6px; }
.tabelle.masse .pille { display: inline-block; font-size: 12px; padding: 1px 7px; margin: 2px 4px 2px 0; border-radius: 10px; background: var(--grund, #f4f2ee); border: 1px solid var(--linie); white-space: nowrap; }

/* Eine Wahl Montage: zwei Textkacheln (15.10.2026) */
.wahlkacheln .kachel { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 14px; gap: 6px; }
.wahlkacheln .kachel strong { font-size: 15px; }
.wahlkacheln .kachel small { font-size: 12.5px; line-height: 1.4; color: var(--grau); }
.wahlkacheln .kachel.aktiv small { color: inherit; }

/* EINZELKOSTEN_INTERN: Karte zum Durchspielen von Varianten, wird vor Go-live entfernt (15.10.2026) */
.karte.einzelkosten { border: 1px dashed var(--grau); background: #fbfbf9; }
.karte.einzelkosten summary { cursor: pointer; font-size: 13px; color: var(--grau); margin-bottom: 8px; }
.karte.einzelkosten .tabelle { font-size: 12px; margin-bottom: 10px; }
.karte.einzelkosten .tabelle td, .karte.einzelkosten .tabelle th { padding: 3px 6px 3px 0; }
.karte.einzelkosten .tabelle td.r, .karte.einzelkosten .tabelle th.r { text-align: right; white-space: nowrap; }
.karte.einzelkosten .tabelle small { display: block; color: var(--grau); font-size: 11px; }
.karte.einzelkosten tr.gruppe td { font-weight: 500; border-top: 1px solid var(--dunkel); }
.karte.einzelkosten .zwischentitel { margin: 10px 0 4px; }

/* Preisgruppen und Mehrpreise wie im Autokonfigurator (16.10.2026) */
.preisgruppe { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 10px 0 2px; padding-bottom: 4px; border-bottom: 1px solid var(--linie); }
.preisgruppe:first-child { margin-top: 0; }
.preisgruppe strong { font-size: 13px; font-weight: 500; }
.preisgruppe span { font-size: 12px; color: var(--grau); text-align: right; }
.farbraster + .preisgruppe { margin-top: 14px; }
.mehr { display: block; font-size: 12px; font-weight: 500; color: var(--schwarz); margin-top: 2px; }
.mehr.standard { color: var(--grau); font-weight: 400; }
.designkarte .mehr, .farbe .mehr { font-variant-numeric: tabular-nums; }
.farbe .mehr { grid-column: 2; }

/* Preiskategorien farblich (16.10.2026): 0 glatt, 2 Basis, 3 bis 5 aufsteigend */
:root { --kat0: #8a8f94; --kat1: #9aa3ad; --kat2: #2a2b33; --kat3: #4f6d8f; --kat4: #7a5c3e; --kat5: #a0802a; }
.katpunkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--kat2); vertical-align: 1px; }
.preisgruppe.kat0 .katpunkt { background: var(--kat0); } .preisgruppe.kat1 .katpunkt { background: var(--kat1); } .preisgruppe.kat3 .katpunkt { background: var(--kat3); }
.preisgruppe.kat4 .katpunkt { background: var(--kat4); } .preisgruppe.kat5 .katpunkt { background: var(--kat5); }
.designkarte.kat0 { border-left: 3px solid var(--kat0); } .designkarte.kat2 { border-left: 3px solid var(--kat2); } .designkarte.kat3 { border-left: 3px solid var(--kat3); }
.designkarte.kat4 { border-left: 3px solid var(--kat4); } .designkarte.kat5 { border-left: 3px solid var(--kat5); } .designkarte.kat1 { border-left: 3px solid var(--kat1); }
.preisgruppe span.mehr, .mehr { font-weight: 600; color: var(--schwarz); }
.preisgruppe span.basis { font-weight: 500; color: var(--grau); }
.designkarte .mehr { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 10px; background: #f0eee9; font-size: 12px; }
.farbe .mehr { display: inline-block; padding: 1px 7px; border-radius: 10px; background: #f0eee9; font-size: 12px; }

/* Massaufnahme unter dem Konfigurationspreis einzeln ausgewiesen (Manuel 17.10.2026) */
.darin { font-size: 12px; color: var(--grau); text-align: right; margin-top: -4px; }

/* Impressum, Datenschutz, AGB im Fuss der Seitenleiste (Livegang 28.10.2026) */
.rechtliches { background: #fff; padding: 6px 20px 10px; font-size: 11px; color: var(--grau); display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
.rechtliches a { color: var(--grau); text-decoration: underline; }
.rechtliches span { flex-basis: 100%; }
@media print { .rechtliches { display: none; } }
