/* ============================================================
   LOCAL FONTS – Cormorant Garamond + Manrope (latin + latin-ext)
   ============================================================ */

/* Cormorant Garamond – latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond – latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope – latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope – latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

:root {
  /* brand & surface */
  --brand:          #2d3a2e;
  --bg:             #f5efe7;
  --surface:        #fbf7f1;
  --surface-strong: #efe4d6;
  --header-bg:      rgba(245, 239, 231, 0.84);
  /* typography */
  --text:           #2a302d;
  --muted:          #5a655f;
  /* accents */
  --accent:         #6b7d5d;
  --accent-dark:    #45513c;
  --phone-hover:    #354029;
  /* note gradient */
  --note-bg1:       #d9cab7;
  --note-bg2:       #efe0d0;
  /* body glow */
  --body-glow:      rgba(186, 198, 177, 0.28);
  /* hero image tint & image filter */
  --hero-tint:      rgba(73, 89, 62, 0.22);
  --img-filter:     none;
  /* borders & shadow */
  --line:   rgba(42, 48, 45, 0.12);
  --shadow: 0 24px 60px rgba(47, 38, 25, 0.14);
  /* layout */
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

/* ── Pergament & Tinte: warm cream · deep navy ── */
:root[data-theme="tinte"] {
  --brand:          #1e2433;
  --bg:             #f2eee5;
  --surface:        #faf7f2;
  --surface-strong: #ede4d4;
  --header-bg:      rgba(242, 238, 229, 0.88);
  --text:           #1e2433;
  --muted:          #5c5f6e;
  --accent:         #4a5570;
  --accent-dark:    #2d3553;
  --phone-hover:    #1e2844;
  --note-bg1:       #d4c9b4;
  --note-bg2:       #e8dfd0;
  --body-glow:      rgba(160, 170, 200, 0.22);
  --hero-tint:      rgba(45, 53, 83, 0.20);
  --img-filter:     sepia(0.08) hue-rotate(12deg) saturate(0.90);
  --line:   rgba(30, 36, 51, 0.12);
  --shadow: 0 24px 60px rgba(30, 36, 51, 0.14);
}

/* ── Stein & Wasser: cool slate · misty blue-gray ── */
:root[data-theme="stein"] {
  --brand:          #2c3035;
  --bg:             #edf0f3;
  --surface:        #f5f7f9;
  --surface-strong: #e0e5ea;
  --header-bg:      rgba(237, 240, 243, 0.88);
  --text:           #2c3035;
  --muted:          #5a6470;
  --accent:         #5b7a8a;
  --accent-dark:    #3a5566;
  --phone-hover:    #2a4455;
  --note-bg1:       #c8d3da;
  --note-bg2:       #dde4e9;
  --body-glow:      rgba(140, 175, 195, 0.22);
  --hero-tint:      rgba(58, 85, 102, 0.20);
  --img-filter:     sepia(0.05) hue-rotate(18deg) saturate(0.86) brightness(1.02);
  --line:   rgba(44, 48, 53, 0.12);
  --shadow: 0 24px 60px rgba(40, 50, 60, 0.14);
}

/* ── Morgenlicht & Linde: warm gold · amber ── */
:root[data-theme="licht"] {
  --brand:          #2e2818;
  --bg:             #faf4e4;
  --surface:        #fdf9f0;
  --surface-strong: #f2e8d0;
  --header-bg:      rgba(250, 244, 228, 0.88);
  --text:           #2e2818;
  --muted:          #6b5e40;
  --accent:         #8a7650;
  --accent-dark:    #5c4e2e;
  --phone-hover:    #4a3a1e;
  --note-bg1:       #d9c89a;
  --note-bg2:       #ecdcb8;
  --body-glow:      rgba(210, 190, 130, 0.22);
  --hero-tint:      rgba(138, 118, 80, 0.22);
  --img-filter:     sepia(0.12) hue-rotate(-12deg) saturate(1.08) brightness(1.02);
  --line:   rgba(46, 40, 24, 0.12);
  --shadow: 0 24px 60px rgba(46, 40, 24, 0.14);
}

