/* =========================================================
   Wärmefuchs Sanitär & Heizung — Design System
   Anthrazit/Nachtblau + Brennorange, Werkzeugtag-Signatur
   Display: Barlow Semi Condensed · Body: Source Sans 3
   ========================================================= */

:root {
  --wf-night: #1C2B39;
  --wf-night-2: #24384A;
  --wf-flame: #D9622B;
  --wf-flame-dark: #B84A1A;
  --wf-flame-light: #F7DECB;
  --wf-bg: #FBF9F6;
  --wf-surface: #FFFFFF;
  --wf-bg-alt: #F1ECE5;
  --wf-text: #23201C;
  --wf-muted: #6B6560;
  --wf-border: #E7E0D6;

  --font-display: 'Barlow Semi Condensed', 'Archivo', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 10px rgba(28,43,57,0.08);
  --shadow-md: 0 14px 34px rgba(28,43,57,0.16);
  --container-w: 1180px;
  --space-section: clamp(56px, 8vw, 108px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body { margin: 0; background: var(--wf-bg); color: var(--wf-text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--wf-night);
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); text-transform: none; }

p { margin: 0 0 1em; }
.lede { font-size: 1.12rem; color: var(--wf-muted); }
a { color: var(--wf-flame-dark); }
:focus-visible { outline: 3px solid var(--wf-flame); outline-offset: 3px; border-radius: 3px; }

.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
section { padding: var(--space-section) 0; }
.section-tight { padding: calc(var(--space-section) * 0.5) 0; }
.section-alt { background: var(--wf-surface); }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wf-flame-dark); margin-bottom: 0.8em; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--wf-flame); display: inline-block; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.94rem; padding: 0.85em 1.6em; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; text-decoration: none; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--wf-flame); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--wf-flame-dark); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--wf-night); color: #fff; }
.btn-dark:hover { background: #10202e; }
.btn-ghost { background: transparent; border-color: var(--wf-night); color: var(--wf-night); }
.btn-ghost:hover { background: var(--wf-night); color: #fff; }
.btn-on-dark { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--wf-night); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--wf-night); border-bottom: 3px solid var(--wf-flame); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 0.65em; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.62rem; color: var(--wf-flame-light); letter-spacing: 0.06em; text-transform: none; }

.nav-primary { display: flex; align-items: center; gap: 2rem; }
.nav-primary ul { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; }
.nav-primary a { color: rgba(255,255,255,0.85); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; }
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav-primary a[aria-current="page"] { color: var(--wf-flame); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-primary { position: fixed; top: 78px; left: 0; right: 0; height: calc(100vh - 78px); background: var(--wf-night); flex-direction: column; align-items: flex-start; padding: 2rem 24px; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .nav-primary.is-open { transform: translateX(0); }
  .nav-primary ul { flex-direction: column; gap: 1.3rem; width: 100%; }
  .nav-primary .btn { width: 100%; margin-top: 1.5rem; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--wf-night) 0%, var(--wf-night-2) 100%); color: #fff; padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -50%; left: 40%; height: 460px; background: radial-gradient(ellipse at center, rgba(217,98,43,0.32) 0%, rgba(217,98,43,0) 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,0.8); max-width: 48ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.stat-bar { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); }
.stat-bar div { font-family: var(--font-display); }
.stat-bar strong { display: block; font-size: 1.5rem; color: var(--wf-flame); }
.stat-bar span { font-size: 0.82rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.04em; }

/* Signature: Werkzeug-Tag Karten */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-cards { grid-template-columns: 1fr; } }

.tool-tag {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem 1.7rem;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.tool-tag::before {
  content: "";
  position: absolute;
  top: -3px; left: 22px;
  width: 16px; height: 16px;
  background: var(--wf-bg);
  border: 1px solid var(--wf-border);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset;
}
.tool-tag::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wf-flame) 0%, var(--wf-flame-dark) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.tool-tag:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-tag h3 { margin-bottom: 0.45em; }
.tool-tag p { color: var(--wf-muted); font-size: 0.97rem; margin-bottom: 0; }
.tool-tag .tag-label { display: inline-block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wf-flame-dark); background: var(--wf-flame-light); padding: 0.3em 0.7em; border-radius: 3px; margin-bottom: 0.9rem; }

