:root {
  --ink: #0f233c;
  --ink-soft: #1a1f2c;
  --bg: #ffffff;
  --surface: #ffffff;
  --muted: #5c667a;
  --border: #d8deeb;
  --accent: #0f233c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html[lang="de"] .only-en {
  display: none !important;
}

html[lang="en"] .only-de {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 2%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  background-color: #073f66;
  background-image: none;
}

.page-shell {
  background: var(--bg);
  min-height: calc(100vh - 8vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--bg);
  isolation: isolate;
}

.site-nav-toggle {
  display: none;
  position: relative;
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.site-nav-toggle:hover {
  color: var(--ink);
}

.site-nav-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 35%, transparent);
  outline-offset: 2px;
}

.site-nav-toggle-bars,
.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-nav-toggle-bars::before {
  top: -6px;
}

.site-nav-toggle-bars::after {
  top: 6px;
}

.site-nav-backdrop {
  display: none;
}

.site-header-drawer {
  display: contents;
}

.site-main-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 10px;
}

.site-main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.site-main-nav a:hover {
  color: var(--ink);
}

.logo {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: #000;
}

.logo:hover {
  opacity: 0.88;
}

.logo-word {
  display: inline-block;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #000;
}

.logo-complex {
  font-weight: 700;
}

.logo-charts {
  font-weight: 200;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (min-width: 981px) {
  .site-nav-toggle,
  .site-nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 980px) {
  /* Header bleibt in .page-shell wie der Main-Content — sichtbarer blauer Rand durch body-Padding. */
  .site-header {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 14px 24px;
    padding: 14px calc(24px + env(safe-area-inset-right, 0px)) 14px
      calc(24px + env(safe-area-inset-left, 0px));
  }

  .site-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
    width: min(20rem, 100vw);
    max-width: 100%;
    height: 100dvh;
    height: 100vh;
    margin: 0;
    padding: 4.5rem 1.25rem 1.5rem;
    padding-top: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 3.25rem));
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    background: #fff;
    box-shadow: none;
    transform: translateX(calc(100% + 28px));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }

  /* Kein Transform-Animation beim Breakpoint-Wechsel: nur animieren wenn das Menü offen ist. */
  .site-header:not(.is-nav-open) .site-header-drawer {
    transition: none;
  }

  .site-header.is-nav-open .site-header-drawer {
    transform: translateX(0);
    box-shadow: -4px 0 24px rgba(15, 35, 60, 0.12);
    pointer-events: auto;
  }

  /* Unsichtbar: kein Abdunkeln über Header/Inhalt — Klick schließt das Menü weiterhin. */
  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-nav-backdrop[hidden] {
    display: none !important;
  }

  .site-header-drawer .site-main-nav {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
  }

  .site-header-drawer .site-main-nav a {
    font-size: 15px;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-header-drawer .header-actions {
    margin-left: 0;
    margin-top: auto;
    padding-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-header-drawer .lang-switch {
    align-self: center;
    width: auto;
    flex: 0 0 auto;
  }

  .site-header-drawer .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

body.site-nav-open {
  overflow: hidden;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch button {
  margin: 0;
  padding: 6px 12px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--ink-soft);
}

.lang-switch button.is-active {
  background: var(--ink);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

.site-header .btn-primary {
  background: var(--accent);
  color: #fff;
}

.site-header .btn-primary:hover {
  filter: brightness(1.06);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.hero {
  padding: 56px 0 48px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.95fr);
  grid-template-rows: auto auto;
  column-gap: clamp(28px, 4vw, 48px);
  row-gap: 20px;
  align-items: start;
}

.hero-intro {
  grid-column: 1;
  grid-row: 1;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: min(100%, 520px);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: none;
  box-shadow: none;
  background: transparent;
}

.hero-rest {
  grid-column: 1;
  grid-row: 2;
}

@media (max-width: 899px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-intro {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    max-width: 440px;
    margin: 4px 0 8px;
  }

  .hero-rest {
    grid-column: 1;
    grid-row: auto;
  }
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 8px;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
}

.section-intro {
  margin: 0 0 24px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 15px;
}

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

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.contact-email-card .contact-email-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-email-address {
  margin: 0;
}

.contact-email-link {
  display: inline-block;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.contact-email-link:hover {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 35%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.diagram-showcase {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .diagram-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .diagram-showcase {
    grid-template-columns: 1fr;
  }
}

.diagram-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.diagram-card-media {
  display: block;
  margin: 0;
  padding: 12px 12px 0;
  background: linear-gradient(180deg, #eef1f6 0%, #f8f9fb 100%);
  border-bottom: 1px solid var(--border);
}

.diagram-card-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: none;
  box-shadow: none;
}

.diagram-card h3 {
  margin: 0;
  padding: 16px 18px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.diagram-card p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.diagram-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

.feature-list {
  display: grid;
  gap: 60px;
  margin-top: 8px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.feature-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.feature-row:nth-child(even) .feature-copy {
  order: 2;
}

.feature-row:nth-child(even) .feature-media {
  order: 1;
}

.feature-copy {
  padding: 18px;
}

.feature-copy h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--ink);
}

.feature-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.feature-media {
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(180deg, #eef1f6 0%, #f8f9fb 100%);
}

.feature-media img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-copy,
  .feature-row:nth-child(even) .feature-media {
    order: initial;
  }
}

.marketing-story {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.marketing-story p {
  margin: 0 0 1rem;
}

.marketing-story p:last-child {
  margin-bottom: 0;
}

.section-testimonial {
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}

.section-testimonial .testimonial {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.testimonial {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.testimonial-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-quote p {
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink);
}

.testimonial-author {
  margin: 18px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.bullets {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 14px;
  color: var(--muted);
}

.bullets li {
  margin-bottom: 8px;
}

.bullets li:last-child {
  margin-bottom: 0;
}

.cta-strip {
  margin-top: 16px;
  padding: 28px 24px;
  background: var(--ink);
  color: #e8ecf4;
  border-radius: 12px;
  text-align: center;
}

.cta-strip h2 {
  margin: 0 0 8px;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
}

.cta-strip p {
  margin: 0 0 18px;
  font-size: 14px;
  opacity: 0.9;
}

.cta-strip .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-strip .btn-primary:hover {
  filter: brightness(0.97);
}

/* 404 — matches marketing shell typography & palette */
.error-page {
  border-top: none;
  padding: 40px 20px 56px;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.error-page__visual {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
}

.error-page__svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.error-page__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.error-page__code {
  margin: 0 0 4px;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 200;
  font-size: clamp(4rem, 14vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
  opacity: 0.92;
}

.error-page__title {
  margin: 0 0 14px;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.error-page__lead {
  margin: 0 auto 28px;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink-soft);
}

.site-footer-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-link-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-link-btn:hover {
  color: var(--ink-soft);
}

/* Modal (imprint) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 29, 0.45);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 520px);
  overflow: auto;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-dialog h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink);
}

.modal-body p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 88px;
}
