/* Font Face Declarations */
@font-face {
  font-family: 'AkzidenzGrotesk';
  src: url('../fonts/AkzidenzGroteskRegular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Bold weight font not bundled. If you add '../fonts/AkzidenzGroteskBold.woff2',
   you can re-enable a real 700 face here for crisper bold. For now we allow
   synthetic bold to keep the family consistent across browsers. */

@font-face {
  font-family: 'AkzidenzGroteskExtended';
  src: url('../fonts/AkzidenzGroteskExtended.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* A Modern CSS Reset */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Animation setup - Elements start hidden for animation */
main {
  opacity: 1;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* iOS Safari viewport fixes for sticky header */
html {
  /* Prevent iOS Safari viewport jumping */
  -webkit-text-size-adjust: 100%;
    /* Important: don't apply transforms to html, it breaks position: fixed overlays */
    /* Cross-browser font smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Design Tokens */
:root {
  /* Colors */
  --color-primary-red: #bf2d4c;
  --color-primary-red-rgb: 191, 45, 76; /* RGB value of #bf2d4c */
  --color-primary-light: #e73959; /* A lighter shade for pulsating effect */
  --color-background: #FFFFFF;
  --color-text: #333333;
    --color-text-secondary: #666666;
  --color-background-secondary: #F5F5F5;
  --color-border: #DDDDDD;

  /* Scrollbar Colors */
  --scrollbar-track: #f1f1f1;
  --scrollbar-thumb: #c1c1c1;
  --scrollbar-thumb-hover: var(--color-primary-red);

  /* Typography */
  --font-family-base: 'AkzidenzGrotesk', sans-serif;
  --font-family-heading: 'AkzidenzGroteskExtended', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem; /* 8px */
  --space-s: 1rem;   /* 16px */
  --space-m: 1.5rem; /* 24px */
  --space-l: 2rem;   /* 32px */
  --space-xl: 3rem;  /* 48px */
}

/* Global Typography */
body {
  font-family: var(--font-family-base);
  color: var(--color-text);
  background-color: var(--color-background);
  /* Improve font rendering across browsers */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
    /* Allow synthetic bold/italic since no true bold file is bundled */
    font-synthesis: weight style;
  /* iOS Safari sticky header fixes */
  -webkit-overflow-scrolling: touch;
  /* Prevent zoom on input focus on iOS */
  -webkit-text-size-adjust: 100%;
  /* Prevent inappropriate word breaking */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
}

/* Keep bold text in the same family and allow synthetic bold if no 700 face exists */
b, strong {
    font-weight: 700;
    font-family: inherit;
    font-synthesis: weight style;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  margin-bottom: var(--space-s);
  text-wrap: balance;
  position: relative;
  /* Prevent inappropriate word breaking in headings */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
}



h1 { font-size: clamp(2.2rem, 5vw, 3.052rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.441rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.953rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.563rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-s);
}

a {
  color: var(--color-primary-red);
  text-decoration: none;
  transition: text-decoration 0.2s ease-in-out;
}

a:hover, a:focus {
  text-decoration: underline;
}

ul, ol {
  margin-bottom: var(--space-s);
  padding-left: var(--space-m);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

/* Site Header */
.site-header {
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-background);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 80px;
    /* Ensure a known starting point and smooth transition; add !important to beat overrides */
    box-shadow: none !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                            box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                            background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: box-shadow, background-color, transform;
}

/* Header with scroll shadow effect */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Add top padding to body to compensate for fixed header */
body {
    /* Use measured header height; conservative fallback to 64px to avoid excessive gap before JS runs */
    padding-top: var(--header-height, 64px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* For positioning children */
  height: 100%;
}

.logo {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center; /* Ensure vertical alignment with hamburger */
  height: 48px; /* Match hamburger height for alignment */
}

/* Desktop: slightly larger logo for better visibility */
@media (min-width: 1024px) {
    .site-header .logo {
    height: 50px; /* Slightly reduced from 60px after feedback */
    }
    .site-header .logo img {
    height: 50px !important; /* Keep image aligned with container height */
        width: auto !important;
    }
}

/* Desktop Navigation - aligned to the right */
.main-nav {
  margin-left: auto; /* Push navigation to the right */
}

.main-nav ul {
  display: flex;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary-red);
    transform: scaleX(0);
    transform-origin: center left;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: center left;
}

.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: center left;
}

/* On hover out, animate from right */
.main-nav a:not(:hover):not(.active)::after {
    transform: scaleX(0);
    transform-origin: center right;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-red);
}

/* Desktop: Hide hamburger menu completely */
.hamburger-icon-container {
  display: none;
}

 .site-footer {
  background-color: var(--color-background-secondary);
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-l);
  margin-bottom: var(--space-l);
}

.footer-column h4 {
  margin-bottom: var(--space-m);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: var(--space-xs);
}

.footer-column a {
    text-decoration: none;
}

.copyright {
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-m);
  font-size: 0.9rem;
  color: #666;
}

/* Ensure no italic text appears in the footer */
.site-footer, .site-footer address, .site-footer em, .site-footer i {
    font-style: normal;
}

/* Ensure company name in Kontakt footer is bold */
.site-footer address strong {
    font-family: 'AkzidenzGrotesk', sans-serif;
    font-weight: 700;
}

/* Responsive Styles - Show hamburger when navigation links don't fit */
@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-background);
  }
  
    /* Hide desktop navigation */
    .main-nav {
        margin-left: 0; /* Reset desktop alignment */
        display: none;
        position: absolute;
        top: 100%; /* Position directly below the header */
        left: 0;
        right: 0;
        background-color: var(--color-background);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-m);
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        z-index: 999; /* High z-index to ensure it's above content */
    }
  
    .main-nav.mobile-nav-open {
        display: block;
    }
  
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-m); /* Increased spacing for better touch targets */
    }
  
    .main-nav li {
        opacity: 0; /* Start invisible for animation */
        transform: translateY(-10px);
        width: 100%;
    }
  
    .main-nav a {
        display: block;
        padding: var(--space-s) var(--space-xs);
        width: 100%; /* Full width for better clickability */
    }
  
    /* Show hamburger menu when navigation doesn't fit */
    .hamburger-icon-container {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        z-index: 1001;
    }
  
    body.nav-open {
        overflow: hidden;
    }
}

/* Medium screens - show hamburger only when navigation starts to get cramped */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-nav ul {
    gap: var(--space-s); /* Reduce gap to fit better */
  }
  
  .main-nav a {
    padding: var(--space-xs) var(--space-xs); /* Reduce padding */
    font-size: 0.9rem; /* Slightly smaller text */
  }
}

