@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght=500;600&family=Poppins:wght=300;400;500;600&display=swap');

:root {
  --primary-color: #e5ba73;
  --secondary-color: #8e7b43;
  --accent-color: #f4c26f;
  --dark-color: #060911;
  --light-color: #f8f9fa;
  --text-color: #e7e7ea;
  --text-light: #f8f9fa;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ==========================================================================
   1. HINTERGRUND MIT VERLAUF & GEOMETRIE-MUSTER (AUS DEM FOTO)
   ========================================================================== */
body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  background-color: var(--dark-color);
  background-image:
  radial-gradient(circle at 50% -10%, rgba(229, 186, 115, 0.18) 0%, transparent 45%),
  radial-gradient(circle at 50% 15%, rgba(15, 23, 42, 0.95) 0%, var(--dark-color) 75%);
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><g fill="none" stroke="%23e5ba73" stroke-width="0.3" stroke-opacity="0.12"><path d="M30 0 L60 30 L30 60 L0 30 Z M0 0 L60 60 M60 0 L0 60 M30 0 L30 60 M0 30 L60 30"/><circle cx="30" cy="30" r="12"/><path d="M30 12 L42 30 L30 48 L18 30 Z"/></g></svg>');
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--dark-color);
  z-index: 9999;
  animation: fadeOverlay 1.2s ease forwards;
  pointer-events: none;
}

@keyframes fadeOverlay {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}


/* ==========================================================================
   2. HEADER: STERN MIT LUXUS-GLOW-ANIMATION
   ========================================================================== */
header {
  text-align: center;
  padding: 5rem 1rem 1.5rem;
  background: transparent;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}
.header-star {
  display: block;
  width: 90px;
  height: 90px;
  margin: 0 auto 22px;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23e5ba73'><circle cx='50' cy='50' r='39' stroke-width='0.5' stroke-dasharray='2 2'/><path d='M50 14 L56 44 L86 50 L56 56 L50 86 L44 56 L14 50 L44 44 Z' stroke-width='1.6' stroke-linejoin='round'/><circle cx='50' cy='50' r='24' stroke-width='0.8'/></g></svg>");
  
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: starGlowPulse 4s ease-in-out infinite;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.7rem;
  letter-spacing: 0.5px;
  margin: 0;
  background: linear-gradient(to bottom, #ffffff 40%, #cdd7e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

header p {
  color: #52668d;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  margin-top: 0.5rem;
}

/* ==========================================================================
   3. KARTEN-CONTAINER & INTEGRATION DER GOLDENEN HOVER-BOXEN
   ========================================================================== */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(229, 186, 115, 0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

/* GLOW-EFFEKT: Boxen fangen bei Mausberührung golden an zu glühen */
.box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(229, 186, 115, 0.35);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.6), 
    0 0 25px rgba(229, 186, 115, 0.25);
}

.box:hover::before {
  transform: translateX(100%);
}

.box-content {
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
  color: var(--light-color);
}

.box-description {
  font-size: 0.85rem;
  color: #5c6f96;
  margin: 0;
}

/* ==========================================================================
   4. HOCHAUFLÖSENDE GOLD-VEKTOR ICONS AUS DEM DESIGNFOTO
   ========================================================================== */
.box-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 8px rgba(229, 186, 115, 0.4));
  transition: transform 0.3s ease;
}

.box:hover .box-icon {
  transform: scale(1.12);
}

/* Icon 1: Quran Videos (Offenes Buch) */
.icon-quran {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e5ba73" stroke-width="1.5"><path d="M12 21c-1.2-1-3-1.5-5-1.5s-4.3.6-5.5 1.5V5.5c1.2-1 3.5-1.5 5.5-1.5s3.8.5 5 1.5M12 21c1.2-1 3-1.5 5-1.5s4.3.6 5.5 1.5V5.5c-1.2-1-3.5-1.5-5-1.5s-4.3.5-5.5 1.5M12 4v17"/></svg>');
}

/* Icon 2: Nasheeds (Orientalische Oud-Laute) */
.icon-nasheeds {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e5ba73" stroke-width="1.5"><path d="M12 3v12M12 6a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 6c1.5 0 3-1 3-2.5S13.5 1 12 1"/></svg>');
}

/* Icon 3: Wissen (Aufgeschlagenes Buch auf Ständer) */
.icon-wissen {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e5ba73" stroke-width="1.5"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20M4 19.5A2.5 2.5 0 0 0 6.5 22H20M4 19.5V3.5A2.5 2.5 0 0 1 6.5 1M20 3v19"/></svg>');
}

/* Icon 4: Empfehlungen (Achtzackiger islamischer Stern mit Haken) */
.icon-empfehlungen {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e5ba73" stroke-width="1.5"><path d="M12 2l2.5 4.5L19.5 9l-3.5 4 1 5.5-5-3-5 3 1-5.5-3.5-4 5-2.5zM9 12l2 2 4-4"/></svg>');
}

/* Icon 5: Dhikr (Unendliche Gebetskette) */
.icon-dhikr {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e5ba73" stroke-width="1.5"><path d="M7 12a5 5 0 1 0 10 0 5 5 0 1 0-10 0zM12 7V5M12 19v-2M7 12H5M19 12h-2"/></svg>');
}

/* Icon 6: Die Namen Allahs (Elegantes Kalligraphie-Ornament) */
.icon-namen {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="75" font-family="Arial" font-size="75" text-anchor="middle" fill="%23e5ba73">الله</text></svg>'); 
}

/* Icon 7: Hoffnungsvolle Hadithe (Traditionelle Öllampe) */
.icon-hadithe {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e5ba73" stroke-width="1.5"><path d="M6 16c0-3.3 2.7-6 6-6s6 2.7 6 6M12 2s-3 3-3 5c0 1.7 1.3 3 3 3s3-1.3 3-3c0-2-3-5-3-5zM4 21h16M9 16h6"/></svg>');
}

/* Icon 8: Freitag (Moscheekuppel-Bogen) */
.icon-freitag {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e5ba73" stroke-width="1.5"><path d="M12 2L3 9v11h18V9L12 2zM12 22v-6M9 22v-4a3 3 0 0 1 6 0v4"/></svg>');
}

/* ==========================================================================
   5. NAVIGATION: DESKTOP OBEN RECHTS & MOBILE LEISTE UNTEN
   ========================================================================== */
.home, .notifications {
  position: fixed;
  top: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 100;
}

.home:hover, .notifications:hover  {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  border-color: rgba(229, 186, 115, 0.3);
  box-shadow: 0 0 15px rgba(229, 186, 115, 0.2);
}

.home { right: 2rem; }
.notifications { right: 6rem; }

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(6, 9, 17, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  padding: 10px 0;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav button {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(229, 186, 115, 0.3);
}

#overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}

#updates-box {
  background: #111;
  color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hidden { display: none; }

footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.5;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   6. RESPONSIVENESS & ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes starGlowPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(229, 186, 115, 0.45));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 35px rgba(244, 194, 111, 0.75));
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .container { grid-template-columns: repeat(2, 1fr); }
  .home { right: 1.5rem; }
}

@media (max-width: 768px) {
  body { padding-bottom: 80px; }

  /* Desktop-Buttons oben verstecken */
  .home,
  .notifications { display: none; }

  /* Nur die mobile Leiste unten anzeigen */
  .mobile-nav { display: flex; }

  .container {
    grid-template-columns: 1fr;
    padding: 1rem;
    padding-bottom: 90px;
  }
  h1 { font-size: 2.1rem; }
  .box { padding: 2rem 1.5rem; min-height: 150px; }
}