:root {
      --bs-primary: #ca2b2b;
      --bs-secondary: #6b7280;
      --bs-body-font-family: 'Host Grotesk', system-ui, sans-serif;
      --bs-body-color: #111827;
      --bs-border-radius: 0.25rem;
    }

/*     html { font-size: 112.5%; } /* 16px * 1.125 = 18px */

    body {
      background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
      --bs-primary: #ca2b2b;
    }

    /* ==================== */
    /* Navbar / Header */
    /* ==================== */

    .custom-navbar {
      position: sticky;
      top: 0;
      z-index: 1050;
      padding: 1.25rem 0;
      background: transparent;
      transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    }

    .custom-navbar.scrolled {
      background: rgba(248,250,252,0.9);
      backdrop-filter: blur(8px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.04);
      padding: 0.75rem 0;
    }

    .custom-navbar .navbar-brand {
      font-weight: 600;
      letter-spacing: -0.02em;
      margin-right: 2rem;
    }

    .custom-navbar .nav-link {
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--bs-secondary);
      padding: 0.5rem 0.75rem;
      position: relative;
      transition: color .2s ease;
    }

    .custom-navbar .nav-link::after {
      content: '';
      position: absolute;
      left: 0.75rem;
      right: 0.75rem;
      bottom: 0.15rem;
      height: 1.5px;
      background: currentColor;
      opacity: 0;
      transform: scaleX(0.6);
      transition: opacity .2s ease, transform .2s ease;
    }

    .custom-navbar .nav-link.active,
    .custom-navbar .nav-link:hover {
      color: var(--bs-body-color);
    }

    .custom-navbar .nav-link.active::after,
    .custom-navbar .nav-link:hover::after {
      opacity: 1;
      transform: scaleX(1);
    }

    .navbar-icons {
      display: flex;
      align-items: center;
      gap: 1.25rem;
    }

    .navbar-icons a {
      color: var(--bs-secondary);
      font-size: 1.1rem;
      transition: color .2s ease;
    }

    .navbar-icons a:hover {
      color: var(--bs-body-color);
    }

    .language-dropdown .dropdown-menu {
      min-width: auto;
      border-radius: 0.5rem;
      border: none;
      box-shadow: 0 12px 40px rgba(0,0,0,0.08);
      padding: 0.5rem;
    }

    .language-dropdown .dropdown-item {
      font-size: 0.9rem;
      padding: 0.4rem 0.75rem;
    }

    .language-dropdown .dropdown-item.active {
      font-weight: 600;
      color: var(--bs-body-color);
      background: transparent;
    }

    /* Mobile Overlay Menu */
    .mobile-overlay {
      position: fixed;
      inset: 0;
      background: rgba(248,250,252,0.97);
      backdrop-filter: blur(10px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s ease;
    }

    .mobile-overlay.active {
      opacity: 1;
      pointer-events: all;
    }

    .mobile-overlay nav {
      text-align: center;
    }

    .mobile-overlay a {
      display: block;
      font-size: 1.75rem;
      font-weight: 500;
      color: var(--bs-secondary);
      text-decoration: none;
      margin: 1.25rem 0;
      transition: color .2s ease;
    }

    .mobile-overlay a.active {
      color: var(--bs-body-color);
      font-weight: 600;
    }

    .mobile-overlay .overlay-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      font-size: 1.5rem;
      background: none;
      border: none;
      color: var(--bs-body-color);
    }

    /* ==================== */
    /* Hero */
    /* ==================== */

    .hero {
      padding: 7rem 1rem 5rem;
      text-align: center;
      max-width: 60rem;
      margin: 0 auto;
    }

    .hero h1 {
      font-weight: 600;
      letter-spacing: -0.03em;
      margin-bottom: 1rem;
    }

    .hero p {
      max-width: 38rem;
      margin: 0 auto;
    }

    /* ==================== */
    /* Portfolio Grid */
    /* ==================== */

    .portfolio-grid {
      margin-top: 4rem;
    }

    .portfolio-link {
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .portfolio-item {
      overflow: hidden;
      border-radius: 0.35rem;
      background: #ffffff;
      box-shadow: 0 10px 30px rgba(0,0,0,0.04);
      transition: transform .35s ease, box-shadow .35s ease;
    }

    .portfolio-item:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    }

    .portfolio-item img {
      width: 100%;
      height: auto;
      display: block;
    }

    .portfolio-caption {
      padding: 1.5rem 1.5rem 1.75rem;
    }

    .portfolio-caption h5 {
      font-size: 1.05rem;
      font-weight: 500;
      margin-bottom: 0.25rem;
    }

    .portfolio-caption p {
      font-size: 0.9rem;
      color: var(--bs-secondary);
      margin-bottom: 0;
    }

    @media (min-width: 992px) {
      .portfolio-grid .col-lg-4 {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
      }
    }

    /* ==================== */
    /* Freies Bild-Layout / Case Page */
    /* ==================== */

    .free-layout {
      padding: 6rem 1rem 8rem;
      max-width: 80rem;
    }

    .image-block {
      margin-bottom: 6rem;
    }

    .image-block img {
      width: 100%;
      height: auto;
      border-radius: 0.35rem;
      display: block;
    }

    /* Alignment */
    .image-block.center { margin-left: auto; margin-right: auto; }
    .image-block.left { margin-left: 0; margin-right: auto; }
    .image-block.right { margin-left: auto; margin-right: 0; }

    /* Width presets */
    .image-block.small { max-width: 22rem; }
    .image-block.medium { max-width: 36rem; }
    .image-block.large { max-width: 48rem; }
    .image-block.xlarge { max-width: 64rem; }

    /* Vertical offsets */
    .top-offset { margin-top: 3rem; }
    .top-offset-lg { margin-top: 6rem; }

    /* Rows for side-by-side images */
    .image-row {
      display: flex;
      flex-wrap: wrap;
      gap: 4rem;
      margin-bottom: 6rem;
    }

    .image-row .image-block {
      margin-bottom: 0;
      flex: 1 1 0;
    }

    @media (max-width: 768px) {
      .image-row {
        flex-direction: column;
      }

      .image-block.small,
      .image-block.medium,
      .image-block.large,
      .image-block.xlarge {
        max-width: 100%;
      }

      .top-offset,
      .top-offset-lg {
        margin-top: 0;
      }
    }
  
    /* ==================== */
    /* Footer */
    /* ==================== */

    .site-footer {
      padding: 6rem 1rem 3rem;
      background: rgba(248,250,252,0.6);
      border-top: 1px solid rgba(0,0,0,0.05);
    }

    .footer-title {
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }

    .footer-text {
      font-size: 0.95rem;
      color: var(--bs-secondary);
      max-width: 26rem;
    }

    .footer-newsletter .form-control {
      border-radius: 0.35rem;
      font-size: 0.9rem;
    }

    .footer-newsletter .btn {
      border-radius: 0.35rem;
      font-size: 0.9rem;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }

    .footer-social {
      display: flex;
      gap: 1.25rem;
      font-size: 1.2rem;
    }

    .footer-social a {
      color: var(--bs-secondary);
      transition: color .2s ease;
    }

    .footer-social a:hover {
      color: var(--bs-body-color);
    }

    .footer-legal a {
      font-size: 0.9rem;
      color: var(--bs-secondary);
      text-decoration: none;
      transition: color .2s ease;
    }

    .footer-legal a:hover {
      color: var(--bs-body-color);
    }

    .footer-legal span {
      margin: 0 0.5rem;
      color: var(--bs-secondary);
    }

    .footer-bottom {
      font-size: 0.85rem;
      color: var(--bs-secondary);
    }

    .footer-legal-bar {
      padding: 1.5rem 1rem;
      background: rgba(248,250,252,0.8);
      border-top: 1px solid rgba(0,0,0,0.06);
      font-size: 0.85rem;
    }

    .footer-legal-bar a {
      color: var(--bs-secondary);
      text-decoration: none;
      transition: color .2s ease;
    }

    .footer-legal-bar a:hover {
      color: var(--bs-body-color);
    }

    .footer-legal-bar span {
      color: var(--bs-secondary);
    }



    /* ==================== */
    /* Modal Animations */
    /* ==================== */

    .fade-slide-in {
      animation: fadeSlideIn 0.4s ease both;
    }

    @keyframes fadeSlideIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .fade-on-scroll {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-on-scroll.visible {
      opacity: 1;
      transform: translateY(0);
    }

  

    /* ==================== */
    /* Portfolio Filters */
    /* ==================== */

    .portfolio-filters {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .filter-btn {
      background: none;
      border: none;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--bs-secondary);
      padding: 0.25rem 0.5rem;
      position: relative;
      transition: color .2s ease;
    }

    .filter-btn::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: -0.25rem;
      height: 1.5px;
      background: currentColor;
      opacity: 0;
      transform: scaleX(0.6);
      transition: opacity .2s ease, transform .2s ease;
    }

    .filter-btn.active,
    .filter-btn:hover {
      color: var(--bs-body-color);
    }

    .filter-btn.active::after,
    .filter-btn:hover::after {
      opacity: 1;
      transform: scaleX(1);
    }


/* Karten leicht abgerundet, Buttons flacher */
.card {
    border-radius: 0.35rem;
    border: none;
}
.btn-dark {
    border-radius: 0.25rem;
    padding: 0.5rem 1.25rem;
}
.carousel-inner img {
    border-radius: 0.25rem;
}


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

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


.scroll-margin {
  scroll-margin-top: 6rem; /* whatever is a nice number that gets you past the header */
}