/* Enhanced desktop styles - ensure hamburger is hidden and nav is aligned properly */
@media (min-width: 769px) {
  .hamburger-icon-container {
    display: none !important; /* Force hide hamburger on desktop */
  }
  
  .main-nav {
    display: block !important; /* Force show navigation on desktop */
    position: static !important; /* Reset mobile positioning */
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-left: auto; /* Ensure right alignment on desktop */
  }
  
  .main-nav ul {
    flex-direction: row !important; /* Horizontal layout on desktop */
    gap: var(--space-m) !important;
  }
  
  .main-nav li {
    opacity: 1 !important; /* Always visible on desktop */
    transform: none !important;
    width: auto !important;
  }
  
  .main-nav a {
    display: inline-block !important; /* Reset mobile block display */
    padding: var(--space-xs) 0 !important; /* Reset mobile padding */
    width: auto !important; /* Reset mobile full width */
  }
}

/* Hero Section */
.hero {
  background-image: url('/images/072525_MALBUNBCKG.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--color-background-secondary);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__title,
.hero__subtitle {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__title {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-m);
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  white-space: normal !important;
}

/* Specific rules for title wrapper to prevent word breaking */
.title-wrapper {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  white-space: normal !important;
  word-spacing: normal !important;
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
  .hero__title,
  .title-wrapper {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -moz-hyphens: none !important;
  }
}

.hero__subtitle {
  font-size: 1.25rem;
  max-width: 800px; /* Increased from 700px to prevent orphaned words */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-l);
  /* Prevent inappropriate word breaking */
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  white-space: normal !important;
  /* Prevent orphaned words like "Vision" */
  text-wrap: balance;
  text-wrap: pretty;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Button Styles */
.button {
  display: inline-block;
  padding: clamp(0.5rem, 2vw, var(--space-s)) clamp(1rem, 3vw, var(--space-l));
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transform: translateX(-100%);
  opacity: 0;
  animation: none;
  animation-duration: 1s !important;
}

.button--primary {
  background-color: var(--color-primary-red);
  color: var(--color-background);
  border-color: var(--color-primary-red);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.button--primary:hover {
  background-color: var(--color-primary-red);
  border-color: var(--color-primary-red);
  color: var(--color-background);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  filter: brightness(0.9);
}

.button--primary:hover::before {
  animation-name: shine !important;
  animation-duration: 1s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: 1 !important;
}

/* Secondary Button Variant */
.button--secondary {
    background-color: var(--color-background-secondary);
    color: var(--color-text);
    border-color: var(--color-border);
}

.button--secondary:hover {
    background-color: #f0f0f0;
    border-color: #cccccc;
    color: var(--color-text);
    text-decoration: none;
}

/* iOS Safari button/link normalisation inside modals */
.mobile-filter-actions .button,
.mobile-filter-btn,
.mobile-filter-content button,
.mobile-filter-content .button {
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    color: inherit !important;
}

/* Restore intended colors for the primary mobile filter trigger button */
.mobile-filter-btn.button--primary {
    color: var(--color-background) !important; /* white text/icon on red */
}
.mobile-filter-btn .filter-icon,
.mobile-filter-btn .filter-text,
.mobile-filter-btn .filter-icon i {
    color: inherit !important; /* follow button text color */
}
.mobile-filter-content a,
.mobile-filter-content span,
.mobile-filter-content label,
.mobile-filter-content .mobile-filter-label {
    color: var(--color-text) !important;
    -webkit-text-fill-color: var(--color-text);
}

/* Ensure the clear/apply buttons keep the intended colors on iOS */
.mobile-filter-actions .mobile-filter-clear.button {
    color: var(--color-text) !important; /* dark text on light bg */
}
.mobile-filter-actions .mobile-filter-apply.button {
    color: var(--color-background) !important; /* white text on red */
}

/* Services Teaser Section */
.services-teaser {
    padding: var(--space-xl) 0;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-l);
}

.service-card {
    border: 1px solid var(--color-border);
    padding: var(--space-l);
    text-align: center;
    background-color: var(--color-background);
    border-radius: 4px;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -webkit-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -moz-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -ms-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -o-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-card:hover .service-card__icon {
    background-color: var(--color-primary-red);
    color: white;
    transform: scale(1.05);
}

.service-card__icon {
    color: var(--color-primary-red);
    margin-bottom: var(--space-m);
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: rgba(var(--color-primary-red-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--space-s);
}

/* Project Teaser Section */
.project-teaser {
    padding: var(--space-xl) 0;
    background-color: var(--color-background-secondary);
    position: relative;
    border-top: 6px solid var(--color-primary-red);
    border-bottom: 6px solid var(--color-primary-red);
}

.project-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/072525_LOGOPATTERN.svg');
    background-repeat: repeat;
    background-size: 442.7352px 382.08px;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.project-teaser::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background-secondary);
    opacity: 0.8;
    z-index: 1;
}

.project-teaser .container {
    position: relative;
    z-index: 2;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-l);
    margin-bottom: var(--space-l);
}

.project-card {
    background-color: var(--color-background);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -webkit-transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -moz-transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                     box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                     opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -ms-transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -o-transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                   box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                   opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

/* Force override for cached styles */
.project-grid .project-card,
article.project-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.project-grid .project-card:hover,
article.project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

.project-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card__content {
    padding: var(--space-m);
}

.project-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.project-card__category {
    color: #666;
    font-size: 0.9rem;
}

.teaser__action {
    text-align: center;
    margin-top: var(--space-l);
}

/* Trust Elements Section */
.trust-elements {
    padding: var(--space-xl) 0;
}

.logo-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem; /* Increased spacing between logos */
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-l) 0;
}

/* Partner logo links */
.partner-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.partner-logo-link:hover {
    transform: translateY(-3px) !important;
}

.logo-wall img {
    height: 60px; /* Explicit height ensures external SVGs render consistently */
    width: auto;
    max-height: none;
    max-width: 240px;
    object-fit: contain;
    filter: grayscale(0%) !important; /* Show real colors by default */
    opacity: 1 !important; /* Full opacity by default */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    cursor: pointer;
}

.partner-logo-link:hover img,
.logo-wall img:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.08) !important;
}

/* Force override for cached logo styles */
.trust-elements .logo-wall img,
.logo-wall .partner-logo-link img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.trust-elements .logo-wall .partner-logo-link:hover img,
.logo-wall .partner-logo-link:hover img {
    transform: scale(1.08) !important;
}

/* Responsive adjustments for partner logos */
@media (max-width: 768px) {
    .logo-wall {
        gap: 3rem; /* Maintain good spacing on tablets */
        flex-direction: row; /* Keep horizontal on tablets */
    }

    .logo-wall img { height: 56px; max-width: 200px; }
}

@media (max-width: 600px) {
    .logo-wall {
        gap: 2.5rem; /* Adequate spacing on smaller screens */
        flex-direction: column; /* Stack vertically on small screens */
    }

    .logo-wall img { height: 52px; max-width: 180px; }
}

@media (max-width: 480px) {
    .logo-wall {
        gap: 2rem; /* Good spacing on mobile */
    }

    .logo-wall img { height: 48px; max-width: 160px; }
}

/* Projects Page */


.filter-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-s);
    margin-bottom: var(--space-l);
}

