:root {
  --black: #000000;
  --ink: #151515;
  --paper: #f2f2f2;
  --white: #ffffff;
  --purple: #bab0d7;
  --purple-light: #e8e3f2;
  --lime: #d0d953;
  --lime-light: #f1f4c9;
  --muted: #5e5e5e;
  --line: #c8c8c8;
  --max: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
ul, ol { padding-left: 1.25rem; }
::selection { background: var(--purple); color: var(--black); }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 84px 0; }
.section[id] { scroll-margin-top: 88px; }
.section-compact { padding: 64px 0; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--black);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 46px; height: 35px; display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 46px; height: auto; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 19px; font-weight: 900; letter-spacing: -0.04em; }
.brand-copy small { margin-top: 5px; font-family: var(--serif); font-size: 11px; font-style: italic; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.main-nav > a:not(.nav-login) { border-bottom: 2px solid transparent; }
.main-nav > a:not(.nav-login):hover { border-bottom-color: var(--lime); }
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}
.nav-login:hover { background: var(--lime); color: var(--black); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: var(--white); border: 1px solid var(--black); }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--black); }

/* Shared type and actions */
.context-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}
.context-line::before { content: ""; width: 30px; height: 4px; background: currentColor; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); gap: 70px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.section-heading p { margin-bottom: 4px; color: var(--muted); font-size: 18px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}
.button-dark { background: var(--black); color: var(--white); }
.button-dark:hover { background: var(--purple); color: var(--black); }
.button-light:hover, .button-ghost:hover { background: var(--lime); }
.button-lime { background: var(--lime); color: var(--black); }
.button-lime:hover { background: var(--white); }
.text-action { display: inline-flex; gap: 8px; align-items: center; padding-bottom: 2px; border-bottom: 2px solid currentColor; font-weight: 800; }
.text-action:hover { border-bottom-color: var(--purple); }

