/* =============================================================
   Bestattungshaus W.Krüger GmbH · Potsdam
   Stylesheet – "Ruhig & würdevoll" Designsystem
   Akzent: Dämmerblau / Blaugrau auf warmem Creme
   Bootstrap 5 + eigene Komponenten
   ============================================================= */

:root {
  /* Farben */
  --cream:        #faf8f4;
  --cream-deep:   #f1ece3;
  --cream-card:   #ffffff;
  --accent:       #4a626f;
  --accent-dark:  #38525f;
  --accent-darker:#2a414c;
  --accent-light: #7d97a3;
  --accent-tint:  #e4ebee;
  --ink:          #2c3236;
  --ink-soft:     #555f64;
  --ink-mute:     #868f94;
  --taupe:        #b3a489;
  --taupe-light:  #d3c7b2;
  --line:         rgba(44, 50, 54, .12);
  --line-soft:    rgba(44, 50, 54, .07);

  /* Typografie */
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius & Schatten */
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 18px rgba(40, 52, 60, .06);
  --shadow:    0 14px 40px rgba(40, 52, 60, .10);
  --shadow-lg: 0 28px 70px rgba(40, 52, 60, .16);

  /* Layout */
  --nav-h: 84px;
}

/* ---------- Grundlagen ---------- */
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  font-size: 1.04rem;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-head {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: .2px;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

p { color: var(--ink-soft); }

a { color: var(--accent-dark); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent); }

.lead-serif {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

img { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Hilfsklassen ---------- */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-sm { padding: clamp(48px, 6vw, 84px) 0; }

.bg-cream       { background-color: var(--cream) !important; }
.bg-cream-deep  { background-color: var(--cream-deep) !important; }
.bg-accent-tint { background-color: var(--accent-tint) !important; }
.text-accent    { color: var(--accent-dark) !important; }
.text-ink       { color: var(--ink) !important; }
.text-mute2     { color: var(--ink-mute) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--taupe);
}
.eyebrow.center::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--taupe);
}

.section-title { margin-bottom: 1.1rem; }
.section-intro { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 50px;
  padding: .8rem 1.9rem;
  transition: all .3s cubic-bezier(.21, .6, .35, 1);
  border-width: 1.5px;
}
.btn-accent {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-darker);
  border-color: var(--accent-darker);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(56, 82, 95, .35);
}
.btn-outline-accent {
  background: transparent;
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}
.btn-outline-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-light-ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
  backdrop-filter: blur(3px);
}
.btn-light-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.btn-cream:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: .95rem 2.3rem; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.link-arrow i { transition: transform .25s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.navbar {
  padding: .9rem 0;
  transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(250, 248, 244, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px rgba(40, 52, 60, .08);
  padding: .55rem 0;
}

.navbar-brand { display: flex; align-items: center; gap: .7rem; padding: 0; }
.brand-mark {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-dark);
  transition: background .35s ease;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.42rem;
  color: #fff;
  letter-spacing: .3px;
  transition: color .35s ease;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  margin-top: 4px;
  transition: color .35s ease;
}
.navbar.scrolled .brand-name { color: var(--ink); }
.navbar.scrolled .brand-sub  { color: var(--accent-dark); }

.navbar .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255, 255, 255, .92);
  margin: 0 .15rem;
  padding: .5rem .85rem !important;
  position: relative;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .25rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar.scrolled .nav-link { color: var(--ink); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--accent-dark); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-left: .9rem;
}
.nav-phone .btn { padding: .6rem 1.3rem; font-size: .92rem; white-space: nowrap; }

.navbar-toggler { border: none; padding: .4rem; color: #fff; }
.navbar-toggler:focus { box-shadow: none; }
.navbar.scrolled .navbar-toggler { color: var(--ink); }
.navbar-toggler i { font-size: 1.7rem; }

/* Mobile-Menü */
@media (max-width: 991.98px) {
  .navbar { background: rgba(250, 248, 244, .97); backdrop-filter: blur(10px); }
  .navbar .brand-name { color: var(--ink); }
  .navbar .brand-sub  { color: var(--accent-dark); }
  .navbar .navbar-toggler { color: var(--ink); }
  .navbar-collapse {
    background: #fff;
    margin-top: .8rem;
    border-radius: var(--radius);
    padding: 1rem 1.2rem 1.4rem;
    box-shadow: var(--shadow);
  }
  .navbar .nav-link { color: var(--ink) !important; padding: .7rem .2rem !important; }
  .navbar .nav-link::after { display: none; }
  .nav-phone { margin: .8rem 0 0; }
  .nav-phone .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; max-height: 920px; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 100%; }
.hero .carousel-item {
  background-size: cover;
  background-position: center;
}
.hero .carousel-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 32, 38, .55) 0%, rgba(24, 32, 38, .30) 45%, rgba(24, 32, 38, .66) 100%);
}
.hero-slide-1 { background-image: url("../img/hero-1.jpg"); }
.hero-slide-2 { background-image: url("../img/hero-2.jpg"); }
.hero-slide-3 { background-image: url("../img/hero-3.jpg"); }

