/*
Theme Name:  Weidenbach Gas Wärme Sanitär
Theme URI:   https://www.shk-weidenbach.de
Author:      Uwe Weidenbach
Author URI:  https://www.shk-weidenbach.de
Description: Professionelles One-Page-Theme für den SHK-Fachbetrieb Uwe Weidenbach. Light-Theme, cookiefrei, Core-Web-Vitals-optimiert.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:     Proprietary
Text Domain: weidenbach
*/

/* ================================================================
   DESIGN-TOKENS
================================================================ */
:root {
  --c-bg:          #f5f3ef;
  --c-surface:     #ffffff;
  --c-surface-2:   #eeece8;
  --c-border:      #dedad3;
  --c-border-dark: #c8c3ba;
  --c-text:        #1c1a17;
  --c-text-muted:  #6b6660;
  --c-text-light:  #9b958e;

  --c-gas:         #d4a000;
  --c-gas-bg:      #fdf6dd;
  --c-waerme:      #c42020;
  --c-waerme-bg:   #fdeaea;
  --c-sanitaer:    #1264a3;
  --c-sanitaer-bg: #e6f0fb;

  --font-sans: 'Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic',
               'Noto Sans JP',system-ui,-apple-system,BlinkMacSystemFont,
               'Segoe UI',sans-serif;

  --radius:     6px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --max-w:    1200px;
  --transition: 220ms ease;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.05);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--c-sanitaer);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Skip-Link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1.1rem;
  background: var(--c-sanitaer);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ================================================================
   HEADER & NAV
================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(245,243,239,.0);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 var(--c-border), 0 2px 16px rgba(0,0,0,.06);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .8rem 1.5rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  transition: opacity var(--transition);
}
.logo-link:hover { opacity: .85; }
.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
/* WP Custom Logo */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo      { height: 58px; width: auto; border-radius: var(--radius); }

/* ── WP-Nav ─────────────────────────────────────────────────────── */
.main-navigation { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: .15rem; }
.main-navigation li { list-style: none; }
.main-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.main-navigation a:hover { color: var(--c-text); background: var(--c-surface-2); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  background: var(--c-waerme);
  color: #fff !important;
  font-size: .875rem;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  min-height: 44px;
  margin-left: .5rem;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ── Burger ─────────────────────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: .5rem;
  border-radius: var(--radius);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  position: relative;
  z-index: 9100;
  margin-left: auto;
}
.burger-line {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Backdrop ───────────────────────────────────────────────────── */
#nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 8999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity var(--transition);
  opacity: 0;
}
#nav-backdrop.visible { display: block; opacity: 1; }

/* ================================================================
   UTILITY
================================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.section-label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--c-sanitaer); margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -.025em; color: var(--c-text);
}
.section-lead {
  margin-top: .8rem; font-size: 1.05rem; color: var(--c-text-muted);
  max-width: 56ch; line-height: 1.7;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; background: var(--c-waerme); color: #fff;
  font-weight: 700; font-size: 1rem; border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition);
  min-height: 48px; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; border: 1.5px solid var(--c-border-dark);
  color: var(--c-text); font-weight: 600; font-size: 1rem;
  border-radius: var(--radius); background: var(--c-surface);
  transition: border-color var(--transition), background var(--transition);
  min-height: 48px;
}
.btn-outline:hover { border-color: var(--c-text-muted); background: var(--c-surface-2); }

.section { padding: 6rem 0; }
.section-alt { background: var(--c-surface); }
.section-bordered { border-top: 1px solid var(--c-border); }

section:not(.hero) { content-visibility: auto; contain-intrinsic-size: 0 800px; }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 9rem 0 6rem; overflow: hidden;
  background-color: var(--c-surface);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; z-index: 3;
  background: linear-gradient(90deg,
    var(--c-gas) 0% 33.33%,
    var(--c-waerme) 33.33% 66.66%,
    var(--c-sanitaer) 66.66% 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(255,255,255,1)   0%,
    rgba(255,255,255,.97) 30%,
    rgba(255,255,255,.82) 52%,
    rgba(255,255,255,.35) 70%,
    rgba(255,255,255,.0)  100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.28);
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem;
  background: var(--c-sanitaer-bg);
  border: 1px solid rgba(18,100,163,.2);
  border-radius: 100px; font-size: .78rem; font-weight: 700;
  color: var(--c-sanitaer); margin-bottom: 1.5rem; letter-spacing: .04em;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-sanitaer); flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 900;
  line-height: 1.06; letter-spacing: -.03em; color: var(--c-text); margin-bottom: 1.35rem;
}
.hero-title .word-gas      { color: var(--c-gas); }
.hero-title .word-waerme   { color: var(--c-waerme); }
.hero-title .word-sanitaer { color: var(--c-sanitaer); }
.hero-title .word-divider  { color: var(--c-border-dark); font-weight: 300; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.175rem); color: var(--c-text-muted);
  max-width: 52ch; margin-bottom: 2.5rem; line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 3.5rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  padding: 1.25rem 1.5rem; background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg); width: fit-content;
}
.hero-stat { padding: 0 2rem; border-right: 1px solid var(--c-border); }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { border-right: none; padding-right: 0; }
.hero-stat-val { font-size: 1.85rem; font-weight: 900; color: var(--c-text); line-height: 1; letter-spacing: -.02em; }
.hero-stat-val sup { font-size: .6em; vertical-align: super; color: var(--c-gas); font-weight: 700; }
.hero-stat-lbl { font-size: .78rem; color: var(--c-text-light); margin-top: .3rem; font-weight: 500; }

/* ================================================================
   LEISTUNGEN
================================================================ */
.leistungen-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }

.leistung-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-top-width: 4px; border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.leistung-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.leistung-card.gas      { border-top-color: var(--c-gas); }
.leistung-card.waerme   { border-top-color: var(--c-waerme); }
.leistung-card.sanitaer { border-top-color: var(--c-sanitaer); }

.leistung-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.gas     .leistung-icon { background: var(--c-gas-bg); }
.waerme  .leistung-icon { background: var(--c-waerme-bg); }
.sanitaer .leistung-icon { background: var(--c-sanitaer-bg); }

.leistung-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.gas      .leistung-title { color: var(--c-gas); }
.waerme   .leistung-title { color: var(--c-waerme); }
.sanitaer .leistung-title { color: var(--c-sanitaer); }

.leistung-desc { font-size: .95rem; color: var(--c-text-muted); line-height: 1.7; }
.leistung-list { display: flex; flex-direction: column; gap: .55rem; padding-top: .75rem; border-top: 1px solid var(--c-border); margin-top: auto; }
.leistung-item { display: flex; align-items: center; gap: .7rem; font-size: .875rem; color: var(--c-text-muted); }
.leistung-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; opacity: .8; }
.gas      .leistung-dot { background: var(--c-gas); }
.waerme   .leistung-dot { background: var(--c-waerme); }
.sanitaer .leistung-dot { background: var(--c-sanitaer); }

/* ================================================================
   ÜBER UNS
================================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-body { display: flex; flex-direction: column; gap: 1.1rem; }
.about-highlight { font-size: 1.1rem; font-weight: 600; color: var(--c-text); line-height: 1.6; }
.about-text { font-size: 1rem; color: var(--c-text-muted); line-height: 1.78; }

.about-card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; box-shadow: var(--shadow-sm);
}
.about-fact-val { font-size: 2.5rem; font-weight: 900; color: var(--c-gas); line-height: 1; letter-spacing: -.03em; }
.about-fact-lbl { font-size: .82rem; color: var(--c-text-light); margin-top: .3rem; font-weight: 500; }
.cert-row {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.25rem; background: var(--c-sanitaer-bg);
  border: 1px solid rgba(18,100,163,.18); border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; color: var(--c-sanitaer);
}

/* ================================================================
   USP
================================================================ */
.usp-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-top: 3rem; }
.usp-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .65rem;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.usp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.usp-icon { font-size: 1.75rem; line-height: 1; }
.usp-title { font-size: .95rem; font-weight: 700; color: var(--c-text); }
.usp-text { font-size: .85rem; color: var(--c-text-muted); line-height: 1.65; }

/* ================================================================
   FAQ
================================================================ */
.faq-list { display: flex; flex-direction: column; gap: .65rem; margin-top: 3rem; max-width: 800px; }
.faq-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.faq-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.2rem 1.5rem; font-size: .975rem; font-weight: 600;
  color: var(--c-text); text-align: left; min-height: 44px;
  transition: color var(--transition), background var(--transition);
}
.faq-toggle:hover { background: var(--c-bg); }
.faq-toggle[aria-expanded="true"] { color: var(--c-sanitaer); background: var(--c-sanitaer-bg); }
.faq-arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-text-light); transition: transform var(--transition); }
.faq-toggle[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); color: var(--c-sanitaer); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms ease; }
.faq-body.open { grid-template-rows: 1fr; }
.faq-body-inner { overflow: hidden; padding: 0 1.5rem; }
.faq-body.open .faq-body-inner { padding-bottom: 1.35rem; }
.faq-answer { font-size: .935rem; color: var(--c-text-muted); line-height: 1.78; border-top: 1px solid var(--c-border); padding-top: 1.1rem; }

