/**
 * EDV Begleiter - Modernisierter Relaunch (Bootstrap 5.3)
 * 100% DSGVO-konform, barrierefrei, seniorengerecht, SEO-optimiert
 */

:root {
  --brand-burgundy: #9f1239;
  --brand-burgundy-dark: #7f0d2d;
  --brand-orange: #ff8b16;
  --brand-orange-hover: #d47000;
  --brand-orange-active: #a85800;
  --brand-orange-light-hover: #ffa764;
  --brand-peach: #ffa764;
  --brand-dark: #15141a;
  --brand-text: #2b2a33;
  --brand-muted: #5b5b66;
  --brand-bg-light: #fbfbfe;
  --brand-border: #e5e7eb;
  --font-family-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-height: 126px; /* Navigationsleiste exakt 126px hoch */
}

/* ==========================================================================
   Basis & Typografie (Seniorengerecht & Vereinheitlicht)
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

/* Usability-Modus: Größere Schrift für Senioren */
html[data-font-size="large"] {
  font-size: 18.5px;
}

body {
  font-family: var(--font-family-base) !important;
  color: var(--brand-text);
  background-color: #ffffff;
  font-size: 1.0625rem; /* ~17px standard, ~19.5px im Groß-Modus */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body, button, input, select, textarea, .btn, .nav-link, .accordion-button {
  font-family: var(--font-family-base) !important;
}

/* Skip-Link Barrierefreiheit */
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  background: var(--brand-orange);
  color: #000000;
  padding: 10px 18px;
  font-weight: 700;
  z-index: 9999;
  border-radius: 4px;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 15px;
}

/* Tastatur-Fokus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-orange) !important;
  outline-offset: 2px !important;
}

/* Semantische Überschriften-Hierarchie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-base) !important;
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 42px);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 32px);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 24px);
  line-height: 1.35;
}

h4 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
}

h5 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin-bottom: 1.15rem;
}

/* ==========================================================================
   Links: Dunkles Weinrot statt Bootstrap-Blau
   ========================================================================== */
a {
  color: var(--brand-burgundy);
  text-decoration: underline;
  transition: color 0.15s ease;
}

a:hover, a:focus {
  color: var(--brand-burgundy-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation (Fixed, exakt 126px, navbar-expand-xl)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar {
  min-height: var(--header-height);
  width: 100%;
  padding-block: 0;
}

.navbar .container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  padding-block: 0;
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: auto;
  max-height: 96px;
  width: auto;
  max-width: 65vw;
  object-fit: contain;
  transition: all 0.2s ease;
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    max-height: 80px;
    max-width: 65vw;
  }
}

.nav-link {
  color: var(--brand-dark) !important;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 8px 14px !important;
  text-decoration: none !important;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-burgundy) !important;
  opacity: 0.85;
}

.nav-link.active {
  font-weight: 700;
  color: var(--brand-burgundy) !important;
  opacity: 1;
}

.navbar-toggler {
  border: 1.5px solid var(--brand-border);
  padding: 10px 14px;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 139, 22, 0.35);
}

/* ==========================================================================
   Responsives Menü (< 1200px: navbar-expand-xl)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    background-color: #ffffff;
    padding-top: 14px;
    padding-bottom: 28px; /* Großzügiger Abstand nach unten: Button klebt nicht mehr am Rand */
    padding-inline: 12px;
    border-bottom: 2px solid var(--brand-border);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  .navbar-collapse .navbar-nav {
    width: 100%;
    margin-bottom: 0;
  }

  .navbar-collapse .navbar-nav .nav-item {
    border-bottom: 1.5px solid #e2e8f0 !important; /* Deutlich sichtbare, saubere Trennlinie */
    width: 100%;
  }

  .navbar-collapse .navbar-nav .nav-item:last-child {
    border-bottom: none !important;
  }

  .navbar-collapse .navbar-nav .nav-link {
    display: block;
    width: 100%;
    padding-block: 15px !important; /* Bequeme Touch-Fläche für Senioren */
    padding-inline: 14px !important;
    font-size: 1.15rem;
    font-weight: 500;
  }

  .navbar-collapse .d-flex {
    width: 100%;
  }

  .btn-phone-mobile {
    border: 2px solid var(--brand-burgundy);
    color: var(--brand-burgundy) !important;
    background-color: transparent;
    font-weight: 600;
    border-radius: 8px;
    padding: 13px 18px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.15s ease;
    width: 100%;
    font-size: 1.15rem;
    margin-top: 16px;
  }

  .btn-phone-mobile:hover,
  .btn-phone-mobile:focus {
    background-color: var(--brand-burgundy);
    color: #ffffff !important;
  }

  .navbar-collapse .btn-brand-orange {
    margin-top: 8px;
    margin-bottom: 4px;
    width: 100%; /* Auf Mobilgeräten großflächiger, leicht tippbarer Button */
    padding-block: 14px;
    font-size: 1.15rem;
    font-weight: 600;
  }
}

