  body {
    font-family: 'Arial', sans-serif;
    background-color: white;
    margin: 0;
    padding: 20px;
/*    color: #fff;*/
    color:  #000;
  }
  
  header {
    background-color: white;
	height: 170px;
  }

  h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #ffcc00;
  }

  /* Grid für die Kacheln */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

#kacheln-container {
  margin-top: 30px;    /* Abstand nach oben */
  margin-bottom: 30px; /* Abstand nach unten */
}
  /* Kachel-Style */
  .tile {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Quadratisch */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	background-color: white;

    cursor:pointer; 
    transition: transform 0.3s, box-shadow 0.3s;
    display:flex; align-items:center; justify-content:center;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: normal; /* Nicht fett */
  font-size: 1.2em;
  text-align: center;
  opacity: 0; /* Anfang unsichtbar */
  transition: opacity 0.5s ease-in-out;
  z-index: 2; /* Über dem Bild */
  color: #000000; /* Schwarz */
}

/* Hintergrundbild in der Kachel */
.bg-image {
    width:100%;
    height:auto;
    object-fit:cover; /* Bild wird zugeschnitten um die Fläche zu füllen */
    transition: opacity .3s ease-in-out, transform .3s ease-in-out; 
}

/* Wenn aktiv - Bild ausblenden, Text sichtbar */
.tile.active .bg-image {
    opacity:0; 
}
.tile.active .text-overlay {
    opacity:1; 
}
