/* =========================================================================
   Blumenstudio Jauernek — Stylesheet
   Mobile-First · Selbstgehostete Fonts · DSGVO-konform
   ========================================================================= */

@import url('./fonts.css');

/* ---------- 1. Design-Tokens ---------- */
:root {
  /* Farben — Palette „Salbei-Atelier" (clean atelier · weich · zeitlos)
     Variablen-Namen aus Kompatibilitäts-Gründen beibehalten.
     --moos = mittleres Salbei · --beere/--salbei = Pfirsich-Akzent
     --creme = Off-White · --papier = Pur-Weiß für Karten */
  --moos:        #7a8d79;
  --moos-dunkel: #576856;
  --salbei:      #d4a78c;
  --salbei-hell: #e6c8b5;
  --creme:       #f9f7f0;
  --creme-warm:  #ece8dc;
  --papier:      #ffffff;
  --beere:       #d4a78c;
  --beere-dunkel:#b88860;
  --erde:        #262921;
  --grau:        #666a5d;
  --grau-hell:   #d8d4c6;
  --schwarz:     #1a1a1a;

  /* Typografie */
  --schrift-serif:  'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --schrift-sans:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --schrift-script: 'Sacramento', 'Brush Script MT', cursive;

  /* Abstände — fluide Skala */
  --raum-2xs: 0.25rem;
  --raum-xs:  0.5rem;
  --raum-sm:  0.75rem;
  --raum-md:  1rem;
  --raum-lg:  1.5rem;
  --raum-xl:  2rem;
  --raum-2xl: 3rem;
  --raum-3xl: 4.5rem;
  --raum-4xl: 6.5rem;

  /* Container */
  --max-breit:    1320px;
  --max-text:     680px;
  --max-mittel:   960px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Schatten */
  --schatten-sm: 0 2px 8px rgba(122, 141, 121, 0.06);
  --schatten-md: 0 8px 24px rgba(122, 141, 121, 0.10);
  --schatten-lg: 0 16px 48px rgba(122, 141, 121, 0.14);

  /* Übergänge */
  --uebergang:        220ms cubic-bezier(0.4, 0, 0.2, 1);
  --uebergang-lang:   400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Sichere Mobile-Bereiche */
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%;
}

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

body {
  margin: 0;
  font-family: var(--schrift-sans);
  font-size: 1rem;          /* 16 px Basis — lesbar ohne Zoom */
  line-height: 1.65;
  color: var(--moos-dunkel);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--moos);
  text-decoration: none;
  transition: color var(--uebergang);
}
a:hover, a:focus-visible { color: var(--beere); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--beere);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

p { margin: 0 0 var(--raum-md); }
ul, ol { margin: 0 0 var(--raum-md); padding-left: 1.25rem; }
li + li { margin-top: var(--raum-2xs); }

/* Skip-Link für Screenreader-Tastatur */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--raum-md);
  background: var(--moos);
  color: var(--creme);
  padding: var(--raum-sm) var(--raum-md);
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 500;
}
.skip-link:focus { top: var(--raum-md); color: var(--creme); }

