/*
 Theme Name:  Divi Child Theme
 Theme URI:    https://divilife.com
 Description:  Child Theme for Divi
 Author:       Tim Strifler
 Author URI:   https://divilife.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

@font-face {
    font-family: 'ZenaRounded';
    src: url('fonts/ZenaRounded-300.woff2') format('woff2'),
         url('fonts/ZenaRounded-300.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'ZenaRounded';
    src: url('fonts/ZenaRounded-900.woff2') format('woff2'),
         url('fonts/ZenaRounded-900.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

body{
  font-family: 'ZenaRounded' !important;
  font-weight: 300; 
}

p{
  font-family: 'ZenaRounded' !important;
  font-weight: 300;
}
h1,h2,h3,h4,h5,h6{
  font-family: 'ZenaRounded' !important;
  font-weight: 900;    
  color:black !important;
}

.et_pb_row.custom-grid-442 {
  display: grid !important;
  /* grid-template-columns: 20% 20% 40% 20%; */
  grid-template-columns:
    calc(20% - 2.5rem)
    calc(20% - 2rem)
    calc(40% - 2rem)
    calc(20% - 2.5rem);
  gap: 3rem;
}

.custom-grid-442 .et_pb_column {
  width: 100% !important;
  max-width: none !important;
}


@media (max-width: 1024px) {
  .et_pb_row.custom-grid-442 {
    /* grid-template-columns: repeat(2, 1fr);
    gap: 2rem; */
    display: none !important;
  }
  .custom-grid-442 {
  display: none !important;}
}

@media (max-width: 768px) {
  .et_pb_row.custom-grid-442 {
    /* grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 4rem;
    justify-items: center; */
    display: none !important;

  }
  .custom-grid-442 {
  display: none !important;}
}



/* === Basisstruktur === */
#custom-blog-showcase-wrapper {
  /* font-family: 'Helvetica Neue', sans-serif; */
  color: #111;
  /* max-width: 1100px; */
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* === Filterleiste === */
.blog-filter-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  border-bottom: 1px black solid;
  padding-bottom: 15px;
}
.blog-filter-list {
  display: flex;
  gap: 0.75rem;
}
.blog-filter-btn {
  padding: 0.4em 0.9em;
  background: #ddd;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s ease;
}
.blog-filter-btn.active,
.blog-filter-btn:hover {
  background: #111;
  color: white;
}

/* === Featured Post === */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  border-bottom: 1px black solid;
    padding-bottom: 30px;
}
.blog-featured.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.blog-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.blog-featured-text h2 {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
}
.blog-featured-text .blog-meta {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}
.blog-featured-text p {
  font-size: 1rem;
  line-height: 1.5;
}
.blog-featured-text .blog-excerpt {
  font-size: 1.5rem;
  line-height: 1.3;}

/* === Grid Posts === */
.blog-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.blog-grid-row.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.blog-grid-item {
  /* background: #fff; */
  border-radius: 4px;
  transition: all 0.3s ease;
}
.blog-grid-item:hover {
  /* transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1); */
}
.blog-grid-item img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.blog-grid-item .media-wrapper {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.blog-grid-item .media-wrapper img {
  transition: transform 0.5s ease;
  will-change: transform;
}

.blog-grid-item:hover .media-wrapper img {
  transform: scale(1.05);
}

.blog-grid-item h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 900;
  margin-top: 0.75rem;
}
.blog-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
  color: #444;
  font-weight: bold;
}
.blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.4;
}
.read-more {
  text-decoration: none;
  font-weight: bold;
  margin-left: 0.4em;
}

.media-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
  display: block;
  width: 100%;
  position: relative;
}

.media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.blog-featured-image .media-wrapper {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 4px;
  background: #eee;
}

.blog-featured-image .media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}



.blog-featured-image .media-wrapper img {
  transition: transform 0.5s ease;
  will-change: transform;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-featured-image:hover .media-wrapper img {
  transform: scale(1.05);
}


/* === Pagination === */
.ttff-pagination-nav {
  margin-top: 2rem;
  border-top: 1px black solid;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.event-page-btn {
  background: black;
  color: white;
  border: none;
  padding: 0.4em 1em;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.event-page-btn:hover {
  background: #444;
}
.event-page-btn.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}
.page-info {
  font-weight: bold;
}

/* === Responsive === */
@media (max-width: 980px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-grid-row {
    grid-template-columns: 1fr;
  }
  .blog-featured-text h2 {
    font-size: 1.5rem;
  }
}