/* Mobile Filter System */
.mobile-filter-trigger {
    display: none;
    justify-content: center;
    margin-bottom: var(--space-l);
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-m);
    padding-right: var(--space-m);
}

.mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.mobile-filter-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mobile-filter-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.mobile-filter-btn.loading {
    pointer-events: none;
}

.mobile-filter-btn.loading .filter-icon {
    animation: filterIconSpin 0.8s ease-in-out;
}

.filter-icon {
    font-size: 1.1em;
}

/* Mobile: remove iOS tap highlight in filter controls */
.mobile-filter-btn, .mobile-filter-actions .button, .mobile-filter-close {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Ensure Font Awesome icon aligns nicely */
.filter-icon i {
    display: inline-block;
    line-height: 1;
}

.active-filter-count {
    background-color: var(--color-background);
    color: var(--color-primary-red);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: var(--space-xs);
}

.active-filter-count:empty {
    display: none;
}

.mobile-filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.mobile-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-filter-modal.active .mobile-filter-overlay {
    opacity: 1;
}

.mobile-filter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-radius: 16px 16px 0 0;
    padding: var(--space-l);
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.mobile-filter-modal.active .mobile-filter-content {
    transform: translateY(0);
}

.mobile-filter-modal.active .mobile-filter-header {
    animation: slideInFade 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.mobile-filter-modal.active .mobile-filter-option {
    animation: slideInFade 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.mobile-filter-modal.active .mobile-filter-option:nth-child(1) {
    animation-delay: 0.15s;
}

.mobile-filter-modal.active .mobile-filter-option:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-filter-modal.active .mobile-filter-option:nth-child(3) {
    animation-delay: 0.25s;
}

.mobile-filter-modal.active .mobile-filter-option:nth-child(4) {
    animation-delay: 0.3s;
}

.mobile-filter-modal.active .mobile-filter-actions {
    animation: slideInFade 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s both;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-l);
    padding-bottom: var(--space-s);
    border-bottom: 1px solid var(--color-border);
}

.mobile-filter-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-text);
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.mobile-filter-close:hover {
    background-color: var(--color-background-secondary);
}

.mobile-filter-options {
    margin-bottom: var(--space-l);
}

.mobile-filter-option {
    display: flex;
    align-items: center;
    padding: var(--space-m);
    margin-bottom: var(--space-xs);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.mobile-filter-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mobile-filter-option:hover {
    background-color: var(--color-background-secondary);
    transform: translateX(4px);
}

.mobile-filter-option:hover::before {
    left: 100%;
}

.mobile-filter-option:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

.mobile-filter-option input[type="radio"]:checked + .mobile-filter-label {
    color: var(--color-primary-red);
    font-weight: 600;
}

.mobile-filter-option input[type="radio"] {
    margin-right: var(--space-s);
    transform: scale(1.2);
    accent-color: var(--color-primary-red);
}

.mobile-filter-label {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
}

.mobile-filter-actions {
    display: flex;
    gap: var(--space-s);
    padding-top: var(--space-s);
}

.mobile-filter-actions {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-filter-actions .button {
    flex: 1;
    justify-content: center;
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-filter-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-filter-actions .button:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* Animation Keyframes */
@keyframes filterIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .mobile-filter-btn,
    .mobile-filter-overlay,
    .mobile-filter-content,
    .mobile-filter-option,
    .mobile-filter-actions .button {
        transition: none;
        animation: none;
    }

    .mobile-filter-btn:hover {
        transform: none;
    }

    .mobile-filter-option:hover {
        transform: none;
    }

    .mobile-filter-actions .button:hover {
        transform: none;
    }

    .mobile-filter-modal.active .mobile-filter-header,
    .mobile-filter-modal.active .mobile-filter-option,
    .mobile-filter-modal.active .mobile-filter-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.button--filter {
    background-color: var(--color-background-secondary);
    color: var(--color-text);
    border-color: var(--color-border);
    padding: clamp(0.375rem, 1.5vw, 0.5rem) clamp(0.75rem, 2.5vw, 1rem);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    min-width: 60px;
    text-align: center;
}

.button--filter.active {
    background-color: var(--color-primary-red);
    color: var(--color-background);
    border-color: var(--color-primary-red);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.button--filter:hover:not(.active) {
    background-color: #f0f0f0;
    border-color: #cccccc;
    text-decoration: none;
}

/* Services Page */
.service-description {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-l);
    margin-bottom: var(--space-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .service-description {
        grid-template-columns: 1fr 1fr;
    }
    .service-description:nth-child(odd) .service-image {
        order: 2;
    }
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.service-text h2 {
    position: relative;
    padding-top: 15px;
}

.service-text h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary-red);
}

.faq-section {
    max-width: 800px;
    margin: var(--space-xl) auto;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: var(--space-m) 0;
    font-size: 1.25rem;
    font-family: var(--font-family-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
    transition: color 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* New styles for the accordion icon span */
.accordion-icon {
    font-size: 2rem;
    font-weight: normal;
    transform-origin: center;
    /* NO "transition" property here - anime.js will handle it */
}

.accordion-item.active .accordion-header {
    color: var(--color-primary-red);
    transition: color 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    /* All animations now handled by anime.js for unified control */
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .accordion-header {
        transition: none;
    }
}

.accordion-content p {
    padding-bottom: var(--space-m);
}

/* Company Page */
.about-us .lead {
    font-size: 1.25rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-xl) auto;
}

.values-section {
    background-color: var(--color-background-secondary);
    padding: var(--space-l) 0 var(--space-xl);
    position: relative;
    border-top: 6px solid var(--color-primary-red);
    border-bottom: 6px solid var(--color-primary-red);
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/072525_LOGOPATTERN.svg');
    background-repeat: repeat;
    background-size: 442.7352px 382.08px;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.values-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background-secondary);
    opacity: 0.8;
    z-index: 1;
}

.values-section .container {
    position: relative;
    z-index: 2;
}

.values-section .section-title {
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
}

.values-section .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    min-height: 3px;
    max-height: 3px;
    background-color: var(--color-primary-red);
    border-radius: 0;
    box-sizing: border-box;
}

.values-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    min-height: 3px;
    max-height: 3px;
    background-color: var(--color-primary-red);
    border-radius: 0;
    box-sizing: border-box;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-m);
    padding: var(--space-l) var(--space-m);
    margin-top: var(--space-m);
    max-width: 100%;
    box-sizing: border-box;
}

.value-card {
    text-align: center;
    background-color: var(--color-background);
    padding: var(--space-l);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -webkit-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -moz-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -ms-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -o-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    position: relative;
    z-index: 3;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 4;
}

.value-card h3 {
    color: var(--color-primary-red);
    margin-bottom: var(--space-s);
    position: relative;
    display: inline-block;
    font-size: clamp(1.125rem, 2.5vw, 1.953rem);
    word-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    max-width: 100%;
    text-align: center;
}

.value-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--color-primary-red);
    opacity: 0.5;
}

