/* Häufige Fragen: Themenbereiche, aufklappbare Antworten und Kontaktbereich.
   Bei mehrfach definierten Selektoren gilt die CSS-Kaskade: spätere bzw. spezifischere Regeln können frühere überschreiben. */
.faq-hero {
  padding: 3rem 0 4rem;
}

/* Fragenübersicht: Anordnung der thematischen Gruppen. */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2.25rem;
}

.faq-category {
  --faq-color: #8c52ff;
  --faq-background: rgba(140, 82, 255, 0.12);
}

.faq-general {
  --faq-color: #2dd4bf;
  --faq-background: rgba(45, 212, 191, 0.12);
}

.faq-studies {
  --faq-color: #fb923c;
  --faq-background: rgba(251, 146, 60, 0.12);
}

.faq-campus {
  --faq-color: #a78bfa;
  --faq-background: rgba(167, 139, 250, 0.14);
}

.faq-housing {
  --faq-color: #60a5fa;
  --faq-background: rgba(96, 165, 250, 0.12);
}

.faq-category-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.faq-category-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.faq-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid color-mix(in srgb, var(--faq-color) 45%, transparent);
  border-radius: 9px;
  background: var(--faq-background);
  color: var(--faq-color);
}

.faq-category-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Aufklappbare Frage: das native details-Element übernimmt Öffnen und Schließen. */
.faq-question {
  overflow: hidden;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition:
    border-color 0.2s var(--ee),
    box-shadow 0.2s var(--ee),
    transform 0.2s var(--ee);
}

.faq-question:hover {
  border-color: rgba(140, 82, 255, 0.55);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 20px rgba(140, 82, 255, 0.1);
}

.faq-question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 0.95rem 1.1rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  overflow-wrap: anywhere;
  transition:
    background 0.2s var(--ee),
    color 0.2s var(--ee);
}

.faq-question summary::-webkit-details-marker,
.faq-question summary::marker {
  display: none;
  content: "";
}

.faq-question summary:hover {
  background: rgba(140, 82, 255, 0.08);
  color: #ffffff;
}

.faq-question summary:focus-visible {
  outline: 2px solid #b99aff;
  outline-offset: -3px;
}

.faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(140, 82, 255, 0.32);
  border-radius: 50%;
  color: #b99aff;
  transition:
    background 0.2s var(--ee),
    color 0.2s var(--ee),
    transform 0.25s var(--ee);
}

.faq-chevron svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-question[open] {
  border-color: rgba(140, 82, 255, 0.72);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(140, 82, 255, 0.14);
}

.faq-question[open] summary {
  background: rgba(140, 82, 255, 0.12);
  color: #ffffff;
}

.faq-question[open] .faq-chevron {
  border-color: #8c52ff;
  background: #8c52ff;
  color: #ffffff;
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.faq-answer p {
  margin: 1rem 0 0;
}

.faq-answer-button,
.faq-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  margin-top: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #8c52ff;
  border-radius: 9px;
  background: #8c52ff;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(140, 82, 255, 0.28);
  transition:
    transform 0.2s var(--ee),
    background 0.2s var(--ee),
    border-color 0.2s var(--ee),
    box-shadow 0.2s var(--ee);
}

.faq-answer-button:hover,
.faq-contact-button:hover {
  border-color: #b99aff;
  background: #9c6aff;
  color: #ffffff;
  box-shadow: 0 9px 20px rgba(140, 82, 255, 0.36);
}

.faq-answer-button:focus-visible,
.faq-contact-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Zusätzliche Kontaktmöglichkeit für unbeantwortete Fragen. */
.faq-contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(205, 183, 255, 0.72);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #8c52ff 0%, #7540dc 56%, #5a2ead 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 38px rgba(66, 27, 147, 0.34);
}

.faq-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
}

