/* ==========================================================================
   Hausservice Rheinland — "Minimal & Direct"
   Single-column, white space heavy, one accent color, near-zero decoration.
   ========================================================================== */

:root{
  --content-max-width: 680px;
  --wide-max-width: 1040px;
  --spacing-large: 4rem;
  --spacing-section: clamp(3.5rem, 8vw, 6rem);
  --font-size-body: 18px;
  --line-height: 1.6;

  --color-bg: #ffffff;
  --color-surface: #faf9f7;
  --color-text: #1a1a1a;
  --color-text-muted: #55555a;
  --color-accent: #1f4b43;
  --color-accent-hover: #163b35;
  --color-accent-tint: #eaf0ee;
  --color-border: #e6e4df;

  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe{ max-width: 100%; height: auto; display: block; }
svg{ max-width: 100%; height: auto; }

.icon{
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  vertical-align: middle;
  color: currentColor;
}

a{ color: var(--color-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4{
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1{ font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3{ font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p{ margin: 0 0 1.2em; text-wrap: pretty; }

.container{
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide{
  max-width: var(--wide-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section{
  padding: var(--spacing-section) 0;
}

.section-bordered{
  border-top: 1px solid var(--color-border);
}

.section-surface{
  background: var(--color-surface);
}

.eyebrow{
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}

.lede{
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.9rem 1.7rem;
  min-height: 48px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) ease, color var(--dur-base) ease, border-color var(--dur-base) ease;
}
.btn:active{ transform: scale(0.97); }

.btn-primary{
  background: var(--color-accent);
  color: #ffffff;
}
.btn-primary:hover{ background: var(--color-accent-hover); color: #fff; }

.btn-ghost{
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover{ border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease, padding var(--dur-base) ease;
}
.site-header.is-scrolled{
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 20px -18px rgba(26,26,26,0.4);
}

.site-header-inner{
  max-width: var(--wide-max-width);
  margin: 0 auto;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding var(--dur-base) ease;
}
.site-header.is-scrolled .site-header-inner{ padding-top: 0.85rem; padding-bottom: 0.85rem; }

.site-logo{
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
}
.site-logo span{ color: var(--color-accent); }

.primary-nav ul{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}
.primary-nav a{
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  transition: color var(--dur-base) ease;
}
.primary-nav a:hover{ color: var(--color-accent); }

.nav-cta{
  margin-left: 0.4rem;
}

.burger{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease;
}
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) ease;
  z-index: 60;
}
.nav-drawer-overlay.is-open{ opacity: 1; pointer-events: auto; }

/* ---------- Hero / Slider ---------- */
.hero-slider{
  position: relative;
  width: 100%;
  height: min(78vh, 640px);
  min-height: 420px;
  overflow: hidden;
  background: var(--color-text);
}
.hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-slide.is-active{ opacity: 1; z-index: 1; }
.hero-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,0.42) 0%, rgba(15,15,15,0.2) 45%, rgba(15,15,15,0.6) 100%);
}
.hero-slide-content{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 1.5rem clamp(2.2rem, 6vw, 3.6rem);
}
.hero-slide-content-inner{
  max-width: var(--wide-max-width);
  margin: 0 auto;
}
.hero-slide h1, .hero-slide h2, .hero-slide p{ color: #fff; }
.hero-slide h2{ font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hero-slide .lede{ color: rgba(255,255,255,0.88); }

.hero-dots{
  position: absolute;
  z-index: 2;
  bottom: 1.4rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
}
.hero-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--dur-base) ease, transform var(--dur-fast) var(--ease-out);
}
.hero-dot.is-active{ background: #fff; transform: scale(1.25); }

/* ---------- Reveal ----------
   Content stays visible (opacity:1) even if JS never runs or the
   IntersectionObserver never fires; only a small offset animates in. */
.reveal{
  opacity: 1;
  transform: translateY(14px);
  transition: transform 600ms var(--ease-out);
}
.reveal.is-visible{ transform: translateY(0); }

/* ---------- Services list (divide-y, no cards) ---------- */
.service-row{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.6rem;
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}
.service-row:last-child{ border-bottom: 1px solid var(--color-border); }
.service-thumb{
  width: 96px;
  height: 96px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-surface);
}
.service-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.service-row h3{ margin-bottom: 0.35rem; transition: color var(--dur-base) ease; }
.service-row p{ color: var(--color-text-muted); margin-bottom: 0.5rem; }
.service-row .service-link{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-accent);
}
a.service-row:hover h3{ color: var(--color-accent); }

/* ---------- Counters ---------- */
.stats-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-number{
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.stat-label{
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---------- Contact ---------- */
.contact-row{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  text-decoration: none;
}
.contact-row .icon{ color: var(--color-accent); flex-shrink: 0; }

.contact-form input,
.contact-form textarea,
.contact-form select,
form.wpscp-contact-form input,
form.wpscp-contact-form textarea{
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--dur-base) ease;
}
.contact-form label,
form.wpscp-contact-form label{
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.contact-form input:focus,
.contact-form textarea:focus,
form.wpscp-contact-form input:focus,
form.wpscp-contact-form textarea:focus{
  border-color: var(--color-accent);
  outline: none;
}
.contact-form .form-row,
form.wpscp-contact-form p{ margin-bottom: 1.1rem; }
form.wpscp-contact-form button,
form.wpscp-contact-form input[type="submit"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  min-height: 48px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  width: auto;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) ease;
}
form.wpscp-contact-form button:hover,
form.wpscp-contact-form input[type="submit"]:hover{ background: var(--color-accent-hover); }
form.wpscp-contact-form button:active,
form.wpscp-contact-form input[type="submit"]:active{ transform: scale(0.97); }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-section) 0 2.5rem;
  background: var(--color-surface);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4{ font-size: 0.92rem; margin-bottom: 1rem; }
.footer-nav ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a{ color: var(--color-text-muted); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover{ color: var(--color-accent); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.footer-bottom a{ color: var(--color-text-muted); }

/* ---------- Generic content (pages) ---------- */
.entry-content > *:first-child{ margin-top: 0; }
.entry-content ul, .entry-content ol{ padding-left: 1.3rem; }
.entry-content li{ margin-bottom: 0.4rem; }
.entry-content .wp-block-columns{ gap: 2rem; }
.page-hero{
  padding: clamp(3rem, 8vw, 4.5rem) 0 1rem;
}
.page-hero .eyebrow{ margin-bottom: 0.7rem; }

.breadcrumb{
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a{ color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover{ color: var(--color-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .primary-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 80vw);
    background: #fff;
    padding: 5.5rem 1.8rem 2rem;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-out);
    z-index: 61;
    box-shadow: -12px 0 30px -20px rgba(0,0,0,0.3);
  }
  .primary-nav.is-open{ transform: translateX(0); }
  .primary-nav ul{ flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .primary-nav a{ font-size: 1.05rem; }
  .burger{ display: inline-flex; }
  .footer-grid{ grid-template-columns: 1fr; gap: 1.8rem; }
  .stats-row{ grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
}

@media (max-width: 600px){
  :root{ --font-size-body: 16px; }
  .service-row{ grid-template-columns: 72px 1fr; gap: 1.1rem; padding: 1.6rem 0; }
  .service-thumb{ width: 72px; height: 72px; }
  .hero-slider{ height: min(70vh, 520px); }
  .stats-row{ grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}
