:root {
  --navy: #05070b;
  --blue: #1a5fb4;
  --cyan: #22d3ee;
  --turquoise: #2dd4bf;
  --accent-text: #5eead4;
  --paper: #06080c;
  --paper-soft: #12151e;
  --text: #e9edf4;
  --text-soft: #8d98ab;
  --border: rgba(222, 232, 250, 0.11);
  --surface: #171b25;
  --focus: #5eead4;
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #0a0f1a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.003em;
}

a { color: inherit; }

#main {
  transition: opacity 0.12s ease;
  background: var(--paper-soft);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
}

.header-inner .brand { justify-self: start; }
.header-inner nav.main-nav { justify-self: center; }
.header-inner .header-actions { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.89rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible,
nav.main-nav a[aria-current="page"] { color: var(--text); }

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

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-select:hover,
.lang-select:focus-visible { border-color: var(--accent-text); }

.lang-select option { background: var(--surface); color: var(--text); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.89rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover { opacity: 0.86; }

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

.btn-ghost:hover { border-color: color-mix(in srgb, var(--border) 40%, var(--text)); }

.btn-light {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
}

.btn-light:hover { background: rgba(255,255,255,0.18); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 100px;
  background: var(--paper-soft);
  color: var(--text);
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(34,211,238,0.18), rgba(45,212,191,0.07) 60%, transparent 75%);
  filter: blur(10px);
  z-index: -1;
}

.page-hero {
  padding: 56px 0 32px;
}

.hero-full {
  min-height: calc(100svh - 93px);
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.hero-full .wrap { width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.hero-content { min-width: 0; }

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-visual img {
  width: clamp(220px, 22vw, 380px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(8, 20, 40, 0.45));
}

@media (max-width: 860px) {
  .hero-visual { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1.14;
  margin: 0 0 22px;
  max-width: 760px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 640px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.68);
  max-width: 580px;
  margin: 0 0 36px;
  line-height: 1.6;
}

.page-hero p.lead { margin-bottom: 0; }

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

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

.hero .btn-ghost {
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

.hero .btn-ghost:hover { border-color: rgba(255,255,255,0.4); }

/* Sections */
section { padding: 92px 0; }
.section-compact { padding: 16px 0 48px; }

.section-head {
  max-width: 600px;
  margin: 0 0 52px;
}

.section-head .kicker {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.section-head p { color: var(--text-soft); margin: 0; font-size: 1rem; }

.section-link { margin-top: 36px; }
.section-link a {
  text-decoration: none;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.93rem;
}
.section-link a:hover { text-decoration: underline; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.card {
  background: var(--surface);
  padding: 32px;
}

.section-compact .card { padding: 24px 28px; }
.section-compact .card .icon { margin-bottom: 10px; }
.section-compact .card h2 { margin-bottom: 6px; }

.card .icon {
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}

.section-compact .card .badge { margin-bottom: 12px; }

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 650;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.card ul {
  margin: 16px 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.card ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.card ul li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-soft);
}

.band {
  background: var(--paper-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.step {
  background: var(--surface);
  padding: 28px 24px;
}

.step .num {
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.step h2,
.step h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 650; }
.step p { margin: 0; color: var(--text-soft); font-size: 0.88rem; }

.contact-panel {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 52px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--turquoise));
}

.contact-panel h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 0 0 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.contact-panel p {
  max-width: 560px;
  color: rgba(255,255,255,0.68);
  margin: 0 0 28px;
  font-size: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.contact-item {
  background: rgba(255,255,255,0.03);
  padding: 18px 20px;
}

.contact-item .label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 6px;
}

.contact-item a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}

.contact-item .note {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.48);
  font-weight: 400;
}

.contact-grid-plain {
  margin-top: 0;
  background: var(--border);
  border-color: var(--border);
}

.contact-grid-plain .contact-item {
  background: var(--surface);
}

.contact-grid-plain .label { color: var(--text-soft); }
.contact-grid-plain a { color: var(--text); }
.contact-grid-plain .note { color: var(--text-soft); }

.contact-form {
  margin-top: 8px;
}

.contact-form .field {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .small {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--text-soft); font-size: 0.84rem; }
.footer-links a:hover { color: var(--text); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Impressum */
.legal-page .wrap { max-width: 720px; }
.legal-page h1 { font-size: 1.9rem; margin-bottom: 8px; font-weight: 650; letter-spacing: -0.01em; }
.legal-page .placeholder-note {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 24px 0 40px;
}
.legal-page h2 { font-size: 1.08rem; margin-top: 36px; font-weight: 650; }
.legal-page dl { margin: 0; }
.legal-page dt { font-weight: 600; margin-top: 10px; }
.legal-page dd { margin: 2px 0 0; color: var(--text-soft); }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 32px 22px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-inner { padding: 14px 16px; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .hero-full { min-height: auto; padding: 56px 0 64px; }
  section { padding: 60px 0; }
  .brand img { height: 30px; }
}

body.nav-open nav.main-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  gap: 18px;
}
