/* ── Seiten-Wrapper ── */
.home-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 90px);
  padding: 1.5rem 1.75rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── Header ── */
.home-header {
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.home-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f0f0;
  margin: 0 0 0.15rem 0;
  letter-spacing: 0.01em;
}

.home-header p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  margin: 0;
}

/* ── Scrollbarer App-Bereich ── */
.home-apps-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
  margin-right: -0.25rem;
}

.home-apps-scroll::-webkit-scrollbar {
  width: 5px;
}

.home-apps-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.home-apps-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.home-apps-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ── App Grid ── */
.home-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.9rem;
  padding-bottom: 1.5rem;
}

/* ── App Karte ── */
.home-app-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 1.25rem 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #e0e0e0;
  transition: background 0.18s ease, transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-app-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-decoration: none;
}

.home-app-card:active {
  transform: translateY(-1px);
}

/* ── App Icon ── */
.home-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
}

.home-app-icon-fallback {
  display: none;
  width: 58px;
  height: 58px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.home-app-icon-fallback i {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── App Name ── */
.home-app-name {
  font-size: 0.78rem;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.home-app-card:hover .home-app-name {
  color: #ffffff;
}

/* ── Empty State ── */
.home-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: rgba(255, 255, 255, 0.35);
  gap: 0.5rem;
  text-align: center;
}

.home-empty i {
  font-size: 2.75rem;
  opacity: 0.6;
}

.home-empty p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
}

.home-empty small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.30);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .home-wrapper {
    padding: 1rem;
  }

  .home-apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.7rem;
  }

  .home-app-card {
    padding: 1rem 0.6rem 0.85rem;
  }

  .home-app-icon,
  .home-app-icon-fallback {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }
}
