/* ============================================================
   Weihnachtsbaum-Service Flemnitz — Stylesheet
   ============================================================ */

/* ---------- Fonts (self-hosted, privacy-friendly) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --bg: #fbf4e6;
  --fg: #1a3622;
  --fg-soft: #2c4a36;
  --accent: #e5a93d;
  --accent-dark: #c48d2a;
  --muted: #6b6258;
  --border: #ece1cd;
  --card: #ffffff;

  /* Sundown atmosphere (viewport-anchored gradient), tuned per theme */
  --atmo-1: rgba(229, 154, 78, 0.55);
  --atmo-2: rgba(233, 168, 128, 0.42);
  --atmo-3: rgba(243, 200, 138, 0.5);
  --atmo-4: rgba(229, 169, 61, 0.28);
  --atmo-5: rgba(211, 178, 200, 0.28);
  --atmo-6: rgba(197, 178, 208, 0.24);

  /* Header (sticky topbar) — derived from --bg so text stays readable */
  --topbar-bg: color-mix(in srgb, var(--bg) 82%, transparent);
  --topbar-bg-scrolled: color-mix(in srgb, var(--bg) 94%, transparent);

  /* Footer — dark section, tuned per theme */
  --footer-bg: #2b3820;
  --footer-accent: var(--accent);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(20, 30, 25, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 30, 25, 0.06);

  --max-w: 1200px;
  --pad-x: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 7rem);
}

/* ---------- Alternative color schemes ---------- */
:root[data-theme="frost"] {
  --bg: #eef3f8;
  --fg: #0f2a3a;
  --fg-soft: #1f405a;
  --accent: #4a7fa8;
  --accent-dark: #325f83;
  --muted: #5e6f7a;
  --border: #d5dfe8;
  --card: #ffffff;

  --atmo-1: rgba(120, 170, 210, 0.42);
  --atmo-2: rgba(160, 195, 220, 0.36);
  --atmo-3: rgba(200, 220, 235, 0.45);
  --atmo-4: rgba(140, 180, 215, 0.25);
  --atmo-5: rgba(210, 220, 235, 0.30);
  --atmo-6: rgba(190, 205, 225, 0.28);

  --footer-bg: #0f2a3a;
  --footer-accent: #8ab8db;
}

:root[data-theme="plum"] {
  --bg: #f7ecf1;
  --fg: #3d1a2e;
  --fg-soft: #5a2a45;
  --accent: #a94477;
  --accent-dark: #7a2f56;
  --muted: #7a6570;
  --border: #ead6df;
  --card: #ffffff;

  --atmo-1: rgba(180, 90, 130, 0.42);
  --atmo-2: rgba(210, 140, 170, 0.36);
  --atmo-3: rgba(235, 200, 215, 0.45);
  --atmo-4: rgba(160, 80, 120, 0.25);
  --atmo-5: rgba(220, 190, 210, 0.30);
  --atmo-6: rgba(200, 175, 200, 0.28);

  --footer-bg: #3d1a2e;
  --footer-accent: #e58fb8;
}

:root[data-theme="amber"] {
  --bg: #f6e7c8;
  --fg: #3b2411;
  --fg-soft: #593920;
  --accent: #b8781e;
  --accent-dark: #8f5a12;
  --muted: #7a5a3a;
  --border: #e6d1a4;
  --card: #fff6e0;

  --atmo-1: rgba(230, 160, 60, 0.55);
  --atmo-2: rgba(215, 130, 55, 0.42);
  --atmo-3: rgba(245, 200, 100, 0.55);
  --atmo-4: rgba(210, 140, 45, 0.32);
  --atmo-5: rgba(240, 190, 110, 0.35);
  --atmo-6: rgba(220, 170, 90, 0.30);

  --footer-bg: #3b2411;
  --footer-accent: #f0b856;
}