/* ── Bordeaux & Eiche: deep wine · warm oak ── */
:root[data-theme="bordeaux"] {
  --brand:          #2d1c1a;
  --bg:             #f5ede8;
  --surface:        #faf6f3;
  --surface-strong: #eedcd4;
  --header-bg:      rgba(245, 237, 232, 0.88);
  --text:           #2d1c1a;
  --muted:          #6b4e46;
  --accent:         #8c4a40;
  --accent-dark:    #6a2e25;
  --phone-hover:    #581f17;
  --note-bg1:       #d4b8a8;
  --note-bg2:       #e9d3c5;
  --body-glow:      rgba(200, 150, 140, 0.22);
  --hero-tint:      rgba(106, 46, 37, 0.20);
  --img-filter:     sepia(0.18) hue-rotate(-22deg) saturate(0.92);
  --line:   rgba(45, 28, 26, 0.12);
  --shadow: 0 24px 60px rgba(45, 28, 26, 0.14);
}

/* ── Anthrazit & Espresso: dark charcoal · warm brown ── */
:root[data-theme="anthrazit"] {
  --brand:          #1e1c1a;
  --bg:             #f2eeea;
  --surface:        #f9f7f4;
  --surface-strong: #e8e2dc;
  --header-bg:      rgba(242, 238, 234, 0.88);
  --text:           #1e1c1a;
  --muted:          #5e5552;
  --accent:         #7a6a5e;
  --accent-dark:    #4a3d35;
  --phone-hover:    #3a2e27;
  --note-bg1:       #d4c4b5;
  --note-bg2:       #e8ddd2;
  --body-glow:      rgba(160, 140, 125, 0.20);
  --hero-tint:      rgba(74, 61, 53, 0.22);
  --img-filter:     sepia(0.12) saturate(0.82) brightness(0.97);
  --line:   rgba(30, 28, 26, 0.12);
  --shadow: 0 24px 60px rgba(30, 28, 26, 0.14);
}

/* ── Sternenstille: deep plum · dusty violet ── */
:root[data-theme="sterne"] {
  --brand:          #1f1824;
  --bg:             #f0edf4;
  --surface:        #f8f5fb;
  --surface-strong: #e5dff0;
  --header-bg:      rgba(240, 237, 244, 0.88);
  --text:           #1f1824;
  --muted:          #5e526a;
  --accent:         #7a5e8a;
  --accent-dark:    #4d3860;
  --phone-hover:    #3a2650;
  --note-bg1:       #ccc0d8;
  --note-bg2:       #e0d9ea;
  --body-glow:      rgba(170, 150, 200, 0.22);
  --hero-tint:      rgba(77, 56, 96, 0.18);
  --img-filter:     sepia(0.06) hue-rotate(28deg) saturate(0.85) brightness(1.01);
  --line:   rgba(31, 24, 36, 0.12);
  --shadow: 0 24px 60px rgba(31, 24, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at top left, var(--body-glow), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-row {
  min-height: 82px;
}

.brand img {
  width: 200px;
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a:hover,
.phone-link:hover {
  color: var(--accent-dark);
}

/* ── Hamburger / Mobile Nav ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.site-header.is-menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.1);
}
.site-header.is-menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--surface);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.site-header.is-menu-open .mobile-nav {
  max-height: 600px;
}
.mobile-nav a,
.mobile-nav-group {
  display: block;
  padding: 0.85rem 1.5rem;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
}
.mobile-nav a {
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--accent-dark);
  background: rgba(69, 81, 60, 0.05);
}
.mobile-nav a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 600;
}
.mobile-nav-group {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.3rem;
  padding-top: 1.1rem;
}
.mobile-nav .mobile-nav-sub {
  padding-left: 2.5rem;
  font-size: 0.93rem;
  color: var(--muted);
}
.mobile-nav .mobile-nav-sub:hover,
.mobile-nav .mobile-nav-sub[aria-current="page"] {
  color: var(--accent-dark);
  background: rgba(69, 81, 60, 0.05);
}
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .phone-link { display: none; }
  .header-row { justify-content: flex-start; gap: 1rem; }
}

/* Nav dropdown */
.nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
/* Invisible bridge fills the gap so hover isn't lost when moving to panel */
.nav-dropdown-wrap::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 14px;
}
.nav-dropdown-wrap > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.6;
  vertical-align: middle;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.35rem 0;
  min-width: 200px;
  box-shadow: 0 8px 28px rgba(47, 38, 25, 0.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
  white-space: nowrap;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-dropdown a::after {
  display: none;
}
.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  color: var(--accent-dark);
  background: rgba(69, 81, 60, 0.06);
}

.phone-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  background: var(--accent-dark);
  color: #f8f4ee;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  gap: 0.05rem;
  transition: background-color 180ms ease;
}

.phone-link:hover {
  background: var(--phone-hover);
  color: #f8f4ee;
}

.phone-availability {
  font-size: 0.67rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.82;
}

.phone-number {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(20, 27, 24, 0.25), rgba(20, 27, 24, 0.72)),
    linear-gradient(125deg, var(--hero-tint), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  color: #f7f2eb;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow-dark {
  color: var(--accent-dark);
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.98;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.1rem);
}

