:root {
  color-scheme: dark;
  --bg: #08100f;
  --surface: #0d1917;
  --surface-strong: #12211e;
  --line: rgba(205, 229, 222, 0.17);
  --line-strong: rgba(205, 229, 222, 0.3);
  --text: #f1f8f6;
  --muted: rgba(241, 248, 246, 0.72);
  --soft: rgba(241, 248, 246, 0.5);
  --accent: #55d8b8;
  --accent-ink: #04100d;
  --warm: #f0b45c;
  --warning: #e6a64d;
  --radius: 8px;
  --max: 1120px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 15, 0.94);
  backdrop-filter: blur(16px);
}

.brand,
.topbar nav,
.actions,
.company-actions,
footer,
footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(85, 216, 184, 0.42);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand small,
.topbar nav,
footer {
  color: var(--muted);
}

.topbar nav {
  justify-content: flex-end;
  gap: clamp(12px, 2.4vw, 24px);
  font-size: 0.9rem;
  font-weight: 720;
}

.topbar nav a:hover,
.topbar nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--accent);
}

main,
footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: 460px;
  padding: clamp(42px, 6vw, 64px) 0 30px;
}

.eyebrow,
.project-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.24;
}

.lead,
.section-heading > p,
.company-section > div > p:last-child {
  color: var(--muted);
}

.lead {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  outline: 2px solid rgba(85, 216, 184, 0.26);
  outline-offset: 3px;
}

.status-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.status-head h2 {
  margin-top: 4px;
  font-size: 1.25rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--warm);
  background: rgba(240, 180, 92, 0.13);
  font-size: 0.72rem;
  font-weight: 850;
}

.status-board dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}

.status-board dt {
  color: var(--muted);
}

.status-board dd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 760;
  text-align: right;
}

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

.status-dot.ready {
  background: var(--accent);
}

.status-note {
  padding: 14px 18px;
  color: var(--soft);
  font-size: 0.82rem;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.status-strip span {
  padding: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-align: center;
}

.status-strip span + span {
  border-left: 1px solid var(--line);
}

.section {
  padding: clamp(46px, 6vw, 70px) 0;
}

.section-muted {
  position: relative;
}

.section-muted::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  content: "";
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: clamp(24px, 6vw, 70px);
  margin-bottom: 26px;
}

.section-heading h2,
.company-section h2,
.privacy h2 {
  margin-top: 8px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
}

.section-heading.compact-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.gate-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.gate-grid article,
.channel-grid article {
  min-width: 0;
  padding: 18px;
}

.gate-grid article + article,
.channel-grid article + article {
  border-left: 1px solid var(--line);
}

.gate-grid span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--warm);
  font-size: 0.75rem;
  font-weight: 850;
}

.gate-grid p,
.channel-grid article > p:last-child {
  margin-top: 8px;
  color: var(--muted);
}

.channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-grid .project-label {
  margin-bottom: 8px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.flow li {
  min-width: 0;
  padding: 20px;
}

.flow li + li {
  border-left: 1px solid var(--line);
}

.flow span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 850;
}

.flow p,
.project-grid article > p:last-child,
.privacy article p,
.form-note,
.review-list p {
  margin-top: 9px;
  color: var(--muted);
}

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

.project-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.project-grid h3 {
  margin-top: 8px;
}

.project-label {
  color: var(--warm);
}

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: center;
  gap: clamp(26px, 6vw, 74px);
  padding: clamp(38px, 5vw, 58px) 0;
  border-bottom: 1px solid var(--line);
}

.company-actions {
  align-items: stretch;
}

.company-actions small {
  flex-basis: 100%;
  color: var(--soft);
}

.privacy {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 72px);
  padding: clamp(46px, 6vw, 70px) 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.privacy article {
  padding: 18px;
  border-top: 2px solid var(--accent);
  background: var(--surface);
}

.road-hero {
  min-height: 420px;
}

.road-lanes,
.road-checklist {
  display: grid;
  gap: 14px;
}

.road-lanes {
  grid-template-columns: repeat(3, 1fr);
}

.road-lanes article,
.road-checklist li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.road-lanes article {
  padding: 18px;
}

.road-lanes span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.road-lanes p {
  margin-top: 10px;
  color: var(--muted);
}

.road-checklist {
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

.road-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 720;
}

.check {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  flex: 0 0 auto;
}

.check.ready {
  border-color: var(--accent);
  background: var(--accent);
}

footer {
  justify-content: space-between;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}

footer nav {
  gap: 16px;
}

/* Eingabe-Vorschau */

body.input-page {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-strong: #edf7f3;
  --line: rgba(30, 79, 68, 0.14);
  --line-strong: rgba(30, 79, 68, 0.28);
  --text: #173d35;
  --muted: #536f68;
  --soft: #71877f;
  --accent: #35b995;
  --accent-ink: #082d25;
  --warm: #c87338;
  --warning: #c87338;
  background:
    radial-gradient(circle at 86% 4%, rgba(255, 221, 169, 0.48), transparent 28rem),
    radial-gradient(circle at 8% 18%, rgba(110, 221, 192, 0.18), transparent 24rem),
    var(--bg);
}

