/*
Theme Name: Beziehungssache Hund
Theme URI: https://example.test/beziehungssache-hund
Author: Local Development Setup
Description: Leichtgewichtiges Block Theme fuer den lokalen Rebuild von beziehungssache-hund.de.
Requires at least: 7.0
Requires PHP: 8.1
Version: 0.2.0
Text Domain: beziehungssache-hund
*/

:root {
  --bsh-ink: #0f0f0f;
  --bsh-terracotta: #ae7c51;
  --bsh-cream: #faf8f3;
  --bsh-sand: #ede5d8;
  --bsh-mist: #e6e1db;
  --bsh-muted: rgba(255, 255, 255, 0.72);
  --bsh-muted-dark: rgba(15, 15, 15, 0.62);
  --bsh-radius: 0.5rem;
  --bsh-shadow: 0 18px 40px rgba(15, 15, 15, 0.12);
  --bsh-border: 1px solid rgba(15, 15, 15, 0.12);
}

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

body {
  margin: 0;
  background: var(--bsh-cream);
  color: var(--bsh-ink);
  font-family: var(--wp--preset--font-family--body-sans);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--bsh-radius);
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.12);
}

.wp-site-blocks {
  min-height: 100vh;
}

.bsh-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.bsh-skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--bsh-terracotta);
  color: var(--bsh-cream);
  padding: 0.75rem 1rem;
  border-radius: var(--bsh-radius);
}

.bsh-main {
  padding: 0 1.25rem 4rem;
}

.entry-content,
.wp-block-post-content {
  width: min(820px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  margin: 0 0 1.75rem;
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(12, 12, 12, 0.96)),
    var(--bsh-ink);
  color: var(--bsh-cream);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(174, 124, 81, 0.35);
  box-shadow: 0 16px 36px rgba(15, 15, 15, 0.16);
}

.site-header__inner,
.site-footer__inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
  flex-wrap: wrap;
  transition: padding 180ms ease, gap 180ms ease;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 0 0 auto;
}

.site-header__brand-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.site-header__brand-link,
.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: min(14rem, 38vw);
}

.site-header__brand-link picture,
.site-footer__brand-link picture {
  display: block;
}

.site-header__logo {
  width: clamp(2.25rem, 4vw, 3.375rem);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.32));
  transition: width 180ms ease, filter 180ms ease;
}

.site-header .mega-menu-wrap {
  width: auto;
  margin-inline-start: auto;
  font-size: 0.95rem;
}

.site-header .mega-menu-wrap .mega-menu {
  gap: 0.35rem 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 243, 0.14);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
}

.site-header .mega-menu-wrap .mega-menu > li.mega-menu-item > a.mega-menu-link {
  border-radius: 0.7rem;
  line-height: 1.35;
}

.site-header .mega-menu-wrap .mega-menu-toggle {
  color: var(--bsh-cream);
}

.site-header .mega-menu-wrap .mega-sub-menu {
  min-width: 16rem;
  margin-top: 0.65rem;
  padding: 0.45rem;
  border-radius: 1rem;
  border: 1px solid rgba(174, 124, 81, 0.28);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(14, 14, 14, 0.98));
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.26);
  overflow: hidden;
  z-index: 1000;
}

.site-header .mega-menu-wrap .mega-sub-menu .mega-menu-item {
  width: 100%;
}

.site-header .mega-menu-wrap .mega-sub-menu .mega-menu-item > a.mega-menu-link {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  color: var(--bsh-cream);
  line-height: 1.35;
  width: 100%;
}

.site-header .mega-menu-wrap .mega-sub-menu .mega-menu-item > a.mega-menu-link:hover,
.site-header .mega-menu-wrap .mega-sub-menu .mega-menu-item > a.mega-menu-link:focus {
  background: rgba(174, 124, 81, 0.14);
  color: var(--bsh-cream);
}

.site-header .wp-block-site-title {
  margin: 0;
}

.site-header .wp-block-site-title a,
.site-header .wp-block-site-tagline {
  color: var(--bsh-cream);
}

.site-header .wp-block-site-title a {
  text-decoration: none;
}

.site-header .wp-block-site-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--bsh-muted);
}

body.bsh-header-condensed .site-header {
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.14);
  border-bottom-color: rgba(174, 124, 81, 0.26);
}