.hero h1 em {
  font-style: italic;
  color: #d9e4d1;
}

.hero-copy {
  max-width: 620px;
  margin: 1.4rem 0 0;
  font-size: 1.1rem;
  color: rgba(247, 242, 235, 0.9);
}

.hero-actions,
.location-actions,
.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-dark);
  color: #f8f4ee;
}

.button-secondary {
  background: rgba(248, 244, 238, 0.16);
  border-color: rgba(248, 244, 238, 0.45);
  color: inherit;
}

.section {
  padding: 5.5rem 0;
}

.priority-note {
  margin-top: -1.2rem;
  position: relative;
  z-index: 2;
}

.priority-note .container {
  background: linear-gradient(135deg, var(--note-bg1), var(--note-bg2));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
}

.priority-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

.priority-text {
  margin: 0.35rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.service-grid,
.facts {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-note a {
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.service-card,
.location-card,
.contact-card,
.image-card,
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-card,
.location-card,
.contact-card {
  padding: 1.5rem;
}

.service-card h3,
.location-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.burial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.burial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.burial-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.burial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.burial-card a {
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.legal-note {
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem;
  background: rgba(107, 125, 93, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
}

.team-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.team-card p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  overflow: hidden;
}

.team-portrait--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #f8f4ee;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.history-heading {
  margin: 2.6rem 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
}

.history-intro {
  max-width: 72ch;
  color: var(--muted);
  margin: 0 0 1.8rem;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.history-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.history-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.history-list span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.about-more {
  margin: 2rem 0 0;
  font-size: 1rem;
}

.ruhewald-layout,
.location-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.ruhewald {
  background: linear-gradient(180deg, rgba(239, 228, 214, 0.55), rgba(245, 239, 231, 0));
}

.facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0 1.5rem;
}

.fact {
  padding: 1.2rem;
}

.fact-number {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: var(--accent-dark);
}

.fact-label {
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-list li + li {
  margin-top: 0.45rem;
}

.image-card {
  overflow: hidden;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-card figcaption {
  padding: 1rem 1.2rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.address-tag {
  display: inline-block;
  background: var(--accent-dark);
  color: #f8f4ee;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  align-self: flex-start;
}

.address-tag--nature {
  background: var(--accent);
}

.location-table {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: 2rem;
  overflow: hidden;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.8rem;
  border-bottom: 1px solid var(--line);
}

.location-row:last-child {
  border-bottom: none;
}

.location-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.location-name {
  font-size: 0.96rem;
  font-weight: 600;
}

.location-address {
  font-size: 0.85rem;
  color: var(--muted);
}

.location-details {
  margin-top: 0.3rem;
}

.location-details summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.location-details summary::before {
  content: '▸';
  font-size: 0.7rem;
  transition: transform 160ms ease;
}

.location-details[open] summary::before {
  transform: rotate(90deg);
}

.location-details summary::-webkit-details-marker {
  display: none;
}

.location-details p,
.location-details > *:not(summary) {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.location-map-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.location-map-link:hover {
  color: var(--accent);
}

.location-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.location-map-link--button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: right;
  font: inherit;
}

.location-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.location-sketch {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.route-note,
.alert-text {
  background: rgba(107, 125, 93, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 1.4rem;
}

.contact-card {
  display: grid;
  gap: 0.8rem;
}

.contact-name,
.contact-phone {
  font-weight: 700;
}

.contact-phone {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #25d366;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.contact-whatsapp:hover {
  color: #128c4e;
}
.contact-whatsapp svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.contact-fax {
  font-size: 0.9rem;
  color: var(--muted);
  display: block;
  margin-top: -0.3rem;
}

.contact-hours {
  margin: 0.4rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}

.contact-hours dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-top: 0.6rem;
}

.contact-hours dt:first-child {
  margin-top: 0;
}

.contact-hours dd {
  margin: 0.1rem 0 0;
  color: var(--text);
}

.site-footer {
  padding: 1.6rem 0 2rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 1.2rem;
}

.footer-legal a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--accent-dark);
}

.legal-page {
  padding: 4rem 0 5rem;
}

.legal-page h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0.3rem 0 2rem;
}

.legal-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.4rem 0 0.6rem;
}

.legal-page p,
.legal-page ul {
  max-width: 70ch;
  color: var(--text);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page li + li {
  margin-top: 0.3rem;
}

.legal-page code {
  background: rgba(42, 48, 45, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.legal-updated {
  color: var(--muted);
  font-style: italic;
  margin-top: 2rem;
}

.legal-back {
  margin-top: 3rem;
}

.legal-back a {
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 40;
  background: #1f2620;
  color: #f7f2eb;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 1.3rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 360px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #d9e4d1;
  border-bottom: 1px solid currentColor;
}

.cookie-banner-actions {
  flex-shrink: 0;
}

.cookie-banner .button-primary {
  background: #f7f2eb;
  color: #1f2620;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
}

.cookie-banner .button-primary:hover {
  background: #e6ddce;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 19, 12, 0.62);
}

.modal-panel {
  position: relative;
  width: min(calc(100% - 2rem), 960px);
  margin: 4vh auto;
  max-height: 92vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.modal-maps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-maps a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(107, 125, 93, 0.1);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.modal-maps a:hover {
  background: rgba(107, 125, 93, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 48, 45, 0.08);
  cursor: pointer;
}

.modal-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 5, 0.90);
  cursor: zoom-out;
}
.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(94vw, 1280px);
  max-height: 92vh;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
[data-lightbox] {
  cursor: zoom-in;
}
@media (max-width: 720px) {
  .lightbox-inner {
    max-width: 96vw;
    max-height: 88vh;
  }
  .lightbox-img {
    max-height: 82vh;
  }
  .lightbox-close {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.45);
  }
}

.modal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
}

.sketch-toggle {
  display: inline-flex;
  background: rgba(42, 48, 45, 0.08);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.2rem;
}

.sketch-toggle-btn {
  border: 0;
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.sketch-toggle-btn.is-active {
  background: var(--accent-dark);
  color: #f8f4ee;
}

.sketch-image.is-hidden {
  display: none;
}

.ruhewald-sketch {
  margin-top: 1.8rem;
}

/* Im-Sterbefall-Seite */
.sterbefall-hero {
  position: relative;
  min-height: 48vh;
  display: grid;
  align-items: end;
  overflow: clip;
}

.sterbefall-hero-media,
.sterbefall-hero-media img,
.sterbefall-hero-overlay {
  position: absolute;
  inset: 0;
}

.sterbefall-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sterbefall-hero-overlay {
  background:
    linear-gradient(180deg, rgba(20, 27, 24, 0.35), rgba(20, 27, 24, 0.78)),
    linear-gradient(125deg, var(--hero-tint), transparent 55%);
}

.sterbefall-hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.2rem;
  color: #f7f2eb;
}

.sterbefall-hero-content h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
}

.sterbefall-hero-content p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(247, 242, 235, 0.9);
  font-size: 1.05rem;
}

.sterbefall-hero-content .button {
  margin-top: 1.6rem;
}

.sterbefall-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 600;
  margin: 2.6rem 0 1rem;
}

