:root {
  --bg: #f4f6fa;
  --bg-soft: #eef1f6;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --border: #e3e7ee;
  --border-strong: #cdd4e0;
  --ink: #0b1f3a;
  --ink-2: #2a3a55;
  --ink-3: #56657f;
  --ink-4: #8593a8;
  --primary: #185fa5;
  --primary-600: #0c447c;
  --primary-50: #e6f1fb;
  --navy: #042c53;
  --cyan: #0891b2;
  --warn: #f59e0b;
  --green: #10b981;
  --shadow-lg: 0 24px 70px rgba(11, 31, 58, .16), 0 8px 22px rgba(11, 31, 58, .08);
  --shadow-md: 0 12px 34px rgba(11, 31, 58, .11), 0 4px 12px rgba(11, 31, 58, .05);
  --radius: 18px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Skip link ── */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(227, 231, 238, .75);
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 8px 28px rgba(11, 31, 58, .07);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

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

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary-600);
  background: var(--primary-50);
  outline: none;
}

.header-cta {
  padding: 10px 16px;
  border-radius: 9px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .14), 0 4px 12px rgba(24, 95, 165, .22);
  transition: background .15s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--primary-600);
  outline: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(155deg, #061e38 0%, #042c53 44%, #091c33 100%);
  padding: clamp(72px, 11vh, 108px) 0 clamp(52px, 7vh, 80px);
  overflow: hidden;
}

/* Dot grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .065) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Radial glow top-right */
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(680px, 60vw);
  height: min(680px, 60vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 95, 165, .36) 0%, transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.03;
  letter-spacing: -.022em;
  color: #ffffff;
}

.hero p {
  max-width: 540px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .58);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12), 0 8px 20px rgba(24, 95, 165, .22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-600);
  outline: none;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink-2);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--border-strong);
  background: var(--bg-soft);
  outline: none;
}

.btn-white {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.btn-white:hover,
.btn-white:focus-visible {
  background: #edf3fb;
  outline: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
  outline: none;
}

/* ── Hero visual ── */
.hero-visual {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1060px);
  margin: 52px auto 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    0 8px 32px rgba(24, 95, 165, .16),
    0 32px 80px rgba(0, 0, 0, .44);
}

/* ── Intro band ── */
.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(calc(100% - 32px), var(--max));
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: 0 8px 22px rgba(11, 31, 58, .05);
}

.intro-band div {
  min-height: 148px;
  padding: 28px 26px;
  background: var(--surface);
}

.band-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--primary);
}

.band-dot.cyan  { background: var(--cyan); }
.band-dot.green { background: var(--green); }

.intro-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.intro-band span {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.62;
}

/* ── Sections ── */
.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 60px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 1.1fr .9fr;
}

.split-reverse .section-copy {
  order: 2;
}

.split-reverse .feature-panel {
  order: 1;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 26px;
  margin-bottom: 20px;
  border-radius: 7px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.section h2,
.contact h2 {
  margin: 0;
  font-size: clamp(29px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -.015em;
}

.section p,
.contact-copy p {
  margin: 20px 0 0;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.72;
}

/* ── Check list ── */
.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary-50);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Feature panel ── */
.feature-panel {
  min-width: 0;
}

.feature-panel img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

/* ── Feature strip ── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.feature-strip article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(11, 31, 58, .04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.feature-strip article:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--primary-50);
}

.feature-strip h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}

.feature-strip p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.65;
}

/* ── Icon dots ── */
.icon-dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary);
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .14);
}

.icon-dot.warn  { background: var(--warn); }
.icon-dot.cyan  { background: var(--cyan); }
.icon-dot.green { background: var(--green); }

/* ── Workflow ── */
.workflow {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.workflow-copy {
  position: static;
}

.workflow-steps {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow-steps li {
  position: relative;
  padding: 22px 22px 22px 80px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  counter-increment: step;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.workflow-steps li:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.workflow-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.workflow-steps strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.workflow-steps span {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}

.tracking-visual {
  grid-column: 1 / -1;
  margin-top: 24px;
}

.tracking-visual img {
  width: 100%;
  margin-left: 0;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ── Contact ── */
.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 72px;
  padding: 44px;
  border-radius: 24px;
  background: linear-gradient(135deg, #042c53 0%, #0b1f3a 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -8%;
  width: 55%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(24, 95, 165, .24) 0%, transparent 68%);
  pointer-events: none;
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy img {
  margin-bottom: 22px;
  border-radius: 13px;
}

.contact-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, .58);
}

.contact-card {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-card span {
  display: block;
  color: rgba(130, 180, 240, .9);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.contact-card a {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 760;
  color: #fff;
  overflow-wrap: anywhere;
  transition: opacity .15s ease;
}

.contact-card a:hover {
  opacity: .78;
}

.contact-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .46);
  font-size: 13px;
  line-height: 1.62;
}

/* ── Footer ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--ink-4);
  font-size: 13px;
}

.impressum-trigger {
  padding: 0;
  background: none;
  border: none;
  color: var(--ink-4);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: color .15s ease;
}

.impressum-trigger:hover {
  color: var(--primary);
}

/* ── Impressum dialog ── */
.impressum-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(calc(100% - 32px), 560px);
  max-height: min(calc(100dvh - 48px), 680px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  animation: dialog-in .22s ease;
}

.impressum-dialog::backdrop {
  background: rgba(11, 31, 58, .54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.impressum-inner {
  position: relative;
  padding: 36px 40px 40px;
}

.impressum-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.impressum-close:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--bg-soft);
}

.impressum-inner h2 {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

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

.impressum-inner section:last-child {
  padding-bottom: 0;
}

.impressum-inner h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-3);
}

.impressum-inner p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.68;
}

.impressum-inner a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive 980px ── */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero-inner {
    width: calc(100% - 40px);
  }

  .hero-visual {
    width: calc(100% - 32px);
  }

  .intro-band,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-reverse .section-copy,
  .split-reverse .feature-panel {
    order: initial;
  }

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

  .workflow-copy {
    position: static;
  }

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

  .tracking-visual img {
    margin-left: 0;
  }
}

/* ── Responsive 640px ── */
@media (max-width: 640px) {
  .site-header {
    width: min(calc(100vw - 20px), 370px);
    max-width: min(calc(100vw - 20px), 370px);
    margin: 10px 0 0 10px;
    padding: 10px;
    gap: 10px;
    border-radius: 13px;
  }

  .brand img {
    width: 140px;
  }

  .header-cta {
    padding: 9px 11px;
    font-size: 12px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .hero-inner {
    width: calc(100% - 24px);
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    width: 100%;
    margin-top: 36px;
  }

  .intro-band {
    width: min(calc(100vw - 24px), 366px);
    margin-left: 12px;
  }

  .intro-band div,
  .feature-strip article {
    padding: 22px;
  }

  .section,
  .feature-strip {
    width: min(calc(100vw - 24px), 366px);
    max-width: min(calc(100vw - 24px), 366px);
    margin-left: 12px;
    margin-right: 0;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .workflow-steps li {
    padding: 68px 22px 22px;
  }

  .contact {
    width: min(calc(100vw - 24px), 366px);
    max-width: min(calc(100vw - 24px), 366px);
    margin-left: 12px;
    margin-right: 0;
    padding: 28px;
    margin-bottom: 44px;
  }

  .site-footer {
    width: min(calc(100vw - 24px), 366px);
    max-width: min(calc(100vw - 24px), 366px);
    margin-left: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .impressum-inner {
    padding: 28px 24px 32px;
  }
}
