/* ═══════════════════════════════════════════════════════════════════
   BESTATTUNGSVERFÜGUNG — Base Stylesheet
   Shared across all pages. Edit here, reflects everywhere.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --accent:       #704861;
  --accent-deep:  #3d2235;
  --accent-soft:  #a07891;
  --warm:         #f0ebe4;
  --warm-2:       #e5ddd4;
  --paper:        #f8f4ef;
  --ink:          #1e1610;
  --ink-2:        #3a2a1e;
  --muted:        #7a6a58;
  --line:         rgba(30,22,16,.11);
  --line-2:       rgba(30,22,16,.06);

  --t-gestaltung-1: #e8b49a;
  --t-gestaltung-2: #c17555;
  --t-gestaltung-3: #6b2e18;
  --t-grabpflege-1: #b5c9a0;
  --t-grabpflege-2: #6b9464;
  --t-grabpflege-3: #2d4730;
  --t-grabmal-1:    #c4b9a8;
  --t-grabmal-2:    #8a7a68;
  --t-grabmal-3:    #3a3028;

  --ease-spring:  cubic-bezier(.2,.8,.2,1);
  --ease-out:     cubic-bezier(.2,.7,.2,1);
  --ease-in-out:  cubic-bezier(.6,.1,.4,.9);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  background: var(--warm);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a    { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; }
img  { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

/* ─── Typography Utilities ─── */
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; }
.mono  { font-family: "Geist Mono", ui-monospace, monospace; font-weight: 400; }

/* ─── Layout ─── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 680px) { .wrap { padding: 0 20px; } }

/* ─── Mouse Glow ─── */
.mouse-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(112,72,97,.09) 0%, transparent 70%);
  will-change: transform;
  transition: opacity .6s;
}
@media (pointer: coarse) { .mouse-glow { display: none; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 12px 24px -12px rgba(0,0,0,.4);
}
.btn-primary:hover  { background: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover   { border-color: var(--ink); transform: translateY(-2px); }
.btn-on-dark       { background: var(--paper); color: var(--ink); }
.btn-on-dark:hover { background: #fff; color: var(--accent); transform: translateY(-2px); }
.btn-ghost-dark    { border: 1px solid rgba(255,255,255,.2); color: var(--paper); }
.btn-ghost-dark:hover { border-color: #fff; transform: translateY(-2px); }
.btn .arr          { transition: transform .3s; display: inline-block; }
.btn:hover .arr    { transform: translateX(3px); }

/* Magnetic button wrapper */
.mag { position: relative; display: inline-block; will-change: transform; }
.mag .btn { transition: transform .5s var(--ease-spring), background .4s, color .4s, box-shadow .4s, border-color .4s; }

/* ─── Section Heads ─── */
.section-head {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 60px; align-items: end; margin-bottom: 64px;
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

.section-eye {
  font-family: "Geist Mono", monospace; font-size: 11px;
  letter-spacing: .18em; color: var(--accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.section-eye::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

.section-h {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.05; letter-spacing: -.02em; margin-top: 18px; text-wrap: balance;
}
.section-h em { font-style: italic; color: var(--accent); }
.section-sub { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 540px; }

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

.mask-reveal { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.06; }
.mask-reveal > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-spring); }
.mask-reveal.in > span { transform: translateY(0); }

/* ─── Marquee ─── */
.marquee {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 80px; align-items: center;
  width: max-content; padding: 24px 0;
  animation: marq 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-item {
  font-family: "Instrument Serif", serif; font-size: 26px;
  letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap;
  display: flex; align-items: center; gap: 14px;
  opacity: .85; transition: opacity .2s, color .2s;
}
.marquee-item:hover { color: var(--accent); opacity: 1; }
.marquee-item .city {
  font-family: "Geist Mono", monospace; font-size: 11px;
  letter-spacing: .14em; color: var(--muted); text-transform: uppercase;
}

/* ─── Why Grid ─── */
.why { padding: 120px 0; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 48px;
}
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; } }

.why-cell {
  background: var(--paper); padding: 36px 32px;
  min-height: 240px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative;
  overflow: hidden; transition: background .35s;
}
.why-cell:hover { background: color-mix(in srgb, var(--accent) 5%, var(--paper)); }
.why-cell::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.why-cell:hover::after { transform: scaleX(1); }
.why-ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--warm));
  color: var(--accent); display: grid; place-items: center; margin-bottom: auto;
}
.why-h { font-family: "Instrument Serif", serif; font-size: 24px; line-height: 1.15; margin: 24px 0 8px; letter-spacing: -.01em; }
.why-p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ─── Theme Sections ─── */
.theme-section { padding: 120px 0; position: relative; overflow: hidden; }
.theme-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .theme-grid { grid-template-columns: 1fr; gap: 48px; } }

.theme-patch {
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; margin-bottom: 18px;
}
.theme-patch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.theme-h { font-family: "Instrument Serif", serif; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 24px; text-wrap: balance; }
.theme-h em { font-style: italic; }
.theme-p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 18px; }

.gestaltung-bg { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--t-gestaltung-1) 10%, var(--warm)) 50%, transparent); }
.gestaltung-bg .theme-patch { background: color-mix(in srgb, var(--t-gestaltung-2) 12%, transparent); color: var(--t-gestaltung-3); }
.gestaltung-bg .theme-patch::before { background: var(--t-gestaltung-2); }
.gestaltung-bg .theme-h em { color: var(--t-gestaltung-2); }