.faq-contact-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-contact-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.faq-contact-card p {
  max-width: 60ch;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq-contact-card .faq-contact-button {
  min-width: 150px;
  margin: 0;
  border-color: #ffffff;
  background: #ffffff;
  color: #6c35d3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 7px 16px rgba(39, 16, 97, 0.26);
}

.faq-contact-card .faq-contact-button:hover {
  border-color: #ffffff;
  background: #f3edff;
  color: #5a2ead;
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 640px) {
  .faq-hero {
    padding: 1.8rem 0 3rem;
  }

  .faq-grid {
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .faq-category-heading h2 {
    font-size: 1.15rem;
  }

  .faq-category-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .faq-question {
    margin-bottom: 0.55rem;
    border-radius: var(--radius-sm);
  }

  .faq-question summary {
    min-height: 56px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.88rem;
  }

  .faq-answer-button,
  .faq-contact-button {
    width: 100%;
    min-height: 42px;
  }

  .faq-contact-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .faq-contact-card .faq-contact-button {
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* Visuelle Angleichung an Start-, Programm- und Organisationsseite. */
.faq-hero {
  padding: 2.5rem 0 3rem;
}

.faq-hero .page-title {
  max-width: 12ch;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
}

.faq-hero .lead {
  max-width: 66ch;
}

.faq-contact-card {
  position: relative;
  isolation: isolate;
  gap: 1.1rem;
  margin-top: 2.25rem;
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  border-color: rgba(167, 139, 250, 0.28);
  border-radius: 20px;
  background: #101018;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.faq-contact-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #8c52ff;
  box-shadow: 2px 0 12px rgba(140, 82, 255, 0.55);
  content: "";
}

.faq-contact-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  background: #211c30;
  color: #c4b5fd;
}

.faq-contact-icon svg {
  width: 24px;
  height: 24px;
}

.faq-contact-card h2 {
  font-size: 1.25rem;
}

.faq-contact-card p {
  color: var(--muted);
}

.faq-contact-card .faq-contact-button {
  min-height: 42px;
  border-color: #8c52ff;
  background: #8c52ff;
  color: #fff;
  box-shadow: 0 7px 16px rgba(140, 82, 255, 0.22);
}

.faq-contact-card .faq-contact-button:hover {
  border-color: #c4b5fd;
  background: #3a2368;
  color: #fff;
}

.faq-grid {
  gap: 2.25rem;
  margin-top: 2.5rem;
}

.faq-category-heading {
  gap: 0.75rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.faq-category-heading h2 {
  font-size: 1.2rem;
}

.faq-category-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 10px;
}

.faq-question {
  margin-bottom: 0.7rem;
  border-color: rgba(167, 139, 250, 0.19);
  border-radius: 16px;
  background: #101018;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.faq-question:hover {
  border-color: rgba(167, 139, 250, 0.42);
  background: #13121c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.faq-question summary {
  min-height: 62px;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
}

.faq-question summary:hover {
  background: rgba(167, 139, 250, 0.05);
}

.faq-chevron {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.06);
}

.faq-question[open] {
  border-color: rgba(167, 139, 250, 0.48);
  background: #13121c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.faq-question[open] summary {
  background: transparent;
}

.faq-question[open] .faq-chevron {
  border-color: #8c52ff;
  background: #8c52ff;
}

.faq-answer {
  padding: 0 1.15rem 1.15rem;
  border-top-color: rgba(167, 139, 250, 0.12);
}

.faq-answer-button {
  border-color: rgba(196, 181, 253, 0.38);
  background: #211c30;
  color: #ddd6fe;
  box-shadow: none;
}

.faq-answer-button:hover {
  border-color: #c4b5fd;
  background: #3a2368;
  box-shadow: 0 9px 20px rgba(140, 82, 255, 0.2);
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 640px) {
  .faq-hero {
    padding: 1.5rem 0 2.5rem;
  }

  .faq-hero .page-title {
    margin: 0.7rem 0 0.65rem;
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .faq-contact-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 18px;
  }

  .faq-contact-card .faq-contact-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.1rem;
  }

  .faq-grid {
    gap: 1.75rem;
    margin-top: 1.75rem;
  }

  .faq-category-heading {
    margin-bottom: 0.6rem;
  }

  .faq-question {
    border-radius: 14px;
  }

  .faq-question summary {
    min-height: 58px;
    padding: 0.85rem 0.8rem 0.85rem 1rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
  }
}

/* ==========================================
   HOW TO – WORK IN PROGRESS
   ========================================== */

body.festival-design .howto-work-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;

  max-width: 820px;
  margin: 1.75rem 5px 0 0;
  padding: 1.15rem 1.4rem;

  background: #390036;
  color: #fff7f9;
  border: 2px solid #fc6714;
  border-radius: 2px;
  box-shadow: 5px 5px 0 #fc6714;
}

/* Orangefarbenes Festival-Label */
body.festival-design .howto-work-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;

  padding: 0.45rem 0.65rem;

  background: #fc6714;
  color: #390036;

  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;

  transform: rotate(-3deg);
}

/* Textbereich */
body.festival-design .howto-work-content {
  flex: 1 1 260px;
  min-width: 0;
}

body.festival-design .howto-work-content strong {
  display: block;
  margin-bottom: 0.3rem;

  color: #ffdead;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

body.festival-design .howto-work-content p {
  margin: 0;
  color: #fff7f9;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Mobile Darstellung */
@media (max-width: 640px) {
  body.festival-design .howto-work-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
  }

  body.festival-design .howto-work-content {
    flex-basis: auto;
  }

  body.festival-design .howto-work-content strong {
    font-size: 0.9rem;
  }

  body.festival-design .howto-work-content p {
    font-size: 0.85rem;
  }
}
