/* ============================================
   DIE LETZTE EHRE — Design System v2
   ============================================
   Redesign auf Basis von Farbpsychologie-Forschung
   für trauernde Besucher:

   - Gedämpftes Salbeigrün: beruhigend, heilend, naturverbunden
   - Warmer Sandstein: erdend, geborgen, nicht kalt
   - Weiches Cremeweiß: leicht, offen, nicht steril
   - Kein reines Schwarz: warmbraun statt harsh
   - Keine grellen Kontraste oder aggressiven Animationen
   - Maximale Lesbarkeit + viel Atemraum (Whitespace)

   Quellen: Color Psychology in UX (Smashing Magazine),
   Mental Health Website Design (Digital Dot),
   Therapy Website Palettes (Bungalow Web Design)
   ============================================ */


/* --- CSS Variables / Design Tokens --- */
:root {
  /* Primärfarben — Gedämpftes Salbei/Eukalyptus */
  --color-primary: #5B7B6F;
  --color-primary-light: #7A9B8E;
  --color-primary-dark: #445C53;
  --color-primary-subtle: rgba(91, 123, 111, 0.07);

  /* Sekundärfarben — Warmer Sandstein */
  --color-warm: #8C7B6B;
  --color-warm-light: #A99889;
  --color-warm-muted: #C4B8AA;
  --color-warm-subtle: rgba(140, 123, 107, 0.08);

  /* Hintergrund — Weiches Creme-Leinen */
  --color-bg: #F8F6F3;
  --color-bg-alt: #F0ECE7;
  --color-bg-card: #FFFFFF;
  --color-bg-warm: #F5F0EA;

  /* Text — Warmes Dunkelbraun (NIE reines Schwarz) */
  --color-text: #3A3733;
  --color-text-muted: #7A756E;
  --color-text-light: #A19B94;

  /* Borders — Sanft und zurückhaltend */
  --color-border: #DDD8D1;
  --color-border-light: #EAE6E0;

  /* Akzente — gedämpft, nie grell */
  --color-success: #6B9F7D;
  --color-info: #7B96AB;
  --color-warning: #B5956B;
  --color-cta: #5B7B6F;
  --color-cta-hover: #4A6A5E;

  /* Typografie */
  --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  /* Spacing — Großzügig für Atemraum */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 780px;
  --max-width-wide: 1400px;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Shadows — Hauchzart, fast unsichtbar */
  --shadow-sm: 0 1px 4px rgba(58, 55, 51, 0.04);
  --shadow-md: 0 4px 16px rgba(58, 55, 51, 0.06);
  --shadow-lg: 0 8px 32px rgba(58, 55, 51, 0.08);
  --shadow-card: 0 2px 8px rgba(58, 55, 51, 0.04);

  /* Transitions — Sanft und langsam */
  --transition: 0.35s ease;
  --transition-slow: 0.6s ease;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
}

/* KEINE harten Zeilenumbrüche — Text fließt natürlich */
p, li, td, th, label, span, a {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: var(--color-text-muted);
}


/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-primary-dark);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .text-muted,
.section--dark .lead {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-warm);
  font-weight: 600;
  font-family: var(--font-body);
  display: block;
  margin-bottom: var(--space-sm);
}


/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 {
    grid-template-columns: 1fr;
  }
}


/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: 0 1px 8px rgba(58, 55, 51, 0.05);
}

.header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  white-space: nowrap;
}

.header__logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.header__link:hover,
.header__link--active {
  color: var(--color-primary);
}

.header__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.55rem 1.15rem;
  background: var(--color-cta);
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

/* Mobile menu toggle */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  -webkit-tap-highlight-color: transparent;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .header__toggle { display: block; }

  .header__nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-2xl) clamp(1.5rem, 6vw, 3rem);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header__nav--open {
    transform: translateX(0);
  }

  .header__link {
    font-size: 1.15rem;
    padding: var(--space-sm) 0;
  }
}


