/* Bildschirmfüllender Konfigurator (Entwurf vom 16.10.2026). Nur auf dieser Seite geladen.
   Desktop: Seite füllt den Bildschirm, nur die Auswahlspalte scrollt. Handy unter 960 px: Tür oben, Auswahl darunter,
   Schrittleiste unten. Die Knopfstile (.opt, .farbfeld, .mini …) kommen aus style.css. */
body.konf-vollbild { --leiste: 76px; --spalte: 320px; --papier: #f6f4ef; --gold: #e2c38b;
  height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.konf-vollbild > main { flex: 1; min-height: 0; display: flex; }
.konf-vollbild .hauptmenue .knopf { display: none; }  /* Anfrage steht im Arbeitskopf, kein zweiter Knopf im Seitenkopf */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.konf-vollbild .arbeitsflaeche { flex: 1; min-height: 0; display: grid; gap: 0; padding: 0; align-items: stretch;
  grid-template-columns: var(--leiste) var(--spalte) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "kopf kopf kopf" "leiste spalte buehne"; }

/* Arbeitskopf: Kurzübersicht und Anfrage */
.arbeitskopf { grid-area: kopf; display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  padding: 8px 20px; border-bottom: 1px solid var(--linie); background: #fff; }
.arbeitskopf p#arbeitskopf-kurz { margin: 0; font-size: 14.5px; color: var(--navy); font-weight: 600; min-width: 0; }
.arbeitskopf .anfrage-grund { flex-basis: 100%; margin: 0; font-size: 13.5px; }
.arbeitskopf .kurz { display: none; }

/* Schrittleiste */
.schrittleiste { grid-area: leiste; display: flex; flex-direction: column; background: var(--navy); overflow-y: auto; scrollbar-width: none; }
.schrittleiste button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 8px 4px;
  border: 0; background: transparent; color: #d5dce6; font: 500 11px/1.2 var(--sans); text-align: center; cursor: pointer; }
.schrittleiste button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.schrittleiste svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.schrittleiste button[aria-current="step"] { background: var(--gold); color: var(--navy); font-weight: 700; }
.schrittleiste button.besucht:not([aria-current])::after { content: "✓"; position: absolute; top: 5px; right: 7px; font-size: 11px; color: var(--gold); }
.schrittleiste button[aria-disabled="true"] { opacity: .4; cursor: default; }
.schrittleiste button:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

/* Auswahlspalte */
.auswahlspalte { grid-area: spalte; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--papier);
  border-right: 1px solid var(--linie); padding: 18px 16px 24px; overflow-anchor: none; }
.auswahlspalte h2 { font-size: 21px; margin-bottom: 14px; }
.auswahlspalte .konf-schritt[hidden] { display: none; }
.auswahlspalte .gruppe legend { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
.auswahlspalte .farben { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px 4px; }
.auswahlspalte .farbfeld { width: auto; font-size: 12px; }
.auswahlspalte .griffe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auswahlspalte .opt.griffkarte img { height: 150px; }
.auswahlspalte .zusammenfassung { border: 0; padding: 0; background: none; }
.auswahlspalte .zusammenfassung ul { grid-template-columns: 1fr; }
.auswahlspalte .einheit input { width: 96px; }
.vorlaeufig { margin: 16px 0 0; padding: 8px 10px; font-size: 13px; color: #6b5527; background: #fbf3e3; border: 1px solid #efdcb6; border-radius: 6px; }

.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter button { min-height: 32px; padding: 0 12px; border-radius: 16px; border: 1.5px solid var(--linie); background: #fff; color: var(--navy);
  font: 500 13px var(--sans); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.modellraster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.opt.kachel { flex-direction: column; gap: 4px; padding: 0; min-height: 0; border: 0; background: none; font-size: 12.5px; color: var(--grau); }
.opt.kachel::before { display: none; }
.opt.kachel img { width: 100%; aspect-ratio: 1 / 2; object-fit: contain; background: #fff; border: 1.5px solid var(--linie); border-radius: 4px; }
.opt.kachel[aria-pressed="true"] { box-shadow: none; color: var(--navy); font-weight: 700; }
.opt.kachel[aria-pressed="true"] img { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.opt.kachel[hidden] { display: none; }
.drueckerkarten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt.drueckerkarte { flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; text-align: center; font-size: 13px; }
.opt.drueckerkarte::before { display: none; }
.drueckerbild svg { width: 92px; height: 78px; display: block; }
/* Übernahmen von haustueren.de (30.10.2026): gesperrte Optionen sichtbar (K05), Bildkarten für Verriegelung
   und Zutritt (K07), Übersichtszeilen als Sprung zum Schritt (K02), optionale Schritte (K06). */
.opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.opt[aria-disabled="true"]:hover { border-color: var(--linie); }
#schloss, #zutritt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt.bildkarte { flex: 1; min-width: 0; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; text-align: center; font-size: 13px; }
.opt.bildkarte::before { display: none; }
.opt.bildkarte img, .opt.bildkarte i { display: block; width: 100%; height: 80px; object-fit: cover; object-position: left center;
  border-radius: 4px; background: #eef0f2; }
#zutritt .opt.bildkarte img { object-position: center; }
.zusammenfassung .zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; width: 100%; padding: 5px 0; border: 0;
  border-bottom: 1px solid var(--linie); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.zusammenfassung .zeile small { margin-left: auto; font-size: 12.5px; color: var(--navy); text-decoration: underline; }
.zusammenfassung .zeile:hover small, .zusammenfassung .zeile:focus-visible small { text-decoration-thickness: 2px; }
.schrittleiste .optional { font-size: 10px; font-weight: 400; opacity: .75; }

/* Bühne */
.buehne { grid-area: buehne; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #e8e9e7; }
.buehne:focus { outline: none; }
.buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.buehne #kbild-gross { position: absolute; inset: 56px 0 72px; height: calc(100% - 128px); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.buehne .konf-ohne-3d { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); margin: 0; font-size: 13px; color: var(--grau);
  background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 5px; }
.ansicht-schalter { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; }
.ansicht-schalter .mini { border-radius: 20px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); border: 0; }
.ansicht-schalter .mini button { min-height: 36px; padding: 0 16px; border-left: 0; border-radius: 20px; font-size: 13.5px; }
/* Feste Fotoansicht: in der Leiste nur noch die Wahl des Hintergrundfotos. */
.buehne .vorschau-leiste { position: absolute; left: 14px; bottom: 38px; z-index: 2; margin: 0; padding: 6px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .88); gap: 6px 12px; }
.buehne .konf-hinweis.links { top: 64px; }
.schrittnavigation { position: absolute; right: 14px; bottom: 38px; z-index: 2; display: flex; gap: 8px; }
.schrittnavigation .knopf.zweit { background: #fff; }
.schrittnavigation .weiter { background: var(--navy); }
.rechtliches { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font-size: 12px; color: var(--grau); }
.rechtliches a { color: inherit; }

.vorschau-schalter { display: none; }
.detail-knopf { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 6px; background: #fff; }
.detail-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.detailansicht { width: min(1100px, calc(100vw - 32px)); max-width: none; height: min(900px, calc(100dvh - 32px)); max-height: none;
  padding: 18px; border: 1px solid var(--linie); border-radius: 8px; background: var(--papier); color: var(--navy); }
.detailansicht[open] { display: flex; flex-direction: column; gap: 12px; }
.detailansicht::backdrop { background: rgba(12, 26, 40, .8); }
.detail-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-kopf h2, .detailansicht p { margin: 0; }
.detail-kopf h2 { font-size: 22px; }
.detail-kopf form { margin: 0; }
.detail-zoom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-zoom input { flex: 1; min-width: 100px; max-width: 300px; min-height: 44px; accent-color: var(--navy); }
.detail-zoom output { min-width: 4ch; }
.detail-bildbereich { flex: 1; min-height: 0; overflow: auto; background: #e8e9e7; overscroll-behavior: contain; }
.detail-bildbereich canvas { display: block; height: auto; max-width: none; margin: 0 auto; }
.detail-bildbereich canvas[hidden] { display: none; }
.detail-bildbereich:focus-visible { outline: 2px solid var(--navy); outline-offset: -3px; }

/* Handy und schmale Tablets */
@media (max-width: 959px) {
  .konf-vollbild .arbeitsflaeche { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 40% minmax(0, 1fr) auto;
    grid-template-areas: "kopf" "buehne" "spalte" "leiste"; }
  .konf-vollbild .kopf-anfrage { display: none; }
  .arbeitskopf { padding: 6px 12px; flex-wrap: nowrap; }
  .arbeitskopf p#arbeitskopf-kurz { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .arbeitskopf .lang { display: none; }
  .arbeitskopf .kurz { display: inline; }
  .arbeitskopf .anfrage-grund { display: none; }
  .arbeitskopf { flex-wrap: wrap; }
  .arbeitskopf p#arbeitskopf-kurz { flex: 1; }
  .vorschau-schalter { display: block; flex-basis: 100%; min-height: 36px; padding: 4px 10px; }
  .konf-vollbild.vorschau-zu .arbeitsflaeche { grid-template-rows: auto 0 minmax(0, 1fr) auto; }
  .vorschau-zu .buehne, .vorschau-zu .buehne * { visibility: hidden !important; }
  .detail-knopf { top: 58px; right: 8px; min-height: 36px; padding: 4px 8px; }
  .detailansicht { padding: 12px; gap: 8px; }
  .detail-kopf h2 { font-size: 18px; }
  .schrittleiste { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .schrittleiste button { flex: none; width: 72px; min-height: 56px; }
  .auswahlspalte { border-right: 0; padding: 14px 14px 18px; }
  .buehne .konf-hinweis.links { display: none; }
  .buehne .vorschau-leiste { left: 8px; bottom: 6px; padding: 3px 6px; }
  .buehne .vorschau-titel { display: none; }
  .buehne .vorschau-leiste .mini button { min-height: 28px; font-size: 12px; }
  .rechtliches { left: auto; right: 10px; bottom: 6px; text-align: right; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .85); }
  .schrittnavigation { display: none; }  /* Handy: Schritte über die Leiste unten, die Tür bleibt frei */
  .buehne #kbild-gross { inset: 50px 0 56px; height: calc(100% - 106px); }
  .buehne .konf-ohne-3d { bottom: 58px; }
  .modellraster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auswahlspalte .griffe, .drueckerkarten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auswahlspalte .opt.griffkarte img { height: 120px; }
}
@media (max-width: 519px) {
  .modellraster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auswahlspalte .griffe, .drueckerkarten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .konf-vollbild * { transition: none !important; scroll-behavior: auto !important; } }