/* ---------- 3. Typografie ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--schrift-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--moos);
  margin: 0 0 var(--raum-md);
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.25rem, 6vw + 1rem, 4.5rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 3rem);   font-weight: 500; }
h3 { font-size: clamp(1.4rem,  1.5vw + 1rem, 2rem); font-weight: 500; }
h4 { font-size: clamp(1.2rem,  1vw + 0.9rem, 1.5rem); font-weight: 500; }

.script {
  font-family: var(--schrift-script);
  font-weight: 400;
  color: var(--salbei);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--schrift-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--salbei);
  margin: 0 0 var(--raum-sm);
}

.lead {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  color: var(--grau);
  max-width: var(--max-text);
}

.text-zentriert { text-align: center; }
.text-zentriert .lead,
.text-zentriert .eyebrow { margin-inline: auto; }

/* ---------- 4. Layout-Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-breit);
  margin-inline: auto;
  padding-inline: var(--raum-md);
}
@media (min-width: 768px)  { .container { padding-inline: var(--raum-xl); } }
@media (min-width: 1200px) { .container { padding-inline: var(--raum-2xl); } }

.section {
  padding-block: var(--raum-2xl);
}
@media (min-width: 768px)  { .section { padding-block: var(--raum-3xl); } }
@media (min-width: 1200px) { .section { padding-block: var(--raum-4xl); } }

.section--klein   { padding-block: var(--raum-xl); }
.section--creme   { background: var(--creme-warm); }
.section--papier  { background: var(--papier); }
.section--moos    { background: var(--moos); color: var(--creme); }
.section--moos h1, .section--moos h2, .section--moos h3 { color: var(--creme); }
.section--moos a  { color: var(--salbei-hell); }
.section--moos a:hover { color: var(--creme); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--raum-xs);
  padding: 0.95rem 1.75rem;
  font-family: var(--schrift-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: all var(--uebergang);
  text-align: center;
  min-height: 48px;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primaer {
  background: var(--moos);
  color: var(--creme);
}
.btn--primaer:hover, .btn--primaer:focus-visible {
  background: var(--moos-dunkel);
  color: var(--creme);
}

.btn--sekundaer {
  background: transparent;
  color: var(--moos);
  border-color: var(--moos);
}
.btn--sekundaer:hover, .btn--sekundaer:focus-visible {
  background: var(--moos);
  color: var(--creme);
}

.btn--beere {
  background: var(--beere);
  color: var(--creme);
}
.btn--beere:hover, .btn--beere:focus-visible {
  background: var(--beere-dunkel);
  color: var(--creme);
}

.btn--ghost {
  background: rgba(249, 247, 240, 0.92);
  color: var(--moos);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--papier);
}

.btn--klein { padding: 0.6rem 1.2rem; font-size: 0.85rem; min-height: 40px; }

.btn-gruppe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--raum-sm);
}
.btn-gruppe--zentriert { justify-content: center; }

/* ---------- 6. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 247, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 141, 121, 0.06);
  transition: box-shadow var(--uebergang);
}
.site-header.scrolled { box-shadow: var(--schatten-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--raum-md);
  min-height: 68px;
}

.nav__marke {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
}
.nav__marke-haupt {
  font-family: var(--schrift-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--moos);
  letter-spacing: -0.005em;
}
.nav__marke-sub {
  font-family: var(--schrift-script);
  font-size: 1.1rem;
  color: var(--salbei);
  margin-top: -2px;
}
@media (min-width: 768px) {
  .nav { min-height: 84px; }
  .nav__marke-haupt { font-size: 1.6rem; }
  .nav__marke-sub { font-size: 1.25rem; }
}

.nav__liste {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--raum-lg);
  align-items: center;
}
.nav__liste li { margin: 0; }
.nav__link {
  position: relative;
  padding: var(--raum-xs) 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--moos-dunkel);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--beere);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--uebergang);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--moos); }

.nav__cta { display: none; }

.nav__toggle {
  position: relative;
  z-index: 101; /* immer über dem Overlay, damit Schließen sicher klickbar bleibt */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  color: var(--moos);
  transition: background-color var(--uebergang), color var(--uebergang), transform var(--uebergang);
}
.nav__toggle:hover { background: rgba(122, 141, 121, 0.06); }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
/* Im offenen Zustand: klar erkennbarer „Schließen"-Affordance */
.nav__toggle[aria-expanded="true"] {
  background: var(--moos);
  color: var(--creme);
  box-shadow: var(--schatten-sm);
}
.nav__toggle[aria-expanded="true"]:hover {
  background: var(--moos-dunkel);
}

/* Mobile-Menü als Overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--creme);
  z-index: 99;
  padding:
    calc(68px + var(--raum-md) + env(safe-area-inset-top, 0px))
    var(--raum-xl)
    calc(var(--raum-xl) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--raum-sm);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--uebergang), visibility 0s linear var(--uebergang);
}
.nav__overlay.open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--uebergang);
}
.nav__overlay-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--raum-xs);
}
.nav__overlay-liste a {
  display: block;
  font-family: var(--schrift-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--moos);
  padding-block: var(--raum-xs);
}
.nav__overlay-cta {
  margin-top: auto;
  padding-top: var(--raum-lg);
  border-top: 1px solid var(--grau-hell);
  display: flex;
  flex-direction: column;
  gap: var(--raum-sm);
}
.nav__overlay-cta .btn { width: 100%; }

/* Header bei offenem Menü deckend — kein Smudge beim Scrollen unter dem Header */
body.menu-offen .site-header {
  background: var(--creme);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--schatten-sm);
}

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__overlay { display: none; }
  .nav__liste { display: flex; }
  .nav__cta { display: inline-flex; }
}

