/* ============================================================
   SUBPAGES.CSS — Info-Seiten, FAQ, News-Übersicht, Beiträge
   (templates: infopage, faq, news, post)
   Basis-Styles stehen in styles.css.
   ============================================================ */

/* ============================================================
   INFOPAGE — Impressum, Datenschutz, etc.
   ============================================================ */
.infopage {
  background:
    radial-gradient(ellipse 80% 35% at 50% -5%, rgba(87, 79, 241, 0.07) 0%, transparent 100%),
    #f5f4fb;
  min-height: 100vh;
  color: #1a1830;
}


/* ── Header: auf hellem Hintergrund anpassen ─────────────── */
.infopage .site-header {
  position: relative;
  background: transparent;
}

.infopage .site-header .site-logo {
  color: var(--color-brand);
}


/* Sprachumschalter: dunkel statt weiß auf Info-Pages */
.infopage .lang-switch__item {
  color: var(--color-brand);
  opacity: 0.6;
}

.infopage .lang-switch__item.is-active {
  opacity: 1;
  background: rgba(87, 79, 241, 0.12);
}


/* ── Article Card ────────────────────────────────────────── */
.infopage__article {
  background: #ffffff;
  border-radius: var(--radius-l);
  padding: 3rem 3.5rem;
  box-shadow:
    0 1px 3px rgba(87, 79, 241, 0.06),
    0 8px 32px rgba(87, 79, 241, 0.08);
}


/* ── Page Header ─────────────────────────────────────────── */
.infopage__header {
  padding-bottom: var(--space-m);
  margin-bottom: var(--space-m);
  border-bottom: 1.5px solid rgba(87, 79, 241, 0.1);
}


/* h1 nutzt jetzt die globale Größe (clamp(1.9rem, 4vw, 2.75rem)) */
.infopage__header h1 {
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}

.infopage__intro {
  color: rgba(26, 24, 48, 0.55);
  max-width: 58ch;
}


/* Hinweis: Die .infopage__body-Regeln (Block-Inhalt) stehen in styles.css,
   weil dieselbe Klasse auch im Beitrags-Modal auf der Startseite vorkommt
   (siehe snippets/post-content.php). */


/* ── Footer ──────────────────────────────────────────────── */
.infopage__footer-wrapper {
  /* transparent statt Vollfarbe: der Hintergrund der Seite hat dieselbe Farbe, aber ein
     deckender Wrapper würde den Schlagschatten der weißen Karte darüber abschneiden. */
  background: transparent;
  /* Innenseiten haben keine fixe Bottom-Bar → Footer bekommt unten denselben
     Abstand wie oben (symmetrisch), statt bündig am unteren Seitenrand zu kleben. */
  padding-bottom: var(--space-l) !important;
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .infopage__article {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-m);
  }

  /* Kleinerer Abstand unter der Kopfzeile – auf schmalen Screens wirkt
     der Desktop-Abstand (--space-m) unnötig groß. */
  .infopage__header {
    padding-bottom: var(--space-s);
    margin-bottom: var(--space-s);
  }
}


/* ============================================================
   AUSKLAPPBOX (Block „accordion“) — generisch, überall nutzbar
   Basis: natives <details>/<summary>, ohne JavaScript.
   ============================================================ */
.accordion {
  border-bottom: 1px solid rgba(87, 79, 241, 0.12);
  scroll-margin-top: var(--space-s);   /* Luft beim Sprung auf …/faq#frage */
}


/* Die Frage ist ein <h3> (Gliederung für Suchmaschinen & Screenreader),
   soll aber nicht wie eine Überschrift aussehen. Der Selektor muss spezifisch
   genug sein, um die stärkere Regel `.infopage__body h3` zu schlagen – sonst
   erbt die Frage deren asymmetrische Überschriften-Margins (oben 2.25rem,
   unten 0.6rem) und sitzt nicht mittig zwischen den Trennlinien. */
.accordion__summary .accordion__title {
  font: inherit;                  /* Größe, Gewicht, Zeilenhöhe der Summary */
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  margin: 0;
  flex: 1;                        /* füllt die Breite, Pfeil sitzt rechts */
}

