:root {
  --color-brand: #133b67;
  --color-brand-dark: #0e2742;
  --color-cta: #1e63a8;
  --color-bg: #f3f7fb;
  --color-surface: #ffffff;
  --color-text: #1c2b3a;
  --color-muted: #4c6078;
  --color-accent: #b9935a;
  --color-signal: #e56e6b;
  --color-line: #dbe6f1;
  --shadow: 0 22px 70px rgba(19, 59, 103, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 247, 251, 0.88);
  border-bottom: 1px solid rgba(219, 230, 241, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--container));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--color-brand-dark);
}

.brand img {
  width: 168px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-brand);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-brand);
  font-size: 1.35rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
}

.button {
  background: var(--color-cta);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 99, 168, 0.24);
}

.button:hover {
  background: #184f86;
}

.button-secondary {
  background: #fff;
  color: var(--color-brand);
  border-color: var(--color-line);
}

.hero {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 72px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 1.02fr);
  gap: 54px;
  align-items: center;
}

.hero.compact {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.hero.hero-text-only {
  grid-template-columns: 1fr;
  max-width: 980px;
  justify-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.08;
  color: var(--color-brand-dark);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.compact h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.lead {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  max-width: 720px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
}

.hero-media img {
  box-shadow: var(--shadow);
}

.hero-home {
  position: relative;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 92px 56px;
  margin-top: 20px;
  border-radius: 18px;
  overflow: hidden;
  min-height: clamp(440px, 66vh, 660px);
  background-color: #d7e1eb;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/brand/herobild_mobile.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(108deg, rgba(14, 39, 66, 0.92) 0%, rgba(14, 39, 66, 0.82) 36%, rgba(14, 39, 66, 0.42) 68%, rgba(14, 39, 66, 0.2) 100%);
}

.hero-home > * {
  position: relative;
  z-index: 1;
}

.hero-home .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.hero-home h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 6rem);
  text-wrap: balance;
}

.hero-home .lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 58ch;
}

.hero-home .hero-actions {
  margin-top: 24px;
}

.hero-home-copy {
  max-width: 760px;
  padding: 26px 28px;
  border-radius: 14px;
  background: rgba(14, 39, 66, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(2px);
}

@media (min-width: 1024px) {
  .hero-home::before {
    background-image: url("/assets/brand/herobild.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 74% 78%;
  }
}

.metric-strip {
  width: min(100% - 32px, var(--container));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--color-brand);
  font-size: 1.28rem;
}

.section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 84px 0;
}

.section.tight {
  padding-top: 38px;
}

.section-header {
  max-width: 820px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card,
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px;
}

.block-gap {
  margin-bottom: 58px;
}

.card.span-4 {
  grid-column: span 4;
}

.card.span-3 {
  grid-column: span 3;
}

.card.span-6 {
  grid-column: span 6;
}

.card.span-7 {
  grid-column: span 7;
}

.card.span-5 {
  grid-column: span 5;
}

.card.span-12 {
  grid-column: span 12;
}

.card.highlight {
  border-color: rgba(185, 147, 90, 0.45);
  box-shadow: var(--shadow);
}

.decision-card {
  min-height: 100%;
}

.decision-card .tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 850;
}

.decision-card.recommended {
  background: #fbf6ec;
  border-color: rgba(185, 147, 90, 0.72);
  border-width: 2px;
}

.decision-card.recommended .tag {
  background: rgba(185, 147, 90, 0.18);
  color: var(--color-brand-dark);
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.offer-card .fit {
  padding: 16px;
  border-radius: var(--radius);
  background: #eef5fb;
  color: var(--color-brand-dark);
}

.offer-card .price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.offer-card .price strong {
  display: block;
  color: var(--color-brand-dark);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 12px;
}

.position-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.position-panel {
  min-height: 190px;
  border: 2px solid;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--color-brand-dark);
  background: var(--color-surface);
}

.position-panel h3 {
  margin-bottom: 12px;
  color: var(--color-brand-dark);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  white-space: nowrap;
}

.position-panel p {
  margin: 0;
  color: #2d455f;
  font-size: 0.98rem;
}

.position-panel:nth-child(1) {
  background: rgba(185, 147, 90, 0.17);
  border-color: rgba(185, 147, 90, 0.7);
}

.position-panel:nth-child(2) {
  background: rgba(30, 99, 168, 0.11);
  border-color: rgba(30, 99, 168, 0.58);
}

.position-panel:nth-child(3) {
  background: rgba(229, 110, 107, 0.1);
  border-color: rgba(229, 110, 107, 0.56);
}

.formula {
  color: var(--color-brand);
  background: #eef5fb;
  border-left: 4px solid var(--color-accent);
  padding: 18px;
  border-radius: var(--radius);
  font-weight: 800;
}

.decision-formula {
  white-space: nowrap;
}

.think-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.think-row .lead {
  margin: 0;
}

.think-row .button {
  margin: 0;
  white-space: nowrap;
}

.muted {
  color: var(--color-muted);
}

.signal {
  color: var(--color-signal);
}

.list {
  padding-left: 1.15rem;
}

.list li + li {
  margin-top: 8px;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 58px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-brand);
  color: #fff;
  font-weight: 900;
}

.bot-frame {
  overflow: hidden;
  min-height: 560px;
  padding: 0;
}

.bot-frame iframe {
  width: 100%;
  min-height: 560px;
  border: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-brand-dark);
  background: #eef5fb;
}

details {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  color: var(--color-brand-dark);
  font-weight: 850;
}

.portrait-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

.portrait-block img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  filter: grayscale(1);
}

.cta-band {
  background: var(--color-brand-dark);
  color: #fff;
}

.cta-band .section {
  padding: 64px 0;
}

.cta-band-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 25vw, 320px);
  gap: 32px;
  align-items: center;
}

.cta-band-copy .button {
  margin-top: 16px;
}

.cta-band-portrait {
  justify-self: end;
}

.cta-band-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  border-radius: var(--radius);
  filter: grayscale(1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
}

.legal {
  max-width: 880px;
}

.legal h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.legal h2 {
  margin-top: 42px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    flex-wrap: wrap;
    min-height: 68px;
  }

  .brand img {
    width: 146px;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 0 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .metric-strip,
  .portrait-block {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
    gap: 32px;
  }

  .cta-band-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-band-portrait {
    justify-self: start;
    width: min(72vw, 320px);
  }

  .hero-home {
    padding: 52px 22px;
    min-height: 0;
  }

  .hero-home h1 {
    font-size: clamp(2.15rem, 12vw, 3.6rem);
    line-height: 1.03;
  }

  .hero-home .lead {
    margin-top: 16px;
    font-size: 1.2rem;
    line-height: 1.42;
    max-width: 34ch;
  }

  .hero-home-copy {
    padding: 18px 16px;
  }

  .hero-home::before {
    background-position: 36% center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .decision-formula {
    white-space: normal;
  }

  .think-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .think-row .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .card.span-3,
  .card.span-4,
  .card.span-5,
  .card.span-6,
  .card.span-7 {
    grid-column: auto;
  }

  .section {
    padding: 58px 0;
  }

  .block-gap {
    margin-bottom: 42px;
  }

  .position-row {
    grid-template-columns: 1fr;
  }

  .position-panel h3 {
    white-space: normal;
  }

  .footer-inner {
    flex-direction: column;
  }

  .floating-cta {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .floating-cta .button {
    width: 100%;
  }
}