.value-card p {
    color: var(--color-text);
    line-height: 1.6;
    margin: var(--space-m) 0 0;
}

.team-section {
    padding: var(--space-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-l);
}

.team-member {
    text-align: center;
    background-color: var(--color-background);
    padding: var(--space-l);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -webkit-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -moz-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -ms-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    -o-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.team-member__image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto var(--space-m) auto;
    object-fit: cover;
    border: 4px solid var(--color-background);
    box-shadow: 0 0 0 2px var(--color-primary-red);
}

.team-member__name {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.team-member__title {
    color: var(--color-primary-red);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.form-group {
    margin-bottom: var(--space-m);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-s);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-red);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-red-rgb), 0.2);
}

#form-status {
    margin-top: var(--space-m);
    font-weight: bold;
}

.status-success, .status-error {
    animation: fadeIn 0.5s ease-out forwards;
}

.contact-details-section h2 {
    margin-bottom: var(--space-m);
}

.contact-details-section address {
    font-style: normal;
    margin-bottom: var(--space-m);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-l) 0;
}

.legal-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-m);
    color: var(--color-text);
    position: relative;
    padding-bottom: var(--space-xs);
}

.legal-content h2:first-of-type {
    margin-top: var(--space-l);
}

.legal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--color-primary-red);
    opacity: 0.8;
}

.legal-content h3 {
    margin-top: var(--space-l);
    margin-bottom: var(--space-s);
    color: var(--color-text);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

.legal-content p {
    line-height: 1.7;
    margin-bottom: var(--space-m);
    color: var(--color-text);
}

.legal-content address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: var(--space-m);
}

.legal-contact-info address {
    margin-bottom: 0;
}

/* Legal content sections for better organization */
.legal-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-l);
    background-color: var(--color-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-primary-red);
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    margin-top: 0;
}

/* Contact information styling */
.legal-contact-info {
    padding: var(--space-m) 0;
    margin: var(--space-s) 0;
    border-left: 3px solid var(--color-primary-red);
    padding-left: var(--space-m);
    background: linear-gradient(90deg, rgba(var(--color-primary-red-rgb), 0.03) 0%, transparent 100%);
}

.legal-contact-info p {
    margin-bottom: var(--space-xs);
    font-weight: 400;
}

.legal-contact-info p:last-child {
    margin-bottom: 0;
}

.legal-contact-info strong {
    color: var(--color-text);
    font-weight: 600;
}

.legal-contact-info a {
    color: var(--color-primary-red);
    font-weight: 500;
    transition: all 0.2s ease;
}

.legal-contact-info a:hover {
    color: var(--color-text);
    text-decoration: underline;
}



/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: var(--space-m) 0;
    }

    .legal-section {
        padding: var(--space-m);
        margin-bottom: var(--space-l);
    }

    .legal-content h2 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }

    .legal-content h3 {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding: var(--space-s);
        border-left-width: 3px;
    }

    .legal-contact-info {
        padding: var(--space-s) 0;
        padding-left: var(--space-s);
        border-left-width: 2px;
    }
}

/* Animation Styles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}



.project-card img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.project-card:hover img {
    transform: scale(1.08) !important;
}

/* Force override for cached image styles */
.project-grid .project-card img,
article.project-card img,
.project-card__image {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.project-grid .project-card:hover img,
article.project-card:hover img,
.project-card:hover .project-card__image {
    transform: scale(1.08) !important;
}



.button {
        position: relative;
        /* ...existing code... */
}

.button.is-loading {
        pointer-events: none;
        color: transparent; /* hide label but keep button size */
}

/* Modern, crisp spinner centered on the button, responsive */

/*
.button.is-loading::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.15) 100%);
    border-radius: inherit;
    animation: button-sweep 1.2s linear infinite;
    pointer-events: none;
    z-index: 2;
}
*/

/*
@keyframes button-sweep {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
*/

@media (max-width: 480px) {
    .button.is-loading::after {
        --spinner-size: 1.5em;
        min-width: 14px;
        min-height: 14px;
        max-width: 20px;
        max-height: 20px;
    }
}

/* Ensure spinner is visible on light buttons as well */
.button--secondary.is-loading::after,
.button.button--secondary.is-loading::after {
    border-color: rgba(0,0,0,0.35);
    border-top-color: rgba(0,0,0,0.85);
    border-right-color: rgba(0,0,0,0.85);
}

@keyframes button-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .button.is-loading::after {
        animation: none;
    }
}



/* Ensure card hover animations work consistently */
.service-card,
.project-card,
.team-member {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

/* Force hardware acceleration for smooth animations */
.main-nav a::after {
    transform: translateZ(0);
}

/* Enhanced navigation underline animation with higher specificity */
.site-header .main-nav a {
    position: relative !important;
}

.site-header .main-nav a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: var(--color-primary-red) !important;
    transform: scaleX(0) !important;
    transform-origin: center left !important;
    transition: transform 0.3s ease-out !important;
}

.site-header .main-nav a:hover::after {
    transform: scaleX(1) !important;
    transform-origin: center left !important;
}

.site-header .main-nav a.active::after {
    transform: scaleX(1) !important;
    transform-origin: center left !important;
}

.site-header .main-nav a:not(:hover):not(.active)::after {
    transform: scaleX(0) !important;
    transform-origin: center right !important;
    transition: transform 0.3s ease-out !important;
}

/* Page Hero Section */
.page-hero {
    background-color: var(--color-background-secondary);
    padding: var(--space-m) 0; /* Reduced from var(--space-l) for more compact layout */
    text-align: center;
    margin-bottom: var(--space-l); /* Reduced from var(--space-xl) to minimize excessive spacing */
    /* Ensure it's not hidden under the fixed header for both layout and anchor jumps */
    scroll-margin-top: var(--header-height, 80px);
}

/* Project-specific hero section styling */
body[data-page-type="project"] .page-hero,
.project-page .page-hero {
    background-color: #1d232a;
    color: #F0F0EC;
}

/* Vertically center hero content on project pages for balanced look */
.project-page .page-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* for absolute-positioned chevron without affecting layout */
    /* Reduced to ~75% of previous size */
    min-height: clamp(120px, 16.5vw, 210px);
    padding-block: var(--space-m);
}

/* Chevron trigger above title on project pages */
/* Move chevron to the right and align with modal title height */
.project-switch-trigger {
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    /* In-flow so the chevron + title + subtitle ensemble centers together */
    position: static;
    margin-bottom: var(--space-s);
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}
.project-switch-trigger:hover,
.project-switch-trigger:focus {
    outline: none;
    background: rgba(255,255,255,0.12);
    transform: translateY(1px);
    opacity: 1;
}
.project-switch-trigger i { font-size: 18px; line-height: 1; }

