/* =================================================== */
/* 1. GRUNDKONFIGURATION & LAYOUT BASIS                */
/* =================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #050a12;
  color: #ffffff;
  overflow-x: hidden;
}

/* --- DER HINTERGRUND-CONTAINER --- */
.main-site-container {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background: url('elektro-bg-clean.png') no-repeat center center;
  background-size: cover;
  box-shadow: inset 0 0 100px 50px #050a12;
  display: flex;
  flex-direction: column;
}

/* --- GRAPHISCHE ELEMENTE & GLOW --- */

.glow-line {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: #1a73e8;
  box-shadow: 0 0 15px 2px rgba(26, 115, 232, 0.7);
  z-index: 5;
}

.top-line {
  margin-top: 40px;
}

.middle-line-with-text {
  height: auto;
  background: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  padding: 0 20px;
}

.middle-line-with-text::before,
.middle-line-with-text::after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background-color: #1a73e8;
  box-shadow: 0 0 15px 2px rgba(26, 115, 232, 0.7);
}

.middle-line-with-text p {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0 15px;
  text-align: center;
}

.footer-line {
  margin-top: auto;
  margin-bottom: 20px;
  height: auto;
  background: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
}

.footer-line a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

/* =================================================== */
/* 2. INHALTS-OVERLAYS & DESKTOP STYLING               */
/* =================================================== */

.content-overlay {
  position: relative;
  z-index: 10;
  padding: 0 60px;
}

.upper-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding-top: 30px;
}

.text-block-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.sub-title {
  font-size: 1.2rem;
  color: #a8d5f3;
  margin-bottom: 20px;
}

.description {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
  max-width: 500px;
}

/* DOMAIN-LINK (ANFRAGE BUTTON) DESKTOP STYLING */
.domain-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 50px;
  margin-bottom: 25px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  
  /* KLICK-REPARATUR */
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.domain-link:hover,
.domain-link:active {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
  transform: translateY(-2px);
}

.service-icons-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90px;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 5px;
  border: 1px solid transparent;
}

.icon-box i {
  font-size: 2.2rem;
  color: #a8d5f3;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.icon-box p {
  font-size: 0.6rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.1;
}

/* Hover-Effekt Icon Box (Desktop) */
.icon-box:hover {
  background: rgba(5, 10, 18, 0.85); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(0, 210, 255, 0.15);
  transform: translateY(-4px);
}

.icon-box:hover i {
  color: #00d2ff;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
}

.icon-box:hover p {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Unterer Bereich (Vorteile) */
.lower-content {
  padding-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px; 
}

.benefit-cell {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-cell:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-color: rgba(0, 210, 255, 0.6) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 210, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

.benefit-cell i {
  font-size: 2.2rem;
  color: #a8d5f3;
  margin-bottom: 12px;
}

.benefit-cell h3 {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 5px;
}

.benefit-cell p {
  font-size: 0.75rem;
  color: #cccccc;
  line-height: 1.4;
}

.back-to-home-link {
  position: relative;
  z-index: 10;
  display: inline-block;
  color: #a8d5f3;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 30px 0 0 60px;
  transition: all 0.3s ease;
}

.back-to-home-link:hover,
.back-to-home-link:active {
  color: #00d2ff;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.8), 0 0 20px rgba(26, 115, 232, 0.6);
}

/* =================================================== */
/* 3. NAVIGATION OHNE BURGER (DESKTOP & MOBILE)        */
/* =================================================== */

.site-header .navigation {
  position: static !important;
  right: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  overflow: visible !important;
}

.site-header .navigation .back-link {
  display: none !important;
}

@media (min-width: 769px) {
  .nav-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  .site-header .navigation a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
  }

  .site-header .navigation a:hover {
    color: #00d2ff !important;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.6) !important;
  }
}

/* =================================================== */
/* 4. MOBILES LAYOUT (HANDY / TABLET REPOSITONING)    */
/* =================================================== */

@media (max-width: 992px) {

  html, body {
    overflow-x: hidden !important;
    width: 100vw;
  }

  .main-site-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 100vh;
    padding: 20px 0 !important;
  }

  .upper-content,
  .lower-content,
  .main-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  .text-block-left {
    align-items: center !important;
    text-align: center !important;
  }

  .glass-card-layer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative;
    z-index: 5;
    width: calc(100% - 30px) !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    background: rgba(5, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(26, 115, 232, 0.4);
    border-radius: 16px;
    padding: 30px 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    box-sizing: border-box !important;
  }

  /* Sicherstellen, dass der Button auch mobil angezeigt wird */
  .upper-content .domain-link {
    display: inline-flex !important;
    margin: 10px auto 25px auto !important;
  }

  .main-title {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem) !important;
    line-height: 1.25 !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    text-align: center !important;
    word-break: break-word !important;
    hyphens: auto;
  }

  .sub-title {
    font-size: 0.85rem !important;
    margin-bottom: 18px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .description {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin: 0 0 20px 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .back-to-home-link {
    margin: 20px 0 0 20px !important;
    font-size: 0.8rem;
  }
}

/* =================================================== */
/* 5. MOBILES GRID & SLIDER (BIS 768px)               */
/* =================================================== */

@media (max-width: 768px) {

  /* NAVIGATION MOBIL */
  .nav-wrapper {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
  }

  .site-header .navigation {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  .site-header .navigation a {
    font-size: 0.85rem !important;
  }

  /* SERVICE ICONS GRID */
  .service-icons-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 20px 20px 20px !important; 
    margin-top: 10px !important;
    box-sizing: border-box !important;
  }

  .icon-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 14px 8px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
  }

  .service-icons-row .icon-box:last-child {
    grid-column: 1 / -1 !important;
    width: 60% !important;
    margin: 0 auto !important;
  }

  .icon-box:active,
  .icon-box:hover {
    background: rgba(5, 10, 18, 0.85) !important; 
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-color: rgba(0, 210, 255, 0.6) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(0, 210, 255, 0.15) !important;
    transform: translateY(-3px) !important;
  }

  .icon-box:active i,
  .icon-box:hover i {
    color: #00d2ff !important;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.8) !important;
  }

  .icon-box i,
  .icon-box img,
  .icon-box svg {
    display: block !important;
    margin: 0 auto 6px auto !important;
    font-size: 1.5rem !important;
    color: #a8d5f3;
    transition: color 0.3s ease !important;
  }

  .icon-box p,
  .icon-box span {
    font-size: 0.65rem !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
    word-break: break-word !important;
  }

  /* FOOTER LINK MOBIL */
  .footer-line {
    margin-top: 20px !important;
    padding: 15px 0 30px 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-line a {
    font-size: 0.8rem !important;
    font-weight: 700;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    text-align: center !important;
  }

  /* WISCH-GRID / HANDY-SLIDER (BENEFITS) */
  .lower-content,
  .content-overlay {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  .benefits-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    width: 100% !important;
    gap: 15px !important;
    padding: 10px 20px 25px 20px !important;
    box-sizing: border-box !important;
  }

  .benefit-cell {
    flex: 0 0 80% !important;
    min-width: 80% !important;
    max-width: 80% !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
  }

  .benefit-cell:active,
  .benefit-cell:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-color: rgba(0, 210, 255, 0.6) !important;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.25) !important;
  }
}