/* ========== MEDIENAGENTUR BABELSBERG STYLES ========== */
  
  /* SAFARI-SPECIFIC FIX: Block red artifacts on Leistungen button */
  a[href="#services"],
  .hero-cta-secondary {
      background: transparent !important;
      background-image: none !important;
      background-color: transparent !important;
      border: 2px solid rgba(255, 255, 255, 0.3) !important;
      color: rgba(255, 255, 255, 0.9) !important;
      position: relative !important;
      overflow: hidden !important;
      box-shadow: none !important;
      outline: none !important;
      /* Safari-specific properties */
      -webkit-appearance: none !important;
      -webkit-tap-highlight-color: transparent !important;
      -webkit-touch-callout: none !important;
      -webkit-user-select: none !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
  }
  
  /* Block any pseudo-elements that might cause red artifacts */
  a[href="#services"]::before,
  a[href="#services"]::after,
  .hero-cta-secondary::before,
  .hero-cta-secondary::after {
      display: none !important;
      content: none !important;
      background: transparent !important;
  }
  
  /* Safari-specific link state fixes */
  a[href="#services"]:link,
  a[href="#services"]:visited,
  a[href="#services"]:hover,
  a[href="#services"]:active,
  .hero-cta-secondary:link,
  .hero-cta-secondary:visited,
  .hero-cta-secondary:hover,
  .hero-cta-secondary:active {
      background: transparent !important;
      background-image: none !important;
      background-color: transparent !important;
      border: 2px solid rgba(255, 255, 255, 0.3) !important;
      color: rgba(255, 255, 255, 0.9) !important;
      box-shadow: none !important;
      outline: none !important;
      -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
  }
  
  /* IMMEDIATE FIX: Prevent red artifacts during page construction */
  a[href="#services"] {
      background: transparent !important;
      color: rgba(255, 255, 255, 0.9) !important;
      border: 2px solid rgba(255, 255, 255, 0.3) !important;
      text-decoration: none !important;
      box-shadow: none !important;
      outline: none !important;
  }
  
  /* Prevent ALL link default styles during load */
  a[href="#services"]:link,
  a[href="#services"]:visited,
  a[href="#services"]:hover,
  a[href="#services"]:active,
  a[href="#services"]:focus {
      background: transparent !important;
      color: rgba(255, 255, 255, 0.9) !important;
      border: 2px solid rgba(255, 255, 255, 0.3) !important;
      text-decoration: none !important;
      box-shadow: none !important;
      outline: none !important;
  }
  
  /* Force immediate styling override for webkit/blink browsers */
  a[href="#services"] {
      -webkit-appearance: none !important;
      -moz-appearance: none !important;
      appearance: none !important;
      -webkit-tap-highlight-color: transparent !important;
      -webkit-touch-callout: none !important;
      -webkit-user-select: none !important;
      -moz-user-select: none !important;
      -ms-user-select: none !important;
      user-select: none !important;
      /* BLOCK ALL GRADIENTS AND EFFECTS */
      background-image: none !important;
      background-attachment: initial !important;
      background-clip: initial !important;
      background-origin: initial !important;
      background-position: initial !important;
      background-repeat: initial !important;
      background-size: initial !important;
      filter: none !important;
      -webkit-filter: none !important;
      backdrop-filter: blur(10px) !important;
      /* FORCE EXACT COLORS */
      border-color: rgba(255, 255, 255, 0.3) !important;
      border-style: solid !important;
      border-width: 2px !important;
  }
  
  /* BLOCK ARTIFACTS FROM PARENT ELEMENTS */
  .hero-buttons a[href="#services"] {
      background: transparent !important;
      background-image: none !important;
      filter: none !important;
      box-shadow: none !important;
  }
  
  /* BLOCK ANY PSEUDO-ELEMENTS THAT MIGHT CAUSE RED GRADIENTS */
  a[href="#services"]::before,
  a[href="#services"]::after,
  a[href="#services"] *::before,
  a[href="#services"] *::after {
      display: none !important;
      content: none !important;
      background: transparent !important;
      background-image: none !important;
      border: none !important;
      box-shadow: none !important;
  }
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  :root {
      --primary-blue: #0f4d81;
      --secondary-blue: #0a3d66;
      --light-blue: #e8f0fa;
      --dark-blue: #073154;
      --accent-orange: #ff6b35;
      --text-dark: #1a1a1a;
      --text-light: #666;
      --bg-light: #f8f9fa;
      --white: #ffffff;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  html {
      scroll-behavior: smooth;
  }
  
  body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      line-height: 1.6;
      color: var(--text-dark);
      overflow-x: hidden;
      background: var(--white);
  }
  
  /* Remove white borders from all links */
  a {
      border: none !important;
      outline: none !important;
      text-decoration: none;
      box-shadow: none !important;
  }
  
  /* Specific fix for footer links */
  .footer-links a,
  .footer-section a,
  .footer a,
  .footer-links ul li a,
  .footer ul li a,
  footer a,
  footer .footer-links a {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
      background: transparent !important;
      text-decoration: none !important;
  }
  
  /* Target specific footer service links */
  .footer-links li a[href="#services"] {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
      background: transparent !important;
  }
  
  /* Specific fix for header navigation links - EXCLUDE nav-cta - DO NOT override hover effects */
  .nav-link:not(.nav-cta),
  .navbar a:not(.nav-cta),
  .nav-menu a:not(.nav-cta),
  .nav-menu .nav-link:not(.nav-cta) {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
      /* Remove background override to allow original CSS to work */
  }
  
  /* Restore nav-cta button styling */
  .nav-cta {
      background: linear-gradient(135deg, var(--accent-orange), #ff8c5a) !important;
      color: white !important;
      border: none !important;
      outline: none !important;
      box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4) !important;
  }
  
  .nav-cta:hover {
      background: linear-gradient(135deg, var(--accent-orange), #ff8c5a) !important;
      box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4) !important;
  }
  
  /* FORCE hover effects specifically for Leistungen link */
  a[href="#services"].nav-link {
      position: relative !important;
      transition: all 0.3s ease !important;
  }
  
  a[href="#services"].nav-link:hover {
      color: var(--accent-orange) !important;
      color: #ff6b35 !important;
  }
  
  /* Force text color with maximum specificity */
  .nav-menu li a[href="#services"].nav-link:hover,
  .navbar .nav-menu li a[href="#services"].nav-link:hover {
      color: #ff6b35 !important;
      -webkit-text-fill-color: #ff6b35 !important;
  }
  
  a[href="#services"].nav-link::after {
      content: '' !important;
      position: absolute !important;
      bottom: -5px !important;
      left: 0 !important;
      width: 0 !important;
      height: 3px !important;
      background: linear-gradient(90deg, var(--accent-orange), #ff8c5a) !important;
      transition: width 0.3s ease !important;
      border-radius: 2px !important;
      display: block !important;
  }
  
  a[href="#services"].nav-link:hover::after {
      width: 100% !important;
  }
  

/* Navigation - Sticky Header Style */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 77, 129, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(15, 77, 129, 0.2);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 100px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), #ff8c5a);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--accent-orange);
}

