/* ============================================================
   Casino-Karten – Styles
   Übernommen aus dem ursprünglichen Tilda-Export (UI unverändert)
   ============================================================ */

/* === Container aller Karten === */
.page-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: auto;
  position: relative;
  max-width: 1200px;
  background-color: #ffffff;
  margin-bottom: 30px;
}

/* === Karte === */
.card-second {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  width: 100%;
  background-color: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #0000001a;
}

/* Obere Karten-Zeile (Logo + Infos + Aktionen) */
.card-second-header {
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  position: relative;
}

/* Inhalt links (Logo + Infos) */
.card-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  flex: 1;
  border-right: 1px solid rgb(0 0 0 / 20%);
}

/* Logo – transparent, zentriert, einheitliche Größe (contain, damit nichts
   abgeschnitten oder unscharf hochskaliert wird). */
.card-logo,
.card-second-header .card-logo {
  width: 220px;
  height: 120px;
  object-fit: contain;
  object-position: center;
  background-color: transparent;
  padding: 0;
}

/* Info-Spalte */
.card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

/* Titelzeile + Bonus-Pille */
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
}

.card-title {
  font-size: 30px;
  color: #000000;
  font-weight: bold;
  margin-top: -1px;
}

/* Bonus-Pille */
.bonus-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 20px;
  background-color: #2D8F3C;
  border-radius: 12px;
}

.bonus-text {
  color: #ffffff;
  font-size: 16px;
  white-space: nowrap;
  margin-top: -1px;
}

/* Feature-Liste */
.features-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.feature-icon {
  width: 20px;
  height: 20px;
}

.feature-text {
  color: #00000099;
  font-size: 16px;
  margin-top: -1px;
}

/* Aktionen rechts (CTA, Recht, Toggle) */
.card-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 320px;
}

.legal-info {
  color: #00000099;
  font-size: 16px;
  margin-top: -1px;
  text-align: center;
}

a.cta_button {
  width: 100%;
  text-decoration: none;
}

/* CTA-Button (gelb) */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 25px 100px;
  width: 100%;
  background-color: #FCBF04;
  border-radius: 12px;
  transition: filter 0.2s ease;
}

.cta-button:hover {
  filter: brightness(0.95);
}

.cta-button-text {
  color: #000;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-top: -1px;
}

/* Toggle "mehr Informationen" */
.toggle-info {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.toggle-info-text {
  color: #00000099;
  font-size: 16px;
  text-align: center;
  margin-top: -1px;
  white-space: nowrap;
  cursor: pointer;
}

.toggle-info-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.toggle-info-icon.rotated {
  transform: rotate(45deg);
}

/* === Erweiterter Bereich === */
.extended-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  overflow: hidden;
  max-height: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.5s ease, padding-bottom 0.5s ease, opacity 0.5s ease;
  border-top: 1px solid transparent;
}

.extended-section.expanded {
  padding-bottom: 20px;
  opacity: 1 !important;
  pointer-events: auto;
  border-top: 1px solid #ddd;
}

.card-second-header.add-padding {
  padding-bottom: 20px;
  transition: padding 0.3s ease;
}

.extended-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
}

.extended-block-title {
  font-size: 22px;
  color: #000000;
  font-weight: bold;
  margin-top: -1px;
}

.extended-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 40px;
  width: 100%;
}

.extended-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

/* Footer des erweiterten Bereichs */
.extended-footer {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgb(0 0 0 / 20%);
}

.extended-footer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.extended-footer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Jede Reihe der Zahlungsmethoden */
.extended-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.extended-footer-icon {
  width: auto;
  object-fit: contain;
}

/* Obere Reihe: breite Wortmarken (Instant Banking, Paysafecard) – kleiner,
   damit sie nicht dominieren, aber lesbar. */
.extended-footer-icon.is-wide {
  height: 30px;
}

/* Untere Reihe: annähernd gleich große Logos. */
.extended-footer-icon.is-normal {
  height: 44px;
}

.license-logo {
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .page-container {
    max-width: 960px;
    padding: 0;
  }

  .card-second-header {
    gap: 30px;
  }

  .card-content {
    padding-right: 30px;
  }

  .cta-button {
    padding: 25px 0;
  }
}

@media (max-width: 960px) {
  .page-container {
    align-items: flex-start;
    max-width: 640px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
  }

  .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    width: 100%;
    flex-direction: row;
  }

  .extended-block {
    padding-bottom: 0;
  }

  .card-second {
    max-width: 100%;
  }

  .card-content {
    flex-direction: column;
    border-right: none;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-right: 0;
    padding-bottom: 20px;
    width: 100%;
  }

  .card-logo {
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  .card-actions {
    width: 100%;
  }

  .cta-button {
    padding: 15px 50px;
  }

  .card-second-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  /* Auf Mobile NICHT auf volle Breite strecken (sonst werden die
     kleinen Quell-Logos hochskaliert und verpixeln) – feste, kleinere Höhe,
     zentriert (Text bleibt linksbündig). */
  .card-second-header .card-logo {
    width: auto;
    height: 64px;
    max-width: 100%;
    align-self: center;
  }
}

@media (max-width: 640px) {
  /* Zahlungsmethoden + Lizenzen erst auf dem Handy untereinander,
     auf dem Tablet/iPad bleiben sie nebeneinander. */
  .extended-footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .page-container {
    align-items: flex-start;
    max-width: 640px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    margin: 10px 20px;
  }

  .card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    width: 100%;
    flex-direction: column-reverse;
  }

  .card-title {
    font-size: 24px;
  }

  .bonus-pill {
    padding: 4px 10px;
  }

  .bonus-text {
    font-size: 14px;
  }

  .feature-text {
    font-size: 14px;
  }

  .cta-button {
    padding: 15px 30px;
  }

  .cta-button-text {
    font-size: 14px;
  }
}
