/* IWWIT: aus der Original-style.css ausgelagerte Regeln. Originalreihenfolge pro Datei erhalten. */
/* #region IWWIT Topic Page */

/* =========================================================
   IWWIT Topic Page / wiederverwendbare Übersichtsseite
   ---------------------------------------------------------
   Reduziert und an das globale IWWIT Design-System angebunden.

   Wichtig:
   - nutzt globale Variablen aus style.css
   - keine eigenen Font-Faces
   - keine eigenen globalen Farben
   - keine unnötigen p/h2/h3-Neudefinitionen
   - scoped auf .iwwit-topic-page
   - geeignet für mehrere Übersichtsseiten
   ========================================================= */

.iwwit-topic-page {
  --topic-page-width: var(--iwwit-content-width);
  --topic-page-sidebar-width: 270px;
  --topic-page-gap: clamp(24px, 4vw, 36px);
  --topic-page-card-padding: clamp(20px, 2.4vw, 28px);

  width: 100%;
  color: var(--iwwit-color-text);
  background: var(--iwwit-color-bg);
  font-family: var(--iwwit-font-family);
  overflow: visible;
}

.iwwit-topic-page,
.iwwit-topic-page *,
.iwwit-topic-page *::before,
.iwwit-topic-page *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   Filterbereich
   --------------------------------------------------------- */

.iwwit-topic-page__filter {
  width: min(var(--topic-page-width), calc(100% - 32px));
  margin: var(--iwwit-space-lg) auto;
}





/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.iwwit-topic-page__container {
  width: min(var(--topic-page-width), calc(100% - 32px));
  max-width: var(--topic-page-width);
  margin-inline: auto;
  padding-bottom: var(--iwwit-space-2xl);
  overflow: visible;
}

.iwwit-topic-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--topic-page-sidebar-width);
  grid-template-areas:
    "intro toc"
    "main toc";
  gap: var(--topic-page-gap);
  align-items: start;
  overflow: visible;
}

.iwwit-topic-page__intro {
  grid-area: intro;
  margin-bottom: var(--iwwit-space-md);
}

.iwwit-topic-page__main {
  grid-area: main;
  min-width: 0;
}

.iwwit-topic-page__sidebar {
  grid-area: toc;
  position: sticky;
  top: 86px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: visible;
}

/* ---------------------------------------------------------
   Intro
   ---------------------------------------------------------
   H2 und p nutzen grundsätzlich die globalen Definitionen.
   Nur Breite/Margins werden im Modulkontext korrigiert.
   --------------------------------------------------------- */

.iwwit-topic-page__intro > h2 {
  max-width: none !important;
  margin: 0 !important;
  text-wrap: balance;
}

.iwwit-topic-page__intro > p {
  max-width: 760px !important;
  margin: var(--iwwit-space-sm) 0 0 !important;
  color: var(--iwwit-color-muted) !important;
  font-weight: 400 !important;
}

.iwwit-topic-page__divider {
  width: 72px;
  height: 3px;
  margin-top: var(--iwwit-space-md);
  border-radius: 999px;
  background: var(--iwwit-color-accent-strong);
}

/* ---------------------------------------------------------
   Inhaltsverzeichnis
   --------------------------------------------------------- */

.iwwit-topic-page__toc {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--iwwit-color-border);
  border-radius: var(--iwwit-radius-md);
  background: var(--iwwit-color-card-bg);
  
}