.accordion:first-of-type {
  border-top: 1px solid rgba(87, 79, 241, 0.12);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 1.25rem 0;
  cursor: pointer;
  font-size: var(--text-base);
  font-family: var(--font-semibold);
  line-height: 1.4;
  color: #1a1830;
  transition: color var(--dur-fast) var(--ease);
  list-style: none;               /* Standard-Dreieck ausblenden (Firefox) */
}

.accordion__summary::-webkit-details-marker {
  display: none;                  /* Standard-Dreieck ausblenden (Safari) */
}

.accordion__summary:hover,
.accordion[open] .accordion__summary {
  color: var(--color-brand);
}

.accordion__summary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}


/* Pfeil-Snippet als Auf/Zu-Indikator: zeigt zu → nach unten, offen → nach oben.
   Feste, größere Größe (unabhängig von der Textgröße) und selbst zentriert. */
.accordion__summary .icon-arrow {
  width: 1.4rem;
  height: 1.4rem;
  align-self: center;
  transform: rotate(90deg);
  transition: transform var(--dur-base) var(--ease);
}

.accordion[open] .accordion__summary .icon-arrow {
  transform: rotate(-90deg);
}

.accordion__content {
  padding-bottom: 1.25rem;
}

.accordion__content > *:last-child {
  margin-bottom: 0;
}


/* ============================================================
   GUIDES (Ratgeber) — Übersicht + Artikel
   ============================================================ */
.guides__header {
  margin-bottom: 2rem;
}

.guides__header h1 {
  color: var(--color-brand);
  margin-bottom: 0.6rem;
}

.guides__intro {
  color: rgba(26, 24, 48, 0.55);
  max-width: 60ch;
}

.guides__grid .post-card h2 {
  min-height: 3.75em;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.guide-cta {
  padding-top: var(--space-m);
}

.guide-cta__text {
  font-family: var(--font-semibold);
  color: var(--color-ink);
  margin-bottom: var(--space-s);
}

.guide-cta__box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(87, 79, 241, 0.06);
  border-radius: var(--radius-l);
  padding: 1.5rem;
}

.guide-cta__logo {
  flex-shrink: 0;
  border-radius: var(--radius-m);
}

.guide-cta__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.guide-cta__headline {
  font-family: var(--font-semibold);
  color: var(--color-ink);
  margin: 0;
}

.guide-cta__description {
  color: rgba(26, 24, 48, 0.7);
  margin: 0;
}

.guide-cta__button {
  flex-shrink: 0;
  height: 48px;
  padding-inline: 1.5rem;
  font-size: 15px;
  border-radius: 14px;
}

@media (max-width: 860px) {
  .guide-cta__box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

.faq__section + .faq__section {
  margin-top: var(--space-m);
}

.infopage__body .faq__section-title {
  color: var(--color-brand);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin-bottom: 1rem;
}


/* ============================================================
   16. NEWS — Übersicht, Karten, Badges, Beitrags-Ansicht
   ============================================================ */
.news__header {
  margin-bottom: 2rem;
}

.news__header h1 {
  color: var(--color-brand);
  margin-bottom: 0.6rem;
}

.news__intro {
  color: rgba(26, 24, 48, 0.55);
  max-width: 60ch;
}

.news__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.news__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 1.4rem;
  border: none;
  border-radius: 14px;
  font-family: var(--font-semibold);
  font-size: 15px;
  letter-spacing: 0.1px;
  cursor: pointer;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1830;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}

.news__pill:hover:not(.is-active) {
  background: #ffffff;
  color: var(--color-brand);
  box-shadow: 0 6px 18px rgba(87, 79, 241, 0.18);
  transform: translateY(-1px);
}

.news__pill:active {
  opacity: 0.82;
  transform: scale(0.985);
}

.news__pill.is-active {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(119, 105, 228, 0.35);
}

.news__pill.is-active:hover { background: #6859d4;
}

.news__empty,
.news__empty-filter {
  color: rgba(var(--ink-rgb), 0.5);
  padding: 2rem 0;
}

.post__back {
  margin-bottom: 1.25rem;
}

.post__header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}
