/* =================================================================
   Bestattungen Römer – Stylesheet
   Würdevolles, ruhiges Design · responsiv · barrierearm
   ================================================================= */

:root {
  /* Farben – warme, ruhige, würdevolle Palette */
  --color-bg:        #faf8f5;   /* warmes Off-White */
  --color-surface:   #ffffff;
  --color-surface-2: #f1ede6;   /* sanftes Beige */
  --color-text:      #2e2b27;   /* warmes Dunkelbraun/Grau */
  --color-text-soft: #5c574f;
  --color-primary:   #4a5d52;   /* gedämpftes Salbeigrün */
  --color-primary-d: #374a40;
  --color-accent:    #a98b5d;   /* warmes Bronze/Gold */
  --color-accent-d:  #8d7149;
  --color-line:      #e3ddd3;

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

  /* Maße */
  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(46, 43, 39, 0.08);
  --shadow-lg: 0 14px 40px rgba(46, 43, 39, 0.12);
}

/* ----------------------------- Reset ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent-d); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 .5em;
  letter-spacing: .3px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }

/* --------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--color-surface-2); }
.lead { font-size: 1.22rem; color: var(--color-text-soft); max-width: 60ch; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent-d);
  margin-bottom: .6rem;
}
.section-head { max-width: 62ch; margin: 0 auto 48px; text-align: center; }

/* --------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  padding: .85em 1.6em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-d); color: #fff; box-shadow: var(--shadow); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-d); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-line); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------- Header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand__logo { height: 48px; width: auto; display: block; }
@media (max-width: 720px) { .brand__logo { height: 40px; } }
@media (max-width: 380px) { .brand__logo { height: 34px; } }
.brand__mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600;
}
.brand__name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--color-text); }
.brand__sub { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--color-text-soft); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--color-text); font-weight: 500; font-size: 1rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--color-accent); transition: width .2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--color-primary); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-cta { display: flex; align-items: center; gap: 9px; }
.phone-cta__icon { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--color-surface-2); display: grid; place-items: center; }
.phone-cta__num { font-weight: 700; font-size: 1.05rem; color: var(--color-text); white-space: nowrap; }
.phone-cta__lbl { display: block; font-size: .72rem; color: var(--color-text-soft); }

/* Burger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; color: var(--color-text);
}
.nav-toggle svg { width: 100%; height: 100%; }

/* --------------------------- Hero ------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(40,52,45,.42), rgba(40,52,45,.58)),
    url("../images/hero.svg") center/cover no-repeat,
    var(--color-primary-d);
  color: #fff;
  text-align: center;
}
.hero__inner { padding: 110px 0 120px; padding-inline: 22px; max-width: 760px; margin: 0 auto; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #e8dcc4; }
.hero p { color: #f3efe9; font-size: 1.25rem; margin: 1rem auto 1.8rem; max-width: 52ch; }
.hero .btn-row { justify-content: center; }

.hero--page { text-align: center; }
.hero--page .hero__inner { padding: 80px 0 86px; padding-inline: 22px; }

/* ---------------------------- Cards ----------------------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--color-surface-2); color: var(--color-primary);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--color-text-soft); margin-bottom: 0; }

/* ------------------------- Split / Media ------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.media-box {
  border-radius: var(--radius);
  background: var(--color-surface-2);
  min-height: 340px;
  display: grid; place-items: center;
  color: var(--color-primary);
  box-shadow: var(--shadow);
}
.media-box svg { width: 96px; height: 96px; opacity: .55; }

/* --------------------------- Lists ------------------------------ */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--color-text-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* -------------------------- Statements -------------------------- */
.quote {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 24ch;
  margin: 0 auto;
}
.stats { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 2.8rem; color: var(--color-accent-d); line-height: 1; }
.stat__lbl { font-size: .95rem; color: var(--color-text-soft); }

/* ----------------------------- CTA ------------------------------ */
.cta-band { background: var(--color-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e7ece8; max-width: 56ch; margin: 0 auto 1.6rem; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------------------------- Contact --------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic {
  width: 44px; height: 44px; flex: none; border-radius: 10px;
  background: var(--color-surface-2); color: var(--color-primary);
  display: grid; place-items: center;
}
.info-list .ic svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--color-text); }
.info-list span, .info-list a { color: var(--color-text-soft); }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
form input, form textarea, form select {
  width: 100%; font: inherit; color: var(--color-text);
  padding: 12px 14px; border: 1.5px solid var(--color-line); border-radius: 8px;
  background: var(--color-surface); transition: border-color .2s ease;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--color-primary); }
form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--color-text-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: auto; margin-top: 5px; }

