/* ==========================================================================
   Hausservice Rheinland — Hero Centric Theme
   Design system: natural, gedämpfte Palette (Waldgrün + warmer Amber-Akzent),
   Outfit (Display) + Inter (Body). Corner-radius lock: buttons = pill,
   cards = 16px, inputs = 10px. Shadows: soft + tinted, never paired with a
   hard border on the same element.
   ========================================================================== */

/* ---------- Base ---------- */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.hgh-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.8em 1.2em;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.hgh-skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.hgh-section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hgh-section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.hgh-section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.hgh-section-head p {
  color: var(--color-ink-soft);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.hgh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: var(--cta-padding);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 200ms ease, background-color 200ms ease;
  border: none;
  min-height: 44px;
}
.hgh-btn:active {
  transform: scale(0.97);
}
.hgh-btn--accent {
  background: var(--color-accent);
  color: var(--color-ink);
  box-shadow: 0 8px 20px -8px rgba(27, 36, 29, 0.35);
}
.hgh-btn--accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: scale(1.04);
}
.hgh-btn--glow {
  animation: hgh-cta-pulse 3.2s ease-in-out infinite;
}
.hgh-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.hgh-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.03);
}
.hgh-btn--sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  min-height: 40px;
}
.hgh-btn--lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}
.hgh-btn--block {
  width: 100%;
}

/* ---------- Header ---------- */

.hgh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 220ms ease, padding 220ms ease, background-color 220ms ease;
}
.hgh-header.is-scrolled {
  box-shadow: 0 6px 24px -12px rgba(27, 36, 29, 0.25);
  border-bottom-color: var(--color-border);
}
.hgh-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: height 220ms ease;
}
.hgh-header.is-scrolled .hgh-header__inner {
  height: 62px;
}

.hgh-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.hgh-logo img {
  max-height: 48px;
  width: auto;
}
.hgh-logo__text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.hgh-logo__text--footer {
  color: #fff;
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.6rem;
}

.hgh-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.hgh-nav__list {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  flex-wrap: nowrap;
}
.hgh-nav__list a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--color-ink-soft);
  transition: color 160ms ease;
  white-space: nowrap;
}
.hgh-nav__list a:hover {
  color: var(--color-primary);
}
.hgh-nav__list .current-menu-item > a {
  color: var(--color-primary);
  font-weight: 600;
}

.hgh-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}
.hgh-header__phone {
  display: none;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
}
@media (min-width: 1180px) {
  .hgh-header__phone {
    display: inline-flex;
  }
}

.hgh-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 10px;
}
.hgh-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 0 auto;
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1), opacity 180ms ease;
}
.hgh-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hgh-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hgh-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hgh-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(340px, 84vw);
  background: var(--color-surface);
  box-shadow: -12px 0 40px -12px rgba(27, 36, 29, 0.3);
  padding: 6.5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hgh-mobile-menu.is-open {
  transform: translateX(0);
}
.hgh-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.hgh-mobile-menu__list a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
}
.hgh-mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 36, 29, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 140;
}
.hgh-mobile-menu__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hero ---------- */

.hgh-hero {
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hgh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hgh-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms ease;
}
.hgh-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hgh-hero__slide.is-active {
  opacity: 1;
}
.hgh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(26, 42, 34, 0.78) 0%, rgba(26, 42, 34, var(--overlay-opacity)) 45%, rgba(26, 42, 34, 0.85) 100%);
}
.hgh-hero__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  color: #fff;
}
.hgh-hero__eyebrow {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
  text-shadow: var(--text-shadow);
}
.hgh-hero__headline {
  font-size: var(--headline-size);
  color: #fff;
  text-shadow: var(--text-shadow);
  margin-bottom: 1.1rem;
}
.hgh-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: var(--text-shadow);
  max-width: 620px;
  margin: 0 auto 2.2rem;
}
.hgh-hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hgh-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  animation: hgh-scroll-bounce 2.2s ease-in-out infinite;
}

/* ---------- Stats ---------- */

.hgh-stats {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 3.2rem 0;
}
.hgh-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.hgh-stat__value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--color-accent);
}
.hgh-stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Services ---------- */

.hgh-services {
  padding: 6rem 0;
}
.hgh-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.hgh-service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px -18px rgba(27, 36, 29, 0.28);
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 260ms ease;
}
.hgh-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -16px rgba(27, 36, 29, 0.32);
}
.hgh-service-card:active {
  transform: translateY(-2px) scale(0.99);
}
.hgh-service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hgh-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}
.hgh-service-card:hover .hgh-service-card__media img {
  transform: scale(1.06);
}
.hgh-service-card__body {
  padding: 1.6rem 1.6rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hgh-service-card__body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.hgh-service-card__body p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  flex: 1;
}
.hgh-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.92rem;
}

/* ---------- About ---------- */

.hgh-about {
  padding: 6rem 0;
  background: var(--color-surface-alt);
}
.hgh-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hgh-about__media img {
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(27, 36, 29, 0.35);
}
.hgh-about__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.hgh-about__text p {
  color: var(--color-ink-soft);
}
.hgh-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.6rem;
  transition: gap 200ms ease;
}
.hgh-link-arrow:hover {
  gap: 0.8em;
}