body.bsh-header-condensed .site-header__inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  gap: 1rem;
}

body.bsh-header-condensed .site-header__logo {
  width: clamp(2rem, 3.35vw, 2.75rem);
  filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.28));
}

body.bsh-header-condensed .site-header .wp-block-navigation {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.site-header .wp-block-navigation-item__content,
.site-footer .wp-block-navigation-item__content {
  color: inherit;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:focus,
.site-footer .wp-block-navigation-item__content:hover,
.site-footer .wp-block-navigation-item__content:focus,
.site-footer a:hover {
  color: var(--bsh-terracotta);
}

.site-footer__cta .wp-block-button__link {
  border-radius: var(--bsh-radius);
}
.site-footer__cta .wp-block-button__link:hover {
  filter: brightness(0.96);
}

.site-footer__whatsapp-button .wp-block-button__link {
  background: #25d366;
  color: #0f0f0f;
}

.site-footer__whatsapp-button .wp-block-button__link:hover,
.site-footer__whatsapp-button .wp-block-button__link:focus {
  background: #2de06d;
  color: #0f0f0f;
}

.site-footer {
  background: var(--bsh-ink);
  color: var(--bsh-cream);
  margin-top: 4rem;
  border-top: 1px solid rgba(174, 124, 81, 0.35);
}

.site-footer a {
  color: var(--bsh-cream);
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: start;
}

.site-footer__brand,
.site-footer__nav,
.site-footer__cta {
  display: grid;
  gap: 1rem;
}

.site-footer__logo {
  width: min(18rem, 100%);
  height: auto;
  background: #fff;
  padding: 0.35rem;
  border-radius: var(--bsh-radius);
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.14);
}

.site-footer__brand .wp-block-paragraph {
  max-width: 28rem;
  color: var(--bsh-muted);
}

.site-footer__nav .wp-block-navigation {
  --navigation-layout-justify: start;
}

.site-footer__nav .wp-block-navigation__container {
  gap: 0.35rem 0.9rem;
}

.bsh-hero,
.bsh-section {
  padding: 4rem 0;
}

.bsh-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(34rem, 78vh, 52rem);
  display: flex;
  align-items: flex-end;
  color: var(--bsh-cream);
  border-radius: 1rem;
  border: 1px solid rgba(174, 124, 81, 0.24);
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.14);
  background-image:
    linear-gradient(180deg, rgba(15, 15, 15, 0.18), rgba(15, 15, 15, 0.9)),
    var(--bsh-hero-image, url("assets/optimized/hero-pack-960.webp"));
  background-image:
    linear-gradient(180deg, rgba(15, 15, 15, 0.18), rgba(15, 15, 15, 0.9)),
    var(--bsh-hero-image-set, var(--bsh-hero-image, url("assets/optimized/hero-pack-960.webp")));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

:is(.wp-block-cover, .entry-content [style*="background-image"], .wp-block-post-content [style*="background-image"]) {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 14px 32px rgba(15, 15, 15, 0.1);
}

.bsh-page-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(22rem, 48vh, 34rem);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.18), rgba(12, 12, 12, 0.62)),
    var(--bsh-hero-image, none);
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.18), rgba(12, 12, 12, 0.62)),
    var(--bsh-hero-image-set, var(--bsh-hero-image, none));
  background-color: var(--bsh-ink);
  background-position: var(--bsh-hero-image-position, center center);
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(174, 124, 81, 0.28);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.14);
  color: var(--bsh-cream);
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.bsh-section,
.faq-topic,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

@media (max-width: 781px) {
  .bsh-hero {
    min-height: clamp(28rem, 70vh, 44rem);
  }

  .bsh-page-hero {
    min-height: clamp(20rem, 42vh, 30rem);
  }
}

.bsh-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(174, 124, 81, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.02), rgba(15, 15, 15, 0.14));
  pointer-events: none;
}

.bsh-page-hero > * {
  position: relative;
  z-index: 1;
}

.bsh-page-hero .bsh-eyebrow {
  color: var(--bsh-terracotta);
}

.bsh-page-hero .bsh-page-hero__title {
  max-width: 15ch;
}

.bsh-page-hero .bsh-page-hero__lead {
  max-width: 52rem;
  font-size: 1.05rem;
}