.nav-link.active {
    color: var(--accent-orange);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-orange), #ff8c5a);
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section - Osty Style */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f4d81 0%, #1a5c96 50%, #0a3d66 100%);
    overflow: hidden;
    padding-top: 140px; /* Account for fixed header height (100px logo + 32px padding + 8px buffer) */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: calc(50% - 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 1s 1.1s forwards;
    cursor: pointer;
    z-index: 10;
    pointer-events: all;
}

.scroll-indicator::after {
    content: '';
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: bounce 2s infinite;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px); /* Account for fixed header height */
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards;
    min-height: 1.2em;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 1s 0.5s forwards;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s 0.7s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c5a);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s 0.9s forwards;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: none;
    backdrop-filter: blur(10px);
    box-shadow: none !important;
    outline: none !important;
}

/* Enable transitions only after page load */
.page-loaded .hero-cta-secondary {
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: white !important;
    transform: translateY(-2px);
}

.hero-cta-secondary:visited,
.hero-cta-secondary:active,
.hero-cta-secondary:focus {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.hero-bg-element {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    filter: blur(80px);
    animation: float 6s ease-in-out infinite;
}

.hero-bg-element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-bg-element-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.hero-bg-element-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 77, 129, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 77, 129, 0.15);
    border-color: var(--primary-blue);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(15, 77, 129, 0.3);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.service-preview {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-toggle {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(15, 77, 129, 0.3);
    align-self: flex-start;
}

.service-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 77, 129, 0.4);
    background: linear-gradient(135deg, var(--secondary-blue), var(--dark-blue));
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 77, 129, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 77, 129, 0.3);
    transform: translateY(-50px);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.modal-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.modal-body li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.modal-body strong {
    color: var(--primary-blue);
}