/* ---------- Testimonial ---------- */

.hgh-testimonial {
  padding: 5.5rem 0;
  background: var(--color-primary);
  color: #fff;
}
.hgh-testimonial__quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hgh-testimonial__mark {
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hgh-testimonial__quote p {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 auto 1.4rem;
  max-width: none;
}
.hgh-testimonial__author {
  display: block;
  font-weight: 700;
}
.hgh-testimonial__role {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* ---------- Closing CTA ---------- */

.hgh-cta-final {
  padding: 6rem 0;
  background: var(--color-bg);
}
.hgh-cta-final__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hgh-cta-final h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.hgh-cta-final p {
  color: var(--color-ink-soft);
  margin: 0 auto 1.8rem;
}

/* ---------- Page hero (subpages) ---------- */

.hgh-page-hero {
  padding: 7rem 0 3.5rem;
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
}
.hgh-page-hero__eyebrow {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
}
.hgh-page-hero__title {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 0;
}

.hgh-page-content {
  padding: 4.5rem 0;
}
.hgh-page-content__inner {
  max-width: 760px;
  margin: 0 auto;
}
.hgh-page-content__inner h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-top: 1.8em;
}
.hgh-page-content__inner h3 {
  font-size: 1.25rem;
  margin-top: 1.4em;
}
.hgh-page-content__inner ul,
.hgh-page-content__inner ol {
  margin: 0 0 1.2em 1.4em;
  list-style: disc;
}
.hgh-page-content__inner ol {
  list-style: decimal;
}
.hgh-page-content__inner li {
  margin-bottom: 0.5em;
}
.hgh-page-content__inner figure {
  margin: 2rem 0;
}
.hgh-page-content__inner img {
  border-radius: 16px;
}
.hgh-page-content__inner .wp-block-columns {
  gap: 2rem;
}
.hgh-page-content__inner .wp-block-group {
  background: var(--color-surface-alt);
  padding: 1.8rem 2rem;
  border-radius: 16px;
  margin: 2rem 0;
}
.hgh-page-content__inner .wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* ---------- Kontakt ---------- */

.hgh-kontakt__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  max-width: 980px;
}
.hgh-kontakt__info,
.hgh-kontakt__form {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 12px 32px -20px rgba(27, 36, 29, 0.3);
}
.hgh-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.hgh-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hgh-contact-list a {
  transition: color 160ms ease;
}
.hgh-contact-list a:hover {
  color: var(--color-primary);
}
.hgh-kontakt__form form input,
.hgh-kontakt__form form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--color-bg);
  color: var(--color-ink);
}
.hgh-kontakt__form form input:focus,
.hgh-kontakt__form form textarea:focus {
  border-color: var(--color-primary);
}
.hgh-kontakt__form form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Contact-form plugin markup: align its default blue button with the
   theme's locked accent color instead of shipping two competing accents. */
.hgh-kontakt__form .wpscp-form__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.hgh-kontakt__form .wpscp-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--cta-padding);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  border: none;
  background: var(--color-accent);
  color: var(--color-ink);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease;
}
.hgh-kontakt__form .wpscp-form__btn:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: scale(1.04);
}
.hgh-kontakt__form .wpscp-form__btn:active {
  transform: scale(0.97);
}
.hgh-kontakt__form .wpscp-form-success {
  background: var(--color-surface-alt);
  color: var(--color-primary-dark);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.hgh-kontakt__form .wpscp-form-error {
  background: #fbeae9;
  color: #8a2c22;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */

.hgh-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
}
.hgh-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
}
.hgh-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.hgh-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.hgh-footer .hgh-contact-list a,
.hgh-footer .hgh-contact-list span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}
.hgh-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.hgh-footer-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  transition: color 160ms ease;
}
.hgh-footer-nav a:hover {
  color: var(--color-accent);
}
.hgh-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hgh-nav {
    display: none;
  }
  .hgh-burger {
    display: flex;
  }
  .hgh-stats__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .hgh-about__grid {
    grid-template-columns: 1fr;
  }
  .hgh-about__media {
    order: -1;
  }
  .hgh-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .hgh-footer__col--brand {
    grid-column: 1 / -1;
  }
  .hgh-kontakt__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hgh-header__actions .hgh-btn--sm {
    display: none;
  }
}

@media (max-width: 600px) {
  .hgh-header__inner {
    height: 66px;
  }
  .hgh-header__phone {
    display: none;
  }
  .hgh-logo__text {
    font-size: 1.05rem;
  }
  .hgh-hero__content {
    padding: 4.5rem 1.25rem 3rem;
  }
  .hgh-hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  .hgh-hero__ctas .hgh-btn {
    width: 100%;
  }
  .hgh-services {
    padding: 4rem 0;
  }
  .hgh-services__grid {
    grid-template-columns: 1fr;
  }
  .hgh-page-hero {
    padding: 5.5rem 0 2.5rem;
  }
  .hgh-footer__inner {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem 2rem;
  }
  body {
    overflow-x: hidden;
  }
}
