[data-bs-theme=dark] {
      --bs-body-bg: #1b1f24;
      --bs-tertiary-bg: #22272e;
      --bs-border-color: #343a43;
      --bs-body-font-family: "Archivo", system-ui, sans-serif;

      /* Akzentfarbe – hier ändern */
      --accent: #74a7e8;
      --accent-hover: #93bcf0;
      --accent-rgb: 116, 167, 232;
    }
    html { scroll-behavior: smooth; }
    section { padding: 3.5rem 0; }
    h1, h2 { font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; }

       /* ---------- Kopfbereich mit fixiertem Hintergrundbild ---------- */
    .hero-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      background-color: #2a2f36;
      background-size: cover;
      background-position: center;
    }
    .hero-bg::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, .25);
    }
    .hero {
      position: relative;
      z-index: 1;
      min-height: 75vh;
      display: flex;
      align-items: flex-end;
      background: linear-gradient(to top,
        var(--bs-body-bg) 0%,
        rgba(27, 31, 36, .6) 35%,
        rgba(27, 31, 36, 0) 70%);
    }
    .hero h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
    .hero .lead { color: rgba(255, 255, 255, .85); }

    /* Inhalt liegt mit festem Hintergrund über dem Bild */
    main, footer {
      position: relative;
      z-index: 1;
      background-color: var(--bs-body-bg);
    }

    /* ---------- Akzente ---------- */
    .section-title::after {
      content: "";
      display: block;
      width: 2rem;
      height: 3px;
      margin-top: .5rem;
      border-radius: 2px;
      background: var(--accent);
    }
    .text-accent { color: var(--accent); }
    .btn-accent {
      --bs-btn-color: #14171b;
      --bs-btn-bg: var(--accent);
      --bs-btn-border-color: var(--accent);
      --bs-btn-hover-color: #14171b;
      --bs-btn-hover-bg: var(--accent-hover);
      --bs-btn-hover-border-color: var(--accent-hover);
      --bs-btn-active-color: #14171b;
      --bs-btn-active-bg: var(--accent-hover);
      --bs-btn-active-border-color: var(--accent-hover);
    }
    .btn-ghost {
      --bs-btn-color: var(--bs-secondary-color);
      --bs-btn-border-color: var(--bs-border-color);
      --bs-btn-hover-color: var(--accent);
      --bs-btn-hover-bg: transparent;
      --bs-btn-hover-border-color: var(--accent);
      --bs-btn-active-color: var(--accent);
      --bs-btn-active-bg: transparent;
      --bs-btn-active-border-color: var(--accent);
    }
    .link-soft { color: var(--bs-secondary-color); text-decoration: none; transition: color .2s; }
    .link-soft:hover, .link-accent:hover { color: var(--accent-hover); }
    .link-accent { color: var(--accent); text-decoration: none; transition: color .2s; }

    /* ---------- Hover ---------- */
    .card { transition: transform .2s ease, border-color .2s ease; }
    .card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .5); }
    .list-group-item { background-color: transparent; }
    .list-group-item-action:hover { background-color: rgba(var(--accent-rgb), .06); }
    .btn { transition: all .2s ease; }
    .navbar .nav-link:hover { color: var(--accent); }

    @media (max-width: 767.98px) {
      .hero { min-height: 55vh; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      * { transition: none !important; }
    }



    
/* ==========================================================
   MOBILE OPTIMIZATION
   ========================================================== */

/* ---------- Fluid Typography ---------- */

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.3;
}

p, .lead {
  line-height: 1.7;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
}


/* ---------- Tablets ---------- */

@media (max-width: 991.98px) {

  section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 65vh;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .card:hover {
    transform: none;
  }

}


/* ---------- Smartphones ---------- */

@media (max-width: 767.98px) {

  html {
    scroll-behavior: auto;
  }

  body {
    font-size: 0.95rem;
    overflow-x: hidden;
  }

  /* Sections */

  section {
    padding: 2.5rem 0;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  /* Hero */

  .hero {
    min-height: 65svh;
    min-height: 65vh;
    align-items: flex-end;
    padding-top: 5rem;
    padding-bottom: 3rem;
    background: linear-gradient(
      to top,
      var(--bs-body-bg) 0%,
      rgba(27, 31, 36, .75) 40%,
      rgba(27, 31, 36, .05) 100%
    );
  }

  .hero-bg {
    background-position: center center;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 38rem;
  }

  /* Typography */

  h2 {
    margin-bottom: 1rem;
  }

  .section-title::after {
    margin-top: 0.65rem;
  }

  /* Cards */

  .card {
    height: auto;
    margin-bottom: 0.5rem;
  }

  .card:hover {
    transform: none;
  }

  .card-body {
    padding: 1.15rem;
  }

  /* Buttons */

  .btn {
    min-height: 44px;
    padding: 0.65rem 1rem;
  }

  .btn-group {
    flex-wrap: wrap;
  }

  /* Navigation */

  .navbar .nav-link {
    padding: 0.75rem 0.5rem;
  }

  /* Lists */

  .list-group-item {
    padding: 0.85rem 1rem;
  }

  /* Footer */

  footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

}


/* ---------- Small Smartphones ---------- */

@media (max-width: 420px) {

  section {
    padding: 2rem 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    min-height: 60svh;
    min-height: 60vh;
    padding-bottom: 2.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.9rem;
  }

}


/* ---------- Landscape Smartphones ---------- */

@media (max-height: 500px) and (orientation: landscape) {

  .hero {
    min-height: 100svh;
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

}


/* ---------- Touch Devices ---------- */

@media (hover: none) and (pointer: coarse) {

  .card:hover {
    transform: none;
    border-color: var(--bs-border-color);
  }

  .btn,
  .nav-link,
  .link-soft,
  .link-accent {
    -webkit-tap-highlight-color: transparent;
  }

}


/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

}
