:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f7;
  --color-surface-2: #f2f2f2;
  --color-text: #111111;
  --color-muted: #5f6368;
  --color-soft: #8a8f98;
  --color-border: #e5e7eb;
  --color-border-strong: #d7d7d7;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 24px 80px rgba(17, 17, 17, .06);
  --shadow-card: 0 16px 42px rgba(17, 17, 17, .08);
  --container: 1180px;
  --header-offset: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 40px, var(--container)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229,231,235,.9);
}
.nav-wrap { min-height: var(--header-offset); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--color-text); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; margin-left: auto; }
.nav-item { color: #4b5563; font-size: 14px; font-weight: 650; transition: color .2s ease; }
.nav-item:hover { color: var(--color-text); }
.header-calculation { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-left: auto; }
.header-calculation__price { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 120px; font-size: clamp(22px, 2.4vw, 32px); line-height: 1; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.header-calculation__button { min-height: 44px; }
.nav-toggle { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 800; line-height: 1; text-align: center; white-space: nowrap; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-text); color: #fff; }
.btn-primary:hover { background: #2b2b2b; }

.eyebrow { margin: 0 0 14px; color: #6b7280; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(42px, 7vw, 82px); line-height: .94; font-weight: 800; letter-spacing: -.07em; }
h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.055em; }
h3 { margin: 0 0 18px; font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
p { color: var(--color-muted); }

.compact-calculator-main { padding-top: 0; }
.compact-calculator { padding: 72px 0 86px; }
.compact-calculator__container { display: grid; gap: 34px; }
.compact-calculator__intro { max-width: 850px; }
.compact-calculator__intro p:not(.eyebrow) { max-width: 680px; font-size: 19px; line-height: 1.7; }
.compact-calculator__app { display: block; }
.compact-options-panel, .legal-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.compact-options-panel { padding: clamp(22px, 4vw, 34px); }
.compact-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.compact-panel-head h2 { max-width: 610px; margin-bottom: 0; font-size: clamp(28px, 3.4vw, 44px); }
.compact-scroll-area { display: grid; gap: 18px; }
.calculator-group { padding: 22px; border: 1px solid var(--color-border); border-radius: 24px; background: var(--color-surface); }
.calculator-choice-grid, .calculator-addon-grid { display: grid; gap: 12px; }
.calculator-choice-grid--two, .calculator-addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calculator-choice, .calculator-addon { position: relative; width: 100%; min-height: 112px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 5px; padding: 18px 58px 18px 18px; border: 1px solid var(--color-border); border-radius: 20px; background: #fff; color: var(--color-text); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.calculator-choice:hover, .calculator-addon:hover { transform: translateY(-1px); border-color: var(--color-border-strong); box-shadow: 0 12px 28px rgba(17,17,17,.05); }
.calculator-choice.is-selected, .calculator-addon.is-selected { border-color: var(--color-text); background: var(--color-text); color: #fff; box-shadow: var(--shadow-card); }
.calculator-choice strong, .calculator-addon strong { color: inherit; font-size: 15px; font-weight: 800; line-height: 1.25; }
.calculator-choice > span:not(.calculator-info-button), .calculator-addon > span:not(.calculator-info-button) { color: inherit; opacity: .72; font-size: 13px; line-height: 1.45; }
.calculator-choice em, .calculator-addon em { align-self: end; color: inherit; opacity: .9; font-size: 13px; font-style: normal; font-weight: 800; }
.calculator-info-button { position: absolute; top: 50%; right: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(17,17,17,.18); border-radius: 50%; background: rgba(255,255,255,.9); color: var(--color-text); font-size: 14px; font-weight: 800; font-style: normal; line-height: 1; transform: translateY(-50%); cursor: help; user-select: none; }
.is-selected .calculator-info-button { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; }
.calculator-next-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--color-border); border-radius: 24px; background: #fff; }
.calculator-next-step h3 { margin-bottom: 8px; font-size: 24px; letter-spacing: -.04em; }
.calculator-next-step p:last-child { margin-bottom: 0; }

.section { padding: 74px 0; }
.surface { background: var(--color-surface); }
.legal-card { padding: clamp(28px, 5vw, 52px); }
.legal-card h2 { font-size: clamp(30px, 4vw, 48px); }
.legal-card p:last-child { max-width: 820px; margin-bottom: 0; }

.calculator-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.calculator-modal.is-open { display: flex; }
.calculator-modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.42); backdrop-filter: blur(10px); }
.calculator-modal__dialog { position: relative; width: min(100%, 560px); max-height: min(720px, 88vh); overflow: auto; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 30px 110px rgba(17,17,17,.28); padding: 34px; outline: none; }
.calculator-modal__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 50%; background: #fff; color: var(--color-text); font-size: 24px; line-height: 1; cursor: pointer; }
.calculator-modal__dialog h2 { padding-right: 44px; font-size: 34px; }
.calculator-modal__notice { margin-top: 20px; padding: 18px; border-radius: 20px; background: var(--color-surface); }
.calculator-modal__notice p { margin-bottom: 0; }

.site-footer { padding: 46px 0; background: #fff; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 40px; }
.footer-links { display: grid; gap: 10px; min-width: 150px; }
.footer-links a { color: var(--color-muted); font-size: 14px; font-weight: 650; }
.footer-links a:hover { color: var(--color-text); }

@media (max-width: 980px) {
  .header-calculation { gap: 12px; }
  .header-calculation__price { min-width: auto; font-size: 24px; }
  .header-calculation__button { min-height: 40px; padding: 0 16px; font-size: 13px; }
  :root { --header-offset: 70px; }
  .nav-wrap { min-height: 70px; }
  .site-nav { position: fixed; top: 70px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--color-border); border-radius: 22px; background: #fff; box-shadow: var(--shadow-card); }
  .site-nav.is-open { display: flex; }
  .nav-item { padding: 14px 12px; }
  .nav-toggle { width: 42px; height: 42px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--color-border); border-radius: 50%; background: #fff; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { width: 17px; height: 2px; border-radius: 999px; background: var(--color-text); }
  .calculator-choice-grid--two, .calculator-addon-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-wrap { gap: 14px; }
  .brand { font-size: 11px; letter-spacing: .13em; }
  .header-calculation { gap: 10px; }
  .header-calculation__price { font-size: 22px; }
  .header-calculation__button { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .container { width: min(100% - 28px, var(--container)); }
  .compact-calculator-main { padding-top: 0; }
  .compact-calculator { padding: 46px 0 64px; }
  .compact-options-panel { padding: 20px; border-radius: 24px; }
  .calculator-group { padding: 16px; border-radius: 20px; }
  .calculator-next-step { grid-template-columns: 1fr; padding: 18px; }
  h1 { font-size: clamp(42px, 14vw, 58px); }
  h2 { font-size: clamp(30px, 10vw, 42px); }
  .compact-calculator__intro p:not(.eyebrow) { font-size: 17px; }
  .calculator-choice, .calculator-addon { min-height: 104px; padding: 16px 54px 16px 16px; }
  .calculator-modal { padding: 14px; }
  .calculator-modal__dialog { padding: 28px 22px; }
}


/* V26 cleanup: reduced calculator selection header and simplified request area */
.compact-panel-head--minimal { display: block; margin-bottom: 18px; }
.compact-panel-head--minimal .eyebrow { margin-bottom: 0; }
.calculator-inline-request { margin-top: 8px; width: fit-content; }
@media (max-width: 760px) {
  .calculator-inline-request { width: 100%; justify-content: center; }
}

/* V27 legal clarity: net prices and local mail client note */
.header-calculation__amount {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 120px;
  white-space: nowrap;
}
.header-calculation__amount .header-calculation__price { min-width: auto; }
.header-calculation__netto {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.calculator-request-area {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 8px;
}
.calculator-mail-note {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
}
.legal-card p + p {
  margin-top: 16px;
}
@media (max-width: 980px) {
  .header-calculation__amount { min-width: auto; }
}
@media (max-width: 760px) {
  .header-calculation__netto { font-size: 10px; letter-spacing: .1em; }
  .calculator-request-area { justify-items: stretch; }
}