/* Responsives Menü im Dark Mode */
@media (max-width: 1199.98px) {
  [data-bs-theme="dark"] .navbar-collapse {
    background-color: #1a1a1a !important;
    border-bottom-color: #333333 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5) !important;
  }

  [data-bs-theme="dark"] .navbar-collapse .navbar-nav .nav-item {
    border-bottom: 1.5px solid #3f3f46 !important;
  }

  [data-bs-theme="dark"] .btn-phone-mobile {
    border-color: #fda4af;
    color: #fda4af !important;
  }

  [data-bs-theme="dark"] .btn-phone-mobile:hover,
  [data-bs-theme="dark"] .btn-phone-mobile:focus {
    background-color: #fda4af;
    color: #000000 !important;
  }
}

/* ==========================================================================
   Frei schwebendes Barrierefreiheits- & Kontrast-Widget (Unten Rechts)
   ========================================================================== */
.a11y-floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1060;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 9999px;
  padding: 6px 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.a11y-floating-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.a11y-btn {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  color: #212529;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.a11y-btn:hover {
  background-color: #f3f4f6;
}

.a11y-btn.active {
  background-color: var(--brand-orange) !important;
  color: #ffffff !important;
}

.a11y-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #212529;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.a11y-theme-btn:hover {
  background-color: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
}

@media (max-width: 575.98px) {
  .a11y-floating-widget {
    bottom: 14px;
    right: 14px;
    padding: 4px 6px;
    gap: 4px;
  }
  .a11y-btn {
    padding: 3px 8px;
    font-size: 0.9rem;
  }
  .a11y-theme-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Buttons (Exakter Orangeton #ff8b16 wie im Original)
   ========================================================================== */
.btn-brand-orange,
.btn-primary {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #ffffff !important; /* Immer weiße Schrift */
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 24px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: background-color 0.15s ease, transform 0.1s ease;
  text-decoration: none !important;
}

.btn-brand-orange:hover,
.btn-brand-orange:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--brand-orange-hover) !important;
  border-color: var(--brand-orange-hover) !important;
  color: #ffffff !important; /* Immer weiße Schrift */
}

.btn-brand-orange:active,
.btn-primary:active {
  background-color: var(--brand-orange-active) !important;
  border-color: var(--brand-orange-active) !important;
  color: #ffffff !important; /* Immer weiße Schrift */
}

/* Buttons in weinroten Abschnitten */
.bg-burgundy .btn-brand-orange:hover,
.bg-burgundy .btn-brand-orange:focus-visible,
.bg-burgundy .btn-primary:hover,
.bg-burgundy .btn-primary:focus-visible {
  background-color: var(--brand-orange-light-hover) !important;
  border-color: var(--brand-orange-light-hover) !important;
  color: #ffffff !important; /* Immer weiße Schrift */
}

.btn-lg {
  padding: 13px 26px !important;
  font-size: 1.15rem !important;
  min-height: 50px;
}

/* ==========================================================================
   Weinrote Abschnitte (.bg-burgundy #9f1239)
   ========================================================================== */
