/* =============================================================
   Stumpf Bestattungen – Stylesheet
   Keine externen Ressourcen, DSGVO-konform, responsives Layout
   ============================================================= */

/* ── Grundlegende Variablen ── */
:root {
  --color-bg:           #FFFFFF;
  --color-bg-alt:       #F7F7F7;
  --color-text:         #2C2C2C;
  --color-text-muted:   #6B6B6B;
  --color-heading:      #4A4A4A;
  --color-accent:       #4A4A4A;
  --color-border:       #D4CFC9;
  --color-footer-bg:    #3A3A3A;
  --color-footer-text:  #CCCCCC;
  --color-link:         #4A4A4A;
  --color-link-hover:   #2C2C2C;
  --font-stack:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                        "Helvetica Neue", Arial, sans-serif;
  --max-width:          900px;
  --section-padding:    4rem 1.5rem;
  --border-radius:      4px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-link);
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Skip-Navigation (Barrierefreiheit) ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-size: 0.9rem;
}

.skip-nav:focus {
  top: 0;
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Überschriften ── */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

/* ═══════════════════════════════════════════
   HEADER & NAVIGATION
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  height: 56px;
  width: auto;
}

/* Hauptnavigation */
.site-nav ul {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-accent);
}

/* Hamburger-Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  background-color: var(--color-bg-alt);
  padding: 5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.hero .hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero .hero-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.4rem;
  border-radius: var(--border-radius);
  transition: background 0.2s, border-color 0.2s;
}

.hero .hero-phone:hover,
.hero .hero-phone:focus {
  background: #ece8e3;
  border-color: var(--color-heading);
  color: var(--color-heading);
}

.icon-svg {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SEKTIONEN – allgemein
═══════════════════════════════════════════ */
section {
  padding: var(--section-padding);
}

section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

section:nth-child(odd) {
  background-color: var(--color-bg);
}

/* ═══════════════════════════════════════════
   TRAUERFALL – Schritte
═══════════════════════════════════════════ */
.steps-list {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--color-bg);
  border-left: 3px solid var(--color-border);
  border-radius: var(--border-radius);
}

.step-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-border);
  min-width: 2rem;
  line-height: 1;
  padding-top: 0.1rem;
}

.step-text strong {
  display: block;
  color: var(--color-heading);
  margin-bottom: 0.2rem;
}

.trauerfall-notice {
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.trauerfall-notice strong {
  color: var(--color-heading);
}

/* ═══════════════════════════════════════════
   LEISTUNGEN – Karten-Grid
═══════════════════════════════════════════ */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.leistung-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.leistung-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}

.leistung-card p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   BESTATTUNGSARTEN
═══════════════════════════════════════════ */
.bestattungsarten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.bestattungsart {
  padding: 1.5rem;
  border-top: 2px solid var(--color-border);
}

.bestattungsart h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--color-heading);
}

.bestattungsart ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   VORSORGE
═══════════════════════════════════════════ */
.vorsorge-content {
  max-width: 700px;
  margin: 0 auto;
}

.vorsorge-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

.vorsorge-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--color-heading);
}

.vorsorge-block p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.cta-box {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  text-align: center;
}

.cta-box p {
  margin-bottom: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
}

.cta-phone:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   ÜBER UNS
═══════════════════════════════════════════ */
.ueberuns-content {
  max-width: 700px;
  margin: 0 auto;
}

.ueberuns-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

/* ═══════════════════════════════════════════
   KONTAKT
═══════════════════════════════════════════ */
.kontakt-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.kontakt-content p.intro {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.kontakt-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
}

.kontakt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0eee9;
  color: var(--color-heading);
  flex-shrink: 0;
}

.kontakt-icon .icon-svg {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}

.kontakt-item a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 500;
}

.kontakt-item a:hover {
  text-decoration: underline;
}

.maps-link {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.maps-link a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-phone a {
  color: var(--color-footer-text);
  text-decoration: none;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   IMPRESSUM & DATENSCHUTZ – separate Seiten
═══════════════════════════════════════════ */
.legal-page {
  min-height: 70vh;
  padding: 3rem 1.5rem;
}

.legal-page .container {
  max-width: 750px;
}

.legal-page h1 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-page p,
.legal-page li {
  margin-bottom: 0.8rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.legal-page a {
  color: var(--color-link);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   RESPONSIVE – Tablet (≤ 768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 3.5rem 1.2rem; }

  /* Hamburger einblenden */
  .nav-toggle {
    display: flex;
  }

  /* Navigation ausklappbar */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-nav ul li a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-bg-alt);
  }

  .site-header {
    position: relative; /* damit Mobile-Dropdown korrekt positioniert */
  }

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

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

/* ═══════════════════════════════════════════
   RESPONSIVE – Smartphone (≤ 480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero .hero-phone { font-size: 1.15rem; }

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

  .kontakt-item {
    flex-direction: column;
    text-align: center;
  }
}
