/* ============================================================
   Fördermittel / Energieberatung – geteilte Styles (Phase 1)
   Gilt für foerdermittel/index.html und alle Unterseiten.
   Keine neue Designsprache: nutzt bestehende Variablen, Radien,
   Schatten und Button-Formen aus /style.css, ergänzt nur Farbwerte
   und Layout-Details innerhalb von .fm-page.
   ============================================================ */

:root {
  --fm-green-dark:   #204F3A;
  --fm-green:        #2F8F5B;
  --fm-green-mid:    #3FA36C;
  --fm-green-light:  #EAF5EF;
  --fm-green-border: #BFE0CC;
  --fm-amber:        #B4790A;
  --fm-amber-bg:     #FFF7E8;
  --fm-amber-border: #F0C674;
}

/* Entwurfs-Banner */
.fm-draft-banner {
  background: #FDEEC6;
  color: #6B4B0A;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 1px solid #E9C97C;
}

/* Hero (kein Bild-Hero – noch kein freigegebenes Motiv vorhanden) */
.fm-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--fm-green-dark) 100%);
  padding: 90px 0 70px;
}
.fm-hero-sub-page { padding: 70px 0 50px; }
.fm-hero-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.fm-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 6px 14px; border-radius: 100px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 22px;
}
.fm-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px;
}
.fm-hero-sub-page h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.fm-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.86);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 30px;
}
.fm-hero-buttons { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 24px; }
.fm-hero-note {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  border-left: 3px solid var(--fm-green-mid);
  padding-left: 12px;
  max-width: 640px;
  line-height: 1.6;
}

/* Breadcrumb-artiger Rücklink oben im Hero der Unterseiten */
.fm-breadcrumb {
  margin-bottom: 18px;
}
.fm-breadcrumb a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 1px;
}
.fm-breadcrumb a:hover { color: #fff; border-color: #fff; }

/* Grüner Akzent für Buttons/Section-Tags NUR innerhalb dieser Seite */
.fm-page .btn-primary { background: var(--fm-green); }
.fm-page .btn-primary:hover { background: var(--fm-green-dark); box-shadow: 0 6px 20px rgba(47,143,91,.35); }
.fm-page .section-tag { color: var(--fm-green); }
.fm-page .section-tag::before,
.fm-page .section-tag::after { background: var(--fm-green); }

/* Lange CTA-Beschriftungen (Ratgeber-Artikel) dürfen auf schmalen Screens umbrechen statt
   abgeschnitten zu werden – überschreibt nur innerhalb .fm-page das globale white-space: nowrap. */
@media (max-width: 560px) {
  .fm-page .btn-primary {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}

.fm-section-alt { background: var(--fm-green-light); }

/* Themenkarten (Übersichtsseite) */
.fm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .fm-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fm-cards { grid-template-columns: 1fr; } }
.fm-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fm-card-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.fm-card-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--blue-dark); margin-bottom: .5rem; }
.fm-card-text { font-size: .92rem; color: var(--text-mid); line-height: 1.6; flex-grow: 1; }
.fm-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--fm-green);
  text-decoration: none;
}
.fm-card-link:hover { color: var(--fm-green-dark); text-decoration: underline; }

/* Ablauf / Steps */
.fm-steps {
  counter-reset: fm-step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .fm-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fm-steps { grid-template-columns: 1fr; } }
.fm-step { position: relative; padding-left: 3.2rem; }
.fm-step::before {
  counter-increment: fm-step;
  content: counter(fm-step);
  position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--fm-green);
  color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.fm-step-title { font-weight: 700; color: var(--blue-dark); margin-bottom: .3rem; }
.fm-step-text { font-size: .9rem; color: var(--text-mid); line-height: 1.55; }
.fm-note { margin-top: 2rem; font-size: .88rem; color: var(--text-light); font-style: italic; }

/* Checkliste ("Was kann geprüft werden?") */
.fm-check-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem 2rem;
}
@media (max-width: 700px) { .fm-check-list { grid-template-columns: 1fr; } }
.fm-check-item {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.fm-check-item::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--fm-green-light);
  color: var(--fm-green-dark);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}

/* Partner-/Experten-Box */
.fm-partner-box {
  background: var(--bg-white);
  border: 1px dashed var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.5rem;
}
.fm-partner-list { margin-top: 1rem; padding-left: 1.2rem; }
.fm-partner-list li { color: var(--text-light); font-size: .92rem; margin-bottom: .4rem; list-style: disc; }