.modal-footer {
    padding: 2rem;
    background: rgba(15, 77, 129, 0.02);
    border-top: 1px solid rgba(15, 77, 129, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-top: auto;
}

.modal-footer .cookie-btn-primary {
    margin: 0.5rem 0;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
        padding-right: 3rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-footer .cookie-btn-primary {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    position: relative;
    overflow: hidden;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.2rem;
}

.stat-number span {
    font-size: 2rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Client Trust Section */
.client-trust {
    padding: 6rem 0;
    background: var(--bg-light);
}

.client-logos-container {
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.client-logos-slider {
    display: flex;
    transition: transform 0.3s ease;
    gap: 2rem;
}

.client-logos-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(15, 77, 129, 0.08);
    border: 1px solid rgba(15, 77, 129, 0.1);
    transition: var(--transition);
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 77, 129, 0.15);
}

.client-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition);
}

.client-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.client-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 77, 129, 0.95), rgba(10, 61, 102, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.client-logo:hover .client-overlay {
    opacity: 1;
}

.client-services {
    text-align: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 1rem;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.client-logo:hover .client-services {
    transform: translateY(0);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue), #f0f7ff);
    border-radius: 10px;
    border: 2px dashed rgba(15, 77, 129, 0.3);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.client-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.client-nav-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.client-nav-btn:hover {
    background: var(--dark-blue);
    transform: scale(1.1);
}

.client-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.client-indicators {
    display: flex;
    gap: 0.5rem;
}

.client-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.client-indicator.active {
    background: var(--primary-blue);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-blue);
    font-family: serif;
    opacity: 0.3;
}

.stars {
    color: #ffa500;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--dark-blue);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.2rem;
}

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

.client-logos h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 2rem;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.logo-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(15, 77, 129, 0.08);
    border: 1px solid rgba(15, 77, 129, 0.1);
    font-weight: 600;
    color: var(--dark-blue);
    transition: var(--transition);
    font-size: 0.9rem;
}

.logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 77, 129, 0.12);
    border-color: var(--primary-blue);
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Desktop portfolio slider should display as normal grid */
.portfolio-slider {
    display: contents;
}

/* Hide mobile portfolio on desktop */
.portfolio-mobile {
    display: none;
}

/* Hide mobile portfolio container on desktop */
.portfolio-mobile-container {
    display: none;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 77, 129, 0.1);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 77, 129, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(15, 77, 129, 0.8));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    padding: 1rem;
}

