/* Grundkonfiguration */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #242d3a;
  color: #0d2c54;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* --- „ZURÜCK ZUR STARTSEITE“-LINK --- */
.back-to-home-link,
.back-to-home-link:visited,
.back-to-home-link:link {
  position: absolute !important;
  top: 25px !important;
  left: 20px !important;
  z-index: 100 !important;
  
  /* PC-FARBE: Dunkles Blau */
  color: #0c3b6b !important; 
  
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  
  /* Kein Kasten / Kein Hintergrund */
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* Hover-Effekt am PC */
.back-to-home-link:hover {
  opacity: 0.8 !important;
  transform: translateX(-3px) !important;
}

/* ==========================================================================
   HANDY-ANSICHT (UNTER 768PX) - MEHR ABSTAND ZUR ÜBERSCHRIFT
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Link auf dem Handy */
  .back-to-home-link,
  .back-to-home-link:visited,
  .back-to-home-link:link {
    top: 15px !important;
    left: 15px !important;
    font-size: 0.8rem !important;
    color: #70b2e2 !important; /* Hellblau */
  }

  /* 2. Großzügiger Abstand: Drückt die Überschrift (SHK) nach unten */
  .main-title {
    padding-top: 70px !important; /* Hier kannst du den Abstand steuern */
  }
}
/* Haupt-Container (nimmt nun den gesamten Bildschirm ein) */
.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

/* Nur die Ränder dunkel/schattiert, Bild in der Mitte bleibt scharf */
.container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 120px rgba(36, 45, 58, 0.9);
  z-index: 2;
  pointer-events: none;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Text & Icon Styling - Weiter nach unten gerückt */
.main-title {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

.main-title h1 {
  font-size: 4.8rem;
  font-weight: 900;
  color: #0c3b6b;
  letter-spacing: 2px;
}

.main-title h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a2540;
  margin-top: 5px;
}

.main-title p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a4a75;
}
/* KLEINER ANFRAGE-KASTEN (STIL DER ANDEREN SEITE)     */
/* =================================================== */
.anfrage-box {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  background: rgba(220, 225, 230, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  
  color: #0a2540;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.anfrage-box:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.15);
  color: #0c3b6b;
}

/* Icon Kacheln für PC (Dezentes, leicht durchsichtiges Grau) */
.item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 180px;
  padding: 10px 6px;
  background: rgba(220, 225, 230, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  z-index: 3;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #0a2540;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #0a2540;
  margin-bottom: 6px;
  transition: transform 0.3s, background 0.3s;
}

.item:hover .icon-circle {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.9);
}

.item h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0a2540;
}

.item p {
  font-size: 0.65rem;
  font-weight: 700;
  color: #091b2b;
  line-height: 1.1;
  margin-top: 2px;
}

/* Absolute Positionierung für Desktop */
.pos-sanitaer        { top: 12%; left: 6%; }
.pos-heizung         { top: 12%; left: 24%; }
.pos-klima           { top: 12%; left: 62%; }
.pos-lueftung        { top: 12%; left: 80%; }

.pos-installation    { top: 35%; left: 9%; }
.pos-wartung         { top: 35%; left: 78%; }

.pos-qualitaet       { top: 60%; left: 8%; }
.pos-zuverlaessigkeit { top: 60%; left: 79%; }

.pos-kompetenz       { top: 83%; left: 5%; }
.pos-service         { top: 83%; left: 29%; }
.pos-euweit          { top: 83%; left: 60%; }
.pos-nachhaltigkeit  { top: 83%; left: 81%; }


/* =================================================== */
/* Mobile Responsive Design (Smartphones & Tablets)    */
/* =================================================== */
@media (max-width: 900px) {
  body {
    align-items: flex-start;
    background-color: #1a222d;
    overflow-x: hidden;
  }

  .back-to-home-link {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 15px;
    color: #ffffff;
  }

  .container {
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    min-height: 100vh;
    padding: 20px 15px 50px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
  }

  .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
  }

  .container::after {
    display: none;
  }

  .bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
  }

  .main-title {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-bottom: 30px;
  }

  .main-title h1 {
    font-size: 2.6rem;
    color: #ffffff;
  }

  .main-title h2 {
    color: #a5d3ff;
  }

  .main-title p {
    color: #d9e2ec;
  }

  .anfrage-box {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
  }

  .items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    z-index: 3;
    margin-bottom: 20px;
  }

  .item {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    background: rgba(220, 225, 230, 0.6);
    padding: 12px 8px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  .icon-circle {
    width: 42px;
    height: 42px;
    font-size: 17px;
    color: #0a2540;
    margin-bottom: 5px;
  }

  .item h3 {
    font-size: 0.75rem;
    color: #0a2540;
  }

  .item p {
    font-size: 0.55rem;
    color: #091b2b;
  }
}