.form-success {
  background: #eef3ee; border: 1px solid #c3d6c5; border-left: 4px solid var(--color-primary);
  color: var(--color-text); border-radius: 8px; padding: 16px 18px; line-height: 1.6;
}
.form-success strong { display: block; margin-bottom: .25rem; color: var(--color-primary-d); }
.form-error {
  background: #fbf0ec; border: 1px solid #e7c3b6; border-left: 4px solid #b5562f;
  color: #7a3a22; border-radius: 8px; padding: 14px 18px; margin-bottom: 18px;
}
.form-error a { color: inherit; }

.map-card {
  display: flex; gap: 28px; align-items: center;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.map-card__pin {
  width: 96px; height: 96px; flex: none; border-radius: 50%;
  background: var(--color-surface-2); color: var(--color-primary);
  display: grid; place-items: center;
}
.map-card__pin svg { width: 48px; height: 48px; }
.map-card__body h3 { margin: .2rem 0 .5rem; }
.map-card__body p { color: var(--color-text-soft); }
@media (max-width: 600px) {
  .map-card { flex-direction: column; text-align: center; padding: 26px; }
}

/* --------------------------- Notruf-Bar ------------------------- */
.alert-band {
  background: var(--color-accent-d); color: #fff;
  text-align: center; font-size: .95rem; padding: 9px 0;
}
.alert-band a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------------------------- Footer ---------------------------- */
.site-footer { background: var(--color-text); color: #d8d2c8; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #d8d2c8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #b8b1a5; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: #b8b1a5;
}
.footer-bottom a { color: #b8b1a5; }

/* ----------------------------- FAQ ------------------------------ */
.faq {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 4px 22px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; position: relative;
  font-family: var(--font-head); font-size: 1.25rem; color: var(--color-text); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; line-height: 1; color: var(--color-accent-d);
  transition: transform .2s ease;
}
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; margin: 0; color: var(--color-text-soft); }

/* ------------------- Trauerdruck-Vorlagen ----------------------- */
.spruch {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); height: 100%;
}
.spruch p {
  font-family: var(--font-head); font-size: 1.22rem; font-style: italic;
  line-height: 1.45; color: var(--color-text); margin: 0 0 .7rem;
}
.spruch .quelle {
  font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-accent-d);
}
.font-sample {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.font-sample .demo { font-size: 2rem; color: var(--color-text); line-height: 1.2; }
.font-sample .label { margin-top: 12px; font-size: .9rem; color: var(--color-text-soft); }
.tmpl {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 320px;
}
.tmpl svg { width: 40px; height: 40px; color: var(--color-accent-d); margin-bottom: 6px; }
.tmpl .nm { font-family: var(--font-head); font-size: 1.5rem; color: var(--color-text); }
.tmpl .dt { color: var(--color-text-soft); font-size: .9rem; }
.tmpl .vs { font-family: var(--font-head); font-style: italic; color: var(--color-text-soft); margin-top: 8px; max-width: 22ch; }
.tmpl .cap { margin-top: 14px; font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-accent-d); }

/* --------------------------- Prose ------------------------------ */
.prose { max-width: 75ch; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; color: var(--color-text-soft); }
.prose li { margin-bottom: .4em; }

/* ------------------------- Responsiv ---------------------------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }

  /* Mobile-Navigation */
  /* Wichtig: backdrop-filter am Header würde das fixierte Menü einsperren –
     daher auf dem Handy deaktivieren, damit das Menü volle Höhe bekommt. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 6px;
    background: var(--color-surface); padding: 88px 28px 28px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s ease;
    z-index: 90;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; padding: 8px 0; width: 100%; }
  .nav a::after { display: none; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(46,43,39,.45);
    opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 80;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .header-cta .phone-cta__num, .header-cta .phone-cta__lbl { display: none; }
}

@media (max-width: 520px) {
  .grid--3, .grid--2, .footer-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero .btn-row .btn { width: 100%; }
}

/* Sanftes Einblenden */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
/* ----------------------- WhatsApp-Button ------------------------ */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: transform .15s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: scale(1.07); color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .32); }
.wa-fab svg { width: 32px; height: 32px; }
@media (max-width: 720px) { .wa-fab { width: 54px; height: 54px; right: 14px; bottom: 14px; } }

/* --------------------------- Drucken ---------------------------- */
@media print {
  .alert-band, .site-header, .nav-backdrop, .nav-toggle, .wa-fab,
  .cta-band, .map-card, .site-footer, .hero .btn-row, form { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .hero { background: none !important; color: #000; }
  .hero h1, .hero .eyebrow, .hero p { color: #000 !important; }
  .section { padding: 14pt 0; }
  a { color: #000; text-decoration: underline; }
  .card, .media-box { box-shadow: none; border-color: #999; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
