/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 
 body.modal-open {
   overflow: hidden;
 }



.stimmen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}



.stimme-card {
  max-width: 320px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stimme-card .text-section {
  padding: 1.5rem;
  color: white;
}

.stimme-card.orange .text-section { background: #F4A300; }
.stimme-card.blau .text-section   { background: #3498db; }
.stimme-card.lila .text-section   { background: #7f5fa1; }
.stimme-card.rot .text-section    { background: #e76b5a; }

.stimme-card img {
  width: 100%;
  height: auto;
}

.stimme-card button {
  background: white;
  color: black;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  margin: 1rem;
  cursor: pointer;
}

.stimme-card .custom-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.2em;
  background-color: #ffffff0d;
  border: 2px solid black;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
	backdrop-filter: blur(15px);
}

.stimme-card .custom-button .button-text {
  color: white;
}

.stimme-card .custom-button .button-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  color: white;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}


/* === */

.stimme-card.layout-bild-rechts {
  display: flex;
  max-width: 600px;
  height: 400px;
  margin: 2rem auto;
  overflow: visible;
  position: relative;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stimme-card.layout-bild-rechts .stimme-inner {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Textbox links: 30% Breite, volle Höhe */
.stimme-card.layout-bild-rechts .text-section {
  width: 50%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  position: relative;
 /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);*/
  font-size: 28px !important;
  color: var(--theme-palette-color-8, #ffffff) !important;
  line-height: 1em !important;
  font-family: "Caveat", Sans-serif;
}

.stimme-card.layout-bild-rechts .text-section p{
  margin-block-end: 1.2rem;
}



.stimme-card.layout-bild-rechts .text-section svg{
  fill: #fff;
  width: 55px;
  height: 55px;
  margin-bottom: 1rem;
}

.stimme-card.layout-bild-rechts .text-section .stimme-name{
  font-size: 14px;
  font-family: Noto Sans;
  margin-top: 0.8rem;
}

.stimme-linie {
  width: 50%;
  max-width: 120px;
  height: 1px;
  background-color: #fff;
  border: none;
  margin: 0;

}

/* Bild rechts: 70% Breite, geringere Höhe, vertikal zentriert */
.stimme-card.layout-bild-rechts .image-wrapper {
  width: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 30px;
  margin-bottom: 30px;
  
}

/* Bild ist kleiner als Textbox, vertikal mittig */
.stimme-card.layout-bild-rechts .image-wrapper img {
  /*height: 240px;  kleiner als .stimme-card (340px) */
  min-height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Button über dem Bild */
.stimme-card.layout-bild-rechts .modal-trigger {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #ffffff0d;
	backdrop-filter: blur(15px);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 3;
}



/* === */

@media (max-width: 768px) {
  .stimme-card.layout-bild-rechts {
    height: auto;
    flex-direction: column;
  }

  .stimme-card.layout-bild-rechts .stimme-inner {
    flex-direction: column;
    height: auto;
  }

  .stimme-card.layout-bild-rechts .text-section {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    box-shadow: none;
  }

  .stimme-card.layout-bild-rechts .image-wrapper {
    width: 100%;
    height: 180px;
    margin-top: -1rem; /* Optional: etwas überlappend/angeschnitten */
    overflow: hidden;
    justify-content: center; /* Bild nach rechts verschieben */
  }

  .stimme-card.layout-bild-rechts .image-wrapper img {
    width: auto;
    height: 100%;
    object-position: center center; /* optional: Fokus nach rechts */
  }

  .stimme-card.layout-bild-rechts .modal-trigger {
    bottom: 1rem;
    right: 1rem;
  }
}




.modal {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
}

.modal-inner {
  background: white;
  max-width: 600px;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
	overflow: auto;
}

.modal.open .modal-inner {
  transform: translateY(0);
}


.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