.sterbefall-page .checklist {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.9rem;
}

.sterbefall-page .checklist li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem 1.1rem 3.6rem;
  color: var(--muted);
  line-height: 1.55;
}

.sterbefall-page .checklist li::before {
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #f8f4ee;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sterbefall-page .checklist strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

.sterbefall-page .checklist a {
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.sterbefall-page .docs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.4rem;
}

.sterbefall-page .docs-list li {
  padding: 0.55rem 0.9rem;
  background: rgba(107, 125, 93, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text);
  font-size: 0.96rem;
}

.sterbefall-page .docs-list strong {
  color: var(--accent-dark);
  margin-right: 0.35rem;
}

.sterbefall-page .docs-note {
  margin: 0 0 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Detailseiten Erd-/Feuerbestattung */
.detail-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
}

.detail-page h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
  color: var(--accent-dark);
}

.detail-page p {
  max-width: 70ch;
  color: var(--text);
  margin: 0 0 1rem;
}

.detail-page ul {
  max-width: 70ch;
  padding-left: 1.2rem;
  color: var(--text);
}

.detail-page ul li + li {
  margin-top: 0.3rem;
}

.detail-cta {
  margin: 2rem 0 1rem;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(135deg, var(--note-bg1), var(--note-bg2));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.detail-cta p {
  margin: 0;
  max-width: 42ch;
}

.detail-cta .button {
  min-height: 46px;
}

/* Friedhöfe-Seite */
.friedhoefe-page .friedhoefe-lead {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.8rem;
}

.friedhoefe-page .friedhoefe-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
  margin-bottom: 3rem;
}

