:root {
  color-scheme: light;
  --ink: #15161d;
  --soft-ink: #343844;
  --muted: #687084;
  --line: rgba(21, 22, 29, 0.14);
  --line-strong: rgba(21, 22, 29, 0.26);
  --court: #c7e36f;
  --court-dark: #6f842c;
  --blue: #3d4cac;
  --blue-dark: #222d82;
  --orange: #fbb078;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(34, 45, 130, 0.12);
  --shell-max: 1160px;
  --shell-gutter: 34px;
  --shell-gutter-mobile: 26px;
  --grid-gap: clamp(24px, 5vw, 56px);
  --grid-left: minmax(220px, 0.62fr);
  --grid-right: minmax(0, 1.38fr);
  --hero-side: minmax(280px, 0.48fr);
  --text-line: 1.62;
  --lead-line: 1.52;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(251, 176, 120, 0.14) 0%, transparent 36%),
    linear-gradient(135deg, #eef6d5 0%, #fffaf0 48%, #e9eefc 100%);
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: var(--text-line);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 22, 29, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 22, 29, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 82%);
}

a {
  color: inherit;
}

.shell {
  width: min(var(--shell-max), calc(100% - var(--shell-gutter)));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 16px 0 14px;
}

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

.brand img {
  width: clamp(188px, 23vw, 246px);
  height: auto;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(21, 22, 29, 0.1);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 30px rgba(22, 23, 29, 0.05);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  scrollbar-width: none;
}

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

.nav a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 11px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.nav a:hover {
  background: rgba(61, 76, 172, 0.08);
  color: var(--blue);
}

.nav a[href="/anfrage/"] {
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(61, 76, 172, 0.18);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hero-side);
  gap: var(--grid-gap);
  align-items: end;
  padding: clamp(34px, 7vw, 84px) 0 54px;
}

.hero-solo {
  grid-template-columns: minmax(0, 1fr);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  box-shadow: 0 0 0 7px rgba(61, 76, 172, 0.09);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  line-height: var(--text-line);
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7.4vw, 6.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 930;
  letter-spacing: 0;
  line-height: 1;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.lead {
  max-width: 790px;
  margin-bottom: 0;
  color: var(--soft-ink);
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  line-height: var(--lead-line);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 30px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66)),
    linear-gradient(180deg, rgba(199, 227, 111, 0.25), rgba(251, 176, 120, 0.12));
  box-shadow: var(--shadow);
}

.panel p:last-child {
  margin-bottom: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 13px 18px;
  background: var(--white);
  box-shadow: 0 7px 24px rgba(22, 23, 29, 0.06);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  border-color: transparent;
  background: var(--blue);
  color: var(--white);
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: var(--grid-left) var(--grid-right);
  gap: var(--grid-gap);
  align-items: start;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--court-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.copy {
  color: var(--soft-ink);
  font-size: 1.06rem;
  line-height: var(--text-line);
}

.copy p {
  max-width: 780px;
}

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

.card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(22, 23, 29, 0.05);
}

.card h3 {
  margin-bottom: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: var(--text-line);
}

.card a {
  color: var(--blue-dark);
  font-weight: 850;
}

.offer-intake {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 40px);
  align-items: center;
}

.offer-intake h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.offer-intake p:not(.section-kicker) {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--soft-ink);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: var(--lead-line);
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  border-left: 5px solid var(--court);
  padding: 11px 0 11px 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--soft-ink);
  font-weight: 750;
  line-height: var(--text-line);
}

.notice {
  border: 1px solid rgba(61, 76, 172, 0.25);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--soft-ink);
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full,
.checkline.full {
  grid-column: 1 / -1;
}

label,
.group-label {
  color: var(--soft-ink);
  font-size: 0.92rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(61, 76, 172, 0.72);
  box-shadow: 0 0 0 4px rgba(61, 76, 172, 0.1);
  background: var(--white);
}

.checkline {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--soft-ink);
  font-weight: 760;
}

.checkline input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-message {
  display: none;
  margin-top: 18px;
  border-left: 5px solid var(--blue);
  padding: 12px 14px;
  background: rgba(61, 76, 172, 0.08);
  color: var(--soft-ink);
  font-weight: 800;
}

.form-message.is-visible {
  display: block;
}

.form-message[data-state="error"] {
  border-left-color: #9f321c;
  background: rgba(159, 50, 28, 0.08);
  color: #9f321c;
}

.form-message[data-state="success"] {
  border-left-color: #245b3f;
  background: rgba(36, 91, 63, 0.08);
  color: #245b3f;
}

.form-help {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: var(--text-line);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--muted);
}

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

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .section-grid,
  .offer-intake {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - var(--shell-gutter-mobile)), var(--shell-max));
  }

  .brand img {
    width: min(228px, 68vw);
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 3.45rem);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .footer {
    flex-direction: column;
  }
}
