/* === Modern Accordion Styles === */

/* Accordion Container */
.accordion {
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  background: #fff;
  overflow: hidden;
  margin: 1.5rem 0;
}

/* Details Elements */
.accordion details {
  border-bottom: 1px solid #e0e0e0;
  transition: box-shadow 0.2s;
}

.accordion details:last-child {
  border-bottom: none;
}

/* Summary (Header) Styling */
.accordion summary {
  padding: 1rem 1.5rem 1rem 2.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  outline: none;
  background: #fafbfc;
  transition: background 0.2s;
  user-select: none;
  border: none;
  list-style: none;
}

.accordion summary:hover,
.accordion summary:focus {
  background: #f0f0f0;
}

/* Custom Arrow Icon */

/* Robuster Pfeil: Data-URI SVG, verhindert Überschreibung durch Systemfarben */
.accordion summary::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s;
  width: 1rem;
  height: 1rem;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* inline SVG mit fest eingestellter Fill-Farbe (#c60c30) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23c60c30' d='M8 5v14l11-7z'/></svg>");
  -webkit-appearance: none;
  appearance: none;
}

/* offene Variante: drehen */
.accordion details[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}


.accordion details[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}

/* Content Area */
.accordion details > div {
  padding: 1rem 1.5rem 1.25rem 2.5rem;
  background: #fff;
  animation: fadeInAccordion 0.3s;
}

/* Animation */
@keyframes fadeInAccordion {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Browser-specific: Remove default markers */
.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::marker {
  display: none;
}