.friedhoefe-page .friedhoefe-overview ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.friedhoefe-page .friedhoefe-overview li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.98rem;
}

.friedhoefe-page .friedhoefe-overview li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.friedhof-section {
  margin: 3.4rem 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.friedhof-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.friedhof-section-head {
  max-width: 72ch;
  margin-bottom: 1.8rem;
}

.friedhof-section-head h2 {
  margin: 0.4rem 0 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
}

.friedhof-section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.friedhof-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.friedhof-block--reverse {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
}

.friedhof-block--reverse .friedhof-text { order: 2; }
.friedhof-block--reverse .slider { order: 1; }

.friedhof-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.4rem;
}

.friedhof-text h3 {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.friedhof-text p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 1rem;
}

.friedhof-facts {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.fact-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(107, 125, 93, 0.1);
  border: 1px solid rgba(107, 125, 93, 0.2);
}

.fact-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent-dark);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.fact-item span {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.4;
}

.slider {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e9e4da;
  isolation: isolate;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 650ms ease;
}

.slide.is-active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hochformat-Slider: volles Bild sichtbar (kein Crop), helle Letterbox */
.slider--portrait {
  min-height: 0;
  aspect-ratio: 1 / 1;
  max-height: min(80vh, 760px);
  background: #f1ece1;
}
.slider--portrait .slide img {
  object-fit: contain;
  padding: 18px;
}
.slider--portrait .slide::after { display: none; }
.slider--portrait .slider-caption {
  color: #2d3a2e;
  text-shadow: none;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
  width: max-content;
  max-width: calc(100% - 40px);
}
.slider--portrait .slider-button {
  background: rgba(0,0,0,0.45);
}

/* Zoom-Cursor & sanfter Hover, wenn Slider klickbar */
.slider--zoomable .slide img { cursor: zoom-in; }

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.32));
  pointer-events: none;
}

.slider-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

.slider-caption span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.slider-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-size: 1.05rem;
  line-height: 1;
}

.slider-button:hover,
.slider-button:focus-visible {
  background: rgba(0,0,0,0.38);
  outline: none;
}