/* --- Hero Section --- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(170deg, var(--color-bg) 0%, var(--color-bg-warm) 50%, var(--color-bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.35rem 0.9rem;
  background: var(--color-primary-subtle);
  border: 1px solid rgba(91, 123, 111, 0.12);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.85;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-cta);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-cta-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary-light);
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
}

.btn--warm {
  background: var(--color-warm);
  color: #fff;
}

.btn--warm:hover {
  background: var(--color-warm-light);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 0.8rem 1rem;
}

.btn--ghost:hover {
  color: var(--color-primary);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.02rem;
}

/* Mobile: Buttons volle Breite wenn nötig */
@media (max-width: 480px) {
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border-light);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.4rem;
}

.card__icon--primary {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.card__icon--warm {
  background: var(--color-warm-subtle);
  color: var(--color-warm);
}

.card__icon--success {
  background: rgba(107, 159, 125, 0.1);
  color: var(--color-success);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: var(--space-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card__link:hover {
  gap: 0.5rem;
}

.card--feature {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.card--feature .card__icon {
  flex-shrink: 0;
  margin-bottom: 0;
}


/* --- Trust Bar --- */
.trust-bar {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.trust-bar__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.trust-bar__item {
  text-align: center;
}

.trust-bar__number {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.trust-bar__label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* --- Akutfall-Banner (Emergency CTA) --- */
.akutfall {
  background: var(--color-primary-dark);
  color: #fff;
  padding: var(--space-lg) 0;
}

.akutfall__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.akutfall__text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.akutfall__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.akutfall__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}

.akutfall__subtitle {
  font-size: 0.85rem;
  opacity: 0.75;
}

.akutfall .btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .akutfall__inner {
    flex-direction: column;
    text-align: center;
  }
  .akutfall__text {
    flex-direction: column;
  }
}


/* --- Elegante Tabellen --- */
.table-wrapper {
  margin: var(--space-xl) 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
}

/* Auch .cost-table als Wrapper (Rückwärtskompatibilität) */
div.cost-table {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
}

div.cost-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
}

.cost-table th,
div.cost-table th {
  background: var(--color-primary-dark);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.cost-table td,
div.cost-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.93rem;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.cost-table tbody tr:last-child td,
div.cost-table tbody tr:last-child td {
  border-bottom: none;
}

.cost-table tbody tr:nth-child(even),
div.cost-table tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}

.cost-table tbody tr:hover td,
div.cost-table tbody tr:hover td {
  background: var(--color-primary-subtle);
}

.cost-table .price-range,
div.cost-table .price-range {
  font-weight: 600;
  color: var(--color-primary);
}

/* Summenzeile */
.cost-table tr.table-total td,
div.cost-table tr.table-total td {
  background: var(--color-bg-warm);
  font-weight: 700;
  border-top: 2px solid var(--color-border);
}

/* Responsive: Mobile Tabellen-Karten */
@media (max-width: 640px) {
  .cost-table th,
  div.cost-table th {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
  }
  
  .cost-table td,
  div.cost-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
  }
  
  /* Schmale Tabellen: Card-Layout auf Mobile */
  .table-cards {
    border: none;
    box-shadow: none;
    background: transparent;
  }
  
  .table-cards table,
  .table-cards thead {
    display: none;
  }

  .table-cards tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .table-cards tbody tr {
    display: block;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
  }
  
  .table-cards tbody tr td {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.88rem;
  }
  
  .table-cards tbody tr td:last-child {
    border-bottom: none;
  }
  
  .table-cards tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-right: var(--space-md);
  }
}


/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 0.83rem;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '\203A';
  margin-right: var(--space-xs);
  color: var(--color-text-light);
}

.breadcrumb__link {
  color: var(--color-text-muted);
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 500;
}


/* --- Footer --- */
.footer {
  background: #2A2724;
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.45);
}

.footer__brand .header__logo {
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* --- Werbekennzeichnung (Pflicht) --- */
.ad-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: var(--color-bg-alt);
  border-radius: 3px;
}

.affiliate-disclosure {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.83rem;
  color: var(--color-text-muted);
  margin: var(--space-xl) 0;
  line-height: 1.7;
}