/* Fördermittel-Kontaktformular (eigenständig, siehe foerdermittel/fm-contact.html) */
@keyframes fm-spin { to { transform: rotate(360deg); } }
.fm-contact-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: .95rem;
  color: #333;
  background-color: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  height: 48px;
  box-sizing: border-box;
}
.fm-contact-select:focus {
  outline: none;
  border-color: var(--fm-green);
  box-shadow: 0 0 0 3px rgba(47,143,91,.15);
}
.fm-contact-hint { margin-top: 1.4rem; }

/* Hinweis-Box */
.fm-hinweis {
  background: var(--fm-amber-bg);
  border: 1px solid var(--fm-amber-border);
  border-left: 5px solid var(--fm-amber);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.fm-hinweis-icon { font-size: 1.6rem; line-height: 1; }
.fm-hinweis-title { font-weight: 800; color: #6B4B0A; margin-bottom: .4rem; }
.fm-hinweis-text { color: #6B4B0A; font-size: .92rem; line-height: 1.6; }

/* Kontakt / nächster Schritt */
.fm-kontakt { background: var(--fm-green-dark); color: #fff; text-align: center; }
.fm-kontakt .section-title { color: #fff; }
.fm-kontakt-small { margin-top: 1rem; font-size: .82rem; color: rgba(255,255,255,.7); }

/* Content-Bild mit Bildunterschrift */
.fm-content-image {
  margin: 2rem auto 0;
  max-width: 760px;
}
.fm-content-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
}
.fm-content-image figcaption {
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================================
   Grafische Ergänzungselemente (Juli 2026)
   Rein additiv: Förderlandkarte, Ablauf-Flow, Faktor-Chips,
   Rollenmatrix, Quellen-/Stand-Zeile. Ersetzen keine bestehenden
   Textabschnitte, nutzen dieselben Variablen/Radien/Schatten.
   ============================================================ */

/* Quellen-/Stand-Zeile unter einer Grafik */
.fm-source-line {
  margin-top: 1rem;
  font-size: .78rem;
  color: var(--text-light);
  font-style: italic;
}

/* Förderlandkarte (Übersichtsseite): Spalten je Förderstelle */
.fm-program-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .fm-program-map { grid-template-columns: 1fr; } }
.fm-program-card {
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.fm-program-card-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--fm-green-dark);
  margin-bottom: .8rem;
  font-size: 1.05rem;
}
.fm-program-card ul {
  padding-left: 1.1rem;
  margin: 0;
}
.fm-program-card li {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
  list-style: disc;
}
.fm-program-hint {
  margin-top: 1.2rem;
  font-size: .85rem;
  color: var(--text-light);
  max-width: 760px;
}

/* Ablauf-Flow: kompakte, verbundene Schritt-Kette (visuell eigenständig von .fm-steps) */
.fm-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .6rem;
  margin-top: 2rem;
}
.fm-flow-step {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: 100px;
  padding: .6rem 1.1rem;
  font-size: .85rem;
  color: var(--blue-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.fm-flow-num {
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--fm-green);
  color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fm-flow-arrow {
  align-self: center;
  color: var(--fm-green-border);
  font-size: 1.2rem;
  line-height: 1;
}
@media (max-width: 700px) {
  .fm-flow { flex-direction: column; }
  .fm-flow-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: .8rem; }
}

/* Faktor-Chips: kompakte visuelle Zusammenfassung von Einflussgrößen */
.fm-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.8rem;
}
.fm-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--fm-green-light);
  border: 1px solid var(--fm-green-border);
  border-radius: 100px;
  padding: .55rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--fm-green-dark);
}
.fm-chip-icon { font-size: 1rem; }

/* Rollenmatrix: wer macht was (Energieeffizienz-Experten-Seite) */
.fm-role-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
@media (max-width: 1000px) { .fm-role-matrix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fm-role-matrix { grid-template-columns: 1fr; } }
/* Variante mit 3 Karten (Partnerabschnitt Fördermittel-Hauptseite) */
.fm-role-matrix.fm-role-matrix--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .fm-role-matrix.fm-role-matrix--3col { grid-template-columns: 1fr; } }
.fm-role-card {
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.fm-role-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--fm-green-dark);
  font-size: .95rem;
  margin-bottom: .7rem;
}
.fm-role-card ul {
  padding-left: 1.1rem;
  margin: 0;
}
.fm-role-card li {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.55;
  list-style: disc;
}