/* ================================================================
   KONTAKT
================================================================ */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.kontakt-info { display: flex; flex-direction: column; gap: 1.5rem; }
.kontakt-item { display: flex; align-items: flex-start; gap: 1rem; }
.kontakt-item-icon {
  width: 46px; height: 46px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem; box-shadow: var(--shadow-sm);
}
.kontakt-item-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-text-light); margin-bottom: .2rem; display: block;
}
.kontakt-item-val { font-size: 1rem; font-weight: 600; color: var(--c-text); }
.kontakt-item-val a { transition: color var(--transition); }
.kontakt-item-val a:hover { color: var(--c-sanitaer); }

.oeffnungszeiten { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.oz-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-light); margin-bottom: 1rem; }
.oz-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--c-border); font-size: .9rem; }
.oz-row:last-child { border-bottom: none; padding-bottom: 0; }
.oz-row dt { color: var(--c-text); font-weight: 500; }
.oz-tag { display: inline-block; padding: .18rem .65rem; background: rgba(18,100,163,.1); color: var(--c-sanitaer); font-size: .75rem; font-weight: 700; border-radius: 100px; }
.oz-closed { font-size: .85rem; color: var(--c-text-light); }

.kontakt-map { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.kontakt-map iframe { display: block; width: 100%; height: 330px; border: none; }
.kontakt-map-info { padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--c-border); }
.kontakt-map-addr { font-size: .875rem; color: var(--c-text-muted); line-height: 1.5; }
.btn-route {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border: 1px solid var(--c-border-dark);
  background: var(--c-surface); color: var(--c-text);
  font-size: .8rem; font-weight: 600; border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap; min-height: 36px;
}
.btn-route:hover { background: var(--c-bg); border-color: var(--c-text-light); }

/* ================================================================
   FOOTER
================================================================ */
.site-footer { border-top: 1px solid var(--c-border); }

.footer-cta { background: var(--c-text); padding: 3.5rem 0; }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-cta-title { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -.02em; }
.footer-cta-sub { font-size: .95rem; color: rgba(255,255,255,.55); margin-top: .4rem; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; flex-shrink: 0; }
.btn-cta-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; background: var(--c-gas); color: #1a1400;
  font-weight: 700; font-size: 1rem; border-radius: var(--radius);
  min-height: 48px; transition: opacity var(--transition), transform var(--transition);
}
.btn-cta-phone:hover { opacity: .88; transform: translateY(-2px); }
.btn-cta-mail {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border: 1.5px solid rgba(255,255,255,.25);
  color: #fff; font-weight: 600; font-size: 1rem;
  border-radius: var(--radius); min-height: 48px;
  transition: border-color var(--transition), background var(--transition);
}
.btn-cta-mail:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

.footer-body { padding: 4rem 0 3rem; background: var(--c-surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-logo { margin-bottom: 1rem; border-radius: var(--radius); }
.footer-brand-text { font-size: .875rem; color: var(--c-text-muted); line-height: 1.68; margin-bottom: .85rem; }
.footer-address { font-size: .875rem; color: var(--c-text-light); line-height: 1.6; }
.footer-col-title { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-light); margin-bottom: 1rem; }
.footer-link-list { display: flex; flex-direction: column; gap: .45rem; }
.footer-link { font-size: .875rem; color: var(--c-text-muted); transition: color var(--transition); display: inline-block; padding: .1rem 0; }
.footer-link:hover { color: var(--c-sanitaer); }
.footer-link-em { font-weight: 700; color: var(--c-text); font-size: .95rem; }
.footer-link-plain { font-size: .875rem; color: var(--c-text-muted); display: block; }
.footer-contact-list { display: flex; flex-direction: column; gap: .9rem; }
.footer-contact-lbl { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-light); margin-bottom: .1rem; }

.footer-bar { border-top: 1px solid var(--c-border); background: var(--c-surface); padding: 1.25rem 0; }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { font-size: .8rem; color: var(--c-text-light); }
.footer-legal-list { display: flex; align-items: center; gap: 1.5rem; }
.footer-legal-link { font-size: .8rem; color: var(--c-text-light); transition: color var(--transition); }
.footer-legal-link:hover { color: var(--c-sanitaer); }

