/*--------------------------------------------------------------
# 1. Variables & Global Settings
--------------------------------------------------------------*/
:root {
  /* Fonts */
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;

  /* Global Colors */
  --background-color: #ffffff; 
  --default-color: #444444; 
  --heading-color: #012970; /* Dunkelblau */
  --accent-color: #D9232D;  /* Rot */
  --surface-color: #ffffff; 
  --contrast-color: #ffffff; 

  /* Navigation Colors */
  --nav-color: #012970;
  --nav-hover-color: #D9232D;
  --nav-mobile-background-color: #ffffff; 
  --nav-dropdown-background-color: #ffffff; 
  --nav-dropdown-color: #012970;
  --nav-dropdown-hover-color: #D9232D;

  /* Behavior */
  scroll-behavior: smooth;
}

/* Color Presets */
.light-background { --background-color: #f6f9ff; --surface-color: #ffffff; }
.dark-background { --background-color: #012970; --default-color: #ffffff; --heading-color: #ffffff; --surface-color: #0d3880; --contrast-color: #ffffff; }

/*--------------------------------------------------------------
# 2. General Styling
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px; /* Wichtig für korrekten Sprung im Menü */
  overflow: clip;
}

/* Section Titles */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.section-title p {
  margin-bottom: 0;
}

/* Disable AOS delay on mobile */
@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/*--------------------------------------------------------------
# Modern Header Styling (Complete Fix)
--------------------------------------------------------------*/
.header {
  --header-color: #012970;
  --nav-hover: #D9232D;
  
  /* WICHTIG: Hintergrund hier entfernen, damit fixed positioning funktioniert */
  background-color: transparent; 
  padding: 15px 0;
  transition: all 0.4s ease;
  z-index: 997;
  /* position: sticky oder fixed lassen */
}

/* Der Glass-Effekt kommt jetzt hier rein (Hintergrund-Ebene) */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.95); /* Dein Hintergrund */
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: -1; /* Liegt HINTER dem Logo und Menü */
}

.header .logo h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 700;
  color: var(--header-color);
  letter-spacing: -0.5px;
  font-family: var(--heading-font);
}

.header .logo img {
  max-height: 40px;
  margin-right: 10px;
}

.header .logo .highlight { color: var(--nav-hover); }

