/* =====================================================================
   Finanzmanager24 – gemeinsames CSS für alle eigenen Rechner
   - Buttons und Formularfelder kommen aus dem Seiten-CSS (.btn, .btn-primary,
     .btn-outline-primary, .form-control, .form-select) und werden hier nicht neu definiert.
   - Farben, Radien, Schatten über die Variablen aus fm24.css (--fm24-*).
   - Alles ist auf .fm24-rechner begrenzt; übertragbar auf vergleich-sofortrente.de.
   ===================================================================== */

.fm24-rechner { --r-gap: 24px;
  /* Farbnamen, die einige Rechner-Scripts direkt verwenden – auf die Seitenfarben abgebildet */
  --primary: var(--fm24-primary); --text: var(--fm24-text); --text-light: var(--fm24-muted); --border: var(--fm24-border); --muted: var(--fm24-surface); --light: #fff; --secondary: #e36159; --tertiary: #2baab1; --success: var(--fm24-positive); --warning: #f0a30a; --danger: #c0392b;
  color: var(--fm24-text); font-size: 15px; line-height: 1.6; }
.fm24-rechner h2, .fm24-rechner h3, .fm24-rechner h4 { color: var(--fm24-ink); letter-spacing: normal; text-transform: none; line-height: 1.3; }
.fm24-rechner h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.fm24-rechner h3 { font-size: 1.05rem; margin: 0 0 1rem; font-weight: 600; }
.fm24-rechner p { margin: 0 0 .8rem; }