/* Header bleibt sichtbar, während die Liste scrollt */
.iwwit-topic-page__toc-header {
  position: sticky;
  top: 0;
  z-index: 2;

  padding: 14px 16px;
  color: var(--iwwit-color-text-inverted);
  background: var(--iwwit-color-accent-strong);

  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.iwwit-topic-page__toc nav {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  scrollbar-width: thin;
}

/* Globale ul/ol-Regeln deaktivieren, weil das hier Navigation ist */
.iwwit-topic-page__toc ol,
.iwwit-topic-page__toc ul {
  display: grid;
  gap: 2px;
  list-style: none !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.iwwit-topic-page__toc li {
  margin: 0 !important;
  padding: 0 !important;
}

/* TOC-Links: keine Unterstreichung, keine globalen Textlink-Regeln */
.iwwit-topic-page__toc a,
.iwwit-topic-page__toc a:link,
.iwwit-topic-page__toc a:visited {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;

  padding: 8px 9px;
  border-radius: var(--iwwit-radius-sm);

  color: var(--iwwit-color-text) !important;
  background: transparent;

  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;

  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  

  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

/* Unterstreichungen auch auf inneren spans entfernen */
.iwwit-topic-page__toc a *,
.iwwit-topic-page__toc a:hover,
.iwwit-topic-page__toc a:hover *,
.iwwit-topic-page__toc a:focus,
.iwwit-topic-page__toc a:focus *,
.iwwit-topic-page__toc a:focus-visible,
.iwwit-topic-page__toc a:focus-visible *,
.iwwit-topic-page__toc a.is-active,
.iwwit-topic-page__toc a.is-active * {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  
}

.iwwit-topic-page__toc a:hover,
.iwwit-topic-page__toc a:focus-visible,
.iwwit-topic-page__toc a.is-active {
  color: var(--iwwit-color-accent-strong) !important;
  background: var(--iwwit-color-soft-bg);
  transform: translateX(2px);
}

.iwwit-topic-page__toc a.is-active {
  font-weight: 600 !important;
}

.iwwit-topic-page__toc-num {
  color: inherit;
  font-weight: 600;
  line-height: inherit;
}

/* ---------------------------------------------------------
   Themenbereiche / Karten
   --------------------------------------------------------- */

.iwwit-topic-page__section {
  margin-bottom: var(--iwwit-space-md);
  scroll-margin-top: var(--iwwit-space-lg);
}

.iwwit-topic-page__section-card {
  position: relative;
  overflow: hidden;

  padding: var(--topic-page-card-padding);
  border: 1px solid var(--iwwit-color-border);
  border-radius: var(--iwwit-radius-md);
  background: var(--iwwit-color-card-bg);
  

  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease;
}

.iwwit-topic-page__section-card:hover {
  transform: translateY(-2px);
  border-color: var(--iwwit-color-accent-strong);
  
}

/* H2 nutzt globale H2-Typografie; nur Kartenkontext korrigieren */
.iwwit-topic-page__section-card > h2 {
  max-width: none !important;
  margin: 0 0 var(--iwwit-space-sm) !important;
  text-wrap: balance;
}

/* p nutzt globale p-Typografie; nur Kartenkontext korrigieren */
.iwwit-topic-page__section-card > p {
  max-width: none !important;
  margin: 0 !important;
  color: var(--iwwit-color-muted) !important;
  font-weight: 400 !important;
}

.iwwit-topic-page__section-card > p + p {
  margin-top: var(--iwwit-space-sm) !important;
}

/* Zwischenüberschriften innerhalb der Karten */
.iwwit-topic-page__subheading {
  margin: var(--iwwit-space-md) 0 var(--iwwit-space-xs);
  color: var(--iwwit-color-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

/* Listen im Kartenkontext: globale ul-Regeln neutralisieren */
.iwwit-topic-page__bullets {
  display: grid;
  gap: 9px;
  list-style: none !important;
  max-width: none !important;
  margin: var(--iwwit-space-sm) 0 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.iwwit-topic-page__bullets li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;

  margin: 0 !important;
  padding: 0 !important;

  color: var(--iwwit-color-text) !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
}

.iwwit-topic-page__bullet-dot {
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--iwwit-color-accent-strong);
  
}

/* ---------------------------------------------------------
   Hinweisblock
   --------------------------------------------------------- */

.iwwit-topic-page__note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;

  margin: var(--iwwit-space-md) 0;
  padding: var(--iwwit-space-sm) 18px;

  border: 1px solid var(--iwwit-color-border);
  border-radius: var(--iwwit-radius-md);
  background: var(--iwwit-color-soft-bg);
}

.iwwit-topic-page__note-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  color: var(--iwwit-color-text-inverted);
  background: var(--iwwit-color-accent-strong);

  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.iwwit-topic-page__note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--iwwit-color-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.iwwit-topic-page__note span {
  display: block;
  color: var(--iwwit-color-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Verknüpfte Beitragskarten
   --------------------------------------------------------- */

.iwwit-topic-page__feature-posts {
  display: grid;
  gap: 14px;
  margin-top: var(--iwwit-space-md);
}

.iwwit-topic-page__post-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;

  padding: 14px;
  border: 1px solid var(--iwwit-color-border);
  border-radius: var(--iwwit-radius-md);

  color: inherit !important;
  background: var(--iwwit-color-soft-bg);
  text-decoration: none !important;
  

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.iwwit-topic-page__post-card:hover,
.iwwit-topic-page__post-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--iwwit-color-accent-strong);
  
  text-decoration: none !important;
}

.iwwit-topic-page__post-img {
  width: 150px;
  height: 96px;
  overflow: hidden;
  border-radius: var(--iwwit-radius-sm);
  background: var(--iwwit-color-quote-bg);
}

.iwwit-topic-page__post-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.iwwit-topic-page__post-card:hover .iwwit-topic-page__post-img img {
  transform: scale(1.06);
}

.iwwit-topic-page__post-text {
  min-width: 0;
  padding-right: 4px;
}

.iwwit-topic-page__post-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 21px;

  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;

  color: var(--iwwit-color-accent-strong);
  background: rgba(56, 97, 123, 0.10);

  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.iwwit-topic-page__post-title {
  display: -webkit-box;
  overflow: hidden;

  color: var(--iwwit-color-primary);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  transition: color 0.18s ease;
}

.iwwit-topic-page__post-card:hover .iwwit-topic-page__post-title,
.iwwit-topic-page__post-card:focus-visible .iwwit-topic-page__post-title {
  color: var(--iwwit-color-accent-strong);
}

.iwwit-topic-page__post-excerpt {
  display: -webkit-box;
  overflow: hidden;

  margin-top: 8px;
  color: var(--iwwit-color-muted);

  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.iwwit-topic-page__post-loading,
.iwwit-topic-page__post-error {
  padding: 14px 16px;
  border: 1px solid var(--iwwit-color-border);
  border-radius: var(--iwwit-radius-md);
  color: var(--iwwit-color-muted);
  background: var(--iwwit-color-card-bg);
  font-size: 16px;
}

/* ---------------------------------------------------------
   Darkmode
   --------------------------------------------------------- */

body.pcdark-mode .iwwit-topic-page,
html.pcdark-mode body .iwwit-topic-page {
  color: var(--iwwit-color-text);
  background: var(--iwwit-color-bg);
}

body.pcdark-mode .iwwit-topic-page__toc,
body.pcdark-mode .iwwit-topic-page__section-card,
html.pcdark-mode body .iwwit-topic-page__toc,
html.pcdark-mode body .iwwit-topic-page__section-card {
  background: var(--iwwit-color-card-bg);
  border-color: var(--iwwit-color-border);
}

body.pcdark-mode .iwwit-topic-page__toc a:hover,
body.pcdark-mode .iwwit-topic-page__toc a:focus-visible,
body.pcdark-mode .iwwit-topic-page__toc a.is-active,
html.pcdark-mode body .iwwit-topic-page__toc a:hover,
html.pcdark-mode body .iwwit-topic-page__toc a:focus-visible,
html.pcdark-mode body .iwwit-topic-page__toc a.is-active {
  color: var(--iwwit-color-primary) !important;
  background: var(--iwwit-color-soft-bg);
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .iwwit-topic-page__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "toc"
      "main";
  }

  .iwwit-topic-page__sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .iwwit-topic-page__toc-header {
    position: static;
  }

  .iwwit-topic-page__toc nav {
    max-height: none;
    overflow: visible;
  }

  .iwwit-topic-page__toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {
  .iwwit-topic-page {
    --topic-page-card-padding: 20px;
  }

  .iwwit-topic-page__filter,
  .iwwit-topic-page__container {
    width: min(100% - 24px, var(--topic-page-width));
  }

  .iwwit-topic-page__filter {
    margin-top: 28px;
    margin-bottom: 36px;
  }

  .iwwit-topic-page__container {
    padding-bottom: var(--iwwit-space-xl);
  }

  .iwwit-topic-page__toc ol {
    grid-template-columns: 1fr;
  }

  .iwwit-topic-page__toc a,
  .iwwit-topic-page__toc a:link,
  .iwwit-topic-page__toc a:visited {
    grid-template-columns: 28px minmax(0, 1fr);
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .iwwit-topic-page__note {
    grid-template-columns: 1fr;
  }

  .iwwit-topic-page__post-card {
    grid-template-columns: 1fr;
  }

  .iwwit-topic-page__post-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .iwwit-topic-page__post-title {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------
   Bewegungen reduzieren
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .iwwit-topic-page__toc a,
  .iwwit-topic-page__section-card,
  .iwwit-topic-page__post-card,
  .iwwit-topic-page__post-img img {
    transition: none !important;
  }
}

/* #endregion */


/* #region IWWIT Topic Page – Gayzine Add-on */

/* =========================================================
   IWWIT Topic Page – Gayzine Add-on
   ---------------------------------------------------------
   Nur Zusatz-Stile für Elemente, die nicht im allgemeinen
   .iwwit-topic-page-CSS enthalten sind.

   Voraussetzung:
   Der allgemeine Bereich "IWWIT Topic Page / wiederverwendbare
   Übersichtsseite" ist bereits in der style.css vorhanden.
   ========================================================= */

/* SVG-Icons über Masken */
.iwwit-topic-page--gayzine .iwwit-topic-page__svg-icon {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--iwwit-color-accent-strong);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.iwwit-topic-page--gayzine .iwwit-topic-page__icon-tip {
  -webkit-mask-image: url('/wp-content/uploads/2026/05/Icon_Gluehbirne_idea_16842029.svg');
  mask-image: url('/wp-content/uploads/2026/05/Icon_Gluehbirne_idea_16842029.svg');
}

.iwwit-topic-page--gayzine .iwwit-topic-page__icon-newspaper {
  -webkit-mask-image: url('/wp-content/uploads/2026/05/Icon_aktuell_newspaper_464200.svg');
  mask-image: url('/wp-content/uploads/2026/05/Icon_aktuell_newspaper_464200.svg');
}

.iwwit-topic-page--gayzine .iwwit-topic-page__icon-politics {
  -webkit-mask-image: url('/wp-content/uploads/2026/05/Icon_Politik_government_18807596.svg');
  mask-image: url('/wp-content/uploads/2026/05/Icon_Politik_government_18807596.svg');
}

.iwwit-topic-page--gayzine .iwwit-topic-page__icon-community {
  -webkit-mask-image: url('/wp-content/uploads/2026/05/icon_community_love_3364924.svg');
  mask-image: url('/wp-content/uploads/2026/05/icon_community_love_3364924.svg');
}

.iwwit-topic-page--gayzine .iwwit-topic-page__icon-health {
  -webkit-mask-image: url('/wp-content/uploads/2026/05/Icon_gesundheit_health-care_154016.svg');
  mask-image: url('/wp-content/uploads/2026/05/Icon_gesundheit_health-care_154016.svg');
}

/* Icon-Kreis im Hinweisblock */
.iwwit-topic-page--gayzine .iwwit-topic-page__note-icon--svg {
  background: rgba(56, 97, 123, 0.10);
  border: 1px solid rgba(56, 97, 123, 0.16);
}

.iwwit-topic-page--gayzine .iwwit-topic-page__note-icon--svg .iwwit-topic-page__svg-icon {
  width: 27px;
  height: 27px;
}

/* Themenkarten */
.iwwit-topic-page--gayzine .iwwit-topic-page__topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--iwwit-space-sm);
  margin-top: var(--iwwit-space-md);
}

.iwwit-topic-page--gayzine .iwwit-topic-page__topic-card {
  padding: var(--iwwit-space-md);
  border: 1px solid var(--iwwit-color-border);
  border-radius: var(--iwwit-radius-md);
  background: var(--iwwit-color-soft-bg);
}

.iwwit-topic-page--gayzine .iwwit-topic-page__topic-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--iwwit-space-sm);
  border-radius: 999px;
  background: rgba(56, 97, 123, 0.10);
  border: 1px solid rgba(56, 97, 123, 0.14);
}

.iwwit-topic-page--gayzine .iwwit-topic-page__topic-icon .iwwit-topic-page__svg-icon {
  width: 25px;
  height: 25px;
}

.iwwit-topic-page--gayzine .iwwit-topic-page__topic-card h3,
.iwwit-topic-page--gayzine .iwwit-topic-page__faq-item h3 {
  max-width: none !important;
  margin: 0 0 var(--iwwit-space-xs) !important;
}

.iwwit-topic-page--gayzine .iwwit-topic-page__topic-card p,
.iwwit-topic-page--gayzine .iwwit-topic-page__faq-item p {
  max-width: none !important;
  margin: 0 !important;
}

/* Bilder im Content */
.iwwit-topic-page--gayzine .iwwit-topic-page__image-block {
  width: min(560px, 100%);
  margin: var(--iwwit-space-md) auto 0;
  overflow: hidden;
  border: 1px solid var(--iwwit-color-border);
  border-radius: var(--iwwit-radius-md);
  background: var(--iwwit-color-soft-bg);
  
}

.iwwit-topic-page--gayzine .iwwit-topic-page__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  
  background: var(--iwwit-color-soft-bg);
}

.iwwit-topic-page--gayzine .iwwit-topic-page__caption {
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 18px 14px;
  color: var(--iwwit-color-muted) !important;
  background: var(--iwwit-color-soft-bg);
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-align: center;
}

/* FAQ */
.iwwit-topic-page--gayzine .iwwit-topic-page__faq {
  display: grid;
  gap: var(--iwwit-space-sm);
  margin-top: var(--iwwit-space-sm);
}

.iwwit-topic-page--gayzine .iwwit-topic-page__faq-item {
  padding: var(--iwwit-space-sm) var(--iwwit-space-md);
  border: 1px solid var(--iwwit-color-border);
  border-radius: var(--iwwit-radius-md);
  background: var(--iwwit-color-soft-bg);
}

@media (max-width: 640px) {
  .iwwit-topic-page--gayzine .iwwit-topic-page__topic-grid {
    grid-template-columns: 1fr;
  }

  .iwwit-topic-page--gayzine .iwwit-topic-page__image-block {
    width: 100%;
  }

  .iwwit-topic-page--gayzine .iwwit-topic-page__image {
    aspect-ratio: 4 / 3;
  }

  .iwwit-topic-page--gayzine .iwwit-topic-page__caption {
    padding: 11px 14px 13px;
    font-size: 13px !important;
  }
}

/* #endregion */
/* =========================================================
   Pressebereich / Intro vor Beitragsgrid
   ========================================================= */

.iwwit-presse-intro {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding-top: 48px;
  box-sizing: border-box;
}

.iwwit-presse-intro h2 {
  max-width: none !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--iwwit-color-accent-strong, #38617B) !important;
  font-family: var(--iwwit-font-family) !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

.iwwit-presse-intro p {
  max-width: 680px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--iwwit-color-text, #333333) !important;
  font-family: var(--iwwit-font-family) !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  line-height: 1.45 !important;
}


