/* Grundhintergrund: leicht transparent mit Blur */
body {
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #e0e0e0;
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 1rem;
}

/* Links (Service-Namen) in HA Primary Blue */
a {
  color: #5294e2;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

a:hover {
  text-decoration: underline;
  color: #7fb1ff;
}

/* Service-Gruppenüberschriften */
h2 {
  color: #f0f0f0;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid #5294e2;
  padding-bottom: 0.3rem;
  font-size: 1.5rem;
}

/* Karten/Kacheln der Services */
.service-card, .card {
  background: rgba(40, 40, 40, 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hover Effekt auf Karten */
.service-card:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Beschreibungstext unter Service-Name */
.service-card p, .card p {
  color: #ccc;
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  line-height: 1.3;
}

/* Optional: Icon Style falls Icons genutzt werden */
.icon, .mdi {
  filter: drop-shadow(0 0 3px rgba(82, 148, 226, 0.85));
  vertical-align: middle;
  font-size: 1.8rem;
  color: #5294e2;
}

/* Scrollbar Styling (optional) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(40, 40, 40, 0.3);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #5294e2;
  border-radius: 8px;
  border: 2px solid rgba(40, 40, 40, 0.3);
}

/* Footer zentriert */
footer {
  text-align: center;
  color: #888;
  font-size: 0.8rem;
  padding: 1rem 0;
}

/* Kachel mit custom Bild */
.service-card[data-id="unifi"] .icon {
  display: none; /* verstecke Standard Icon */
}

.service-card[data-id="unifi"] {
  background-image: url('./images/unifi.png');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  background-position: 1rem center;
  padding-left: 60px; /* damit Text nicht über Bild */
}