.bsh-page-hero :is(h1, h2, h3, p, li, a) {
  color: inherit;
}

.bsh-hero::before {
  content: "";
  position: absolute;
  inset: 1rem 0 auto auto;
  width: min(28vw, 18rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 124, 81, 0.22) 0%, rgba(174, 124, 81, 0) 72%);
  pointer-events: none;
}

.bsh-hero > * {
  position: relative;
  z-index: 1;
}

.bsh-hero :is(h1, h2, h3, p, li, a) {
  color: inherit;
}

.bsh-section--soft {
  background: var(--bsh-sand);
  border-radius: var(--bsh-radius);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.bsh-section--accent {
  background: var(--bsh-ink);
  color: var(--bsh-cream);
  border-radius: var(--bsh-radius);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.bsh-section--accent :is(h1, h2, h3, h4, h5, h6, p, li) {
  color: inherit;
}

.bsh-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bsh-terracotta);
}

.bsh-hero__title,
.bsh-page-hero__title {
  max-width: 12ch;
  margin-bottom: 0.25rem;
}

.bsh-hero__lead,
.bsh-page-hero__lead {
  max-width: 42rem;
  font-size: 1.15rem;
}

.bsh-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.bsh-hero__meta span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(250, 248, 243, 0.2);
  background: rgba(15, 15, 15, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  color: var(--bsh-cream);
}

.bsh-card-grid {
  gap: 1.25rem;
}

.bsh-card {
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 247, 0.95));
  border: var(--bsh-border);
  border-radius: var(--bsh-radius);
  box-shadow: var(--bsh-shadow);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bsh-card::before {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 124, 81, 0.14), transparent 70%);
  pointer-events: none;
}

.bsh-card .wp-block-buttons {
  margin-top: auto;
  padding-top: 0.75rem;
}

.bsh-process-grid {
  gap: 1.25rem;
}

.bsh-process-step {
  min-height: 100%;
}

.bsh-process-step__number {
  margin: 0 0 0.75rem;
  font-family: var(--wp--preset--font-family--display-serif);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--bsh-terracotta);
}

.bsh-price-card__value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--bsh-terracotta);
  font-family: var(--wp--preset--font-family--display-serif);
  margin: 0;
}

.bsh-price-card p:last-child {
  margin-bottom: 0;
}

.bsh-post-card {
  margin-bottom: 1.5rem;
}

.bsh-step-list {
  padding-left: 1.25rem;
}

.bsh-step-list li + li {
  margin-top: 0.75rem;
}

#erstgespraech-anfragen {
  scroll-margin-top: 7.5rem;
}

.bsh-portrait-placeholder {
  min-height: 20rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--bsh-mist), var(--bsh-sand));
  border-radius: var(--bsh-radius);
  border: var(--bsh-border);
  text-align: center;
  padding: 1.5rem;
}

.bsh-portrait-frame {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--bsh-radius);
  border: var(--bsh-border);
  box-shadow: var(--bsh-shadow);
  background: #fff;
  aspect-ratio: 4 / 5;
  max-width: 100%;
}

.bsh-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.bsh-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  align-items: stretch;
}

.bsh-image-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--bsh-radius);
  border: var(--bsh-border);
  box-shadow: var(--bsh-shadow);
  background: #fff;
}

.bsh-image-frame picture,
.bsh-image-frame img {
  display: block;
  width: 100%;
}

.bsh-image-frame img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bsh-image-slider {
  margin-top: 1rem;
}

.bsh-image-slider__viewport {
  overflow: hidden;
}

.bsh-image-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(100%, 20rem), 82%);
  gap: 0.85rem;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.bsh-image-slider__track::-webkit-scrollbar {
  display: none;
}

.bsh-image-slider__slide {
  min-width: 0;
  scroll-snap-align: start;
}

.bsh-image-slider__slide .bsh-image-frame {
  height: 100%;
}

