/* ==========================================================================
   HÖFT GmbH – Fördermittel-Rechner · Stylesheet
   Alle Regeln sind unter #hoeft-foerderrechner gekapselt, damit sie sich
   nicht mit dem WordPress-Theme in die Quere kommen.
   ========================================================================== */

#hoeft-foerderrechner {
  /* --- Corporate Design ------------------------------------------------- */
  --hfr-blue:      #293D9B;   /* Logo-Blau */
  --hfr-blue-800:  #1B2A6E;
  --hfr-blue-600:  #33489F;
  --hfr-blue-500:  #4A5FBC;
  --hfr-blue-400:  #6C7ECF;
  --hfr-blue-300:  #97A5E1;
  --hfr-blue-150:  #D3DAF3;
  --hfr-blue-100:  #E8ECF9;
  --hfr-blue-50:   #F4F6FD;

  --hfr-ink:       #0E1430;
  --hfr-ink-2:     #3A4260;
  --hfr-muted:     #6B7391;
  --hfr-line:      #E1E5F0;
  --hfr-line-2:    #EDF0F7;
  --hfr-surface:   #FFFFFF;
  --hfr-canvas:    #F6F7FB;
  --hfr-anthracite:#2B2E36;

  --hfr-ok:        #0F7A5A;
  --hfr-warn:      #9A6A12;

  --hfr-r-sm: 10px;
  --hfr-r:    16px;
  --hfr-r-lg: 22px;

  --hfr-shadow:    0 1px 2px rgba(14,20,48,.05), 0 8px 24px -12px rgba(14,20,48,.18);
  --hfr-shadow-lg: 0 2px 4px rgba(14,20,48,.04), 0 24px 56px -24px rgba(14,20,48,.28);

  --hfr-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
              "Helvetica Neue", Arial, sans-serif;

  box-sizing: border-box;
  font-family: var(--hfr-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--hfr-ink);
  background: var(--hfr-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  container-type: inline-size;
}
#hoeft-foerderrechner *,
#hoeft-foerderrechner *::before,
#hoeft-foerderrechner *::after { box-sizing: inherit; }

#hoeft-foerderrechner p,
#hoeft-foerderrechner h1,
#hoeft-foerderrechner h2,
#hoeft-foerderrechner h3,
#hoeft-foerderrechner h4,
#hoeft-foerderrechner ul,
#hoeft-foerderrechner ol,
#hoeft-foerderrechner figure { margin: 0; padding: 0; }
#hoeft-foerderrechner ul, #hoeft-foerderrechner ol { list-style: none; }
#hoeft-foerderrechner button { font: inherit; color: inherit; }
#hoeft-foerderrechner a { color: var(--hfr-blue); text-decoration: none; }
#hoeft-foerderrechner a:hover { text-decoration: underline; }
#hoeft-foerderrechner img, #hoeft-foerderrechner svg { max-width: 100%; }

#hoeft-foerderrechner :focus-visible {
  outline: 3px solid var(--hfr-blue-400);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Grundgerüst --------------------------------------------------------- */
.hfr-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; }

/* --- Kopfzeile ----------------------------------------------------------- */
.hfr-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--hfr-line);
  margin-bottom: 44px;
}
.hfr-logo { height: 58px; width: auto; color: var(--hfr-blue); display: block; }
.hfr-topbar-meta {
  display: flex; align-items: center; gap: 20px;
  font-size: .8125rem; color: var(--hfr-muted); letter-spacing: .01em;
}
.hfr-topbar-meta a { font-weight: 600; }
.hfr-topbar-tel { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* --- Hero ---------------------------------------------------------------- */
.hfr-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  margin-bottom: 44px;
}
.hfr-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .75rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--hfr-blue); background: var(--hfr-blue-100);
  padding: 7px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hfr-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hfr-blue);
}
.hfr-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; font-weight: 700;
  letter-spacing: -.022em; margin-bottom: 18px;
}
.hfr-hero h1 em { font-style: normal; color: var(--hfr-blue); }
.hfr-lead { font-size: 1.0625rem; color: var(--hfr-ink-2); max-width: 52ch; }
.hfr-hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hfr-fact {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 550; color: var(--hfr-ink-2);
  background: var(--hfr-surface); border: 1px solid var(--hfr-line);
  padding: 8px 14px; border-radius: 999px;
}
.hfr-fact svg { width: 15px; height: 15px; color: var(--hfr-blue); flex: none; }

