/* GENERIERT von vorschau-src/build.py – nicht hier ändern, sondern in vorschau-src/ und neu bauen. */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* BauMaster Rechner v2 — Vorschau (Oktober 2026)
   Ziel: 2–3 sichtbare Angaben → Ergebnis. Details nur auf Klick („Genauer rechnen“).
   Tokens wie base.css (ACSS der Website): base #1d252e, primary #fab500. */

:root {
  --base: #1d252e;
  --base-dark: #313f4e;
  --base-semi-dark: #45586e;
  --base-medium: #5b7591;
  --base-light: #d0d8e2;
  --base-ultra-light: #eff2f5;
  --primary: #fab500;
  --primary-hover: #ffc020;
  --green: #2e7d32;
  --amber: #b07600;
  --amber-dot: #f0a000;
  --orange: #e2650b;
  --red: #c62828;
  --white: #fff;
  --radius: .75rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', Arial, system-ui, sans-serif;
  background: var(--base-ultra-light);
  color: var(--base);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, p, ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- Vorschau-Hinweis ---------- */
.v-banner {
  background: var(--base);
  color: var(--base-light);
  font-size: .8rem;
  text-align: center;
  padding: .45rem 1rem;
}
.v-banner strong { color: var(--primary); }

/* ---------- Rahmen ---------- */
.v {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
  flex: 1;
}
.v-head { margin-bottom: 1.5rem; }
.v-logo { display: block; height: 1.9rem; margin-bottom: 1.5rem; }
.v-head h1 { font-size: clamp(1.45rem, 3.6vw, 2rem); font-weight: 700; line-height: 1.2; max-width: 40rem; }
.v-intro { color: var(--base-semi-dark); margin-top: .45rem; }

.v-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem;  /* 22rem: Platz für das 300 px breite Turnstile-Widget im Panel */ gap: 1.5rem; align-items: start; }
.v-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

/* ---------- Karten ---------- */
.v-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(29, 37, 46, .08);
}
.v-card h2 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.v-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--primary); color: var(--base); font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.v-hint { color: var(--base-semi-dark); font-size: .9rem; margin-top: .35rem; }

/* ---------- Zahlen-Zeilen ---------- */
.v-rows { margin-top: .75rem; }
.v-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid var(--base-light);
}
.v-row:last-child { border-bottom: 0; }
.v-row-title { font-weight: 600; overflow-wrap: anywhere; }
.v-row-sub { font-size: .85rem; color: var(--base-semi-dark); }

.v-count { display: inline-flex; align-items: center; gap: .3rem; }
.v-count input {
  width: 3.4rem; text-align: center; font: inherit; font-weight: 600;
  padding: .5rem .2rem; border: 1px solid var(--base-light); border-radius: .5rem;
  background: var(--white); color: var(--base); -moz-appearance: textfield; appearance: textfield;
}
.v-count input::-webkit-outer-spin-button,
.v-count input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.v-count button {
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--base-light); border-radius: .5rem;
  background: var(--base-ultra-light); font-size: 1.2rem; font-weight: 600; cursor: pointer; line-height: 1;
}
.v-count button:hover { background: var(--base-light); }

/* Segment (Ja/Nein, Excel/MS Project, Abrechnung) */
.v-seg {
  display: inline-flex; background: var(--base-ultra-light); border: 1px solid var(--base-light);
  border-radius: 99px; padding: .2rem; flex-shrink: 0;
}
.v-seg button {
  border: 0; background: none; font-size: .9rem; font-weight: 600; color: var(--base-semi-dark);
  padding: .5rem 1.05rem; min-height: 2.5rem; border-radius: 99px; cursor: pointer;
}
.v-seg button[aria-pressed="true"] { background: var(--base); color: var(--white); }

/* ---------- Chips (Mehrfachauswahl) ---------- */
.v-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.v-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1.5px solid var(--base-light); background: var(--white);
  border-radius: 99px; padding: .55rem .95rem; min-height: 2.75rem;
  font-size: .9rem; font-weight: 500; cursor: pointer; text-align: left;
}
.v-chip::before {
  content: ''; width: 1rem; height: 1rem; border-radius: .25rem; flex-shrink: 0;
  border: 1.5px solid var(--base-medium); background: var(--white);
}
.v-chip[aria-pressed="true"] { border-color: var(--base); background: #fff6dc; font-weight: 600; }
.v-chip[aria-pressed="true"]::before {
  border-color: var(--base); background: var(--base)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fab500' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/90% no-repeat;
}
.v-chips-label { font-weight: 600; margin-top: 1.1rem; }

/* ---------- Aufklapper ---------- */
.v-more { margin-top: 1rem; border-top: 1px solid var(--base-light); padding-top: .4rem; }
.v-more summary {
  cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--base-semi-dark);
  padding: .55rem 0; list-style: none; display: flex; align-items: center; gap: .5rem;
}
.v-more summary::-webkit-details-marker { display: none; }
.v-more summary::before { content: '+'; display: inline-flex; width: 1.3rem; height: 1.3rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--base-ultra-light); font-weight: 700; }
.v-more[open] summary::before { content: '–'; }
.v-more-body { padding-bottom: .4rem; }
.v-more-body p, .v-more-body li { font-size: .85rem; color: var(--base-semi-dark); }
.v-more-body ul { padding-left: 1.1rem; margin-top: .35rem; }
.v-more-body table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: .35rem; }
.v-more-body td { padding: .3rem 0; border-bottom: 1px solid var(--base-ultra-light); color: var(--base-semi-dark); }
.v-more-body td:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--base); }