/* WP Footer nav */
.footer-nav ul { display: flex; align-items: center; gap: 1.5rem; }
.footer-nav li { list-style: none; }
.footer-nav a { font-size: .8rem; color: var(--c-text-light); transition: color var(--transition); }
.footer-nav a:hover { color: var(--c-sanitaer); }

/* ================================================================
   LEGAL PAGES
================================================================ */
.legal-wrap { min-height: 100svh; padding-top: 7rem; padding-bottom: 6rem; background: var(--c-bg); }
.legal-container { max-width: 780px; }

.breadcrumb ol { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; font-size: .825rem; color: var(--c-text-muted); }
.breadcrumb li + li::before { content: '/'; color: var(--c-border-dark); }
.breadcrumb a { color: var(--c-sanitaer); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: .75; }
.breadcrumb [aria-current="page"] { color: var(--c-text-muted); }

.legal-header { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 2px solid var(--c-border); }
.legal-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.025em; color: var(--c-text); line-height: 1.1; }
.legal-lead { margin-top: .6rem; font-size: .9rem; color: var(--c-text-light); }
.legal-body { display: flex; flex-direction: column; gap: 0; }

.legal-section { padding: 2rem 0; border-bottom: 1px solid var(--c-border); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.05rem; font-weight: 700; color: var(--c-text); margin-bottom: 1rem; letter-spacing: -.01em; }
.legal-section p { font-size: .925rem; color: var(--c-text-muted); line-height: 1.78; margin-bottom: .75rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section address { font-size: .925rem; color: var(--c-text-muted); line-height: 1.9; padding: 1.25rem 1.5rem; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 3px solid var(--c-sanitaer); border-radius: var(--radius); }
.legal-section address a, .legal-section a { color: var(--c-sanitaer); text-decoration: underline; text-underline-offset: 3px; transition: opacity var(--transition); }
.legal-section a:hover { opacity: .75; }

.legal-dl { display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface); }
.legal-dl-row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--c-border); font-size: .9rem; align-items: baseline; }
.legal-dl-row:last-child { border-bottom: none; }
.legal-dl-row dt { color: var(--c-text-light); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .1rem; }
.legal-dl-row dd { color: var(--c-text-muted); line-height: 1.6; }
.legal-dl-row dd a { color: var(--c-sanitaer); }

.legal-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin: .75rem 0; padding: 1.1rem 1.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.legal-list li { display: flex; align-items: baseline; gap: .65rem; font-size: .9rem; color: var(--c-text-muted); line-height: 1.6; }
.legal-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c-sanitaer); flex-shrink: 0; margin-top: .45rem; }

/* ================================================================
   DARK MODE
================================================================ */

html { transition: background-color 320ms ease; }
body,
.site-header,
.service-card,
.usp-card,
.faq-item, .faq-toggle,
.about-card,
.oeffnungszeiten,
.kontakt-map, .kontakt-map-info,
.kontakt-item-icon,
.footer-body, .footer-bar,
.section-alt { transition: background-color 320ms ease, border-color 320ms ease, color 320ms ease; }

html.no-transition,
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after { transition: none !important; }

/* ── Dark-Mode Tokens ──────────────────────────────────────────── */
html[data-theme="dark"] {
  --c-bg:          #0f0e0b;
  --c-surface:     #191714;
  --c-surface-2:   #222019;
  --c-border:      #2d2b24;
  --c-border-dark: #3c3930;
  --c-text:        #ede8df;
  --c-text-muted:  #9d978f;
  --c-text-light:  #605c55;

  /* Gas/Gelb: heller für dunklen Untergrund */
  --c-gas:         #e8b820;
  --c-gas-bg:      #1f1800;

  /* Wärme/Rot */
  --c-waerme:      #d63030;
  --c-waerme-bg:   #220a0a;

  /* Sanitär/Blau */
  --c-sanitaer:    #2d82cc;
  --c-sanitaer-bg: #081628;
}

/* ── Spezifische Dark-Mode-Overrides ───────────────────────────── */
html[data-theme="dark"] .site-header.scrolled {
  background: rgba(15,14,11,.97);
  box-shadow: 0 1px 0 var(--c-border), 0 2px 16px rgba(0,0,0,.3);
}
html[data-theme="dark"] .burger { background: var(--c-surface-2); border-color: var(--c-border); }
html[data-theme="dark"] .burger-line { background: var(--c-text); }
html[data-theme="dark"] #nav-backdrop { background: rgba(0,0,0,.65); }

