.blog-hover-effect {
    opacity: 0.85; 
    transition: opacity 0.3s; 
}

.blog-hover-effect:hover {
    transform: scale(1.02); 
    opacity: 1; 
    transition: transform 0.3s, opacity 0.3s;
}


.blog-tile {
    width: 300px;
    height: 200px;
    background-color: #eee;
    margin: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.blog-tile:hover {
    transform: scale(1.3);
    opacity: 0.85;
}

.blog-tile:hover .blog-title {
    font-size: 24px;
    color: #333;
}

.blog-tile:hover .blog-content {
    opacity: 0;
}

.blog-title {
    font-size: 18px;
    color: #000;
    position: absolute;
    bottom: 20px;
    left: 20px;
    transition: font-size 0.5s ease;
}

.blog-content {
    font-size: 14px;
    color: #666;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transition: opacity 0.3s ease;
}







.schwarze-umrandung {
  color: #ffffff; /* Innere Schriftfarbe */
  text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000; /* Erzeugt die schwarze Umrandung */
}

.blog-hover-effect {
    opacity: 0.7; 
    transition: opacity 0.3s; 
}

.blog-hover-effect:hover {
    transform: scale(1.02); 
    opacity: 1; 
    transition: transform 0.3s, opacity 0.3s;
}



blog-tile


.custom-hover-effect {
    opacity: 0.7; 
    transition: opacity 0.3s; 
}


.custom-hover-effect:hover {
    opacity: 1; 
}

.custom-hover-effect:hover {
    transform: scale(1.02); 
    opacity: 1; 
	transition: transform 0.3s, opacity 0.3s;
}


.blog-tile {
    width: 300px;
    height: 200px;
    background-color: #eee;
    margin: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.blog-tile:hover {
    transform: scale(1.2);
    opacity: 0.75;
}

.blog-tile:hover .blog-title {
    font-size: 24px;
    color: #333;
}

.blog-tile:hover .blog-content {
    opacity: 0;
}

.blog-title {
    font-size: 18px;
    color: #000;
    position: absolute;
    bottom: 20px;
    left: 20px;
    transition: font-size 0.5s ease;
}

.blog-content {
    font-size: 14px;
    color: #666;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transition: opacity 0.3s ease;
}





/* Hauptcontainer */
.image-grid {
  position: relative;
  width: 100%; /* Breite des Containers */
  max-width: 1200px; /* Maximale Breite für große Bildschirme */
  aspect-ratio: 1050 / 644; /* Seitenverhältnis des gesamten Bildes */
  margin: 0 auto; /* Zentriert den Container horizontal */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Zwei Spalten */
  grid-template-rows: repeat(4, 1fr); /* Vier gleich hohe Zeilen */
  gap: 0; /* Keine Abstände */
  transition: gap 0.3s ease; /* Animation der Gaps */
  background-color: white; /* Hintergrund für die Gaps */
}

/* Kachel-Styling */
.grid-part {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('https://blog-dgg.univie.ac.at/wp-content/uploads/2024/12/Cinecitta1946-1050x644-1-1.jpg'); /* Dein Bildlink */
  background-repeat: no-repeat;
  transition: transform 0.4s ease, opacity 0.4s ease; /* Animation für Hover */
  opacity: 1; /* Standardmäßig vollständig sichtbar */
  overflow: hidden; /* Verhindert Überlappen von Text */
}

/* Präzise Bildausschnitte */
.grid-part:nth-child(1) { 
  background-position: 0% 0%; /* Oben links */
  background-size: 200% 400%; /* Skalierung des Bildes */
}
.grid-part:nth-child(2) { 
  background-position: 100% 0%; /* Oben rechts */
  background-size: 200% 400%; 
}
.grid-part:nth-child(3) { 
  background-position: 0% 33.3%; /* Zweite Reihe links */
  background-size: 200% 400%; 
}
.grid-part:nth-child(4) { 
  background-position: 100% 33.3%; /* Zweite Reihe rechts */
  background-size: 200% 400%; 
}
.grid-part:nth-child(5) { 
  background-position: 0% 66.6%; /* Dritte Reihe links */
  background-size: 200% 400%; 
}
.grid-part:nth-child(6) { 
  background-position: 100% 66.6%; /* Dritte Reihe rechts */
  background-size: 200% 400%; 
}
.grid-part:nth-child(7) { 
  background-position: 0% 100%; /* Vierte Reihe links */
  background-size: 200% 400%; 
}
.grid-part:nth-child(8) { 
  background-position: 100% 100%; /* Vierte Reihe rechts */
  background-size: 200% 400%; 
}



/* Hover-Effekt: Gaps erscheinen */
.image-grid:hover {
  gap: 10px; /* Abstände zwischen den Kacheln */
}

/* Hover-Effekt: Alle Kacheln außer der aktuellen werden transparent */
.image-grid:hover .grid-part {
  opacity: 0.4; /* Alle Kacheln werden leicht transparent */
}

/* Die aktuell gehoverte Kachel bleibt farbig */
.image-grid:hover .grid-part:hover {
  opacity: 1; /* Voll sichtbar */
  transform: scale(1.06); /* Leicht vergrößern */
  z-index: 1; /* Hebt die Kachel hervor */
}

/* Text innerhalb der Kacheln */
.grid-part::after {
  content: attr(data-text); /* Text aus dem HTML-Attribut "data-text" */
  position: absolute;
  bottom: 10%; /* Abstand vom unteren Rand */
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); /* Leichter Schatten für bessere Lesbarkeit */
  opacity: 0; /* Unsichtbar, bis gehovered wird */
  transition: opacity 0.3s ease; /* Weicher Übergang */
  pointer-events: none; /* Verhindert Interferenzen mit Hover */
}

/* Text beim Hover anzeigen */
.grid-part:hover::after {
  opacity: 1; /* Text wird sichtbar */
}
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6 {
    display: block !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.3 !important;
  }
  h1 > span, h2 > span, h3 > span, h4 > span, h5 > span, h6 > span {
    display: inline !important;
  }
}