/* Home hero */
.hero { background: var(--lime); border-bottom: 2px solid var(--black); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.72fr); gap: 64px; align-items: center; padding: 70px 0 56px; }
.hero-copy { align-self: center; }
.hero h1 { max-width: 760px; margin-bottom: 25px; font-size: clamp(46px, 5.6vw, 72px); letter-spacing: -0.055em; overflow-wrap: anywhere; }
.hero h1 em { font-family: var(--serif); font-weight: 500; letter-spacing: -0.04em; }
.hero-lead { max-width: 680px; margin-bottom: 28px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ledger { align-self: center; background: var(--purple); border: 2px solid var(--black); }
.ledger-head { padding: 19px 22px; border-bottom: 2px solid var(--black); font-weight: 800; }
.ledger-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 17px 22px; border-bottom: 1px solid var(--black); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row span { color: #35313d; font-size: 13px; font-weight: 700; }
.ledger-row strong { font-size: 15px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--black); background: var(--white); }
.hero-facts > div { padding: 20px 22px; border-right: 1px solid var(--black); }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.hero-facts dd { margin: 0; font-weight: 800; }

/* Service overview */
.service-overview { background: var(--white); }
.service-list { border-top: 2px solid var(--black); }
.service-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--black);
}
.service-row h3 { margin: 0; font-size: 24px; }
.service-row p { max-width: 680px; margin: 0; color: var(--muted); }
.service-row a { font-size: 14px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.service-row a:hover { text-decoration-color: var(--purple); }

/* Package comparison */
.packages { background: var(--paper); border-block: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 2px solid var(--black); background: var(--white); }
.package-table { width: 100%; border-collapse: collapse; }
.package-table th, .package-table td { padding: 21px 20px; text-align: left; vertical-align: top; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.package-table th:last-child, .package-table td:last-child { border-right: 0; }
.package-table tbody tr:last-child td { border-bottom: 0; }
.package-table thead th { background: var(--black); color: var(--white); font-size: 13px; }
.package-table tbody th { width: 195px; background: var(--lime-light); font-size: 20px; }
.package-table tbody tr:nth-child(2) th { background: var(--purple-light); }
.package-table tbody tr:nth-child(3) th { background: #dddddd; }
.package-table td { color: var(--muted); }
.package-table td strong { color: var(--ink); }
.package-table .package-action { width: 190px; }
.package-table .package-action button { padding: 0 0 3px; background: transparent; border: 0; border-bottom: 2px solid var(--black); font-weight: 800; text-align: left; }

.package-list { border-top: 2px solid var(--black); }
.package-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(210px, 1fr) minmax(270px, 1.25fr) 190px;
  align-items: stretch;
  border-bottom: 1px solid var(--black);
}
.package-item > * { min-width: 0; padding: 24px 22px; border-right: 1px solid var(--line); }
.package-item > *:last-child { border-right: 0; }
.package-item header { background: var(--lime-light); }
.package-item:nth-child(2) header { background: var(--purple-light); }
.package-item:nth-child(3) header { background: #e5e5e5; }
.package-item header span, .package-item b { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.package-item h3 { margin: 0; font-size: 23px; letter-spacing: -0.025em; }
.package-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.package-item button {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px;
  padding: 12px 0 5px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--black);
  font-weight: 800;
  text-align: left;
}
.package-item button:hover { border-bottom-color: var(--purple); }

/* Functional package finder */
.configurator { background: var(--black); color: var(--white); }
.configurator-shell { display: grid; grid-template-columns: minmax(250px, 0.58fr) minmax(0, 1.42fr); gap: 60px; align-items: start; }
.config-intro { position: sticky; top: 112px; }
.configurator .context-line { color: var(--lime); }
.config-intro h2 { margin-bottom: 20px; font-size: clamp(35px, 4.6vw, 56px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.config-intro p { color: #d0d0d0; }
.config-note { margin-top: 25px; padding: 16px 0; border-block: 1px solid #777; color: #d0d0d0; font-size: 14px; }
.config-note strong { color: var(--white); }
.config-panel { background: var(--white); color: var(--ink); border: 2px solid var(--white); }
.config-panel fieldset { margin: 0; padding: 24px 26px 26px; border: 0; border-bottom: 1px solid var(--black); }
.config-panel legend { padding: 0 8px 0 0; font-size: 19px; font-weight: 850; }
.field-help { margin: 2px 0 16px; color: var(--muted); font-size: 13px; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice, .size-choice button {
  min-height: 66px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--black);
  font-weight: 700;
}
.choice { display: grid; gap: 3px; align-content: center; text-align: left; }
.choice span { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.choice.active, .size-choice button.active { background: var(--lime); border: 2px solid var(--black); }
.size-choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size-choice button { display: grid; min-height: 82px; text-align: left; }
.size-choice strong { font-size: 21px; }
.size-choice span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addon-grid label { display: flex; gap: 10px; min-height: 72px; padding: 12px; border: 1px solid #888; cursor: pointer; }
.addon-grid label:has(input:checked) { background: var(--purple-light); border: 2px solid var(--black); }
.addon-grid input { margin-top: 5px; accent-color: var(--black); }
.addon-grid label > span { display: grid; }
.addon-grid b { font-size: 14px; }
.addon-grid small { color: var(--muted); font-size: 12px; }
.config-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; background: var(--purple); }
.config-summary > div { display: grid; }
.config-summary span { color: #4c4656; font-size: 12px; }
.config-summary strong { font-size: 24px; }
.config-summary small { color: #4c4656; }
.config-actions { display: grid; justify-items: stretch; gap: 8px; min-width: 220px; }
.config-skip { padding: 5px 0 2px; background: transparent; border: 0; border-bottom: 1px solid var(--black); font-size: 12px; font-weight: 750; }
.config-skip:hover { border-bottom-color: transparent; }

/* Managed scope */
.managed { background: var(--white); }
.managed-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 80px; align-items: start; }
.managed-copy h2 { margin-bottom: 24px; font-size: clamp(35px, 4.5vw, 56px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.managed-copy > p { max-width: 550px; color: var(--muted); font-size: 18px; }
.scope-list { border-top: 2px solid var(--black); }
.scope-item { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--black); }
.scope-item h3 { margin: 0; font-size: 19px; }
.scope-item p { margin: 0; color: var(--muted); }

/* Provider and local trust */
.provider { background: var(--purple); border-block: 2px solid var(--black); }
.provider-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.provider h2 { margin-bottom: 24px; font-size: clamp(35px, 4.5vw, 56px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.provider-copy p { max-width: 680px; font-size: 18px; }
.provider-facts { border-top: 2px solid var(--black); }
.provider-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--black); }
.provider-facts dt { color: #4b4655; }
.provider-facts dd { margin: 0; font-weight: 800; }
.provider a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }

/* Portal */
.portal { background: var(--paper); }
.portal-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 72px; align-items: center; }
.portal h2 { margin-bottom: 23px; font-size: clamp(35px, 4.5vw, 55px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.portal-copy > p { max-width: 590px; color: var(--muted); font-size: 18px; }
.portal-register { background: var(--white); border: 2px solid var(--black); }
.portal-register header { padding: 18px 22px; background: var(--black); color: var(--white); font-weight: 800; }
.portal-register dl { margin: 0; }
.portal-register div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--black); }
.portal-register div:last-child { border-bottom: 0; }
.portal-register dt { color: var(--muted); }
.portal-register dd { margin: 0; font-weight: 700; }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr); gap: 80px; }
.faq h2 { margin-bottom: 20px; font-size: clamp(35px, 4.5vw, 54px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.faq-intro { color: var(--muted); }
.faq-list { border-top: 2px solid var(--black); }
.faq-list details { border-bottom: 1px solid var(--black); }
.faq-list summary { position: relative; padding: 22px 42px 22px 0; list-style: none; font-weight: 800; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 14px; right: 0; font-size: 28px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 780px; padding: 0 46px 22px 0; color: var(--muted); }

/* Contact */
.contact { background: var(--lime); border-top: 2px solid var(--black); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 62px; align-items: start; }
.contact h2 { margin-bottom: 21px; font-size: clamp(37px, 4.8vw, 58px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.contact-copy > p { max-width: 540px; font-size: 18px; }
.contact-direct { margin-top: 32px; border-top: 2px solid var(--black); }
.contact-direct a { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--black); }
.contact-direct span { font-size: 13px; }
.contact-direct strong { font-size: 16px; }
.contact-brand { width: 138px; margin-top: 35px; }
.contact-form { display: grid; gap: 13px; padding: 25px; background: var(--white); border: 2px solid var(--black); }
.selected-package { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding: 11px 13px; background: var(--purple-light); border-left: 6px solid var(--purple); }
.selected-package span { color: var(--muted); font-size: 12px; }
.selected-package strong { grid-column: 1; }
.selected-package a { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding-bottom: 2px; border-bottom: 1px solid var(--black); font-size: 12px; font-weight: 700; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span { font-size: 13px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; background: var(--white); border: 1px solid #777; border-radius: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--purple); outline-offset: 0; border-color: var(--black); }
.contact-form textarea { resize: vertical; }
.contact-form label > span small { color: var(--muted); font-weight: 400; }
.privacy-check { display: flex !important; grid-template-columns: auto 1fr; gap: 9px; align-items: flex-start; }
.privacy-check input { width: auto; margin-top: 6px; accent-color: var(--black); }
.privacy-check span { font-size: 12px !important; font-weight: 400 !important; }
.privacy-check a { text-decoration: underline; }
.form-legal-note, .form-status { margin: 0; color: var(--muted); font-size: 12px; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.submit-button { width: 100%; justify-content: space-between; }
.whatsapp-button { width: 100%; background: var(--lime-light); }
.hp-field { position: absolute !important; left: -9999px !important; }
.contact-form.is-sending { opacity: 0.65; pointer-events: none; }
.noscript-note { padding: 12px; background: #fff2d6; border: 1px solid #7a5b16; font-size: 13px; }

/* Footer */
.site-footer { padding: 58px 0 24px; background: var(--black); color: var(--white); }
.footer-top { display: grid; grid-template-columns: 0.65fr 1.05fr 0.9fr 0.68fr; gap: 44px; align-items: start; padding-bottom: 42px; border-bottom: 1px solid #666; }
.footer-brand .brand-mark { background: var(--lime); }
.footer-top > p { margin: 0; color: #bdbdbd; font-size: 15px; }
.footer-seo-links { display: grid; gap: 8px; font-size: 14px; }
.footer-seo-links a { color: #c9c9c9; }
.footer-seo-links a:hover { color: var(--lime); }
.footer-portal { justify-self: end; padding-bottom: 3px; border-bottom: 2px solid var(--lime); font-size: 14px; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; color: #999; font-size: 12px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-bottom a:hover { color: var(--lime); }

/* Editorial service pages */
.page-hero { background: var(--lime); border-bottom: 2px solid var(--black); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr); gap: 70px; align-items: end; padding: 64px 0 60px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 25px; color: #494949; font-size: 13px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { max-width: 890px; margin-bottom: 24px; font-size: clamp(42px, 5.6vw, 68px); letter-spacing: -0.05em; overflow-wrap: anywhere; hyphens: auto; }
.page-hero .lead { max-width: 790px; margin-bottom: 28px; font-size: 21px; line-height: 1.48; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-note { padding: 22px 0 22px 24px; border-left: 7px solid var(--black); }
.page-note strong { display: block; margin-bottom: 8px; font-size: 18px; }
.page-note p { margin: 0; }
.answer-band { background: var(--black); color: var(--white); }
.answer-band .container { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding-block: 27px; }
.answer-band strong { color: var(--lime); }
.answer-band p { max-width: 930px; margin: 0; font-size: 18px; }
.page-main { padding: 82px 0 100px; background: var(--white); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 76px; align-items: start; }
.service-article { max-width: 830px; }
.service-article h2 { margin: 58px 0 18px; font-size: clamp(31px, 4vw, 47px); letter-spacing: -0.045em; }
.service-article h2:first-child { margin-top: 0; }
.service-article h3 { margin: 30px 0 10px; font-size: 21px; }
.service-article p, .service-article li { color: #4f4f4f; font-size: 18px; }
.service-article a:not(.button) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.definition-list { margin: 32px 0; border-top: 2px solid var(--black); }
.definition-list div { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--black); }
.definition-list dt { font-weight: 800; }
.definition-list dd { margin: 0; color: var(--muted); }
.decision-table { width: 100%; margin: 30px 0; border-collapse: collapse; }
.decision-table th, .decision-table td { padding: 15px; text-align: left; vertical-align: top; border: 1px solid var(--black); }
.decision-table th { background: var(--paper); }
.page-aside { position: sticky; top: 110px; padding: 24px 0 24px 24px; border-left: 7px solid var(--purple); }
.page-aside h2 { margin-bottom: 16px; font-size: 27px; }
.page-aside ul { margin: 0 0 24px; padding-left: 19px; }
.page-aside li { margin-bottom: 8px; font-size: 14px; }
.provider-note { margin-top: 58px; padding: 26px; background: var(--purple-light); border-left: 7px solid var(--purple); }
.provider-note h2 { margin-top: 0; font-size: 28px; }
.provider-note p:last-child { margin-bottom: 0; }
.related-links { margin-top: 64px; padding-top: 28px; border-top: 2px solid var(--black); }
.related-links h2 { margin-top: 0; font-size: 29px; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.related-list a { padding-bottom: 2px; border-bottom: 1px solid var(--black); font-weight: 700; }
.related-list a:hover { border-bottom-color: var(--purple); }
.closing-cta { margin-top: 60px; padding: 32px; background: var(--lime); border: 2px solid var(--black); }
.closing-cta h2 { margin: 0 0 12px; font-size: 32px; }
.closing-cta p { max-width: 680px; color: #333; }

/* Legal, confirmation, error and portal gateway */
.legal-hero { padding: 66px 0 56px; background: var(--lime); border-bottom: 2px solid var(--black); }
.legal-hero h1 { max-width: 1000px; margin-bottom: 0; font-size: clamp(38px, 5.5vw, 62px); letter-spacing: -0.045em; overflow-wrap: anywhere; hyphens: auto; }
.legal-main { padding: 70px 0 100px; background: var(--white); }
.legal-content { max-width: 880px; }
.legal-content h2 { margin: 45px 0 14px; font-size: 27px; }
.legal-content h3 { margin: 30px 0 10px; font-size: 20px; }
.legal-content p, .legal-content li { color: #4f4f4f; }
.legal-content a { text-decoration: underline; }
.legal-card { margin: 24px 0; padding: 22px; background: var(--paper); border-left: 7px solid var(--purple); }
.back-home { display: inline-flex; margin-top: 38px; padding-bottom: 2px; border-bottom: 2px solid var(--lime); font-weight: 800; }
.legal-content code { padding: 0.1rem 0.3rem; background: #e8e8e8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.message-page { min-height: 100vh; display: grid; place-items: center; padding: 36px; background: var(--lime); }
.message-panel { width: min(760px, 100%); padding: 42px; background: var(--white); border: 3px solid var(--black); }
.message-panel h1 { margin-bottom: 18px; font-size: clamp(48px, 8vw, 82px); letter-spacing: -0.065em; }
.message-panel p { max-width: 610px; font-size: 18px; }
.message-panel .context-line { margin-top: 32px; }
.message-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.portal-gateway { min-height: 100vh; display: grid; place-items: center; padding: 35px; background: var(--paper); }
.portal-gateway-card { width: min(760px, 100%); padding: 40px; background: var(--white); border: 3px solid var(--black); }
.portal-gateway-card .brand { margin-bottom: 32px; }
.portal-gateway-card h1 { margin-bottom: 20px; font-size: clamp(42px, 7vw, 68px); letter-spacing: -0.055em; }
.portal-gateway-card p { color: var(--muted); font-size: 17px; }
.security-note { margin: 24px 0; padding: 16px; background: var(--lime-light); border-left: 7px solid var(--lime); }
.portal-gateway-card form { margin-top: 26px; }
.portal-gateway-card form .button { width: 100%; }

@media (max-width: 1020px) {
  .main-nav { gap: 16px; }
  .hero-inner, .provider-grid, .portal-grid, .page-hero-grid { gap: 44px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div:nth-child(2) { border-right: 0; }
  .hero-facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--black); }
  .configurator-shell, .managed-grid, .contact-grid, .content-layout { grid-template-columns: 1fr; }
  .config-intro, .page-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-portal { justify-self: start; }
  .package-item { grid-template-columns: minmax(170px, 0.75fr) 1fr 1.15fr; }
  .package-item button { grid-column: 1 / -1; justify-self: start; width: auto; min-width: 220px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 78px; }
  .container { width: min(var(--max), calc(100% - 34px)); }
  .section { padding: 64px 0; }
  .section[id] { scroll-margin-top: 78px; }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 24px;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .main-nav > a { padding: 11px 3px; border-bottom: 1px solid var(--line) !important; }
  .main-nav .nav-login { margin-top: 12px; padding-inline: 13px; }
  .hero-inner, .section-heading, .managed-grid, .provider-grid, .portal-grid, .faq-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 38px; padding: 46px 0 42px; }
  .hero h1 { font-size: clamp(40px, 9vw, 54px); }
  .section-heading { gap: 22px; margin-bottom: 38px; }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .scope-item { grid-template-columns: 150px 1fr; }
  .answer-band .container { grid-template-columns: 1fr; gap: 8px; }
  .page-main { padding: 64px 0 80px; }
  .page-note { max-width: 590px; }
  .package-item { grid-template-columns: 1fr 1fr; }
  .package-item header { grid-column: 1 / -1; }
  .package-item button { grid-column: 1 / -1; }
  .choice-row { grid-template-columns: 1fr; }
  .config-intro { max-width: 680px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .brand { gap: 10px; }
  .brand-mark, .brand-mark img { width: 38px; }
  .brand-mark { height: 30px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { margin-top: 4px; font-size: 10px; }
  .menu-toggle { width: 42px; height: 42px; padding: 8px; }
  .header-inner > .nav-login { min-height: 42px; padding: 9px 13px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 48px); letter-spacing: -0.045em; }
  .hero-lead { font-size: 18px; }
  .hero-ledger .ledger-row { grid-template-columns: 88px 1fr; gap: 12px; padding: 14px; }
  .ledger-head { padding: 15px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { border-right: 0; border-bottom: 1px solid var(--black); }
  .hero-facts > div:last-child { border-bottom: 0; }
  .hero-actions, .page-hero-actions, .message-actions { display: grid; }
  .button { width: 100%; }
  .package-item { grid-template-columns: 1fr; }
  .package-item header, .package-item button { grid-column: 1; }
  .package-item > * { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .package-item button { width: auto; min-width: 0; margin: 0; padding: 18px 0 6px; border-bottom: 2px solid var(--black); }
  .configurator-shell { gap: 38px; }
  .config-panel fieldset { padding: 20px 16px 22px; }
  .config-panel legend { font-size: 18px; }
  .size-choice { grid-template-columns: 1fr 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .choice, .size-choice button { min-height: 70px; }
  .addon-grid label { min-height: 66px; }
  .config-summary { align-items: stretch; flex-direction: column; padding-inline: 18px; }
  .config-actions { min-width: 0; }
  .scope-item, .provider-facts div, .portal-register div, .definition-list div { grid-template-columns: 1fr; gap: 5px; }
  .form-row.two { grid-template-columns: 1fr; }
  .contact-form { gap: 12px; padding: 16px; }
  .contact-direct a { grid-template-columns: 78px 1fr; gap: 12px; }
  .form-actions { grid-template-columns: 1fr; }
  .selected-package { grid-template-columns: 1fr; }
  .selected-package a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 5px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .page-hero-grid { padding: 48px 0; }
  .page-hero-grid { gap: 30px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 46px); letter-spacing: -0.04em; }
  .page-hero .lead { font-size: 18px; }
  .decision-table, .decision-table tbody, .decision-table tr, .decision-table td { display: block; width: 100%; }
  .decision-table thead { display: none; }
  .decision-table tr { margin-bottom: 14px; border: 1px solid var(--black); }
  .decision-table td { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 14px; border: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .decision-table td:last-child { border-bottom: 0; }
  .decision-table td::before { color: var(--muted); font-size: 11px; font-weight: 800; }
  .decision-table td:nth-child(1)::before { content: "Ausgangslage"; }
  .decision-table td:nth-child(2)::before { content: "Einordnung"; }
  .decision-table tr:has(td:nth-child(3)) td:nth-child(1)::before { content: "Technik"; }
  .decision-table tr:has(td:nth-child(3)) td:nth-child(2)::before { content: "Einsatz"; }
  .decision-table tr:has(td:nth-child(3)) td:nth-child(3)::before { content: "NEX Host"; }
  .legal-hero { padding: 46px 0 40px; }
  .legal-hero h1 { font-size: clamp(32px, 9vw, 42px); letter-spacing: -0.035em; }
  .legal-main { padding: 48px 0 72px; }
  .legal-content h2 { font-size: 24px; overflow-wrap: anywhere; }
  .message-page, .portal-gateway { padding: 18px; }
  .message-panel, .portal-gateway-card { padding: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