.slider-dots {
  position: absolute;
  left: 20px;
  bottom: 52px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.52);
  cursor: pointer;
  padding: 0;
  transition: width 180ms ease;
}

.dot.is-active {
  width: 22px;
  background: #fff;
}

.friedhof-care {
  background: linear-gradient(135deg, rgba(107,125,93,0.16), rgba(183,154,98,0.12));
  border: 1px solid rgba(107,125,93,0.22);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
}

.friedhof-care .friedhof-section-head {
  margin-bottom: 1rem;
}

.friedhof-care > p {
  max-width: 72ch;
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.friedhof-flyer-note {
  margin-top: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,0.6);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.friedhof-flyer-note p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.friedhof-flyer-note p:last-child {
  margin-bottom: 0;
}

.friedhof-flyer-note ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
  color: var(--text);
}

.flyer-note-cta {
  font-size: 0.95rem;
}

.inline-link {
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.pdf-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pdf-card h3 {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.pdf-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: #f8f4ee;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease;
}

.pdf-button:hover {
  transform: translateY(-1px);
  background: var(--phone-hover);
}

.pdf-button--secondary {
  background: transparent;
  color: var(--accent-dark);
}

.pdf-button--secondary:hover {
  background: rgba(107,125,93,0.12);
}

.pdf-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f1eee7;
}

@media (max-width: 900px) {
  .friedhof-block,
  .friedhof-block--reverse {
    grid-template-columns: 1fr;
  }

  .friedhof-block--reverse .friedhof-text,
  .friedhof-block--reverse .slider {
    order: initial;
  }

  .pdf-grid {
    grid-template-columns: 1fr;
  }

  .slider {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .friedhof-facts {
    grid-template-columns: 1fr;
  }

  .slider {
    min-height: 280px;
  }

  .pdf-frame {
    min-height: 320px;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .service-grid,
  .burial-grid,
  .about-grid,
  .facts,
  .ruhewald-layout,
  .location-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .location-row {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .priority-note {
    margin-top: 1rem;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions,
  .cookie-banner .button-primary {
    width: 100%;
  }

  .hero-content {
    padding-top: 6.5rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .location-actions,
  .modal-actions {
    flex-direction: column;
  }

  .modal-panel {
    padding: 1rem;
  }
}

/* ==========================================================================
   Über uns page
   ========================================================================== */

.ueber-hero {
  position: relative;
  width: 100%;
  height: clamp(240px, 38vh, 460px);
  overflow: hidden;
}

.ueber-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.ueber-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(42, 48, 45, 0.15) 0%, rgba(42, 48, 45, 0.45) 100%),
    linear-gradient(125deg, var(--hero-tint), transparent 55%);
}

.ueber-uns-page .ueber-lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.55;
  color: var(--accent-dark);
  max-width: 52rem;
  margin: 1.25rem 0 3rem;
}

.ueber-story {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin: 2rem 0 3.5rem;
}

.ueber-story--reverse {
  grid-template-columns: 1fr 1.6fr;
}

.ueber-story-text h2 {
  margin-top: 0;
}

.ueber-story-text p + p {
  margin-top: 0.9rem;
}

.ueber-story-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 340px;
  width: 100%;
  justify-self: center;
}

.ueber-story-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.ueber-story-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.85rem;
  border: 2px dashed var(--line);
}

.ueber-story-figure figcaption {
  padding: 0.9rem 1.1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.ueber-team {
  margin: 4rem 0;
}

.ueber-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.team-card--large {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
}

.team-card--large .team-portrait {
  width: 88px;
  height: 88px;
  font-size: 1.6rem;
}

.team-card--large h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.team-card--large p {
  font-size: 0.95rem;
  color: var(--text);
}

.team-role {
  color: var(--accent) !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.25rem 0 0.75rem !important;
}

.ueber-chronik {
  margin: 4rem 0;
}

.chronik-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-left: 2px solid var(--line);
  padding-left: 1.75rem;
  position: relative;
}

.chronik-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: start;
  position: relative;
}

.chronik-list li::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.chronik-year {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--accent-dark);
  line-height: 1.2;
}

