/* Landingpage Altersvorsorgedepot 2027 (depot2027/)
   Baut auf tokens.css, site.css und pages.css auf. Die Formular-Regeln sind
   aus der bAV-Seite (assets/css/site.css im Repo-Root) übernommen, weil
   start/assets/css/site.css bisher kein Formular kennt. */

/* Reduzierter Kopf ohne Navigation */
.navbar-lp { justify-content: space-between; }

/* ------------------------------------------------------------------ Hero */
.lp-hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.lp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.lp-hero-copy { padding-top: clamp(0.5rem, 3vw, 2.5rem); }
.lp-hero-copy h1 { text-wrap: balance; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; -webkit-hyphens: manual; hyphens: manual; }
.lp-hero-copy .lede { max-width: 36rem; }

.lp-checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.lp-checks li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
  line-height: 1.5;
}
.lp-checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.15em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6623' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* Formular-Spalte mit angedeutetem Guide-Cover dahinter */
.lp-form-wrap { position: relative; padding-top: 4.25rem; scroll-margin-top: 90px; }
.guide-cover {
  position: absolute;
  top: 0; right: clamp(0.5rem, 3vw, 1.5rem);
  width: min(78%, 22rem);
  height: 7rem;
  background: var(--ink);
  color: #fff;
  border-radius: 14px 14px 0 0;
  padding: 0.85rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  align-content: start;
  transform: rotate(2.5deg);
  transform-origin: bottom left;
  box-shadow: 0 18px 40px rgba(17, 21, 26, 0.18);
  z-index: 0;
}
.guide-cover img { grid-row: span 3; margin-top: 0.15rem; }
.guide-cover-kicker { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.guide-cover-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.guide-cover-sub { display: none; }

/* Formular (aus bAV übernommen) */
.form {
  position: relative; z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 24px 60px rgba(17, 21, 26, 0.08);
}
.form-head { margin-bottom: 0.25rem; }
.form-head .form-title { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin: 0 0 0.25rem; }
.form-head p { margin: 0; font-size: var(--size-small); color: var(--ink-muted); }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--size-small); font-weight: 500; }
.field .req { color: var(--gold-deep); }
.field input {
  font: inherit;
  color: var(--ink);
  background: var(--surface-soft, var(--surface));
  border: 1px solid var(--line-strong, #d9dbdf);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  min-height: 48px;
  width: 100%;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input::placeholder { color: #9aa1aa; }
.field input:focus {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(188, 143, 53, 0.15);
  outline: none;
}
.field input.is-invalid { border-color: #a4262c; }
.field-hint { font-size: 0.78rem; color: var(--ink-faint); line-height: 1.4; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  cursor: pointer;
}
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); }
.consent a { color: var(--gold-deep); }

.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lp-submit { width: 100%; justify-content: center; }
.lp-submit[disabled] { opacity: 0.7; cursor: progress; }

.form-status { margin: 0; font-size: var(--size-small); line-height: 1.5; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: #1c6b3f; }
.form-status[data-state="error"] { color: #a4262c; }

/* Erfolgszustand, ersetzt die Felder */
.lp-success { text-align: center; padding-block: 1rem; }
.lp-success .icon-badge { margin-inline: auto; }
.lp-success h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin-bottom: 0.5rem; }
.lp-success p { color: var(--ink-muted); margin: 0 0 0.75rem; }
.lp-success p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Förderstaffel */
.staffel {
  max-width: 52rem;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1.25rem;
}
.staffel-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 10rem;
  grid-template-areas: "lbl track val" ". sub sub";
  column-gap: 1rem;
  row-gap: 0.3rem;
  align-items: center;
}
.staffel-lbl { grid-area: lbl; font-weight: 500; font-size: var(--size-small); }
.staffel-track { grid-area: track; height: 14px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.staffel-fill {
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transform-origin: left center;
}
.staffel-fill.is-low { background: linear-gradient(90deg, #d8dbe0, #b5bbc3); }
.js .staffel .staffel-fill { transform: scaleX(0); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .staffel.in .staffel-fill { transform: scaleX(1); }
.js .staffel.in .staffel-row:nth-child(2) .staffel-fill { transition-delay: 120ms; }
.js .staffel.in .staffel-row:nth-child(3) .staffel-fill { transition-delay: 240ms; }
.js .staffel.in .staffel-row:nth-child(4) .staffel-fill { transition-delay: 360ms; }
.staffel-val { grid-area: val; font-size: var(--size-small); color: var(--ink-muted); text-align: right; }
.staffel-val b { color: var(--ink); font-size: 1.05rem; }
.staffel-sub { grid-area: sub; font-size: 0.78rem; color: var(--ink-faint); }
.staffel-foot { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--ink-faint); line-height: 1.5; }

.lp-inline-cta {
  max-width: 52rem;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.lp-inline-cta p { margin: 0; color: var(--ink-muted); }

/* ------------------------------------------------------------------ Inhalt */
.lp-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ Wer dahinter steht */
.lp-about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 60rem;
}
.lp-about-photo { margin: 0; }
.lp-about-photo img { width: 100%; height: auto; border-radius: var(--radius-card); display: block; }
.lp-about-copy p { color: var(--ink-muted); }
.lp-about-copy .kicker { color: var(--gold-deep); }
.lp-about-copy .btn { margin-top: 0.5rem; }

/* ------------------------------------------------------------------ Footer */
.lp-footer { flex-wrap: wrap; gap: 0.75rem 1.5rem; border-top: 0; padding-top: 0; }
.lp-footer-links { display: inline-flex; gap: 1.25rem; }
.lp-legal { margin: 1.25rem 0 0; font-size: 0.75rem; color: var(--ink-faint); line-height: 1.5; max-width: 60rem; }

/* ------------------------------------------------------------------ Responsiv */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-copy { padding-top: 0; }
  .lp-checks { display: none; } /* stehen unten in "Was drinsteht", mobil soll das Formular früher kommen */
  .lp-form-wrap { max-width: 34rem; width: 100%; margin-inline: auto; }
  .lp-about { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .staffel-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "lbl val" "track track" "sub sub";
  }
  .lp-inline-cta { justify-content: center; text-align: center; }
  .guide-cover { width: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .staffel .staffel-fill { transform: none; transition: none; }
}