:root[data-theme="cream"] {
  --bg: #f5f1ea;
  --fg: #2b2b2b;
  --fg-soft: #4a4a4a;
  --accent: #b73a3a;
  --accent-dark: #8f2828;
  --muted: #7a7368;
  --border: #e5dfd4;
  --card: #ffffff;

  --atmo-1: rgba(200, 90, 90, 0.38);
  --atmo-2: rgba(220, 140, 140, 0.32);
  --atmo-3: rgba(235, 200, 200, 0.40);
  --atmo-4: rgba(190, 90, 90, 0.22);
  --atmo-5: rgba(220, 200, 205, 0.28);
  --atmo-6: rgba(200, 180, 195, 0.24);

  --footer-bg: #2b2b2b;
  --footer-accent: #e58a8a;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: page-fade-in 0.45s ease-out both;
}
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Sundown atmosphere (fixed, viewport-anchored) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 108%, var(--atmo-1), transparent 62%),
    radial-gradient(ellipse 55% 50% at 15% 105%, var(--atmo-2), transparent 62%),
    radial-gradient(ellipse 55% 50% at 88% 100%, var(--atmo-3), transparent 60%),
    radial-gradient(ellipse 65% 45% at 55% 92%, var(--atmo-4), transparent 70%),
    radial-gradient(ellipse 55% 40% at 12% -8%, var(--atmo-5), transparent 62%),
    radial-gradient(ellipse 60% 42% at 92% -6%, var(--atmo-6), transparent 62%);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(26, 54, 34, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
a:hover {
  text-decoration-color: var(--fg);
}
button {
  font: inherit;
  cursor: pointer;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
section {
  padding-block: var(--section-y);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}
h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--fg);
  line-height: 1.2;
  font-weight: 700;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.005em;
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--fg-soft);
  max-width: 60ch;
}

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  stroke-width: 1.75;
  flex-shrink: 0;
  vertical-align: -0.2em;
}
.icon-lg {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.5;
}

/* ---------- Top Bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color 0.2s ease, background 0.2s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.topbar.is-scrolled {
  border-bottom-color: var(--border);
  background: var(--topbar-bg-scrolled);
}
.topbar.is-hidden {
  transform: translateY(-100%);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
@media (max-width: 768px) {
  .topbar__inner {
    height: 56px;
    gap: 0.5rem;
  }
}
@media (max-width: 640px) {
  /* Compact brand for phones: "Flemnitz" / "Weihnachtsbäume" */
  .topbar__brand-detail {
    display: none;
  }
}
@media (max-width: 380px) {
  .topbar__brand-tagline {
    display: none;
  }
  .topbar__brand-name {
    font-size: 0.9375rem;
  }
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fg);
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.topbar__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  gap: 0.05rem;
  overflow: hidden;
}
@media (max-width: 640px) {
  .topbar__brand {
    gap: 0.5rem;
  }
  .topbar__brand-icon {
    width: 1.1em;
    height: 1.1em;
  }
}
.topbar__brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.topbar__brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.topbar__brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__brand:hover {
  text-decoration: none;
}
.topbar__brand-icon {
  color: var(--accent-dark);
  flex-shrink: 0;
}
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}
@media (max-width: 640px) {
  .topbar__actions {
    gap: 0.25rem;
  }
}
.topbar__cta {
  display: none;
}
@media (min-width: 960px) {
  .topbar__cta {
    display: inline-flex;
  }
}

/* Offset anchor scroll for sticky header */
:target {
  scroll-margin-top: 80px;
}

/* ---------- Primary Navigation (desktop) ---------- */
.nav {
  display: none;
  flex: 1;
  justify-content: center;
}
@media (min-width: 960px) {
  .nav {
    display: flex;
  }
}
.nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--fg-soft);
  text-decoration: none;
  background: transparent;
  border: 0;
  transition: background-color 0.2s, color 0.2s;
  line-height: 1;
  min-height: 40px;
  cursor: pointer;
}
.nav__link:hover,
.nav__link:focus-visible {
  background: rgba(26, 54, 34, 0.06);
  color: var(--fg);
  text-decoration: none;
}
.nav__trigger[aria-expanded="true"] {
  background: rgba(26, 54, 34, 0.06);
  color: var(--fg);
}
.nav__chevron {
  width: 0.875em;
  height: 0.875em;
  transition: transform 0.2s ease;
}
.nav__trigger[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}
.nav__submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  z-index: 60;
  animation: nav-fade-in 0.15s ease;
}
.nav__submenu[hidden] {
  display: none;
}
.nav__submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.nav__submenu a {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--fg);
  transition: background-color 0.15s;
}
.nav__submenu a:hover,
.nav__submenu a:focus-visible {
  background: rgba(26, 54, 34, 0.06);
  text-decoration: none;
}
.nav__submenu .icon {
  color: var(--accent-dark);
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
}
.nav__submenu-body {
  display: block;
  min-width: 0;
}
.nav__submenu-title {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--fg);
}
.nav__submenu-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}
@keyframes nav-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Mobile drawer toggle button ---------- */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg);
  padding: 0;
}
.nav__toggle:hover {
  background: var(--card);
  border-color: var(--fg);
}
.nav__toggle[aria-expanded="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
@media (min-width: 960px) {
  .nav__toggle {
    display: none;
  }
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 40; /* below topbar (50) so drawer unfurls from behind it */
}
.drawer[hidden] {
  display: none;
}
.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 34, 0.55);
  animation: drawer-fade-in 0.2s ease;
}