body.menu-offen { overflow: hidden; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero--start {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: grid;
}
@media (min-width: 1024px) {
  .hero--start { min-height: calc(85vh - 84px); }
}

.hero__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(87, 104, 86, 0.35) 0%,
      rgba(87, 104, 86, 0.45) 35%,
      rgba(20, 35, 22, 0.82) 80%,
      rgba(20, 35, 22, 0.92) 100%);
}

.hero__inhalt {
  align-self: end;
  padding-block: var(--raum-3xl) var(--raum-2xl);
  color: var(--creme);
  max-width: 720px;
}
.hero__inhalt h1,
.hero__inhalt p { color: var(--creme); }
.hero__inhalt .lead { color: rgba(249, 247, 240, 0.95); }

/* Klare Lesbarkeit gegen variierende Bildhintergründe */
.hero__inhalt h1,
.hero__inhalt .lead,
.hero__inhalt .eyebrow,
.hero__slogan,
.hero__meta-item {
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero__slogan {
  display: block;
  font-family: var(--schrift-script);
  font-size: clamp(2.2rem, 6vw + 1rem, 4rem);
  color: var(--salbei-hell);
  margin-bottom: var(--raum-xs);
  line-height: 0.9;
  font-weight: 400;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--raum-md) var(--raum-lg);
  margin-top: var(--raum-lg);
  font-size: 0.9rem;
  color: rgba(249, 247, 240, 0.85);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: var(--raum-xs); }
.hero__meta-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.hero__cta {
  margin-top: var(--raum-xl);
}

/* Sekundärer Hero (kleinere Seiten) */
.hero--sub {
  min-height: 50vh;
  min-height: 50svh;
  max-height: 520px;
  display: grid;
  align-items: center;
}
.hero--sub .hero__inhalt {
  align-self: center;
  padding-block: var(--raum-3xl);
}
@media (min-width: 1024px) {
  .hero--sub { min-height: 56vh; }
}

/* Trauer-Variante — sehr ruhig */
.hero--trauer .hero__overlay {
  background: linear-gradient(180deg, rgba(38, 41, 33, 0.45) 0%, rgba(87, 104, 86, 0.75) 100%);
}
.hero--trauer .hero__slogan {
  color: var(--creme-warm);
  font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
}

/* ---------- 8. Live-Status (Heute geöffnet) ---------- */
.status-pille {
  display: inline-flex;
  align-items: center;
  gap: var(--raum-xs);
  padding: 0.35rem 0.85rem;
  background: rgba(249, 247, 240, 0.15);
  border: 1px solid rgba(249, 247, 240, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--creme);
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.status-pille__punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grau);
}
.status-pille--offen .status-pille__punkt {
  background: #7dc97d;
  box-shadow: 0 0 0 0 rgba(125, 201, 125, 0.6);
  animation: puls 2s infinite;
}
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(125, 201, 125, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(125, 201, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 201, 125, 0); }
}

/* ---------- 9. Karten-Grid (Anlässe / Leistungen) ---------- */
.kachel-grid {
  display: grid;
  gap: var(--raum-md);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .kachel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kachel-grid { grid-template-columns: repeat(4, 1fr); gap: var(--raum-lg); } }

.kachel {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--moos);
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--schatten-sm);
  transition: transform var(--uebergang-lang), box-shadow var(--uebergang-lang);
}
.kachel:hover, .kachel:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--schatten-md);
}

.kachel__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 600ms ease;
}
.kachel:hover .kachel__bild { transform: scale(1.06); }
.kachel__bild picture { display: block; width: 100%; height: 100%; }
.kachel__bild img { width: 100%; height: 100%; object-fit: cover; }