/* Slider */
.v-slider { padding: .8rem 0; border-bottom: 1px solid var(--base-light); }
.v-slider:last-child { border-bottom: 0; }
.v-slider label { font-weight: 600; display: block; }
.v-slider-row { display: flex; align-items: center; gap: 1rem; margin-top: .35rem; }
.v-slider input[type=range] { flex: 1; accent-color: var(--base); min-height: 2rem; }
.v-slider output { font-weight: 700; min-width: 5.5rem; text-align: right; white-space: nowrap; }

/* ---------- Risiko-Fragen ---------- */
.v-q {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: .8rem 0; border-bottom: 1px solid var(--base-light);
}
.v-q:last-child { border-bottom: 0; }
.v-q p { font-weight: 500; }

/* ---------- Ergebnis-Panel ---------- */
.v-panel {
  position: sticky; top: 1rem;
  background: var(--base); color: var(--white);
  border-radius: var(--radius); padding: 1.4rem; line-height: 1.35;
}
.v-panel-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.v-panel-num { font-size: 2.35rem; font-weight: 700; line-height: 1.05; margin-top: .35rem; white-space: nowrap; }
.v-panel-sub { font-size: .85rem; color: var(--base-light); margin-top: .3rem; }
.v-facts { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--base-semi-dark); display: flex; flex-direction: column; gap: .45rem; }
.v-facts p { display: flex; justify-content: space-between; gap: .75rem; font-size: .88rem; color: var(--base-light); }
.v-facts strong { color: var(--white); white-space: nowrap; }
.v-mix { list-style: none; padding: 0; margin-top: .8rem; display: flex; flex-direction: column; gap: .3rem; }
.v-mix li { display: flex; justify-content: space-between; gap: .75rem; font-size: .88rem; color: var(--base-light); }
.v-mix li strong { color: var(--white); white-space: nowrap; }
.v-panel .v-seg { background: rgba(255,255,255,.08); border-color: var(--base-semi-dark); margin-top: .8rem; }
.v-panel .v-seg button { color: var(--base-light); }
.v-panel .v-seg button[aria-pressed="true"] { background: var(--primary); color: var(--base); }
.v-good { margin-top: .6rem; font-size: .82rem; color: var(--primary); }
.v-warn { margin-top: .8rem; font-size: .85rem; background: rgba(198,40,40,.18); border-left: 3px solid #ef9a9a; padding: .55rem .7rem; border-radius: .4rem; }

/* Risiko im Panel */
.v-risk { margin-top: 1rem; display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border-radius: .6rem; background: rgba(255,255,255,.07); border-left: 4px solid var(--base-medium); }
.v-risk-dot { width: 1rem; height: 1rem; border-radius: 50%; background: var(--base-medium); flex-shrink: 0; margin-top: .2rem; }
.v-risk-level { display: block; font-weight: 700; font-size: .95rem; }
.v-risk-text { display: block; font-size: .8rem; color: var(--base-light); margin-top: .1rem; }
.v-risk[data-lvl="gruen"] { border-left-color: var(--green); } .v-risk[data-lvl="gruen"] .v-risk-dot { background: #66bb6a; }
.v-risk[data-lvl="gelb"] { border-left-color: var(--amber-dot); } .v-risk[data-lvl="gelb"] .v-risk-dot { background: var(--amber-dot); }
.v-risk[data-lvl="orange"] { border-left-color: var(--orange); } .v-risk[data-lvl="orange"] .v-risk-dot { background: var(--orange); }
.v-risk[data-lvl="rot"] { border-left-color: #ef5350; } .v-risk[data-lvl="rot"] .v-risk-dot { background: #ef5350; }

/* PDF-Formular im Panel */
.v-form { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--base-semi-dark); }
.v-form-title { font-weight: 700; font-size: .95rem; }
.v-form input[type=email] {
  width: 100%; margin-top: .55rem; padding: .75rem .9rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--base-semi-dark); border-radius: .5rem; background: var(--white); color: var(--base);
}
.v-consent { display: flex; gap: .55rem; align-items: flex-start; margin-top: .6rem; font-size: .78rem; color: var(--base-light); cursor: pointer; }
.v-consent input { margin-top: .15rem; width: 1.05rem; height: 1.05rem; accent-color: var(--primary); flex-shrink: 0; }
.v-consent a { color: var(--white); }
.v-cta {
  width: 100%; margin-top: .75rem; padding: .85rem 1rem; min-height: 2.75rem;
  background: var(--primary); color: var(--base); font-weight: 700; border: 0; border-radius: .5rem; cursor: pointer;
}
.v-cta:hover { background: var(--primary-hover); }
.v-msg { margin-top: .6rem; font-size: .82rem; }
.v-msg.is-error { color: #ffb4b4; }
.v-msg.is-ok { color: #a5d6a7; }
.v-netto { margin-top: .7rem; font-size: .72rem; color: var(--base-medium); }
.v-panel .v-netto { color: #9fb2c6; }

/* ---------- Footer ---------- */
.v-foot { background: var(--base); color: var(--base-light); }
.v-foot-in { max-width: 68rem; margin: 0 auto; padding: 1.75rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; font-size: .85rem; }
.v-foot a { color: var(--base-light); text-decoration: none; }
.v-foot a:hover { color: var(--white); text-decoration: underline; }
.v-foot-copy { flex-basis: 100%; text-align: center; font-size: .8rem; color: #9fb2c6; }

/* ---------- Nur live ---------- */
.v-home { display: inline-block; }
.v-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }  /* Honeypot */
.v-form .cf-turnstile { margin-top: .7rem; min-height: 65px; }                        /* reserviert Platz → kein Springen */

/* ---------- Mini-Leiste (Handy) ---------- */
.v-mini { display: none; }

@media (max-width: 979px) {
  .v-grid { grid-template-columns: 1fr; }
  .v-panel { position: static; }
  body { padding-bottom: 4.6rem; }
  .v-mini {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    align-items: center; gap: .75rem; padding: .65rem 1rem;
    background: var(--base); color: var(--white); box-shadow: 0 -2px 12px rgba(29,37,46,.25);
  }
  .v-mini-num { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
  .v-mini-label { display: block; font-size: .72rem; color: var(--base-light); }
  .v-mini button { margin-left: auto; width: auto; margin-top: 0; padding: .55rem 1.1rem; }
}
@media (max-width: 560px) {
  .v-card { padding: 1.15rem; }
  .v-row, .v-q { grid-template-columns: 1fr; gap: .5rem; }
  .v-row > :last-child, .v-q > :last-child { justify-self: start; }
  .v-panel-num { font-size: 2.05rem; }
  .v-panel { padding: 1.25rem .75rem; }   /* 360-px-Handy: 300 px Turnstile passen ins Panel */
}

/* ---------- Vorschau-Navigation + Übersicht ---------- */
.v-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .9rem; margin-top: .35rem; }
.v-nav a { color: var(--base-light); text-decoration: none; font-weight: 500; padding: .15rem 0; }
.v-nav a:hover { color: var(--white); text-decoration: underline; }
.v-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.v-ovgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.v-ov h2 { display: block; margin-top: .3rem; font-size: 1.15rem; }
.v-ov-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.v-ov-links a { color: var(--base-semi-dark); font-weight: 600; font-size: .9rem; }
.v-ov-links .v-ov-go { background: var(--primary); color: var(--base); text-decoration: none; padding: .65rem 1.1rem; border-radius: .5rem; }
.v-ov-links .v-ov-go:hover { background: var(--primary-hover); }
@media (max-width: 700px) { .v-ovgrid { grid-template-columns: 1fr; } }

/* ---------- Runde 2: PDF-Anreiz + optionale Namensfelder ---------- */
.v-pitch { font-size: .82rem; color: var(--base-light); margin-top: .3rem; }
.v-opt-label { font-size: .75rem; color: #9fb2c6; margin-top: .7rem; }
.v-opt { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .3rem; }
.v-opt input { width: 100%; padding: .6rem .75rem; font: inherit; font-size: .88rem; border: 1px solid var(--base-semi-dark); border-radius: .5rem; background: var(--white); color: var(--base); min-width: 0; }
.v-opt .v-opt-wide { grid-column: 1 / -1; }
.v-risk-dot.is-ready { background: var(--primary); }
.v-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.v-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem .95rem; border: 1.5px solid var(--base-light); border-radius: 99px; color: var(--base); text-decoration: none; font-size: .9rem; font-weight: 600; }
.v-links a:hover { border-color: var(--base); background: #fff6dc; }
.v-row.is-hint { background: #fff6dc; border-radius: .5rem; padding-left: .6rem; padding-right: .6rem; }
