/* ===== BODY ===== */
body {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0;
    padding: 0px;
    padding-top: 90px; /* Critical for content positioning */
    line-height: 1.6;
    color: #333;
    background-color: #F0F0F0; /* Solid background #f9f9f9; */

    /* Remove any commented background properties */
}


/*@media (max-width: 1024px) {

html {
  overflow-x: hidden;

}
} */


.container {
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 50px;
    display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;

}

img {
  max-width: 100%;
  height: auto;
}


/* Add to your styles.css */
.klaro-element {
  box-shadow: 0 2px 5px #ccc !important;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  background-color: #f0fbff; 
  background-image: none; /* Disable any possible gradients */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Visual separation */
  color: #333; /* Ensure text color has contrast */
  padding: 0;
  /* height: 160px */
  display: flex;
  align-items: center;
  min-height: 100px;
  
  /* Optional: Add these for browser consistency */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

header, header * {
  box-sizing: border-box;
}

header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
}



/* Logo und Titel */
.logo-title {
    position: fixed;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: white;
}
.logo-title a {
  color: inherit !important; /* Forces the link to inherit white from .logo-title */
  text-decoration: none; /* Removes underline */
}

.logo-title:hover {
    text-decoration: none;
}

.logo img {
    position: fixed;
    max-width: 100%;
    top: 10px;
    left: 0px;
    height: 90px;
    width: auto;
}

@media (max-width: 1024px) {
  .logo img {
    max-width: 70vw;
    height: auto;

  }
}

.logo-title h1 {
    margin: 0 0 0 15px;
    font-size: 1.25em;
    white-space: nowrap;
}

/* Navigation und Buttons */
nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

nav ul li {
    margin: 0 8px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    background: #0066cc;
    border-radius: 0px;
    display: flex;
    align-items: center;
    font-size: 0.9em;
    white-space: nowrap;
    transition: background 0.3s;
    height: 30px;
}

nav ul li a:hover {
    background: #0094FF;
}

.icon-link {
    padding: 8px;
    background: #0094FF ;
    /* background: #28a745; */
    border-radius: 50%;
    width: 30px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.icon-link-contact {
    padding: 8px;
    background: #525252;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.icon-link-contact:hover,
.icon-link:hover {
    background: #0094FF;
}

/* Hero-Sektion   background-image: url('car-accident.webp'); */

/* Hero-Sektion */
#hero {

/* background-image: url('caracc.webp');*/
/*background-image: url('image_rotator.php'); */
/*  background-image: url('caracc5.png');   background-image: url('w3.png'); */
 background-image: url('carac8.webp');
  background-repeat: no-repeat;
  background-position: center center;
 /* background-size: cover; */
background-size: contain; 
background-size: 100%;
  color: #fff;
  height: calc(90vh - 100px); /* Accounts for header */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0px; /* Matches header height */
  position: relative;
}

.text-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  padding: 0px;
  border-radius: 0; /* optional: remove rounding if full cover */
  color: white;

  /* Optional: flex center text inside */
  display: flex;
  flex-direction: column; /* ✅ THIS fixes your line breaks */
  justify-content: center;
  align-items: center;
  text-align: center;
}

#contact-hero {
 /*   background-image: url('image-100.webp'); 
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; 
  color: #fff;
  height: calc(100vh - 80px); /* Accounts for header */
  color: #fff; 
 display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 80px; /* Matches header height */
  position: relative;

}

#hero-about {
  background-image: url('firma.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  height: calc(100vh - 300px); /* Accounts for header */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0px; /* Matches header height */
  position: relative;
}


/*#hero {
    background-image: url('car-accident.webp');
}*/


.text-overlay-contact {
    background: #0066cc;
    padding: 30px;
    border-radius: 0px;
    max-width: 800px;
    margin: 0 auto;
}


#hero h2 {
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#hero p {
    font-size: 1em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.btn {
    background: #0094FF;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.btn:hover {
    background: #218838;
}


/* Leistungen (Services) */
#services {
    padding: 40px 0;
    text-align: center;
}

.services-grid {
width: 100%;
  box-sizing: border-box;
  padding: 0 10px; /* optional small horizontal padding */
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 auto;
}

.service {
    flex: 1 1 30%;
    min-width: 250px;
    padding: 16px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 1024px) {
.service {
    flex: 1 1 100%;
    min-width: 0;   /* critical fix: allow shrinking below 250px if needed */
    max-width: 100%;
    box-sizing: border-box;
border-right-width:50px;
border-right-style:solid;
border-right-color: transparent;
}
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

c.service p {
    font-size: 0.9em;
    line-height: 1.6;
}

/* Über uns */
#certificates {
    text-align: center;
    color: #000000;
}

#ablauf {
    padding: 10px 0;
    text-align: center;
  background-color: #f0fbff;
 /* box-shadow:
    0 0 10px rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.5); 
    color: black; */
}


#about {
    padding: 40px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;

 background: linear-gradient(145deg, #0066cc, #000000);
  /* Original: linear-gradient(145deg, #000000, #1a1a1a); */
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
}