.affiliate-disclosure strong {
  color: var(--color-text);
}


/* --- Blog / Article Styles --- */
.article {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.article__tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
}

.article__content h2 {
  margin-top: var(--space-3xl);
}

.article__content h3 {
  margin-top: var(--space-2xl);
}

.article__content p {
  margin-bottom: var(--space-lg);
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article__content li {
  margin-bottom: var(--space-sm);
  line-height: 1.75;
}

.article__content li::marker {
  color: var(--color-primary-light);
}

.article__content blockquote {
  border-left: 3px solid var(--color-warm-muted);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--color-text-muted);
}


/* Info/Hinweis Box */
.info-box {
  border-radius: var(--border-radius);
  padding: var(--space-lg) clamp(1rem, 3vw, 1.5rem);
  margin: var(--space-xl) 0;
  line-height: 1.75;
}

.info-box--tip {
  background: var(--color-primary-subtle);
  border-left: 3px solid var(--color-primary-light);
}

.info-box--warning {
  background: var(--color-warm-subtle);
  border-left: 3px solid var(--color-warning);
}

.info-box--important {
  background: rgba(107, 159, 125, 0.07);
  border-left: 3px solid var(--color-success);
}

.info-box__title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.info-box p {
  max-width: none;
}


/* --- Lead Form --- */
.lead-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.lead-form__title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: var(--space-sm);
}

.lead-form__subtitle {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(91, 123, 111, 0.08);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-consent {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  line-height: 1.6;
}

.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}


/* --- Tabellen Responsive --- */
@media (max-width: 640px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper table td,
  .table-wrapper table th {
    white-space: normal;
    min-width: 80px;
  }

  /* Mobile cost table: hide Hinweis column, compact layout */
  .table-wrapper .cost-table thead th:nth-child(4),
  .table-wrapper .cost-table tbody td:nth-child(4) {
    display: none;
  }

  .table-wrapper .cost-table {
    font-size: 0.82rem;
  }

  .table-wrapper .cost-table td,
  .table-wrapper .cost-table th {
    padding: var(--space-xs) var(--space-sm);
    min-width: 70px;
  }
}

/* Details/FAQ Accordion */
details {
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  transition: background var(--transition);
}

details[open] {
  background: var(--color-bg-alt);
}

details summary {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform var(--transition);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details > *:not(summary) {
  padding: 0 var(--space-lg) var(--space-lg);
}


/* --- Utility Classes --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.gap-1 { gap: var(--space-md); }
.gap-2 { gap: var(--space-xl); }

@media (max-width: 640px) {
  .hide-mobile { display: none; }
}

@media (min-width: 641px) {
  .hide-desktop { display: none; }
}




/* --- Vorsorge 2-Col Layout (responsive) --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* --- Dark Section: Text centering fix --- */
.section--dark .section-header {
  text-align: center;
  max-width: 800px;
}

.section--dark .grid--2 .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}

.section--dark .grid--2 .card .card__title {
  color: #fff;
}

.section--dark .grid--2 .card .card__text {
  color: rgba(255,255,255,0.7);
}

/* --- Scroll Reveal Animation (sanft) --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* --- Responsive: Tablet (768px-1024px) --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

/* --- Responsive: Mobile (bis 768px) --- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding-bottom: var(--space-lg);
  }

  .hero__content {
    padding: var(--space-lg) 0;
    max-width: 100%;
  }

  .trust-bar__items {
    gap: var(--space-xl);
  }

  .section {
    padding: clamp(2rem, 5vw, 4rem) 0;
  }
}

/* --- Responsive: Kleines Mobile (bis 480px) --- */
@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.88rem;
  }

  .btn--lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}


/* --- Print Styles --- */
@media print {
  .header, .footer, .akutfall, .btn, .header__toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .article {
    max-width: 100%;
    padding: 0;
  }
}


/* ============================================
   COMPETITOR-INSPIRED IMPROVEMENTS v3
   Based on analysis of 15+ competitor sites
   ============================================ */


