/* =============== Globale Styles =============== */
:root {
  /* Primary Color Palette */
  --primary-color: #1D3968;
  --primary-dark: #142847;
  --primary-light: #2a4d8a;
  
  /* Secondary/Accent Colors */
  --secondary-color: #FFD700;
  --secondary-dark: #e6c200;
  --accent-green: #2a7f62;
  --accent-green-light: #3da37e;
  
  /* Neutral Colors */
  --dark-color: #1A1A1A;
  --dark-lighter: #2d2d2d;
  --light-color: #F8F9FA;
  --light-darker: #E9ECEF;
  --white: #FFFFFF;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #737980;  /* Verbessert für WCAG AA Kontrast (4.5:1) */
  --gray-600: #545961;  /* Verbessert für WCAG AA Kontrast (7:1) */
  --gray-700: #495057;
  --gray-800: #343a40;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(29, 57, 104, 0.92) 0%, rgba(20, 40, 71, 0.85) 100%);
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-dark: linear-gradient(180deg, var(--dark-color) 0%, var(--dark-lighter) 100%);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(29, 57, 104, 0.3);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  /* Spacing */
  --section-padding: 6rem;
  --section-padding-sm: 4rem;
  
  /* Typography */
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* CSS Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--dark-color);
  overflow-x: hidden;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Prevent scrolling when mobile menu is open */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Main content flex grow */
main {
  flex: 1 0 auto;
}

.main-footer {
  flex-shrink: 0;
}

/* Accessibility */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  z-index: 10000;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  top: 1rem;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Prevent horizontal overflow on all sections */
section,
.hero,
.services,
.projects,
.contact,
.about,
.value-section,
.trust-section,
.faq-section,
.testimonials {
  max-width: 100vw;
  overflow-x: hidden;
}

/* =============== Top Bar =============== */
.top-bar {
  background: var(--gradient-primary);
  color: white;
  padding: 0.6rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item a {
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
}

.top-bar-item a:hover {
  color: var(--secondary-color);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.8rem;
}

.trust-badge svg {
  fill: var(--secondary-color);
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  /* Header auf Mobile immer ganz oben */
  .main-nav {
    top: 0 !important;
  }
}

/* =============== Navigation =============== */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.main-nav.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: calc(100% - 16px);
  max-height: 85px;
  min-height: 60px;
  width: auto;
  transition: var(--transition);
  padding: 8px 0;
}

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

.nav-links a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
  background: var(--gray-100);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::before {
  width: calc(100% - 2.5rem);
}

.nav-cta {
  background: var(--gradient-primary) !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-cta::before {
  display: none !important;
}

/* =============== Mobile Navigation =============== */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark-color);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 1024px) {
  .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      height: 100vh;
      height: 100dvh; /* Dynamic viewport height for mobile */
      width: 320px;
      max-width: 85%;
      background: white;
      flex-direction: column;
      padding: 5rem 1.5rem 2rem;
      box-shadow: -10px 0 30px rgba(0,0,0,0.15);
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      gap: 0.25rem;
      overflow-y: auto;
  }

  .nav-links.active {
      right: 0;
  }

  .nav-links a {
      font-size: 1rem;
      padding: 0.875rem 1rem;
      width: 100%;
      text-align: left;
      border-radius: var(--radius-sm);
  }
  
  .nav-cta {
      margin-top: 1rem;
      text-align: center !important;
  }

  .hamburger {
      display: block;
  }

  .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
  }

  .logo img {
      height: 55px;
      max-height: 55px;
      padding: 4px 0;
  }
  
  .nav-container {
      padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
      width: 100%;
      max-width: 100%;
      padding: 4.5rem 1.25rem 2rem;
  }
  
  .logo img {
      height: 48px;
      max-height: 48px;
  }
  
  .main-nav {
      padding: 0.5rem 0;
  }
}