.hfr-hero-media {
  position: relative; border-radius: var(--hfr-r-lg); overflow: hidden;
  background: linear-gradient(160deg, #F0F2FA 0%, #DFE4F5 100%);
  aspect-ratio: 4 / 3; box-shadow: var(--hfr-shadow);
}
.hfr-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hfr-hero-media #hfr-hero-fallback { position: absolute; inset: 0; }
.hfr-hero-media #hfr-hero-fallback svg { width: 100%; height: 100%; display: block; }
.hfr-hero-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 22px 16px; font-size: .75rem; color: #fff; letter-spacing: .01em;
  background: linear-gradient(to top, rgba(14,20,48,.72), rgba(14,20,48,0));
}

/* --- Zwei-Spalten-Layout ------------------------------------------------- */
.hfr-main { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); gap: 40px; align-items: start; }

/* --- Karten -------------------------------------------------------------- */
.hfr-card {
  background: var(--hfr-surface); border: 1px solid var(--hfr-line);
  border-radius: var(--hfr-r); padding: 30px 32px; margin-bottom: 22px;
  box-shadow: var(--hfr-shadow);
}
.hfr-card-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 26px; }
.hfr-step-no {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--hfr-blue); color: #fff;
  display: grid; place-items: center;
  font-size: .8125rem; font-weight: 650; margin-top: 1px;
}
.hfr-card-head h2 { font-size: 1.125rem; font-weight: 650; letter-spacing: -.012em; }
.hfr-card-head p { font-size: .875rem; color: var(--hfr-muted); margin-top: 3px; }

/* --- Formularelemente ---------------------------------------------------- */
.hfr-field { margin-bottom: 26px; }
.hfr-field:last-child { margin-bottom: 0; }
.hfr-label {
  display: block; font-size: .8125rem; font-weight: 650;
  letter-spacing: .035em; text-transform: uppercase; color: var(--hfr-ink-2);
  margin-bottom: 10px;
}
.hfr-help { font-size: .8125rem; color: var(--hfr-muted); margin-top: 9px; line-height: 1.5; }

.hfr-select, .hfr-input {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--hfr-line); border-radius: var(--hfr-r-sm);
  background: var(--hfr-surface); color: var(--hfr-ink);
  font-size: 1rem; font-family: inherit; font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.hfr-select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7391' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
}
.hfr-select:hover, .hfr-input:hover { border-color: var(--hfr-blue-300); }
.hfr-select:focus, .hfr-input:focus {
  outline: none; border-color: var(--hfr-blue); box-shadow: 0 0 0 3px var(--hfr-blue-100);
}

/* Betragsfeld mit €-Zeichen */
.hfr-money { position: relative; }
.hfr-money .hfr-input { padding-right: 40px; font-size: 1.375rem; font-weight: 650; letter-spacing: -.01em; }
.hfr-money::after {
  content: "€"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.125rem; font-weight: 600; color: var(--hfr-muted); pointer-events: none;
}

/* Schieberegler */
.hfr-range { width: 100%; margin: 16px 0 4px; appearance: none; background: transparent; }
.hfr-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--hfr-blue) var(--hfr-fill,50%), var(--hfr-blue-150) var(--hfr-fill,50%));
}
.hfr-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--hfr-blue-150); }
.hfr-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--hfr-blue); }
.hfr-range::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--hfr-blue);
  box-shadow: 0 2px 8px rgba(41,61,155,.32); cursor: grab;
}
.hfr-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 2px solid var(--hfr-blue); box-shadow: 0 2px 8px rgba(41,61,155,.32); cursor: grab;
}
.hfr-range-scale {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--hfr-muted); font-variant-numeric: tabular-nums;
}

