/* Haug + Singer – gemeinsame Styles. Schriften liegen lokal (keine Verbindung zu Google). */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff") format("woff");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F6F4EF; }
img { max-width: 100%; }
a { color: #0066CC; }
a:hover { color: #004C99; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #0066CC; outline-offset: 2px; }
[hidden] { display: none !important; }

/* Abschnitte gleiten beim Scrollen ins Bild (nur moderne Browser, sonst sofort sichtbar) */
@keyframes hs-reveal { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: hs-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Anruf-Button nur auf dem Handy */
.hs-callfab { display: none; }
@media (max-width: 760px) { .hs-callfab { display: flex; } }

/* Bad: 2 x 2 Karten */
.hs-bad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .hs-bad-grid { grid-template-columns: minmax(0, 1fr); } }

/* Kontaktformular – Hinweise */
.hs-form-msg { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 16px; }
.hs-form-msg.err { background: #FFF3E8; border: 1px solid #E07A2E; color: #13232B; }
.hs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Förderrechner */
.fr-card { min-width: 0; background: #FFFFFF; border: 1px solid #D3E2F2; border-radius: 14px; padding: 28px; }
.fr-h3 { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #E3DFD6; font-family: Archivo, sans-serif; font-size: 19px; }
.fr-label { display: block; font-weight: 600; font-size: 16px; margin: 16px 0 6px; }
.fr-hint { font-weight: 400; color: #4A5A61; }
.fr-help { margin: 6px 0 0; color: #4A5A61; font-size: 15px; }
.fr-input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #B9C3C7; border-radius: 8px; font: inherit; background: #FFFFFF; color: #13232B; }
.fr-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #EEF2F6; padding: 4px; border-radius: 10px; }
.fr-seg button { min-height: 48px; border: 0; border-radius: 8px; padding: 8px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; background: transparent; color: #4A5A61; }
.fr-seg button[aria-pressed="true"] { background: #FFFFFF; color: #13232B; box-shadow: 0 0 0 1px #C9D5DE; }
.fr-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 600; font-size: 16px; }
.fr-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.fr-big { font-family: Archivo, sans-serif; font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -1px; color: #0066CC; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fr-sub { margin: 8px 0 0; color: #3A4A51; }
.fr-sub b { color: #13232B; }
.fr-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #DCE3E8; margin: 20px 0 8px; }
.fr-bar i { display: block; height: 100%; }
.fr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: #4A5A61; }
.fr-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); }
.fr-rows { margin-top: 18px; }
.fr-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #E3DFD6; }
.fr-row small { display: block; color: #4A5A61; font-size: 14px; }
.fr-row.sum { font-weight: 700; border-bottom: 0; }
.fr-row.cut .fr-v { color: #B84A00; }
.fr-v { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.fr-note { margin-top: 14px; padding: 14px; border-radius: 8px; background: #EAF2FB; font-size: 15px; }
.fr-note.fr-warn { background: #FFF3E8; border: 1px solid #E07A2E; }
.fr-tl { margin-top: 6px; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 15px; }
.fr-tl.on { border-color: #0066CC; background: #EAF2FB; }
.fr-d { color: #4A5A61; font-size: 13px; }
.fr-m { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #DCE3E8; overflow: hidden; }
.fr-m i { display: block; height: 100%; background: #0066CC; }
@media (max-width: 460px) { .fr-big { font-size: 44px; } .fr-card { padding: 20px; } }
