:root {
  --blue: #2f6fed;
  --blue-hover: #255dcc;
  --blue-text: #2f6fed;
  --blue-soft: #eef4ff;

  --page: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;

  --text: #202735;
  --muted: #677386;
  --faint: #98a2b1;

  --border: #dfe5ec;
  --shadow: 0 14px 35px rgba(32, 39, 53, 0.08);

  --success: #2f9461;
}

html[data-theme="dark"] {
  --blue: #2f6fed;
  --blue-hover: #4a82f5;
  --blue-text: #8fb3ff;
  --blue-soft: #1a2a4a;

  --page: #11161d;
  --surface: #171d26;
  --surface-alt: #0e131a;

  --text: #eef3f8;
  --muted: #abb5c4;
  --faint: #7d8999;

  --border: #303949;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.18);

  --success: #72d3a5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  transition: background 160ms ease, color 160ms ease;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header,
.hero,
.section,
.contact-inner,
.footer {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.text-button,
.theme-button {
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.text-button {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.theme-button {
  width: 38px;
  font-size: 17px;
}

.text-button:hover,
.theme-button:hover {
  background: var(--surface-alt);
  color: var(--text);
}

html[data-theme="light"] .icon-sun,
html[data-theme="dark"] .icon-moon {
  display: none;
}

.hero {
  min-height: 620px;
  padding: 86px 0 104px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 690px;
  margin: 0 0 24px;
  font-size: clamp(46px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4.1vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin: 13px 0 9px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.hero-text,
.lead,
.contact-copy {
  color: var(--muted);
  font-size: 18px;
}

.hero-text {
  max-width: 690px;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.secondary {
  background: var(--surface);
  color: var(--text);
}

.secondary:hover {
  background: var(--surface-alt);
}

.legal-note {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.hero-visual {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.checkout-card {
  width: 170px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.checkout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.receipt-preview {
  margin: 18px 0;
}

.receipt-preview > span:not(.receipt-title) {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 9px;
  border-radius: 10px;
  background: var(--border);
}

.receipt-preview > span.short {
  width: 52%;
}

.receipt-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.qr {
  width: 76px;
  height: 76px;
  margin: 16px auto 2px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.qr i {
  background: var(--text);
  border-radius: 1px;
}

.qr i:nth-child(2),
.qr i:nth-child(4),
.qr i:nth-child(8) {
  opacity: 0.2;
}

.route {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.2;
  animation: pulse 1.3s infinite;
}

.route span:nth-child(2) {
  animation-delay: 0.15s;
}

.route span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%, 70%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.destination-stack {
  display: grid;
  gap: 9px;
}

.destination-card {
  width: 210px;
  min-height: 60px;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.destination-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: 13px;
}

.destination-card strong,
.destination-card small {
  display: block;
}

.destination-card strong {
  font-size: 12px;
}

.destination-card small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 10px;
}

.principles {
  padding: 19px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
}

.section {
  padding: 110px 0;
}

.intro {
  max-width: 850px;
  text-align: center;
}

.intro .lead {
  margin: 0 auto;
  max-width: 760px;
}

.steps {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.steps article {
  padding: 34px 34px 0 0;
}

.steps article + article {
  padding-left: 34px;
  border-left: 1px solid var(--border);
}

.step-number {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 800;
}

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

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 82px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.status-box {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-row {
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
}

.status-row + .status-row {
  border-top: 1px solid var(--border);
}

.status-icon {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-icon.success {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, transparent);
}

.status-icon.queued {
  color: var(--blue-text);
  background: var(--blue-soft);
}

.status-row strong,
.status-row small {
  display: block;
}

.status-row strong {
  font-size: 13px;
}

.status-row small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
}

.code {
  margin: 0;
  padding: 25px 27px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--text);
  font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.method {
  color: var(--blue-text);
  font-weight: 800;
}

.comment {
  color: var(--faint);
}

.contact {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.contact-inner {
  max-width: 730px;
  padding: 104px 0;
}

.form {
  margin-top: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 14px;
}

label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

textarea {
  resize: vertical;
}

.submit-button {
  margin-top: 4px;
}

.form-note,
.form-status {
  margin: 11px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.form-status {
  min-height: 18px;
  color: var(--blue-text);
}

.footer {
  min-height: 130px;
  padding: 36px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  color: var(--faint);
  font-size: 12px;
}

.footer .wordmark {
  color: var(--text);
}

.footer p {
  margin: 0;
}

.legal {
  grid-column: 1 / -1;
}

.legal summary {
  display: inline-block;
  cursor: pointer;
  color: var(--faint);
  font-weight: 600;
  list-style: none;
}

.legal summary::-webkit-details-marker {
  display: none;
}

.legal summary:hover {
  color: var(--text);
}

.legal[open] summary {
  color: var(--text);
}

.legal + .legal {
  margin-top: 4px;
}

.footer .legal-text {
  max-width: 760px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer .legal-text p + p {
  margin-top: 10px;
}

.legal-text a {
  color: var(--blue-text);
}

.legal-text a:hover {
  text-decoration: underline;
}

html[lang="en"] .legal-de,
html[lang="de"] .legal-en {
  display: none;
}

@media (max-width: 820px) {
  .hero,
  .split-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 60px;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
    min-height: 270px;
    min-width: 0;
    transform: scale(0.92);
  }

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

  .steps article {
    padding: 28px 0;
  }

  .steps article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .split-section {
    gap: 42px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .contact-inner,
  .footer {
    width: min(100% - 28px, 1040px);
  }

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

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text,
  .lead,
  .contact-copy {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    margin: -24px -30px;
    transform: scale(0.76);
  }

  .section {
    padding: 78px 0;
  }

  .contact-inner {
    padding: 78px 0;
  }

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