/* Related projects modal */
.related-projects-modal {
    position: fixed;
    inset: 0;
    display: block; /* keep in DOM for animations */
    z-index: 1100; /* above header */
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}
.related-projects-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.related-projects-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 250ms ease;
}
.related-projects-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -46%) scale(0.98);
    opacity: 0;
    width: min(100% - 2rem, 980px);
    max-height: calc(100% - 2rem);
    background: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 1rem 1rem 1.25rem;
    overflow: auto;
    transition: transform 280ms ease, opacity 280ms ease;
}
.related-projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 4px 8px 4px;
}
.related-projects-header { min-width: 0; }
.related-projects-title { flex: 1 1 auto; min-width: 0; margin: 0; line-height: 1.1; display: flex; align-items: center; }
.related-projects-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: nowrap; flex: 0 0 auto; min-width: 0; }
.related-projects-modal.show .related-projects-overlay { opacity: 1; }
.related-projects-modal.show .related-projects-content { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.related-projects-title {
    font-size: 1.25rem;
    margin: 0; /* keep header items aligned on the same Y */
    font-family: var(--font-family-heading);
}
.related-projects-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.related-project-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.related-project-card__image-wrap { aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.related-project-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-project-card__title { padding: 10px 12px; font-weight: 700; font-family: var(--font-family-heading); font-size: 1rem; }

/* Back to overview button style */
.related-projects-overview {
    display: inline-flex; /* align text vertically */
    align-items: center;   /* center text */
    height: 36px;          /* match close button height */
    margin: 0;
    padding: 0 12px;       /* horizontal padding only to preserve height */
    background: #1d232a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap; /* never wrap to two lines */
    line-height: 1; 
    font-size: clamp(0.78rem, 2.3vw, 0.95rem); /* shrink on small screens instead of wrapping */
}
.related-projects-overview:hover { filter: brightness(1.1); text-decoration: none; }

@media (max-width: 480px) {
  .related-projects-content {
    width: calc(100% - 1rem);
    max-height: calc(100% - 1rem);
    border-radius: 10px;
    padding: 0.75rem;
  }
    .related-projects-overview { font-size: clamp(0.75rem, 3.2vw, 0.9rem); padding: 6px 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .related-projects-modal,
    .related-projects-overlay,
    .related-projects-content {
        transition: none !important;
    }
}

/* Contact Status Modal */

.contact-status-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.contact-status-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.contact-status-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 250ms ease;
}

.contact-status-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -46%) scale(0.98);
    opacity: 0;
    width: min(100% - 2rem, 480px);
    background: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    transition: transform 280ms ease, opacity 280ms ease;
}

.contact-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0;
    margin-bottom: 1rem;
}

.contact-status-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-family: var(--font-family-heading);
    color: #333;
}

.contact-status-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.contact-status-close:hover {
    background: #f5f5f5;
    color: #333;
}

.contact-status-body {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.contact-status-icon {
    margin-bottom: 1rem;
}

.contact-status-icon .status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.contact-status-modal.status-success .status-icon {
    background: #e8f5e8;
    color: #2d5a2d;
}

.contact-status-modal.status-success .status-icon::before {
    content: "✓";
}

.contact-status-modal.status-error .status-icon {
    background: #ffeaea;
    color: #a94442;
}

.contact-status-modal.status-error .status-icon::before {
    content: "✕";
}

.contact-status-modal.status-warning .status-icon {
    background: #fff3cd;
    color: #856404;
}

.contact-status-modal.status-warning .status-icon::before {
    content: "⚠";
}

.contact-status-message {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

.contact-status-actions {
    display: flex;
    justify-content: center;
}

.contact-status-modal.show .contact-status-overlay {
    opacity: 1;
}

.contact-status-modal.show .contact-status-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Mobile responsiveness for contact status modal */
@media (max-width: 768px) {
    .contact-status-content {
        width: min(100% - 1rem, 400px);
    }
    
    .contact-status-header,
    .contact-status-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Reduced motion for contact status modal */
@media (prefers-reduced-motion: reduce) {
    .contact-status-modal,
    .contact-status-overlay,
    .contact-status-content {
        transition: none !important;
    }
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: var(--space-xs); /* Keep tight spacing between title and subtitle */
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

/* Ensure enough top spacing for top-of-page H1 titles under the fixed header */
main.container > .title-container:first-child {
    /* Extra padding so the page title breathes below the fixed header */
    padding-top: calc(var(--space-xl) + var(--space-l));
}

/* Also handle pages where the H1 title-container is inside the first section (e.g., Unternehmen) */
main.container > :first-child .title-container:first-child {
    padding-top: calc(var(--space-xl) + var(--space-l));
}

/* Project-specific page title styling */
body[data-page-type="project"] .page-title,
.project-page .page-title {
    color: #F0F0EC;
}

/* Ensure title wrapper handles long German compound words properly */
.title-wrapper {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    /* Allow breaking of very long words if needed */
    word-break: break-word;
}

/* Make Datenschutzerklärung H1 fully responsive and allow natural wrapping */
body:not([data-page-type]) .page-title .title-wrapper {
    display: block;
    max-width: 100%;
}

/* Keep underline width equal to text width for this specific title */
#kernkompetenzen-title .title-wrapper {
    display: inline-block !important;
    width: auto !important;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0; /* Remove bottom margin since hero section handles spacing */
}

/* Project-specific page subtitle styling */
body[data-page-type="project"] .page-subtitle,
.project-page .page-subtitle {
    color: #F0F0EC;
}

/* Project Detail Page */
.project-detail-container {
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
}

.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 992px) {
    .project-detail-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Mobile-specific responsive fixes */
@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-s);
        padding: var(--space-m) var(--space-xs);
        margin-top: var(--space-s);
    }

    .value-card {
        padding: var(--space-m);
        margin: 0;
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }

    .value-card h3 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        line-height: 1.3;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        margin-bottom: var(--space-xs);
    }

    .value-card p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.5;
        padding: 0 var(--space-xs);
    }

    .button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        width: auto;
        max-width: 100%;
    }

    .button--filter {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        margin: 0.125rem;
        flex: 1;
        min-width: 0;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    /* Mobile Filter System */
    .filter-bar {
        display: none;
    }

    .mobile-filter-trigger {
        display: flex;
        padding-left: var(--space-s);
        padding-right: var(--space-s);
    }

    .mobile-filter-btn {
        max-width: none;
        width: 100%;
    }

    .mobile-filter-content {
        padding: var(--space-m);
    }

    .mobile-filter-header h3 {
        font-size: 1.1rem;
    }

    .mobile-filter-option {
        padding: var(--space-s) var(--space-m);
        margin-bottom: var(--space-xs);
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: var(--space-m);
    }

    h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        line-height: 1.1;
        word-wrap: break-word;
        hyphens: auto;
        padding: 0 var(--space-xs);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }

    h3 {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
    }

    .page-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem); /* Reduced font size for better mobile fit */
        padding: 0 var(--space-xs);
        /* Force text to fit container */
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }

    /* Enhanced word breaking for long titles on mobile */
    .title-wrapper {
        display: block; /* Change from inline-block to block for better wrapping */
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        word-break: break-word;
        /* Ensure proper line height for broken words */
        line-height: 1.1;
        /* Add specific German hyphenation */
        -webkit-hyphenate-limit-before: 3;
        -webkit-hyphenate-limit-after: 3;
        hyphenate-limit-chars: 6 3 3;
    }

    /* Ensure underline matches text width for this specific heading on mobile */
    #kernkompetenzen-title .title-wrapper {
        display: inline-block; /* shrink to text width so underline isn’t too long */
    }

    .hero__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding: 0 var(--space-s);
        line-height: 1.1;
    }
}

