/* index.css - Spezielle Styles für die Startseite */

body {
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 4rem auto;
}

/* Nur ein Element in der letzten Zeile soll zentriert werden */
.grid > *:nth-child(7):last-child {
  grid-column: 2;
}

@media (max-width: 780px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  /* Im mobilen Layout brauchen wir keine spezielle Zentrierung */
  .grid > *:nth-child(7):last-child {
    grid-column: auto;
  }
  
  img {
    max-width: 500px;
    width: 100%;
  }
}

.tool {
  background-color: var(--content-bg);
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 148, 255, 0.3);
  color: var(--text-color);
  text-decoration: none;
  text-align: center;
}

.tool:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--primary-color);
}

.emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: pulse 2s infinite;
}

/* Styling für das Bild anstelle des Emojis */
.emoji-img {
  height: 4rem;
  width: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: pulse 2s infinite;
}

.title {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 0.5rem;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Anpassungen für den hellen Modus */
html[data-theme="hell"] .tool {
  box-shadow: 0 0 15px rgba(0, 120, 204, 0.2);
}

html[data-theme="hell"] .tool:hover {
  box-shadow: 0 0 25px var(--primary-color);
}

/* Glow-Effekt für Titel nur beim Hover im hellen Design */
html[data-theme="hell"] .tool:hover .title {
  text-shadow: 0 0 15px #0099ff;
}

/* Dunkel-Modus Anpassungen */
html[data-theme="dunkel"] .tool {
  background-color: #111;
}