.kachel__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.18) 40%,
    rgba(20, 35, 22, 0.78) 75%,
    rgba(20, 35, 22, 0.92) 100%);
}

.kachel__inhalt {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--raum-lg);
  color: var(--creme);
}
.kachel__titel {
  font-family: var(--schrift-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--creme);
  line-height: 1.1;
  margin: 0 0 var(--raum-2xs);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.kachel__sub {
  font-size: 0.9rem;
  color: rgba(249, 247, 240, 0.95);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- 10. Zwei-Spalten-Sektion (Bild + Text) ---------- */
.split {
  display: grid;
  gap: var(--raum-xl);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--raum-3xl);
  }
  .split--gross {
    grid-template-columns: 1.2fr 1fr;
  }
  .split--invertiert .split__bild { order: 2; }
}

.split__bild {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--schatten-md);
  aspect-ratio: 4 / 5;
}
@media (min-width: 900px) {
  .split__bild { aspect-ratio: 4 / 5; }
}
.split__bild img { width: 100%; height: 100%; object-fit: cover; }

.split__text > :last-child { margin-bottom: 0; }

/* ---------- 11. Galerie ---------- */
.galerie {
  display: grid;
  gap: var(--raum-sm);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .galerie { grid-template-columns: repeat(2, 1fr); gap: var(--raum-md); } }
@media (min-width: 900px)  { .galerie { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .galerie { grid-template-columns: repeat(4, 1fr); } }

.galerie__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--grau-hell);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
}
.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.galerie__item:hover img,
.galerie__item:focus-visible img { transform: scale(1.05); }

.galerie__filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--raum-xs);
  justify-content: center;
  margin-bottom: var(--raum-xl);
}
.galerie__filter button {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  border: 1px solid var(--grau-hell);
  border-radius: var(--radius-pill);
  color: var(--grau);
  transition: all var(--uebergang);
}
.galerie__filter button:hover { color: var(--moos); border-color: var(--moos); }
.galerie__filter button[aria-pressed="true"] {
  background: var(--moos);
  color: var(--creme);
  border-color: var(--moos);
}

/* ---------- 12. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 26, 26, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--raum-md);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox__bild {
  max-width: 95vw;
  max-height: 90vh;
  max-height: 90svh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(249, 247, 240, 0.12);
  color: var(--creme);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background var(--uebergang);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(249, 247, 240, 0.25); }
.lightbox__close { top: var(--raum-md); right: var(--raum-md); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--raum-md); }
.lightbox__nav--next { right: var(--raum-md); }
.lightbox__close svg,
.lightbox__nav svg { width: 24px; height: 24px; }

.lightbox__caption {
  position: absolute;
  bottom: var(--raum-md);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--creme);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  max-width: calc(100% - 2 * var(--raum-md));
  text-align: center;
}

/* ---------- 13. Formulare ---------- */
.formular {
  display: grid;
  gap: var(--raum-md);
  max-width: var(--max-text);
}
.formular__zeile { display: grid; gap: var(--raum-md); }
@media (min-width: 600px) { .formular__zeile { grid-template-columns: 1fr 1fr; } }

.formular__feld {
  display: flex;
  flex-direction: column;
  gap: var(--raum-2xs);
}
.formular__feld label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--moos-dunkel);
  letter-spacing: 0.02em;
}
.formular__feld input,
.formular__feld textarea,
.formular__feld select {
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--moos-dunkel);
  background: var(--papier);
  border: 1.5px solid var(--grau-hell);
  border-radius: var(--radius-md);
  transition: border-color var(--uebergang), box-shadow var(--uebergang);
  min-height: 48px;
  font-family: var(--schrift-sans);
}
.formular__feld input:focus,
.formular__feld textarea:focus,
.formular__feld select:focus {
  outline: none;
  border-color: var(--salbei);
  box-shadow: 0 0 0 4px rgba(122, 144, 112, 0.15);
}
.formular__feld textarea { resize: vertical; min-height: 120px; }
.formular__hinweis {
  font-size: 0.8rem;
  color: var(--grau);
}