/* Extra small screens - aggressive word breaking for very long German words */
@media (max-width: 400px) {
    .page-title {
        font-size: clamp(1.6rem, 5vw, 2rem); /* Even smaller for very small screens */
    }

    .title-wrapper {
        /* Force breaking of long compound words */
        word-break: break-all; /* More aggressive breaking if needed */
        overflow-wrap: anywhere;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        line-height: 1.05; /* Tighter line height */
    }
}

/* Override aggressive breaking for hero title and refine layout at <=400px (covers 368px & 344px) */
@media (max-width: 400px) {
    .hero__title {
        font-size: clamp(1.35rem, 7vw, 1.9rem);
        line-height: 1.06;
        padding-left: var(--space-s);
        padding-right: var(--space-s);
    text-align: center;
    letter-spacing: normal;
    }

    .hero__title .title-wrapper {
        display: block; /* full width for stable centering */
        width: 100%;
        margin: 0 auto;
        text-align: center;
        /* Allow long German words to break without clipping */
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -moz-hyphens: auto !important;
        text-wrap: balance;
    }

    .hero__subtitle {
        font-size: 1rem;
        padding-left: var(--space-s);
        padding-right: var(--space-s);
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        text-wrap: pretty;
    }

    .hero .button.button--primary {
        white-space: normal; /* allow wrapping instead of ellipsis */
        text-overflow: clip;
        overflow: visible;
        line-height: 1.2;
        padding: 0.6rem 0.9rem;
        max-width: 100%;
    }

    .service-card__title {
        font-size: 1.25rem;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -moz-hyphens: none !important;
    }

    .service-card p {
        font-size: 0.95rem;
        line-height: 1.45;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

        /* Reduce heavy text shadow on tiny screens to avoid optical offset */
        .hero__title,
        .hero__subtitle {
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
        }
}

/* Tablet responsive adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        line-height: 1.15;
    }

    h2 {
        font-size: clamp(1.6rem, 4.5vw, 2rem);
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    }

    .page-title {
        font-size: clamp(2.4rem, 6vw, 3.2rem);
    }

    /* Enhanced word breaking for long titles on tablet */
    .title-wrapper {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        word-break: break-word;
        line-height: 1.15;
    }

    .hero__title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-s);
        padding: var(--space-m) var(--space-s);
    }

    .value-card {
        padding: var(--space-m);
        max-width: 100%;
    }

    .value-card h3 {
        font-size: clamp(1.125rem, 3vw, 1.5rem);
        line-height: 1.25;
    }

    .value-card p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        line-height: 1.5;
    }

    .button--filter {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .values-grid {
        padding: var(--space-s) var(--space-xs);
        gap: var(--space-xs);
    }

    .value-card {
        padding: var(--space-s);
        margin: 0;
    }

    .value-card h3 {
        font-size: 1.1rem;
        margin-bottom: var(--space-xs);
    }

    .value-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Micro phones (Galaxy Z Fold outer, etc.) – fix tight 344px layouts */
@media (max-width: 360px) {
    /* Hero heading: smaller, no hyphenation, balanced wrapping */
    .hero__title {
        font-size: clamp(1.35rem, 7vw, 1.75rem);
        line-height: 1.06;
        padding-left: var(--space-s);
        padding-right: var(--space-s);
    }

    .hero .title-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    /* Allow long German words to break gracefully */
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -moz-hyphens: auto !important;
    text-wrap: balance;
    }

    .hero__subtitle {
        font-size: 1rem;
        padding-left: var(--space-s);
        padding-right: var(--space-s);
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        text-wrap: pretty;
    }

    /* Allow CTA to wrap instead of ellipsize */
    .hero .button.button--primary {
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
        line-height: 1.2;
        padding: 0.6rem 0.9rem;
        max-width: 100%;
    }

    /* Service card heading and text: prevent bad breaks and scale down slightly */
    .service-card__title {
        font-size: 1.25rem;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -moz-hyphens: none !important;
    }

    .service-card p {
        font-size: 0.95rem;
        line-height: 1.45;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }
}

/* Responsive Card Centering for Odd Cards in 2-per-row Layouts */

/* Services/Kernkompetenzen Cards - 2 per row from 680px to 1012px */
@media (min-width: 680px) and (max-width: 1012px) {
    .services-grid .service-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - var(--space-l)) / 2);
    }
}

/* Project Cards - 2 per row from 680px to 1012px */
@media (min-width: 680px) and (max-width: 1012px) {
    .project-grid .project-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - var(--space-l)) / 2);
    }
}

/* Values Cards - 2 per row from 644px to 1032px */
/* Use margin auto to center while maintaining natural width */

@media (min-width: 644px) and (max-width: 1032px) {
    /* Force exactly 2 columns in this range */
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Center the odd card by spanning both columns and using margin auto */
    .values-grid .value-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
        width: calc(50% - var(--space-m) / 2);
        margin: 0 auto;
    }
}

/* KPI/Experience Cards - 2 per row from 580px to 862px */
@media (min-width: 580px) and (max-width: 862px) {
    .team-grid .team-member:nth-child(odd):last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - var(--space-l)) / 2);
    }
}

.project-main-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.project-gallery .section-title,
.project-description .section-title {
    margin-bottom: var(--space-m);
}

/* Fix vertical alignment - adjust title container for red rectangle */
.project-gallery .title-container,
.project-description .title-container {
    padding-top: 0 !important;
    margin-top: 0;
    text-align: left; /* align left to match the red rectangle */
}

/* Ensure the gallery section title has no top margin */
.project-gallery .section-title {
    margin-top: 0;
}

/* Red rectangle decoration above project section headings */
.project-gallery .section-title,
.project-description .section-title {
    position: relative;
    padding-top: 1.5rem; /* space for the red rectangle */
    text-align: left; /* align left like in Dienstleistungen */
}

/* Project description body text: left-aligned block with hyphenation */
.project-description p,
.project-description li,
.project-description address,
.project-description div,
.project-description span {
    text-align: justify; /* block-like appearance */
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Ensure headings remain left-aligned for readability */
.project-description h2,
.project-description h3,
.project-description h4,
.project-description h5 {
    text-align: left;
}

.project-gallery .section-title::before,
.project-description .section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;    /* rectangle width */
    height: 5px;    /* rectangle height */
    background-color: var(--color-primary-red); /* use the defined red color */
}