.chronik-list strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.chronik-list p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ueber-gallery {
  margin: 4rem 0;
}

.ueber-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.ueber-gallery-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ueber-gallery-grid img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

.ueber-gallery-grid figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

@media (max-width: 900px) {
  .ueber-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ueber-gallery-grid {
    grid-template-columns: 1fr;
  }
  .ueber-gallery-grid img {
    height: 280px;
  }
}

.ueber-zitat {
  margin: 4rem 0 2rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
}

.ueber-zitat blockquote {
  margin: 0;
}

.ueber-zitat blockquote p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.55;
  color: var(--accent-dark);
  font-style: italic;
  margin: 0 0 1rem;
}

.ueber-zitat blockquote footer {
  font-size: 0.95rem;
  color: var(--muted);
}

.ueber-zitat cite {
  font-style: italic;
}

@media (max-width: 900px) {
  .ueber-story {
    grid-template-columns: 1fr;
  }

  .ueber-story--reverse .ueber-story-figure {
    order: 2;
  }

  .ueber-story--reverse .ueber-story-text {
    order: 1;
  }

  .ueber-story-figure {
    max-width: 420px;
  }

  .ueber-team-grid {
    grid-template-columns: 1fr;
  }

  .chronik-list li {
    grid-template-columns: 90px 1fr;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .chronik-list {
    padding-left: 1.25rem;
  }

  .chronik-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .chronik-list li::before {
    left: -1.55rem;
  }

  .chronik-year {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   Floating UI: scroll-to-top button & 24/7 availability bar
   ========================================================================== */

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--accent);
  outline: none;
}

.availability-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.availability-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.availability-bar .availability-label {
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.82;
}

.availability-bar .availability-number {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.availability-bar .availability-number:hover,
.availability-bar .availability-number:focus-visible {
  text-decoration: underline;
  outline: none;
}

.availability-bar .availability-sep {
  opacity: 0.5;
}

/* Ensure page content isn't covered by the bar */
body:has(.availability-bar) {
  padding-bottom: 3rem;
}

@media (max-width: 560px) {
  .availability-bar {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .availability-bar .availability-number {
    font-size: 0.95rem;
  }
  .scroll-top {
    right: 0.9rem;
    bottom: 4.25rem;
    width: 42px;
    height: 42px;
  }
  body:has(.availability-bar) {
    padding-bottom: 2.5rem;
  }
}

/* Kosten page */
.kosten-page .breadcrumbs {
  font-size: 0.9rem;
  color: var(--accent-dark);
  margin: 0 0 1.25rem;
  opacity: 0.8;
}
.kosten-page .breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(69, 81, 60, 0.25);
}
.kosten-page .breadcrumbs a:hover {
  border-bottom-color: var(--accent-dark);
}
.kosten-page .breadcrumbs span[aria-hidden] {
  margin: 0 0.4rem;
  opacity: 0.6;
}

.kosten-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--accent-dark);
  margin-bottom: 1.25rem;
}

.kosten-faq {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
}

.kosten-faq h2 {
  margin-top: 0;
}

.kosten-faq-list {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.kosten-faq-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.kosten-section {
  margin: 2.5rem 0;
}
.kosten-section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.kosten-sub {
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.kosten-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(69, 81, 60, 0.15);
  border-radius: 10px;
  background: #fff;
}
.kosten-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.kosten-table thead th {
  text-align: left;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--surface);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(69, 81, 60, 0.2);
}
.kosten-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 1rem;
  vertical-align: top;
  white-space: nowrap;
}
.kosten-table td {
  padding: 1rem;
  vertical-align: top;
  color: #3f3f3f;
  line-height: 1.5;
}
.kosten-table tbody tr + tr th,
.kosten-table tbody tr + tr td {
  border-top: 1px solid rgba(69, 81, 60, 0.1);
}
.kosten-cell--right {
  text-align: right;
  white-space: nowrap;
}
.kosten-cell--right strong {
  color: var(--accent-dark);
  font-weight: 700;
}

.kosten-hinweis {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}
.kosten-hinweis p {
  margin: 0.4rem 0;
}