/* ---------- 14. Kontaktband ---------- */
.kontakt-band {
  display: grid;
  gap: var(--raum-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .kontakt-band { grid-template-columns: repeat(3, 1fr); gap: var(--raum-xl); }
}

.kontakt-band__item {
  display: flex;
  flex-direction: column;
  gap: var(--raum-xs);
}
.kontakt-band__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--salbei);
}
.kontakt-band__wert {
  font-family: var(--schrift-serif);
  font-size: 1.35rem;
  color: var(--moos);
  line-height: 1.3;
}
.kontakt-band__wert a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color var(--uebergang);
}
.kontakt-band__wert a:hover { border-color: var(--moos); }

/* ---------- 15. Öffnungszeiten-Tabelle ---------- */
.oeffnungszeiten {
  display: grid;
  gap: 0;
  background: var(--papier);
  border-radius: var(--radius-lg);
  padding: var(--raum-md);
  box-shadow: var(--schatten-sm);
}
@media (min-width: 600px) {
  .oeffnungszeiten { padding: var(--raum-lg) var(--raum-xl); }
}
.oeffnungszeiten__zeile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--raum-md);
  padding-block: var(--raum-sm);
  border-bottom: 1px solid var(--grau-hell);
  align-items: center;
}
.oeffnungszeiten__zeile:last-child { border-bottom: none; }
.oeffnungszeiten__zeile--heute {
  background: var(--creme-warm);
  margin-inline: calc(-1 * var(--raum-md));
  padding-inline: var(--raum-md);
  border-radius: var(--radius-md);
}
@media (min-width: 600px) {
  .oeffnungszeiten__zeile--heute {
    margin-inline: calc(-1 * var(--raum-md));
    padding-inline: var(--raum-md);
  }
}
.oeffnungszeiten__tag {
  font-weight: 500;
  color: var(--moos-dunkel);
}
.oeffnungszeiten__zeit {
  color: var(--grau);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.oeffnungszeiten__zeile--heute .oeffnungszeiten__tag {
  color: var(--moos);
  font-weight: 600;
}
.oeffnungszeiten__heute-hinweis {
  font-size: 0.7rem;
  color: var(--beere);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: var(--raum-xs);
}
.oeffnungszeiten__zeile--geschlossen .oeffnungszeiten__zeit { color: var(--grau); font-style: italic; }

/* ---------- 16. Maps 2-Klick-Lösung ---------- */
.karte-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grau-hell);
  aspect-ratio: 16 / 10;
}
@media (min-width: 768px) {
  .karte-wrapper { aspect-ratio: 16 / 9; }
}
.karte-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.karte-platzhalter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--raum-xl);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(122, 141, 121, 0.92), rgba(87, 104, 86, 0.95)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h100v100H0z' fill='%237a9070' opacity='.1'/%3E%3C/svg%3E");
  color: var(--creme);
  z-index: 2;
}
.karte-platzhalter h3 { color: var(--creme); margin-bottom: var(--raum-sm); }
.karte-platzhalter p { max-width: 380px; font-size: 0.9rem; color: rgba(249, 247, 240, 0.85); }
.karte-platzhalter--versteckt { display: none; }

/* ---------- 17. Footer ---------- */
.footer {
  background: var(--moos-dunkel);
  color: rgba(249, 247, 240, 0.85);
  padding-block: var(--raum-2xl) calc(var(--raum-xl) + var(--safe-bottom));
}
@media (min-width: 768px)  { .footer { padding-block: var(--raum-3xl) var(--raum-xl); } }

.footer__grid {
  display: grid;
  gap: var(--raum-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--raum-2xl); } }

.footer__marke-haupt {
  font-family: var(--schrift-serif);
  font-size: 1.7rem;
  color: var(--creme);
  margin-bottom: var(--raum-2xs);
}
.footer__marke-sub {
  font-family: var(--schrift-script);
  font-size: 1.4rem;
  color: var(--salbei-hell);
  margin-bottom: var(--raum-md);
  display: block;
}

.footer__titel {
  font-family: var(--schrift-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--salbei-hell);
  margin: 0 0 var(--raum-md);
}

.footer__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--raum-sm);
}
.footer__liste a { color: rgba(249, 247, 240, 0.85); }
.footer__liste a:hover { color: var(--creme); }