.portfolio-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 77, 129, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f7ff 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(15, 77, 129, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(15, 77, 129, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.whatsapp-button {
    display: inline-block;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 77, 129, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    background: white;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(15, 77, 129, 0.1);
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(15, 77, 129, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(15, 77, 129, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(15, 77, 129, 0.98), rgba(7, 49, 84, 0.98));
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Services Navigation nur für mobile Geräte anzeigen */
.services-nav {
    display: none;
}

/* Desktop Services Grid - Original Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.services-slider {
    display: contents;
}

/* Hide mobile tabs on desktop */
.services-mobile-tabs {
    display: none;
}

.services-content {
    display: contents;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-slider {
        display: contents;
    }
    
    .services-mobile-tabs {
        display: none;
    }
    
    .services-content {
        display: contents;
    }
    
    .service-card {
        padding: 2rem;
        min-height: 280px;
        display: block !important;
    }
    
    .client-logos-slide {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        margin-top: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta-secondary {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-cta {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        min-width: 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 110px; /* Account for smaller mobile header (70px logo + 32px padding + 8px buffer) */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: calc(100vh - 110px); /* Account for smaller mobile header height */
    }
    
    .logo {
        height: 70px;
    }
}

/* Page-specific styles for impressum.php and datenschutz.php */
/* Page Content */
.page-content {
    padding-top: 140px; /* Account for fixed header height (100px logo + 32px padding + 8px buffer) */
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem;
    background: var(--bg-light);
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.back-link {
    display: inline-block;
    color: var(--accent-orange);
    text-decoration: none;
    margin-bottom: 3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-link:hover {
    transform: translateX(-5px);
}

.content-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(15, 77, 129, 0.1);
    margin-bottom: 2rem;
}

.content-card h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-card ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-card li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.content-card a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.content-card a:hover {
    text-decoration: underline;
}

.contact-box {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-blue);
}

.contact-box p {
    margin-bottom: 0;
}

/* Additional responsive styles for page content */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .page-content {
        padding-top: 110px; /* Account for smaller mobile header (70px logo + 32px padding + 8px buffer) */
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-card {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Zusätzliche mobile Optimierungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile Services - Identische Boxen als Swipe-Slider */
    .services-grid {
        overflow: hidden;
        position: relative;
        padding: 0 0 1rem 1rem; /* Add bottom padding for shadow */
        margin: 0 -1rem; /* Compensate for container padding */
    }
    
    .services-slider {
        display: flex;
        transition: transform 0.6s ease;
        touch-action: pan-x;
        padding-left: 0;
    }
    
    /* Move first service card further left on mobile - but prevent overflow */
    .services-slider .service-card:first-child {
        margin-left: -0rem;
        max-width: calc(100vw - 4rem);
    }
    
    .service-card {
        flex: none;
        width: calc(100vw - 6rem);
        margin: 0 1rem;
        padding: 1.5rem;
        background: var(--white);
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(15, 77, 129, 0.1);
        border: 1px solid rgba(15, 77, 129, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }
    
    .service-card:last-child {
        margin-right: 0;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(15, 77, 129, 0.15);
    }
    
    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--light-blue), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .service-card:hover::before {
        opacity: 1;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: var(--dark-blue);
        position: relative;
        z-index: 1;
        line-height: 1.3;
    }
    
    .service-preview {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        color: var(--text-light);
        position: relative;
        z-index: 1;
        flex-grow: 1;
    }
    
    .service-toggle {
        font-size: 0.85rem;
        padding: 0.7rem 1.3rem;
        border-radius: 25px;
        position: relative;
        z-index: 1;
        margin-top: auto;
    }
    
    /* Hide desktop portfolio on mobile */
    .portfolio-desktop {
        display: none;
    }
    
    /* Show mobile portfolio */
    .portfolio-mobile {
        display: block;
        overflow: hidden;
        position: relative;
        padding: 0 0 1rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        z-index: 10; /* Higher than services slider */
    }
    
    /* Mobile Portfolio Container */
    .portfolio-mobile-container {
        display: block;
        overflow: hidden;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 10;
        touch-action: pan-y;
    }
    
    /* Portfolio Navigation Buttons */
    .portfolio-nav-buttons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 1rem;
        right: 1rem;
        transform: translateY(-50%);
        padding: 0;
        z-index: 20;
        pointer-events: none;
    }
    
    .portfolio-nav-btn {
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary-blue);
        border: 2px solid rgba(15, 77, 129, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 20;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        pointer-events: auto;
        backdrop-filter: blur(10px);
        font-weight: 600;
    }
    
    .portfolio-nav-btn:active {
        background: rgba(255, 255, 255, 1);
        transform: scale(0.95);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
        border-color: var(--primary-blue);
    }
    
    .portfolio-nav-btn:disabled {
        background: rgba(200, 200, 200, 0.5);
        color: rgba(100, 100, 100, 0.7);
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        opacity: 0.4;
        border-color: rgba(200, 200, 200, 0.3);
    }
    
    /* Mobile Portfolio Slider */
    .portfolio-mobile-slider {
        display: flex;
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        touch-action: pan-y;
    }
    
    .portfolio-mobile-item {
        flex: none;
        width: calc(100vw - 5rem);
        margin: 0 1.5rem 0 0;
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(15, 77, 129, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-sizing: border-box;
        height: 320px;
        display: flex;
        flex-direction: column;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
    
    .portfolio-mobile-item:first-child {
        margin-left: 0.5rem;
    }
    
    .portfolio-mobile-item:last-child {
        margin-right: 1.5rem;
    }
    
    .portfolio-mobile-item:active {
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(15, 77, 129, 0.2);
    }
    
    .portfolio-mobile-image {
        height: 60%;
        overflow: hidden;
        border-radius: 15px 15px 0 0;
        flex-shrink: 0;
    }
    
    .portfolio-mobile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .portfolio-mobile-content {
        height: 40%;
        background: rgba(0, 51, 102, 0.98);
        color: white;
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        border-radius: 0 0 15px 15px;
    }
    
    .portfolio-mobile-content h4 {
        font-size: 1rem;
        margin: 0.5rem 0 0.5rem 0;
        color: white;
        font-weight: 600;
    }
    
    .portfolio-mobile-content p {
        font-size: 0.8rem;
        margin: 0.3rem 0 0.8rem 0;
        color: white;
        opacity: 0.9;
        line-height: 1.4;
    }
    
    .portfolio-mobile-tags {
        display: flex;
        gap: 0.3rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .portfolio-mobile-tags span {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 15px;
        font-weight: 500;
        backdrop-filter: blur(5px);
    }
    
    .portfolio-mobile-item:active {
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(15, 77, 129, 0.2);
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .client-logos-slide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-logo {
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-cta,
    .hero-cta-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .page-content {
        padding-top: 100px;
    }
    
    .scroll-indicator {
        bottom: 1rem;
        margin-top: 2rem;
    }
    
    
    /* Desktop Client-Logos */
    .client-logos-desktop {
        position: relative;
        overflow: hidden;
        touch-action: pan-x;
    }
    
    /* Mobile Client-Logos - Versteckt auf Desktop */
    .client-logos-mobile {
        display: none;
    }
    
    .client-logos-slider {
        display: flex;
        transition: transform 0.3s ease;
        width: 200%;
        touch-action: pan-x;
    }
    
    /* Mobile Client Carousel */
    .client-mobile-carousel {
        display: flex;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }
    
    .client-mobile-item {
        flex: none;
        width: 100vw;
        padding: 2rem;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .client-mobile-item a {
        display: block;
        width: 100%;
        max-width: 200px;
        padding: 2rem;
        background: white;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(15, 77, 129, 0.1);
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .client-mobile-item a:active {
        transform: scale(0.95);
        box-shadow: 0 5px 15px rgba(15, 77, 129, 0.2);
    }
    
    .client-mobile-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        filter: grayscale(30%);
        transition: filter 0.3s ease;
    }
    
    .client-mobile-item:active img {
        filter: grayscale(0%);
    }
    
    /* Mobile Dots Navigation */
    .client-mobile-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .client-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(15, 77, 129, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        outline: none;
    }
    
    .client-dot.active {
        background: var(--primary-blue);
        transform: scale(1.2);
    }
    
    .client-dot:active {
        transform: scale(0.9);
    }
    
    .client-logos-slide {
        min-width: 50%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    /* ============================================
       MOBILE LOGO CAROUSEL - KREATIVE VERSION
       ============================================ */
    
    /* Desktop Version verstecken auf mobilen Geräten */
    .client-logos-container {
        display: none;
    }
    
    /* Mobile Logo Carousel Container */
    .client-logos-mobile-carousel {
        display: block;
        position: relative;
        margin-top: 2rem;
        overflow: hidden;
        padding: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        z-index: 10;
        touch-action: pan-y;
    }
    
    /* Carousel Slider */
    .client-carousel-slider {
        display: flex;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        touch-action: pan-y;
    }
    
    /* Einzelne Logo Cards */
    .client-mobile-card {
        flex: none;
        width: calc(100vw - 4rem);
        margin: 0 1rem 0 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-radius: 15px;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(15, 77, 129, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        border: 1px solid rgba(15, 77, 129, 0.1);
        overflow: hidden;
        box-sizing: border-box;
        height: 180px;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Erstes Element - linker Abstand */
    .client-mobile-card:first-child {
        margin-left: 1rem;
    }
    
    /* Letztes Element - rechter Abstand */
    .client-mobile-card:last-child {
        margin-right: 1rem;
    }
    
    .client-mobile-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    }
    
    /* Logo Styling */
    .client-mobile-card img {
        width: auto;
        height: 80px;
        max-width: 200px;
        object-fit: contain;
        margin-bottom: 1rem;
        filter: grayscale(20%);
        transition: all 0.3s ease;
    }
    
    .client-mobile-card:hover img {
        filter: grayscale(0%);
        transform: scale(1.05);
    }
    
    /* Client Name */
    .client-mobile-name {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-blue);
        margin-bottom: 0.5rem;
        text-decoration: none;
    }
    
    /* Services versteckt auf mobil */
    .client-mobile-services {
        display: none;
    }
    
    /* Navigation Dots */
    .client-mobile-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .client-mobile-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(15, 77, 129, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        outline: none;
        box-sizing: border-box;
    }
    
    .client-mobile-dot.active {
        background: var(--primary-blue);
        transform: scale(1.3);
        box-shadow: 0 0 0 3px rgba(15, 77, 129, 0.2);
    }
    
    .client-mobile-dot:active {
        transform: scale(0.9);
    }
    
    /* Swipe Hint */
    .client-swipe-hint {
        text-align: center;
        margin-top: 1rem;
        color: rgba(15, 77, 129, 0.6);
        font-size: 0.8rem;
        font-weight: 500;
        padding: 0 1rem;
    }
    
    .client-swipe-hint::before {
        content: '← ';
    }
    
    .client-swipe-hint::after {
        content: ' →';
    }
    
    /* Card Hover Effects */
    .client-mobile-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(15, 77, 129, 0.15);
    }
    
    /* Link Styling */
    .client-mobile-card a {
        text-decoration: none;
        color: inherit;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .client-mobile-card a:hover {
        color: var(--primary-blue);
    }
    
    /* Auto-Play Indicator */
    .client-auto-indicator {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: rgba(15, 77, 129, 0.2);
        border-radius: 1px;
        overflow: hidden;
    }
    
    .client-auto-indicator::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--primary-blue);
        animation: autoProgress 4s linear infinite;
    }
    
    @keyframes autoProgress {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    /* Pause Auto-Play on touch */
    .client-logos-mobile-carousel.paused .client-auto-indicator::before {
        animation-play-state: paused;
    }
    
    /* Footer Social Icons center setzen */
    .footer-content {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .footer-brand,
    .footer-links {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    /* Mobile Copyright-Text Zeilenumbruch */
    .mobile-break {
        display: block;
    }
    
}

/* Desktop-Version: Mobile Carousel ausblenden */
@media (min-width: 769px) {
    .client-logos-mobile-carousel {
        display: none;
    }
    
    .client-logos-container {
        display: block;
    }
    
    /* Desktop Copyright-Text einzeilig */
    .mobile-break {
        display: none;
    }
}

/* Landscape-Modus für mobile Geräte */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 100px;
    }
    
    .hero-content {
        min-height: calc(100vh - 100px);
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
}

/* Touch-spezifische Optimierungen */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .nav-link:active::after {
        width: 100%;
    }
    
    .hero-cta:hover,
    .hero-cta-secondary:hover {
        transform: none;
    }
    
    .hero-cta:active,
    .hero-cta-secondary:active {
        transform: scale(0.98);
    }
}

/* Performance-Optimierungen für mobile Geräte */
@media (max-width: 768px) {
    /* Hero-Title: Feste Höhe gegen Springen */
    .hero-title {
        height: 3.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
    }
    
    /* Reduzierte Animationen für bessere Performance */
    .hero-bg-element {
        animation: none;
        display: none;
    }
    
    /* Vereinfachte Schatten für bessere Performance */
    .service-card {
        box-shadow: 0 4px 12px rgba(15, 77, 129, 0.1);
    }
    
    .service-card:hover {
        box-shadow: 0 6px 16px rgba(15, 77, 129, 0.15);
    }
    
    /* Reduzierte Blur-Effekte */
    .hero-cta-secondary {
        backdrop-filter: none;
    }
    
    /* Optimierte Transformationen */
    .service-card,
    .portfolio-item,
    .client-logo {
        will-change: transform;
    }
    
    /* Reduzierte Motion für besser Performance */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ========== COOKIE BANNER STYLES ========== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), #ff8c5a);
    color: white;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 90, 0.4);
}

.cookie-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Cookie Modal */
.cookie-modal {
    z-index: 10001;
}

.cookie-modal-content {
    max-width: 600px;
    background: white;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 77, 129, 0.1);
    border-radius: 12px;
    background: rgba(15, 77, 129, 0.02);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.cookie-category p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: #4CAF50;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .cookie-btn-settings {
        flex: none;
        width: 100%;
    }
    
    .cookie-modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        font-size: 0.8rem;
        padding: 0.7rem 0.9rem;
    }
}
