/* ===== Akkordeon ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.acc-item {
  background: var(--bg-card);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s var(--ease);
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
}

.acc-trigger:hover,
.acc-trigger[aria-expanded="true"] {
  background: var(--bg-card-hover);
}

.acc-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.jura-icon {
  background: rgba(91, 134, 184, 0.15);
  color: var(--jura);
}

.acc-trigger:hover .acc-icon-wrap,
.acc-trigger[aria-expanded="true"] .acc-icon-wrap {
  transform: scale(1.1);
}

.acc-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acc-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-bright);
}

.acc-teaser {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Fraunces', serif;
}

.acc-chevron {
  font-size: 16px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.acc-trigger[aria-expanded="true"] .acc-chevron {
  transform: rotate(180deg);
}

/* ===== Badge ===== */
.acc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 8px;
  font-style: normal;
  font-family: var(--font-body);
}

.acc-badge--active {
  background: rgba(79, 214, 187, 0.15);
  color: var(--create);
  border: 1px solid rgba(79, 214, 187, 0.3);
}

.acc-badge--pause {
  background: rgba(200, 80, 60, 0.12);
  color: #c8604a;
  border: 1px solid rgba(200, 80, 60, 0.25);
}

/* ===== Akkordeon body ===== */
.acc-body[hidden] {
  display: none !important;
}

.acc-body {
  padding: 0 1.75rem 0 calc(1.75rem + 36px + 1.25rem);
  overflow: hidden;
  animation: accOpen 0.35s var(--ease) forwards;
}

@keyframes accOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.acc-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.acc-body p:first-child {
  padding-top: 0.25rem;
}

.acc-body p:last-of-type {
  margin-bottom: 1.25rem;
}

/* ===== Inaktiv note ===== */
.acc-inactive-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem !important;
  color: #c8604a !important;
  font-style: normal !important;
  margin-bottom: 1rem !important;
  padding: 0.65rem 0.9rem;
  background: rgba(200, 80, 60, 0.08);
  border-radius: 6px;
  border-left: 2px solid rgba(200, 80, 60, 0.3);
}

/* ===== Links ===== */
.acc-link {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jura);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
  width: fit-content;
}

.acc-link:hover {
  border-color: var(--jura);
}

.acc-subpage-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--create);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
  width: fit-content;
}

.acc-subpage-link:hover {
  border-color: var(--create);
}

@media (max-width: 600px) {
  .acc-trigger {
    padding: 1.25rem;
    gap: 1rem;
  }
  .acc-body {
    padding: 0 1.25rem 0 1.25rem;
  }
  .acc-teaser {
    display: none;
  }
}