.grabpflege-bg { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--t-grabpflege-1) 12%, var(--warm)) 50%, transparent); }
.grabpflege-bg .theme-patch { background: color-mix(in srgb, var(--t-grabpflege-2) 12%, transparent); color: var(--t-grabpflege-3); }
.grabpflege-bg .theme-patch::before { background: var(--t-grabpflege-2); }
.grabpflege-bg .theme-h em { color: var(--t-grabpflege-2); }

.grabmal-bg { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--t-grabmal-1) 12%, var(--warm)) 50%, transparent); }
.grabmal-bg .theme-patch { background: color-mix(in srgb, var(--t-grabmal-2) 12%, transparent); color: var(--t-grabmal-3); }
.grabmal-bg .theme-patch::before { background: var(--t-grabmal-2); }
.grabmal-bg .theme-h em { color: var(--t-grabmal-2); }

/* Image mosaic */
.image-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; }
.image-mosaic .ic { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(46,30,40,.4); }
.image-mosaic .ic.tall { grid-row: 1 / span 2; }
.image-mosaic .ic .ph-lbl {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  color: #fff; font-family: "Geist Mono", monospace; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  background: rgba(0,0,0,.32); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 999px;
}
.gm-1 { background: url('https://images.unsplash.com/photo-1524777313293-86d2ab467344?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.gm-2 { background: url('https://images.unsplash.com/photo-1602693875034-52c6b2e79785?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.gm-3 { background: url('https://images.unsplash.com/photo-1612052975847-270c7a668ce1?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.gp-1 { background: url('https://images.unsplash.com/photo-1776272108975-8984113a3cc9?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.gp-2 { background: url('https://images.unsplash.com/photo-1776270126850-9b28a173d6c0?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.gp-3 { background: url('https://images.unsplash.com/photo-1750490462355-aa991ed89eac?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.gr-1 { background: url('https://images.unsplash.com/photo-1766853297163-422e0f4076ec?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.gr-2 { background: url('https://images.unsplash.com/photo-1762052123336-d59c8dcb4bd5?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.gr-3 { background: url('https://images.unsplash.com/photo-1765750067630-ccd27635d546?auto=format&fit=crop&w=600&q=85') center/cover no-repeat; }
.ic .orn { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .6; }
.ic .orn svg { width: 100%; height: 100%; }

/* ─── CTA Band ─── */
.cta-band {
  background: var(--ink); color: var(--paper);
  padding: 90px 0 110px; text-align: center;
  position: relative; overflow: hidden;
  border-radius: 24px 24px 0 0; margin-top: 60px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 50%);
}
.cta-band-inner { position: relative; }
.cta-h {
  font-family: "Instrument Serif", serif;
  font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05;
  letter-spacing: -.025em; text-wrap: balance; max-width: 840px; margin: 0 auto;
}
.cta-h em { font-style: italic; color: var(--accent-soft); }
.cta-p { margin: 20px auto 0; font-size: 17px; color: #c8bfb4; max-width: 560px; }
.cta-row { margin-top: 36px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── Stats ─── */
.stats { padding: 80px 0 120px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.stat .v {
  font-family: "Instrument Serif", serif;
  font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -.03em; color: var(--ink);
}
.stat .v em { font-style: italic; color: var(--accent); }
.stat .l {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase;
}
.stat .d { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 220px; }

/* ─── Partners Dark Section ─── */
.partners-dark {
  padding: 120px 0; background: var(--ink); color: var(--paper);
  border-radius: 24px 24px 0 0; margin-top: 60px; position: relative; overflow: hidden;
}
.partners-dark::before {
  content: ""; position: absolute; inset: auto -10% -40% auto;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 36%, transparent), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.partners-dark .section-eye { color: var(--accent-soft); }
.partners-dark .section-eye::before { background: var(--accent-soft); }
.partners-dark .section-h { color: var(--paper); }
.partners-dark .section-sub { color: #bfb1b9; }

.partner-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.08);
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 880px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
.partner-card {
  background: var(--ink); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 170px; justify-content: space-between;
  position: relative; transition: background .3s;
}
.partner-card:hover { background: #1e1810; }
.partner-card-name { font-family: "Instrument Serif", serif; font-size: 22px; line-height: 1.1; letter-spacing: -.01em; }
.partner-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Geist Mono", monospace; font-size: 11px;
  letter-spacing: .1em; color: #a09098; text-transform: uppercase;
}
.partner-card-meta .arr { transform: rotate(-45deg); transition: transform .3s, color .3s; }
.partner-card:hover .partner-card-meta .arr { transform: rotate(0); color: var(--accent-soft); }

/* ─── Counters Row ─── */
.counters {
  margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; overflow: hidden;
}
@media (max-width: 780px) { .counters { grid-template-columns: repeat(2, 1fr); } }
.counter {
  background: rgba(30,22,16,.35); backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%); padding: 16px 22px;
  display: flex; flex-direction: column; gap: 6px; transition: background .35s;
}
.counter:hover { background: rgba(30,22,16,.50); }
.counter .num { font-family: "Instrument Serif", serif; font-size: 42px; line-height: 1; color: #fff; letter-spacing: -.02em; }
.counter .num .suffix { font-size: .55em; color: #fff; margin-left: 2px; vertical-align: top; }
.counter .lbl { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.55); text-transform: uppercase; }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
