:root {
  --bg: #f6f9ff;
  --paper: #ffffff;
  --navy: #0b2450;
  --ink: #1d2b4a;
  --muted: #5a6b8c;
  --blue: #0a66ff;
  --blue-600: #0a5ae0;
  --blue-soft: #edf3ff;
  --line: #d3def2;
  --danger: #c62a2a;
  --mark-letters: var(--navy);
  --mark-accent: var(--blue);
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hintergrund ---------- */

.waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wave {
  position: absolute;
  display: block;
}

.wave--left {
  left: 0;
  bottom: 0;
  width: min(46vw, 640px);
  height: 72vh;
}

.wave--right {
  right: 0;
  bottom: 0;
  width: min(40vw, 560px);
  height: 52vh;
}

/* ---------- Marke ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  color: var(--navy);
  text-decoration: none;
  font-size: 32px;
  line-height: 1;
}

.brand__mark {
  width: 2.2em;
  height: 1em;
  flex: none;
}

.brand__name {
  font-weight: 500;
  letter-spacing: -0.02em;
  transform: translateY(0.02em);
}

.brand--large {
  font-size: 50px;
}

.brand--small {
  font-size: 13px;
  gap: 0.45em;
}

.brand--small .brand__name {
  font-weight: 600;
}

/* ---------- Kopf ---------- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 7.5vw, 116px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #e8eef8;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.topbar__claim {
  margin: 0;
  color: var(--blue-600);
  font-size: 16px;
  font-weight: 500;
}

/* ---------- Karte ---------- */

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(28px, 7vh, 72px) 20px;
}

.card {
  width: min(1110px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid #e3ebf7;
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(11, 36, 80, 0.04),
    0 40px 80px -36px rgba(11, 36, 80, 0.22);
  overflow: hidden;
  animation: rise 0.9s var(--ease) both;
}

.card__form {
  padding: clamp(32px, 6.5vw, 70px) clamp(24px, 6.5vw, 74px) clamp(32px, 6vw, 64px);
}

h1 {
  margin: 38px 0 0;
  color: var(--navy);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--blue);
}

.lead {
  margin: 22px 0 0;
  max-width: 24em;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.form {
  margin-top: 32px;
}

.field {
  position: relative;
}

.field__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--navy);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 64px;
  padding: 0 20px 0 60px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field input::placeholder {
  color: #8796b3;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 102, 255, 0.14);
}

.form.is-error .field input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(198, 42, 42, 0.1);
}

.form.is-error .field {
  animation: shake 0.42s ease both;
}

.error {
  margin: 10px 2px 0;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.4;
}

.button {
  margin-top: 28px;
  width: 100%;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #1673ff, var(--blue-600));
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(10, 102, 255, 0.8);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s,
    filter 0.2s;
}

.button:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 28px -12px rgba(10, 102, 255, 0.9);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible {
  outline: 3px solid rgba(10, 102, 255, 0.35);
  outline-offset: 3px;
}

.button__icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s var(--ease);
}

.button:hover .button__icon {
  transform: translateX(3px);
}

.button[disabled] {
  cursor: progress;
  filter: saturate(0.8);
}

.button[disabled] .button__icon {
  animation: nudge 0.8s ease-in-out infinite;
}

.note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.note svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Illustration ---------- */

.card__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 60px 40px 110px;
  background:
    radial-gradient(120% 80% at 80% 100%, rgba(10, 102, 255, 0.16), transparent 60%),
    linear-gradient(160deg, #f3f8ff, #e6efff);
  perspective: 1400px;
}

.mock {
  width: min(410px, 92%);
  aspect-ratio: 410 / 360;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3ecfa;
  border-radius: 10px;
  box-shadow:
    0 2px 6px rgba(11, 36, 80, 0.05),
    0 40px 70px -30px rgba(10, 102, 255, 0.45);
  transform: rotateY(-14deg) rotateX(5deg) rotateZ(-4deg);
  transform-origin: 60% 50%;
  animation: float 7s ease-in-out infinite;
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
}

.mock__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.mock__bar span {
  margin-left: auto;
  width: 46px;
  height: 7px;
  border-radius: 4px;
  background: #edf2fb;
}

.mock__hero {
  position: relative;
  margin: 0 10px;
  height: 42%;
  border-radius: 4px;
  overflow: hidden;
}

.mock__hero svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mock__line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #b9d3ff;
}

.mock__hero .mock__line {
  position: absolute;
  left: 8%;
  background: rgba(255, 255, 255, 0.55);
}

.mock__line--a {
  top: 18%;
  width: 34%;
}

.mock__line--b {
  top: 30%;
  width: 20%;
}

.mock__body {
  flex: 1;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mock__line--c {
  width: 70%;
}

.mock__line--d {
  width: 34%;
  background: #dbe8ff;
}

.mock__cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.mock__cards span {
  border-radius: 6px;
  background: linear-gradient(180deg, #e7f0ff, #f5f9ff);
}

.scribble {
  position: absolute;
  left: 20%;
  bottom: 52px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--blue-600);
  font-family: Caveat, 'Segoe Print', 'Bradley Hand', cursive;
  font-size: 25px;
  line-height: 1.15;
  transform: rotate(-6deg);
}

.scribble svg {
  width: 46px;
  height: 46px;
  flex: none;
  margin-top: -26px;
}

/* ---------- Fuss ---------- */

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 18px 20px 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer__sep {
  width: 1px;
  height: 18px;
  background: #b9c6dc;
}

/* ---------- Bewegung ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: none;
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes nudge {
  50% {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 900px) {
  .card {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .card__visual {
    order: -1;
    padding: 36px 24px 92px;
  }

  .mock {
    width: min(320px, 82%);
  }

  .scribble {
    left: auto;
    right: 12%;
    bottom: 26px;
    font-size: 22px;
  }

  .brand--large {
    display: none;
  }

  h1 {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 18px 16px;
  }

  .topbar__claim {
    display: none;
  }

  .brand {
    font-size: 26px;
  }

  .stage {
    padding: 20px 16px 28px;
  }

  .lead {
    font-size: 17px;
  }

  .field input,
  .button {
    height: 58px;
  }

  .card__visual {
    padding: 28px 16px 84px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }

  .footer__sep {
    display: none;
  }
}
