/* variosmart – 3D-Konfigurator */

@font-face { font-family: 'PT Sans'; src: url('../assets/fonts/PTS55F-webfont.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Sans'; src: url('../assets/fonts/PTS56F-webfont.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'PT Sans'; src: url('../assets/fonts/PTS75F-webfont.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Sans'; src: url('../assets/fonts/PTS76F-webfont.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'PT Sans Narrow'; src: url('../assets/fonts/PTN57F-webfont.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Sans Narrow'; src: url('../assets/fonts/PTN77F-webfont.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --orange: #e47700;
  --orange-dunkel: #cf6b00;
  --text: #1c1d1f;
  --grau: #6b6f74;
  --hellgrau: #b4b7bb;
  --linie: #e6e7e9;
  --flaeche: #f6f6f5;
  --panel: 440px;
  --kopf: 68px;
  --schmal: 'PT Sans Narrow', 'Arial Narrow', Arial, sans-serif;
  --feder: cubic-bezier(.3, 1.5, .5, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font: 400 16px/1.5 'PT Sans', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
a { color: inherit; }

/* ---------------------------------------------------------------- Kopf */

.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--kopf);
  display: flex; align-items: center; gap: 44px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--linie);
}
.logo img { display: block; height: 40px; width: auto; }

/* Produktnavigation: Oberbegriff groß, Produktname klein darunter */
.produkte { display: flex; gap: 30px; height: 100%; }
.produkte > * { display: flex; flex-direction: column; justify-content: center; gap: 4px; position: relative; text-decoration: none; }
.produkte b { font: 700 15px/1 var(--schmal); letter-spacing: .08em; text-transform: uppercase; }
.produkte small { font: 400 12px/1 'PT Sans', Arial, sans-serif; color: var(--grau); }
.produkte span { color: var(--hellgrau); cursor: default; }
.produkte span small { color: var(--hellgrau); }
.produkte .aktiv::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); }
.produkte a:not(.aktiv):hover b { color: var(--orange); }

.produkte-klein { display: none; }
.produkte-klein > * { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border: 1px solid var(--linie); border-radius: 5px; text-decoration: none; }
.produkte-klein b { font: 700 13px/1.1 var(--schmal); letter-spacing: .05em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.produkte-klein small { font: 400 12px/1 'PT Sans', Arial, sans-serif; color: var(--grau); }
.produkte-klein span { color: var(--hellgrau); }
.produkte-klein .aktiv { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }

.kontakt { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.kontakt a {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 16px; border-radius: 5px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s;
}
.kontakt svg { fill: currentColor; width: 18px; height: 18px; }
.kontakt a:hover { background: var(--flaeche); }
.kontakt .k-tel svg { color: var(--orange); }
.kontakt .k-live { background: var(--text); color: #fff; padding: 0 18px 0 16px; }
.kontakt .k-live:hover { background: #000; }
.punkt { width: 9px; height: 9px; border-radius: 5px; background: #ff3b30; animation: puls 1.8s infinite; }
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* ---------------------------------------------------------------- Grundraster */

.konfigurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel);
  height: 100vh; height: 100dvh;
  padding-top: var(--kopf);
}

/* ---------------------------------------------------------------- Bühne */

.buehne {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f3f3f2 0%, #eceded 58%, #dfe1e3 100%);
}
.buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.buehne canvas:active { cursor: grabbing; }

.titel { position: absolute; left: 40px; bottom: 34px; pointer-events: none; }
.titel .dach { margin: 0; font: 700 12.5px/1 'PT Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.titel h1 { margin: 8px 0 6px; font: 700 clamp(46px, 5.4vw, 92px)/.88 var(--schmal); letter-spacing: -.01em; }
.titel .info { margin: 0; font-size: 15px; color: var(--grau); }

.ansichten {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 8px 24px -12px rgba(0, 0, 0, .18);
}
.ansichten button {
  border: 0; background: none; cursor: pointer;
  height: 34px; padding: 0 15px; border-radius: 5px;
  font: 700 13px/1 var(--schmal); letter-spacing: .075em; text-transform: uppercase; color: var(--grau);
  transition: background .25s, color .25s;
}
.ansichten button:hover { color: var(--text); }
.ansichten button.aktiv { background: var(--text); color: #fff; }

.werkzeuge { position: absolute; right: 24px; bottom: 30px; display: flex; flex-direction: column; gap: 10px; }
.werkzeuge button {
  position: relative;
  width: 48px; height: 48px; border-radius: 5px; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .3);
  transition: transform .3s var(--feder), background .2s, color .2s;
}
.werkzeuge button:hover { transform: scale(1.08); }
.werkzeuge button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.werkzeuge button span {
  position: absolute; right: 60px; top: 50%; transform: translate(6px, -50%);
  opacity: 0; pointer-events: none; white-space: nowrap;
  font: 700 12px/1 var(--schmal); letter-spacing: .1em; text-transform: uppercase;
  transition: opacity .2s, transform .2s;
}
.werkzeuge button:hover span { opacity: 1; transform: translate(0, -50%); }

.tipp {
  position: absolute; left: 50%; top: 72px; transform: translateX(-50%);
  margin: 0; font-size: 13px; color: var(--grau); pointer-events: none;
  transition: opacity .8s;
}
.tipp.weg { opacity: 0; }

.masse { position: absolute; inset: 0; pointer-events: none; }
/* ImpulsExpo: Bausteine einer Wand */
.mw-leiste { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.mw-chip {
  padding: 9px 12px; border: 1px solid var(--linie); border-left: 4px solid #7b7f84; border-radius: 5px; background: #fff; cursor: pointer;
  font: 700 14px/1 var(--schmal); letter-spacing: .03em; color: var(--text);
}
.mw-chip.ru { border-left-color: var(--orange); }
.mw-chip.fest { border-style: dashed; border-left-style: solid; }
.mw-chip[aria-pressed="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.mw-leer { font-size: 14px; color: var(--grau); }
.mw-aktionen { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 6px 0 12px; }
.mw-plus { padding: 9px 14px; border: 1px dashed var(--orange); border-radius: 5px; background: #fff; color: var(--orange); font: 700 14px/1 var(--schmal); letter-spacing: .075em; text-transform: uppercase; cursor: pointer; }
.mw-plus:hover { background: #fff3e6; }
.mw-optionen { border-top: 1px solid var(--linie); padding-top: 6px; }
.mw-optionen .segment { flex-wrap: wrap; }

/* Snackpoint: anklickbare Modulnummern in der 3D-Ansicht */
.sp-marken { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sp-marke {
  position: absolute; left: 0; top: 0; translate: -50% -50%; pointer-events: auto; cursor: pointer;
  width: 34px; height: 34px; border-radius: 5px; border: 2px solid var(--orange); background: #fff; color: var(--orange);
  font: 700 16px/1 var(--schmal); box-shadow: 0 4px 14px rgba(0, 0, 0, .14); transition: background .2s, color .2s, scale .2s;
}
.sp-marke:hover { scale: 1.12; }
.sp-marke.aktiv { background: var(--orange); color: #fff; }
.masse span {
  position: absolute; left: 0; top: 0;
  padding: 4px 9px 3px; border-radius: 3px;
  background: var(--orange); color: #fff;
  font: 700 13px/1 var(--schmal); letter-spacing: .05em; white-space: nowrap;
  box-shadow: 0 4px 12px -6px rgba(228, 119, 0, .8);
}
.masse span small { font: inherit; opacity: .75; margin-right: 5px; font-weight: 400; }

.toast {
  position: absolute; left: 50%; top: 76px; z-index: 6;
  max-width: min(520px, 86%);
  transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 5px;
  background: var(--text); color: #fff; font-size: 14px; line-height: 1.4; text-align: center;
  transition: opacity .3s, transform .3s;
}
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); }
.toast.fehler { background: #b3261e; }

/* Ladebild mit Slogan */
.laden {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: inherit;
  transition: opacity .9s .1s, visibility 0s 1s;
}
.laden.weg { opacity: 0; visibility: hidden; }
.laden p { margin: 0; display: flex; gap: .9em; font: 700 clamp(22px, 2.6vw, 34px)/1 var(--schmal); letter-spacing: .28em; text-transform: uppercase; }
.laden span { opacity: 0; transform: translateY(12px); animation: wort .7s var(--feder) forwards; }
.laden span:nth-child(2) { animation-delay: .25s; }
.laden span:nth-child(3) { animation-delay: .5s; color: var(--orange); }
@media (max-width: 600px) { .laden p { font-size: 18px; letter-spacing: .14em; gap: .6em; flex-wrap: wrap; justify-content: center; padding: 0 16px; } }
@keyframes wort { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Panel */

.panel {
  position: relative;
  overflow-y: auto; overscroll-behavior: contain;
  border-left: 1px solid var(--linie);
  background: #fff;
  scroll-behavior: smooth;
}
.einleitung { padding: 26px 34px 4px; }
.einleitung p { margin: 0; font-size: 15px; color: var(--grau); }
.einleitung .beta { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: #8a8e93; }
.einleitung .beta b {
  display: inline-block; margin-right: 6px; padding: 2px 6px 1px; border: 1px solid #c9ccd0; border-radius: 3px;
  font: 700 10.5px/1.2 var(--schmal); letter-spacing: .12em; text-transform: uppercase; color: #8a8e93; vertical-align: 1px;
}

.schritt { padding: 28px 34px 30px; border-bottom: 1px solid var(--linie); }
.schritt:last-child { border-bottom: 0; }
.schritt-kopf {
  display: flex; align-items: baseline; gap: 12px; width: 100%;
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
}
.nr { margin: 0; font: 700 14px/1 var(--schmal); letter-spacing: .08em; color: var(--orange); }
.schritt-kopf .name { font: 700 26px/1.05 var(--schmal); }
.schritt-kopf .wert { margin-left: auto; font-size: 14px; color: var(--grau); text-align: right; max-width: 48%; }
.schritt-kopf:hover .name { color: var(--orange-dunkel); }
.schritt-inhalt { margin-top: 18px; }
.hinweis { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--grau); }
.unter { margin: 22px 0 12px; font: 700 13px/1 var(--schmal); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }

/* Farbfelder */
.farben { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 16px 8px; }
.farbe {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 12.5px; line-height: 1.25; color: var(--grau); text-align: center;
}
.farbe i {
  width: 48px; height: 48px; border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 -6px 12px -6px rgba(0, 0, 0, .18);
  transition: transform .35s var(--feder), box-shadow .2s;
}
.farbe:hover i { transform: scale(1.1); }
.farbe[aria-pressed="true"] { color: var(--text); font-weight: 700; }
.farbe[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 0 0 3px #fff, 0 0 0 5px var(--orange); }

/* Ausschnitte: Draufsicht + Bausteine */
.plan { position: relative; margin: 0 0 6px; }
.plan svg { width: 100%; height: auto; display: block; overflow: visible; }
.plan .platte { fill: #f1f2f3; stroke: #c9cccf; stroke-width: 3; }
.plan .aufnahme { fill: #fff; stroke: #9a9ea3; stroke-width: 3; }
.plan .aufnahme-loch { fill: #3a3c40; }
.plan .aus { fill: #fff; stroke: var(--text); stroke-width: 3; transition: transform .45s cubic-bezier(.6, 0, .3, 1); }
.plan .aus.neu { animation: plopp .5s var(--feder); }
.plan text { font: 700 34px var(--schmal); fill: var(--text); text-anchor: middle; dominant-baseline: middle; }
.plan .seite { font: 400 24px 'PT Sans', sans-serif; fill: var(--hellgrau); letter-spacing: .12em; text-transform: uppercase; }
@keyframes plopp { from { transform: scale(.6); opacity: 0; } }
.plan .aus { transform-box: fill-box; transform-origin: center; }

.belegung { display: flex; align-items: center; gap: 12px; margin: 8px 0 20px; font-size: 13px; color: var(--grau); }
.belegung .balken { flex: 1; height: 4px; border-radius: 2px; background: var(--linie); overflow: hidden; }
.belegung .balken i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .45s cubic-bezier(.6, 0, .3, 1); }

.bausteine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linie); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin: 0 -34px; padding: 0; }
.baustein {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 8px 16px; border: 0; background: #fff; cursor: pointer;
  transition: background .2s;
}
.baustein svg { width: 56px; height: 56px; margin-bottom: 6px; transition: transform .35s var(--feder); }
.baustein b { font: 700 16px/1.1 var(--schmal); }
.baustein small { font-size: 12px; color: var(--grau); }
.baustein::after {
  content: '+'; position: absolute; top: 8px; right: 10px;
  font: 700 20px/1 var(--schmal); color: var(--orange);
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--feder);
}
.baustein:hover { background: #fff8f0; }
.baustein:hover svg { transform: translateY(-3px); }
.baustein:hover::after { opacity: 1; transform: none; }
.baustein[aria-disabled="true"] { cursor: not-allowed; }
.baustein[aria-disabled="true"] > * { opacity: .32; }
.baustein[aria-disabled="true"]::after { content: none; }

.gewaehlt { list-style: none; margin: 18px 0 0; padding: 0; }
.gewaehlt li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 14.5px; animation: rein .35s ease-out; }
.gewaehlt li:first-child { border-top: 1px solid var(--linie); }
.gewaehlt li b { font-weight: 700; }
.gewaehlt li small { color: var(--grau); }
.gewaehlt li .knoepfe { margin-left: auto; display: flex; gap: 2px; }
.gewaehlt li button { width: 30px; height: 30px; border: 0; border-radius: 5px; background: none; cursor: pointer; color: var(--grau); font-size: 16px; line-height: 1; }
.gewaehlt li button:hover { background: var(--flaeche); color: var(--text); }
.gewaehlt li button:disabled { opacity: .25; cursor: default; background: none; }
.gewaehlt .leer { color: var(--hellgrau); font-style: italic; border: 0; }
@keyframes rein { from { opacity: 0; transform: translateX(8px); } }

/* Optionsliste (Aufbauten) */
.optionen { margin: 0 -34px; border-top: 1px solid var(--linie); }
.option {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 14px 34px; border: 0; border-bottom: 1px solid var(--linie); background: #fff; cursor: pointer; text-align: left;
  transition: background .2s;
}
.option:hover { background: #fafafa; }
.option .kreis { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #c6c9cc; flex: none; transition: border .2s; }
.option[aria-pressed="true"] .kreis { border: 6px solid var(--orange); }
.option .text { flex: 1; }
.option .text b { display: block; font: 700 18px/1.15 var(--schmal); }
.option .text small { display: block; margin-top: 2px; font-size: 13px; color: var(--grau); }
.option svg { width: 64px; height: 48px; color: var(--hellgrau); transition: color .3s; }
.option[aria-pressed="true"] svg { color: var(--text); }
.option svg .akzent { fill: var(--orange); opacity: .25; transition: opacity .3s; }
.option[aria-pressed="true"] svg .akzent { opacity: 1; }

.zusatz { overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.zusatz > div { min-height: 0; }
.zusatz.offen { grid-template-rows: 1fr; }

/* Unteroptionen (Spuckschutz) */
.unteroptionen { margin: 10px 0 2px 18px; padding-left: 16px; border-left: 2px solid var(--linie); display: grid; gap: 6px; }
.umschalter.klein .text b { font-size: 16px; }
.umschalter.klein .bahn { transform: scale(.85); transform-origin: right center; }
.umschalter[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

/* Farbwähler (HEX / CMYK) */
.farbwahl { margin-top: 4px; }
.farbzeile { display: flex; align-items: center; gap: 14px; }
.farbfeld { position: relative; width: 48px; height: 48px; flex: none; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--orange); cursor: pointer; }
.farbfeld input { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); border: 0; padding: 0; cursor: pointer; }
.farbcode {
  flex: 1; min-width: 0; padding: 8px 0 9px; border: 0; border-bottom: 1.5px solid #cdd0d3; border-radius: 0; background: transparent;
  font: 700 17px/1.3 var(--schmal); letter-spacing: .06em; text-transform: uppercase; color: var(--text); outline: none;
}
.farbcode:focus { border-color: var(--orange); }
.farbcode[aria-invalid="true"] { border-color: #b3261e; }
.farbinfo { display: block; margin-top: 10px; font-size: 13px; color: var(--text); }
.farbhinweis { display: block; margin-top: 4px; font-size: 12.5px; color: var(--grau); }

/* Druckmaße beim Upload */
.motivblock { margin-top: 18px; }
.motivblock .motiv { margin-top: 0; }
.druckmass { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--grau); }
.druckmass b { color: var(--text); }
.druckwarnung { margin: 6px 0 0; font-size: 12.5px; color: #9a5b00; }

/* Segmente + Schalter */
.segment { display: inline-flex; padding: 3px; border-radius: 5px; background: var(--flaeche); }
.segment button { height: 34px; padding: 0 16px; border: 0; border-radius: 5px; background: none; cursor: pointer; font-size: 14px; color: var(--grau); transition: background .25s, color .25s, box-shadow .25s; }
.segment button[aria-pressed="true"] { background: #fff; color: var(--text); font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

.umschalter { display: flex; align-items: center; gap: 16px; width: 100%; padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left; }
.umschalter .text { flex: 1; }
.umschalter .text b { display: block; font: 700 18px/1.15 var(--schmal); }
.umschalter .text small { font-size: 13px; color: var(--grau); }
.umschalter .bahn { width: 46px; height: 26px; border-radius: 5px; background: #d3d5d8; position: relative; transition: background .25s; flex: none; }
.umschalter .bahn::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 5px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .35s var(--feder); }
.umschalter[aria-pressed="true"] .bahn { background: var(--orange); }
.umschalter[aria-pressed="true"] .bahn::after { transform: translateX(20px); }
.trenner { height: 1px; background: var(--linie); margin: 22px 0; }

/* Motiv-Upload */
.motiv { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.motiv label {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 700; font-size: 14.5px; color: var(--orange-dunkel);
}
.motiv label svg { width: 18px; height: 18px; }
.motiv label:hover { color: var(--orange); }
.motiv input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.motiv input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.motiv .vorschau { display: block; width: 44px; height: 32px; border-radius: 3px; background: center/cover no-repeat var(--flaeche); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.motiv .weg { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--grau); text-decoration: underline; }
.motiv small { font-size: 12.5px; color: var(--grau); }

/* ---------------------------------------------------------------- Anfrage */

.anfrage { padding: 34px 34px 40px; background: var(--flaeche); }
.anfrage h2 { margin: 8px 0 18px; font: 700 34px/1 var(--schmal); }
.anfrage h3 { margin: 34px 0 6px; font: 700 24px/1.1 var(--schmal); }
.zusammenfassung { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.zusammenfassung li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid #e2e3e5; }
.zusammenfassung li span { color: var(--grau); flex: 0 0 132px; }
.zusammenfassung li b { font-weight: 700; flex: 1; }
.intern { margin: 12px 0 0; }
.link { border: 0; padding: 0; background: none; cursor: pointer; color: var(--orange-dunkel); text-decoration: underline; font-size: 14px; }

.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; margin-top: 16px; }
.feld { display: flex; flex-direction: column; }
.feld.breit { grid-column: 1 / -1; }
.feld span { font-size: 12.5px; color: var(--grau); margin-top: 10px; }
.feld input, .feld textarea {
  width: 100%; padding: 8px 0 9px; border: 0; border-bottom: 1.5px solid #cdd0d3; border-radius: 0;
  background: transparent; font: 16px/1.4 'PT Sans', sans-serif; color: var(--text); outline: none;
  transition: border-color .2s;
}
.feld textarea { resize: vertical; min-height: 44px; }
.feld input:focus, .feld textarea:focus { border-color: var(--orange); }
.feld input[aria-invalid="true"] { border-color: #b3261e; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.haken { display: flex; gap: 11px; margin-top: 16px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.haken input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.haken a { color: var(--orange-dunkel); }

.primaer {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border: 0; border-radius: 5px; cursor: pointer;
  background: var(--orange); color: #fff; text-decoration: none;
  font: 700 17px/1 var(--schmal); letter-spacing: .075em; text-transform: uppercase;
  box-shadow: 0 10px 24px -12px rgba(228, 119, 0, .9);
  transition: background .2s, transform .3s var(--feder), box-shadow .2s;
}
.primaer:hover { background: var(--orange-dunkel); transform: translateY(-1px); }
.primaer:disabled { opacity: .6; cursor: progress; transform: none; }
form .primaer { width: 100%; margin-top: 24px; }
.meldung { margin: 14px 0 0; font-size: 14.5px; min-height: 1em; }
.meldung.ok { color: #2e7d32; font-weight: 700; }
.meldung.fehler { color: #b3261e; }

.direkt { margin-top: 34px; padding-top: 22px; border-top: 1px solid #e2e3e5; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-size: 14.5px; }
.direkt p { margin: 0; width: 100%; color: var(--grau); }
.direkt a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); }

.aktion {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; gap: 10px; align-items: center;
  padding: 14px 34px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--linie);
}
.aktion .primaer { flex: 1; height: 50px; }
.rund { width: 50px; height: 50px; border-radius: 5px; border: 1.5px solid var(--linie); background: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, transform .3s var(--feder); }
.rund:hover { border-color: var(--text); transform: rotate(-12deg); }

.ohne-js { padding: 120px 30px; text-align: center; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- Responsiv */

@media (max-width: 1180px) {
  :root { --panel: 400px; }
  .produkte { display: none; }
  .produkte-klein { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
}

@media (max-width: 900px) {
  :root { --kopf: 58px; }
  .kopf { gap: 12px; padding: 0 14px; }
  .logo img { height: 32px; }
  .kontakt a { padding: 0 12px; }
  .kontakt a span { display: none; }
  .kontakt .k-live::after { content: 'Live'; font-size: 14px; }
  .konfigurator { display: block; height: auto; }
  .buehne { position: sticky; top: var(--kopf); z-index: 2; height: 50vh; height: 50svh; border-bottom: 1px solid var(--linie); }
  .titel { left: 16px; bottom: 14px; }
  .titel .dach, .titel .info { display: none; }
  .titel h1 { font-size: 34px; margin: 0; }
  .ansichten { top: 10px; max-width: calc(100% - 20px); overflow-x: auto; }
  .ansichten button { padding: 0 11px; height: 30px; font-size: 12px; }
  .werkzeuge { right: 12px; bottom: 12px; flex-direction: row; }
  .werkzeuge button { width: 42px; height: 42px; }
  .werkzeuge button span { display: none; }
  .tipp { display: none; }
  .toast { top: 52px; }
  .panel { border-left: 0; overflow: visible; }
  .einleitung { padding: 20px 18px 0; }
  .schritt { padding: 24px 18px 26px; }
  .bausteine, .optionen { margin: 0 -18px; }
  .option { padding: 14px 18px; }
  .baustein:first-child { padding-left: 8px; }
  .anfrage { padding: 28px 18px 34px; scroll-margin-top: calc(var(--kopf) + 50svh); }
  .felder { grid-template-columns: 1fr; }
  .aktion { padding-left: 18px; padding-right: 18px; }
}

/* Ausführung der Platte */
.favorit { display: inline-block; margin-left: 8px; padding: 2px 8px 1px; border-radius: 5px; background: var(--orange); color: #fff; font: 700 11px/1.4 var(--schmal); letter-spacing: .08em; text-transform: uppercase; font-style: normal; vertical-align: 2px; }
.option svg[viewBox="0 0 64 32"] { width: 72px; height: 36px; }
.plan .frage { font: 700 40px var(--schmal); fill: var(--hellgrau); text-anchor: middle; dominant-baseline: middle; }
.individuell { margin-top: 16px; }

/* Vorteil hervorheben (Wechselverkleidung) */
.vorteil { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--orange); background: #fff8f0; font-size: 14.5px; line-height: 1.5; }
.vorteil b { display: block; font: 700 18px/1.2 var(--schmal); margin-bottom: 2px; }

/* Uploads: PDF-Seiten, Dateiinfo, getrennte Verkleidung */
.motivliste { display: grid; gap: 4px; margin-top: 4px; }
.motivliste .motivblock { padding: 12px 0 10px; border-bottom: 1px solid var(--linie); margin-top: 0; }
.motivliste .motivblock:first-child { border-top: 1px solid var(--linie); }
.motiv .vorschau.ist-pdf { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 2px #fff, 0 0 0 3px #c62828; }
.ladestatus { font-size: 12.5px; color: var(--grau); }
.seiten-nav { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px; border-radius: 5px; background: var(--flaeche); font-size: 13px; }
.seiten-nav button { width: 28px; height: 28px; border: 0; border-radius: 5px; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seiten-nav .seite-text { padding: 0 6px; }
.verteilen { display: block; margin-top: 8px; }
.druckinfo { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: var(--text); }
.druckinfo svg { width: 18px; height: 18px; color: var(--grau); }
.segment { flex-wrap: wrap; margin-bottom: 4px; }

/* Flyer (Drucken / als PDF speichern) */
.flyer-link { margin: 14px 0 0; font-size: 13.5px; color: var(--grau); }
#flyer { display: none; }
@media print {
  @page { size: A4 portrait; margin: 11mm 12mm; }
  html, body { height: auto; background: #fff; }
  body > *:not(#flyer) { display: none !important; }
  #flyer { display: block; color: #1c1d1f; font: 9.5pt/1.4 'PT Sans', Arial, sans-serif; }
  #flyer header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 3mm; border-bottom: 0.6mm solid #e47700; }
  #flyer header img { height: 11mm; width: auto; }
  #flyer header div { text-align: right; }
  #flyer header b { display: block; font: 700 13pt/1.1 'PT Sans Narrow', sans-serif; }
  #flyer header span { font-size: 9pt; color: #6b6f74; }
  #flyer h1 { margin: 4mm 0 1mm; font: 700 24pt/1 'PT Sans Narrow', sans-serif; }
  #flyer h1 small { display: block; margin-top: 1mm; font: 400 10pt/1.2 'PT Sans', sans-serif; color: #6b6f74; }
  #flyer .bilder { display: grid; grid-template-columns: 2.4fr 0.85fr 0.85fr; gap: 3mm; align-items: end; margin: 2mm 0 1mm; }
  #flyer figure { margin: 0; text-align: center; }
  #flyer figure img { display: block; width: 100%; height: 82mm; object-fit: contain; }
  #flyer figcaption { font-size: 8pt; color: #6b6f74; text-transform: uppercase; letter-spacing: .08em; }
  #flyer table { width: 100%; margin-top: 3mm; border-collapse: collapse; font-size: 7.9pt; line-height: 1.3; }
  #flyer th { text-align: left; font: 700 8pt 'PT Sans Narrow', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #6b6f74; border-bottom: 0.3mm solid #1c1d1f; padding: 1mm 1.5mm; }
  #flyer td { padding: 0.8mm 1.5mm; border-bottom: 0.2mm solid #e2e3e5; vertical-align: top; }
  #flyer td:nth-child(2) { white-space: nowrap; font-weight: 700; }
  #flyer td:last-child, #flyer th:last-child { white-space: nowrap; text-align: right; }
  #flyer tr { break-inside: avoid; }
  #flyer footer { display: flex; gap: 5mm; align-items: flex-start; margin-top: 5mm; padding-top: 4mm; border-top: 0.3mm solid #e2e3e5; break-inside: avoid; }
  #flyer .qr { flex: 0 0 30mm; }
  #flyer .qr svg { width: 30mm; height: 30mm; display: block; }
  #flyer footer b { font: 700 12pt 'PT Sans Narrow', sans-serif; }
  #flyer footer p { margin: 1mm 0 0; }
  #flyer .kontakt { font-weight: 700; color: #e47700; }
  #flyer .klein { font-size: 7.5pt; color: #6b6f74; }
}

/* Bühne: Fliesen / Studio (look.js) */
.buehne-wahl { position: absolute; top: 16px; right: 16px; z-index: 5; display: flex; padding: 3px; background: rgba(255, 255, 255, .9); border-radius: 5px; box-shadow: 0 2px 12px rgba(0, 0, 0, .1); }
.buehne-wahl button { border: 0; background: none; padding: 6px 12px; border-radius: 3px; font: 700 12px/1 'PT Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b6e73; cursor: pointer; }
.buehne-wahl button:hover { color: var(--text, #1b1c1e); }
.buehne-wahl button[aria-pressed="true"] { background: #1b1c1e; color: #fff; }
@media (max-width: 700px) { .buehne-wahl { top: auto; bottom: 10px; right: 10px; } }