/* ---------- Aufbau: Fortschritt links, Formular rechts ---------- */
.fm24-rechner .main-content { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--r-gap); }
.fm24-rechner .sidebar { position: sticky; top: 110px; align-self: start; }
.fm24-rechner .progress-card,
.fm24-rechner .form-card,
.fm24-rechner .metric-card,
.fm24-rechner .chart-container,
.fm24-rechner .explanation-section,
.fm24-rechner .results-table { background: #fff; border: 1px solid var(--fm24-border); border-radius: var(--fm24-radius); box-shadow: var(--fm24-shadow); }
.fm24-rechner .progress-card { padding: 18px; }
.fm24-rechner .progress-card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fm24-muted); margin-bottom: 12px; }
.fm24-rechner .progress-bar { height: 6px; background: var(--fm24-surface); border-radius: 3px; overflow: hidden; margin-bottom: 16px; display: block; }
.fm24-rechner .progress-fill { height: 100%; background: var(--fm24-primary); transition: width .3s ease; }
.fm24-rechner .progress-text { font-size: .85rem; color: var(--fm24-muted); text-align: center; margin: -6px 0 0; }
.fm24-rechner .steps { display: flex; flex-direction: column; gap: 8px; }
.fm24-rechner .step { padding: 10px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; cursor: pointer; border-left: 3px solid transparent; background: var(--fm24-surface); color: var(--fm24-muted); transition: background .2s, color .2s; }
.fm24-rechner .step small, .fm24-rechner .step span { display: block; font-size: .78rem; font-weight: 400; }
.fm24-rechner .step.active { background: var(--fm24-primary); color: #fff; }
.fm24-rechner .step.completed { background: #e8f6ee; color: var(--fm24-positive); border-left-color: var(--fm24-positive); }

/* ---------- Formular ---------- */
.fm24-rechner .step-page { display: none; }
.fm24-rechner .step-page.active { display: block; }
.fm24-rechner .form-card { padding: 28px; }
.fm24-rechner .form-card > p { color: var(--fm24-muted); font-size: .9rem; margin-bottom: 22px; }
.fm24-rechner .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 22px; margin-bottom: 18px; }
.fm24-rechner .form-group .form-control, .fm24-rechner .form-group .form-select { font-size: .95rem; min-height: 44px; }
.fm24-rechner textarea.form-control { min-height: 90px; }
.fm24-rechner .form-group { display: flex; flex-direction: column; }
.fm24-rechner .form-group > label { font-size: .88rem; font-weight: 600; color: var(--fm24-ink); margin-bottom: 6px; }
.fm24-rechner .form-group .required, .fm24-rechner label .required { color: #c0392b; }
.fm24-rechner .info-text { background: var(--fm24-primary-soft); border-left: 3px solid var(--fm24-primary); padding: 10px 12px; border-radius: 6px; font-size: .8rem; color: var(--fm24-muted); margin-top: 8px; }
.fm24-rechner .radio-group, .fm24-rechner .checkbox-group { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 6px; }
.fm24-rechner .radio-option, .fm24-rechner .checkbox-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; }
.fm24-rechner .radio-option label, .fm24-rechner .checkbox-option label { margin: 0; font-weight: 400; cursor: pointer; }
.fm24-rechner input[type=radio], .fm24-rechner input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--fm24-primary); }
.fm24-rechner input[type=range] { width: 100%; accent-color: var(--fm24-primary); }
.fm24-rechner .slider-value, .fm24-rechner .range-value, .fm24-rechner output { font-family: inherit; font-weight: 600; color: var(--fm24-primary); }
.fm24-rechner .button-group { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.fm24-rechner .result-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Ergebnis ---------- */
.fm24-rechner .results-container { display: none; }
.fm24-rechner .results-container.active { display: block; }
.fm24-rechner .classification { background: linear-gradient(135deg, var(--fm24-primary) 0%, var(--fm24-primary-dark) 100%); color: #fff; padding: 26px; border-radius: var(--fm24-radius); text-align: center; margin-bottom: var(--r-gap); }
.fm24-rechner .classification.negative, .fm24-rechner .classification.warning { background: linear-gradient(135deg, #e36159 0%, #c0392b 100%); }
.fm24-rechner .classification.positive, .fm24-rechner .classification.success { background: linear-gradient(135deg, #34a36b 0%, var(--fm24-positive) 100%); }
.fm24-rechner .classification h2, .fm24-rechner .classification p { color: #fff; }
.fm24-rechner .classification h2 { font-size: 1.6rem; }
.fm24-rechner .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: var(--r-gap); }
.fm24-rechner .metric-card { padding: 18px; text-align: center; }
.fm24-rechner .metric-card .label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fm24-muted); margin-bottom: 6px; }
.fm24-rechner .metric-card .value { font-size: 1.45rem; font-weight: 700; color: var(--fm24-primary); line-height: 1.2; }
.fm24-rechner .chart-container { padding: 22px; margin-bottom: var(--r-gap); position: relative; }
.fm24-rechner .chart-container canvas, .fm24-rechner canvas { max-width: 100% !important; }
.fm24-rechner .results-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: var(--r-gap); font-size: .88rem; }
.fm24-rechner .results-table th { background: var(--fm24-primary); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
.fm24-rechner .results-table td { padding: 12px 14px; border-bottom: 1px solid var(--fm24-border); }
.fm24-rechner .results-table tr:last-child td { border-bottom: 0; }
.fm24-rechner .results-table tr:nth-child(even) td { background: var(--fm24-surface); }
.fm24-rechner .results-table .highlight { font-weight: 600; color: var(--fm24-primary); }
.fm24-rechner .explanation-section { padding: 24px; margin-bottom: var(--r-gap); }
.fm24-rechner .explanation-section p { color: var(--fm24-muted); font-size: .9rem; }
.fm24-rechner .disclaimer { background: var(--fm24-surface); border-left: 3px solid var(--fm24-muted); padding: 12px 14px; border-radius: 6px; font-size: .8rem; color: var(--fm24-muted); margin-top: var(--r-gap); }

/* ---------- Kontaktschritt (von fm24-tool.js eingefügt) ---------- */
.fm24-rechner .fm24t-contact { margin: 18px 0 6px; padding: 18px; border: 1px solid var(--fm24-border); border-radius: var(--fm24-radius); background: var(--fm24-primary-soft); }
.fm24-rechner .fm24t-contact__title { font-weight: 600; margin: 0 0 4px; font-size: 1rem; color: var(--fm24-ink); }
.fm24-rechner .fm24t-contact__intro, .fm24-rechner .fm24t-note { font-size: .85rem; color: var(--fm24-muted); }
.fm24-rechner .fm24t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fm24-rechner .fm24t-field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
.fm24-rechner .fm24t-field .form-control { width: 100%; font-size: .95rem; min-height: 44px; background: #fff; }
.fm24-rechner .fm24t-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .8rem; line-height: 1.45; }
.fm24-rechner .fm24t-error { display: none; margin-top: 10px; padding: 8px 12px; border-radius: 6px; background: #fdecea; color: #a12622; font-size: .8rem; }
.fm24-rechner .fm24t-error.is-visible { display: block; }
.fm24-rechner .fm24t-thanks { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--fm24-radius); background: #e8f6ee; border: 1px solid #bfe3cd; color: #1e6b3a; font-size: .9rem; }
.fm24-rechner .fm24t-thanks strong { display: block; font-size: 1rem; }
.fm24-rechner .fm24t-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Druck-Deckblatt (nur beim Drucken sichtbar) ---------- */
.fm24-rechner .print-cover { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 991px) {
  .fm24-rechner .main-content { grid-template-columns: minmax(0, 1fr); }
  .fm24-rechner .sidebar { position: static; }
  .fm24-rechner .steps { flex-direction: row; flex-wrap: wrap; }
  .fm24-rechner .step { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 575px) {
  .fm24-rechner .form-card { padding: 18px; }
  .fm24-rechner .button-group { flex-direction: column-reverse; }
  .fm24-rechner .button-group .btn, .fm24-rechner .result-buttons .btn { width: 100%; }
  .fm24-rechner .fm24t-grid { grid-template-columns: 1fr; }
  .fm24-rechner div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .fm24-rechner [style*="align-items: flex-end"] { overflow-x: auto; }
  .fm24-rechner table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fm24-rechner [class*="grid"] > *, .fm24-rechner .metrics > * { min-width: 0; }
  .fm24-rechner .metric-card .value, .fm24-rechner .metric-value { font-size: 1.2rem; overflow-wrap: anywhere; }
  .fm24-rechner .charts-grid, .fm24-rechner .comparison-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .fm24-rechner .form-container, .fm24-rechner .results-container, .fm24-rechner .results-section { min-width: 0; }
}

/* ---------- Druck: nur Deckblatt + Ergebnis ---------- */
@media print {
  .fm24-rechner .sidebar, .fm24-rechner .button-group, .fm24-rechner .result-buttons, .fm24-rechner .form-card, .fm24-rechner .fm24t-contact, .fm24-rechner .fm24t-thanks { display: none !important; }
  .fm24-rechner .print-cover { display: flex !important; flex-direction: column; justify-content: center; align-items: center; min-height: 90vh; text-align: center; page-break-after: always; }
  .fm24-rechner .main-content { grid-template-columns: 1fr; }
  .fm24-rechner .results-container { display: block !important; }
  .fm24-rechner .metric-card, .fm24-rechner .chart-container, .fm24-rechner .results-table, .fm24-rechner .explanation-section { box-shadow: none; page-break-inside: avoid; }
}

/* ======== Bausteine einzelner Rechner (nur dort verwendet) ======== */
/* --- entnahmeplan-rechner --- */
.fm24-rechner .progress-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.fm24-rechner .slider-container {
  margin-bottom: 20px;
}
.fm24-rechner .slider-container label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
}
.fm24-rechner .slider-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}
.fm24-rechner .slider-wrapper input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--fm24-border);
  outline: none;
  -webkit-appearance: none;
}
.fm24-rechner .slider-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fm24-primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.fm24-rechner .slider-wrapper input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fm24-primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.fm24-rechner .slider-value {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: var(--fm24-primary);
}
.fm24-rechner .results-section {
  display: none;
}
.fm24-rechner .results-section.active {
  display: block;
}
@media print {
  .fm24-rechner .progress-container {
  display: none;
}
  .fm24-rechner .results-section {
  display: block !important;
}
}
  /* --- etf-sparplan-rechner --- */
.fm24-rechner .etf-category {
  margin-bottom: 30px;
}
.fm24-rechner .etf-category-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fm24-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fm24-primary);
}
.fm24-rechner .etf-checkbox {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--fm24-border);
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fm24-rechner .etf-checkbox:hover {
  background-color: var(--fm24-surface);
  border-color: var(--fm24-primary);
}
.fm24-rechner .etf-checkbox input[type="checkbox"] {
  margin-right: 12px;
  cursor: pointer;
}
.fm24-rechner .etf-info {
  flex: 1;
}
.fm24-rechner .etf-name {
  font-weight: 600;
  color: var(--fm24-text);
  margin-bottom: 4px;
  font-size: 13px;
}
.fm24-rechner .etf-details {
  font-size: 11px;
  color: var(--fm24-muted);
}
.fm24-rechner .tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted var(--fm24-primary);
  color: var(--fm24-primary);
  font-weight: 600;
}
.fm24-rechner .tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: var(--fm24-text);
  color: white;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  font-weight: normal;
}
.fm24-rechner .tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.fm24-rechner .comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.fm24-rechner .comparison-card {
  background: white;
  border: 1px solid var(--fm24-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.fm24-rechner .comparison-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--fm24-primary);
}
.fm24-rechner .comparison-card .metric {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--fm24-border);
  font-size: 13px;
}
.fm24-rechner .comparison-card .metric:last-child {
  border-bottom: none;
}
.fm24-rechner .comparison-card .metric-label {
  color: var(--fm24-muted);
}
.fm24-rechner .comparison-card .metric-value {
  font-weight: 600;
  color: var(--fm24-text);
}
@media (max-width: 768px) {
  .fm24-rechner .comparison-grid {
  grid-template-columns: 1fr;
}
}
@media print {
  .fm24-rechner .comparison-card {
  page-break-inside: avoid;
  box-shadow: none;
}
}
  /* --- etf-vs-sofortrente-rechner --- */