.bg-burgundy {
  background-color: var(--brand-burgundy) !important;
  color: #ffffff !important;
}

.bg-burgundy h1,
.bg-burgundy h2,
.bg-burgundy h3,
.bg-burgundy h4,
.bg-burgundy h5 {
  color: #ffffff !important;
}

.bg-burgundy p,
.bg-burgundy li,
.bg-burgundy span {
  color: #ffffff !important;
}

.bg-burgundy strong {
  color: #ffffff !important;
  font-weight: 700;
}

.bg-burgundy a {
  color: #ffffff !important;
}

.bg-burgundy a:hover {
  color: var(--brand-peach) !important;
}

.text-peach {
  color: var(--brand-peach) !important;
}

.text-burgundy {
  color: var(--brand-burgundy) !important;
}

/* ==========================================================================
   Hero-Banner (Exakt wie in Version 3 mit Doppel-Ebene 464px)
   ========================================================================== */
.hero-split-container {
  position: relative;
  width: 100%;
  height: 464px !important;
  max-height: 640px;
  min-height: 160px;
  overflow: hidden;
  background-color: var(--brand-burgundy);
}

@media (max-width: 767.98px) {
  .hero-split-container {
    height: 260px !important;
  }
}

.hero-split-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(159, 18, 57, 0.24),
    rgba(159, 18, 57, 0.24)
  ), url('../img/hero-banner.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(14px);
  transform: scale(1.15);
}

.hero-split-sharp {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(159, 18, 57, 0.24),
    rgba(159, 18, 57, 0.24)
  ), url('../img/hero-banner.webp');
  background-position: center 20%;
  background-repeat: no-repeat;
  background-size: cover !important;
}

/* Header-Unterseiten-Banner (Termine, Impressum, Datenschutz) */
.subpage-banner-container {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background-color: var(--brand-burgundy);
}

@media (max-width: 767.98px) {
  .subpage-banner-container {
    height: 200px;
  }
}

.subpage-banner-blur {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(14px);
  transform: scale(1.15);
}

.subpage-banner-sharp {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 100%;
  height: 100%;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-size: cover !important;
}

.intro-section {
  padding-block: 60px;
}

.intro-list {
  list-style-type: disc;
  padding-left: 1.4rem;
  margin-bottom: 2rem;
  text-align: left;
}

.intro-list li {
  margin-bottom: 0.85rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ==========================================================================
   Intro-Bereich Vertrauens- & Service-Karte (Eyecatcher rechts)
   ========================================================================== */
.intro-trust-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.18) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-align: left;
}

@media (max-width: 575.98px) {
  .intro-trust-card {
    padding: 1.65rem 1.25rem;
  }
}

.intro-trust-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(254, 205, 211, 0.18);
  border: 1px solid var(--brand-peach);
  color: var(--brand-peach);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.intro-trust-title {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.intro-trust-subtitle {
  color: var(--brand-peach);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.intro-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item-head {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.trust-item-desc {
  color: #f8f9fa;
  opacity: 0.9;
  font-size: 0.9rem;
  line-height: 1.4;
}

.intro-trust-action {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
}

.trust-phone-link {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.trust-phone-link:hover,
.trust-phone-link:focus {
  color: var(--brand-peach);
  text-decoration: underline;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}


/* ==========================================================================
   Artikel-Bereiche (Lesebreite exakt 8 Spalten zentriert)
   ========================================================================== */
.article-section {
  padding-block: 64px;
}

.article-content {
  max-width: 820px;
  margin-inline: auto;
}

.article-img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 0 !important;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Moderne 2-Spalten- & Card-Komponenten für Einrichtungen & Senioren
   ========================================================================== */
.feature-box-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 1.85rem;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-box-glass:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.feature-check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.feature-check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.95rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #f8f9fa;
}

.feature-check-list li:last-child {
  margin-bottom: 0;
}

.feature-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-peach);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.3;
}

/* Stammtisch Feature-Box */
.stammtisch-feature-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.18) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

@media (max-width: 575.98px) {
  .stammtisch-feature-box {
    padding: 1.75rem 1.25rem;
  }
}

