/* ===================== */
/* INFOPAGE — wiederverwendbar für alle Infoseiten */
/* Verwendung: buchungsbedingungen, teilnahmebedingungen, */
/*             datenschutz, impressum, faq, etc.          */
/* ===================== */

/* Erlaubt Animation von height: auto */
html {
  interpolate-size: allow-keywords;
}

.infopage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 60px 20px;
}

.infopage-card {
  width: 100%;
  max-width: 820px;

  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 48px 56px;
}

/* ===================== */
/* HEADER */
/* ===================== */

.infopage-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.infopage-header h2 {
  margin-bottom: 8px;
}

.infopage-updated {
  font-size: 13px;
  color: #999;
}

/* ===================== */
/* BODY */
/* ===================== */

.infopage-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* .infopage-section h3,
.infopage-section summary {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
} */

.infopage-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.infopage-section a {
  color: #1E90C8;
  text-decoration: underline;
}

.infopage-section a:hover {
  color: #333;
}

/* ===================== */
/* FAQ-ITEMS (GARANTIERT ANIMIERT) */
/* ===================== */

.faq-item summary {
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* .faq-item summary {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  padding: 12px 8px;
  outline: none;
  user-select: none;
} */

.faq-item summary:hover {
  background-color: #f9f9f9;
}

/* Der Trick: Wir animieren nicht die Box, sondern den Inhalt, sobald "open" aktiv wird */
.faq-item[open] .faq-item-content {
  animation: slideDown 0.25s ease-out forwards;
  overflow: hidden; /* Verhindert das Flackern während der Animation */
}

/* Die Keyframe-Animation für Firefox */
@keyframes slideDown {
  0% {
    opacity: 0;
    max-height: 0;
    padding: 0px 8px 0px 8px;
  }
  100% {
    opacity: 1;
    /* max-height muss einfach größer sein als deine längste Antwort */
    max-height: 200px; 
    padding: 4px 8px 16px 8px;
  }
}

/* Inhalt im geschlossenen Zustand (Sicherheitshalber) */
.faq-item-content {
  padding: 0 8px;
}

/* DEIN DEZENTER TRENNER */
.infopage-body hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 8px 0;
}

/* DIVIDER */
hr {
  border: 0;
  border-top: 1px solid #eee;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 700px) {
  .infopage {
    padding: 32px 12px;
  }

  .infopage-card {
    padding: 28px 20px;
  }
}