/*
 * Herzensräume – Standalone Master Designsystem
 * ----------------------------------------------
 * This stylesheet is intentionally loaded AFTER core.css. It is the visual
 * source of truth for the production shell (typography, header, footer and
 * shared controls) and mirrors the approved standalone prototype.
 */

:root {
  --hr-orange: #e77b3b;
  --hr-orange-strong: #d96525;
  --hr-orange-soft: #fff3ea;
  --hr-orange-glow: rgba(231, 123, 59, 0.18);
  --hr-ink: #292723;
  --hr-muted: #777169;
  --hr-line: #e9e3dc;
  --hr-paper: #fffdfa;
  --hr-cream: #f7f2ec;
  --hr-card: #ffffff;
  --hr-shadow: 0 24px 80px rgba(58, 46, 35, 0.13);
  --hr-shadow-soft: 0 10px 32px rgba(58, 46, 35, 0.08);
  --hr-font-heading: Georgia, "Times New Roman", serif;
  --hr-font-body: Arial, Helvetica, sans-serif;
  --hr-ease-out: cubic-bezier(0.18, 0.78, 0.18, 1);
  --hr-ease-soft: cubic-bezier(0.22, 0.7, 0.18, 1);

  /* Map the legacy tokens to the approved standalone system. */
  --color-brand-primary: var(--hr-orange-strong);
  --color-brand-primary-hover: #bd531d;
  --color-brand-accent: var(--hr-orange);
  --color-brand-secondary: #756f68;
  --color-text-default: var(--hr-ink);
  --color-text-muted: var(--hr-muted);
  --color-bg-base: var(--hr-paper);
  --color-bg-surface: var(--hr-card);
  --color-bg-soft: var(--hr-cream);
  --color-border-subtle: var(--hr-line);
  --color-brand-wash: var(--hr-orange-soft);
  --color-brand-soft: rgba(231, 123, 59, 0.14);
  --color-brand-line: rgba(231, 123, 59, 0.32);
  --color-shadow-soft: rgba(58, 46, 35, 0.08);
  --color-border-strong: rgba(58, 46, 35, 0.13);
  --font-heading: var(--hr-font-heading);
  --font-body: var(--hr-font-body);
  --line-height-base: 1.55;
}

html {
  background: var(--hr-paper);
}

body {
  color: var(--hr-ink);
  background: var(--hr-paper);
  font-family: var(--hr-font-body);
  font-weight: 400;
  line-height: 1.55;
}

body.contact-room-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--hr-ink);
  font-family: var(--hr-font-heading);
  font-weight: 500;
}

h1 em {
  color: var(--hr-orange-strong);
  font-style: italic;
}

:focus-visible {
  outline: 3px solid rgba(231, 123, 59, 0.34);
  outline-offset: 3px;
}

/* The same depth-bearing shell used by the standalone prototype. */
.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 6%, rgba(231, 123, 59, 0.08), transparent 27rem),
    linear-gradient(180deg, #fffdfa 0%, #fbf7f2 100%);
  transform-origin: left center;
  transition:
    transform 0.65s var(--hr-ease-out),
    filter 0.65s var(--hr-ease-out);
}

body.contact-room-open .site-shell {
  transform: translateX(-24px) scale(0.988) perspective(1400px) rotateY(1.35deg);
  filter: saturate(0.96) brightness(0.985);
}

/* -------------------------------------------------------------------------
   HEADER – direct production port of the approved standalone topbar
   ------------------------------------------------------------------------- */
.site-header.hr-topbar {
  position: relative;
  z-index: 100;
  display: flex;
  width: 100%;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(233, 227, 220, 0.85);
  background: rgba(255, 253, 250, 0.78);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.hr-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--hr-ink);
  text-decoration: none;
}

.hr-brand__logo {
  display: block;
  width: 162px;
  height: auto;
  object-fit: contain;
}

.site-header .hr-nav {
  position: static;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hr-nav__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #625d57;
  font-size: 0.9rem;
}

.hr-nav__list .main-navigation__item,
.hr-nav__list .main-navigation__item-row {
  display: block;
  margin: 0;
  padding: 0;
}

.hr-nav__link,
.hr-nav__contact-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #625d57;
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.hr-nav__link:hover,
.hr-nav__link.is-active {
  color: var(--hr-orange-strong);
}

.hr-nav__contact-link {
  gap: 8px;
  color: var(--hr-orange-strong);
  font-weight: 700;
}

.hr-nav__contact-link:hover {
  color: #bd531d;
}

.hr-nav__mobile-head,
.hr-menu-toggle,
.site-header .navigation-backdrop {
  display: none;
}

/* -------------------------------------------------------------------------
   SHARED BUTTON LANGUAGE
   ------------------------------------------------------------------------- */
.button,
.button--primary,
.button--secondary,
.button--outline {
  border-radius: 999px;
}

.button--primary {
  border-color: transparent;
  background: var(--hr-orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 101, 37, 0.18);
}

.button--primary:hover {
  background: var(--hr-orange-strong);
}

.button--outline,
.button--secondary {
  border-color: var(--hr-line);
  background: rgba(255, 255, 255, 0.72);
  color: #5f5952;
  box-shadow: none;
}