@media (max-width: 560px) {
  .kosten-table thead {
    display: none;
  }
  .kosten-table,
  .kosten-table tbody,
  .kosten-table tr,
  .kosten-table th,
  .kosten-table td {
    display: block;
    width: 100%;
  }
  .kosten-table tbody tr {
    padding: 1rem;
    border-top: 1px solid rgba(69, 81, 60, 0.1);
  }
  .kosten-table tbody tr:first-child {
    border-top: none;
  }
  .kosten-table tbody th,
  .kosten-table td {
    padding: 0.25rem 0;
    white-space: normal;
  }
  .kosten-cell--right {
    text-align: left;
    margin-top: 0.4rem;
  }
}

/* ── Trauerfeier – Kirchen & Kapellen ── */
.trauerfeier-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 2rem;
}
.trauerfeier-quicknav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.8;
  transition: opacity 0.18s;
}
.trauerfeier-quicknav a:hover {
  opacity: 1;
}
.trauerfeier-location-head {
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.trauerfeier-location-head h2 {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent-dark);
}
.trauerfeier-location-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.trauerfeier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.25rem 0 2rem;
}
.trauerfeier-grid--half {
  grid-template-columns: 1fr 1fr;
}
.trauerfeier-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.trauerfeier-card .slider {
  min-height: 260px;
  border-radius: 0;
  flex-shrink: 0;
}
.trauerfeier-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.trauerfeier-card-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
}
.trauerfeier-card-body h3 {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-dark);
}
.trauerfeier-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 680px) {
  .trauerfeier-grid,
  .trauerfeier-grid--half {
    grid-template-columns: 1fr;
  }
}

/* Erdbestattung image gallery */
.detail-figure {
  margin: 2rem 0;
}
.detail-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.detail-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--accent-dark);
  opacity: 0.8;
  font-style: italic;
}
.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
.detail-gallery figure {
  margin: 0;
}
.detail-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.detail-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--accent-dark);
  opacity: 0.8;
}
@media (max-width: 700px) {
  .detail-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   IMAGE THEMING
   Applies a subtle color-temperature filter to content images.
   The .brand img (logo) and picker swatches are excluded.
   ============================================================ */
.hero-media img,
.sterbefall-hero-media img,
.service-card img,
.location-card img,
.contact-card img,
.image-card img,
.slider .slide img,
.trauerfeier-card-img,
.detail-figure img,
.detail-gallery img,
.modal-image {
  filter: var(--img-filter);
}
/* Transition nur nach erstem Paint aktiv (verhindert Flash beim Laden) */
.theme-ready .hero-media img,
.theme-ready .sterbefall-hero-media img,
.theme-ready .service-card img,
.theme-ready .location-card img,
.theme-ready .contact-card img,
.theme-ready .image-card img,
.theme-ready .slider .slide img,
.theme-ready .trauerfeier-card-img,
.theme-ready .detail-figure img,
.theme-ready .detail-gallery img,
.theme-ready .modal-image {
  transition: filter 0.45s ease;
}

/* ============================================================
   THEME PICKER
   ============================================================ */
.theme-picker {
  position: relative;
}

.theme-picker-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem 0.3rem 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
}

.theme-picker-toggle:hover {
  background: var(--surface-strong);
  border-color: var(--accent);
  color: var(--text);
}

.theme-current-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-dark);
  border: 1.5px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
  transition: background 0.3s;
}

.theme-picker-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-picker-panel[hidden] {
  display: none;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.65rem;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.84rem;
  color: var(--muted);
  width: 100%;
  transition: background 0.14s, color 0.14s;
}

.theme-option:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.theme-option.is-active {
  color: var(--text);
  font-weight: 600;
}

.theme-option-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.10);
}

.theme-option-check {
  margin-left: auto;
  font-size: 0.9rem;
  opacity: 0;
  color: var(--accent-dark);
}

.theme-option.is-active .theme-option-check {
  opacity: 1;
}

@media (max-width: 980px) {
  .theme-picker {
    display: none;
  }
}