#about-expert {
    padding: 40px 0;
    text-align: center;
    background: #333;
    width: 100%;
    max-width: 100%;
/* background: linear-gradient(145deg, #0066cc, #000000); */
  /* Original: linear-gradient(145deg, #000000, #1a1a1a); */
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
}


#about-topbox {
    padding: 40px 0;
    text-align: center;
/*background: linear-gradient(90deg, #ffffff, #1a1a1a);*/
    background-color: #f9f9f9;
/*box-shadow:
  0 0 10px rgba(255, 255, 255, 0.1),
  0 4px 20px rgba(0, 0, 0, 0.5) */;
    color: #fff;
}


/* Datenschutzseite */
#datenschutz {
    padding: 40px 0;
    background: #fff;
}

#datenschutz h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

#datenschutz h3 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 8px;
}

#datenschutz p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
}

#datenschutz ul {
    margin-bottom: 15px;
    padding-left: 15px;
}

#datenschutz ul li {
    margin-bottom: 8px;
}

#datenschutz a {
    color: #0094FF;
    text-decoration: none;
    transition: color 0.3s;
}

#datenschutz a:hover {
    color: #218838;
    text-decoration: underline;
}

/* Contact Grid */
.contact-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FINALE FOOTER-STYLES */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-links-container {
    display: flex;
    gap: 60px;
    padding-left: 20px; /* Abstand vom linken Rand */
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 150px;
}

.footer-links h3 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0094FF;
}

.social-icons-right {
    display: flex;
    gap: 15px;
    padding-right: 20px; /* Abstand vom rechten Rand */
}

.social-icons-right a {
    color: #fff;
    background: #0066cc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons-right a:hover {
    background: #0094FF;
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9em;
}

/* RESPONSIVE ANPASSUNGEN */
@media (max-width: 1024px) {
    .footer-links-container {
        gap: 40px;
        padding-left: 15px;
    }
    .social-icons-right {
        padding-right: 15px;
    }
.footer-container {
    width: 10%;
    max-width: 10%;
    margin: 0 auto;
}

}

@media (max-width: 1024px) {
    .footer-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-container {
        flex-direction: column;
        gap: 25px;
        padding-left: 0;
    }
    
    .social-icons-right {
        justify-content: center;
        padding-right: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .social-icons-right a {
        width: 32px;
        height: 32px;
    }
    
    .footer-links-container {
        gap: 20px;
    }
}
/* ===== HAMBURGER-MENÜ ===== */ 
.mobile-menu-toggle {
    display: none; 
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
    color: var(--light);
    font-size: 1.5rem;
} 


/* Mobile Styles */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
        right: 20px; 
    } 

    #main-nav {
        position: fixed;
        top: 50px;
        right: -90%;
        width: 90%;
        max-width: 450px;
        height: 100vh;
	background: #333333;
      /*  background: var(--dark); */
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        overflow-y: auto;
        transition: right 0.3s ease;
    }



    #main-nav.active {
        right: 0;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    #main-nav li {
        width: 100%;
        display: block;
    }

    #main-nav li a {
        padding: 12px 15px;
        width: 100%;
    }

    /* Body Scroll sperren */
    body.menu-open {
        overflow: hidden;
    }
}



/* Desktop */
@media (min-width: 768px) {
  .hide-on-desktop {
    display: none;
  }

  .hide-on-mobile {
    display: block;
  }
}

/* Mobile */
@media (max-width: 1024px) {
  .hide-on-mobile {
    display: none;
  }

  .hide-on-desktop {
    display: block;
  }
}



.thank-you-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 100px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
}

.thank-you-container h1 {
    color: #28a745;
    margin-bottom: 20px;
}

.thank-you-container p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.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;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    padding-top: 60px;
    line-height: 1.6;
    color: #333;
    background-color: #F0F0F0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  #about {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(145deg, #0066cc, #000000);
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.1),
      0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    box-sizing: border-box;
  }
}


/* Base reset for list styling */
.language-dropdown,
.language-mobile {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Desktop language dropdown styling */
.language-dropdown {
  position: relative;
  cursor: pointer;
}

.language-dropdown .language-label {
  color: black;
  font-weight: bold;
}

.language-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 5px 0;
  font-size: 14px;
  z-index: 999;
  white-space: nowrap;
  top: 100%;
  left: 0;
}

.language-dropdown:hover .dropdown-menu {
  display: block;
}

.language-dropdown .dropdown-menu li {
  list-style: none;
}

.language-dropdown .dropdown-menu li a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: #333;
}

.language-dropdown .dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

/* Hide desktop dropdown on mobile */
@media (max-width: 768px) {
  .language-dropdown {
    display: none;
  }

.language-mobile {
  display: flex;
  justify-content: center;
  gap: 5px;
  background: transparent;
  padding: 10px 0;
  font-size: 18px;
}

.language-mobile a {
  text-decoration: none;
  line-height: 1;
}

  .language-mobile a:hover {
    background-color: #eee;
  }
}

/* Hide mobile language switcher on desktop */
@media (min-width: 769px) {
  .language-mobile {
    display: none;
  }
}
