/* ============================================================
   Bellevue Zuhause Plus — Baustellenseite (shared styles)
   Built on the Bellevue Zuhause Plus design tokens.
   ============================================================ */

:root {
  --ds: "Bellevue Zuhause Plus";
  --hero-overlay-top: rgba(10, 36, 27, 0.55);
  --hero-overlay-bot: rgba(10, 36, 27, 0.90);
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
}

a { transition: color var(--dur-fast) var(--ease-standard); }

/* hr default has auto inline margins — reset for flex rule usage */
hr.bv-rule { margin: 0; }

/* ---- shared layout shell ---------------------------------- */
.shell {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- brand bar -------------------------------------------- */
.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: clamp(1.1rem, 3.5vw, 1.9rem);
}
.brandbar__logo { display: block; }
.brandbar__logo img { display: block; height: clamp(64px, 12vw, 104px); width: auto; }

.brandbar__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.brandbar__status .dot {
  width: 9px; height: 9px; border-radius: var(--radius-pill);
  background: var(--gold-500);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold-500) 70%, transparent);
  animation: pulse 2.8s var(--ease-standard) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold-500) 55%, transparent); }
  70%  { box-shadow: 0 0 0 10px rgba(205,163,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(205,163,89,0); }
}
@media (prefers-reduced-motion: reduce) { .brandbar__status .dot { animation: none; } }

/* ============================================================
   HOME — full-bleed hero "Baustellenseite"
   ============================================================ */
.home {
  color: var(--text-inverse);
  background: var(--green-950);
}
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos-d, 50% 50%);
  opacity: 0;
  animation: heroFade 21s var(--ease-standard) infinite;
  will-change: opacity;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 7s; }
.hero__slide:nth-child(3) { animation-delay: 14s; }
@keyframes heroFade {           /* 3 images x 7s = 21s cycle */
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  33%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (max-width: 560px) { .hero__slide { object-position: var(--pos-m, 50% 50%); } }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide:first-child { opacity: 1; }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      var(--hero-overlay-top) 0%,
      rgba(10,36,27,0.40) 32%,
      rgba(10,36,27,0.66) 70%,
      var(--hero-overlay-bot) 100%);
}

.hero .brandbar__status { color: var(--text-inverse); }

/* hero centre content */
.hero__body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero__inner { max-width: 56rem; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: clamp(1.25rem, 3.5vw, 2rem);
}
.hero__eyebrow .bv-rule { background: var(--gold-400); flex: none; }
.hero__eyebrow span {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-300);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: #fff;
  text-wrap: balance;
  font-size: clamp(2.1rem, 6.4vw, 4.4rem);
  margin: 0;
  text-shadow: 0 2px 24px rgba(10, 36, 27, 0.45);
}
.hero__title .accent { color: var(--gold-300); font-style: italic; }

.hero__lead {
  margin: clamp(1.4rem, 3.5vw, 2.1rem) 0 0;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  line-height: var(--leading-relaxed);
  color: rgba(244, 241, 234, 0.92);
}

/* contact block */
.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 6vw, 4rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.contact-item { min-width: 0; }
.contact-item__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.5rem;
}
.contact-item__label svg { width: 17px; height: 17px; }
.contact-item__value {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  line-height: 1.4;
  color: #fff;
}
a.contact-item__value {
  color: #fff;
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--gold-400) 70%, transparent);
  padding-bottom: 1px;
}
a.contact-item__value:hover { color: var(--gold-200); border-bottom-color: var(--gold-300); }
.contact-item__value address { font-style: normal; }

/* hero footer (links) */
.hero__footer {
  border-top: 1px solid rgba(244, 241, 234, 0.18);
}
.hero__footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: clamp(1.1rem, 3vw, 1.6rem);
}
.foot-copy {
  font-size: var(--text-sm);
  color: rgba(244, 241, 234, 0.66);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.1rem, 3vw, 1.75rem);
}
.foot-links a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.85);
  text-decoration: none;
}
.foot-links a:hover { color: var(--gold-300); }

/* ============================================================
   LEGAL SUBPAGES (Impressum / Datenschutz)
   ============================================================ */
.legal {
  background: var(--cream);
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.legal .brandbar { border-bottom: 1px solid var(--border-subtle); }
.legal .brandbar__status { color: var(--green-600); }
.legal .brandbar__status .dot { background: var(--gold-500); }

.legal__main { flex: 1; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.legal__wrap { max-width: var(--container-md); margin-inline: auto; }

.legal__eyebrow {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.legal__eyebrow .bv-eyebrow { color: var(--text-accent); white-space: nowrap; }
.legal__eyebrow .bv-rule { background: var(--gold-500); }

.legal__title {
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  line-height: 1.1;
  font-size: clamp(2rem, 5.5vw, 3.125rem);
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}
.legal__updated {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

.legal section { margin-bottom: clamp(2rem, 5vw, 3rem); }
.legal h2 {
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  font-size: clamp(1.3rem, 3vw, 1.625rem);
  color: var(--text-strong);
  line-height: 1.25;
  margin: 0 0 var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}
.legal section:first-of-type h2 { border-top: 0; padding-top: 0; }
.legal h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--text-md);
  color: var(--text-strong);
  margin: var(--space-6) 0 var(--space-2);
}
.legal p { margin: 0 0 var(--space-4); max-width: 60ch; }
.legal p:last-child { margin-bottom: 0; }
.legal a { color: var(--text-link); font-weight: var(--fw-semibold); text-underline-offset: 3px; }
.legal address { font-style: normal; line-height: var(--leading-relaxed); }
.legal strong { color: var(--text-strong); font-weight: var(--fw-bold); }

.legal .note {
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.legal__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--green-700);
  text-decoration: none;
  margin-bottom: var(--space-7);
}
.legal__back:hover { color: var(--orange-600); }
.legal__back svg { width: 18px; height: 18px; }

/* legal footer (forest band) */
.legal__footer {
  background: var(--green-800);
  color: var(--text-inverse);
}
.legal__footer .shell {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--space-3) var(--space-5);
  padding-block: clamp(1.6rem, 4vw, 2.25rem);
}
.legal__footer img { height: 42px; width: auto; display: block; }
.legal__footer .foot-links a { color: rgba(244,241,234,0.85); }
.legal__footer .foot-links a:hover { color: var(--gold-300); }
.legal__footer .foot-copy { color: rgba(244,241,234,0.6); }

/* ---- small screens --------------------------------------- */
@media (max-width: 560px) {
  .brandbar__status .label-long { display: none; }
}