.hero-content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center;
  text-align: center;
  color: #fff;
}
.hero-content .eyebrow { color: #fff; }
.hero-content .eyebrow::before,
.hero-content .eyebrow::after { background: rgba(255, 255, 255, .7); }
.hero-title { color: #fff; font-weight: 500; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-lead {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 620px; margin: 1.4rem auto 2.2rem;
}
.hero .carousel-indicators { bottom: 1.6rem; z-index: 6; }
.hero .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .55);
  margin: 0 5px;
}
.hero .carousel-indicators .active { background: #fff; width: 28px; border-radius: 6px; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 6; color: rgba(255, 255, 255, .85);
  font-size: 1.5rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Inner-Page Banner ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 70px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 32, 38, .62) 0%, rgba(24, 32, 38, .48) 100%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: #fff; justify-content: center; }
.page-hero .eyebrow::before,
.page-hero .eyebrow::after { background: rgba(255, 255, 255, .7); }
.breadcrumbs {
  font-size: .85rem; letter-spacing: .03em;
  color: rgba(255, 255, 255, .85);
  margin-top: 1rem;
}
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { margin: 0 .5rem; opacity: .6; }

/* ---------- Karten / Service ---------- */
.feature-card {
  background: var(--cream-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .4s cubic-bezier(.21, .6, .35, 1), box-shadow .4s ease;
  border: 1px solid var(--line-soft);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.feature-card .card-img-wrap { overflow: hidden; height: 230px; }
.feature-card .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.21, .6, .35, 1);
}
.feature-card:hover .card-img-wrap img { transform: scale(1.06); }
.feature-card .card-body { padding: 1.7rem 1.7rem 1.9rem; }
.feature-card h3 { margin-bottom: .6rem; }
.feature-card p { font-size: .98rem; margin-bottom: 1.1rem; }

/* Icon-Feature (ohne Bild) */
.icon-box { text-align: center; padding: 1rem; }
.icon-circle {
  width: 76px; height: 76px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 1.9rem;
  transition: all .35s ease;
}
.icon-box:hover .icon-circle { background: var(--accent-dark); color: #fff; transform: translateY(-4px); }
.icon-box h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.icon-box p { font-size: .96rem; }

/* ---------- Bild + Text Split ---------- */
.media-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}
.media-img.tall { aspect-ratio: 4 / 5; }
.media-img.wide { aspect-ratio: 5 / 4; }

