/* ===== LANDING PAGE (Stand Änderungsliste v4) =====
   Ergänzt styles-v2.css für die Startseite (Design-Export "spam.ersatz-pilot.de · v4").
   Die vorherige Startseite liegt zur Dokumentation unter /archiv/startseite-2026-10-26/. */

/* ===== HERO (Desktop/Tablet) =====
   Handy-Grafik bleibt laut Änderungsliste im bisherigen Glas-Look (styles-v2.css). */
@media (min-width: 769px) {
  .lp-v2 .hero {
    min-height: 900px;
    background: #EFF5FA;
  }

  .lp-v2 .hero-bg::after {
    background: linear-gradient(
      90deg,
      #EFF5FA 0%,
      #EFF5FA 42%,
      rgba(239, 245, 250, .88) 49%,
      rgba(239, 245, 250, 0) 66%,
      rgba(239, 245, 250, 0) 100%
    );
  }

  .lp-v2 .hero-fade {
    height: 140px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  }

  .lp-v2 .hero-inner { padding-top: 164px; padding-bottom: 72px; }

  .lp-v2 .hero-text { max-width: 620px; }
  .lp-v2 .hero-text h1 {
    font-size: clamp(2.6rem, 4.7vw, 3.875rem);
    line-height: 1.03;
    letter-spacing: -0.026em;
    margin-bottom: 24px;
  }
  .lp-v2 .hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.67;
    color: #3F5369;
    max-width: 560px;
    margin-bottom: 32px;
  }
  .lp-v2 .btn-primary { padding: 17px 30px; font-weight: 700; gap: 12px; }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .lp-v2 .hero-text { max-width: 540px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .lp-v2 .hero-text { max-width: 440px; }
}

/* ===== FINAL CTA ===== */
.lp-v2 .final-cta-content h2 { margin-bottom: 8px; }
.final-cta-sub {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .final-cta-sub { font-size: 1.05rem; }
}

/* ===== COMPARISON FOLLOW-UP ===== */
.comparison-followup {
  max-width: 900px;
  margin: 56px auto 0;
  font-size: 15px;
  line-height: 26px;
  color: #334155;
}

/* ===== PFADDIAGRAMM im Block "Was sind Ihre Rechte?" ===== */
.article-card .rights-flow {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
  --rf-gap: 88px;
}

.rights-flow {
  --rf-blue: #014C94;
  --rf-line: #014C94;
  --rf-border: #E6E7E8;
  --rf-shadow: 0 2px 10px rgba(24, 60, 87, .063);
  --rf-main: 624fr;
  --rf-gap: 96px;
  --rf-side: 432fr;
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--rf-blue);
}

.rf-card {
  background: #fff;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  box-shadow: var(--rf-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.rf-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--rf-blue);
  font-size: 22px;
  line-height: 1.32;
}
.rf-card p {
  color: #315F86;
  font-size: 15px;
  line-height: 1.7;
}

.rf-icon-yellow {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #FEE214;
  color: var(--rf-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rf-icon-sm { width: 30px; height: 30px; }

/* Ausgangspunkt mit angedeutetem Mail-Stapel */
.rf-start {
  position: relative;
  padding-top: 14px;
}
.rf-start::before,
.rf-start::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  background: #fff;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
}
.rf-start::before { top: 0; width: 82%; opacity: .45; }
.rf-start::after { top: 7px; width: 92%; opacity: .75; }
.rf-mail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  box-shadow: var(--rf-shadow);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--rf-blue);
}

/* Senkrechte Pfeile */
.rf-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--rf-line);
}
.rf-line {
  width: 1.5px;
  height: 14px;
  background: var(--rf-line);
}
.rf-head { display: block; margin-top: -4px; }
.rf-down--center { padding: 4px 0 8px; }

.rf-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 16px;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: var(--rf-blue);
  background: #EAF2FA;
  border: 1px solid #BDD2E4;
  border-radius: 5px;
  margin-bottom: 6px;
}
.rf-label--yes {
  color: #1E5A35;
  background: #DFF1E5;
  border-color: #B9DCC5;
  padding: 3px 8px;
  margin: 0;
}

/* Immer-Karte */
.rf-always {
  width: 100%;
  max-width: 624px;
  gap: 16px;
}
.rf-always h3 { font-size: 25.5px; line-height: 32px; }
.rf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 100px;
  height: 28px;
  padding: 4px 10px;
  background: #FEE214;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rf-blue);
}
.rf-finance {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #F3F7FA;
  border: 1px solid #DCE6EE;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--rf-blue);
}
.rf-finance svg { flex-shrink: 0; }
.rf-finance span { flex: 1; text-align: center; }

/* Geschwungener Pfeil: von der Mitte zur Hauptspur (linke Spalte) */
.rf-curve {
  position: relative;
  align-self: stretch;
  height: 84px;
  color: var(--rf-line);
}
.rf-curve-path {
  position: absolute;
  top: 0;
  height: 70px;
  /* Hauptspur-Mitte = Hälfte der linken Spalte */
  left: calc((100% - var(--rf-gap)) * 624 / 1056 / 2);
  width: calc(50% - (100% - var(--rf-gap)) * 624 / 1056 / 2);
  overflow: visible;
}
.rf-curve .rf-head {
  position: absolute;
  bottom: 0;
  left: calc((100% - var(--rf-gap)) * 624 / 1056 / 2 - 9px);
}