/* Unterseiten-Navigation (zurück / Nachbarthema) */
.fm-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.6rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.fm-subnav a {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 1px;
}
.fm-subnav a:hover { color: #fff; border-color: #fff; }

/* Helle Variante: wenn die Navigation auf hellem Hintergrund steht (z. B. unter dem Kontaktformular) */
.fm-subnav--onlight {
  border-top: 1px solid var(--fm-green-border);
}
.fm-subnav--onlight a {
  color: var(--fm-green-dark);
  border-bottom-color: var(--fm-green-border);
}
.fm-subnav--onlight a:hover { color: var(--fm-green); border-bottom-color: var(--fm-green); }

/* ============================================================
   Visuelle Fallbeispiel-Grafik (energieberatung-einfamilienhaus,
   Juli 2026 / überarbeitet Juli 2026). Zusätzliches Modul:
   Kostenkarte + Förderlogik-Balken + Ablauf-Timeline +
   Rollenübersicht als vier klar abgegrenzte visuelle Bereiche.
   Rein additiv, ersetzt keine bestehenden Textabschnitte/
   Infoboxen. Rollenübersicht nutzt die bestehende
   .fm-role-card-Optik, nur der Grid-Container ist neu.
   Mobile-first: Basis-Regeln gelten für Smartphone-Breiten,
   @media (min-width) hebt für größere Screens an.
   ============================================================ */

.fm-case-visual {
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .fm-case-visual { padding: 2.4rem 2rem; }
}
.fm-case-visual > p {
  color: var(--text-mid);
  font-size: .95rem;
  line-height: 1.7;
  margin: 0;
}

.fm-case-kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fm-green-dark);
  background: var(--fm-green-light);
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}

/* ---------- Zone 1: Kostenkarte / Kostenanker ---------- */
.fm-case-amount-block {
  text-align: center;
  padding: 1.6rem 1.1rem 1.5rem;
  margin: 1.8rem 0 0;
  background: linear-gradient(160deg, var(--fm-green-light) 0%, var(--bg-white) 78%);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
}
@media (min-width: 640px) {
  .fm-case-amount-block { padding: 2rem 1.8rem 1.9rem; }
}
.fm-case-amount-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--fm-green-dark);
  margin-bottom: .5rem;
}
.fm-case-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 9vw, 3.2rem);
  color: var(--fm-green-dark);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.fm-case-amount-sub { font-size: .88rem; font-weight: 600; color: var(--text-mid); margin-top: .6rem; }
.fm-case-amount-hint {
  display: inline-block;
  font-size: .74rem;
  font-style: italic;
  color: var(--text-light);
  background: rgba(255,255,255,.6);
  border: 1px dashed var(--fm-green-border);
  border-radius: 100px;
  padding: .25rem .75rem;
  margin-top: .8rem;
}

/* ---------- Zone 2: Förderlogik als 3-Stufen-Balken ---------- */
.fm-cost-bar {
  counter-reset: fm-cost-step;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .6rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px dashed var(--fm-green-border);
}
@media (min-width: 640px) {
  .fm-cost-bar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
  }
}
.fm-cost-bar-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--fm-green-light);
  color: var(--fm-green-dark);
  border: 1px solid var(--fm-green-border);
  border-radius: 100px;
  padding: .6rem 1.2rem .6rem .55rem;
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
}
.fm-cost-bar-item::before {
  counter-increment: fm-cost-step;
  content: counter(fm-cost-step);
  flex-shrink: 0;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--fm-green);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .74rem;
  display: flex; align-items: center; justify-content: center;
}
.fm-cost-bar-item:last-child {
  background: transparent;
  border-style: dashed;
  color: var(--text-mid);
}
.fm-cost-bar-item:last-child::before { background: var(--bg-white); border: 2px solid var(--fm-green); color: var(--fm-green-dark); }
.fm-cost-bar-arrow { align-self: center; color: var(--fm-green); font-size: 1.2rem; font-weight: 700; line-height: 1; transform: rotate(90deg); }
@media (min-width: 640px) {
  .fm-cost-bar-arrow { transform: none; }
}

/* ---------- Zone 3: Ablauf-Timeline (case-flow) ---------- */
.fm-case-flow {
  display: flex;
  flex-direction: column;
  margin-top: 1.8rem;
  background: var(--fm-green-light);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.1rem 1.4rem 1.3rem;
}
@media (min-width: 640px) {
  .fm-case-flow { padding: 1.8rem 1.6rem 1.6rem 1.8rem; }
}
.fm-case-step { display: flex; gap: 1rem; position: relative; padding-bottom: 1.5rem; }
.fm-case-step:last-child { padding-bottom: 0; }
.fm-case-step::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 2.2rem;
  bottom: 0;
  width: 2px;
  background: var(--fm-green-mid);
  opacity: .35;
}
.fm-case-step:last-child::before { display: none; }
.fm-case-step-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--fm-green);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--fm-green-light);
}
.fm-case-step-body { padding-top: .15rem; }
.fm-case-step-title { font-weight: 700; color: var(--blue-dark); font-size: .95rem; margin-bottom: .2rem; }
.fm-case-step-text { font-size: .87rem; color: var(--text-mid); line-height: 1.55; }