/* Auswahlkacheln */
.hfr-options { display: grid; gap: 10px; }
.hfr-options.hfr-cols-2 { grid-template-columns: 1fr 1fr; }
.hfr-option { position: relative; display: block; cursor: pointer; }
.hfr-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.hfr-option-box {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--hfr-line); border-radius: var(--hfr-r-sm);
  background: var(--hfr-surface); transition: border-color .15s, background .15s, box-shadow .15s;
  height: 100%;
}
.hfr-option:hover .hfr-option-box { border-color: var(--hfr-blue-300); background: var(--hfr-blue-50); }
.hfr-option input:checked + .hfr-option-box {
  border-color: var(--hfr-blue); background: var(--hfr-blue-50);
  box-shadow: inset 0 0 0 1px var(--hfr-blue);
}
.hfr-option input:focus-visible + .hfr-option-box { outline: 3px solid var(--hfr-blue-400); outline-offset: 2px; }
.hfr-tick {
  flex: none; width: 19px; height: 19px; border-radius: 50%; margin-top: 2px;
  border: 1.5px solid var(--hfr-blue-300); background: #fff; position: relative;
  transition: border-color .15s, background .15s;
}
.hfr-option input:checked + .hfr-option-box .hfr-tick { border-color: var(--hfr-blue); background: var(--hfr-blue); }
.hfr-option input:checked + .hfr-option-box .hfr-tick::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
}
.hfr-option-txt strong { display: block; font-size: .9375rem; font-weight: 600; }
.hfr-option-txt span { display: block; font-size: .8125rem; color: var(--hfr-muted); margin-top: 2px; }

/* Schalter (Checkbox) */
.hfr-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin-top: 14px; }
.hfr-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.hfr-check-box {
  flex: none; width: 21px; height: 21px; border-radius: 6px; margin-top: 1px;
  border: 1.5px solid var(--hfr-blue-300); background: #fff; position: relative;
  transition: border-color .15s, background .15s;
}
.hfr-check input:checked + .hfr-check-box { background: var(--hfr-blue); border-color: var(--hfr-blue); }
.hfr-check input:checked + .hfr-check-box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(43deg);
}
.hfr-check input:focus-visible + .hfr-check-box { outline: 3px solid var(--hfr-blue-400); outline-offset: 2px; }
.hfr-check-txt { font-size: .9375rem; }
.hfr-check-txt span { display: block; font-size: .8125rem; color: var(--hfr-muted); margin-top: 1px; }

.hfr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hfr-hidden { display: none !important; }

/* --- Ergebnisspalte ------------------------------------------------------ */
.hfr-result-col { position: sticky; top: 24px; }

.hfr-result {
  background: linear-gradient(168deg, var(--hfr-blue-800) 0%, var(--hfr-blue) 58%, #34479F 100%);
  color: #fff; border-radius: var(--hfr-r); padding: 32px; box-shadow: var(--hfr-shadow-lg);
  position: relative; overflow: hidden;
}
.hfr-result::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px;
  border-radius: 50%; background: rgba(255,255,255,.055); pointer-events: none;
}
.hfr-result-label {
  font-size: .75rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.hfr-amount {
  font-size: clamp(2.6rem, 5.6vw, 3.5rem); font-weight: 700; letter-spacing: -.032em;
  line-height: 1.02; margin: 8px 0 6px; font-variant-numeric: tabular-nums;
}
.hfr-amount small { font-size: .42em; font-weight: 600; letter-spacing: -.01em; margin-left: 4px; }
.hfr-amount-sub { font-size: .9375rem; color: rgba(255,255,255,.82); }
.hfr-amount-sub b { color: #fff; font-weight: 650; }

/* Balken: Zusammensetzung des Fördersatzes */
.hfr-bar-wrap { margin: 26px 0 4px; }
.hfr-bar {
  position: relative; height: 13px; border-radius: 7px; overflow: hidden;
  background: rgba(255,255,255,.16); display: flex;
}
.hfr-bar-seg { height: 100%; transition: width .45s cubic-bezier(.22,1,.36,1); }
.hfr-bar-cap {
  position: absolute; top: -5px; bottom: -5px; width: 2px; background: rgba(255,255,255,.92);
  border-radius: 2px; transition: left .45s cubic-bezier(.22,1,.36,1);
}
.hfr-bar-cap::after {
  content: attr(data-label); position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
  font-size: .625rem; font-weight: 650; letter-spacing: .05em; white-space: nowrap;
  color: rgba(255,255,255,.9);
}
.hfr-bar-scale {
  display: flex; justify-content: space-between; margin-top: 7px;
  font-size: .6875rem; color: rgba(255,255,255,.6);
}

.hfr-legend { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 6px; }
.hfr-legend li {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0; font-size: .875rem; border-bottom: 1px solid rgba(255,255,255,.09);
}
.hfr-legend li:last-child { border-bottom: 0; }
.hfr-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.hfr-legend-name { flex: 1 1 auto; color: rgba(255,255,255,.9); }
.hfr-legend-pct { font-weight: 650; font-variant-numeric: tabular-nums; }
.hfr-legend li.hfr-legend-cap { color: rgba(255,255,255,.6); }
.hfr-legend li.hfr-legend-cap .hfr-legend-pct { color: rgba(255,255,255,.6); }

.hfr-result-foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16);
  display: grid; gap: 10px;
}
.hfr-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .875rem; }
.hfr-kv span { color: rgba(255,255,255,.78); }
.hfr-kv b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hfr-kv.hfr-kv-strong { font-size: 1rem; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.16); }