/* Hero */
html[data-theme="dark"] .hero { background-color: #0c0b09; }
html[data-theme="dark"] .hero-bg::before {
  background: linear-gradient(105deg,
    rgba(12,11,9,1)   0%,
    rgba(12,11,9,.97) 30%,
    rgba(12,11,9,.84) 52%,
    rgba(12,11,9,.38) 70%,
    rgba(12,11,9,.0)  100%);
}
html[data-theme="dark"] .hero-stats   { background: var(--c-surface); border-color: var(--c-border); }
html[data-theme="dark"] .hero-stat-val { color: var(--c-text); }
html[data-theme="dark"] .hero-title   { color: var(--c-text); }
html[data-theme="dark"] .hero-sub     { color: var(--c-text-muted); }
html[data-theme="dark"] .hero-badge   { background: var(--c-sanitaer-bg); border-color: rgba(45,130,204,.35); }

/* FAQ */
html[data-theme="dark"] .faq-toggle[aria-expanded="true"] { background: var(--c-sanitaer-bg); color: var(--c-sanitaer); }

/* Öffnungszeiten-Tag */
html[data-theme="dark"] .oz-tag { background: rgba(45,130,204,.15); color: var(--c-sanitaer); }

/* Cert-Row */
html[data-theme="dark"] .cert-row { background: var(--c-surface-2); border-color: var(--c-border); color: var(--c-text-muted); }

/* Buttons */
html[data-theme="dark"] .btn-outline { background: var(--c-surface-2); border-color: var(--c-border-dark); color: var(--c-text); }
html[data-theme="dark"] .btn-route  { background: var(--c-surface-2); border-color: var(--c-border-dark); }

/* Footer-CTA */
html[data-theme="dark"] .footer-cta { background: #08070a; }

/* Legal-Seiten */
html[data-theme="dark"] .legal-section address { background: var(--c-surface); border-left-color: var(--c-sanitaer); }

/* Scroll-to-Top */
html[data-theme="dark"] #scroll-top { background: var(--c-waerme); }
html[data-theme="dark"] #scroll-top:hover { background: #a81a1a; }

/* ── Theme-Toggle-Button ───────────────────────────────────────── */
.theme-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; border: 1.5px solid var(--c-border);
  background: var(--c-surface-2); color: var(--c-text-muted);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--c-surface); color: var(--c-sanitaer);
  border-color: var(--c-sanitaer); box-shadow: 0 0 0 3px var(--c-sanitaer-bg);
  transform: rotate(20deg);
}
.theme-toggle-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-toggle-btn .icon-sun  { display: none; }
.theme-toggle-btn .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle-btn .icon-sun  { display: block; }
html[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }

@media (max-width: 768px) { .theme-toggle-btn { width: 44px; height: 44px; } }