.input-page .topbar {
  border-bottom-color: rgba(30, 79, 68, 0.12);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 28px rgba(32, 73, 64, 0.06);
}

.input-page .brand-mark {
  border-color: rgba(53, 185, 149, 0.45);
  color: #147b62;
  background: #e5f7f1;
}

.input-page .eyebrow {
  color: #147b62;
}

.input-page .status-board,
.input-page .track-grid,
.input-page .form-shell,
.input-page .review-panel {
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(31, 75, 65, 0.07);
}

.input-page .status-board,
.input-page .review-panel {
  overflow: hidden;
}

.input-page .track-grid article:first-child {
  border-radius: 16px 0 0 16px;
}

.input-page .track-grid article:last-child {
  border-radius: 0 16px 16px 0;
}

.input-page .status-chip {
  color: #9a4e1c;
  background: #fff0dd;
  white-space: nowrap;
}

.input-page input,
.input-page select,
.input-page textarea,
.input-page .feature-grid label,
.input-page .privacy-check {
  border-radius: 12px;
  border-color: rgba(30, 79, 68, 0.17);
  color: var(--text);
  background: #fbfdfc;
}

.input-page input::placeholder {
  color: #8ca099;
}

.input-page fieldset:disabled input,
.input-page fieldset:disabled select {
  color: #526d65;
  -webkit-text-fill-color: #526d65;
  opacity: 1;
}

.input-page .separation-note {
  background: #f5fbf8;
}

.input-page .form-shell {
  padding: clamp(20px, 3vw, 30px);
}

.input-page .form-shell fieldset {
  gap: 16px 14px;
}

.input-page .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.input-page .feature-grid label {
  min-width: 0;
  min-height: 48px;
  align-items: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.input-page .feature-grid label input {
  align-self: flex-start;
  margin-top: 2px;
}

.input-page .privacy-check {
  min-width: 0;
  line-height: 1.4;
}

.input-page .disabled-submit {
  min-height: 48px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.input-page footer {
  border-top-color: rgba(30, 79, 68, 0.13);
}

.form-hero {
  min-height: auto;
  padding-bottom: 26px;
}

.form-hero .status-board p {
  padding: 18px;
  color: var(--muted);
}

.input-tracks {
  padding: 0 0 24px;
}

.track-heading {
  padding-bottom: 14px;
}

.track-heading h2 {
  margin-top: 5px;
  font-size: 1.35rem;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.track-grid article {
  min-width: 0;
  padding: 16px;
  border-top: 2px solid transparent;
}

.track-grid article + article {
  border-left: 1px solid var(--line);
}

.track-grid article.is-selected {
  border-top-color: var(--accent);
  background: var(--surface-strong);
}

.track-grid span {
  color: var(--warm);
  font-size: 0.72rem;
  font-weight: 850;
}

.track-grid h3 {
  margin-top: 12px;
}

.track-grid p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 16px;
  align-items: start;
  padding: 0 0 56px;
}

.form-shell,
.review-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-shell {
  padding: 20px;
}

.form-shell fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  border: 0;
}

.form-shell label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.form-shell label.full {
  grid-column: 1 / -1;
}

.structured-options {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.feature-grid label,
.privacy-check {
  display: flex;
  align-items: flex-start;
  grid-template-columns: none;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.feature-grid input,
.privacy-check input {
  flex: 0 0 auto;
  width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: var(--bg);
}

textarea {
  min-height: 86px;
  resize: vertical;
}

fieldset:disabled {
  opacity: 0.82;
}

.form-note {
  font-size: 0.84rem;
}

.disabled-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: transparent;
  font-weight: 800;
}

.disabled-submit:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
  cursor: pointer;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.turnstile-slot {
  min-height: 8px;
  margin-top: 16px;
}

.intake-status {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.intake-status.is-error {
  color: var(--warm);
}

.intake-status.is-success {
  color: var(--accent);
}

.review-panel {
  overflow: hidden;
}

.review-panel > div:first-child {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.review-list {
  display: grid;
}

.review-list article {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.review-panel .button {
  margin: 18px;
}

.separation-note {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.separation-note p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .section-heading.compact-action,
  .company-section,
  .privacy,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow li:nth-child(3) {
    border-left: 0;
  }

  .flow li:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

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

  .gate-grid,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gate-grid article:nth-child(3),
  .channel-grid article:nth-child(3) {
    border-left: 0;
  }

  .gate-grid article:nth-child(n+3),
  .channel-grid article:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

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

  .road-lanes,
  .road-checklist {
    grid-template-columns: 1fr;
  }

  .track-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .input-page .track-grid article:first-child,
  .input-page .track-grid article:last-child {
    border-radius: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .topbar nav a {
    white-space: nowrap;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

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

  .status-strip,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-grid,
  .form-shell fieldset,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gate-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .gate-grid article + article,
  .channel-grid article + article,
  .gate-grid article:nth-child(3),
  .channel-grid article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .status-strip span:nth-child(3) {
    border-left: 0;
  }

  .status-strip span:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .form-shell label.full {
    grid-column: auto;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
