/* ── Header & Footer (HausHofGarten) ──────────────────────────────── */

.site-header {
  view-transition-name: site-header;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-dark);
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}

.site-header .logo-link img,
.site-header .logo-link svg {
  height: 44px;
  width: auto;
  display: block;
}

.site-header .logo-text { display: flex; flex-direction: column; }
.site-header .logo-text .l1 { font-size: 1.1rem; }
.site-header .logo-text .l2 { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 6px 0;
  position: relative;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--primary);
  text-decoration: none;
}

.site-header nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.site-header nav a.cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius);
}

.site-header nav a.cta:hover { background: var(--primary-dark); color: #fff; }
.site-header nav a.cta.active::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.with-shared-header { padding-top: 78px; }

/* ── Skip / focus ─────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 4000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus-visible { top: 12px; }

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

/* ── Footer ───────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #2C3539 0%, #1F2629 100%);
  color: #DDE3D5;
}

.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 24px 30px;
  display: grid;
  gap: 30px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-col h4 {
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col p, .footer-col a, .footer-col li {
  color: #DDE3D5;
  font-size: 0.92rem;
  line-height: 1.75;
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); text-decoration: none; }

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

.footer-brand .brand-name {
  font-family: "Lora", serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 700;
}

.footer-brand .tagline { color: #98A19B; margin-bottom: 14px; font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #98A19B;
}

.footer-bottom-inner .legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom-inner .legal a { color: #DDE3D5; }
.footer-bottom-inner .legal a:hover { color: var(--accent); text-decoration: none; }

/* ── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 10px 18px; }
  .site-header .logo-link img, .site-header .logo-link svg { height: 36px; }
  .site-header .logo-text .l1 { font-size: 0.98rem; }
  .site-header .logo-text .l2 { font-size: 0.7rem; }

  .nav-toggle { display: flex; }

  .site-header nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(250, 247, 240, 0.99);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 28px 28px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    z-index: 1005;
    gap: 6px;
  }

  .site-header nav.is-open { right: 0; }

  .site-header nav a {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .site-header nav a.cta {
    border: none;
    text-align: center;
    margin-top: 12px;
    padding: 12px 18px;
  }

  body.with-shared-header { padding-top: 64px; }

  .footer-top { grid-template-columns: 1fr; padding: 36px 18px 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; padding: 14px 18px; }
}