.gallery-main-image {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5; /* Light background for loading state */
    margin-bottom: var(--space-s);
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scale image to fill container while maintaining aspect ratio */
    object-position: center; /* Center the image within the container */
    border-radius: 4px;
    transition: opacity 0.3s ease; /* Smooth transition for image changes */
}

.gallery-thumbnails {
    display: none; /* Hide thumbnails */
}

.gallery-thumbnails img {
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: var(--color-primary-red);
}

/* Gallery Dot Indicators */
.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.gallery-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.gallery-dot.active {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

/* Hide dots when there's only one image */
.gallery-dots.single-image {
    display: none;
}

/* Responsive gallery container heights */
@media (max-width: 768px) {
    .gallery-main-image {
        height: 300px; /* Smaller height on tablets */
    }
}

/* ==========================
   Simple Gallery Lightbox
   ========================== */
.gallery-main-image img {
    cursor: zoom-in;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 200ms ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.gallery-modal .gallery-modal-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
}

.gallery-modal img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.gallery-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.gallery-modal-close:hover {
    background: rgba(255,255,255,0.25);
}

body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
    .gallery-main-image {
        height: 250px; /* Even smaller height on mobile */
    }
}

/* Alternative: Aspect ratio based approach for more responsive design */
@media (min-width: 769px) {
    .gallery-main-image {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        position: relative;
    }

    .gallery-main-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .gallery-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
    }
}

/* Gallery Modal Styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.gallery-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.gallery-modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.gallery-modal-nav.prev {
    left: 20px;
}

.gallery-modal-nav.next {
    right: 20px;
}

.gallery-modal-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.gallery-modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.gallery-modal-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.gallery-modal-dot.active {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

/* Hide modal dots when there's only one image */
.gallery-modal-dots.single-image {
    display: none;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .gallery-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .gallery-modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    .gallery-modal-nav {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .gallery-modal-nav.prev {
        left: 10px;
    }

    .gallery-modal-nav.next {
        right: 10px;
    }

    .gallery-modal-dots {
        bottom: 20px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Make main gallery image clickable */
.gallery-main-image img {
    cursor: pointer;
}

/* Project Location Map Styles */
.project-location {
    background: white;
    border-radius: 8px;
    padding: var(--space-m);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: var(--space-m);
}

.project-location .meta-title {
    margin-bottom: var(--space-s);
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.map-container {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Responsive map sizing */
@media (max-width: 768px) {
    .map-container iframe {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .project-location {
        padding: var(--space-s);
    }

    .map-container iframe {
        height: 180px;
    }
}

/* Contact Page Map Styles */
.contact-map {
    margin-top: var(--space-l);
}

.contact-map h3 {
    margin-bottom: var(--space-s);
    color: var(--color-text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-map .map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-map .map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Responsive contact map sizing */
@media (max-width: 768px) {
    .contact-map .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .contact-map .map-container iframe {
        height: 200px;
    }
}

.project-sidebar .project-meta,
.project-sidebar .project-services {
    background-color: var(--color-background-secondary);
    padding: var(--space-l);
    border-radius: 4px;
    margin-bottom: var(--space-l);
}

.project-sidebar .meta-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-m);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--space-s);
}

.project-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-sidebar ul li {
    margin-bottom: var(--space-s);
}

/* Carousel Styles */
.gallery-carousel {
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.gallery-thumbnails .thumbnail {
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.gallery-thumbnails .thumbnail.active {
    border-color: var(--color-primary-red);
}

.project-detail-layout .section-title {
    text-align: left;
}

/* ========================================================================
   CUSTOM SCROLLBAR STYLING - FORCED OVERRIDE
   ======================================================================== */

/* Force override browser defaults with !important */
/* Webkit browsers: Chrome, Safari, Edge */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
    background: transparent !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.1) !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: #bf2d4c !important; /* Red by default - brand color */
    border-radius: 8px !important;
    border: 2px solid #f1f1f1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(191, 45, 76, 0.2) !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: #a02540 !important; /* Darker red on hover */
    border-color: rgba(191, 45, 76, 0.3) !important;
    box-shadow: 0 3px 8px rgba(191, 45, 76, 0.4) !important;
    transform: scale(1.02) !important;
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
    background: #8b1e32 !important; /* Even darker red when active */
    border-color: rgba(191, 45, 76, 0.5) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
    transform: scale(0.98) !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: #f1f1f1 !important;
}

/* Firefox scrollbar styling */
html,
body,
* {
    scrollbar-width: thin !important;
    scrollbar-color: #bf2d4c #f1f1f1 !important; /* Red thumb, grey track */
}

/* Force override for all elements */
html {
    scrollbar-width: thin !important;
    scrollbar-color: #bf2d4c #f1f1f1 !important; /* Red thumb, grey track */
}

body {
    scrollbar-width: thin !important;
    scrollbar-color: #bf2d4c #f1f1f1 !important; /* Red thumb, grey track */
}

/* Override browser dark mode interference */
@media (prefers-color-scheme: dark) {
    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track,
    *::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-color: #e0e0e0 !important;
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb,
    *::-webkit-scrollbar-thumb {
        background: #bf2d4c !important; /* Keep red thumb in dark mode */
        border-color: #f1f1f1 !important;
    }

    html::-webkit-scrollbar-thumb:hover,
    body::-webkit-scrollbar-thumb:hover,
    *::-webkit-scrollbar-thumb:hover {
        background: #a02540 !important; /* Darker red on hover */
        border-color: rgba(191, 45, 76, 0.3) !important;
    }

    html,
    body,
    * {
        scrollbar-color: #bf2d4c #f1f1f1 !important; /* Red thumb, grey track for Firefox */
    }
}

/* Disable browser's automatic dark scrollbar */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light !important;
    }
}

/* Additional specificity for common containers */
.container::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.project-content::-webkit-scrollbar,
.legal-content::-webkit-scrollbar,
main::-webkit-scrollbar,
section::-webkit-scrollbar,
div::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
}

.container::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track,
.project-content::-webkit-scrollbar-track,
.legal-content::-webkit-scrollbar-track,
main::-webkit-scrollbar-track,
section::-webkit-scrollbar-track,
div::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 8px !important;
}

.container::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.project-content::-webkit-scrollbar-thumb,
.legal-content::-webkit-scrollbar-thumb,
main::-webkit-scrollbar-thumb,
section::-webkit-scrollbar-thumb,
div::-webkit-scrollbar-thumb {
    background: #bf2d4c !important; /* Red by default */
    border-radius: 8px !important;
    border: 2px solid #f1f1f1 !important;
}

.container::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover,
.project-content::-webkit-scrollbar-thumb:hover,
.legal-content::-webkit-scrollbar-thumb:hover,
main::-webkit-scrollbar-thumb:hover,
section::-webkit-scrollbar-thumb:hover,
div::-webkit-scrollbar-thumb:hover {
    background: #a02540 !important; /* Darker red on hover */
    box-shadow: 0 3px 8px rgba(191, 45, 76, 0.4) !important;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb,
    *::-webkit-scrollbar-thumb {
        transition: none !important;
    }
}

/* ========================================================================
   FINAL SCROLLBAR OVERRIDE - MAXIMUM SPECIFICITY
   ======================================================================== */

/* Ultimate override for stubborn browsers */
html[data-theme="light"]::-webkit-scrollbar,
html[data-theme="dark"]::-webkit-scrollbar,
html:not([data-theme])::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
}

