/* =====================================================================
   HoizZeit Küchenkonfigurator V2 – Stylesheet
   Farben & Schriften nach www.hoizzeit.at, Schriften lokal eingebunden
   ===================================================================== */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 500; font-display: swap; src: url(../fonts/lora-500.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 600; font-display: swap; src: url(../fonts/lora-600.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 500; font-display: swap; src: url(../fonts/caveat-500.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url(../fonts/caveat-700.woff2) format('woff2'); }

:root {
  --brown: #693d10;
  --brown-d: #4e2c0a;
  --brown-l: #8a5a2b;
  --gold: #bfa279;
  --gold-d: #af8a56;
  --gold-l: #efe5d6;
  --gold-xl: #f8f2e8;
  --ink: #262626;
  --ink-2: #3c3c3c;
  --muted: #7e7e7e;
  --line: #e5e0d8;
  --line-2: #efeae2;
  --bg: #f7f3ed;
  --card: #ffffff;
  --cream: #f6f1ea;
  --danger: #c0222a;
  --ok: #32a88b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 10px 30px rgba(60, 40, 20, .07);
  --shadow-md: 0 2px 6px rgba(60, 40, 20, .06), 0 18px 40px rgba(60, 40, 20, .10);
  --shadow-lg: 0 20px 60px rgba(40, 25, 10, .22);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink);
  background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 .8em; }
a { color: var(--brown); }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--gold-d); outline-offset: 2px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent;
  border-radius: 999px; padding: 12px 24px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease), box-shadow .2s; line-height: 1.2; font-size: 15px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary { background: var(--brown); color: #fff; box-shadow: 0 6px 18px rgba(105, 61, 16, .25); }
.btn-primary:hover { background: var(--brown-d); box-shadow: 0 8px 24px rgba(105, 61, 16, .32); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--brown); background: #fff; }
.btn-light { background: #fff; color: var(--brown); }
.btn-light:hover { background: var(--gold-xl); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-d); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn.danger { color: var(--danger); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); transition: all .2s; }
.icon-btn:hover { border-color: var(--gold); color: var(--brown); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(250, 247, 242, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(229, 224, 216, .8);
}
.topbar-inner { max-width: 1360px; margin: 0 auto; height: var(--header-h); padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand img { height: 46px; width: auto; display: block; }
.brand-sub { font-family: var(--serif); color: var(--ink-2); font-size: 17px; padding-left: 18px; border-left: 1px solid var(--line); }
.brand-sub small { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.offline-badge { background: #fff3cd; color: #7a5b00; font-size: 12px; padding: 4px 10px; border-radius: 99px; font-weight: 500; }
.progress { height: 3px; background: transparent; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--brown)); transition: width .5s var(--ease); border-radius: 0 3px 3px 0; }

/* ---------- Layout ---------- */
.layout { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 28px 24px 60px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.layout.is-intro { display: block; max-width: none; padding: 0; }
.layout.is-intro .sidebar { display: none; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; scrollbar-width: thin; padding-bottom: 6px; }
.main { min-width: 0; outline: none; }

/* Stepper */
.side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stepper-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.ring { width: 46px; height: 46px; flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--gold-l); }
.ring .fg { stroke: var(--brown); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { font: 600 12px var(--font); fill: var(--brown); }
.stepper-head b { display: block; font-family: var(--serif); font-size: 15px; }
.stepper-head span { font-size: 12px; color: var(--muted); }
.stepper { display: flex; flex-direction: column; gap: 2px; }
.step-link { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 12px; cursor: pointer; color: var(--ink-2); font-size: 14px; transition: background .2s, color .2s; position: relative; }
.step-link:hover { background: var(--gold-xl); }
.step-link .num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--cream); color: var(--muted); border: 1.5px solid var(--line); transition: all .25s; }
.step-link .num svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step-link.done .num { background: var(--gold-l); color: var(--brown); border-color: var(--gold); }
.step-link.active { background: var(--brown); color: #fff; box-shadow: 0 6px 16px rgba(105, 61, 16, .25); }
.step-link.active .num { background: #fff; color: var(--brown); border-color: #fff; }
.step-link.has-error .num { background: #fde8e8; color: var(--danger); border-color: #f3b4b4; }
.step-link.special .num { background: linear-gradient(135deg, var(--gold), var(--brown)); color: #fff; border-color: transparent; }
.step-link.special.active .num { background: #fff; color: var(--brown); }

/* Live-Skizze in der Seitenleiste */
.live-card h4 { font-size: 14px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.live-card h4 small { font-family: var(--font); font-weight: 500; font-size: 11px; color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.live-card h4 small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(50, 168, 139, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(50, 168, 139, 0); } }
.live-sketch { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); }
.live-sketch svg { display: block; width: 100%; height: auto; }
.live-card .btn { width: 100%; margin-top: 10px; }
.sketch-note { font-size: 12px; line-height: 1.45; color: var(--ink-2); background: var(--gold-xl); border: 1px solid var(--gold-l); border-radius: 8px; padding: 6px 9px; margin: 6px 0 0; }
.sketch-note::before { content: 'ⓘ '; color: var(--brown); }

.cost-card h4 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cost-list { list-style: none; margin: 0; padding: 0; }
.cost-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.cost-list li:first-child { border-top: 0; }
.cost-list .price { font-weight: 600; color: var(--brown); text-align: right; }
.cost-list .desc { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.cost-note { margin-top: 8px; font-size: 12px; color: var(--muted); background: var(--gold-xl); border-radius: 10px; padding: 9px 11px; }

/* Hauptkarte */
.panel { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 3.4vw, 40px); min-height: 400px; animation: rise .45s var(--ease); }
.panel.bare { background: none; box-shadow: none; padding: 0; border-radius: 0; animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mobile-step { display: none; }
.loading { min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.rings { width: 64px; height: 64px; margin: 0 auto 14px; background: url(../img/ringe.png) center / contain no-repeat; animation: spin 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rings { animation: rings-fade 1.6s ease-in-out infinite; } }
@keyframes rings-fade { 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Schrittnavigation */
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.autosave { font-size: 12.5px; color: var(--ok); }

/* ---------- Startseite ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 60%; transform: scale(1.04); animation: kenburns 22s ease-in-out infinite alternate; }
.hero-slides { position: absolute; inset: 0; background: #2b2118; }
.hero-slides .hero-img { opacity: 0; transition: opacity 1.6s ease; }
.hero-slides .hero-img.on { opacity: 1; }
.hero-dots { position: absolute; z-index: 2; right: 24px; top: 18px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 60%; }
.hero-dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: background .3s, transform .3s; }
.hero-dot.on::before { background: #fff; transform: scale(1.35); }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 50%; }
@keyframes kenburns { to { transform: scale(1.12) translate(-1%, -1%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 4, .15) 0%, rgba(20, 12, 4, .25) 40%, rgba(25, 15, 5, .82) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 1360px; width: 100%; margin: 0 auto; padding: 0 24px 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4.2rem); max-width: 14ch; margin-bottom: 16px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .eyebrow { color: var(--gold); }
.hero p { font-size: 17px; max-width: 56ch; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-facts { display: grid; gap: 10px; }
.hero-fact { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 16px; }
.hero-fact svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-fact b { display: block; font-weight: 600; }
.hero-fact span { font-size: 13px; color: rgba(255, 255, 255, .8); }

.section { max-width: 1360px; margin: 0 auto; padding: 64px 24px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.cost-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cost-tile { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cost-tile:first-child { background: linear-gradient(140deg, #fff 30%, var(--gold-l)); outline: 1.5px solid var(--gold); }
.cost-tile .k { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-d); font-weight: 600; }
.cost-tile h3 { font-size: 1.35rem; margin: 6px 0; }
.cost-tile .price { font-family: var(--serif); font-size: 1.8rem; color: var(--brown); font-weight: 600; margin: 4px 0 6px; }
.cost-tile p { color: var(--muted); margin: 0; }
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: how; }
.how-step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.how-step .how-media { aspect-ratio: 3 / 2; background: var(--cream); }
.how-step .how-media svg { display: block; width: 100%; height: 100%; }
.how-step .how-body { padding: 16px 18px 20px; }
.how-step b { display: flex; gap: 10px; align-items: center; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
.how-step b::before { counter-increment: how; content: counter(how); width: 26px; height: 26px; border-radius: 50%; background: var(--brown); color: #fff; font: 600 13px var(--font); display: grid; place-items: center; }
.how-step span { color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--cream); }
.gallery figure:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery figure:nth-child(2) { grid-column: span 3; }
.gallery figure:nth-child(3), .gallery figure:nth-child(4), .gallery figure:nth-child(5) { grid-column: span 1; }
.gallery figure:nth-child(n+3) { grid-column: span 1; }
.gallery figure:nth-child(3) { grid-column: span 2; }
.gallery figure:nth-child(5), .gallery figure:nth-child(6) { grid-column: span 3; grid-row: span 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 99px; }
.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--gold-xl); border: 1px solid var(--gold-l); border-radius: var(--radius); padding: 18px 20px; }
.callout svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--brown); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.callout p { margin: 0; }
.intro-cta { text-align: center; padding: 60px 24px 30px; }
.intro-cta p { color: var(--muted); }

/* ---------- Block ---------- */
.block-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.block-num { font-family: var(--serif); font-size: 54px; line-height: .9; color: var(--gold); font-weight: 600; letter-spacing: -.02em; min-width: 64px; }
.block-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--gold-xl); display: grid; place-items: center; flex: none; border: 1px solid var(--gold-l); }
.block-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brown); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.block-head h2 { margin: 2px 0 4px; }
.block-head p { color: var(--muted); margin: 0; }
.block-head .eyebrow { margin-bottom: 2px; }
.block-head .head-action { margin-left: auto; flex: none; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.block-head .head-action span { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .block-head { flex-wrap: wrap; }
  .block-head .head-action { margin-left: 0; width: 100%; }
  .block-head .head-action .btn { width: 100%; justify-content: center; }
}

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.field { grid-column: 1 / -1; min-width: 0; }
.field.half { grid-column: span 1; }
.field.is-hidden { display: none; }
.field-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.field-label label, .field-label > span { font-weight: 600; font-size: 15px; color: var(--ink); }
.req { color: var(--danger); }
.field-help { font-size: 13px; color: var(--muted); margin: -2px 0 10px; }
.field-error { font-size: 13px; color: var(--danger); margin-top: 6px; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid .opts, .field.invalid .dropzone { border-color: var(--danger) !important; }
.field.invalid .opts { border: 1.5px solid; border-radius: 16px; padding: 6px; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
/* Touch-Geräte (Tablet/Handy): mind. 16 px in Eingabefeldern – sonst zoomt iOS beim Antippen hinein */
@media (pointer: coarse) {
  input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], textarea, select { font-size: 16px; }
  .hero-dot { width: 30px; height: 30px; }
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(191, 162, 121, .2); }
.input-unit { position: relative; }
.input-unit input { padding-right: 70px; }
.input-unit .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }

.info-btn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gold); background: #fff; color: var(--brown); font: 600 12px/1 var(--serif); font-style: italic; cursor: pointer; display: inline-grid; place-items: center; padding: 0; flex: none; transition: all .2s; }
.info-btn:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.info-box { display: flex; gap: 14px; background: var(--gold-xl); border: 1px solid var(--gold-l); border-radius: 16px; padding: 16px 18px; }
.info-box svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--brown); stroke-width: 1.7; stroke-linecap: round; }
.info-box p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
/* „Weiß ich noch nicht“ – Frage fürs Erstgespräch offen lassen */
.open-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 14px 8px 10px; border: 1.5px dashed var(--gold); border-radius: 999px; background: transparent; color: var(--brown); font: 500 13.5px/1.3 var(--font); cursor: pointer; transition: background .2s, border-color .2s; text-align: left; min-height: 40px; }
.open-chip:hover { background: var(--gold-xl); }
.open-chip:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 2px; }
.open-chip .open-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--gold-d); display: grid; place-items: center; flex: none; background: #fff; transition: all .2s; }
.open-chip .open-box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.open-chip.on { border-style: solid; border-color: var(--gold-d); background: var(--gold-xl); }
.open-chip.on .open-box { background: var(--gold-d); border-color: var(--gold-d); }
.open-chip.on .open-box svg { opacity: 1; }
.field.is-open .opts { opacity: .55; transition: opacity .2s; }
.field.is-open .opts:hover { opacity: 1; }
.skip-bar { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 16px 18px; border: 1px dashed var(--gold); border-radius: var(--radius); background: var(--gold-xl); }
.skip-bar > svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--brown); stroke-width: 1.7; stroke-linecap: round; }
.skip-bar > div { flex: 1; min-width: 0; }
.skip-bar b { display: block; color: var(--brown); }
.skip-bar span { font-size: 14px; color: var(--ink-2); }
.skip-bar .btn { flex: none; }
@media (max-width: 640px) { .skip-bar { flex-wrap: wrap; } .skip-bar .btn { width: 100%; } }
.callout-easy { background: #fff; border-style: dashed; border-color: var(--gold); }
.summary-open { margin-bottom: 18px; }
.summary-block dd.is-open { color: #8a5a12; font-weight: 400; font-style: italic; }

/* Auswahl-Kacheln */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap: 14px; }
.field.half .opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.opts.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.opt {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); outline: none; -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.opt:focus-visible { box-shadow: 0 0 0 4px rgba(191, 162, 121, .35); }
.opt.selected { border-color: var(--brown); box-shadow: 0 0 0 1.5px var(--brown), 0 10px 26px rgba(105, 61, 16, .14); }
.opt-media { display: block; aspect-ratio: 3 / 2; background: var(--cream); overflow: hidden; position: relative; }
.opt-media svg, .opt-media img, .opt-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.opt:hover .opt-media img { transform: scale(1.05); }
.opt-media.plain { display: grid; place-items: center; }
.opt-media.plain svg { width: 38px; height: 38px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.opt-play { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); transition: opacity .2s; }
.opt-play svg { width: 10px; height: 10px; fill: var(--brown); stroke: none; }
.opt:hover .opt-play { opacity: 0; }
.opt-photo { position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; font-weight: 500; background: rgba(38, 38, 38, .7); color: #fff; padding: 2px 8px 2px 6px; border-radius: 99px; display: inline-flex; gap: 4px; align-items: center; }
.opt-photo svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2; }
.opt-body { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex: 1; }
.opts.compact .opt-body { padding: 14px; }
.opt-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; transition: all .2s; background: #fff; }
.opt.multi .opt-check { border-radius: 7px; }
.opt-check svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: all .25s var(--ease); }
.opt.selected .opt-check { background: var(--brown); border-color: var(--brown); }
.opt.selected .opt-check svg { opacity: 1; transform: none; }
.opt-label { font-weight: 500; font-size: 14.5px; line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.opt .info-btn { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .92); }
.opts.compact .opt .info-btn { position: static; margin-left: auto; }
.opt-extra { margin-top: 12px; max-width: 440px; animation: rise .3s var(--ease); }
.opt-extra label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: block; margin-bottom: 4px; }