/* ---------- Zone 4: Rollenübersicht (nutzt Optik von .fm-role-card) ---------- */
.fm-case-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
  background: var(--fm-green-light);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1rem;
}
@media (min-width: 640px) {
  .fm-case-roles { padding: 1.6rem 1.2rem; }
}
@media (min-width: 800px) { .fm-case-roles { grid-template-columns: repeat(3, 1fr); } }
.fm-case-roles .fm-role-card { background: var(--bg-white); }

.fm-case-disclaimer {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--fm-green-border);
  font-size: .84rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.65;
}

/* ============================================================
   Fachgrafik-Module: Fördermittel-Check, Sanierung als System,
   Gebäudehülle prüfen (Juli 2026). Rein additiv, ersetzen keine
   bestehenden Textabschnitte/Infoboxen. Nutzen dieselben
   Variablen/Radien/Schatten wie die übrigen fm-*-Module.
   ============================================================ */

/* --- Modul 1: Prüf-Cluster (foerdermittel-check) --- */
.fm-visual-cluster {
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2.4rem 2rem;
  margin-top: 2rem;
}
.fm-visual-factors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}
@media (max-width: 900px) { .fm-visual-factors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fm-visual-factors { grid-template-columns: 1fr; } }
.fm-visual-factor {
  background: var(--fm-green-light);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  font-size: .86rem;
  font-weight: 600;
  color: var(--fm-green-dark);
  text-align: center;
  line-height: 1.4;
}
.fm-visual-funnel {
  width: min(360px, 80%);
  margin: 1.8rem auto 1.6rem;
  clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%);
  background: linear-gradient(180deg, var(--fm-green) 0%, var(--fm-green-dark) 100%);
  color: #fff;
  text-align: center;
  padding: .9rem 1rem 1.7rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.fm-visual-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 700px) { .fm-visual-outcomes { grid-template-columns: 1fr; } }
.fm-visual-outcome {
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  text-align: center;
}
.fm-visual-outcome--positive { background: var(--fm-green-light); border: 1px solid var(--fm-green-border); }
.fm-visual-outcome--caution { background: var(--fm-amber-bg); border: 1px solid var(--fm-amber-border); }
.fm-visual-outcome-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .96rem;
  margin-bottom: .35rem;
}
.fm-visual-outcome--positive .fm-visual-outcome-label { color: var(--fm-green-dark); }
.fm-visual-outcome--caution .fm-visual-outcome-label { color: #6B4B0A; }
.fm-visual-outcome-text { font-size: .84rem; color: var(--text-mid); line-height: 1.5; }

/* --- Modul 2: System-Cluster (energetische-sanierung) --- */
.fm-system-cluster {
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2.4rem 2rem;
  margin-top: 2rem;
  text-align: center;
}
.fm-system-hub {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: var(--fm-green-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.6rem;
  min-width: 200px;
}
.fm-system-hub-icon { font-size: 1.5rem; }
.fm-system-hub-label { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .92rem; }
.fm-system-connector {
  width: 2px;
  height: 1.6rem;
  background: var(--fm-green-border);
  margin: 0 auto;
}
.fm-system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  text-align: center;
}
@media (max-width: 900px) { .fm-system-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fm-system-grid { grid-template-columns: 1fr; } }
.fm-system-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  background: var(--fm-green-light);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 1rem .6rem;
}
.fm-system-node-icon { font-size: 1.3rem; }
.fm-system-node-label { font-size: .82rem; font-weight: 600; color: var(--fm-green-dark); }
.fm-system-hint {
  margin-top: 1.8rem;
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Modul 3: Gebäudehüllen-Prüfkarte (daemmung-fenster-gebaeudehuelle) --- */
.fm-visual-envelope {
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2.4rem 2rem;
  margin-top: 2rem;
}
.fm-visual-envelope-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.4rem;
  align-items: center;
}
@media (max-width: 700px) {
  .fm-visual-envelope-grid { grid-template-columns: 1fr; }
  .fm-visual-envelope-link { transform: rotate(90deg); margin: 0 auto; }
}
.fm-visual-envelope-col-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .88rem;
  color: var(--fm-green-dark);
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.fm-visual-envelope-item {
  background: var(--fm-green-light);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: .6rem;
}
.fm-visual-envelope-item:last-child { margin-bottom: 0; }
.fm-visual-envelope-link {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--fm-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}
.fm-visual-envelope-hint {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--fm-green-border);
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ============================================================
   Fachgrafik-Module: Wärmelösung prüfen, PV-Prüfmatrix,
   Rollen im Förderprozess (Juli 2026). Rein additiv, ersetzen
   keine bestehenden Textabschnitte/Infoboxen. Reihenfolge- und
   Rollen-Module nutzen bewusst das bestehende, bislang
   ungenutzte .fm-flow-Muster (Ablauf-Flow) sowie den
   .fm-visual-outcome--caution-Baustein für Hinweisboxen wieder.
   ============================================================ */