.fm24-rechner .comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.fm24-rechner .comparison-card {
  background: white;
  border: 2px solid var(--fm24-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.fm24-rechner .comparison-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--fm24-text);
  border-bottom: 2px solid var(--fm24-primary);
  padding-bottom: 10px;
}
.fm24-rechner .metric {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--fm24-border);
  font-size: 13px;
}
.fm24-rechner .metric:last-child {
  border-bottom: none;
}
.fm24-rechner .metric-label {
  color: var(--fm24-muted);
  font-weight: 500;
}
.fm24-rechner .metric-value {
  font-weight: 600;
  color: var(--fm24-text);
}
.fm24-rechner .recommendation-card {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border: 2px solid var(--fm24-primary);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.1);
}
.fm24-rechner .recommendation-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fm24-primary);
  margin-bottom: 15px;
}
.fm24-rechner .recommendation-card p {
  font-size: 14px;
  color: var(--fm24-text);
  line-height: 1.8;
  margin-bottom: 10px;
}
.fm24-rechner .explanation-box {
  background-color: #f9f9f9;
  border-left: 4px solid var(--fm24-primary);
  padding: 20px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--fm24-text);
  margin-bottom: 30px;
  line-height: 1.8;
}
.fm24-rechner .explanation-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fm24-primary);
}
.fm24-rechner .info-box {
  background-color: #E3F2FD;
  border-left: 4px solid var(--fm24-primary);
  padding: 15px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--fm24-text);
  margin-bottom: 20px;
}
  /* --- kapitalanlage-rechner --- */
