/**
 * widgets-tiles.css - Tile/Kachel-Styles
 * Für Verticals-Übersicht und ähnliche Kachel-Layouts
 */

/* Tile-Container */
.widget-tiles-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}

/* Einzelne Tile */
.widget-tile {
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  border: none;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 250px; /* Feste Höhe gemäß Regel 011: Tiles müssen gleiche Höhe haben */
  width: 100%; /* Volle Breite innerhalb des Grid-Containers */
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-small);
}

.widget-tile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-accent-blue-08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.widget-tile:hover::before {
  opacity: 1;
}

.widget-tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px var(--color-accent-blue-2),
              0 0 40px var(--color-accent-yellow-1);
}

/* Tile-Icon */
.widget-tile-icon {
  font-size: var(--font-size-h1);
  margin-bottom: 20px;
  color: var(--color-accent-yellow);
}

/* Tile-Titel */
.widget-tile-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* Tile-Beschreibung */
.widget-tile-description {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

/* Responsive Anpassungen */
@media (max-width: 1024px) {
  .widget-tiles-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .widget-tiles-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .widget-tile {
    padding: 25px 20px;
    height: 200px; /* Feste Höhe auch auf Mobile gemäß Regel 011 */
  }
}

/* Tile mit Zahlen (für Statistiken) */
.widget-tile-number {
  font-size: 64px; /* Spezielle Größe für Hero-Zahlen, keine Standard-Property */
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family-primary);
  color: var(--color-accent-blue);
  margin-bottom: 10px;
}

/* Tile-Varianten */
.widget-tile-highlight {
  border: none;
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
}