.bsh-image-slider__controls {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.bsh-image-slider__hint {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: rgba(15, 15, 15, 0.66);
}

.bsh-section--accent .bsh-image-slider__hint {
  color: rgba(250, 248, 243, 0.76);
}

.bsh-image-slider__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.bsh-image-slider__dot {
  appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(174, 124, 81, 0.36);
  background: rgba(174, 124, 81, 0.18);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.bsh-image-slider__dot.is-active {
  transform: scale(1.35);
  background: var(--bsh-terracotta);
  border-color: var(--bsh-terracotta);
}

.bsh-image-slider__dot:focus-visible {
  outline: 3px solid rgba(174, 124, 81, 0.28);
  outline-offset: 3px;
}

.bsh-image-slider__button {
  appearance: none;
  border: 1px solid rgba(174, 124, 81, 0.3);
  background: rgba(255, 255, 255, 0.76);
  color: var(--bsh-ink);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.08);
}

.bsh-image-slider__button:hover:not(:disabled),
.bsh-image-slider__button:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(174, 124, 81, 0.46);
}

.bsh-image-slider__button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bsh-section--accent .bsh-image-slider__button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bsh-cream);
  border-color: rgba(250, 248, 243, 0.18);
  box-shadow: none;
}

.bsh-section--accent .bsh-image-slider__button:hover:not(:disabled),
.bsh-section--accent .bsh-image-slider__button:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(250, 248, 243, 0.28);
}

.bsh-section--accent .bsh-image-slider__dot {
  border-color: rgba(250, 248, 243, 0.24);
  background: rgba(250, 248, 243, 0.16);
}

.bsh-section--accent .bsh-image-slider__dot.is-active {
  background: var(--bsh-cream);
  border-color: var(--bsh-cream);
}

@media (min-width: 782px) {
  .bsh-image-slider__track {
    grid-auto-columns: minmax(22rem, 32rem);
  }
}

.bsh-contact-list li,
.bsh-inline-list li {
  position: relative;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--bsh-ink);
  border: 1px solid currentColor;
}

.bsh-section--accent .wp-block-button.is-style-outline > .wp-block-button__link {
  color: var(--bsh-cream);
}

.wp-block-table table {
  border-collapse: collapse;
}

.wp-block-table :is(td, th) {
  border: var(--bsh-border);
  padding: 0.85rem 1rem;
}

.bsh-contact-list,
.bsh-inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bsh-contact-list li + li,
.bsh-inline-list li + li {
  margin-top: 0.5rem;
}

.bsh-inline-list li {
  display: inline-block;
  margin-right: 0.75rem;
}

:is(a, button, .wp-element-button):focus-visible {
  outline: 3px solid rgba(174, 124, 81, 0.35);
  outline-offset: 2px;
}

.site-footer .wp-block-site-title {
  margin: 0;
}

.site-footer .wp-block-site-title a {
  text-decoration: none;
  font-size: 1.2rem;
}

@media (max-width: 781px) {
  .site-header {
    margin-bottom: 1.25rem;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: min(1200px, calc(100% - 1rem));
    padding: 0.65rem 0.7rem;
    gap: 0.35rem;
  }

  .site-header__brand {
    display: none;
  }

  .site-header .wp-block-navigation {
    margin-left: auto;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: 0;
  }

  .site-header .wp-block-navigation__responsive-container-open,
  .site-header .wp-block-navigation__responsive-container-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 2.5rem;
    padding: 0.28rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(250, 248, 243, 0.16);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
  }

  .site-header .wp-block-navigation__responsive-container-open::after {
    content: "Menü";
    margin-left: 0.32rem;
    font-size: 0.88rem;
    line-height: 1;
    letter-spacing: 0.01em;
  }

  .site-header .wp-block-navigation__responsive-container-open svg,
  .site-header .wp-block-navigation__responsive-container-close svg {
    width: 1rem;
    height: 1rem;
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 1rem;
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    gap: 0.5rem;
  }

  .site-header .wp-block-navigation__submenu-container {
    min-width: min(18rem, 100%);
    border-radius: 0.85rem;
  }

  .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: 0.7rem 0.9rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .bsh-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .bsh-section--soft,
  .bsh-section--accent {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .bsh-hero {
    min-height: 30rem;
  }

  .bsh-page-hero {
    padding: 1.75rem 1rem;
    border-radius: 0.8rem;
  }

  .bsh-portrait-frame {
    aspect-ratio: 4 / 5;
  }

  #erstgespraech-anfragen {
    scroll-margin-top: 6.5rem;
  }
}