/* ================================================================
   REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ================================================================
   RESPONSIVE – Tablet
================================================================ */
@media (max-width: 1024px) {
  .about-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .usp-grid     { grid-template-columns: repeat(2,1fr); }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .leistungen-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* ================================================================
   RESPONSIVE – Mobile
================================================================ */
@media (max-width: 768px) {
  .burger { display: flex; }

  .main-navigation {
    display: none; flex-direction: column; align-items: stretch; gap: .25rem;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(300px, 100vw); background: var(--c-surface);
    border-left: 1px solid var(--c-border);
    padding: 4.5rem 1.25rem 2rem; overflow-y: auto;
    z-index: 9001; box-shadow: -8px 0 40px rgba(0,0,0,.12);
  }
  .main-navigation.open { display: flex; }
  .main-navigation ul   { flex-direction: column; align-items: stretch; width: 100%; }
  .main-navigation a    { justify-content: flex-start; padding: .8rem 1rem; font-size: 1rem; color: var(--c-text); }
  .nav-cta { justify-content: center; margin: .5rem 0 0; }

  .hero { background-position: center center; }
  .hero-bg::before {
    background: linear-gradient(180deg,
      rgba(255,255,255,1) 0%, rgba(255,255,255,.96) 40%,
      rgba(255,255,255,.88) 70%, rgba(255,255,255,.80) 100%);
  }
  .hero-bg::after { background: rgba(255,255,255,.40); }
  .hero-stats { flex-direction: column; width: 100%; gap: 0; }
  .hero-stat  { padding: .75rem 0; border-right: none; border-bottom: 1px solid var(--c-border); }
  .hero-stat:last-child { border-bottom: none; }

  .section  { padding: 4rem 0; }
  .usp-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .legal-wrap { padding-top: 6rem; }
  .legal-dl-row { grid-template-columns: 1fr; gap: .2rem; padding: .75rem 1rem; }
}

@media (max-width: 480px) {
  .hero       { padding: 7rem 0 4rem; }
  .hero-actions { flex-direction: column; }
  .about-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .logo-img, .custom-logo { height: 46px; }
}

/* ================================================================
   WPBAKERY PAGE BUILDER – Overrides & Kompatibilität
================================================================ */

/* ── vc_row/vc_column Default-Abstände neutralisieren ─────────── */
.wpb_row,
.wpb_content_element,
ul.wpb_thumbnails-fluid > li,
.last_toggle_el_margin,
.wpb_button { margin-bottom: 0 !important; }

.vc_column_container > .vc_column-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Weidenbach-Elemente brauchen keinen vc_content-Wrapper-Abstand */
.wpb_content_element.weidenbach_hero,
.wpb_content_element.weidenbach_cta,
.wpb_content_element.weidenbach_leistungen_grid,
.wpb_content_element.weidenbach_kontakt {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* ── vc_row als Section-Wrapper benutzen ─────────────────────── */
/* Klasse "weidenbach-section" an vc_row vergeben → Section-Padding */
.vc_row.weidenbach-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.vc_row.weidenbach-section-sm {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.vc_row.weidenbach-section-alt    { background: var(--c-surface); }
.vc_row.weidenbach-section-muted  { background: var(--c-bg); }
.vc_row.weidenbach-section-dark   { background: var(--c-text); }
.vc_row.weidenbach-border-top     { border-top: 1px solid var(--c-border); }

/* ── CTA-Banner Light-Variante ───────────────────────────────── */
.footer-cta--light {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.footer-cta--light .footer-cta-title { color: var(--c-text); }
.footer-cta--light .footer-cta-sub   { color: var(--c-text-muted); }
.footer-cta--light .btn-cta-phone    { background: var(--c-waerme); color: #fff; }

/* ── is-page-builder body: kein überfäliges Padding ─────────── */
body.is-page-builder #main-content { padding-top: 0; }

/* ── VC-Animations deaktivieren (eigene Reveal-Animation) ──── */
.vc_row[data-vc-full-width] { overflow: visible !important; }
.vc_animate_when_almost_visible { opacity: 1 !important; }

/* ── USP-Grid über vc_column steuerbar machen ────────────────── */
/* vc_row + 4x vc_column[width=1/4] → automatisch USP-Layout */
.vc_row.weidenbach-usp-row .vc_column_container {
  display: contents;
}
.vc_row.weidenbach-usp-row > .vc_row-fluid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .vc_row.weidenbach-usp-row > .vc_row-fluid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .vc_row.weidenbach-usp-row > .vc_row-fluid { grid-template-columns: 1fr; }
}

/* ── Leistungen-Grid über vc_column steuerbar machen ─────────── */
.vc_row.weidenbach-leistungen-row > .vc_row-fluid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vc_row.weidenbach-leistungen-row .vc_column_container { display: contents; }
@media (max-width: 900px) {
  .vc_row.weidenbach-leistungen-row > .vc_row-fluid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ================================================================
   SCROLL-TO-TOP BUTTON
================================================================ */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 8900;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-waerme);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 280ms ease, transform 280ms ease, background 220ms ease;
  pointer-events: none;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover {
  background: #a81a1a;
  transform: translateY(-3px);
}
#scroll-top:focus-visible {
  outline: 2px solid var(--c-waerme);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  #scroll-top { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; }
}

/* ================================================================
   NAV CALL BUTTON
================================================================ */
.nav-call-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  background: var(--c-waerme);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  box-shadow: var(--shadow-sm);
  transition: opacity var(--transition), transform var(--transition);
}
.nav-call-btn:hover { opacity: .88; transform: translateY(-1px); }

/* Nummer auf kleinen Desktops ausblenden, nur Icon zeigen */
@media (max-width: 900px) and (min-width: 769px) {
  .nav-call-number { display: none; }
  .nav-call-btn { padding: .55rem .75rem; }
}

/* Auf Mobile komplett ausblenden (Burger-Menü übernimmt) */
@media (max-width: 768px) {
  .nav-call-btn { display: none; }
}
