:root {
  color-scheme: light;
  --page: #f4f4f2;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --ink: #171717;
  --body: #3d3d3d;
  --muted: #6f6f6f;
  --line: #d6d6d2;
  --accent: #111111;
  --accent-soft: #e9ece8;
  --danger: #9f1d1d;
  --shadow: 0 8px 20px rgba(22, 22, 20, 0.1);
  --radius-card: 8px;
  --radius-control: 999px;
  --font: "Futura Nordlohne", "Futura LT Book", Futura, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Futura Nordlohne";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("nordlohne_branding/Futura LT/LTe50152.ttf") format("truetype");
}

@font-face {
  font-family: "Futura Nordlohne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("nordlohne_branding/Futura LT/LTe50154.ttf") format("truetype");
}

@font-face {
  font-family: "Futura Nordlohne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("nordlohne_branding/Futura LT/LTe50188.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

html.is-embed,
html.is-embed body,
html.is-embed .page-shell {
  min-height: 0;
}

.is-embed .topbar,
.is-embed .site-footer {
  display: none;
}

.is-embed .hero-content {
  justify-content: flex-end;
}

.hero {
  position: relative;
  min-height: clamp(560px, 68svh, 720px);
  overflow: hidden;
  background: #d9d9d5;
}

.hero-media,
.hero-overlay,
.hero-content {
  position: absolute;
  inset: 0;
}

.hero-media {
  transform: scale(1.01);
}

.hero-video,
.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.86) brightness(1.2);
}

.hero-video {
  position: absolute;
  inset: 0;
}

.hero-poster {
  display: block;
}

.hero-video:not([src]) + .hero-poster {
  opacity: 1;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(244, 244, 242, 0.98), rgba(244, 244, 242, 0.84) 48%, rgba(244, 244, 242, 0.54)),
    linear-gradient(180deg, rgba(244, 244, 242, 0.36), rgba(244, 244, 242, 0.9));
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 42px);
}

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

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

.brand img {
  display: block;
  width: clamp(168px, 19vw, 248px);
  height: auto;
}

.topbar-link {
  border: 1px solid rgba(23, 23, 23, 0.22);
  border-radius: var(--radius-control);
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.intro {
  max-width: 730px;
  padding: 28px 0 86px;
}

.step-kicker {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
}

.progress {
  width: min(100%, 340px);
  height: 3px;
  margin-bottom: clamp(26px, 7vw, 54px);
  overflow: hidden;
  border-radius: var(--radius-control);
  background: rgba(23, 23, 23, 0.22);
}

.progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

h1,
h2,
legend {
  color: var(--ink);
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 880px;
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 7vw, 4.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro p:last-child {
  max-width: 520px;
  margin: 0;
  color: #252525;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: min(860px, calc(100% - 32px));
  margin: -42px auto 0;
  padding-bottom: clamp(48px, 8vw, 96px);
  position: relative;
  z-index: 2;
}

.quiz-card,
.trust-panel,
.success-dialog {
  border-radius: var(--radius-card);
  background: var(--surface-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.quiz-card {
  min-height: 520px;
  padding: clamp(20px, 4vw, 34px);
}

.quiz-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  animation: stepIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-step.is-active {
  display: block;
}

legend {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  font-weight: 800;
}

.field-hint {
  margin: -8px 0 18px;
  color: var(--muted);
}

.option-list,
.option-grid,
.contact-grid {
  display: grid;
  gap: 12px;
}

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

.option-card,
.consent-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.option-card:hover,
.consent-card:hover {
  border-color: rgba(23, 23, 23, 0.42);
  background: #ffffff;
  transform: translateY(-1px);
}

.option-card:has(input:checked),
.consent-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option-card input,
.consent-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.option-card span,
.consent-card span {
  min-width: 0;
}

.text-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.text-field input,
.text-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.text-field textarea {
  resize: vertical;
}

.text-field input:focus,
.text-field textarea:focus,
.option-card:focus-within,
.consent-card:focus-within,
.button:focus-visible,
.topbar-link:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.12);
}

.consent-card {
  margin-top: 12px;
  color: var(--body);
  font-weight: 600;
}

.form-error {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-control);
  outline: none;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-secondary {
  background: #ececea;
  color: var(--ink);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.trust-panel {
  align-self: start;
  padding: clamp(20px, 4vw, 28px);
}

.trust-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.trust-panel p {
  margin: 0 0 18px;
  color: #303030;
}

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

.trust-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-weight: 700;
}

.trust-panel li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 2px;
  border-radius: var(--radius-control);
  background: var(--ink);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  padding: 42px 24px 46px;
  background: #171717;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}

.site-footer address {
  font-style: normal;
}

.site-footer strong {
  display: block;
  color: #ffffff;
}

.footer-address-line {
  display: block;
  margin-top: 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-weight: 700;
}

.site-footer a,
.consent-card a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-footer a {
  color: #ffffff;
}

.success-dialog {
  width: min(440px, calc(100% - 32px));
  border: 0;
  padding: 32px 26px;
  color: var(--body);
  text-align: center;
}

.success-dialog::backdrop {
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
}

.success-dialog h2 {
  margin: 14px 0 8px;
  font-size: 1.45rem;
}

.success-dialog p {
  margin: 0 0 22px;
}

.success-mark {
  display: grid;
  place-items: center;
}

.success-mark svg {
  width: 96px;
  height: 96px;
}

.success-mark circle,
.success-mark path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.success-mark circle {
  stroke-dasharray: 239;
  stroke-dashoffset: 239;
  animation: drawCircle 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.success-mark path {
  stroke-dasharray: 45;
  stroke-dashoffset: 45;
  animation: drawCheck 520ms 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 1024px) {
  .intro {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
  }

  .progress,
  .intro p:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  h1 {
    margin-left: 0;
    margin-right: 0;
  }

  .form-section {
    grid-template-columns: minmax(0, 1fr);
    width: min(880px, calc(100% - 96px));
    margin: -64px auto 0;
  }

  .trust-panel {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(244, 244, 242, 0.95), rgba(244, 244, 242, 0.72) 54%, rgba(244, 244, 242, 0.94)),
      linear-gradient(90deg, rgba(244, 244, 242, 0.92), rgba(244, 244, 242, 0.42));
  }

  .form-section {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 680px);
    margin-top: -24px;
  }

  .trust-panel {
    order: 2;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 14px 18px 18px;
  }

  .brand img {
    width: min(48vw, 188px);
  }

  .topbar-link {
    padding: 8px 13px;
  }

  .intro {
    padding-bottom: 24px;
  }

  h1 {
    font-size: clamp(1.95rem, 10.8vw, 3.05rem);
  }

  .form-section {
    margin-top: 10px;
  }

  .quiz-card {
    min-height: 0;
    padding: 26px 18px;
  }

  legend {
    margin-bottom: 24px;
    font-size: clamp(1.25rem, 7.8vw, 1.85rem);
  }

  .option-list,
  .option-grid,
  .contact-grid {
    gap: 14px;
  }

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

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

  .button {
    width: 100%;
  }

  .button-primary {
    order: 1;
  }

  .button-secondary {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