/* =============== Hero Section =============== */
.hero {
    background: var(--gradient-hero),
                url('../pictures/TMD1.jpg') center/cover no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero h1 .text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--secondary-color);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 80px 0 30px;
        align-items: flex-start;
        display: flex;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 1.5rem 1.5rem 1.5rem;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        flex: none;
        gap: 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        margin: 0;
        background: rgba(255, 215, 0, 0.15);
        border: 1px solid rgba(255, 215, 0, 0.3);
        color: #fff;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin: 0;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }
    
    .hero h1 .text-gradient {
        display: block;
        margin-top: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 0;
        line-height: 1.7;
        padding: 0 0.5rem;
        opacity: 0.95;
    }
    
    .hero-subtitle strong {
        display: block;
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero-subtitle br {
        display: none;
    }
    
    .hero-cta-group {
        margin: 0.5rem 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        margin-top: 0.25rem;
        justify-content: center;
        align-items: center;
        width: calc(100% + 1rem);
        background: rgba(0, 0, 0, 0.25);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        width: 100%;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
        font-weight: 800;
        min-width: auto;
        text-align: center;
        color: var(--secondary-color);
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.85;
        text-align: center;
        min-width: auto;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 75px 0 25px;
    }
    
    .hero-content {
        padding: 1.5rem 1.25rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .hero-stats {
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }
    
    .stat-item {
        gap: 0.4rem;
    }
    
    .stat-number {
        font-size: 1rem;
        min-width: 60px;
    }
    
    .stat-label {
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    .hero-cta-group .cta-button {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* =============== CTA Buttons =============== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-primary {
    background: var(--gradient-gold);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cta-button.full-width {
    width: 100%;
}

@media (max-width: 768px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0;
    }
    
    .hero-cta-group .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-cta-group .cta-button {
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =============== Trust Section =============== */
.trust-section {
    padding: 4rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

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

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-icon {
    margin-bottom: 1rem;
}

.trust-icon svg {
    stroke: var(--primary-color);
}

.trust-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-item {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .trust-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .trust-item h3 {
        font-size: 1rem;
    }
    
    .trust-item p {
        font-size: 0.85rem;
    }
}

/* =============== Section Styling =============== */
.section-header {
  text-align: center;
  padding-top: 20px;
  margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-gold);
  margin: 1.5rem auto;
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
        padding-top: 10px;
    }
    
    .section-tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-divider {
        width: 60px;
        height: 3px;
        margin: 1rem auto;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.35rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
}

/* =============== Services Section =============== */
.services {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

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

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.card-icon {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .card-icon img {
    transform: scale(1.05);
}

.icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover .icon-overlay {
  opacity: 0.7;
}

.card-content {
  padding: 2rem;
  text-align: center;
  position: relative;
}

.card-content h3 {
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
  font-weight: 700;
}

.card-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
}

.card-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 1rem 0 0;
  text-align: left;
  margin-top: 1rem;
}

.service-features li {
  padding: 0.6rem 0;
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1rem;
}

.service-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

@media (max-width: 1024px) {
  .services-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services {
      padding: 3rem 0;
  }
  
  .services-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .service-card {
      max-width: 100%;
      margin: 0;
  }
  
  .card-icon {
      height: 180px;
  }
  
  .card-content {
      padding: 1.5rem;
  }
  
  .card-content h3 {
      font-size: 1.2rem;
  }
  
  .card-content p {
      font-size: 0.9rem;
  }
  
  .service-features li {
      font-size: 0.9rem;
      padding: 0.5rem 0;
      padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .card-icon {
      height: 160px;
  }
  
  .card-content {
      padding: 1.25rem;
  }
}

/* =============== Value Proposition Section =============== */
.value-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.value-text .section-tag {
    margin-bottom: 1rem;
}

.value-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.value-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.value-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.value-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.value-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-green);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.value-detail h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.value-detail p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.value-image {
    position: relative;
}

.value-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.floating-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.floating-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .value-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .value-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .value-section {
        padding: 3rem 0;
    }
    
    .value-text h2 {
        font-size: 1.75rem;
    }
    
    .value-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .value-points {
        gap: 1rem;
    }
    
    .value-point {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .value-icon {
        margin: 0 auto;
    }
    
    .value-text {
        text-align: center;
    }
    
    .value-text .cta-button {
        display: block;
        width: fit-content;
        margin: 1.5rem auto 0;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .floating-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .value-detail h4 {
        font-size: 1rem;
    }
    
    .value-detail p {
        font-size: 0.9rem;
    }
}

/* =============== Contact Section =============== */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

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

.form-group label .required {
    color: #dc2626;
    margin-left: 0.15rem;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 57, 104, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

/* Contact Info Card */
.contact-info-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    height: 100%;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-intro {
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    stroke: white;
}

.info-text h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.info-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.info-text a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--secondary-color);
}

.response-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.response-time svg {
    stroke: var(--secondary-color);
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-info-card h3 {
        font-size: 1.25rem;
    }
    
    .info-item {
        gap: 0.75rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .info-text h4 {
        font-size: 0.8rem;
    }
    
    .info-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.25rem;
    }
    
    .captcha-challenge {
        padding: 1rem;
    }
    
    .captcha-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* =============== Footer =============== */
.main-footer {
  background: var(--gradient-dark);
  color: white;
  padding: 5rem 0 0;
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-tagline {
    color: var(--gray-400);
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contact-quick {
    margin-top: 1.5rem;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-phone:hover {
    color: white;
}

.footer-phone svg {
    stroke: currentColor;
}

.footer-logo {
  height: 180px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
}

.footer-address {
    font-style: normal;
    line-height: 1.8;
    color: var(--gray-400);
}

.footer-address a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-address a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.eco-badge {
    background: rgba(42, 127, 98, 0.2);
    color: var(--accent-green-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

.social-icons img {
  width: 30px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        height: 100px;
        max-width: 200px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo {
        height: 80px;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-address {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 0;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
}

/* =============== Animationen & Effekte =============== */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.spinner {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    opacity: 0.8;
    transform: translateX(-50%);
}

.hero-scroll-indicator::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollPulse 2s infinite;
    will-change: opacity;
}

@keyframes scrollPulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* =============== Responsive Design =============== */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
}


/* =============== Footer - Rechtliches =============== */
.footer-section h3 {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 2px;
  background: rgba(255, 215, 0, 0.3);
  transition: var(--transition);
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.footer-section li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.footer-section li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.1em;
  top: -1px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
  padding: 0.15rem 0;
}

.footer-section a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
  text-decoration: underline;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .footer-section {
      text-align: center;
  }

  .footer-section h3::after {
      left: 50%;
      transform: translateX(-50%);
      width: 40%;
  }

  .footer-section li {
      padding-left: 0;
  }

  .footer-section li::before {
      display: none;
  }

  .footer-section a:hover {
      transform: none;
  }
}


/* Rechner-spezifische Styles */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  font-size: 1.2rem;
}

.disclaimer {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1.5rem;
}

.custom-marker {
  transition: transform 0.3s ease;
}

.custom-marker:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  #map {
      height: 350px;
      margin: 1rem -1rem;
      border-radius: 0;
  }
  
  .calculator-result {
      margin: 1rem -1rem;
      border-radius: 0;
      padding: 1.5rem;
  }
  
  .result-grid {
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      font-size: 1rem;
  }
  
  .map-controls {
      flex-wrap: wrap;
      gap: 0.5rem;
  }
  
  .map-controls button, 
  .map-controls select {
      padding: 0.4rem 0.75rem;
      font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #map {
      height: 300px;
  }
  
  .result-grid {
      grid-template-columns: 1fr;
  }
}


/* Legal Pages Styling */
.legal-section {
  padding: 6rem 0;
}

.legal-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
  color: #555;
}


/* =============== Modern Cookie-Banner =============== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  z-index: 10000;
  display: none;
  padding: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cookie-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.cookie-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.cookie-icon svg {
  width: 26px;
  height: 26px;
}

.cookie-content {
  flex: 1;
}

.cookie-content h3,
.cookie-content .cookie-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.cookie-content p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.cookie-content a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.cookie-content a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
}

.cookie-button svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.cookie-button.accept {
  background: linear-gradient(135deg, var(--secondary-color), #e8941d);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.cookie-button.accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.cookie-button.decline {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.cookie-button.decline:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.cookie-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.25rem;
}

.cookie-settings-link:hover {
  color: var(--primary-color);
}

.cookie-settings-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.cookie-settings-link:hover svg {
  transform: rotate(90deg);
}

/* Cookie Header with close button */
.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cookie-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin: -0.5rem -0.5rem 0 0;
}

.cookie-close:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info {
  flex: 1;
  padding-right: 1rem;
}

.cookie-option-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.cookie-option-info p {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--secondary-color), #e8941d);
}

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

.cookie-toggle.disabled .toggle-slider {
  background-color: var(--gray-200);
  cursor: not-allowed;
}

.cookie-toggle.disabled input:checked + .toggle-slider {
  background: var(--gray-400);
}

/* Reject button styling */
.cookie-button.reject {
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
}

.cookie-button.reject:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.cookie-button.reject svg {
  width: 14px;
  height: 14px;
}

/* Save button */
.cookie-button.save {
  background: var(--primary-color);
  color: white;
  margin-top: 0.5rem;
}

.cookie-button.save:hover {
  background: var(--primary-dark);
}

/* Cookie Banner Responsive - Mobile fullwidth */
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    animation: slideUp 0.4s ease-out;
    will-change: transform, opacity;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  .cookie-container {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.25rem;
  }
}

/* Map Controls */
.map-controls {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.map-controls button, .map-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.map-controls button:hover, .map-controls select:hover {
    background: var(--primary-color);
    color: white;
}

/* Custom Cursor */
#map {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="%231D3968" /></svg>') 8 8, auto;
}


/* Projects Section */
.projects {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.project-overlay p {
  font-size: 0.9rem;
  text-align: center;
}

.project-link {
  margin-top: 15px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.project-link:hover {
  background: #0056b3;
}

.project-content {
  padding: 20px;
  text-align: center;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.project-content p {
  font-size: 0.9rem;
  color: #666;
}

.projects-cta {
  text-align: center;
  margin-top: 50px;
}

.projects-cta p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}


/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  overflow-y: auto;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 1100px;
  width: 100%;
  position: relative;
  margin: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Project Modal Specific */
.project-modal {
  padding: 0;
  overflow: hidden;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.close-modal svg {
  stroke: var(--dark-color);
  transition: var(--transition);
}

.close-modal:hover {
  background: var(--primary-color);
  transform: rotate(90deg);
}

.close-modal:hover svg {
  stroke: white;
}

/* Modal Header */
.modal-header {
  padding: 2rem 2.5rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
}

.modal-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--dark-color);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: white;
}

.modal-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
}

.modal-location svg {
  stroke: var(--secondary-color);
  flex-shrink: 0;
}

/* Modal Image */
.modal-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 0;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.modal-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.image-caption {
  color: white;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Modal Body */
.modal-body {
  padding: 2rem 2.5rem;
}

/* Stats Grid */
.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}

.modal-stat {
  text-align: center;
  padding: 0.5rem;
}

.modal-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
}

.modal-stat-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.modal-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modal Description */
.modal-description {
  margin-bottom: 2rem;
}

.modal-description h3,
.modal-details h3 {
  font-size: 1.25rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-description h3::before,
.modal-details h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.modal-description p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.modal-description p:last-child {
  margin-bottom: 0;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.detail-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}

.detail-item:hover {
  background: var(--white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.detail-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon svg {
  stroke: white;
}

.detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-content strong {
  font-size: 0.95rem;
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.detail-content span {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Modal Footer */
.modal-footer {
  padding: 1.5rem 2.5rem 2rem;
  background: var(--gray-100);
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.modal-footer p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.modal-cta {
  display: inline-flex;
}

/* Modal Responsive */
@media (max-width: 1200px) {
  .modal {
    padding: 1.5rem;
  }
  
  .modal-content {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .modal {
    padding: 1rem;
    align-items: flex-start;
  }
  
  .modal-content {
    max-width: 100%;
    border-radius: var(--radius-lg);
    margin: 0;
  }
  
  .modal-header {
    padding: 1.5rem;
    padding-top: 3.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .modal-stat-value {
    font-size: 1.5rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-footer {
    padding: 1.5rem;
  }
  
  .close-modal {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 0.5rem;
  }
  
  .modal-header {
    padding: 1.25rem;
    padding-top: 3.5rem;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
  
  .modal-stats-grid {
    padding: 1rem;
  }
  
  .modal-stat-value {
    font-size: 1.25rem;
  }
  
  .detail-item {
    padding: 1rem;
  }
  
  .detail-icon {
    width: 40px;
    height: 40px;
  }
}

/* CAPTCHA styling */
.captcha-notice {
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.captcha-badge {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.captcha-badge img {
    margin-right: 5px;
}

.captcha-link {
    color: #2a7f62;
    text-decoration: none;
    transition: color 0.2s;
}

.captcha-link:hover {
    color: #1a6149;
    text-decoration: underline;
}

.captcha-separator {
    margin: 0 5px;
    color: #999;
}

/* Mobile adjustments for CAPTCHA notice */
@media (max-width: 480px) {
    .captcha-notice {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-badge {
        margin-bottom: 5px;
    }
}

/* Success and error message styling */
.success-message,
.error-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message {
    background-color: rgba(42, 127, 98, 0.1);
    border: 1px solid #2a7f62;
    color: #2a7f62;
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.success-message p,
.error-message p {
    margin: 10px 0;
    font-size: 18px;
}

.success-icon {
    margin: 0 auto 15px;
    width: 64px;
    height: 64px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CAPTCHA Styling */
.captcha-challenge {
    background-color: rgba(42, 127, 98, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #2a7f62;
}

.captcha-challenge label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.captcha-challenge input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#captcha-question {
    font-weight: bold;
    color: #2a7f62;
    letter-spacing: 1px;
    font-size: 1.1em;
}

.captcha-challenge input:focus {
    border-color: #2a7f62;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 127, 98, 0.2);
}

/* =============== About Section Enhanced =============== */
.about {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text .section-tag {
    margin-bottom: 1rem;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }
    
    .about-text h2 {
        font-size: 1.75rem;
    }
    
    .about-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .about-features {
        gap: 1rem;
    }
    
    .about-feature {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .feature-text strong {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-item p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about-feature {
        padding: 1rem;
    }
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(10px);
}

.about-feature:hover .feature-icon svg {
    stroke: var(--secondary-color);
}

.about-feature:hover .feature-text p {
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon svg {
    stroke: var(--primary-color);
    transition: var(--transition);
}

.feature-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
    transition: var(--transition);
}

/* =============== Testimonials Section =============== */
.testimonials {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    display: block;
    color: var(--dark-color);
    font-size: 1rem;
}

.author-info span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-stars {
        font-size: 1rem;
    }
    
    .testimonial-card blockquote {
        font-size: 0.95rem;
        padding-left: 1rem;
    }
    
    .author-info strong {
        font-size: 0.95rem;
    }
    
    .author-info span {
        font-size: 0.85rem;
    }
}

/* =============== FAQ Section =============== */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.faq-item[open] {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--primary-color);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* =============== Back to Top Button =============== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top svg {
    stroke: white;
}

/* =============== Floating CTA =============== */
.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-cta-btn {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
}

.floating-cta-btn.phone {
    background: var(--accent-green);
    color: white;
}

.floating-cta-btn.contact {
    background: var(--primary-color);
    color: white;
}

.floating-cta-btn:hover {
    transform: scale(1.1);
}

.floating-cta-btn svg {
    stroke: white;
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1rem;
        left: 1rem;
        gap: 0.5rem;
    }
    
    .floating-cta-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-cta-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 769px) {
    .floating-cta {
        display: none;
    }
}

/* =============== Projects Section Enhanced =============== */
.projects {
  padding: var(--section-padding) 0;
  background: var(--gray-100);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-gold);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.project-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.project-link {
  padding: 0.75rem 2rem;
  background: var(--gradient-gold);
  color: var(--dark-color);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
}

.project-link:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.project-content {
  padding: 1.5rem;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.project-stat {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.project-stat strong {
    color: var(--primary-color);
}

.project-content h3 {
  font-size: 1.25rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.project-content p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.projects-cta {
  margin-top: 4rem;
}

.cta-box {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .cta-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .cta-secondary:hover {
    background: white;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .projects {
        padding: 3rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .project-stat {
        font-size: 0.85rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-box h3 {
        font-size: 1.35rem;
    }
    
    .cta-box p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-buttons .cta-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 180px;
    }
    
    .project-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
}

/* =============== Footer Enhanced Sections =============== */
.footer-section h3 {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  font-weight: 700;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}

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

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.copyright {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* =============== Responsive Adjustments =============== */

/* Prevent any element from causing horizontal scroll */
img,
video,
iframe,
object,
embed {
  max-width: 100%;
  height: auto;
}

/* Ensure all text breaks properly */
h1, h2, h3, h4, h5, h6, p, span, a, li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .container {
      padding: 0 1rem;
  }
  
  :root {
      --section-padding: 3rem;
  }
  
  .back-to-top {
      bottom: 5rem;
      right: 1rem;
      width: 44px;
      height: 44px;
  }
  
  /* Fix for any absolute positioned elements that might overflow */
  .floating-card {
      position: relative;
      left: auto;
      right: auto;
      bottom: auto;
      margin: 1rem auto 0;
      max-width: 200px;
  }
  
  /* Ensure hero content doesn't overflow */
  .hero-content {
      max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 0.875rem;
  }
  
  :root {
      --section-padding: 2.5rem;
  }
}

/* =============== Enhanced Accessibility Styles =============== */

/* Focus visible outline for all interactive elements */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast focus for buttons */
button:focus-visible,
.cta-button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(245, 166, 35, 0.3);
}

/* Ensure sufficient color contrast */
a {
    text-decoration-skip-ink: auto;
}

/* Keyboard navigation indicator for navigation */
.nav-links a:focus-visible {
    background: rgba(245, 166, 35, 0.2);
    border-radius: var(--radius-sm);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000066;
        --secondary-color: #CC7700;
    }
    
    .cta-button {
        border: 2px solid currentColor;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Accessibility styles for keyboard shortcuts table */
.keyboard-shortcuts table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.keyboard-shortcuts th,
.keyboard-shortcuts td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.keyboard-shortcuts th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--primary-color);
}

.keyboard-shortcuts kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-family: monospace;
    font-size: 0.875rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Contact info styling in accessibility page */
.accessibility-content .contact-info {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    border-left: 4px solid var(--secondary-color);
}

.accessibility-content .contact-info p {
    margin: 0.5rem 0;
}

.accessibility-content section {
    margin-bottom: 2.5rem;
}

.accessibility-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.accessibility-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.accessibility-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* =============== Print Styles =============== */
@media print {
    .main-nav,
    .floating-cta,
    .back-to-top,
    .cookie-banner {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}