.stat-frame {
  position: relative;
}
.stat-badge {
  position: absolute;
  background: var(--accent-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-badge .num { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: #fff; }
.stat-badge .lbl { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin-top: .35rem; }
.stat-badge.br { right: -18px; bottom: -22px; }

/* Aufzählungen mit Häkchen */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .85rem;
  color: var(--ink-soft);
}
.check-list li i {
  position: absolute; left: 0; top: .28rem;
  color: var(--accent);
  font-size: 1.05rem;
}

/* Ablauf / Schritte */
.step {
  display: flex; gap: 1.3rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step-num {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream-deep);
  color: var(--accent-dark);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
}
.step h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.step p { margin-bottom: 0; font-size: .98rem; }

/* ---------- Quote-Band ---------- */
.quote-band {
  position: relative;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  color: var(--ink);
  text-align: center;
}
.quote-band::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(250, 248, 244, .84);
}
.quote-band > .container { position: relative; z-index: 2; }
.quote-mark {
  font-family: var(--font-head);
  font-size: 5rem; line-height: .5; color: var(--taupe);
  display: block; margin-bottom: .4rem;
}
.quote-text {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 500; line-height: 1.35;
  max-width: 880px; margin: 0 auto;
  color: var(--ink);
}
.quote-author { margin-top: 1.4rem; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }

/* ---------- Memorial / CTA-Band (dunkel) ---------- */
.cta-band {
  position: relative;
  background-size: cover; background-position: center;
  color: #fff; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 25, 30, .80), rgba(18, 25, 30, .88));
}
.cta-band > .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* Notfall-Streifen */
.emergency-strip {
  background: var(--accent-dark);
  color: #fff;
}
.emergency-strip a { color: #fff; }
.emergency-strip .phone-big {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600; color: #fff;
}

/* ---------- Kontakt / Standort ---------- */
.branch-card {
  background: var(--cream-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--line-soft);
  transition: box-shadow .35s ease, transform .35s ease;
}
.branch-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.branch-map { height: 230px; width: 100%; border: 0; display: block; filter: saturate(.9); }
.branch-map.tall { height: 380px; }
.branch-body { padding: 1.6rem 1.7rem 1.8rem; }
.branch-body h3 { font-size: 1.45rem; margin-bottom: .9rem; }
.branch-list { list-style: none; padding: 0; margin: 0; }
.branch-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .35rem 0; color: var(--ink-soft); font-size: .98rem;
}
.branch-list li i { color: var(--accent-dark); font-size: 1.05rem; margin-top: .25rem; flex: 0 0 18px; }
.branch-list a { color: var(--ink-soft); }
.branch-list a:hover { color: var(--accent-dark); }
.branch-tag {
  display: inline-block;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-dark);
  background: var(--accent-tint);
  padding: .3rem .8rem; border-radius: 50px;
  margin-bottom: .9rem;
}

/* Info-/Kontaktkacheln */
.info-tile {
  background: var(--cream-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.info-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-tile .icon-circle { margin-bottom: 1rem; }
.info-tile h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.info-tile a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #232a2e;
  color: rgba(255, 255, 255, .72);
  padding-top: 84px;
}
.site-footer h5 {
  color: #fff; font-family: var(--font-body);
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 1.4rem;
}
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; font-size: 1.7rem; }
.footer-brand .brand-sub { color: var(--taupe-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .7rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; font-size: .92rem; }
.footer-contact li i { color: var(--accent-light); margin-top: .2rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 64px; padding: 26px 0;
  font-size: .85rem;
}
.footer-bottom a { margin-left: 1.2rem; }

/* ---------- Floating-Anruf-Button ---------- */
.fab-call {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 1040;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(56, 82, 95, .5);
  animation: pulse 2.6s infinite;
}
.fab-call:hover { color: #fff; background: var(--accent-darker); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 98, 111, .55); }
  70% { box-shadow: 0 0 0 18px rgba(74, 98, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 98, 111, 0); }
}
@media (max-width: 991.98px) { .fab-call { display: grid; } }

/* ---------- Reveal-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.21, .6, .35, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue, .fab-call { animation: none; }
}

/* ---------- Diverses ---------- */
.text-block p { margin-bottom: 1.15rem; }
.signature {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--accent-dark);
  line-height: 1;
}
.prose-page h2 { margin-top: 2.4rem; margin-bottom: 1rem; }
.prose-page h2:first-child { margin-top: 0; }
.prose-page h3 { margin-top: 1.6rem; margin-bottom: .7rem; font-size: 1.35rem; }
.prose-page p, .prose-page li { color: var(--ink-soft); }
.prose-page address { font-style: normal; line-height: 1.9; color: var(--ink-soft); }

/* ---------- Bildnachweis (ausklappbar) ---------- */
details.credits {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-card);
  box-shadow: var(--shadow-sm);
  margin: 1.2rem 0 .4rem;
  overflow: hidden;
}
details.credits > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .6rem;
}
details.credits > summary::-webkit-details-marker { display: none; }
details.credits > summary .bi { color: var(--accent-dark); transition: transform .25s ease; }
details.credits[open] > summary .bi { transform: rotate(180deg); }
details.credits > summary:hover { color: var(--accent-dark); }
.credits-list {
  list-style: none;
  margin: 0;
  padding: .2rem 1.3rem 1.3rem;
  border-top: 1px solid var(--line-soft);
}
.credits-list li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
  color: var(--ink-soft);
}
.credits-list li:last-child { border-bottom: 0; }
.credits-list .cr-file {
  display: inline-block;
  min-width: 13.5rem;
  font-weight: 600;
  color: var(--ink);
}
.credits-list a { font-weight: 600; }
@media (max-width: 575.98px) {
  .credits-list .cr-file { min-width: 0; display: block; margin-bottom: .15rem; }
}
