/* Self-hosted Montserrat (variable, latin subset) – no requests to Google */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Förderhaus NRW – Landing Page Styles
   Mobile-first. Brand colors taken from logo.png.
   ========================================================= */

:root {
  --navy: #001951;
  --navy-dark: #001038;
  --navy-soft: #0b2a6b;
  --gold: #d7a63a;
  --gold-dark: #c2932c;
  --gold-light: #f3e3b8;
  --ink: #1b2233;
  --muted: #4a5568;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 25, 81, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 25, 81, 0.18);
  --container: 1140px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.2; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 5.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--navy); }
.emphasis { font-weight: 700; color: var(--navy); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #d9dfec; }
.section-dark h2 { color: var(--white); }
.section-dark strong, .section-dark .emphasis { color: var(--white); }
.section-title { text-align: center; margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  line-height: 1.3;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(215, 166, 58, 0.45);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(215, 166, 58, 0.55); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; }

.cta-block { margin-top: 28px; }
.cta-note { margin-top: 14px; font-size: 0.95rem; font-weight: 600; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { width: 180px; height: auto; }
.header-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 64px;
  background:
    radial-gradient(1200px 600px at 80% -10%, #eef2f9 0%, rgba(238, 242, 249, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}
.hero-grid { display: grid; gap: 32px; }
.hero-headline { margin-bottom: 18px; }
.hero-sub { font-size: 1.1rem; font-weight: 500; color: var(--muted); }

.hero-visual { position: relative; padding-bottom: 60px; padding-right: 16px; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #dfe5ef;
}
.hero-photo img { aspect-ratio: 1 / 1; object-fit: cover; }
.hero-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  background: var(--white);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  left: 9px; top: 5px;
  width: 6px; height: 12px;
  border: solid var(--navy);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ---------- Split sections ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}
.split-copy .btn { margin-top: 12px; }

/* ---------- Testimonials ---------- */
.cards { display: grid; gap: 28px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--gold);
}
.card-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.card-body p { margin: 0; font-size: 0.95rem; }
.card-name { margin: 0; font-size: 1.25rem; }
.card-business { font-weight: 500; color: var(--muted); margin-top: -8px !important; }
.card-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  color: var(--navy);
}
.stat-amount { font-size: 1.5rem; color: var(--navy); }
.stat-sep { color: var(--gold); font-size: 1.25rem; }
.stat-time { font-size: 1.05rem; }
.card-quote {
  margin: 6px 0 0;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ---------- Guarantee ---------- */
.guarantee-grid { display: grid; gap: 36px; align-items: center; }
.seal-wrap { display: flex; justify-content: center; }
.seal { width: 220px; height: 220px; position: relative; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35)); }
.seal::before {
  /* scalloped edge */
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--gold);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 66%, transparent 67%),
    repeating-conic-gradient(from 0deg, #000 0deg 6deg, transparent 6deg 12deg);
  mask: radial-gradient(circle at 50% 50%, #000 66%, transparent 67%),
    repeating-conic-gradient(from 0deg, #000 0deg 6deg, transparent 6deg 12deg);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}
.seal-ring {
  position: absolute; inset: 14px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.seal-inner {
  width: calc(100% - 20px); height: calc(100% - 20px);
  border-radius: 50%;
  border: 3px dashed var(--navy);
  background: var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: var(--navy);
  gap: 2px;
}
.seal-check {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
  margin-bottom: 6px;
}
.seal-check::after {
  content: "";
  position: absolute;
  left: 14px; top: 8px;
  width: 9px; height: 17px;
  border: solid var(--gold);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}
.seal-line1 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.seal-line2 { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- FAQ ---------- */
.faq-container { max-width: 820px; }
.accordion { display: grid; gap: 12px; }
.acc-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 25, 81, 0.05);
}
.acc-heading { margin: 0; font-size: 1rem; }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}
.acc-trigger:hover { background: var(--bg-alt); }
.acc-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.acc-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  transition: transform 0.25s ease;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--navy);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}
.acc-icon::before { width: 14px; height: 3px; }
.acc-icon::after { width: 3px; height: 14px; transition: opacity 0.2s ease; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { opacity: 0; }
.acc-panel { padding: 0 20px 20px; color: var(--muted); }
.acc-panel[hidden] { display: none; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--bg-alt); }
.final-grid { display: grid; gap: 0; }
.final-photo {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.final-photo img { aspect-ratio: 1 / 1; object-fit: cover; }
.final-box {
  background: var(--navy);
  color: #d9dfec;
  padding: 36px 24px 40px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.final-box h2 { color: var(--white); }
.final-box .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #aab4cc; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-logo {
  width: 170px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
}
.footer-links { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.footer-sep { color: var(--gold); }
.footer-copy { font-size: 0.85rem; margin: 0; }


/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal { max-width: 820px; padding-top: 56px; padding-bottom: 72px; }
.legal h1 { margin-bottom: 8px; }
.legal .legal-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal h3 { font-size: 1.05rem; margin-top: 24px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; line-height: 1.7; margin-bottom: 1em; }
.legal a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-dark); }
.legal .back { display: inline-block; margin-top: 40px; }
.placeholder { background: var(--gold-light); padding: 0 4px; border-radius: 3px; }