/* Hinweise */
.hfr-notes { margin-top: 22px; display: grid; gap: 10px; }
.hfr-note {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--hfr-surface); border: 1px solid var(--hfr-line);
  border-radius: var(--hfr-r-sm); padding: 13px 15px; font-size: .875rem; line-height: 1.5;
  color: var(--hfr-ink-2);
}
.hfr-note svg { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.hfr-note b { color: var(--hfr-ink); font-weight: 650; }
.hfr-note-info { border-left: 3px solid var(--hfr-blue); }
.hfr-note-info svg { color: var(--hfr-blue); }
.hfr-note-ok { border-left: 3px solid var(--hfr-ok); }
.hfr-note-ok svg { color: var(--hfr-ok); }
.hfr-note-warn { border-left: 3px solid var(--hfr-warn); background: #FFFDF7; }
.hfr-note-warn svg { color: var(--hfr-warn); }

/* --- Handlungsaufforderung ---------------------------------------------- */
.hfr-cta {
  margin-top: 22px; background: var(--hfr-surface); border: 1px solid var(--hfr-line);
  border-radius: var(--hfr-r); padding: 26px 28px; box-shadow: var(--hfr-shadow);
}
.hfr-cta h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: 6px; }
.hfr-cta p { font-size: .875rem; color: var(--hfr-muted); margin-bottom: 18px; }
.hfr-btns { display: grid; gap: 10px; }
.hfr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--hfr-r-sm); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 600; letter-spacing: -.005em; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  text-decoration: none !important;
}
.hfr-btn svg { width: 17px; height: 17px; flex: none; }
/* mit ID-Präfix, damit die Farben nicht von der allgemeinen a-Regel überschrieben werden */
#hoeft-foerderrechner .hfr-btn-primary { background: var(--hfr-blue); color: #fff; box-shadow: 0 6px 18px -8px rgba(41,61,155,.85); }
#hoeft-foerderrechner .hfr-btn-primary:hover { background: var(--hfr-blue-800); color: #fff; }
#hoeft-foerderrechner .hfr-btn-secondary { background: var(--hfr-blue-50); color: var(--hfr-blue); border-color: var(--hfr-blue-150); }
#hoeft-foerderrechner .hfr-btn-secondary:hover { background: var(--hfr-blue-100); }
#hoeft-foerderrechner .hfr-btn-ghost { background: transparent; color: var(--hfr-ink-2); border-color: var(--hfr-line); }
#hoeft-foerderrechner .hfr-btn-ghost:hover { border-color: var(--hfr-blue-300); color: var(--hfr-blue); }
#hoeft-foerderrechner .hfr-btn:hover { text-decoration: none; }
.hfr-btn:active { transform: translateY(1px); }

.hfr-cta-contact {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hfr-line-2);
  font-size: .8125rem; color: var(--hfr-muted); line-height: 1.6;
}
.hfr-cta-contact strong { color: var(--hfr-ink); font-weight: 650; }

/* --- Fußbereich ---------------------------------------------------------- */
.hfr-disclaimer {
  margin-top: 34px; padding: 24px 28px; border-radius: var(--hfr-r);
  background: var(--hfr-blue-50); border: 1px solid var(--hfr-blue-150);
  font-size: .8125rem; color: var(--hfr-ink-2); line-height: 1.65;
}
.hfr-disclaimer h4 { font-size: .8125rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--hfr-blue); margin-bottom: 8px; }
.hfr-disclaimer p + p { margin-top: 9px; }