.stammtisch-mini-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 1.35rem;
  height: 100%;
  color: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stammtisch-mini-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-peach);
  transform: translateY(-2px);
}

/* 5-teiliges Leistungs-Grid (Senioren) */
.service-grid-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 1.85rem 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-grid-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-peach);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.service-grid-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.service-grid-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.service-grid-text {
  color: #f8f9fa;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Hervorgehobene Nachlass-Box */
.nachlass-highlight-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 139, 22, 0.12) 100%);
  border: 2px solid var(--brand-peach);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

@media (max-width: 575.98px) {
  .nachlass-highlight-box {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   Mittel- & Abschluss-Banner (Doppel-Ebene)
   ========================================================================== */
.banner-split-container {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background-color: #2b2a33;
}

@media (max-width: 767.98px) {
  .banner-split-container {
    height: 200px;
  }
}

.banner-split-blur {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(14px);
  transform: scale(1.15);
  opacity: 0.95;
}

.banner-split-sharp {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover !important;
}

/* ==========================================================================
   Scharfe Banner-Vordergründe: Exakt so breit wie der innere Content (.container)
   ========================================================================== */
@media (min-width: 576px) {
  .hero-split-sharp,
  .subpage-banner-sharp,
  .banner-split-sharp {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .hero-split-sharp,
  .subpage-banner-sharp,
  .banner-split-sharp {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .hero-split-sharp,
  .subpage-banner-sharp,
  .banner-split-sharp {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .hero-split-sharp,
  .subpage-banner-sharp,
  .banner-split-sharp {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .hero-split-sharp,
  .subpage-banner-sharp,
  .banner-split-sharp {
    max-width: 1320px;
  }
}

/* ==========================================================================
   Leistungs-Kacheln (Services)
   ========================================================================== */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-card-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.service-card-sub {
  color: var(--brand-peach);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.service-card-text {
  color: #f8f9fa;
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   Zitate & Zwischen-Elemente
   ========================================================================== */
.quote-section {
  padding-block: 56px;
  background-color: #ffffff;
}

.quote-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767.98px) {
  .quote-img {
    height: 220px;
  }
}

/* ==========================================================================
   FAQ-Akkordeon (Headlines dezenter & harmonisch)
   ========================================================================== */
.faq-section {
  padding-block: 64px;
  background-color: var(--brand-bg-light);
}

.faq-accordion .accordion-item {
  border: 1px solid var(--brand-border);
  border-radius: 8px !important;
  margin-bottom: 1rem;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

h4.accordion-header {
  margin-bottom: 0;
  font-size: 1.25rem !important;
}

.faq-accordion .accordion-button {
  font-size: 1.25rem !important; /* Vorgabe: Überschrift etwas kleiner & harmonischer */
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--brand-dark);
  padding: 1.15rem 1.4rem;
  background-color: #ffffff;
}

@media (max-width: 767.98px) {
  .faq-accordion .accordion-button {
    font-size: 1.15rem !important;
    padding: 1rem 1.15rem;
  }
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--brand-burgundy);
  background-color: rgba(159, 18, 57, 0.05);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 139, 22, 0.25);
}

.faq-accordion .accordion-body {
  padding: 1.25rem 1.4rem 1.4rem 1.4rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--brand-text);
  border-top: 1px solid var(--brand-border);
}

/* ==========================================================================
   Kontakt-Bereich (Weinroter Hintergrund) & PHP-Formular
   ========================================================================== */
.contact-section {
  padding-block: 68px;
  background-color: var(--brand-burgundy);
  color: #ffffff;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 2.75rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  color: var(--brand-text);
}

@media (max-width: 575.98px) {
  .contact-card {
    padding: 1.5rem;
  }
}

.form-control-lg {
  border-radius: 8px;
  font-size: 1.1rem;
  padding: 12px 16px;
  border: 1px solid #cfcfd8;
}

.form-control-lg:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 139, 22, 0.25);
}

.form-label {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
}

/* ==========================================================================
   Footer (Logo größer, Links normal/nicht fett)
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--brand-border);
  padding-block: 36px;
  color: var(--brand-muted);
}

.site-footer a {
  color: var(--brand-muted) !important;
  text-decoration: none !important;
  font-weight: 400 !important; /* Nicht fett */
  transition: color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--brand-burgundy) !important;
  text-decoration: underline !important;
}