/* Notdienst callout */
.emergency-band { background: var(--wf-night); color: #fff; border-radius: var(--radius-md); padding: clamp(2rem, 4vw, 3rem); display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.emergency-band::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: repeating-linear-gradient(-45deg, rgba(217,98,43,0.08) 0 14px, transparent 14px 28px); }
.emergency-icon { width: 60px; height: 60px; flex-shrink: 0; color: var(--wf-flame); position: relative; z-index: 1; }
.emergency-content { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.emergency-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.4em; }
.emergency-content p { color: rgba(255,255,255,0.75); margin-bottom: 0; }
.emergency-band .btn { position: relative; z-index: 1; }

/* Bafa box */
.callout-box { background: var(--wf-flame-light); border: 1.5px solid var(--wf-flame); border-radius: var(--radius-md); padding: 1.6rem 1.8rem; margin-top: 1.6rem; }
.callout-box h4 { margin-bottom: 0.4em; font-size: 1.05rem; text-transform: none; }
.callout-box p { margin-bottom: 0; color: var(--wf-text); font-size: 0.96rem; }

/* Steps / process not used here but keep utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 2.6rem; }

/* Vorher-Nachher */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card { background: var(--wf-surface); border: 1px solid var(--wf-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.compare-imgs figure { margin: 0; position: relative; aspect-ratio: 4/3; overflow: hidden; }
.compare-imgs figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-imgs figcaption { position: absolute; bottom: 8px; left: 8px; background: rgba(28,43,57,0.85); color: #fff; font-family: var(--font-display); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25em 0.6em; border-radius: 3px; }
.compare-card .compare-body { padding: 1.3rem 1.4rem; }
.compare-card h3 { font-size: 1rem; margin-bottom: 0.2em; }
.compare-card p { color: var(--wf-muted); font-size: 0.92rem; margin: 0; }

/* Team / cert strip */
.cert-strip { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: 1.6rem 0; border-top: 1px solid var(--wf-border); border-bottom: 1px solid var(--wf-border); margin: 2.2rem 0; }
.cert-strip span { font-family: var(--font-display); font-size: 0.82rem; color: var(--wf-muted); text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.5em; }
.cert-strip svg { width: 18px; height: 18px; color: var(--wf-flame-dark); flex-shrink: 0; }

/* Area list */
.area-list { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.area-list li { background: var(--wf-bg-alt); border: 1px solid var(--wf-border); border-radius: 20px; padding: 0.5em 1.1em; font-family: var(--font-display); font-size: 0.86rem; color: var(--wf-night); }

/* FAQ accordion (reused pattern) */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--wf-border); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: none; text-align: left; padding: 1.3rem 0.2rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--wf-night); cursor: pointer; }
.faq-question .icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-question .icon::before, .faq-question .icon::after { content: ""; position: absolute; background: var(--wf-flame); transition: transform 0.25s ease; }
.faq-question .icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-question .icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { color: var(--wf-muted); padding-bottom: 1.3rem; margin: 0; max-width: 65ch; }
.faq-item.is-open .faq-answer { max-height: 400px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.3rem; }
.contact-detail .ic { width: 22px; height: 22px; color: var(--wf-flame-dark); flex-shrink: 0; margin-top: 2px; }
.contact-detail a, .contact-detail span { font-family: var(--font-display); font-weight: 600; color: var(--wf-night); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--wf-border); margin-top: 1.5rem; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(35%) sepia(8%) contrast(1.03); }
.map-embed { position: relative; min-height: 260px; }
.map-embed-trigger { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35em; background: var(--wf-bg-alt); border: 0; cursor: pointer; font-family: var(--font-display); color: var(--wf-night); text-align: center; padding: 1em; transition: background 0.2s ease; }
.map-embed-trigger:hover { background: var(--wf-flame-light); }
.map-embed-trigger-label { font-size: 1.05rem; font-weight: 700; }
.map-embed-trigger-label::before { content: "📍 "; }
.map-embed-trigger-note { font-size: 0.78rem; font-weight: 500; color: var(--wf-muted); font-family: var(--font-body); }

form { display: grid; gap: 1.1rem; }
label { display: block; font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; color: var(--wf-night); margin-bottom: 0.4em; text-transform: uppercase; letter-spacing: 0.02em; }
input, textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 0.8em 1em; border: 1.5px solid var(--wf-border); border-radius: var(--radius-sm); background: var(--wf-surface); color: var(--wf-text); transition: border-color 0.2s ease; }
input:focus, textarea:focus { border-color: var(--wf-flame); outline: none; }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.84rem; color: var(--wf-muted); }
.form-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; }
.form-consent label { display: flex; align-items: flex-start; gap: 0.6em; font-family: var(--font-body); font-weight: 400; text-transform: none; cursor: pointer; }
.form-consent input[type="checkbox"] { margin-top: 0.2em; flex-shrink: 0; width: 1.15em; height: 1.15em; accent-color: var(--wf-flame); }
.form-consent span { font-size: 0.86rem; color: var(--wf-muted); }
.form-consent a { color: inherit; }
.form-consent.has-error span { color: #B3261E; }
.form-success { display: none; background: var(--wf-flame-light); color: var(--wf-flame-dark); border-radius: var(--radius-sm); padding: 1em 1.2em; font-weight: 700; font-family: var(--font-display); }
.form-success.is-visible { display: block; }

/* Reviews */
.reviews-widget { border: 1px solid var(--wf-border); border-radius: var(--radius-md); padding: 2rem; text-align: center; background: var(--wf-surface); color: var(--wf-muted); }

/* Footer */
.site-footer { background: var(--wf-night); color: rgba(255,255,255,0.75); padding: 3.6rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h4 { color: #fff; font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-grid a { color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 36ch; font-size: 0.9rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: 0.84rem; }
.footer-legal { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: rgba(255,255,255,0.55); }
.back-to-ad { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 1.4rem; text-transform: none; font-family: var(--font-body); }
.back-to-ad:hover { color: rgba(255,255,255,0.75); }
.legal-back-link { font-size: 0.76rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem; font-family: var(--font-body); }
.legal-back-link a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.legal-back-link a:hover { color: rgba(255,255,255,0.85); }

.page-hero { background: var(--wf-night); color: #fff; padding: clamp(52px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero .lede { color: rgba(255,255,255,0.75); max-width: 60ch; }
.breadcrumb { font-size: 0.84rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; text-transform: none; font-family: var(--font-body); }
.breadcrumb a { color: rgba(255,255,255,0.7); }

.legal-text { max-width: 70ch; }
.legal-text h2 { margin-top: 2em; text-transform: none; }
.legal-placeholder-note { border-left: 3px solid var(--wf-flame); background: var(--wf-bg-alt); border-radius: var(--radius-sm); padding: 1.2em 1.4em; color: var(--wf-muted); font-style: italic; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Rückweg zu Iller Digital */
.ad-bar { display: flex; align-items: center; justify-content: center; gap: 0.6em; background: #0F1B2D; color: rgba(255,255,255,0.88); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.82rem; padding: 0.6em 1em; text-decoration: none; }
.ad-bar:hover { background: #16263D; color: #fff; text-decoration: none; }
.ad-bar strong { color: #C9A227; font-weight: 600; }
.ad-bar svg, .ad-bar img { width: 16px; height: 16px; flex-shrink: 0; }

/* Sticky Mobile-CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--wf-night); padding: 0.8rem 1rem; box-shadow: 0 -4px 16px rgba(0,0,0,0.2); }
  .sticky-cta .btn { width: 100%; justify-content: center; }
}

/* Skip-Link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--wf-flame); color: #fff; padding: 1em 1.5em; font-family: var(--font-display); font-weight: 700; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