/* Mobile: full-width top-down sheet that slides from behind the topbar */
.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 100dvh;
  background: var(--bg);
  padding: calc(env(safe-area-inset-top) + 56px + 0.75rem) 1.25rem
    max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  animation: drawer-slide-down 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 12px 24px rgba(20, 30, 25, 0.18);
}
@media (max-width: 639px) {
  /* Overlay only shows below the drawer panel; on mobile the sheet covers full width, so hide */
  .drawer__overlay {
    display: none;
  }
  /* Internal drawer header duplicates the topbar (brand + close); the topbar's hamburger toggles */
  .drawer__header {
    display: none;
  }
}
/* Tablet + desktop: right-side slide drawer (original behavior) */
@media (min-width: 640px) {
  .drawer__panel {
    top: 0;
    left: auto;
    right: 0;
    width: min(92vw, 380px);
    max-height: none;
    height: 100%;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem
      max(1.25rem, env(safe-area-inset-bottom));
    gap: 1.25rem;
    animation: drawer-slide-in 0.25s ease;
    box-shadow: -8px 0 24px rgba(20, 30, 25, 0.15);
  }
}
@keyframes drawer-slide-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.drawer__close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  flex-shrink: 0;
  padding: 0;
}
.drawer__close:hover {
  background: var(--card);
  border-color: var(--fg);
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}
.drawer__link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  border-radius: var(--radius-md);
  min-height: 44px;
}
.drawer__link:hover {
  background: rgba(26, 54, 34, 0.06);
  text-decoration: none;
}
.drawer__group {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0;
  background: transparent;
}
.drawer__group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.875rem 1rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: var(--radius-md);
}
.drawer__group summary::-webkit-details-marker {
  display: none;
}
.drawer__group summary:hover {
  background: rgba(26, 54, 34, 0.06);
}
.drawer__group summary .icon {
  color: var(--fg-soft);
  transition: transform 0.2s ease;
}
.drawer__group[open] summary .icon {
  transform: rotate(180deg);
}
.drawer__submenu {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.5rem 0.5rem;
}
.drawer__submenu a {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--fg);
}
.drawer__submenu a:hover {
  background: rgba(26, 54, 34, 0.06);
  text-decoration: none;
}
.drawer__submenu .icon {
  color: var(--accent-dark);
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
}
.drawer__submenu-body {
  display: block;
  min-width: 0;
}
.drawer__submenu-title {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--fg);
}
.drawer__submenu-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}
.drawer__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.drawer__footer .btn {
  justify-content: center;
  width: 100%;
}
body.drawer-open {
  overflow: hidden;
}
@keyframes drawer-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes drawer-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s,
    transform 0.05s;
  min-height: 44px;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent);
  color: var(--fg);
}
.btn--primary:hover {
  background: var(--accent-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--card);
  border-color: var(--fg);
}
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  min-height: 36px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(480px, 80vh, 720px);
  display: flex;
  align-items: center;
  color: var(--bg);
  overflow: hidden;
  background-color: var(--fg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/webp/feld_2.webp") center / cover no-repeat;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 54, 34, 0.55) 0%,
    rgba(26, 54, 34, 0.35) 50%,
    rgba(26, 54, 34, 0.65) 100%
  );
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(4rem, 10vw, 6rem);
}
.hero h1 {
  color: var(--bg);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.125rem;
  max-width: 50ch;
  margin-bottom: 2rem;
  color: rgba(249, 248, 246, 0.92);
}