/* --- Modul 4: Wärme-Prüfkette (heizungsoptimierung-waermeloesungen) --- */
.fm-energy-wrongway {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.4rem;
  padding: .7rem 1.1rem;
  background: var(--fm-amber-bg);
  border: 1px dashed var(--fm-amber-border);
  border-radius: var(--radius-md);
  font-size: .85rem;
  color: #6B4B0A;
}
.fm-energy-wrongway-icon { font-weight: 800; }

/* --- Modul 5: PV-Prüfmatrix (photovoltaik-eigenstrom) --- */
.fm-pv-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .fm-pv-matrix { grid-template-columns: 1fr; } }
.fm-pv-category {
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.fm-pv-category-icon { font-size: 1.5rem; margin-bottom: .6rem; }
.fm-pv-category-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--fm-green-dark);
  font-size: 1rem;
  margin-bottom: .8rem;
}
.fm-pv-category-list { padding-left: 1.1rem; margin: 0; }
.fm-pv-category-list li { font-size: .88rem; color: var(--text-mid); line-height: 1.6; list-style: disc; }
.fm-pv-caution { max-width: 680px; margin: 1.8rem auto 0; }

/* --- Modul 6: Rollen-Ablauf (energieeffizienz-experten-fachpartner) --- */
.fm-role-flow {
  display: flex;
  align-items: stretch;
  gap: .8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 700px) { .fm-role-flow { flex-direction: column; } }
.fm-role-flow-step {
  flex: 1 1 200px;
  background: var(--fm-green-light);
  border: 1px solid var(--fm-green-border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.1rem;
}
.fm-role-flow-icon { font-size: 1.4rem; margin-bottom: .5rem; }
.fm-role-flow-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  color: var(--fm-green-dark);
  margin-bottom: .7rem;
  line-height: 1.3;
}
.fm-role-flow-list { padding-left: 1.1rem; margin: 0; }
.fm-role-flow-list li { font-size: .82rem; color: var(--text-mid); line-height: 1.55; margin-bottom: .3rem; list-style: disc; }
.fm-role-flow-list li:last-child { margin-bottom: 0; }
.fm-role-flow-disclaimer { max-width: 680px; margin: 1.8rem auto 0; }

/* ============================================================
   Ratgeber-Grundstruktur (foerdermittel/ratgeber/, Juli 2026,
   Paket 1). Rein additiv, ergänzt nur ein kleines Kategorie-Label
   für die Beitragskarten. Kategorie-Leiste (.fm-chip-grid/.fm-chip)
   und Beitragskarten (.fm-cards/.fm-card) nutzen bestehende Klassen
   unverändert wieder.
   ============================================================ */

.fm-card-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fm-green);
  margin-bottom: .4rem;
}

/* Ratgeber-Vorschaukacheln auf der Fördermittel-Hauptseite (Juli 2026).
   Bewusst kleiner und zurückhaltender als .fm-cards/.fm-card, damit sie
   innerhalb der Ratgeber-Verweis-Sektion als Artikel-Vorschau wirken,
   nicht als eigene Leistungsbox. */
.fm-ratgeber-preview { margin-top: 2.2rem; }
.fm-ratgeber-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) { .fm-ratgeber-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fm-ratgeber-card-grid { grid-template-columns: 1fr; } }
.fm-ratgeber-card {
  background: var(--bg-white);
  border: 1px solid var(--fm-green-border);
  border-left: 3px solid var(--fm-green);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fm-ratgeber-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.fm-ratgeber-card-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fm-green);
  margin-bottom: .4rem;
}
.fm-ratgeber-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-dark);
  line-height: 1.4;
  margin-bottom: .5rem;
}
.fm-ratgeber-card-text {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.fm-ratgeber-card-link {
  display: inline-block;
  margin-top: .8rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--fm-green);
  text-decoration: none;
}
.fm-ratgeber-card-link:hover { color: var(--fm-green-dark); text-decoration: underline; }
