/* =========================================================
   FLIP CARD CSS
   Desktop: 3 Karten
   Tablet:  2 Karten
   Smartphone: 1 Karte
   ========================================================= */

/* CARD CONTAINER */
.flip-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Desktop: 3 Karten pro Zeile */
.flip-item {
  flex: 0 1 calc((100% - 60px) / 3);
  width: calc((100% - 60px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.flip-card {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  height: auto;
  perspective: 1200px;
  margin-top: 45px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.4, .2, .2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* GLASS STYLE */
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
  box-sizing: border-box;
}

/* FRONT */
.flip-front {
  padding: 5px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.flip-front .flip-title img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  object-position: center center;
  position: relative;
  top: 20px;
}

.flip-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 11px;
}

.flip-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 11px;
}

/* BACK */
.flip-back {
  padding: 5px;
  overflow: hidden;
  transform: rotateY(180deg);
  background: #00008b;
}

/* GLOW EFFECT */
.flip-card:hover .flip-front {
  box-shadow: 0 0 25px rgba(13, 110, 253, 0.6);
}

.flip-card:hover .flip-back {
  box-shadow: 0 0 25px rgba(102, 16, 242, 0.6);
}

/* TEXT STYLE */
.flip-title {
  width: 100%;
  font-size: 20px;
  font-weight: 600;
}

.flip-front .flip-title {
  height: 100%;
}

.flip-text {
  padding: 20px;
  font-size: 14px;
  opacity: 0.9;
}

.flip-text .leader {
  font-size: 18px;
  color: white;
  letter-spacing: 2px;
}

/* TEXT FOOTER */
a {
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  font-family: "Rubik", sans-serif !important;
}

a:hover {
	transform: scale(1.02);
}

p {
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}

.text-center {
  font-size: 24px !important;
}

/* EMAIL LINK */
.email_link {
  text-decoration: underline !important;
  letter-spacing: 1px;
  color: yellow !important;
  font-size: 13px; 
  text-underline-offset: 2px !important;
}

.email_link:hover {
	text-decoration: underline !important;
  letter-spacing: 1px;
  color: yellow !important;
  font-size: 13px; 
  text-underline-offset: 2px !important;
	transform: scale(1.05);
}	

/* UNDERLINED LINK UNDER CARD */
.link_under_card {
  text-decoration: underline !important;
  text-decoration-thickness: 2.5px !important;
  text-underline-offset: 5px !important;
  font-family: "Rubik", sans-serif !important;
  color: #050370 !important;
  font-size: 95% !important;
}

.link_under_card:hover {
	transform: scale(1.02);
}

/* GROUP NAME UNDER CARD */
.group_name {
	color: #0000cd !important;
	font-size: 95%;
}

/* CAPTION UNDER CARD */
.flip-caption {
  width: 100%;
  margin: 0;
  margin-top: 10px;
  position: relative;
  z-index: 5;
  color: #000 !important;
  text-align: center;
  text-shadow: none !important;
  background: transparent !important;
}

.flip-caption .link_under_card {
  display: inline-block !important;
  color: #000 !important;
}


/* =========================================================
   TABLET: 2 KARTEN PRO ZEILE
   ========================================================= */

@media (max-width: 991.98px) {
  .flip-container {
    gap: 40px 25px;
  }

  .flip-item {
    flex: 0 1 calc((100% - 25px) / 2);
    width: calc((100% - 25px) / 2);
  }

  .flip-card {
    width: 100%;
    max-width: 340px;
    margin-top: 30px;
  }

  .flip-back {
    padding: 5px;
  }

  .flip-back .flip-title {
    font-size: 14px;
  }

  .flip-text {
    padding: 5px;
    font-size: 12px;
  }
}


/* =========================================================
   SMARTPHONE: 1 KARTE PRO ZEILE
   ========================================================= */

@media (max-width: 767.98px) {
  .flip-container {
    gap: 25px;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .flip-item {
    flex: 0 1 100%;
    width: 100%;
  }

  .flip-card {
    width: 100%;
    max-width: 330px;
    margin: 30px auto 0;
  }

  .flip-back {
    padding: 10px;
  }

  .flip-back .flip-title {
    font-size: 16px;
  }

  .flip-text {
    padding: 10px;
    font-size: 12px;
  }

  .modal-title {
    font-size: 20px !important;
  }
}


/* =========================================================
   SEHR KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 400px) {
  .flip-card {
    width: 100%;
    max-width: 300px;
  }

  .flip-text {
    padding: 8px;
    font-size: 11px;
  }

  .flip-back .flip-title {
    font-size: 15px;
  }
}


/* =========================================================
   MODAL CSS
   ========================================================= */

.modal-dialog {
  max-width: 800px;
}

.modal-title {
  color: #0000cd !important;
  font-size: 24px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  line-height: normal !important;
  margin: 0;
  width: 95%;
  text-align: justify;
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
  height: auto !important;
  min-height: 0 !important;
}

.modal-content {
  max-height: 90vh;
  height: auto !important;
  min-height: 0 !important;
}

.modal-header {
  position: relative;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.modal-header .close {
  position: absolute;
  right: 15px;
  top: 15px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 99999 !important;
}

.close {
  display: block !important;
  opacity: 1 !important;
  color: #000 !important;
  font-size: 30px !important;
}

.modal-link {
	display: inline-block;
	text-decoration: underline; 
	text-decoration-thickness: 2.5px; 
	text-underline-offset: 3px; 
	color: yellow;
}

.modal-link:hover {
	transform: scale(1.05);
}

/* =========================================================
   BUTTON
   ========================================================= */

.btn1 {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 250px;
  text-align: center;
  margin-top: 20px;
  animation: none !important;
}

.btn1:hover {
  background-color: #1d4ed8;
  color: white;
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn1:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn1:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.btn1:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}