.fm24-rechner .step-label {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}
.fm24-rechner .summary-box {
  background: var(--fm24-surface);
  border-left: 4px solid var(--fm24-primary);
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 30px;
}
.fm24-rechner .summary-box p {
  font-size: 13px;
  color: var(--fm24-muted);
  margin-bottom: 8px;
}
.fm24-rechner .summary-box .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--fm24-primary);
}
.fm24-rechner .radio-label {
  flex: 1;
}
.fm24-rechner .radio-label strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--fm24-text);
}
.fm24-rechner .radio-label small {
  display: block;
  font-size: 12px;
  color: var(--fm24-muted);
}
.fm24-rechner .info-box {
  background: #E3F2FD;
  border-left: 4px solid var(--fm24-primary);
  padding: 15px;
  border-radius: 4px;
  margin-top: 30px;
  font-size: 13px;
  color: #01579B;
}
.fm24-rechner .info-box strong {
  display: block;
  margin-bottom: 5px;
}
.fm24-rechner .form-nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--fm24-border);
}
.fm24-rechner .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fm24-rechner .btn-outline {
  background: white;
  color: var(--fm24-text);
  border: 1px solid var(--fm24-border);
}
.fm24-rechner .btn-outline:hover:not(:disabled) {
  background: var(--fm24-surface);
}
.fm24-rechner .btn-yellow {
  background: #FFC107;
  color: #333;
  border: 1px solid #FFB300;
}
.fm24-rechner .btn-yellow:hover:not(:disabled) {
  background: #FFB300;
}
.fm24-rechner .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fm24-rechner .btn-ml-auto {
  margin-left: auto;
}
.fm24-rechner .results-page {
  display: none;
}
.fm24-rechner .results-page.active {
  display: block;
}
.fm24-rechner .result-header {
  margin-bottom: 40px;
}
.fm24-rechner .result-header h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--fm24-text);
  font-weight: 700;
}
.fm24-rechner .classification-label {
  font-size: 12px;
  color: #e36159;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 5px;
}
.fm24-rechner .classification-value {
  font-size: 28px;
  color: #e36159;
  font-weight: 700;
}
.fm24-rechner .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  background: var(--fm24-surface);
  padding: 30px;
  border-radius: 8px;
}
.fm24-rechner .result-card {
  text-align: center;
}
.fm24-rechner .result-card .label {
  font-size: 12px;
  color: var(--fm24-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.fm24-rechner .result-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--fm24-primary);
}
.fm24-rechner .chart-wrapper {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}
.fm24-rechner .chart-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.fm24-rechner .chart-summary-item {
  text-align: center;
}
.fm24-rechner .chart-summary-label {
  font-size: 12px;
  color: var(--fm24-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.fm24-rechner .chart-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--fm24-primary);
}
.fm24-rechner .calculation-table {
  background: white;
  border: 1px solid var(--fm24-border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}
.fm24-rechner .calculation-table h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--fm24-text);
  font-weight: 600;
}
.fm24-rechner .calculation-table table {
  width: 100%;
  border-collapse: collapse;
}
.fm24-rechner .calculation-table tr {
  border-bottom: 1px solid var(--fm24-border);
}
.fm24-rechner .calculation-table tr:last-child {
  border-bottom: none;
}
.fm24-rechner .calculation-table td {
  padding: 12px 0;
  font-size: 14px;
}
.fm24-rechner .calculation-table td:first-child {
  color: var(--fm24-text);
}
.fm24-rechner .calculation-table td:last-child {
  text-align: right;
  color: var(--fm24-primary);
  font-weight: 600;
}
.fm24-rechner .calculation-table tr:nth-child(odd) {
  background: var(--fm24-surface);
}
.fm24-rechner .calculation-table tr:nth-child(odd) td {
  padding: 12px 12px;
}
.fm24-rechner .explanation-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fm24-border);
}
.fm24-rechner .explanation-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.fm24-rechner .explanation-item strong {
  color: var(--fm24-primary);
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.fm24-rechner .explanation-item p {
  font-size: 13px;
  color: var(--fm24-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.fm24-rechner .action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
@media print {
  .fm24-rechner .form-nav {
  display: none !important;
}
  .fm24-rechner .action-buttons {
  display: none !important;
}
  .fm24-rechner .results-page {
  display: block !important;
}
  .fm24-rechner .result-header {
  page-break-inside: avoid;
}
  .fm24-rechner .results-grid {
  page-break-inside: avoid;
}
  .fm24-rechner .calculation-table {
  page-break-inside: avoid;
  margin-bottom: 20px;
}
}
@media (max-width: 768px) {
  .fm24-rechner .chart-summary {
  grid-template-columns: 1fr;
}
}
  /* --- portfolio-rechner --- */
.fm24-rechner .slider-group {
  margin-bottom: 30px;
}
.fm24-rechner .slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fm24-rechner .slider-header label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fm24-text);
}
.fm24-rechner .slider-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--fm24-primary);
}
.fm24-rechner .portfolio-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fm24-rechner .portfolio-btn {
  padding: 8px 16px;
  border: 2px solid var(--fm24-border);
  background: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fm24-rechner .portfolio-btn:hover {
  border-color: var(--fm24-primary);
  background: rgba(0, 136, 204, 0.05);
}
.fm24-rechner .portfolio-btn.active {
  background: var(--fm24-primary);
  color: white;
  border-color: var(--fm24-primary);
}
.fm24-rechner .charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.fm24-rechner .pie-chart {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}
.fm24-rechner .pie-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.fm24-rechner .pie-color {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}
.fm24-rechner .bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  gap: 15px;
  margin: 20px 0;
}
.fm24-rechner .bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fm24-rechner .bar-fill {
  width: 40px;
  background: var(--fm24-primary);
  border-radius: 4px 4px 0 0;
}
.fm24-rechner .bar-label {
  font-size: 11px;
  text-align: center;
  color: var(--fm24-muted);
  max-width: 60px;
}
@media (max-width: 768px) {
  .fm24-rechner .charts-grid {
  grid-template-columns: 1fr;
}
}
  /* --- riester-foerderrechner --- */