/* ---------- Products ---------- */
.products__intro {
  max-width: 60ch;
  margin-bottom: 3rem;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-card__icon {
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.product-card__icon .icon {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.5;
}
.product-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}
.product-card__sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.product-card__price {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.product-card__baseprice {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.product-card__price--inquire {
  color: var(--fg-soft);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
}
.product-notice {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(229, 169, 61, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--fg-soft);
}
.product-notice .icon {
  color: var(--fg);
  margin-top: 0.15rem;
}
.product-footnote {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Philosophy & Pflege ---------- */
.pflege {
  background: transparent;
}
.pflege__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .pflege__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.pflege__text p {
  color: var(--fg-soft);
}
.pflege__text p.pflege__source {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: -0.5rem;
}
.pflege__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.pflege__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-soft);
  font-size: 0.9375rem;
}
.pflege__list .icon {
  color: var(--accent-dark);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.accordion details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion details[open] {
  box-shadow: var(--shadow-sm);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary .icon {
  color: var(--fg);
  transition: transform 0.2s ease;
}
.accordion details[open] summary .icon {
  transform: rotate(180deg);
}
.accordion__body {
  overflow: hidden;
  padding: 0 1.25rem 1.25rem;
  color: var(--fg-soft);
  font-size: 0.9375rem;
}
.accordion__body p {
  margin-bottom: 0.9rem;
}
.accordion__body p:last-child {
  margin-bottom: 0;
}
.accordion__body strong {
  color: var(--fg);
  font-weight: 700;
}

/* ---------- Gallery (multi-column masonry) ---------- */
.gallery {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 640px) {
  .gallery {
    column-count: 2;
  }
}
@media (min-width: 960px) {
  .gallery {
    column-count: 3;
  }
}
.gallery__item {
  margin: 0 0 1.5rem;
  break-inside: avoid;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.gallery__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.gallery__item:hover img {
  transform: scale(1.03);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--bg);
  padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -140px;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--footer-bg) 0%, transparent) 0%,
    color-mix(in srgb, var(--footer-bg) 20%, transparent) 30%,
    color-mix(in srgb, var(--footer-bg) 55%, transparent) 60%,
    color-mix(in srgb, var(--footer-bg) 92%, transparent) 88%,
    var(--footer-bg) 100%
  );
}
.footer a {
  color: var(--bg);
  text-decoration-color: rgba(249, 248, 246, 0.4);
}
.footer a:hover {
  text-decoration-color: var(--bg);
}
.footer h2,
.footer h3 {
  color: var(--bg);
}
.footer h2 {
  margin-bottom: 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}
.footer__block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--footer-accent);
  margin-bottom: 1rem;
}
.footer__block address {
  font-style: normal;
  line-height: 1.7;
  color: rgba(249, 248, 246, 0.9);
}
.footer__block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.footer__block ul li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(249, 248, 246, 0.9);
}
.footer__block ul .icon {
  color: var(--footer-accent);
  flex-shrink: 0;
}
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(249, 248, 246, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(249, 248, 246, 0.7);
}
@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.legal .container {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.legal__meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal p,
.legal ul,
.legal address {
  color: var(--fg-soft);
}
.legal ul {
  padding-left: 1.25rem;
}
.legal address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
}
.legal__back:hover {
  text-decoration: underline;
}

/* ---------- Anfahrt (Directions) page ---------- */
.anfahrt {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.anfahrt__back {
  margin-bottom: 1.5rem;
}
.anfahrt__back .legal__back {
  margin-bottom: 0;
}
.anfahrt h1 {
  margin-bottom: 0.5rem;
}
.anfahrt .lead {
  margin-bottom: 2.5rem;
}
.anfahrt__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 960px) {
  .anfahrt__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: start;
  }
}
.anfahrt__map {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
@media (min-width: 640px) {
  .anfahrt__map {
    aspect-ratio: 16 / 10;
  }
}
.anfahrt__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.anfahrt__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.anfahrt__block h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.75rem;
}
.anfahrt__block h2 .icon {
  color: var(--accent-dark);
}
.anfahrt__block address {
  font-style: normal;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0 0 1.25rem;
}
.anfahrt__block p {
  color: var(--fg-soft);
  margin: 0;
}
.anfahrt__contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.anfahrt__contact li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fg-soft);
}
.anfahrt__contact .icon {
  color: var(--accent-dark);
  flex-shrink: 0;
}
.anfahrt__privacy {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Map consent gate (DSGVO click-to-load) */
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(26, 54, 34, 0.35), rgba(26, 54, 34, 0.55)),
    repeating-linear-gradient(
      45deg,
      #e6ddc9 0 12px,
      #e0d5be 12px 24px
    );
}
.map-consent__inner {
  max-width: 42ch;
  text-align: center;
  background: var(--card);
  color: var(--fg);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-consent__icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
}
.map-consent__inner h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}
.map-consent__inner p {
  font-size: 0.875rem;
  color: var(--fg-soft);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
.map-consent__inner .btn {
  width: 100%;
  justify-content: center;
}

/* Loading state (between consent click and iframe ready) */
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #e6ddc9 0 12px,
    #e0d5be 12px 24px
  );
}
.map-loading__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--fg-soft);
  font-size: 0.875rem;
}
.map-loading__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: map-spin 0.7s linear infinite;
}
@keyframes map-spin {
  to { transform: rotate(360deg); }
}
.map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.map-iframe.is-loaded {
  opacity: 1;
}

/* ---------- Sub-footer (minimal legal strip) ---------- */
.subfooter {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  background: var(--card);
  color: var(--muted);
  font-size: 0.875rem;
}
.subfooter__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .subfooter__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.subfooter__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.subfooter a {
  color: var(--fg-soft);
  text-decoration-color: rgba(26, 54, 34, 0.3);
}
.subfooter a:hover {
  color: var(--fg);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
