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

body {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)), 
              url('dachdecker.jpg.png') no-repeat center center/cover;
  background-attachment: fixed;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 40px;
}

/* =================================================== */
/* ZURÜCK ZUR STARTSEITE - LINK (OBEN LINKS)           */
/* =================================================== */
.back-to-home-link {
  position: relative;
  z-index: 10;
  display: inline-block;
  color: #f3cca8; /* Helles Orange/Beige */
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

/* Leuchteffekt in Glow-Farbe beim Hover / Antippen */
.back-to-home-link:hover,
.back-to-home-link:active {
  color: #ff9f43;
  text-shadow: 0 0 10px #ff9f43, 0 0 20px rgba(232, 119, 26, 0.6);
}

/* Header Container */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-transform: uppercase;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  margin-bottom: 20px;
}

.header-right {
  text-align: right;
}

.header-right h2 {
  font-size: 1.6rem;
  letter-spacing: 1.5px;
  color: #f0f0f0;
}

.header-right p {
  font-size: 1.2rem;
  font-weight: normal;
  color: #cccccc;
}

/* Styling für den Anfrage-Button */
.anfrage-box {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px; /* Abstand nach unten zur "EU WEIT"-Zeile */
  padding: 10px 24px;
  background: rgba(255, 159, 67, 0.15);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border: 1px solid #ff9f43;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 159, 67, 0.3);
}

.anfrage-box:hover {
  background: #ff9f43;
  color: #000000;
  box-shadow: 0 0 25px rgba(255, 159, 67, 0.8);
  transform: translateY(-2px);
}

/* Services Grid (Karten-Bereich) */
.content {
  margin-top: auto;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.service-card {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease-out;
  position: relative;
}

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

/* Hover-Effekt auf Karten */
.service-card:hover,
.service-card:active {
  background-color: rgba(255, 159, 67, 0.15);
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.service-card:hover .icon-box i {
  color: #ff9f43;
  transform: scale(1.1);
}

.icon-box {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.icon-box i {
  transition: all 0.3s ease-out;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.service-card p {
  font-size: 1rem;
  font-weight: normal;
  color: #dddddd;
  line-height: 1.4;
}

/* Footer Banner */
.footer-banner {
  text-align: center;
  padding: 40px 0 20px 0;
}

.footer-banner h2 {
  font-size: 2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  color: #ffffff;
}

/* Responsiveness (Smartphone & Tablet) */
@media (max-width: 992px) {
  body {
    padding: 15px;
  }

  .back-to-home-link {
    font-size: 0.8rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .header-right {
    text-align: left;
  }

  .anfrage-box {
    font-size: 0.8rem;
    padding: 8px 18px;
    margin-top: 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 30px 15px;
  }

  .service-card:hover,
  .service-card:active {
    transform: translateY(-4px) scale(1.01);
  }

  /* Footer-Banner für Smartphones (alles in 1 Zeile) */
  .footer-banner h2 {
    font-size: 0.95rem;          /* Etwas kleiner, damit es auf jedes Display passt */
    letter-spacing: 1px;        /* Abstand leicht verringert */
    white-space: nowrap;        /* Verhindert den Zeilenumbruch */
    overflow: hidden;
    text-overflow: ellipsis;    /* Falls der Bildschirm extrem schmal ist */
  }
}