.footer__social {
  display: flex;
  gap: var(--raum-sm);
  margin-top: var(--raum-md);
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(249, 247, 240, 0.08);
  color: var(--creme);
  transition: background var(--uebergang);
}
.footer__social a:hover { background: rgba(249, 247, 240, 0.2); }
.footer__social svg { width: 20px; height: 20px; }

.footer__unten {
  margin-top: var(--raum-2xl);
  padding-top: var(--raum-lg);
  border-top: 1px solid rgba(249, 247, 240, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--raum-md);
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(249, 247, 240, 0.6);
}
.footer__unten a { color: rgba(249, 247, 240, 0.85); }

/* ---------- 18. Sticky Mobile Bottom-Bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--papier);
  border-top: 1px solid var(--grau-hell);
  box-shadow: 0 -4px 16px rgba(122, 141, 121, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: var(--safe-bottom);
}
.mobile-bar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--raum-sm) var(--raum-xs);
  min-height: 60px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--moos);
  text-align: center;
  border-right: 1px solid var(--grau-hell);
}
.mobile-bar__btn:last-child { border-right: none; }
.mobile-bar__btn:hover,
.mobile-bar__btn:active { background: var(--creme-warm); }
.mobile-bar__btn svg { width: 22px; height: 22px; }
.mobile-bar__btn--whatsapp { color: #25d366; }
.mobile-bar__btn--whatsapp svg { color: #25d366; }

@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  .footer { padding-bottom: var(--raum-xl); }
}

/* Padding für Mobile-Bar, damit nichts überdeckt wird */
@media (max-width: 1023px) {
  body { padding-bottom: calc(60px + var(--safe-bottom)); }
}

/* ---------- 19. Trauer-Seite Sonderbehandlung ---------- */
.trauer-modus {
  --moos: #576856;                  /* dunkleres Salbei für Gravität */
  --salbei: #8e9d8b;                /* neutralisiertes Salbei, kein Pfirsich */
  --beere: var(--grau);              /* Beere neutralisieren */
  --creme: #f3efe5;                  /* duller, weniger warm */
}
.trauer-modus .hero__slogan { color: var(--creme-warm); }
.trauer-modus .btn--beere {
  background: var(--moos);
  color: var(--creme);
}
.trauer-modus .btn--beere:hover { background: var(--moos-dunkel); }

.trauer-telefon-block {
  background: var(--creme-warm);
  border-left: 4px solid var(--salbei);
  padding: var(--raum-xl);
  border-radius: var(--radius-lg);
  text-align: center;
}
.trauer-telefon-block__nummer {
  display: block;
  font-family: var(--schrift-serif);
  font-size: clamp(1.8rem, 4vw + 1rem, 2.8rem);
  color: var(--moos);
  margin: var(--raum-sm) 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- 20. Vertrauen / Werte (Flyer-Stichworte) ---------- */
.werte {
  display: grid;
  gap: var(--raum-lg);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .werte { grid-template-columns: repeat(5, 1fr); } }

.werte__item {
  text-align: center;
  padding: var(--raum-lg) var(--raum-xs);
}
.werte__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--raum-sm);
  color: var(--salbei);
}
.werte__titel {
  font-family: var(--schrift-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--moos);
  margin: 0;
}

/* ---------- 21. Galerie-Preview auf Startseite ---------- */
.galerie-preview {
  display: grid;
  gap: var(--raum-sm);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px)  { .galerie-preview { grid-template-columns: repeat(3, 1fr); gap: var(--raum-md); } }
@media (min-width: 900px)  { .galerie-preview { grid-template-columns: repeat(6, 1fr); } }

.galerie-preview__item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  background: var(--grau-hell);
}
.galerie-preview__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.galerie-preview__item:hover img { transform: scale(1.06); }

/* ---------- 22. Reveal-on-Scroll Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 23. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mt-0  { margin-top: 0 !important; }
.mt-md { margin-top: var(--raum-md); }
.mt-lg { margin-top: var(--raum-lg); }
.mt-xl { margin-top: var(--raum-xl); }
.mb-0  { margin-bottom: 0 !important; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--raum-sm); }
.gap-md { gap: var(--raum-md); }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