html[data-theme="light"]::-webkit-scrollbar-track,
html[data-theme="dark"]::-webkit-scrollbar-track,
html:not([data-theme])::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
}

html[data-theme="light"]::-webkit-scrollbar-thumb,
html[data-theme="dark"]::-webkit-scrollbar-thumb,
html:not([data-theme])::-webkit-scrollbar-thumb {
    background: #bf2d4c !important; /* Red by default */
    border-radius: 8px !important;
    border: 2px solid #f1f1f1 !important;
}

html[data-theme="light"]::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"]::-webkit-scrollbar-thumb:hover,
html:not([data-theme])::-webkit-scrollbar-thumb:hover {
    background: #a02540 !important; /* Darker red on hover */
    border-color: rgba(191, 45, 76, 0.3) !important;
    box-shadow: 0 3px 8px rgba(191, 45, 76, 0.4) !important;
}

/* Force light scrollbars regardless of system theme */
@media (prefers-color-scheme: dark) {
    html {
        color-scheme: light dark !important;
    }

    html::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-color: #e0e0e0 !important;
        forced-color-adjust: none !important;
    }

    html::-webkit-scrollbar-thumb {
        background: #bf2d4c !important; /* Red by default even in dark mode */
        border-color: #f1f1f1 !important;
        forced-color-adjust: none !important;
    }

    html::-webkit-scrollbar-thumb:hover {
        background: #a02540 !important; /* Darker red on hover */
        forced-color-adjust: none !important;
    }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    padding: calc(var(--space-l) * 1.5);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease-out;
    border-top: 1px solid var(--color-border);
    outline: none !important;
    border: none !important;
    border-top: 1px solid var(--color-border) !important;
}

.cookie-banner.is-visible {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

/* Remove focus outlines from cookie banner and all child elements */
.cookie-banner:focus,
.cookie-banner *:focus {
    outline: none !important;
    border: none !important;
}

.cookie-banner-content h2 {
    margin: 0 0 var(--space-s) 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.cookie-banner-content p {
    margin: 0;
    max-width: 60ch;
    line-height: 1.5;
}

.cookie-banner-content a {
    color: var(--color-primary-red);
    text-decoration: underline;
}

.cookie-banner-content a:hover {
    text-decoration: none;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-s);
    flex-shrink: 0;
    margin-left: calc(var(--space-l) * 2);
}

.cookie-banner-actions .btn {
    padding: var(--space-s) calc(var(--space-s) * 2);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    /* Remove focus outlines from cookie banner buttons */
    outline: none !important;
}

.cookie-banner-actions .btn:focus {
    outline: none !important;
    border: none !important;
}

.cookie-banner-actions .btn-primary {
    background-color: var(--color-primary-red);
    color: white;
}

.cookie-banner-actions .btn-primary:hover {
    background-color: #a02540;
    transform: translateY(-1px);
}

.cookie-banner-actions .btn:not(.btn-primary) {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.cookie-banner-actions .btn:not(.btn-primary):hover {
    background-color: var(--color-background-secondary);
    border-color: var(--color-primary-red);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-l);
    }

    .cookie-banner-content {
        margin-bottom: var(--space-l);
    }

    .cookie-banner-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .cookie-banner-actions .btn {
        flex: 1;
        max-width: 150px;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
}

/* Filter notification modal styles */
.filter-notification-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    backdrop-filter: blur(4px) !important;
}

.filter-notification-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.filter-notification-content {
    background: white !important;
    border-radius: 16px !important;
    padding: 40px 32px !important;
    max-width: 420px !important;
    width: 90% !important;
    text-align: center !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    transform: scale(0.7) translateY(30px) rotate(2deg) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
}

.filter-notification-modal.show .filter-notification-content {
    transform: scale(1) translateY(0) rotate(0deg) !important;
}

.filter-notification-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 24px !important;
    background: linear-gradient(135deg, var(--color-primary-red), #d63754) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 36px !important;
    animation: modalIconPulse 2s ease-in-out infinite !important;
    box-shadow: 0 8px 24px rgba(191, 45, 76, 0.3) !important;
    position: relative !important;
}

.filter-notification-icon::before {
    content: '' !important;
    position: absolute !important;
    top: -4px !important;
    left: -4px !important;
    right: -4px !important;
    bottom: -4px !important;
    background: linear-gradient(135deg, var(--color-primary-red), #d63754) !important;
    border-radius: 50% !important;
    opacity: 0.3 !important;
    z-index: -1 !important;
    animation: modalIconRing 2s ease-in-out infinite !important;
}

@keyframes modalIconPulse {
    0%, 100% { 
        transform: scale(1) !important; 
        box-shadow: 0 8px 24px rgba(191, 45, 76, 0.3) !important;
    }
    50% { 
        transform: scale(1.05) !important; 
        box-shadow: 0 12px 32px rgba(191, 45, 76, 0.4) !important;
    }
}

@keyframes modalIconRing {
    0%, 100% { 
        transform: scale(1) !important; 
        opacity: 0.3 !important; 
    }
    50% { 
        transform: scale(1.2) !important; 
        opacity: 0.1 !important; 
    }
}

.filter-notification-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin-bottom: 16px !important;
    font-family: 'AkzidenzGroteskExtended', 'Oswald', sans-serif !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
}

.filter-notification-message {
    font-size: 16px !important;
    color: #666 !important;
    margin-bottom: 32px !important;
    line-height: 1.6 !important;
    font-family: 'AkzidenzGrotesk', sans-serif !important;
}

.filter-notification-button {
    background: linear-gradient(135deg, var(--color-primary-red), #d63754) !important;
    color: white !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: 'AkzidenzGroteskExtended', sans-serif !important;
    box-shadow: 0 4px 16px rgba(191, 45, 76, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.filter-notification-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.6s !important;
}

.filter-notification-button:hover {
    background: linear-gradient(135deg, #a02642, #bf2d4c) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(191, 45, 76, 0.4) !important;
}

.filter-notification-button:hover::before {
    left: 100% !important;
}

.filter-notification-button:active {
    transform: translateY(0) scale(1) !important;
    transition: all 0.1s ease !important;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .filter-notification-content {
        padding: 32px 24px !important;
        margin: 20px !important;
        border-radius: 12px !important;
    }
    
    .filter-notification-title {
        font-size: 22px !important;
    }
    
    .filter-notification-message {
        font-size: 15px !important;
    }
    
    .filter-notification-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 32px !important;
    }
}
