/* ==========================================================================
   Heizungsbauer Fürth — Stylesheet
   ========================================================================== */

/* Self-hosted fonts (no third-party requests, DSGVO-konform) ------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}

:root {
  --color-primary: #4b6584;
  --color-primary-dark: #33495f;
  --color-primary-darker: #24333f;
  --color-accent: #fd9644;
  --color-accent-dark: #e07a2c;
  --color-cream: #fbf3e4;
  --color-cream-dark: #f5e6cc;
  --color-text: #22303c;
  --color-text-muted: #5b6b7a;
  --color-white: #ffffff;
  --color-border: #e4e9ee;
  --shadow-sm: 0 2px 8px rgba(34, 48, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(34, 48, 60, 0.12);
  --radius: 14px;
  --font-head: "Poppins", "Segoe UI", Arial, sans-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(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-primary-darker);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

ul { padding-left: 1.2em; color: var(--color-text-muted); }
li { margin-bottom: 0.4em; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--cream { background: var(--color-cream); }
.section--tight { padding: 48px 0; }

.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(--color-accent-dark);
  margin-bottom: 12px;
}

.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent { background: var(--color-accent); color: var(--color-white); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--color-accent-dark); color: var(--color-white); box-shadow: var(--shadow-md); }

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

.btn--outline-dark { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline-dark:hover { background: var(--color-primary); color: var(--color-white); }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }

/* Header ------------------------------------------------------------------ */
.topbar {
  background: var(--color-primary-darker);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--color-accent); }

.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-main a {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-main a:hover, .nav-main a.active { color: var(--color-accent); }

.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  color: var(--color-text) !important;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  display: block;
}
.dropdown a:hover { background: var(--color-cream); color: var(--color-primary-dark) !important; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--color-white); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.nav-phone svg { flex: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, var(--color-primary-darker) 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero-copy .eyebrow { color: var(--color-accent); }
.hero-copy h1 { color: var(--color-white); }
.hero-copy p.lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 600; }
.hero-badge svg { flex: none; color: var(--color-accent); }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Page (inner) hero for service/legal pages ------------------------------ */
.page-hero {
  background: linear-gradient(120deg, var(--color-primary-darker) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 56px 0;
}
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--color-accent); }
.page-hero h1 { color: var(--color-white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 60ch; font-size: 1.05rem; margin-bottom: 0; }

/* Cards / grids ------------------------------------------------------------ */
.grid { display: grid; gap: 28px; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  margin-bottom: 16px;
  flex: none;
}

.usp-card { text-align: left; }
.usp-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.usp-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Service cards on homepage */
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__media { aspect-ratio: 16/11; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { margin-bottom: 8px; }
.service-card__body p { font-size: 0.94rem; flex: 1; }
.service-card__link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.service-card__link svg { transition: transform 0.15s ease; }
.service-card__link:hover svg { transform: translateX(3px); }

/* Check list --------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text);
  font-size: 0.98rem;
}
.check-list svg { flex: none; margin-top: 3px; color: var(--color-accent-dark); }

.check-list--2col { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }

/* Content split layout ------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split-reverse .split-media { order: 2; }

.step-list { counter-reset: step; display: grid; gap: 22px; }
.step-item { display: flex; gap: 18px; }
.step-num {
  counter-increment: step;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
}
.step-num::before { content: counter(step); }
.step-body h3 { margin-bottom: 4px; font-size: 1.05rem; }
.step-body p { margin-bottom: 0; font-size: 0.95rem; }

/* Pricing table -------------------------------------------------------------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th, .price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.price-table th {
  background: var(--color-primary-darker);
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}
.price-table td { color: var(--color-text); font-size: 0.95rem; }
.price-table td:last-child { font-weight: 700; color: var(--color-primary-dark); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.price-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 14px; }

/* FAQ ------------------------------------------------------------------- */
.faq { display: grid; gap: 14px; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--color-primary-darker);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent-dark);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; font-size: 0.95rem; }

/* Area / service region list -------------------------------------------------- */
.area-list { display: flex; flex-wrap: wrap; gap: 12px; }
.area-pill {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.area-pill svg { color: var(--color-accent-dark); }

/* CTA banner -------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary-darker) 0%, var(--color-primary) 100%);
  border-radius: var(--radius);
  padding: 48px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: 0; }
.cta-banner .btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* Contact page ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin-bottom: 0; font-size: 0.95rem; }
.contact-card a { font-weight: 600; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--color-primary-dark); }
.hours-table tr:last-child td { border-bottom: none; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--color-primary-darker); color: rgba(255,255,255,0.7); }
.footer-top { padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.94rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col address { font-style: normal; color: rgba(255,255,255,0.7); font-size: 0.94rem; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--color-accent); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

.demo-banner {
  background: rgba(0,0,0,0.18);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* Legal pages ------------------------------------------------------------- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-text-muted); }
.prose { max-width: 78ch; }

/* Utilities --------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .check-list--2col { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar .container { justify-content: center; gap: 16px; }
  .topbar .container span { display: none; }
  .nav-main, .nav-actions .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .site-header.is-open .nav-main a { padding: 10px 0; width: 100%; }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.06);
    margin: 4px 0 8px;
    padding: 6px;
  }
  .dropdown a { color: rgba(255,255,255,0.85) !important; }
  .dropdown a:hover { background: rgba(255,255,255,0.1); color: var(--color-white) !important; }
  .grid--5, .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .topbar .container a:nth-child(2) { display: none; }
}