/* CTA Button */
.header .btn-getstarted {
  background: var(--nav-hover);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(217, 35, 45, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header .btn-getstarted:hover {
  background: #b01a22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 35, 45, 0.35);
  color: #fff;
}
/* --- DESKTOP Navigation (ab 1200px) --- */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; gap: 5px; }
  
  .navmenu a {
    color: var(--header-color);
    padding: 10px 15px;
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
  }

  .navmenu a i { font-size: 12px; line-height: 0; margin-left: 5px; }

  /* Hover Linie */
  .navmenu > ul > li > a::before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: 5px;
    left: 15px;
    right: 15px;
    background-color: var(--nav-hover);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before, .navmenu li:hover > a:before, .navmenu .active:before {
    visibility: visible;
    transform: scaleX(1);
  }

  .navmenu a:hover, .navmenu .active, .navmenu li:hover > a { color: var(--nav-hover); }

  /* Dropdown styling */
  .navmenu .dropdown ul {
    margin: 0;
    padding: 15px 0;
    background: #fff;
    display: block;
    position: absolute;
    visibility: hidden;
    left: 0;
    top: 140%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 8px;
    z-index: 99;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--nav-hover);
  }

  .navmenu .dropdown ul li { min-width: 220px; }
  .navmenu .dropdown ul a { padding: 10px 20px; font-size: 14px; text-transform: none; color: #444; font-weight: 500; }
  .navmenu .dropdown ul a:hover { color: var(--nav-hover); background-color: #f9f9fa; padding-left: 25px; }
  .navmenu .dropdown ul a::before { display: none; }
  .navmenu .dropdown:hover > ul { opacity: 1; top: 100%; visibility: visible; }
}


/*--------------------------------------------------------------
# 4. Hero Section (Combined & Optimized)
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 80vh;
  background-color: #f6f9ff;
  
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #012970;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: #d9232d;
  position: relative;
  display: inline-block;
}

.hero p {
  color: #444444;
  font-size: 18px;
  margin-bottom: 30px;
}

/* Badge */
.badge-custom {
  display: inline-block;
  background-color: #e7f1ff;
  color: #4154f1;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  width: fit-content;
}

/* Hero Buttons */
.btn-primary-custom {
  background: #d9232d;
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  text-align: center;
}

.btn-primary-custom:hover {
  background: #b01a22;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary-custom {
  background: transparent;
  color: #012970;
  padding: 12px 30px;
  border-radius: 5px;
  border: 2px solid #012970;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  text-align: center;
}

.btn-secondary-custom:hover {
  background: #012970;
  color: #fff;
}

/* Image & Animation */
.hero .hero-img img {
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

/* Trust Icons */
.trust-icons {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.trust-icons i { font-size: 18px; }

@media (max-width: 991px) {
  .hero { text-align: center; padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .hero .hero-img { margin-bottom: 30px; }
  .badge-custom { margin: 0 auto 15px auto; }
}

@keyframes up-down {
  0% { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}

/*--------------------------------------------------------------
# 5. Services Section (Cards with Image)
--------------------------------------------------------------*/
.service-item-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 350px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.service-item-image .img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
}

/* Hover Arrow */
.hover-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 32px;
  z-index: 2;
  animation: bounce 2s infinite;
  transition: all 0.3s ease-in-out;
}

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

/* Hover Content Overlay */
.hover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 41, 112, 0.85); /* Dunkelblau Transparent */
  color: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s ease-in-out;
  z-index: 3;
}

.hover-content .icon { font-size: 42px; color: #D9232D; margin-bottom: 15px; }
.hover-content h3 { font-size: 24px; font-weight: 700; margin-bottom: 15px; color: #fff; }
.hover-content p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }

/* Hover States */
.service-item-image:hover .img-bg { transform: scale(1.1); }
.service-item-image:hover .hover-arrow { opacity: 0; bottom: -50px; }
.service-item-image:hover .hover-content { transform: translateY(0); opacity: 1; }

/*--------------------------------------------------------------
# 6. Process Section
--------------------------------------------------------------*/
.bg-light { background-color: #f9f9fa !important; }

.process .process-step { text-align: center; padding: 20px; position: relative; }

.process .step-number {
  background: #fff;
  color: #d9232d;
  font-size: 24px;
  font-weight: 800;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #d9232d;
  transition: 0.3s;
  position: relative; 
  z-index: 2; 
}

.process .process-step:hover .step-number { background: #d9232d; color: #fff; transform: scale(1.1); }
.process h3 { font-size: 20px; font-weight: 700; color: #012970; margin-bottom: 15px; }
.process p { color: #444; font-size: 15px; line-height: 1.6; }

@media (min-width: 992px) {
  .process .process-step::after {
    content: "";
    position: absolute;
    top: 50px; 
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1; 
  }
  .col-lg-3:last-child .process-step::after { display: none; }
}

/*--------------------------------------------------------------
# 7. Why Us Section
--------------------------------------------------------------*/
.why-us { padding: 80px 0; background-color: #fff; }
.reason-box { margin-bottom: 40px; position: relative; }

.why-us .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #f6f9ff;
  border-radius: 50%;
  margin-bottom: 15px;
  transition: 0.3s;
  border: 1px solid #eef0ef;
}
.why-us .icon i { color: var(--accent-color); font-size: 28px; }

.why-us .reason-box:hover .icon { background: var(--accent-color); color: #fff; transform: scale(1.1); box-shadow: 0 0 15px rgba(217, 35, 45, 0.3); }
.why-us .reason-box:hover .icon i { color: #ffffff !important; }

.why-us h3 { font-size: 20px; font-weight: 700; color: var(--heading-color); margin-bottom: 10px; }
.why-us p { color: var(--default-color); font-size: 15px; line-height: 1.6; margin-bottom: 0; }

.why-us .main-image {
  max-height: 400px;
  object-fit: contain;
  animation: float-img 4s ease-in-out infinite;
}

@keyframes float-img {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 991px) {
  .why-us .main-image { margin: 40px 0; max-height: 300px; }
  .reason-box { margin-bottom: 30px; padding: 0 20px; }
}

/*--------------------------------------------------------------
# 8. Service Details (Alternating)
--------------------------------------------------------------*/
.service-details { padding: 80px 0; background-color: #fff; }

/* Scroll Fix für Navigation */
#service-wohnung, #service-haus, #service-keller, #service-dachboden, 
#service-buero, #service-garten, #service-verlassenschaft, #service-messi {
  scroll-margin-top: 100px;
}

.service-details h3 { font-weight: 700; font-size: 32px; color: var(--heading-color); margin-bottom: 15px; }
.service-details p { color: var(--default-color); line-height: 1.7; }

.service-details ul li { padding: 8px 0; display: flex; align-items: flex-start; gap: 12px; color: var(--default-color); }
.service-details ul li i { color: var(--accent-color); font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.btn-detail {
  display: inline-block;
  background: var(--heading-color);
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  margin-top: 10px;
}
.btn-detail:hover { background: var(--accent-color); color: #fff; transform: translateX(5px); }

.section-divider { border: 0; height: 1px; background: #e0e0e0; margin: 80px 0; width: 100%; }

@media (max-width: 991px) {
  .service-details h3 { font-size: 26px; }
  .service-details .row { flex-direction: column; }
  .service-details .order-1 { order: 1 !important; }
  .service-details .order-2 { order: 2 !important; }
  .section-divider { margin: 40px 0; }
}

/*--------------------------------------------------------------
# 9. Testimonials Section
--------------------------------------------------------------*/
.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease-in-out;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1); border-color: transparent; }
.testimonial-card .stars { color: #ffc107; margin-bottom: 20px; font-size: 18px; }
.testimonial-card .review-text { font-style: italic; color: #555; line-height: 1.6; margin-bottom: 25px; font-size: 16px; }
.testimonial-card .profile { display: flex; align-items: center; gap: 15px; border-top: 1px solid #f0f0f0; padding-top: 20px; }

.profile-icon {
  width: 50px;
  height: 50px;
  background: #e7f1ff;
  color: var(--heading-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}
.profile-icon.color-2 { background: #ffeaea; color: #D9232D; }
.profile-icon.color-3 { background: #e6fcf5; color: #0ca678; }
.profile-icon.color-4 { background: #fff4e6; color: #fcc419; }

.profile-info h4 { font-size: 16px; font-weight: 700; margin: 0; color: var(--heading-color); }
.profile-info span { font-size: 13px; color: #888; }

.testimonials .swiper-pagination { margin-top: 20px; position: relative; }
.testimonials .swiper-pagination .swiper-pagination-bullet { background-color: #dcdcdc; opacity: 1; }
.testimonials .swiper-pagination .swiper-pagination-bullet-active { background-color: var(--accent-color); }

/*--------------------------------------------------------------
# 10. Pricing Section
--------------------------------------------------------------*/
.pricing-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.pricing-card:hover { transform: translateY(-5px); box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); }
.pricing-card.featured { border: 2px solid var(--accent-color); z-index: 2; transform: scale(1.05); }
.pricing-card.featured:hover { transform: scale(1.05) translateY(-5px); }

.badge-popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  padding: 5px 15px;
  font-size: 12px;
  font-weight: 700;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  text-transform: uppercase;
}

.card-header { text-align: center; margin-bottom: 30px; }
.card-header h3 { font-size: 20px; font-weight: 700; color: var(--heading-color); margin-bottom: 15px; }
.card-header .price { font-size: 32px; font-weight: 800; color: var(--accent-color); }
.card-header .price span { font-size: 16px; font-weight: 400; color: #999; }

.pricing-card ul li { padding: 10px 0; display: flex; align-items: center; font-size: 15px; color: var(--default-color); }
.pricing-card ul li i { color: var(--accent-color); font-size: 20px; margin-right: 10px; }

.btn-pricing-outline { display: inline-block; padding: 10px 30px; border-radius: 50px; color: var(--heading-color); border: 2px solid var(--heading-color); font-weight: 600; transition: 0.3s; }
.btn-pricing-outline:hover { background: var(--heading-color); color: #fff; }

.btn-pricing-fill { display: inline-block; padding: 12px 35px; border-radius: 50px; color: #fff; background: var(--accent-color); border: 2px solid var(--accent-color); font-weight: 600; transition: 0.3s; }
.btn-pricing-fill:hover { background: #fff; color: var(--accent-color); }

/* Info Box */
.pricing-info-box { background: #f6f9ff; border-left: 5px solid var(--heading-color); padding: 25px; border-radius: 5px; }
.pricing-info-box .icon { font-size: 32px; color: var(--heading-color); }
.pricing-info-box h4 { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: var(--heading-color); }

/* Preisliste */
.pricing-list-wrapper { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); }
.pricing-list-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px dashed #e0e0e0; }
.pricing-list-item:last-child { border-bottom: none; }
.pricing-list-item .item-name { font-weight: 600; color: var(--heading-color); display: flex; align-items: center; gap: 10px; }
.pricing-list-item .item-name i { color: var(--accent-color); font-size: 18px; }
.pricing-list-item .item-dots { flex-grow: 1; border-bottom: 2px dotted #e0e0e0; margin: 0 15px; position: relative; top: -5px; }
.pricing-list-item .item-price { font-weight: 800; font-size: 18px; color: var(--heading-color); white-space: nowrap; }

@media (max-width: 991px) {
  .pricing-card.featured { transform: none; }
  .pricing-list-item { flex-direction: column; align-items: flex-start; gap: 5px; }
  .pricing-list-item .item-dots { display: none; }
  .pricing-list-item .item-price { align-self: flex-end; color: var(--accent-color); }
}

/*--------------------------------------------------------------
# 11. FAQ Section
--------------------------------------------------------------*/
.faq .faq-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease-in-out;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.faq .faq-item:hover { transform: translateY(-3px); box-shadow: 0px 10px 35px rgba(0, 0, 0, 0.1); border-color: #e0e0e0; }
.faq .faq-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 0; padding-right: 30px; color: var(--heading-color); line-height: 24px; }
.faq .faq-item h3 .num { color: var(--accent-color); font-size: 16px; margin-right: 5px; }

.faq .faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq .faq-content p { color: var(--default-color); margin-top: 15px; margin-bottom: 0; font-size: 15px; line-height: 1.6; }

.faq .faq-toggle { position: absolute; top: 20px; right: 20px; font-size: 24px; line-height: 1; transition: 0.3s; color: var(--heading-color); }

.faq .faq-item.faq-active { background-color: #fff; border-left: 4px solid var(--accent-color); }
.faq .faq-item.faq-active h3 { color: var(--accent-color); }
.faq .faq-item.faq-active .faq-content { max-height: 200px; }
.faq .faq-item.faq-active .faq-toggle { transform: rotate(45deg); color: var(--accent-color); }

/*--------------------------------------------------------------
# 12. Contact Section
--------------------------------------------------------------*/
.contact .info-item+.info-item { margin-top: 40px; }

.contact .info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 { padding: 0; font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.contact .info-item p { padding: 0; margin-bottom: 0; font-size: 14px; }

/* Contact Form */
.php-email-form {
  background-color: #fff;
  border-top: 3px solid var(--accent-color);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

.php-email-form label { font-size: 14px; font-weight: 600; color: var(--heading-color); margin-bottom: 5px; }

.php-email-form input,
.php-email-form textarea,
.php-email-form select {
  width: 100%;
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 5px;
  color: var(--default-color);
  background-color: #fff;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
}

.php-email-form input:focus,
.php-email-form textarea:focus,
.php-email-form select:focus {
  border-color: var(--accent-color);
  outline: none;
}

.btn-submit-custom {
  background: var(--accent-color);
  border: 0;
  padding: 12px 40px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 15px;
  width: 100%; 
}

.btn-submit-custom:hover { background: var(--heading-color); transform: translateY(-2px); }
@media (min-width: 768px) { .btn-submit-custom { width: auto; } }

/* Form Messages */
.php-email-form .loading { display: none; background: #fff; text-align: center; padding: 15px; }
.php-email-form .loading:before { content: ""; display: inline-block; border-radius: 50%; width: 24px; height: 24px; margin: 0 10px -6px 0; border: 3px solid #18d26e; border-top-color: #eee; animation: animate-loading 1s linear infinite; }
.php-email-form .sent-message { display: none; color: #fff; background: #18d26e; text-align: center; padding: 15px; font-weight: 600; }
.php-email-form .error-message { display: none; color: #fff; background: #ed3c0d; text-align: center; padding: 15px; font-weight: 600; }

@keyframes animate-loading { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/*--------------------------------------------------------------
# 13. Footer
--------------------------------------------------------------*/
#footer.footer {
  color: #f0f0f0;
  background-color: #012970 !important; /* Dunkelblau erzwungen */
  font-size: 14px;
  padding-bottom: 30px;
  position: relative;
  border-top: 5px solid var(--accent-color);
  z-index: 1;
}

#footer .footer-top { padding-top: 50px; padding-bottom: 30px; }

#footer .footer-about .logo span {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}

#footer .footer-about p { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

#footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 10px;
  transition: 0.3s;
}

#footer .social-links a:hover { background-color: var(--accent-color); color: #ffffff; border-color: var(--accent-color); }

#footer h4 { font-size: 16px; font-weight: bold; padding-bottom: 12px; color: #ffffff; }
#footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
#footer .footer-links ul li { padding: 8px 0; }
#footer .footer-links ul a { color: rgba(255, 255, 255, 0.8); transition: 0.3s; }
#footer .footer-links ul a:hover { color: var(--accent-color); padding-left: 5px; }

#footer .footer-contact p { margin-bottom: 5px; color: rgba(255, 255, 255, 0.8); }
#footer .footer-contact strong, #footer .footer-contact span a { color: #ffffff; }

#footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
#footer .credits a { color: #ffffff; text-decoration: underline; }

/*--------------------------------------------------------------
# 14. Helper Components (Preloader, ScrollTop)
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll Top Button (Links positioniert wie besprochen) */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: auto; 
  left: 20px;
  bottom: 20px;
  z-index: 999;
  background-color: var(--heading-color); 
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i { font-size: 24px; color: var(--contrast-color); line-height: 0; }
.scroll-top:hover { background-color: color-mix(in srgb, var(--heading-color), transparent 20%); color: var(--contrast-color); }
.scroll-top.active { visibility: visible; opacity: 1; }
/* --- Fix für Links in Service Karten --- */
.service-item-image .hover-content h3 a {
  color: #fff; /* Link soll weiß bleiben */
  text-decoration: none; /* Keine Unterstreichung */
  transition: 0.3s;
}

.service-item-image .hover-content h3 a:hover {
  color: #e0e0e0; /* Leichtes Grau beim Hover über den Text selbst */
}
/* =========================================
   MOBILE NAVIGATION (FINALER FIX)
   ========================================= */
@media (max-width: 1199px) {
  
  /* 1. Hamburger Button (Muss ganz oben liegen) */
  .mobile-nav-toggle {
    color: var(--header-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    z-index: 999999; /* Über dem Overlay */
  }

  /* 2. Container für das Menü (Grundeinstellung) */
  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  /* 3. Das eigentliche Menü (Die weiße Karte) */
  .navmenu > ul {
    display: none; /* Standardmäßig versteckt */
    position: fixed !important; /* Fixiert am Bildschirm, nicht am Header */
    top: 70px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px 0;
    margin: 0;
    overflow-y: auto; /* Scrollbar wenn nötig */
    transition: all 0.3s ease-in-out;
    z-index: 9998;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0,0,0,0.05);
    transform: translateY(10px); /* Für Animation */
    opacity: 0;
  }

  /* 4. Wenn Aktiv (Klasse vom JS): Anzeigen! */
  body.mobile-nav-active .navmenu > ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* 5. Overlay Hintergrund (Abdunkelung) */
  body.mobile-nav-active .navmenu:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9996;
    display: block;
  }

  /* 6. Links im Hauptmenü */
  .navmenu a {
    color: #444444; /* Dunkle Schrift */
    padding: 12px 20px;
    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    border-bottom: 1px solid #f5f5f5;
  }

  .navmenu li:last-child a {
    border-bottom: none;
  }

  .navmenu a:hover, .navmenu .active, .navmenu li:hover > a {
    color: var(--nav-hover); /* Rot beim Hover */
    background-color: #f9f9fa;
  }

  /* 7. Dropdown Pfeil */
  .navmenu a i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: rgba(217, 35, 45, 0.1);
    color: var(--nav-hover);
  }

  /* 8. Untermenü (Dropdown) Styles */
  .navmenu .dropdown ul {
    position: static;
    display: none; /* Erstmal verstecken */
    z-index: 99;
    padding: 10px 0;
    margin: 0;
    background-color: #f8f9fa !important; /* Hellgrauer Hintergrund */
    border: none;
    box-shadow: none;
  }

  /* Sichtbar machen, wenn JS die Klasse setzt */
  .navmenu .dropdown > .dropdown-active {
    display: block !important;
  }

  /* Links im Untermenü (HIER WAR DER FEHLER) */
  .navmenu .dropdown ul a {
    padding-left: 40px;
    font-size: 15px;
    font-weight: 400;
    color: #333333 !important; /* Zwingend Dunkelgrau */
  }

  .navmenu .dropdown ul a:hover {
    color: var(--nav-hover) !important;
    background: transparent;
  }
}
/* Modal Button Hover Effekt */
#contactModal .btn:hover {
  background-color: #f8f9fa;
  border-color: #D9232D !important; /* Roter Rand beim Hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #01263d;
  color: #fff;
  padding: 20px;
  z-index: 100000;
  display: block;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

#cookie-banner p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

#cookie-banner .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

#cookie-banner button {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

#cookie-banner #accept-all {
  background-color: #c8102e;
  color: white;
}

#cookie-banner #accept-analytics {
  background-color: #ffffff;
  color: #01263d;
}

#cookie-banner #decline-all {
  background-color: #666;
  color: white;
}

#cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.85rem;
}
 .sticky-wrapper {
  position: fixed;
  bottom: 120px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Der Haupt-Button (Rot) */
#sticky-btn-trigger {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #D9232D; /* Deine Akzentfarbe */
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(217, 35, 45, 0.4);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  
  /* Pulsierende Animation */
  animation: pulse-red 2s infinite;
}

#sticky-btn-trigger:hover {
  transform: scale(1.1);
}

/* Puls-Animation in Rot */
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(217, 35, 45, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(217, 35, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 35, 45, 0); }
}

/* Icon-Wechsel Logik (Chat vs X) */
#sticky-btn-trigger .icon-opened {
  display: none;
  font-size: 24px;
}

/* Wenn aktiv (Klasse .active wird per JS gesetzt) */
.sticky-wrapper.active #sticky-btn-trigger {
  background: #333; /* Wird dunkel beim Schließen */
  transform: rotate(180deg);
  animation: none; /* Pulsieren stoppen */
}

.sticky-wrapper.active #sticky-btn-trigger .icon-closed { display: none; }
.sticky-wrapper.active #sticky-btn-trigger .icon-opened { display: block; }

/* --- Die Liste der Buttons --- */
.contact-options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end; /* Rechtsbündig damit Labels links stehen */
  margin-bottom: 10px;
}

/* Einzelner Kontakt-Button */
.contact-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  
  /* Startzustand: Unsichtbar und nach unten verschoben */
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s ease;
  pointer-events: none; /* Damit man nicht klickt wenn unsichtbar */
}

/* Farben der Dienste */
.contact-btn.whatsapp { background: #25d366; }
.contact-btn.phone { background: #012970; } /* Dein Firmen-Blau */
.contact-btn.email { background: #6c757d; }

/* Hover Effekt für kleine Buttons */
.contact-btn:hover {
  transform: scale(1.1) !important;
}

/* Tooltip Text links neben dem Button */
.tooltip-text {
  position: absolute;
  right: 70px; /* Links neben dem Button */
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: 0.2s;
  pointer-events: none;
  font-weight: 500;
}

.contact-btn:hover .tooltip-text {
  opacity: 1;
  transform: translateX(0);
}

/* --- Aktivierung (Animation) --- */
.sticky-wrapper.active .contact-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Verzögerung für den "Plopp" Effekt (Staggered Animation) */
.sticky-wrapper.active .contact-btn.email { transition-delay: 0.05s; }
.sticky-wrapper.active .contact-btn.phone { transition-delay: 0.1s; }
.sticky-wrapper.active .contact-btn.whatsapp { transition-delay: 0.15s; }

/* Mobile Anpassung: Abstand zum Rand etwas kleiner */
@media (max-width: 768px) {
  .sticky-wrapper {
    bottom: 120px;
    right: 20px;
  }
  
  /* Auf Handy Labels dauerhaft anzeigen? Nein, besser verstecken oder nur Icon lassen */
  .tooltip-text {
    display: none; /* Spart Platz auf kleinen Screens */
  }
}
/* Styling für Unterseiten wie Impressum */
.page-title {
  padding: 120px 0 60px 0;
  background-color: #f6f9ff;
  margin-bottom: 30px;
}
.page-title h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
}
.breadcrumbs ol li + li {
  padding-left: 10px;
}
.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #6c757d;
  content: "/";
}