/* ===========================================================
   Heizung FS — Prototyp
   Palette: Tiefblau (Wasser/Vertrauen) + Wärme-Orange (Heizung)
   =========================================================== */

:root {
  /* Blau aus dem neuen FS-Logo (S) */
  --blue-900: #0d2a4d;
  --blue-700: #15457a;
  --blue-500: #1f6fb8;
  --blue-100: #e7eff7;
  /* Rot aus dem neuen FS-Logo (F) */
  --orange-600: #b91c26;
  --orange-500: #d92834;
  --orange-100: #fbe5e6;
  --cream: #f6f5f3;
  --white: #ffffff;
  --ink: #1b2230;
  --ink-soft: #525c68;
  --line: #e1e2e6;
  --radius: 10px;
  --shadow: 0 10px 30px -10px rgba(13, 42, 77, 0.22);
  --maxw: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--blue-900);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange-600);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange-600);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(217, 98, 43, 0.55);
}
.btn-primary:hover { background: #c2541f; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-dark {
  background: var(--blue-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--blue-700); }

/* ---------- Top bar / emergency strip ---------- */
.emergency-strip {
  background: var(--blue-900);
  color: #fff;
  font-size: 0.85rem;
}
.emergency-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 6px;
}
.emergency-strip a.phone {
  color: var(--orange-500);
  font-weight: 700;
}
.emergency-strip a.notdienst-link {
  color: #fff;
  background: var(--orange-600);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  display: inline-block;
  transition: background 0.15s ease, transform 0.15s ease;
}
.emergency-strip a.notdienst-link:hover {
  background: var(--orange-500);
  transform: translateY(-1px);
}

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-900);
}
.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange-500), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.logo-img {
  height: 78px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.logo .company-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--blue-900);
  white-space: normal;
  max-width: 160px;
}
.footer-grid .logo-img {
  height: 90px;
}
.footer-grid .company-name {
  color: #fff;
  font-size: 1.1rem;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
}
nav.main-nav a.active { color: var(--orange-600); }
nav.main-nav a:hover { color: var(--orange-600); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue-900);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,126,63,0.35), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  padding: 80px 24px 90px;
}
.hero h1 { color: #fff; }
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-badges div {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  border-left: 2px solid var(--orange-500);
  padding-left: 12px;
}
.hero-badges strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
}

.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero-visual ul { list-style: none; margin: 0; padding: 0; }
.hero-visual li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.hero-visual li:last-child { border-bottom: none; }
.hero-visual li .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- Page hero (Unterseiten, schmaler) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 64px 24px 70px;
}
.page-hero .wrap { max-width: var(--maxw); }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 600px; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--orange-500); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-white { background: var(--white); }
.bg-tint { background: var(--blue-100); }
.bg-dark { background: var(--blue-900); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: rgba(255,255,255,0.78); }

/* ---------- Grids / cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--orange-100);
  color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0.6em; font-size: 0.95rem; }
.card a.more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-700);
}
.card a.more:hover { color: var(--orange-600); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "✓";
  color: var(--orange-600);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 14px;
  border-top: 3px solid var(--orange-500);
}
.step .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--blue-100);
  -webkit-text-stroke: 1.5px var(--blue-500);
  color: transparent;
  margin-bottom: 6px;
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}
.testimonial p.quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  font-style: italic;
}
.testimonial .who {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange-600), #c2541f);
  color: #fff;
  border-radius: 16px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-900);
  gap: 16px;
}
.faq-q .icon-toggle {
  font-size: 1.4rem;
  color: var(--orange-600);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .icon-toggle { transform: rotate(45deg); }
.faq-a {
  display: none;
  margin-top: 12px;
  font-size: 0.95rem;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Notdienst-specific ---------- */
.emergency-hero {
  background: radial-gradient(circle at 20% 20%, #b8401b, var(--blue-900) 65%);
}
.pulse-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #4caf6d;
  display: inline-block;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #4caf6d;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
.big-phone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #fff;
  font-weight: 700;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.4em;
}
.legal-content p, .legal-content li {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.legal-content a {
  color: var(--blue-700);
  text-decoration: underline;
}
.legal-content a:hover { color: var(--orange-600); }
.legal-content ul {
  padding-left: 1.2em;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--orange-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--orange-500); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 60px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { transform: translateY(0); }
  .menu-toggle { display: block; }
  .nav-cta .btn-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
  section { padding: 56px 0; }
  .emergency-strip .wrap { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .nav-cta .btn { padding: 10px 16px; font-size: 0.85rem; }
}