.fm24-rechner .children-container {
  background: var(--fm24-surface);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}
.fm24-rechner .child-entry {
  background: white;
  border: 1px solid var(--fm24-border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 15px;
}
.fm24-rechner .child-entry:last-child {
  margin-bottom: 0;
}
.fm24-rechner .child-entry h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--fm24-primary);
}
.fm24-rechner .child-entry .form-grid {
  margin-bottom: 15px;
}
.fm24-rechner .btn-remove-child {
  background-color: #ff6b6b;
  color: white;
  padding: 8px 16px;
  font-size: 12px;
  margin-top: 10px;
}
.fm24-rechner .btn-remove-child:hover {
  background-color: #ff5252;
}
.fm24-rechner .btn-add-child {
  background-color: #2baab1;
  color: white;
  padding: 10px 20px;
  margin-top: 15px;
}
.fm24-rechner .btn-add-child:hover {
  background-color: #249a9a;
}
  /* --- risikoprofil-tool --- */
.fm24-rechner .question-container {
  margin-bottom: 40px;
}
.fm24-rechner .question-text {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--fm24-text);
}
.fm24-rechner .likert-scale {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.fm24-rechner .likert-option {
  flex: 1;
  min-width: 80px;
  text-align: center;
}
.fm24-rechner .likert-option input[type="radio"] {
  display: none;
}
.fm24-rechner .likert-option label {
  display: block;
  padding: 12px 8px;
  border: 2px solid var(--fm24-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  background: white;
}
.fm24-rechner .likert-option input[type="radio"]:checked + label {
  background: var(--fm24-primary);
  color: white;
  border-color: var(--fm24-primary);
  font-weight: 600;
}
.fm24-rechner .likert-option label:hover {
  border-color: var(--fm24-primary);
}
.fm24-rechner .risk-classification {
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  color: white;
}
.fm24-rechner .risk-classification.conservative {
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}
.fm24-rechner .risk-classification.balanced {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}
.fm24-rechner .risk-classification.aggressive {
  background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
}
.fm24-rechner .risk-classification h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.fm24-rechner .risk-score {
  font-size: 48px;
  font-weight: 700;
  margin: 20px 0;
}
.fm24-rechner .risk-description {
  font-size: 14px;
  opacity: 0.95;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .fm24-rechner .likert-scale {
  flex-direction: column;
}
  .fm24-rechner .likert-option {
  min-width: 100%;
}
}
@media print {
  .fm24-rechner .risk-classification {
  page-break-inside: avoid;
  box-shadow: none;
}
}
  /* --- ruhestandsrechner --- */
.fm24-rechner .chart-summary-value.negative {
  color: #e36159;
}
  /* --- schichten-finder --- */
.fm24-rechner .results-header {
  background: linear-gradient(135deg, var(--fm24-primary) 0%, #0066AA 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}
.fm24-rechner .results-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.fm24-rechner .layer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.fm24-rechner .layer-card {
  background: white;
  border: 2px solid var(--fm24-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.fm24-rechner .layer-card.recommended {
  border-color: var(--fm24-primary);
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.05) 0%, rgba(0, 136, 204, 0.02) 100%);
}
.fm24-rechner .layer-card.not-recommended {
  opacity: 0.7;
}
.fm24-rechner .layer-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fm24-text);
}
.fm24-rechner .layer-card .layer-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--fm24-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.fm24-rechner .layer-card .recommendation-badge {
  display: inline-block;
  background-color: var(--fm24-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 15px;
}
.fm24-rechner .layer-card .recommendation-badge.not {
  background-color: #999;
}
.fm24-rechner .layer-card p {
  font-size: 13px;
  color: var(--fm24-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.fm24-rechner .layer-card .details {
  background: white;
  border-top: 1px solid var(--fm24-border);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 12px;
}
.fm24-rechner .layer-card .detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.fm24-rechner .layer-card .detail-label {
  font-weight: 600;
  color: var(--fm24-text);
}
.fm24-rechner .layer-card .detail-value {
  color: var(--fm24-muted);
}
@media (max-width: 768px) {
  .fm24-rechner .layer-cards {
  grid-template-columns: 1fr;
}
}
@media print {
  .fm24-rechner .results-header, .fm24-rechner .layer-cards {
  page-break-inside: avoid;
  box-shadow: none;
}
}
  /* --- steuerliche-foerderung-rechner --- */
.fm24-rechner .info-box {
  background-color: #fff3cd;
  border-left: 4px solid #ff9800;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #856404;
}
.fm24-rechner .info-box strong {
  color: #1a1a1a;
}
.fm24-rechner .summary-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  border-left: 4px solid var(--fm24-primary);
  padding: 20px;
  border-radius: 6px;
  margin-top: 20px;
}
.fm24-rechner .summary-box p {
  color: var(--fm24-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.fm24-rechner .summary-box .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--fm24-primary);
}
.fm24-rechner .btn-success {
  background-color: #4caf50;
  color: white;
}
.fm24-rechner .btn-success:hover {
  background-color: #45a049;
}
.fm24-rechner .comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid var(--fm24-border);
}
.fm24-rechner .comparison-table th {
  background-color: var(--fm24-primary);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.fm24-rechner .comparison-table td {
  padding: 15px;
  border-bottom: 1px solid var(--fm24-border);
  font-size: 13px;
}
.fm24-rechner .comparison-table tr:last-child td {
  border-bottom: none;
}
.fm24-rechner .comparison-table tr:nth-child(even) {
  background-color: var(--fm24-surface);
}
.fm24-rechner .comparison-table .highlight {
  font-weight: 600;
  color: var(--fm24-primary);
}
.fm24-rechner .explanation-item strong {
  color: var(--fm24-text);
  display: block;
  margin-bottom: 10px;
}
.fm24-rechner .explanation-item p {
  color: var(--fm24-muted);
  font-size: 13px;
  line-height: 1.6;
}
@media print {
  .fm24-rechner .info-box {
  display: none;
}
  .fm24-rechner .comparison-table {
  page-break-inside: avoid;
  box-shadow: none;
}
}
  /* --- versicherungs-check --- */
.fm24-rechner .checkbox-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.fm24-rechner .checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.fm24-rechner .checkbox-option input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}
.fm24-rechner .checkbox-option label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
}
.fm24-rechner .recommendations-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid var(--fm24-border);
}
.fm24-rechner .recommendations-table th {
  background-color: var(--fm24-primary);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.fm24-rechner .recommendations-table td {
  padding: 15px;
  border-bottom: 1px solid var(--fm24-border);
  font-size: 13px;
}
.fm24-rechner .recommendations-table tr:last-child td {
  border-bottom: none;
}
.fm24-rechner .recommendations-table tr:nth-child(even) {
  background-color: var(--fm24-surface);
}
.fm24-rechner .recommendations-table a {
  color: var(--fm24-primary);
  text-decoration: none;
  font-weight: 600;
}
.fm24-rechner .recommendations-table a:hover {
  text-decoration: underline;
}
@media print {
  .fm24-rechner .results-header, .fm24-rechner .recommendations-table {
  page-break-inside: avoid;
  box-shadow: none;
}
}

/* ======== AV-Depot-Förderrechner (eigenes Layout, nur auf /altersvorsorge/av-depot.php) ======== */

  .fm24-avd .viz-root {
  color-scheme: light;
  --surface-1:      #fcfcfb;
  --surface-page:   #f9f9f7;
  --text-primary:   #0b0b0b;
  --text-secondary: #52514e;
  --text-muted:     #898781;
  --grid-line:      #e1e0d9;
  --axis-line:      #c3c2b7;
  --border:         rgba(11,11,11,0.10);
  --good:           #006300;
  --series-1: #2a78d6; /* Eigenbeitrag - blue */
  --series-2: #eb6834; /* Förderung & Steuer - orange */
  --series-3: #1baf7a; /* Kapitalerträge - aqua */
}
  .fm24-avd * { box-sizing: border-box; }
  .fm24-avd {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
}
  .fm24-avd .app { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
  .fm24-avd header.top { margin-bottom: 22px; }
  .fm24-avd header.top .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
  .fm24-avd header.top .brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--series-1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; letter-spacing: -.02em; flex: none;
}
  .fm24-avd header.top .brand-word { font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: -.01em; }
  .fm24-avd header.top h1 { font-size: 24px; margin: 0 0 8px; }
  .fm24-avd header.top p { color: var(--text-secondary); margin: 0; max-width: 640px; line-height: 1.5; font-size: 14.5px; }
  .fm24-avd .grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
  @media (max-width: 900px) {
  .fm24-avd .grid { grid-template-columns: 1fr; }
}
  .fm24-avd .panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
  .fm24-avd .field-group { margin-bottom: 24px; }
  .fm24-avd .field-group:last-child { margin-bottom: 0; }
  .fm24-avd .group-label {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
  .fm24-avd .help-dot {
  width: 15px; height: 15px; border-radius: 50%; background: var(--grid-line);
  color: var(--text-secondary); font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: help; flex: none;
}
  .fm24-avd .field { margin-bottom: 14px; }
  .fm24-avd .field:last-child { margin-bottom: 0; }
  .fm24-avd .field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 6px;
}
  .fm24-avd .field input[type="number"], .fm24-avd .field select {
  width: 100%; padding: 9px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-page);
  color: var(--text-primary); font-size: 14px;
}
  .fm24-avd input[type="range"] { width: 100%; accent-color: var(--series-1); height: 20px; }
  .fm24-avd .rate-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .fm24-avd .rate-input-row input[type=number] { width: 100px; text-align: right; font-weight: 650; font-size: 16px; }
  .fm24-avd .rate-input-row .unit { color: var(--text-secondary); font-size: 13px; }
  .fm24-avd .quickpick-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px;
}
  @media (max-width: 420px) { .fm24-avd .quickpick-grid { grid-template-columns: repeat(3, 1fr); } }
  .fm24-avd .quickpick {
  border: 1px solid var(--border); background: var(--surface-page); border-radius: 9px;
  padding: 7px 4px; text-align: center; cursor: pointer; font: inherit;
  color: var(--text-secondary); transition: border-color .12s, background .12s;
}
  .fm24-avd .quickpick:hover { border-color: var(--series-1); }
  .fm24-avd .quickpick.active { background: var(--series-1); border-color: var(--series-1); color: #fff; }
  .fm24-avd .quickpick .qp-val { display: block; font-weight: 700; font-size: 13px; }
  .fm24-avd .quickpick .qp-label { display: block; font-size: 9.5px; line-height: 1.25; margin-top: 2px; }
  .fm24-avd .quickpick.active .qp-label { color: rgba(255,255,255,.85); }
  .fm24-avd .toggle-row { display: flex; gap: 8px; margin-bottom: 12px; }
  .fm24-avd .toggle-btn {
  flex: 1; border: 1px solid var(--border); background: var(--surface-page); border-radius: 9px;
  padding: 9px; text-align: center; cursor: pointer; font: inherit; font-size: 13.5px;
  color: var(--text-secondary);
}
  .fm24-avd .toggle-btn.active { background: var(--series-1); border-color: var(--series-1); color: #fff; font-weight: 600; }
  .fm24-avd .kid-year-field { margin-top: 8px; padding: 10px; background: var(--surface-page); border-radius: 8px; }
  .fm24-avd .kid-year-field label { font-size: 12.5px; margin-bottom: 4px; }
  .fm24-avd .field-note { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-top: 8px; }
  .fm24-avd .preset-row { display: flex; gap: 8px; margin-top: 10px; }
  .fm24-avd .preset-row .quickpick { flex: 1; }
  /* Results */
  .fm24-avd .hero-card {
  background: linear-gradient(135deg, var(--series-1), #123f73);
  color: #fff; border-radius: 14px; padding: 22px 24px; margin-bottom: 16px;
}
  .fm24-avd .hero-card .label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; font-weight: 700; }
  .fm24-avd .hero-card .value { font-size: 38px; font-weight: 650; line-height: 1.1; }
  .fm24-avd .hero-card .sub { font-size: 13px; opacity: .9; margin-top: 8px; line-height: 1.5; max-width: 520px; }
  .fm24-avd .hero-badges { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
  .fm24-avd .hero-badge {
  background: rgba(255,255,255,.14); border-radius: 8px; padding: 7px 12px; font-size: 12.5px;
}
  .fm24-avd .hero-badge b { font-size: 14px; }
  .fm24-avd .chart-card { margin-bottom: 16px; }
  .fm24-avd .chart-card h3 { font-size: 15px; margin: 0 0 2px; }
  .fm24-avd .chart-card .sub-h { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 14px; }
  .fm24-avd svg.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
  .fm24-avd .gridline { stroke: var(--grid-line); stroke-width: 1; }
  .fm24-avd .axis-line { stroke: var(--axis-line); stroke-width: 1; }
  .fm24-avd .axis-label { fill: var(--text-muted); font-size: 10.5px; }
  .fm24-avd .area-fill { stroke: none; }
  .fm24-avd .crosshair-line { stroke: var(--axis-line); stroke-width: 1; pointer-events: none; }
  .fm24-avd .legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
  .fm24-avd .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); }
  .fm24-avd .legend-swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
  .fm24-avd .tooltip {
  position: absolute; pointer-events: none; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); min-width: 160px;
  opacity: 0; transition: opacity .1s; z-index: 5;
}
  .fm24-avd .tooltip .t-age { font-weight: 700; margin-bottom: 5px; color: var(--text-primary); }
  .fm24-avd .tooltip .t-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 3px; }
  .fm24-avd .tooltip .t-row .k { display: flex; align-items: center; gap: 5px; color: var(--text-secondary); }
  .fm24-avd .tooltip .t-row .key-sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
  .fm24-avd .tooltip .t-row .v { font-weight: 600; color: var(--text-primary); }
  .fm24-avd .tooltip .t-total { border-top: 1px solid var(--border); margin-top: 5px; padding-top: 5px; font-weight: 700; display:flex; justify-content:space-between; }
  .fm24-avd .two-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  @media (max-width: 640px) { .fm24-avd .two-card-row { grid-template-columns: 1fr; } }
  .fm24-avd .rente-card .value { font-size: 26px; font-weight: 650; }
  .fm24-avd .rente-card .value .unit { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
  .fm24-avd .rente-card .netto { color: var(--text-secondary); font-size: 15px; margin-top: 4px; }
  .fm24-avd .rente-card .foot-note { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
  .fm24-avd .compare-row-item { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
  .fm24-avd .compare-row-item:last-child { border-bottom: none; }
  .fm24-avd .compare-row-item .name { color: var(--text-secondary); display: flex; align-items: center; gap: 7px; }
  .fm24-avd .compare-row-item .name .dot { width: 9px; height: 9px; border-radius: 50%; }
  .fm24-avd .compare-row-item .amt { font-weight: 650; }
  .fm24-avd .compare-row-item.hero .amt { color: var(--series-1); }
  .fm24-avd .compare-foot { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
  .fm24-avd .action-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
  .fm24-avd .action-btn {
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 11px 18px; border-radius: 9px;
  border: 1px solid var(--border); cursor: pointer; background: var(--surface-1); color: var(--text-primary);
}
  .fm24-avd .action-btn.primary { background: var(--series-1); color: #fff; border: none; }
  .fm24-avd .action-btn:hover { opacity: .9; }
  .fm24-avd .methodology {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.7; color: var(--text-muted);
}
  .fm24-avd .methodology h4 { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .05em; }
  .fm24-avd .rebuild-note {
  margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--surface-1);
  border: 1px solid var(--border); font-size: 12px; line-height: 1.6; color: var(--text-secondary);
}
  /* Urgency / motivation callout */
  .fm24-avd .urgency-box {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-page); font-size: 12.5px; line-height: 1.55; color: var(--text-secondary);
  display: none; gap: 10px; align-items: flex-start;
}
  .fm24-avd .urgency-box.positive { border-color: rgba(27,175,122,.35); background: rgba(27,175,122,.08); }
  .fm24-avd .urgency-box .icon { flex: none; font-size: 16px; line-height: 1.3; }
  .fm24-avd .urgency-box b { color: var(--text-primary); }
  .fm24-avd .urgency-box .cta-link {
  display: inline-block; margin-top: 6px; font-weight: 600; color: var(--series-1);
  cursor: pointer; text-decoration: underline; background: none; border: none; padding: 0; font: inherit;
}
  .fm24-avd .riester-toggle-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; font-weight: 600; }
  .fm24-avd .riester-toggle-row input[type="checkbox"] { width: 16px; height: 16px; flex: none; }
  .fm24-avd .riester-panel { display: none; margin-top: 12px; padding: 12px; background: var(--surface-page); border-radius: 10px; }
  .fm24-avd .riester-panel.open { display: block; }
  .fm24-avd .riester-rendite-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
  .fm24-avd .riester-rendite-row input[type="number"] { width: 64px; font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); }
  .fm24-avd .riester-compare-panel { display: none; margin-bottom: 16px; }
  .fm24-avd .riester-compare-panel.open { display: block; }
  .fm24-avd .riester-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  .fm24-avd .riester-col { border-radius: 10px; padding: 12px 14px; background: var(--surface-page); border: 1px solid var(--border); }
  .fm24-avd .riester-col.avd { border-color: rgba(42,120,214,.35); }
  .fm24-avd .riester-col.riester { border-color: rgba(235,104,52,.35); }
  .fm24-avd .riester-col h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-secondary); }
  .fm24-avd .riester-col .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 0; }
  .fm24-avd .riester-delta {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px; text-align: center; font-size: 13.5px;
  background: rgba(27,175,122,.1); border: 1px solid rgba(27,175,122,.35);
}
  .fm24-avd .riester-delta b { color: var(--good); }
  @media (max-width: 640px) { .fm24-avd .riester-compare-grid { grid-template-columns: 1fr; } }
  /* Lead capture modal */
  .fm24-avd .modal-overlay {
  position: fixed; inset: 0; background: rgba(11,11,11,.55); display: flex;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
  .fm24-avd .modal-overlay[hidden] { display: none; }
  .fm24-avd .modal-card {
  position: relative; background: var(--surface-1); border-radius: 14px; max-width: 440px; width: 100%;
  padding: 26px; border: 1px solid var(--border); max-height: 90vh; overflow: auto;
}
  .fm24-avd .modal-card h3 { margin: 0 0 6px; font-size: 17px; }
  .fm24-avd .modal-sub { font-size: 13px; color: var(--text-secondary); margin: 0 0 18px; line-height: 1.5; }
  .fm24-avd .modal-field { margin-bottom: 12px; }
  .fm24-avd .modal-field label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 5px; }
  .fm24-avd .modal-field input {
  width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-page); color: var(--text-primary); font-size: 14px;
}
  .fm24-avd .consent-row {
  display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; font-size: 11.5px;
  color: var(--text-secondary); line-height: 1.5;
}
  .fm24-avd .consent-row input { margin-top: 2px; flex: none; }
  .fm24-avd .consent-row a { color: var(--series-1); }
  .fm24-avd .modal-error {
  color: #d03b3b; font-size: 12px; margin-top: -6px; margin-bottom: 10px; display: none;
}
  .fm24-avd .modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
  .fm24-avd .modal-success { text-align: center; padding: 10px 0; }
  .fm24-avd .modal-success .big-check { font-size: 40px; margin-bottom: 10px; }
  .fm24-avd .booking-section { margin: 18px 0; text-align: left; }
  .fm24-avd .booking-heading { font-weight: 600; font-size: 14px; margin: 0 0 8px; text-align: center; }
  .fm24-avd #inline-container { min-height: 300px; border-radius: 10px; overflow: hidden; }
  @media print {
  .fm24-avd .inputs, .fm24-avd .action-row, .fm24-avd header.top .eyebrow, .fm24-avd .modal-overlay, .fm24-avd .urgency-box { display: none !important; }
  .fm24-avd .grid { grid-template-columns: 1fr !important; display: block; }
  .fm24-avd { background: #fff; }
  .fm24-avd .panel, .fm24-avd .hero-card { border: 1px solid #ccc !important; break-inside: avoid; }
  .fm24-avd .app { max-width: 100%; padding: 0; }
}
  /* Einbettung in finanzmanager24.de */
  .fm24-avd { height: auto !important; min-height: 0 !important; }
  .fm24-avd { background: transparent; }
  .fm24-avd .app { padding: 0 0 8px; max-width: none; }
  .fm24-avd header.top { display: none; }

.fm24-avd header.top { display: none; }
.fm24-avd .app { max-width: none; padding: 0; }

/* Namensgleiche Klassen des Seiten-Themes neutralisieren (Slider, Bootstrap-Tooltip/-Progress) */
.fm24-rechner .slider-container { background: none; height: auto; overflow: visible; direction: ltr; width: auto !important; }
.fm24-rechner .tooltip { opacity: 1; z-index: auto; margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; text-align: inherit; }
.fm24-rechner .progress-bar { color: inherit; text-align: left; white-space: normal; }
.fm24-rechner .print-cover h1, .fm24-rechner .print-cover p { color: inherit; }
