﻿/* Unified FAQ + Glossar Accordion */
.faq-page__hero h1,
#faq h2,
.faq-section > h2 {
  font-family: Georgia, serif;
}

.faq-acc-item {
  border-top: 1px solid #e2e8f0;
  margin-top: .74rem;
  padding-top: .74rem;
}
.faq-section .faq-item:first-of-type.faq-acc-item,
.faqgrid .faq:first-child.faq-acc-item {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.faq-acc-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  text-align: left;
  padding: .22rem 0;
  cursor: pointer;
}

.faq-acc-title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.38;
}

.faq-acc-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid #9ad9e3;
  background: #ecfeff;
  color: #0ea5b7;
  position: relative;
  flex: 0 0 1.65rem;
  margin-top: .05rem;
  transition: border-color .25s ease, background-color .25s ease;
}
.faq-acc-icon::before,
.faq-acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .66rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}
.faq-acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq-acc-panel-inner {
  overflow: hidden;
}
.faq-acc-panel-inner > :first-child {
  margin-top: .52rem;
}
.faq-acc-panel-inner p,
.faq-acc-panel-inner li {
  color: #334155;
  font-size: .96rem;
  line-height: 1.66;
}

.faq-acc-item.is-open .faq-acc-panel {
  grid-template-rows: 1fr;
}
.faq-acc-item.is-open .faq-acc-icon {
  border-color: #0ea5b7;
  background: #dff7fb;
}
.faq-acc-item.is-open .faq-acc-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(.25);
}

/* Startseite (legacy FAQ cards) */
.faqgrid .faq {
  padding: .75rem .9rem;
}
.faqgrid .faq.faq-acc-item {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.faqgrid .faq .faq-acc-trigger {
  padding: .1rem 0;
}

/* FAQ blocks based on <details> (e.g. Startseite MOB) */
.faq details {
  border: 1px solid #dbe4ea;
  border-radius: .8rem;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  padding: .12rem .85rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details + details {
  margin-top: .56rem;
}
.faq details[open] {
  border-color: #7ed6e4;
  box-shadow: 0 10px 22px rgba(14, 165, 183, .08);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .72rem 0;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.38;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.65rem;
  border-radius: 999px;
  border: 1px solid #9ad9e3;
  background: #ecfeff;
  color: #0ea5b7;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  transition: all .25s ease;
}
.faq details[open] summary::after {
  content: "-";
  border-color: #0ea5b7;
  background: #dff7fb;
}
.faq details p {
  margin: 0 0 .7rem;
  color: #334155;
  font-size: .96rem;
  line-height: 1.66;
}