/* -------------------------------------------------------------------------
   FOOTER – same editorial grammar: paper, lines, serif hierarchy, no card soup
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hr-line);
  background: var(--hr-paper);
  color: var(--hr-ink);
}

.site-footer__statement {
  max-width: 1110px;
  margin: 0 auto;
  padding: 54px 24px 28px;
  border-bottom: 1px solid var(--hr-line);
  background: transparent;
}

.site-footer__statement p {
  margin: 0;
  font-family: var(--hr-font-heading);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(38px, 8vw, 96px);
  max-width: 1110px;
  margin: 0 auto;
  padding: 44px 24px 48px;
}

.site-footer__brand,
.site-footer__contact {
  min-width: 0;
}

.site-footer__logo {
  display: block;
  width: 220px;
  max-width: 100%;
  color: var(--hr-ink);
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer__brand-subtitle {
  display: block;
  margin-top: 20px;
  color: var(--hr-orange-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer__brand-divider {
  display: block;
  width: 28px;
  height: 1px;
  margin: 16px 0;
  background: var(--hr-orange);
}

.site-footer__brand p,
.site-footer__contact-intro,
.site-footer__reassurance {
  color: var(--hr-muted);
}

.site-footer__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--hr-orange-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer__eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--hr-orange);
  content: "";
}

.site-footer__contact h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.site-footer__contact-intro {
  margin: 14px 0 20px;
}

.site-footer__contact-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--hr-orange);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(217, 101, 37, 0.18);
}

.site-footer__contact-button-icon {
  display: none;
}

.site-footer__or {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
  margin: 18px 0 12px;
  color: var(--hr-muted);
  font-size: 0.72rem;
}

.site-footer__or span:first-child,
.site-footer__or span:last-child {
  height: 1px;
  flex: 1;
  background: var(--hr-line);
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hr-orange-strong);
  font-weight: 700;
}

.site-footer__email svg {
  width: 18px;
  height: 18px;
}

.site-footer__reassurance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 0.78rem;
}

.site-footer__reassurance svg {
  width: 16px;
  height: 16px;
}

.site-footer__quick {
  border-top: 1px solid var(--hr-line);
  border-bottom: 1px solid var(--hr-line);
}

.site-footer__quick-inner {
  display: flex;
  max-width: 1110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 18px 24px;
}

.site-footer__quick-title {
  margin: 0;
  color: var(--hr-orange-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer__quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.site-footer__quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #625d57;
  font-size: 0.82rem;
}

.site-footer__quick-icon,
.site-footer__quick-divider {
  display: none;
}

.site-footer__legal {
  background: transparent;
}

.site-footer__legal-inner {
  display: flex;
  max-width: 1110px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  color: var(--hr-muted);
  font-size: 0.72rem;
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.site-footer__legal-divider {
  width: 1px;
  height: 12px;
  background: var(--hr-line);
}

.site-footer__privacy-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

@media (max-width: 760px) {
  /* The approved standalone intentionally removes the top navigation on
     mobile. Keep the production DOM for progressive fallback, but the visual
     master remains unchanged. Navigation stays reachable through the page
     content/footer and the global contact bar. */
  .hr-menu-toggle,
  .site-header .hr-nav,
  .site-header .navigation-backdrop {
    display: none !important;
  }

  body.contact-room-open .site-shell {
    transform: scale(0.994);
    filter: saturate(0.96) brightness(0.96);
  }

  .site-header.hr-topbar {
    height: 68px;
    padding: 0 18px;
  }

  .hr-brand__logo {
    width: 128px;
  }

  .site-footer__logo {
    width: 190px;
  }

  .hr-menu-toggle {
    position: static;
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--hr-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
  }

  .hr-menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--hr-ink);
  }

  .site-header .hr-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1300;
    display: block;
    width: min(88vw, 340px);
    height: 100dvh;
    padding: 18px;
    border-left: 1px solid var(--hr-line);
    background: rgba(255, 253, 250, 0.985);
    box-shadow: -18px 0 60px rgba(58, 46, 35, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(105%);
    transition:
      transform 0.35s var(--hr-ease-out),
      opacity 0.25s ease,
      visibility 0s linear 0.35s;
  }

  .site-header .hr-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .hr-nav__mobile-head {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--hr-line);
    color: var(--hr-orange-strong);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .hr-nav__mobile-head .main-navigation__close {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid var(--hr-line);
    border-radius: 50%;
    background: #fff;
  }

  .hr-nav__mobile-head .main-navigation__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    background: var(--hr-ink);
  }

  .hr-nav__mobile-head .main-navigation__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .hr-nav__mobile-head .main-navigation__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .hr-nav__list {
    display: grid;
    gap: 0;
    margin-top: 18px;
  }

  .hr-nav__list .main-navigation__item {
    border-bottom: 1px solid var(--hr-line);
  }

  .hr-nav__link,
  .hr-nav__contact-link {
    width: 100%;
    min-height: 58px;
    justify-content: space-between;
    font-family: var(--hr-font-heading);
    font-size: 1.35rem;
    font-weight: 500;
  }

  .hr-nav__contact-link {
    color: var(--hr-orange-strong);
  }

  .site-header .navigation-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    border: 0;
    background: rgba(37, 31, 26, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }

  .site-header .navigation-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-footer__statement,
  .site-footer__main,
  .site-footer__quick-inner,
  .site-footer__legal-inner {
    padding-inline: 20px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .site-footer__quick-inner,
  .site-footer__legal-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__quick-links {
    gap: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell,
  .site-header .hr-nav,
  .site-header .navigation-backdrop {
    transition-duration: 0.01ms !important;
  }
}