/* Zeilen: Hauptspur | Ja-Pfeil | Ergebnis */
.rf-row {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, var(--rf-main)) var(--rf-gap) minmax(0, var(--rf-side));
  align-items: stretch;
}
.rf-question {
  min-height: 216px;
  justify-content: center;
  gap: 14px;
}
.rf-q-icon { color: var(--rf-blue); }
.rf-question p { max-width: 560px; }

.rf-yes {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-line);
  padding: 0 4px;
}
.rf-yes-line {
  width: 10px;
  height: 1.5px;
  background: var(--rf-line);
  flex-shrink: 0;
}
.rf-yes-head { flex-shrink: 0; margin-left: 4px; }

.rf-result {
  min-height: 216px;
  justify-content: center;
  gap: 16px;
  background: #F0FAF3;
  border-color: #BDDFC8;
}
.rf-amount {
  display: inline-block;
  padding: 8px 12px;
  background: #DFF1E5;
  border: 1px solid #B9DCC5;
  border-radius: 7px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #1E5A35;
}
.rf-hint { margin-top: -4px; }
.rf-nowrap { white-space: nowrap; }

/* Senkrechter Pfeil auf der Hauptspur (Mitte der linken Spalte) */
.rf-down--main {
  width: calc((100% - var(--rf-gap)) * 624 / 1056);
  align-self: flex-start;
  padding: 0;
}
.rf-down--main .rf-line { height: 12px; }

.rf-row--goal { grid-template-columns: minmax(0, var(--rf-main)) var(--rf-gap) minmax(0, var(--rf-side)); }
.rf-goal {
  padding: 18px 20px;
  gap: 8px;
}
.rf-goal svg { color: #16A34A; }
.rf-goal h3 { font-size: 17px; line-height: 1.4; }

.rf-footnote {
  margin-top: 32px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

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

/* Tablet: schmalerer Abstand zwischen den Spalten */
@media (max-width: 1024px) {
  .article-card .rights-flow { --rf-gap: 80px; }
  .rf-card h3 { font-size: 19px; }
  .rf-always h3 { font-size: 22px; line-height: 1.3; }
}

/* Mobil (Design-Export "Mobile · 390 px"): eine Spalte, das Ja-Ergebnis
   sitzt in der Karte der Prüffrage. */
@media (max-width: 768px) {
  /* Diagramm nutzt einen Teil des Kartenrands, damit es näher an die 350 px des Designs kommt */
  .article-card .rights-flow { margin: 28px -12px 0; padding-top: 28px; }
  .comparison-followup { margin-top: 40px; font-size: 14px; line-height: 24px; }

  .rights-flow { --rf-line: #4E84B1; }

  .rf-mail {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  /* Verbindungen: kurze Linie, Label, Pfeil */
  .rf-down,
  .rf-down--main {
    width: 100%;
    gap: 2px;
    padding: 7px 0;
  }
  .rf-line { width: 2px; height: 10px; }
  .rf-head { width: 26px; height: 26px; margin-top: 0; }
  .rf-label { margin: 0; font-size: 15px; line-height: 18px; padding: 3px 14px; }

  .rf-curve {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 0;
  }
  .rf-curve-path { display: none; }
  .rf-curve::before {
    content: '';
    width: 2px;
    height: 10px;
    background: var(--rf-line);
  }
  .rf-curve .rf-head { position: static; }

  .rf-card { padding: 20px; }
  .rf-card h3 { font-size: 20px; line-height: 27px; }
  .rf-card p { font-size: 15px; line-height: 24px; }

  .rf-always { gap: 16px; }
  .rf-always h3 { font-size: 20px; line-height: 26px; }
  .rf-always > p { font-size: 15.5px; line-height: 25px; }
  .rf-finance {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #F5F9FC;
    border-color: var(--rf-border);
    border-radius: 7px;
    font-size: 14.5px;
    line-height: 22px;
  }
  .rf-finance svg { width: 20px; height: 20px; }

  /* Prüfung + Ja-Ergebnis als eine Karte */
  .rf-row,
  .rf-row--goal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .rf-row:not(.rf-row--goal) {
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--rf-border);
    border-radius: 8px;
    box-shadow: var(--rf-shadow);
  }
  .rf-row:not(.rf-row--goal) .rf-question {
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    gap: 12px;
  }
  .rf-q-icon { width: 32px; height: 32px; }

  .rf-yes { padding: 0; height: 30px; }
  .rf-yes-line,
  .rf-yes-head { display: none; }
  .rf-label--yes { font-size: 15px; line-height: 18px; color: #195D39; padding: 5px 7px; }

  .rf-result {
    min-height: 0;
    padding: 16px;
    gap: 12px;
  }
  .rf-result h3 { font-size: 18px; line-height: 25px; }
  .rf-amount { font-size: 14.5px; line-height: 19px; color: #195D39; }
  .rf-result .rf-hint { font-size: 14.5px; line-height: 22px; margin-top: 0; }

  .rf-goal { padding: 18px 16px; }
  .rf-goal svg { width: 26px; height: 26px; }
  .rf-goal h3 { font-size: 17.5px; line-height: 25px; font-weight: 600; }

  .rf-footnote { margin-top: 24px; font-size: 12px; line-height: 18px; }
}
