/* Traumbetrieb GmbH · Flyer (DIN A4 quer, Wickelfalz, 2 Seiten) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

@page { size: A4 landscape; margin: 0; }

:root {
  color-scheme: light;
  --ink: #14131b; --ink-2: #2e2d39; --muted: #5d5b69; --paper: #f6f2ea; --line: rgba(20, 19, 27, .14);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body { margin: 0; background: #d9d4cb; color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }

/* Werkzeugleiste (nur Bildschirm) */
.toolbar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 12px max(16px, env(safe-area-inset-left, 0px)); padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: var(--ink); color: #e9e5ef; font-size: 14px;
}
.tb-back { color: #fff; text-decoration: none; font-weight: 600; }
.tb-info { margin: 0; flex: 1 1 320px; color: #bdb8cc; }
.tb-info strong { color: #fff; }
.tb-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tb-print { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #ff6a3d; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }

.sheets { --zoom: 1; display: grid; justify-content: center; gap: 28px; padding: 28px 16px 60px; }
.sheet {
  position: relative; zoom: var(--zoom); width: 297mm; height: 210mm; display: flex; background: #fff; overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
}
.sheet-label { position: absolute; top: -26px; left: 0; margin: 0; font: 600 12px var(--mono); color: #5d5b69; }
.sheets .sheet { margin-top: 18px; }
.sheets .sheet { overflow: visible; }

.panel { position: relative; width: 100mm; height: 210mm; padding: 11mm 9mm 10mm; display: flex; flex-direction: column; overflow: hidden; }
.panel-narrow { width: 97mm; }
.panel + .panel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px dashed rgba(20, 19, 27, .35);
}
.no-guides .panel + .panel::before { display: none; }

/* Typografie */
.eyebrow { display: flex; align-items: center; gap: 2mm; margin: 0 0 3mm; font: 700 6.6pt var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow-gap { margin-top: 6mm; }
.num { display: inline-grid; place-items: center; min-width: 7mm; height: 5mm; padding: 0 1.5mm; border-radius: 1.4mm; background: var(--c); color: var(--ink); letter-spacing: 0; }
.num-light { color: #fff; }
.h-big { margin: 0; font: 800 27pt/0.95 var(--display); letter-spacing: -.045em; }
.h-mid { margin: 0 0 3mm; font: 800 19pt/1 var(--display); letter-spacing: -.035em; }
.h-chap { margin: 0 0 2.5mm; font: 750 13pt/1.1 var(--display); letter-spacing: -.025em; }
.body { margin: 0 0 4mm; font-size: 8.6pt; line-height: 1.5; color: var(--ink-2); }
.u { background: linear-gradient(180deg, transparent 60%, rgba(255, 194, 38, .6) 60%); }
.grad { background: linear-gradient(95deg, #ffc226, #ff6a3d 40%, #ff5c8a 60%, #7c84ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { width: 5mm; height: 5mm; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* A: Klappe (dunkel) */
.panel-dark { background: var(--ink); color: var(--paper); border-radius: 0; }
.panel-dark .eyebrow { color: #bdb8cc; }
.lead-light { margin: 5mm 0 6mm; font-size: 9pt; line-height: 1.5; color: #dcd8e3; }
.lead-light strong { color: #fff; }
.dims { display: grid; gap: 3mm; }
.dim { display: flex; gap: 3mm; padding: 3.2mm; border-radius: 3mm; background: rgba(255, 255, 255, .06); border: .3mm solid color-mix(in srgb, var(--c) 55%, transparent); }
.dim .ic { color: var(--c); width: 6mm; height: 6mm; }
.dim b { display: block; font: 750 11pt var(--display); }
.dim span { display: block; font-size: 7.8pt; line-height: 1.4; color: #cfcbd8; }

/* B: Rückseite */
.panel-back { background: #fff; }
.qr-box { display: grid; justify-items: center; gap: 2mm; margin: 2mm auto 5mm; padding: 5mm; border-radius: 4mm; background: var(--paper); border: .3mm solid var(--line); width: 58mm; }
.qr { width: 44mm; height: 44mm; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-missing { margin: 0; font-size: 7pt; text-align: center; color: var(--muted); border: .3mm dashed var(--line); border-radius: 2mm; padding: 3mm; }
.qr-url { margin: 0; font: 600 7pt var(--mono); color: var(--muted); word-break: break-all; text-align: center; }
.tech-note { display: flex; gap: 3mm; padding: 3.5mm; border-radius: 3mm; background: #d3f2e5; }
.tech-note .ic { color: #0d7651; }
.tech-note p { margin: 0; font-size: 7.8pt; line-height: 1.45; }
.facts { margin-top: 6mm; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 1.6mm 3mm; font-size: 7.8pt; line-height: 1.35; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
.back-foot { margin-top: auto; padding-top: 4mm; border-top: .3mm solid var(--line); }
.back-foot p { margin: 0 0 1mm; }
.team { font: 700 9pt var(--display); }
.meta { font-size: 7.4pt; color: var(--muted); }

/* C: Titel */
.panel-cover { background: #fff; }
.brand { display: flex; align-items: center; gap: 2.5mm; font: 800 14pt var(--display); letter-spacing: -.03em; }
.brand-mark { width: 9mm; height: 9mm; }
.dot { color: #ff6a3d; }
.cover-title { margin: 12mm 0 0; font: 800 36pt/0.9 var(--display); letter-spacing: -.05em; }
.cover-title .accent { color: #e64d1c; }
.caret { display: inline-block; width: .3em; height: .7em; margin-left: .06em; background: #ff6a3d; border-radius: .05em; }
.cover-sub { margin: 5mm 0 0; font-size: 9.4pt; line-height: 1.45; color: var(--ink-2); }
.cover-house { width: 56mm; margin: 14mm auto 0; }
.ch-roof { height: 18mm; margin: 0 -3mm; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--ink); }
.ch-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6mm; padding: 1.6mm; background: var(--ink); border-radius: 0 0 3mm 3mm; }
.ch-rooms span { display: grid; place-items: center; height: 14mm; border-radius: 1.6mm; background: var(--c); font: 800 12pt var(--display); color: var(--ink); }
.ch-rooms span:nth-child(2) { color: #fff; }
.cover-term { margin-top: auto; padding: 3.5mm 4mm; border-radius: 3mm; background: var(--ink); color: #d8d4e2; font: 500 7.2pt/1.6 var(--mono); }
.cover-term .p { color: #4fd6a4; }
.cover-term .ok { color: #ffc226; font-weight: 700; }
.cover-foot { margin: 3mm 0 0; font-size: 6.8pt; color: var(--muted); }

/* D: Einstieg */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 2mm; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 6mm 1fr; gap: 2.5mm; font-size: 8.2pt; line-height: 1.4; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 6mm; height: 6mm; border-radius: 1.6mm; background: var(--ink); color: #fff; font: 800 9pt var(--display); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; }
.stats div { padding: 2.6mm 3mm; border-radius: 2.5mm; background: var(--paper); border-left: 1.4mm solid var(--c); }
.stats b { display: block; font: 800 13pt/1.05 var(--display); letter-spacing: -.02em; }
.stats span { font-size: 7pt; color: var(--muted); }

/* E/F: Kapitel */
.chap { padding: 4mm; border-radius: 3.5mm; background: var(--soft); }
.chap + .chap { margin-top: 4mm; }
.chap .eyebrow { color: var(--ink-2); }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.3mm; }
.list li { position: relative; padding-left: 4.2mm; font-size: 8.2pt; line-height: 1.38; }
.list li::before { content: ""; position: absolute; left: 0; top: 1.25mm; width: 2mm; height: 2mm; border-radius: 50%; background: var(--c); }
.callout { margin-top: auto; padding: 4mm; border-radius: 3.5mm; background: var(--ink); color: #fff; }
.callout .eyebrow { color: #ffc226; margin-bottom: 2mm; }
.callout p:last-child { margin: 0; font-size: 8pt; line-height: 1.45; color: #dcd8e3; }
.callout b { color: #fff; }
.quote { margin: auto 0 0; padding: 3mm 0 0 4mm; border-left: 1mm solid #17b47e; font: 650 9.6pt/1.3 var(--display); letter-spacing: -.01em; }

/* Druck */
@media print {
  body { background: #fff; }
  .toolbar, .sheet-label { display: none !important; }
  .sheets { display: block; padding: 0; gap: 0; }
  .sheet { zoom: 1 !important; margin: 0 !important; box-shadow: none; break-after: page; page-break-after: always; overflow: hidden !important; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
}