/* Abmessungen */
.dims { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.dims-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dims-inputs label { font-size: 13px; color: var(--ink-2); font-weight: 500; display: block; margin-bottom: 4px; }
.dims-inputs .full { grid-column: 1 / -1; }
.dims-group-title { grid-column: 1 / -1; font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--brown); margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.dims-group-title:first-child { margin-top: 0; }
.dims-sketch { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.dims-sketch svg { display: block; width: 100%; height: auto; }
.dims-sketch figcaption { font-size: 12px; color: var(--muted); text-align: center; padding-top: 6px; }
.sketch-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.sketch-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.sketch-tabs button.on { background: var(--brown); color: #fff; border-color: var(--brown); }

/* Upload */
.dropzone { border: 2px dashed var(--gold); border-radius: 18px; padding: 30px 20px; text-align: center; background: var(--gold-xl); cursor: pointer; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dropzone:hover, .dropzone.drag { background: var(--gold-l); border-color: var(--brown); }
.dropzone svg { width: 36px; height: 36px; fill: none; stroke: var(--brown); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.dropzone small { color: var(--muted); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; animation: rise .3s var(--ease); }
.file-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-list .fsize { font-size: 12px; color: var(--muted); }
.file-list button { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; }
.file-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; background: var(--cream); border-radius: 14px; padding: 14px 16px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brown); flex: none; }
.privacy-note { margin: 10px 4px 0; font-size: 13px; }

/* ---------- Entwurf (3D + Skizze) ---------- */
.design-intro { display: flex; justify-content: space-between; gap: 18px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.stage { position: relative; border-radius: 20px; overflow: hidden; background: #efe8dd; aspect-ratio: 16 / 10; box-shadow: inset 0 0 0 1px var(--line); user-select: none; touch-action: none; }
.stage.fullscreen, .stage:fullscreen { aspect-ratio: auto; border-radius: 0; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); background: radial-gradient(circle at 50% 40%, #fff, #efe8dd); }
.stage-toolbar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; pointer-events: none; }
.stage-toolbar > div { display: flex; gap: 6px; pointer-events: auto; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; padding: 5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.tb { border: 0; background: none; border-radius: 10px; padding: 7px 10px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.tb:hover { background: var(--gold-xl); color: var(--brown); }
.tb.on { background: var(--brown); color: #fff; }
.tb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage-hint { position: absolute; top: 12px; left: 12px; font-size: 12px; background: rgba(255, 255, 255, .86); border-radius: 99px; padding: 5px 12px; color: var(--ink-2); pointer-events: none; transition: opacity .6s; }
.rec-badge { position: absolute; top: 12px; right: 12px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px; display: flex; gap: 6px; align-items: center; }
.rec-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hz3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hz3d-label { position: absolute; left: 0; top: 0; background: #fff; color: var(--brown); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; box-shadow: 0 3px 10px rgba(60, 40, 20, .18); transition: opacity .35s; }
.hz3d-label::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; background: #fff; transform: translateX(-50%) rotate(45deg); }

.design-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 4px; align-items: start; }
.design-facts { background: var(--gold-xl); border-radius: 18px; padding: 18px; }
.design-facts h3 { font-size: 1rem; margin-bottom: 10px; }
.design-facts ul { margin: 0; padding: 0; list-style: none; columns: 3 220px; column-gap: 26px; font-size: 13.5px; }
.design-facts li { break-inside: avoid; margin-bottom: 6px; }
.design-facts li { display: flex; gap: 8px; }
.design-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-d); margin-top: 8px; flex: none; }
.design-notes { margin-top: 12px; font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid var(--gold-l); border-radius: 12px; padding: 10px 12px; }
.sheet-wrap { background: #fbf8f2; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.sheet-wrap svg { display: block; width: 100%; height: auto; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tabs { display: inline-flex; background: var(--cream); border-radius: 99px; padding: 4px; gap: 2px; margin: 26px 0 12px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 99px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--brown); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

/* 3D-Vorschau als Overlay */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(30, 20, 10, .55); display: grid; place-items: center; padding: 24px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { background: #fff; border-radius: 22px; width: min(1180px, 100%); max-height: 100%; overflow: auto; box-shadow: var(--shadow-lg); padding: 16px; animation: rise .35s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 12px; }
.modal-head h3 { margin: 0; }

/* ---------- Zusammenfassung ---------- */
.summary-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 22px; }
.summary-top figure { margin: 0; background: var(--cream); border-radius: 16px; overflow: hidden; position: relative; min-height: 180px; }
.summary-top img, .summary-top svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.summary-top figcaption { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); font-size: 12px; padding: 3px 10px; border-radius: 99px; font-weight: 500; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.summary-block { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; break-inside: avoid; }
.summary-block header { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; background: var(--gold-xl); border-bottom: 1px solid var(--line-2); }
.summary-block h3 { margin: 0; font-size: 15px; }
.summary-block header button { border: 0; background: none; color: var(--brown); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.summary-block dl { margin: 0; padding: 8px 16px 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 14px; font-size: 13.5px; }
.summary-block dt { color: var(--muted); }
.summary-block dd { margin: 0; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.summary-block .empty { color: #b9b3aa; font-weight: 400; }
.submit-area { margin-top: 26px; background: linear-gradient(140deg, var(--gold-xl), #fff); border: 1.5px solid var(--gold-l); border-radius: 20px; padding: 24px; }
.submit-area .actions, .success .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-error { margin-top: 14px; background: #fdecec; color: #8b1a20; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.form-error ul { margin: 6px 0 0 18px; padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Erfolg */
.success { text-align: center; padding: 20px 0; }
.success .badge { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(50, 168, 139, .35); animation: pop .6s var(--ease); }
.success .badge svg { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success .ref { display: inline-block; font-family: var(--serif); font-size: 22px; color: var(--brown); background: var(--gold-xl); border: 1px dashed var(--gold); padding: 6px 18px; border-radius: 12px; margin: 6px 0 16px; }
.success .actions { justify-content: center; }
.success-design { text-align: left; margin-top: 34px; }

/* ---------- Info-Panel ---------- */
.peek { position: fixed; z-index: 70; width: 380px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transform: translateY(6px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); left: 0; top: 0; }
.peek.show { opacity: 1; transform: none; pointer-events: auto; }
.peek-media { background: var(--cream); aspect-ratio: 3 / 2; }
.peek-media:empty { display: none; }
.peek-media svg, .peek-media img, .peek-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.peek-body { padding: 14px 18px 16px; }
.peek-body h4 { font-size: 16px; margin: 0 0 4px; }
.peek-body p { margin: 0; font-size: 14px; color: var(--ink-2); }
.peek-photo { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.peek-photo img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; cursor: zoom-in; }
.peek-photo span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.peek-photo b { display: block; color: var(--brown); font-weight: 600; font-size: 12.5px; }
.peek-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 22px; line-height: 1; cursor: pointer; display: none; z-index: 2; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.peek.sheet { left: 50% !important; top: auto !important; bottom: 0; transform: translate(-50%, 30px); width: min(520px, 100%); border-radius: 22px 22px 0 0; max-height: 92vh; overflow: auto; }
.peek.sheet.show { transform: translate(-50%, 0); }
.peek.sheet .peek-close { display: block; }
.peek-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(30, 20, 10, .45); animation: fade .2s; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 12, 4, .85); display: grid; place-items: center; padding: 24px; cursor: zoom-out; animation: fade .2s; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow-lg); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 99px; font-size: 14px; z-index: 95; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcac2; font-size: 13.5px; margin-top: 60px; }
.site-footer .inner { max-width: 1360px; margin: 0 auto; padding: 26px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px 30px; flex-wrap: wrap; }
.site-footer .footer-logo { flex: none; line-height: 0; }
.site-footer .footer-logo img { height: 52px; width: auto; display: block; }
.site-footer .footer-logo:hover { text-decoration: none; opacity: .9; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.print-root { display: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Tablet quer (ca. 1024–1280 px): schmalere Seitenleiste, mehr Platz für Inhalt und 3D */
@media (min-width: 1021px) and (max-width: 1280px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; padding: 20px 16px 50px; }
  .block-head { gap: 14px; }
  .block-head .head-action .btn { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 1020px) {
  :root { --header-h: 62px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 110px; }
  .sidebar { display: none; }
  .brand img { height: 38px; }
  .brand-sub { font-size: 15px; padding-left: 12px; }
  .brand-sub small { display: none; }
  .topbar-inner { padding: 0 14px; gap: 10px; }
  .topbar-actions .btn span { display: none; }
  .topbar-actions .btn { padding: 8px 10px; }
  #installBtn { display: none !important; }
  .mobile-step { display: flex; align-items: center; gap: 12px; margin: 2px 2px 12px; }
  .mobile-step .ring { width: 38px; height: 38px; }
  .mobile-step span { font-size: 12px; color: var(--muted); display: block; }
  .mobile-step b { font-family: var(--serif); font-size: 16px; }
  .panel { border-radius: 20px; }
  .step-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .step-nav .autosave { display: none; }
  .step-nav .btn { padding: 11px 16px; font-size: 14.5px; }
  .step-nav .btn-primary { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 34px; }
  .hero { min-height: 640px; }
  .cost-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; }
  .gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .dims { grid-template-columns: minmax(0, 1fr); }
  .dims-sketch { position: static; order: -1; }
  .summary-grid, .summary-top { grid-template-columns: minmax(0, 1fr); }
  .stage { aspect-ratio: 4 / 3.4; }
  .stage-toolbar { left: 8px; right: 8px; bottom: 8px; }
  .tb span { display: none; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .field.half { grid-column: 1 / -1; }
  .opts, .field.half .opts, .opts.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .opt-label { font-size: 13.5px; }
  .opt-body { padding: 10px; gap: 8px; }
  .block-num { display: none; }
  .block-head { gap: 12px; }
  .block-icon { width: 44px; height: 44px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 46px; }
  .summary-block dl { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .summary-block dd { margin-bottom: 8px; }
  .dims-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .peek { width: calc(100% - 20px); }
  .stage { aspect-ratio: 3 / 3.2; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; height: 100%; }
  .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Druck ---------- */
@media print {
  @page { size: A4; margin: 13mm 13mm 15mm; }
  body { background: #fff; font-size: 10pt; display: block; }
  body:not(.admin) > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; color: #000; }
  .pr-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--brown); padding-bottom: 8px; margin-bottom: 14px; }
  .pr-head img { height: 42px; }
  .pr-head .pr-company { text-align: right; font-size: 8.5pt; color: #444; line-height: 1.4; white-space: pre-line; }
  .pr-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
  .pr-title h1 { font-size: 17pt; margin: 0; }
  .pr-title .pr-meta { font-size: 9pt; color: #555; text-align: right; }
  .pr-grid { columns: 2; column-gap: 8mm; }
  .pr-block { break-inside: avoid; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; }
  .pr-block h2 { font-size: 10.5pt; background: #f3ede4; margin: 0; padding: 5px 9px; border-bottom: 1px solid #ccc; color: var(--brown); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pr-block table { width: 100%; border-collapse: collapse; }
  .pr-block td { padding: 4px 9px; border-top: 1px solid #eee; vertical-align: top; font-size: 9pt; }
  .pr-block tr:first-child td { border-top: 0; }
  .pr-block td:first-child { color: #555; width: 42%; }
  .pr-block td:last-child { white-space: pre-line; font-weight: 500; }
  .pr-block .pr-empty { color: #aaa; font-weight: 400; }
  .pr-page { break-before: page; }
  .pr-sketch { break-inside: avoid; border: 1px solid #ccc; border-radius: 6px; padding: 6px; margin: 4px 0 10px; text-align: center; }
  .pr-sketch svg, .pr-sketch img { width: 100%; height: auto; display: block; }
  .pr-sketch h2 { font-size: 10.5pt; text-align: left; margin: 0 0 4px; color: var(--brown); }
  .pr-3d img { max-height: 95mm; object-fit: contain; }
  .pr-costs { break-inside: avoid; margin-top: 10px; border: 1.5px solid var(--gold); border-radius: 6px; padding: 8px 12px; }
  .pr-costs h2 { font-size: 10.5pt; margin: 0 0 6px; color: var(--brown); }
  .pr-costs table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .pr-costs td { padding: 3px 0; border-top: 1px dashed #ddd; }
  .pr-costs tr:first-child td { border-top: 0; }
  .pr-costs td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
  .pr-note { font-size: 8.5pt; color: #555; margin-top: 8px; }
  .pr-sign { display: flex; gap: 12mm; margin-top: 14mm; font-size: 8.5pt; color: #555; }
  .pr-sign div { flex: 1; border-top: 1px solid #999; padding-top: 4px; }
}

/* ===== Planungs-Check (assets/js/planning-check.js) ===== */
.hzc { --hzc: var(--ok); margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hzc-yellowgreen { --hzc: #7fa63a; } .hzc-orange { --hzc: #d98a1c; } .hzc-red { --hzc: var(--danger); }
.hzc-head { display: flex; gap: 16px; align-items: center; }
.hzc-head h3 { font-size: 1.1rem; margin: 0 0 2px; }
.hzc-band { margin: 0; font-weight: 500; color: var(--ink-2); }
.hzc-counts { margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.hzc-ring { width: 64px; height: 64px; flex: none; }
.hzc-ring circle { fill: none; stroke-width: 7; }
.hzc-ring-bg { stroke: var(--line-2); }
.hzc-ring-fg { stroke: var(--hzc); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 32px 32px; }
.hzc-ring text { font: 600 17px var(--font); fill: var(--ink); }
.hzc-group { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.hzc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hzc-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cream); border-left: 4px solid var(--line); }
.hzc-item.hzc-error { border-left-color: var(--danger); background: #fdf1f0; }
.hzc-item.hzc-warning { border-left-color: #d98a1c; background: #fff6e5; }
.hzc-item p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; }
.hzc-item code { font-size: 11px; color: var(--muted); }
.hzc-sugg { color: var(--brown); }
.hzc-chip { flex: none; display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.hzc-chip.hzc-error { background: var(--danger); color: #fff; }
.hzc-chip.hzc-warning { background: #d98a1c; color: #fff; }
.hzc-foot { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .hzc { padding: 16px; } .hzc-item { flex-direction: column; gap: 6px; } }
.a-check .hzc { margin: 0; border: 0; padding: 0; }

/* Hinweis „sehr grober Entwurf“ beim 3D-Modell */
.rough-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--gold-xl); border: 1px solid var(--gold-l); color: var(--ink-2); }
.rough-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--brown); stroke-width: 1.8; stroke-linecap: round; }
.rough-note p { margin: 0; font-size: 14px; line-height: 1.55; }
.rough-note strong { color: var(--brown); }
.rough-note.compact { margin: 0 0 12px; padding: 9px 12px; }
.rough-note.compact p { font-size: 13px; }

/* Maße, die nicht in den Raum passen */
.dim-hint { font-size: 12.5px; color: var(--danger); margin-top: 4px; }
.dim-hint:empty { display: none; }
.input-unit input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192, 34, 42, .12); }