/* --- Table of Contents (Sticky Sidebar) --- */
.toc {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.toc__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.toc__list {
  list-style: none;
  counter-reset: toc-counter;
}

.toc__list li {
  counter-increment: toc-counter;
  margin-bottom: var(--space-sm);
}

.toc__list li a {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  transition: color var(--transition);
  text-decoration: none;
}

.toc__list li a::before {
  content: counter(toc-counter) ".";
  font-weight: 600;
  color: var(--color-primary-light);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.toc__list li a:hover {
  color: var(--color-primary);
}

/* Content-Layout mit Sticky TOC auf Desktop */
.content-with-toc {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.content-with-toc .toc {
  position: sticky;
  top: 88px;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .content-with-toc {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .content-with-toc .toc {
    position: static;
  }
}


/* --- Author Box --- */
.author-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  margin: var(--space-2xl) 0;
  border: 1px solid var(--color-border-light);
}

.author-box__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-box__info {
  font-size: 0.88rem;
}

.author-box__name {
  font-weight: 600;
  color: var(--color-text);
}

.author-box__role {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.author-box__date {
  color: var(--color-text-light);
  font-size: 0.78rem;
  margin-top: 2px;
}


/* --- Related Articles --- */
.related-articles {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-3xl);
}

.related-articles__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: var(--space-xl);
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.related-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.related-card__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-warm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.related-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.related-card__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}


/* --- Statistics / Data Highlights --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-item__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.section--dark .stat-item__number {
  color: #fff;
}

.section--dark .stat-item__label {
  color: rgba(255,255,255,0.6);
}


/* --- Download Teaser --- */
.download-teaser {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) clamp(var(--space-lg), 3vw, var(--space-2xl));
  margin: var(--space-2xl) 0;
}

.download-teaser__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.download-teaser__content {
  flex: 1;
}

.download-teaser__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.download-teaser__text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .download-teaser {
    flex-direction: column;
    text-align: center;
  }
}


/* --- Newsletter Signup --- */
.newsletter {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl) clamp(var(--space-xl), 4vw, var(--space-3xl));
  text-align: center;
  margin: var(--space-3xl) 0;
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #fff;
  margin-bottom: var(--space-sm);
}

.newsletter__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-xl);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.93rem;
}

.newsletter__input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter__input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

.newsletter__btn {
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: var(--color-primary-dark);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.newsletter__btn:hover {
  background: var(--color-bg-alt);
}

@media (max-width: 480px) {
  .newsletter__form {
    flex-direction: column;
  }
}


/* --- Timeline / Steps (für Ratgeber) --- */
.timeline {
  position: relative;
  padding-left: var(--space-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__step {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
}

.timeline__step:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 6px);
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  z-index: 1;
}

.timeline__step--urgent .timeline__marker {
  background: var(--color-warning);
}

.timeline__time {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline__step--urgent .timeline__time {
  color: var(--color-warning);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.timeline__content {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}


/* --- Burial Type Comparison Cards --- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 960px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.comparison-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.comparison-card__popular {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
}

.comparison-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.comparison-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.comparison-card__price {
  font-size: 0.88rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.comparison-card__text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.comparison-card__features {
  list-style: none;
  padding: 0;
}

.comparison-card__features li {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
}

.comparison-card__features li::before {
  content: '\2713';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}


/* --- Trust Section (enhanced) --- */
.trust-section {
  background: var(--color-bg-alt);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.trust-section__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.trust-badge__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.trust-badge__text strong {
  display: block;
  color: var(--color-text);
  font-size: 0.88rem;
}


/* --- Update Date Badge --- */
.update-date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.update-date svg {
  width: 14px;
  height: 14px;
}


/* --- Phone CTA (enhanced akutfall) --- */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.phone-cta:hover {
  color: rgba(255,255,255,0.85);
}


/* --- Footer Enhanced --- */
.footer__contact-info {
  margin-top: var(--space-md);
}

.footer__contact-info a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
}

.footer__contact-info a:hover {
  color: #fff;
}

.footer__contact-info svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer__trust {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer__trust-item {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer__trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary-light);
}
