/* 
=== ZENTRALE CSS-DATEI: css/main.css ===
Erstellen Sie diese Datei und konsolidieren Sie alle gemeinsamen Styles
*/

/* KRITISCHE STYLES - Diese bleiben inline im <head> */
/* Nur für Above-the-fold Content - Navigation, Hero-Bereich */

/* ALLGEMEINE STYLES - Diese kommen in css/main.css */

/* Navigation Styles */
.nav-link {
  position: relative;
}


.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #21963F;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 10;
  border-radius: 8px;
  overflow: hidden;
  z-index: 50;
}

.dropdown-container:hover .dropdown {
  display: block;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn {
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

/* WhatsApp Button Animation */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

#whatsappButton a {
  animation: whatsapp-pulse 2s infinite;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #whatsappButton {
    bottom: 1rem;
    right: 1rem;
  }
  
  #whatsappButton a {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  #whatsappButton i {
    font-size: 1.25rem;
  }
}

/* Input Number Styles */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Vorher-Nachher Slider (für Hochdruckreinigung) */
#sliderContainer {
  position: relative;
}

#beforeContainer img {
  transition: none;
}

/* RemixIcon Fallback */
:where([class^="ri-"])::before { 
  content: "\f3c2"; 
}

/* Performance Optimierungen */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Font Loading Optimierung */
@font-face {
  font-family: 'remixicon';
  src: url('remixicon.woff2') format('woff2');
  font-display: swap; /* ← Diese Zeile hinzufügen */
}

/* Focus Styles für Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #21963F;
  outline-offset: 2px;
}

h1 {
  font-size: 2.25rem; /* entspricht z. B. text-4xl in Tailwind */
}
/* CSS-Fix für Mobile Button-Probleme */
/* Fügen Sie diesen Code in Ihre main.css oder als <style> in den <head> ein */

/* Mobile-optimierte Button-Styles */
@media (max-width: 768px) {
  /* Alle Hover-Effekte für Touch-Geräte deaktivieren */
  .btn:hover,
  button:hover,
  input[type="submit"]:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
  
  /* Button klickbarer machen */
  .btn,
  button[type="submit"],
  input[type="submit"] {
    min-height: 48px !important; /* Mindestgröße für Touch */
    padding: 12px 24px !important;
    font-size: 16px !important; /* Verhindert Zoom auf iOS */
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    user-select: none !important;
  }
  
  /* Spezifische Anpassungen für den Senden-Button */
  button[type="submit"].btn {
    width: 100% !important; /* Volle Breite auf Mobile */
    margin-top: 8px !important;
    border: 2px solid #21963F !important;
    cursor: pointer !important;
  }
  
  /* Active State für besseres Feedback */
  .btn:active,
  button:active {
    background-color: #1a7533 !important;
    transform: scale(0.98) !important;
  }
  
  /* Input-Felder auch optimieren */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px !important; /* Verhindert Zoom auf iOS */
  }
  
  /* Radio-Buttons größer machen */
  input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
  }
}

/* Zusätzliche Sicherheit: Alle Animationen auf Touch-Geräten deaktivieren */
@media (hover: none) and (pointer: coarse) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .btn {
    transition: background-color 0.1s ease !important;
  }
}
/* Chrome iOS spezifische Fixes */
@supports (-webkit-touch-callout: none) {
    /* Nur für iOS Geräte */
    
    input[type="submit"],
    button[type="submit"],
    button[onclick*="submit"] {
        /* Chrome iOS Button-Fixes */
        -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
        -webkit-touch-callout: none !important;
        touch-action: manipulation !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 999999 !important;
        
        /* Größere Touch-Area für Chrome iOS */
        min-height: 60px !important;
        min-width: 120px !important;
        padding: 18px 24px !important;
        
        /* Bessere Sichtbarkeit */
        border: 3px solid #21963F !important;
        background: #21963F !important;
        color: white !important;
        font-size: 18px !important;
        font-weight: bold !important;
        border-radius: 10px !important;
        
        /* Transitions für Chrome iOS */
        transition: all 0.1s ease !important;
    }
    
    /* Active State für Chrome iOS */
    input[type="submit"]:active,
    button[type="submit"]:active,
    button[onclick*="submit"]:active {
        background: #1a7533 !important;
        transform: scale(0.95) !important;
        opacity: 0.8 !important;
    }
    
    /* Form-Container für Chrome iOS optimieren */
    form {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Chrome-spezifische Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root input[type="submit"] {
        -webkit-appearance: none !important;
        background: #21963F !important;
        border: 2px solid #21963F !important;
    }
}
/* Video Performance Optimierungen */
#heroVideo {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Responsive Video */
@media (max-width: 768px) {
  #heroVideo {
    object-position: center center;
    min-height: 600px;
  }
}

/* Video Loading State */
#heroVideo:not([src]) {
  background-color: #1f2937;
  background-image: url('FirmenBilder/HeroBild.webp');
  background-size: cover;
  background-position: center;
}

/* Smooth Video Transition */
.video-fade-in {
  animation: videoFadeIn 1s ease-in;
}

@keyframes videoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Performance: GPU-Beschleunigung für das Video */
.hero-video-container {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Debug Toggle Button */
.debug-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  z-index: 30;
}