/* ---------- Form page (foerderpruefung.html) ---------- */
.form-section { padding-top: 48px; background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%); }
.form-grid { display: grid; gap: 36px; align-items: start; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.form-intro h1 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
.form-intro .checklist { margin-top: 24px; }
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--gold);
  padding: 28px 22px 30px;
}
.form-title { font-size: 1.3rem; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 6px; }
.req { color: var(--gold-dark); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9aa3b5; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 25, 81, 0.10); background: var(--white); }
.field input.invalid, .field.invalid input { border-color: #c62828; background: #fff6f6; }
.field-row { display: grid; gap: 0 16px; }
.field-hint { font-size: 0.9rem; color: var(--muted); margin: -2px 0 12px; }
.field-error { color: #c62828; font-size: 0.9rem; font-weight: 600; margin: 8px 0 0; }
.field-error[hidden] { display: none; }

fieldset.slots { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.slot-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.slot-tool {
  font: inherit; font-size: 0.85rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid var(--navy); background: var(--white); color: var(--navy);
  cursor: pointer;
}
.slot-tool:hover { background: var(--navy); color: var(--white); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: block;
  text-align: center;
  padding: 9px 4px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fbfcfe;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  user-select: none;
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold-dark); color: var(--navy); font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.slots.invalid .chips { outline: 2px solid #c62828; outline-offset: 6px; border-radius: 8px; }

.consent-label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: 0.9rem !important; color: var(--ink) !important; line-height: 1.5; cursor: pointer; }
.consent-label input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--navy); }
.consent-label a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.consent.invalid .consent-label { color: #c62828 !important; }

.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.form-success { text-align: center; padding: 20px 4px 8px; }
.form-success[hidden] { display: none; }
.form-success h2 { font-size: 1.4rem; }
.form-success .btn { margin-top: 12px; padding: 14px 26px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); margin: 0 auto 18px; position: relative; }
.success-icon::after { content: ""; position: absolute; left: 26px; top: 16px; width: 16px; height: 30px; border: solid var(--navy); border-width: 0 5px 5px 0; transform: rotate(45deg); }

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: repeat(5, 1fr); }
  .form-card { padding: 34px 32px 36px; }
}
@media (min-width: 960px) {
  .form-section { padding-top: 64px; }
  .form-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .form-intro { position: sticky; top: 96px; }
  .chips { grid-template-columns: repeat(8, 1fr); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .acc-icon { transition: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  .btn-lg { width: auto; min-width: 320px; }
  .container { padding-left: 28px; padding-right: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 520px; margin: 0 auto; padding-right: 24px; }
  .hero-card { max-width: 250px; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .header-cta { display: inline-block; }
  .logo { width: 220px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }

  /* Hero: copy left, image right; checklist under copy */
  .hero { padding: 72px 0 96px; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "copy visual"
      "points visual";
    column-gap: 56px;
    row-gap: 28px;
    align-items: start;
  }
  .hero-copy { grid-area: copy; }
  .hero-visual { grid-area: visual; margin: 0; max-width: none; padding-right: 32px; padding-bottom: 56px; align-self: center; }
  .hero-points { grid-area: points; }
  .hero-card { max-width: 250px; right: 0; bottom: 0; }
  .hero-sub { font-size: 1.2rem; }

  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-reverse .split-media { order: 2; }
  .split-reverse .split-copy { order: 1; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .guarantee-grid { grid-template-columns: 300px 1fr; gap: 64px; }
  .seal { width: 260px; height: 260px; }
  .seal-check { width: 48px; height: 48px; }
  .seal-check::after { left: 17px; top: 10px; width: 11px; height: 20px; }
  .seal-line1 { font-size: 0.95rem; }
  .seal-line2 { font-size: 1.1rem; }

  /* Final CTA: portrait overlapping dark box, like reference */
  .final-grid {
    grid-template-columns: 340px 1fr;
    align-items: center;
  }
  .final-photo {
    border-radius: var(--radius);
    position: relative;
    z-index: 2;
    margin-right: -60px;
  }
  .final-box {
    border-radius: var(--radius);
    padding: 56px 56px 56px 110px;
    margin: 40px 0;
  }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1200px) {
  .hero-headline { font-size: 2.9rem; }
  .final-grid { grid-template-columns: 400px 1fr; }
}
