/* ============================================================
   Rätselkoffer – Ergänzungen für Ausleihe-Highlight & FAQ
   FINALE VERSION:
   - Toggle-Icon als echtes <span>-Element im HTML
   - Native Marker mit allen verfügbaren Methoden entfernt
   - Komplett auf Pseudo-Elemente verzichtet
   ============================================================ */


/* ============================================================
   1) Ausleihe-Box hervorheben
   ============================================================ */
.koffer-ausleihe-highlight {
  position: relative;
}

.koffer-ausleihe-highlight .service-details {
  border-top: 3px solid #2196f3;
}

.koffer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-block;
  padding: 6px 14px;
  background: #2196f3;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  line-height: 1.2;
}


/* ============================================================
   2) FAQ – Dark Theme, gescoped unter #faq-ausleihe
   ============================================================ */

#faq-ausleihe .faq-list {
  margin-top: 24px;
}

#faq-ausleihe details {
  display: block !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  margin: 0 0 12px 0 !important;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  padding: 0 !important;
  box-shadow: none;
  color: inherit;
}

#faq-ausleihe details[open] {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ----- Summary als Flexbox ----- */
#faq-ausleihe details > summary {
  display: flex !important;
  align-items: center;
  gap: 22px;
  padding: 16px 20px !important;
  margin: 0 !important;
  cursor: pointer;
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
  list-style-position: outside !important;
  position: relative;
  user-select: none;
  background: transparent !important;
  border: none !important;
  font-weight: 600;
  color: inherit;
  transition: background 0.15s ease;
  outline: none;
  text-indent: 0 !important;
}

#faq-ausleihe details > summary:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

#faq-ausleihe details > summary:focus-visible {
  background: rgba(255, 255, 255, 0.06) !important;
  outline: 2px solid #2196f3;
  outline-offset: -2px;
}

/* Native Marker MAXIMAL aggressiv entfernen.
   Wir verstecken zusätzlich alles, was wie ein Marker aussehen
   könnte, falls der Browser-Default oder ein globales CSS
   irgendwo noch eine eigene Pseudo-Klasse rendert. */
#faq-ausleihe details > summary::-webkit-details-marker {
  display: none !important;
  -webkit-appearance: none !important;
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
}

#faq-ausleihe details > summary::marker {
  content: "" !important;
  font-size: 0 !important;
  color: transparent !important;
}

#faq-ausleihe details > summary::before {
  content: none !important;
  display: none !important;
}

#faq-ausleihe details > summary::after {
  content: none !important;
  display: none !important;
}

/* Falls das Theme ein eigenes Icon vor summary einfügt */
#faq-ausleihe details > summary > *:first-child:not(.faq-toggle) {
  /* Nichts erzwingen, aber ggf. Padding-Reset */
}

/* ----- Toggle-Icon als echtes <span> -----
   Maximale Robustheit: das Icon ist ein echtes DOM-Element,
   kein Pseudo. Damit kann kein globales CSS es verstecken. */
#faq-ausleihe .faq-toggle {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.5rem;
  font-weight: 300;
  color: #2196f3;
  background: rgba(33, 150, 243, 0.12);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: Arial, sans-serif;
  line-height: 1;
  user-select: none;
  position: relative;
  /* Pfeil als Unicode-Zeichen, sichtbar via ::before */
}

/* Plus-Symbol (zugeklappt) */
#faq-ausleihe details:not([open]) > summary > .faq-toggle::before {
  content: "+";
  display: inline-block;
}

/* Minus-Symbol (aufgeklappt) */
#faq-ausleihe details[open] > summary > .faq-toggle {
  background: rgba(33, 150, 243, 0.25);
}

#faq-ausleihe details[open] > summary > .faq-toggle::before {
  content: "−";
  display: inline-block;
}

/* H3 nimmt restlichen Platz */
#faq-ausleihe details > summary h3 {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: inherit !important;
  border: none !important;
  background: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  flex: 1;
}

/* Antwort-Absatz */
#faq-ausleihe details > p {
  display: block;
  padding: 18px 20px 20px 20px !important;
  margin: 0 !important;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#faq-ausleihe details > p a {
  color: #2196f3;
  text-decoration: underline;
}

#faq-ausleihe details > p a:hover {
  color: #64b5f6;
}

#faq-ausleihe details > p strong {
  font-weight: 700;
  color: #fff;
}


/* ============================================================
   3) Logo-Spalte in der Tabelle
   ============================================================ */
.koffer-logo {
  text-align: center;
  vertical-align: middle;
  padding: 16px;
}

.koffer-logo-img {
  max-width: 350px;
  height: auto;
}

.koffer-logo-placeholder {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}


/* ============================================================
   4) Buchungs-Buttons der Karten
   ============================================================ */
.koffer-btn {
  display: block;
  border-radius: 0;
}


/* ============================================================
   5) Mobile-Anpassungen
   ============================================================ */
@media (max-width: 640px) {
  .koffer-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    top: 8px;
    left: 8px;
  }

  #faq-ausleihe details > summary {
    padding: 14px 16px !important;
    gap: 16px;
  }

  #faq-ausleihe details > summary h3 {
    font-size: 1rem !important;
  }

  #faq-ausleihe .faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 1.3rem;
  }

  #faq-ausleihe details > p {
    padding: 14px 16px 16px 16px !important;
    font-size: 0.95rem;
  }
}
