:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5b6661;
  --soft: #f4f0e8;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #ded8cc;
  --green: #2f6d50;
  --green-dark: #1f513b;
  --gold: #b6945d;
  --danger: #9c382f;
  --shadow: 0 24px 80px rgba(23, 32, 29, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(222, 216, 204, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
}

.main-nav {
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
}

.button,
.header-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button:focus-visible,
.header-cta:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(47, 109, 80, 0.28);
  outline-offset: 3px;
}

.button-primary,
.header-cta {
  color: var(--white);
  background: var(--green);
}

.button-primary:hover,
.header-cta:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.hero {
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 72px) 0;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

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

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.2vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-copy p,
.section-heading p,
.partner-layout > div > p,
.final-cta p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-panel {
  position: relative;
  min-height: 530px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #dfe7dd;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.property-visual {
  position: absolute;
  inset: 26px 26px auto;
  display: block;
  width: calc(100% - 52px);
  height: 342px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: inset 0 -70px 80px rgba(23, 32, 29, 0.1);
}

.lead-card {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 36px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.lead-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
}

.lead-card dl,
.lead-card div {
  margin: 0;
}

.lead-card div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-top: 1px solid rgba(23, 32, 29, 0.1);
}

.lead-card dt {
  color: var(--muted);
}

.lead-card dd {
  margin: 0;
  font-weight: 700;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  max-width: 1240px;
  margin: clamp(44px, 7vw, 76px) auto 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-row li {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
  font-weight: 690;
}

.section {
  padding: clamp(70px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section-light {
  background: var(--soft);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.category-grid,
.process-grid,
.ops-grid,
.faq-list {
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  gap: 14px;
}

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

.category-grid a,
.process-grid article,
.ops-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.category-grid a {
  min-height: 116px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-size: 20px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

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

.process-grid article,
.ops-grid article {
  padding: 28px;
}

.process-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 800;
}

.process-grid p,
.ops-grid p,
.faq-list p,
.legal-note,
.partner-note {
  color: var(--muted);
}

.transparency-block {
  max-width: 1240px;
  margin: 18px auto 0;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.transparency-block p {
  max-width: 980px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.section-funnel {
  background: #e8eee7;
}

.funnel-shell,
.partner-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.funnel-intro {
  position: sticky;
  top: 104px;
}

.score-box {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(47, 109, 80, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.score-box span,
.score-box em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.score-box strong {
  display: block;
  margin: 6px 0;
  font-size: 52px;
  line-height: 1;
}

.funnel,
.partner-form,
.lead-preview {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(23, 32, 29, 0.08);
}

.progress {
  height: 7px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #dde5dc;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 11.11%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 260ms ease;
}

.step-count {
  color: var(--muted);
  font-weight: 700;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.step {
  display: none;
}

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

legend {
  margin-bottom: 22px;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.08;
}

.option-grid,
.field-grid,
.partner-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-grid label,
.consent,
.field-grid label,
.partner-form label {
  display: grid;
  gap: 8px;
  min-height: 58px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.option-grid label {
  grid-template-columns: auto 1fr;
  align-items: center;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfc7b9;
  border-radius: 6px;
  padding: 12px;
  background: #fffefa;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent input,
.option-grid input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.funnel-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

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

.is-hidden {
  display: none;
}

.partner-layout h2 {
  max-width: 620px;
}

.partner-note {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--green);
}

.operations {
  background: var(--paper);
}

.lead-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  max-width: 1240px;
  margin: 18px auto 0;
  align-items: center;
}

.lead-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.lead-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.lead-item small {
  color: var(--muted);
}

.faq-list {
  grid-template-columns: repeat(2, 1fr);
}

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
}

.final-cta {
  text-align: center;
  background: var(--ink);
  color: var(--white);
}

.final-cta p {
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #111715;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer strong {
  color: var(--white);
}

.site-footer nav {
  gap: 18px;
  align-items: start;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer #impressum {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

.consent-banner {
  position: fixed;
  left: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 30;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.96);
  box-shadow: var(--shadow);
}

.consent-banner.is-visible {
  display: grid;
}

.consent-banner p {
  margin: 0;
  color: var(--muted);
}

.consent-banner div {
  display: flex;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .main-nav {
    position: fixed;
    inset: 75px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .hero-content,
  .funnel-shell,
  .partner-layout,
  .trust-row,
  .process-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 460px;
  }

  .funnel-intro {
    position: static;
  }

  .trust-row li {
    min-height: 68px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-actions,
  .funnel-actions,
  .consent-banner,
  .consent-banner div,
  .site-footer,
  .lead-preview {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 390px;
    padding: 14px;
  }

  .property-visual {
    inset: 14px 14px auto;
    height: 260px;
  }

  .lead-card {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .category-grid,
  .option-grid,
  .field-grid,
  .partner-form,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }
}

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