* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  background-color: #000000;
  /* Hintergrundbild laden */
  background-image: url('maler.jpg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

/* Zurück-Link (PC: oben links) */
.back-to-home-link {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: inline-block;
  color: #a8d5f3;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  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);
}

/* Haupt-Container vertikal und horizontal exakt zentriert */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.45); /* Dunkler Overlay-Effekt für die ganze Seite */
}

/* Header */
.hero-header {
  text-align: center;
  margin-top: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.brand-title {
  font-size: 3.8rem; /* Große Hauptüberschrift */
  font-weight: 800;
  color: #38bdf8;
  margin-top: 0.2rem;
  font-style: italic;
}

/* Styling für den Anfrage-Button unter der Überschrift */
.anfrage-box {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 10px 24px;
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 1px solid #38bdf8;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.anfrage-box:hover {
  background: #38bdf8;
  color: #000000;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

/* Dunkle, transparente Boxen in der Mitte (Glassmorphism-Effekt) */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Auf PC nebeneinander */
  gap: 15px;
  max-width: 950px;
  width: 100%;
  margin: auto; /* Garantiert genaue vertikale Zentrierung */
  
  /* Dunkler, halbtransparenter Hintergrund mit Unschärfe-Filter */
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  padding: 30px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.service-card {
  text-align: center;
  padding: 10px 15px;
  /* Trennlinie DANEBEN (rechts neben jeder Karte als Abgrenzung): */
  border-right: 1px solid rgba(255, 255, 255, 0.2); 
}

/* Beim letzten Element rechts keine Linie machen */
.service-card:last-child {
  border-right: none; 
}

.service-icon {
  font-size: 2.8rem;
  color: #38bdf8;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
  border-bottom: none; /* Keine Unterstreichung */
  padding-bottom: 0;
}

.service-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Footer Banner */
.hero-footer {
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-footer p {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
}

/* Mobile Optimierung (Handy & Tablet) */
@media (max-width: 992px) {
  .back-to-home-link {
    position: relative;
    top: auto;
    left: auto;
    margin: 10px 0 0 20px !important;
    font-size: 0.8rem;
    align-self: flex-start;
  }

  .anfrage-box {
    font-size: 0.8rem;
    padding: 8px 18px;
    margin-top: 1rem;
    margin-bottom: 3rem !important; 
    display: inline-block;
  }

  .services-container {
    grid-template-columns: 1fr; /* Auf Mobilgeräten untereinander */
    padding: 15px 10px;
    max-width: 90%;
    margin: auto;
    background: rgba(0, 0, 0, 0.8);
  }

  .service-card {
    border-right: none; /* Vertikale Linien auf Mobil entfernen */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Auf Mobil untereinander trennen */
    padding: 12px 5px;
  }

  .service-card:last-child {
    border-bottom: none;
  }

  .service-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  .brand-title { 
    font-size: 1.8rem;
  }

  .brand-subtitle {
    font-size: 1.2rem;
  }

  .hero-footer p {
    font-size: 1.2rem;
  }
}