:root {
  color-scheme: light;
  --page: #f0f3ea;
  --paper: #fffefa;
  --ink: #19382d;
  --text: #273f35;
  --muted: #50665a;
  --line: #cfdbcc;
  --field-line: #899e90;
  --deep: #183c30;
  --leaf: #316642;
  --acid: #b6e473;
  --pale: #eff6e7;
  --focus: #196b9a;
  --error: #9c302a;
  font-family: "DM Sans", "Avenir Next", Avenir, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  line-height: 1.48;
}
button, input, select, textarea { font: inherit; }
button, a, input[type="radio"], input[type="checkbox"] { touch-action: manipulation; }
button { cursor: pointer; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a { color: #295e39; text-underline-offset: .17em; }
.skip {
  position: absolute;
  left: 16px;
  top: -10rem;
  z-index: 20;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: white;
  color: var(--ink);
}
.skip:focus { top: 12px; }
.shell {
  margin-inline: auto;
  max-width: 760px;
  min-width: 0;
}
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: max(22px, env(safe-area-inset-top)) 24px 23px;
  background: var(--deep);
  color: #fffef6;
}
.brand, .masthead-copy { position: relative; z-index: 2; }
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .84rem;
  font-weight: 680;
  letter-spacing: -.015em;
}
.brand-sign {
  position: relative;
  width: 23px;
  height: 23px;
  background: var(--acid);
  border-radius: 50%;
}
.brand-sign::after {
  content: "";
  position: absolute;
  inset: 4px 7px;
  background: var(--deep);
  clip-path: polygon(60% 0, 0 57%, 40% 56%, 24% 100%, 100% 36%, 57% 39%);
}
.product-name {
  margin: 0;
  font-size: clamp(1.7rem, 5.7vw, 2.55rem);
  font-weight: 680;
  letter-spacing: -.052em;
  line-height: 1.04;
}
.purpose {
  max-width: 29ch;
  margin: .55rem 0 0;
  color: #dfebdc;
  font-size: .85rem;
  line-height: 1.45;
}
.district {
  --window: #bed4ac;
  position: absolute;
  overflow: hidden;
  z-index: 0;
  right: -40px;
  bottom: -7px;
  width: 128px;
  height: 85px;
  opacity: .63;
  pointer-events: none;
}
.sun {
  position: absolute;
  right: 12%;
  top: 2%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d3ef9a;
}
.roofline {
  position: absolute;
  inset: auto auto 0;
  clip-path: polygon(0 26%, 72% 0, 100% 14%, 100% 100%, 0 100%);
  background: #76967a;
}
.roofline::after {
  content: "";
  position: absolute;
  inset: 40% 10% 12%;
  background:
    repeating-linear-gradient(to right, transparent 0 8%, #76967a 8% 17%),
    repeating-linear-gradient(to bottom, var(--window) 0 23%, transparent 23% 51%);
}
.roofline-back { bottom: 8%; right: 0; width: 47%; height: 61%; }
.roofline-front { bottom: -6%; left: 1%; width: 73%; height: 80%; background: #9cba94; }
.roofline-front::after {
  background:
    repeating-linear-gradient(to right, transparent 0 8%, #9cba94 8% 17%),
    repeating-linear-gradient(to bottom, #436852 0 21%, transparent 21% 49%);
}
.solar-array {
  position: absolute;
  left: 16%;
  top: 16%;
  width: 54%;
  height: 10%;
  transform: skewY(-12deg);
  background: repeating-linear-gradient(90deg, #30583e 0 18%, #93b19a 18% 20%);
}
.step-panel {
  min-width: 0;
  padding: 25px max(21px, env(safe-area-inset-right)) max(34px, env(safe-area-inset-bottom)) max(21px, env(safe-area-inset-left));
  background: var(--paper);
}
.step-panel:focus, .step-title:focus { outline: none; }
.step-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}
.step-meta span:last-child { color: var(--leaf); }
.progress {
  display: flex;
  gap: 5px;
  height: 5px;
  border-radius: 3px;
}
.progress i {
  flex: 1;
  height: 100%;
  background: #dce5d8;
  border-radius: inherit;
}
.progress .is-current { background: #77aa48; }
.progress .is-complete, .progress-fill { background: var(--leaf); border-radius: inherit; }
.step-title {
  margin: 1.5rem 0 .45rem;
  color: var(--ink);
  font-size: clamp(1.68rem, 5.8vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.step-intro { margin: 0 0 1.55rem; max-width: 56ch; color: var(--muted); line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 16px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label, .field > label:first-child, .field > legend {
  display: block;
  padding: 0;
  margin: 0 0 .46rem;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 670;
  letter-spacing: -.009em;
}
.field-hint, .error {
  margin: .35rem 0 0;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted);
}
.error { color: var(--error); font-weight: 600; }
.input-wrap { position: relative; }
.unit { position: absolute; transform: translateY(-50%); top: 50%; right: .85rem; color: var(--muted); pointer-events: none; font-size: .85rem; }
.field :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: .7rem .82rem;
  border: 1.5px solid var(--field-line);
  border-radius: .72rem;
  color: var(--ink);
  background: #fff;
  line-height: 1.35;
  font-size: 1rem;
}
.input-wrap:has(.unit) input { padding-right: 5rem; }
input::placeholder, textarea::placeholder { color: #65796b; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.quantity {
  display: flex;
  align-items: center;
  min-height: 49px;
  border: 1.5px solid var(--field-line);
  border-radius: .72rem;
  background: white;
}
.field .quantity input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: .3rem;
  border: 0;
  border-radius: 3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity input::-webkit-inner-spin-button { appearance: none; }
.stepper-minus, .stepper-plus {
  width: 45px;
  min-height: 45px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: .62rem;
  color: var(--leaf);
  background: transparent;
  font-size: 1.3rem;
  font-weight: 600;
}
.quantity button:disabled { cursor: default; opacity: .45; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
.choice {
  display: flex;
  align-items: center;
  gap: .52rem;
  min-height: 47px;
  padding: .65rem .85rem;
  border: 1.5px solid var(--field-line);
  border-radius: .72rem;
  background: #fff;
  color: var(--text);
  font-size: .94rem;
  font-weight: 550;
  cursor: pointer;
}
.choice:has(:checked) { border-color: var(--leaf); background: var(--pale); color: var(--ink); }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--leaf); }
.notice, .legal {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: .7rem;
  background: var(--pale);
  font-size: .87rem;
}
.notice { border-left: 3px solid #78a659; }
.calculated {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding: .8rem 1rem;
  border: 1px solid #ccddbf;
  border-radius: .72rem;
  color: var(--ink);
  background: var(--pale);
  font-size: .86rem;
}
.calculated strong { color: var(--leaf); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.legal label { cursor: pointer; }
.legal { display: flex; align-items: flex-start; gap: .65rem; }
.legal input[type="checkbox"] { margin-top: .13rem; }
.field .optional { color: var(--muted); font-size: .79rem; font-weight: 450; }
.field .error:not([hidden]) { display: block; }
.copy-action { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .5rem; }
.copy-status { color: var(--muted); font-size: .82rem; }
.copy-fallback { width: 100%; min-height: 90px; padding: .5rem; color: var(--ink); }
.site-footer {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  padding: .35rem 1rem max(1rem,env(safe-area-inset-bottom));
  font-size: .8rem;
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1.7rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  max-width: 100%;
  padding: .72rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: .68rem;
  color: var(--ink);
  font-weight: 680;
  line-height: 1.2;
  text-decoration: none;
}
.btn-primary { margin-inline-start: auto; background: var(--deep); color: #fffdf6; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--leaf); }
.btn-primary:active { background: #102a20; }
.btn-secondary:active, .stepper-minus:active, .stepper-plus:active { background: #e5efdf; }
.review-card {
  margin: .8rem 0;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: white;
}
.review-header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.review-header :is(h2,h3) { margin: 0; font-size: 1.05rem; color: var(--ink); }
.edit-link { min-height: 44px; margin: -.25rem -.35rem -.25rem 0; padding: .35rem; border: 0; background: transparent; color: var(--leaf); font-size: .86rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.review-card dl { margin: .35rem 0 0; font-size: .87rem; }
.review-card dl > div { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(0,1fr); gap: .6rem; padding: .42rem 0; border-top: 1px solid #e6ece2; }
.review-card dt { color: var(--muted); }
.review-card dd { margin: 0; color: var(--ink); text-align: end; overflow-wrap: anywhere; font-weight: 580; }
@media (hover: hover) {
  .btn-primary:hover { background: #26513c; }
  .btn-secondary:hover, .edit-link:hover, .quantity button:enabled:hover { background: var(--pale); }
  .choice:hover { border-color: var(--leaf); }
}
@media (min-width: 520px) {
  .shell { padding: clamp(16px, 4vw, 45px) 25px; }
  .masthead { padding: 26px 35px; border-radius: 22px 22px 0 0; }
  .district { right: 4%; bottom: -9px; width: 195px; height: 125px; opacity: .85; }
  .step-panel { padding: 32px 35px; border-radius: 0 0 22px 22px; box-shadow: 0 12px 35px -22px #19352741; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 920px) {
  .shell { display: grid; grid-template-columns: minmax(270px,.69fr) minmax(0,1.31fr); align-items: start; max-width: 1152px; padding: clamp(30px,6vh,72px) 36px; gap: 18px; }
  .masthead { position: sticky; top: 28px; min-height: 490px; gap: 44px; padding: 32px; border-radius: 22px; }
  .product-name { max-width: 12ch; font-size: clamp(2.28rem,4vw,3rem); }
  .purpose { margin-top: 1rem; font-size: 1rem; max-width: 24ch; }
  .district { left: 9%; right: auto; bottom: -1%; width: 94%; height: 165px; opacity: .9; }
  .step-panel { border: 1px solid #dce4d8; border-radius: 22px; padding: clamp(30px,3.8vw,48px); }
  .step-title { margin-top: 1.75rem; }
}
@media (max-width: 767px) {
  body { background: white; }
  .shell { max-width: none; padding: 0; }
  .masthead { display: none; }
  .step-panel {
    background: white;
    border-radius: 0;
    box-shadow: none;
    padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 22px max(18px, env(safe-area-inset-left));
  }
  .step-title { margin-top: 1.05rem; }
  .step-intro { margin-bottom: 1rem; }
  .field-grid { row-gap: 13px; }
  .actions { margin-top: 1.15rem; padding-top: .75rem; }
}
@media (max-width: 359px) {
  .step-panel { padding-inline: 14px; }
  .actions { align-items: stretch; }
  .btn { padding-inline: .85rem; }
}
@media (max-width: 767px) and (max-height: 540px) {
  .step-panel:has(#wohneinheiten) {
    padding-top: max(9px, env(safe-area-inset-top));
  }
  .step-panel:has(#wohneinheiten) .step-title { margin: .55rem 0 .25rem; }
  .step-panel:has(#wohneinheiten) .step-intro { margin-bottom: .65rem; font-size: .9rem; line-height: 1.4; }
  .step-panel:has(#wohneinheiten) .field-grid { row-gap: 8px; }
  .step-panel:has(#wohneinheiten) .field-label { margin-bottom: .25rem; }
  .step-panel:has(#wohneinheiten) .actions { margin-top: .5rem; padding-top: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .progress i { border: 1px solid CanvasText; }
  .progress .is-current, .progress .is-complete { background: Highlight; forced-color-adjust: none; }
  .choice:has(:checked), .btn { border-color: ButtonText; }
}