.footer-logo {
  height: 76px; /* deutlich vergrößert */
  max-height: 90px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .footer-logo {
    height: 60px;
  }
}

/* ==========================================================================
   Stammtische & Termine-Karten (termine.html)
   ========================================================================== */
.termine-card {
  background-color: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.termine-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.termine-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.termine-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.termine-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--brand-dark);
}

.termine-meta {
  background-color: rgba(255, 139, 22, 0.1);
  border-left: 4px solid var(--brand-orange);
  padding: 0.85rem 1rem;
  border-radius: 0 6px 6px 0;
  margin-block: 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.termine-badge {
  display: inline-block;
  background-color: #d1fae5;
  color: #065f46;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Rechtstexte & Impressum / Datenschutz */
.legal-card {
  background-color: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 575.98px) {
  .legal-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Vollständiger Dunkel- & Hoher Kontrast Modus (data-bs-theme="dark")
   ========================================================================== */
[data-bs-theme="dark"] {
  --brand-dark: #ffffff;
  --brand-text: #f4f4f5;
  --brand-muted: #a1a1aa;
  --brand-bg-light: #18181b;
  --brand-border: #3f3f46;
  color-scheme: dark;
}

[data-bs-theme="dark"] body {
  background-color: #121214 !important;
  color: #f4f4f5 !important;
}

[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white {
  background-color: #18181b !important;
  color: #f4f4f5 !important;
}

[data-bs-theme="dark"] .site-header {
  background-color: #18181b !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
  border-bottom: 2px solid var(--brand-orange) !important;
}

[data-bs-theme="dark"] .navbar {
  background-color: #18181b !important;
}

[data-bs-theme="dark"] .navbar .nav-link {
  color: #f4f4f5 !important;
}

[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link:focus,
[data-bs-theme="dark"] .navbar .nav-link.active {
  color: var(--brand-orange) !important;
}

[data-bs-theme="dark"] .navbar-toggler {
  border-color: #52525b !important;
  background-color: #27272a !important;
}

[data-bs-theme="dark"] .navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: #ffffff !important;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] li,
[data-bs-theme="dark"] span {
  color: #f4f4f5 !important;
}

[data-bs-theme="dark"] .text-muted {
  color: #a1a1aa !important;
}

/* Quote-Bereiche */
[data-bs-theme="dark"] .quote-section {
  background-color: #18181b !important;
  color: #f4f4f5 !important;
}

/* Artikel-Bereiche */
[data-bs-theme="dark"] .article-section {
  background-color: #121214 !important;
  color: #f4f4f5 !important;
}

/* FAQ-Akkordeon */
[data-bs-theme="dark"] .faq-section {
  background-color: #18181b !important;
}

[data-bs-theme="dark"] .faq-accordion .accordion-item {
  background-color: #202024 !important;
  border-color: #3f3f46 !important;
}

[data-bs-theme="dark"] .faq-accordion .accordion-button {
  background-color: #202024 !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .faq-accordion .accordion-button:not(.collapsed) {
  background-color: #27272a !important;
  color: var(--brand-orange) !important;
}

[data-bs-theme="dark"] .faq-accordion .accordion-button::after {
  filter: invert(1) brightness(150%);
}

[data-bs-theme="dark"] .faq-accordion .accordion-body {
  background-color: #202024 !important;
  color: #e4e4e7 !important;
  border-top-color: #3f3f46 !important;
}

/* Kontakt-Bereich */
[data-bs-theme="dark"] .contact-section {
  background-color: #121214 !important;
}

[data-bs-theme="dark"] .contact-card {
  background-color: #1e1e24 !important;
  color: #ffffff !important;
  border: 1px solid #3f3f46 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .contact-card label {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .form-control-lg {
  background-color: #27272a !important;
  color: #ffffff !important;
  border-color: #52525b !important;
}

[data-bs-theme="dark"] .form-control-lg:focus {
  background-color: #27272a !important;
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 139, 22, 0.35) !important;
  color: #ffffff !important;
}

/* Termine-Karten */
[data-bs-theme="dark"] .termine-card {
  background-color: #1e1e24 !important;
  border-color: #3f3f46 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .termine-card-title {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .termine-meta {
  background-color: rgba(255, 139, 22, 0.15) !important;
  border-left-color: var(--brand-orange) !important;
  color: #f4f4f5 !important;
}

[data-bs-theme="dark"] .termine-badge {
  background-color: #064e3b !important;
  color: #a7f3d0 !important;
}

/* Rechtstexte & Impressum / Datenschutz */
[data-bs-theme="dark"] .legal-card {
  background-color: #1e1e24 !important;
  border-color: #3f3f46 !important;
  color: #f4f4f5 !important;
}

/* Tabellen & helle Abschnitte im Dark Mode */
[data-bs-theme="dark"] .bg-light {
  background-color: #121214 !important;
}

[data-bs-theme="dark"] .table {
  color: #f4f4f5 !important;
  --bs-table-bg: transparent;
  --bs-table-color: #f4f4f5;
  --bs-table-border-color: #3f3f46;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.04);
  color: #f4f4f5 !important;
}

/* Footer */
[data-bs-theme="dark"] .site-footer {
  background-color: #18181b !important;
  border-top-color: #27272a !important;
  color: #a1a1aa !important;
}

[data-bs-theme="dark"] .site-footer a {
  color: #e4e4e7 !important;
}

[data-bs-theme="dark"] .site-footer a:hover {
  color: var(--brand-orange) !important;
}

/* Links im Dark Mode: Gut lesbares Rose-Rot statt Blau */
[data-bs-theme="dark"] a {
  color: #fda4af !important;
}

[data-bs-theme="dark"] a:hover,
[data-bs-theme="dark"] a:focus {
  color: #fecdd3 !important;
}

/* Buttons behalten Kontrastfarbe */
[data-bs-theme="dark"] .btn-brand-orange,
[data-bs-theme="dark"] .btn-primary {
  color: #ffffff !important; /* Immer weiße Schrift */
}

/* Floating Widget im Dark Mode */
[data-bs-theme="dark"] .a11y-floating-widget {
  background-color: #27272a !important;
  border-color: #52525b !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .a11y-btn {
  color: #f4f4f5 !important;
}

[data-bs-theme="dark"] .a11y-btn:hover {
  background-color: #3f3f46 !important;
}

[data-bs-theme="dark"] .a11y-btn.active {
  background-color: var(--brand-orange) !important;
  color: #ffffff !important; /* Immer weiße Schrift */
}

[data-bs-theme="dark"] .a11y-theme-btn {
  background-color: #3f3f46 !important;
  border-color: #52525b !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .a11y-theme-btn:hover {
  background-color: var(--brand-orange) !important;
  color: #ffffff !important; /* Immer weiße Schrift */
  border-color: var(--brand-orange) !important;
}

/* Dunkel- & Kontrastmodus für neue Feature-Komponenten */
[data-bs-theme="dark"] .feature-box-glass {
  background-color: #1e1e24 !important;
  border-color: #3f3f46 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .stammtisch-feature-box {
  background: #18181b !important;
  border-color: #3f3f46 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .stammtisch-mini-card {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
}

[data-bs-theme="dark"] .service-grid-card {
  background-color: #1e1e24 !important;
  border-color: #3f3f46 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .service-grid-card:hover {
  border-color: var(--brand-orange) !important;
}

[data-bs-theme="dark"] .nachlass-highlight-box {
  background: #1e1e24 !important;
  border-color: var(--brand-orange) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .intro-trust-card {
  background: #18181b !important;
  border-color: #3f3f46 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .intro-trust-item {
  border-bottom-color: #27272a !important;
}