/* --- Mobile Ergebnisleiste ---------------------------------------------- */
.hfr-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  background: var(--hfr-blue); color: #fff;
  box-shadow: 0 -8px 28px -12px rgba(14,20,48,.55);
}
.hfr-sticky-bar .hfr-sb-label { font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hfr-sticky-bar .hfr-sb-amount { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
#hoeft-foerderrechner .hfr-sticky-bar .hfr-btn { padding: 11px 18px; background: #fff; color: var(--hfr-blue); }

/* --- Druckkopf (nur im Ausdruck sichtbar) -------------------------------- */
.hfr-print-only { display: none; }

/* --- Responsiv ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .hfr-hero { grid-template-columns: 1fr; gap: 32px; }
  .hfr-hero-media { aspect-ratio: 16 / 9; }
  .hfr-main { grid-template-columns: 1fr; gap: 24px; }
  .hfr-result-col { position: static; }
}
@media (max-width: 720px) {
  #hoeft-foerderrechner { font-size: 15px; }
  .hfr-wrap { padding: 0 16px 110px; }
  .hfr-topbar { flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
  .hfr-logo { height: 38px; }
  .hfr-topbar-meta { font-size: .75rem; gap: 12px; }
  .hfr-card { padding: 24px 20px; border-radius: 14px; }
  .hfr-result { padding: 26px 22px; }
  .hfr-cta { padding: 22px 20px; }
  .hfr-row, .hfr-options.hfr-cols-2 { grid-template-columns: 1fr; }
  .hfr-sticky-bar { display: flex; }
  .hfr-hero-facts { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #hoeft-foerderrechner * { transition: none !important; animation: none !important; }
}

/* --- Druck / PDF --------------------------------------------------------- */
@media print {
  @page { size: A4 portrait; margin: 14mm 14mm 16mm; }
  body { background: #fff !important; }
  #hoeft-foerderrechner {
    background: #fff; font-size: 10.5pt; color: #000;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .hfr-wrap { max-width: none; padding: 0; }
  .hfr-hero, .hfr-sticky-bar, .hfr-range, .hfr-range-scale,
  .hfr-btns, .hfr-no-print { display: none !important; }
  .hfr-print-only { display: block; }
  .hfr-topbar { margin-bottom: 18px; padding-top: 0; align-items: flex-start; }
  .hfr-topbar .hfr-print-only { text-align: right; line-height: 1.45; font-size: 9.5pt; }
  .hfr-topbar-tel { display: none !important; }
  .hfr-main { display: block; }
  .hfr-card, .hfr-cta, .hfr-disclaimer {
    box-shadow: none; border: 1px solid #C9CEDC; break-inside: avoid; page-break-inside: avoid;
    padding: 14px 16px; margin-bottom: 12px; border-radius: 8px;
  }
  .hfr-result { break-inside: avoid; page-break-inside: avoid; box-shadow: none; padding: 20px 22px; }
  .hfr-result-col { position: static; margin-bottom: 12px; }
  /* Eingaben werden im Ausdruck als Klartext-Zusammenfassung gezeigt */
  .hfr-form { display: none !important; }
  .hfr-print-summary { display: block !important; }
  .hfr-print-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 10pt; }
  .hfr-print-summary dt { color: #4A5270; }
  .hfr-print-summary dd { font-weight: 600; margin: 0; }
  .hfr-note { break-inside: avoid; }
  a[href^="http"]::after { content: ""; }
}
.hfr-print-summary { display: none; }

/* ==========================================================================
   Einbindung in das Höft-Theme
   Der Rechner lief ursprünglich als eigenständige Seite mit eigener Kopfzeile
   und eigenem Hero. Beides übernimmt jetzt das Theme; hier stehen nur noch
   die Anpassungen, die für den Einbau nötig sind.
   ========================================================================== */
#hoeft-foerderrechner { background: var(--hfr-canvas); padding-top: 34px; }
#hoeft-foerderrechner .hfr-meta {
  display: flex; justify-content: flex-end; gap: 16px;
  font-size: .8rem; color: var(--hfr-muted); margin-bottom: 18px;
}
/* Das Theme gibt jedem <section> großzügigen Innenabstand. Innerhalb des
   Rechners bringen die Karten ihren eigenen mit – hier wird der geerbte
   Abstand deshalb für die Abschnitte ohne eigenen Wert zurückgesetzt. */
#hoeft-foerderrechner .hfr-intro,
#hoeft-foerderrechner .hfr-bar-wrap { padding: 0; }
#hoeft-foerderrechner .hfr-intro { max-width: 62ch; margin-bottom: 34px; }
#hoeft-foerderrechner .hfr-intro .hfr-lead { margin: 0; }
@media (max-width: 720px) {
  #hoeft-foerderrechner .hfr-meta { justify-content: flex-start; }
}
