/* Custom CSS for Paligo */

/* ======================================================
   Anpassungen für das Portal-Layout
   ====================================================== */

/* Sekundärfarbe - Für Portal-Suchbutton und Publikationszähler */
.portal-header .portal-search button {
    background-color: #9cbf2b !important;
}

.publication-contents h4 span {
    background-color: transparent !important;
}

/* ======================================================
   Links – blau und unterstrichen (außer in Überschriften
   und Navigation)
   ====================================================== */

a {
    color: #1E90FF !important;
    text-decoration: underline !important;
}

/* Überschriften – schwarz, keine Unterstreichung */
#topic-content .titlepage .title,
#topic-content .titlepage h1.title,
#topic-content .titlepage h2.title,
#topic-content .titlepage h3.title,
#topic-content section .title,
#topic-content h1.title,
#topic-content h2.title,
#topic-content h3.title,
#topic-content h4.title,
#topic-content h5.title,
#topic-content h6.title,
h1, h2, h3, h4, h5, h6,
.title,
.titlepage h1.title,
.titlepage h2.title,
.titlepage h3.title {
    color: #000000 !important;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.title a,
.titlepage h1.title a,
.titlepage h2.title a,
.titlepage h3.title a {
    color: #000000 !important;
    text-decoration: none !important;
}

/* Navigation – schwarz, keine Unterstreichung */
.site-sidebar a,
.nav-site-sidebar a,
.sidebar a,
.toc a,
nav a {
    color: #000000 !important;
    text-decoration: none !important;
}

/* Hover in Navigation – dezent grün */
.site-sidebar a:hover,
.nav-site-sidebar a:hover,
.sidebar a:hover,
.toc a:hover,
nav a:hover {
    color: #9cbf2b !important;
    text-decoration: none !important;
}

/* Aktiver Navigationseintrag */
.nav-site-sidebar .active > a {
    color: #9cbf2b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* ======================================================
   Primärfarben für Buttons, Badges und weitere Elemente
   ====================================================== */

.btn-link {
    color: #1E90FF;
}

.text-primary,
.btn-primary .badge,
.pagination > li > a,
.pagination > li > span,
.nav-site-sidebar .active > a,
.portal-single-publication .publication-icon i,
.portal-single-publication .publication-icon .fa,
.publication-contents a:hover,
.publication-contents h4 a,
.titlepage h1.title,
.titlepage h2.title,
.titlepage h3.title {
}

/* Primärfarben für Hintergründe */
.bg-primary,
.btn-primary,
.publications-condensed .portal-single-publication a,
.toolbar,
.tool-search-form .search-field,
.pager li > a:hover,
.pager li > span:hover,
.colored-top .site-sidebar-header {
    background-color: #9cbf2b !important;
}

/* Icons in grüner Farbe */
.portal-single-publication .publication-icon i,
.portal-single-publication .publication-icon .fa {
    color: #9cbf2b !important;
}

/* ======================================================
   Suchfeld
   ====================================================== */

.portal-header .portal-search input[type="text"] {
    border-color: #9cbf2b !important;
}

/* ======================================================
   Video
   ====================================================== */

.portal-video {
    border: 2px solid #9cbf2b;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ======================================================
   Newsfeed
   ====================================================== */

.portal-newsfeed ul {
    list-style-type: none;
    padding: 0;
}

.portal-newsfeed li {
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #9cbf2b;
}

.portal-newsfeed a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

.portal-newsfeed a:hover {
    color: #87a627;
}

/* ======================================================
   Galerie
   ====================================================== */

.portal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.portal-gallery img {
    width: 100%;
    border: 2px solid #9cbf2b;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

.portal-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ======================================================
   Lightbox
   ====================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid #9cbf2b;
    border-radius: 10px;
}

/* ======================================================
   Hero-Section
   ====================================================== */

.hero {
    background: url('../css/image/portal-bg.jpg') center/cover no-repeat;
    padding: 5rem 2rem;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background-color: #9cbf2b;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
}

.hero .btn:hover {
    background-color: #87a627;
}

/* ======================================================
   Icon-Boxes
   ====================================================== */

.icon-boxes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.icon-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
}

.icon-box i {
    font-size: 2.5rem;
    color: #9cbf2b;
    margin-bottom: 1rem;
}

/* ======================================================
   Video-Section
   ====================================================== */

.video-section {
    margin: 4rem auto;
    max-width: 800px;
    padding: 1rem;
}

.video-section iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    border: none;
}

/* ======================================================
   Fade-In Animation
   ====================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   FAQ / Accordion – Bootstrap panel-group überschreiben
   ====================================================== */

/* Hauptcontainer - überschreibt Bootstrap .panel-group margin-bottom: 19px */
.panel-group {
    margin-bottom: 0.3rem !important;
}

/* Einzelne Panels */
.panel-group .panel,
.panel-group .panel-default,
.panel-group .panel + .panel {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Panel-Heading */
.panel-group .panel-heading,
.panel-default > .panel-heading {
    background: #f9fafb !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px 8px 0 0 !important;
    border-bottom: none !important;
}

/* Panel-Heading wenn geöffnet */
.panel-group .panel-heading:not(.collapsed),
.panel-default > .panel-heading[aria-expanded="true"] {
    background-color: #eef3df !important;
    border-left: 4px solid #9cbf2b !important;
}

/* Panel-Title */
.panel-group .panel-title,
.panel-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.panel-title a,
.panel-title > a {
    display: block !important;
    padding: 0.3rem 0 !important;
    color: #111827 !important;
    text-decoration: none !important;
}

/* Panel-Body */
.panel-group .panel-body,
.panel-body {
    padding: 0.6rem 1rem !important;
    background: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Verschachtelte Accordions (Unterfragen) */
.panel-group .panel-group {
    margin-bottom: 0.15rem !important;
    margin-top: 0.15rem !important;
}

.panel-group .panel-group .panel,
.panel-group .panel-group .panel + .panel {
    margin-top: 0.15rem !important;
    margin-bottom: 0.15rem !important;
}

.panel-group .panel-group .panel-heading {
    padding: 0.35rem 0.8rem !important;
}

.panel-group .panel-group .panel-body {
    padding: 0.4rem 0.8rem !important;
}

/* Focus-Kasten (schwarzer Rahmen) entfernen */
.panel-heading:focus,
.panel-title:focus,
.panel-title a:focus,
.panel a:focus,
.panel-group a:focus,
.panel-group .panel-heading a:focus,
[data-toggle="collapse"]:focus,
[data-parent]:focus,
.accordion-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

/* Auch für den titlepage wrapper in FAQs */
.panel .titlepage,
.panel .div.titlepage {
    margin: 0 !important;
    padding: 0 !important;
}

.panel h4.title,
.panel .panel-heading h4.title {
    margin: 0 !important;
    padding: 0 !important;
}

/* ======================================================
   Abstände – Absätze und Listen
   ====================================================== */

.portal-body p {
    margin-top: 0.8rem;
    margin-bottom: 1.1rem;
}

.portal-body p + ul,
.portal-body p + ol {
    margin-top: 0.8rem;
}

.portal-body ul + p,
.portal-body ol + p {
    margin-top: 1rem;
}

.portal-body section {
    margin-bottom: 2rem;
}

.portal-body p > strong:first-child {
    display: inline-block;
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
}

/* ======================================================
   Startseiten-Banner
   ====================================================== */

.portal-top-banner {
    background-color: #eef3df;
    color: #2f3b1a;
    text-align: center;
    padding: 1rem 1.2rem;
    font-size: 1.8rem;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.3;
}

.portal-top-banner::first-letter {
    margin-right: 0.3rem;
}


/* ======================================================
   Startseite: Beliebte Themem (automat aus Paligo) nicht anzeigen
   ====================================================== */
   .featured-content-label {
    display:none;
}

.portal-contents featured-content {
    display:none;
}

.portal-contents .inner {
    display:none;
}

/* ======================================================
   Tabellen – dünne schwarze Rahmen (1px) + hellgrüne Kopfzeile
   ====================================================== */

.portal-body table {
    margin-top: 1.2rem !important;
    margin-bottom: 1.6rem !important;
    border-collapse: collapse !important;
    width: 100% !important;
    border: 1px solid #000000 !important;
    display: block !important;
    overflow-x: auto !important;
}

/* Zellen mit 1px Rahmen und gutem Padding */
.portal-body table th,
.portal-body table td,
#topic-content table th,
#topic-content table td,
.informaltable th,
.informaltable td {
    padding: 1rem 1.2rem !important;
    border: 1px solid #000000 !important;
}

/* Kopfzeile – hellgrün und gefettet */
.portal-body table th,
.portal-body table thead th,
.portal-body table thead tr th,
.portal-body table tr th,
.portal-body .informaltable th,
.portal-body .informaltable thead th,
.portal-body .table th,
.portal-body .table thead th,
#topic-content table th,
#topic-content table thead th,
#topic-content .informaltable th,
#topic-content .informaltable thead th,
table.table th,
table.informaltable th,
.section table th,
.section table thead th {
    background-color: #d4edaa !important;
    color: #1a2e00 !important;
    font-weight: 700 !important;
}

/* Zebra-Streifen für Datenzeilen */
.portal-body table tbody tr:nth-child(even),
#topic-content table tbody tr:nth-child(even),
.informaltable tbody tr:nth-child(even) {
    background-color: #f7f9f4 !important;
}

.portal-body table tbody tr:nth-child(odd),
#topic-content table tbody tr:nth-child(odd),
.informaltable tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

/* ======================================================
   Release Notes Box
   ====================================================== */

.release-notes-box {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 960px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.release-notes-box h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 3.2rem;
    color: #111827;
}

.release-notes-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.release-notes-box li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* =====================================
   Footer – Corporate Clean (vollständig)
   ===================================== */
/* Container-Basis */
.portal-footer,
footer.portal-footer,
.site-footer {
  background: #1c1c1c !important;
  color: #9ca3af !important;
  padding: 20px 24px 16px !important;
  font-size: 16px;
}
/* Linie oben */
.portal-footer .footer-topline,
.site-footer .footer-topline {
  border-top: 1px solid #ffffff !important;
  margin: 0 0 16px 0 !important;
}
/* 3-Spalten-Raster */
.portal-footer .footer-inner,
.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important; /* links | mitte | rechts */
  align-items: center !important;
  gap: 12px 24px !important;
}
/* Linkgruppe links */
.portal-footer .footer-left,
.site-footer .footer-left {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}
/* WICHTIG: Linkfarbe links WEISS */
.portal-footer .footer-left a,
.site-footer .footer-left a,
footer.portal-footer .footer-left a {
  display: inline-block !important;
  color: #ffffff !important;          /* hier explizit Weiß */
  text-decoration: none !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  padding: 2px 0 !important;
}
.portal-footer .footer-left a:hover,
.site-footer .footer-left a:hover,
footer.portal-footer .footer-left a:hover {
  color: #dfe3e8 !important;          /* dezentes Hover-Weiß */
}
/* Mitte: Copyright */
.portal-footer .footer-center,
.site-footer .footer-center {
  justify-self: center !important;
  text-align: center !important;
  font-size: 15px !important;
  color: #ffffff !important;
  white-space: nowrap !important;
}
/* Social rechts */
.portal-footer .footer-right,
.site-footer .footer-right {
  display: flex !important;
  justify-self: end !important;
  align-items: center !important;
  gap: 16px !important;
}
.portal-footer .footer-right .footer-social,
.site-footer .footer-right .footer-social {
  display: inline-flex !important;
  align-items: center !important;
  color: #ffffff !important;          /* Icons ebenfalls weiß */
  font-size: 22px !important;
  text-decoration: none !important;
}
.portal-footer .footer-right .footer-social:hover,
.site-footer .footer-right .footer-social:hover {
  color: #dfe3e8 !important;
}
/* Claim unten rechts */
.portal-footer .footer-claim,
.site-footer .footer-claim {
  margin-top: 14px !important;
  text-align: right !important;
  font-style: italic !important;
  font-size: 16px !important;
  color: #ffffff !important;
}
/* Responsive */
@media (max-width: 900px) {
  .portal-footer .footer-inner,
  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    justify-items: start !important;
  }
  .portal-footer .footer-center,
  .site-footer .footer-center {
    justify-self: start !important;
    text-align: left !important;
    margin: 8px 0 !important;
    white-space: normal !important;
  }

}/* ======================================================
 ✅ 1. HERO – NUR Titel weiß
 ====================================================== */

.portal-header h1 {
    color: #ffffff !important;
}


/* ======================================================
 ✅ 2. STARTSEITE – NUR KACHEL-LINKS (keine globalen Links!)
 ====================================================== */

/* NUR die Kacheln */
.portal-publications .portal-single-publication a,
.portal-publications .portal-single-publication a:visited {
    color: inherit !important;
    text-decoration: none !important;
}


/* ======================================================
 ✅ 3. FOOTER – horizontal sauber anordnen
 (KEINE Farben ändern!)
 ====================================================== */

.portal-footer .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* wichtig gegen Stapeln */
}

/* Links nebeneinander */
.portal-footer .footer-left {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

/* Social Icons nebeneinander */
.portal-footer .footer-right {
    display: flex;
    gap: 1rem;
}

/* kein Einfluss auf Farben → bleibt wie vorher */


/* ======================================================
 ✅ 4. FAQ – JETZT RICHTIG (auf DEINE STRUKTUR angepasst)
 ====================================================== */

/* WICHTIG: Paligo nutzt .section.accordion → darauf gehen wir */
.section.accordion .panel {
    background: transparent !important;   /* grauer Kasten weg */
    border: none !important;
    box-shadow: none !important;
}

/* Heading komplett clean */
.section.accordion .panel-heading {
    background: transparent !important;
    border: none !important;
    padding: 0.2rem 0 !important;  /* kompakt */
}

/* Auch im geöffneten Zustand NICHT einfärben */
.section.accordion .panel-heading[aria-expanded="true"] {
    background: transparent !important;
    border: none !important;
}

/* TITEL: gleiche Schriftgröße überall */
.section.accordion .panel .title h3,
.section.accordion .panel .title h4 {
    font-size: 1rem !important;
    margin: 0 !important;
}

/* Body: gleiche Größe (kein Schrumpfen mehr) */
.section.accordion .panel-body {
    font-size: 1rem !important;
    padding: 0.3rem 0.6rem !important;
    background: transparent !important;
}

/* ABSTÄNDE – jetzt wirklich minimal */
.section.accordion .panel {
    margin: 0.05rem 0 !important;
}

.section.accordion .panel + .panel {
    margin-top: 0.05rem !important;
}

/* Verschachtelte FAQs NOCH enger */
.section.accordion .section.accordion .panel {
    margin: 0 !important;
}

/* Klickbereich enger */
.section.accordion .panel-heading a {
    padding: 0.1rem 0 !important;
    display: block;
}

/* Entfernt unnötige Panel-Innenabstände */
.section.accordion .panel-inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* ======================================================
   FAQ / Accordion – KOMPAKT + GROSSE SCHRIFT
   (überschreibt alle vorherigen FAQ-Styles)
   ====================================================== */

/* Hauptcontainer – kein Außenabstand */
.panel-group,
.section.accordion {
    margin: 0 !important;
    padding: 0 !important;
}

/* Einzelne Panels – KEIN Abstand, kein Rahmen, kein Schatten */
.panel-group .panel,
.panel-group .panel-default,
.panel-group .panel + .panel,
.section.accordion .panel,
.section.accordion .panel + .panel {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Panel-Heading – transparent, kompakt */
.panel-group .panel-heading,
.panel-default > .panel-heading,
.section.accordion .panel-heading {
    background: transparent !important;
    padding: 0.3rem 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Auch geöffnet: kein Hintergrund, kein Rahmen */
.panel-group .panel-heading:not(.collapsed),
.panel-default > .panel-heading[aria-expanded="true"],
.section.accordion .panel-heading[aria-expanded="true"] {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
}

/* Panel-Title – GROSSE SCHRIFT */
.panel-group .panel-title,
.panel-title,
.section.accordion .panel .title h3,
.section.accordion .panel .title h4,
.section.accordion .panel-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* Links im Titel */
.panel-title a,
.panel-title > a,
.section.accordion .panel-heading a {
    display: block !important;
    padding: 0.2rem 0 !important;
    color: #111827 !important;
    text-decoration: none !important;
}

/* Panel-Body – GROSSE SCHRIFT, kein Extra-Abstand */
.panel-group .panel-body,
.panel-body,
.section.accordion .panel-body {
    padding: 0.3rem 0 0.5rem 0 !important;
    margin: 0 !important;
    background: transparent !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Verschachtelte Accordions (Unterfragen) – ebenfalls kompakt */
.panel-group .panel-group,
.section.accordion .section.accordion {
    margin: 0 !important;
    padding: 0 !important;
}

.panel-group .panel-group .panel,
.panel-group .panel-group .panel + .panel,
.section.accordion .section.accordion .panel {
    margin: 0 !important;
}

.panel-group .panel-group .panel-heading,
.section.accordion .section.accordion .panel-heading {
    padding: 0.2rem 0 !important;
}

.panel-group .panel-group .panel-body,
.section.accordion .section.accordion .panel-body {
    padding: 0.2rem 0 0.4rem 0 !important;
}

/* Focus-Rahmen entfernen */
.panel-heading:focus,
.panel-title:focus,
.panel-title a:focus,
.panel a:focus,
.panel-group a:focus,
.section.accordion a:focus,
[data-toggle="collapse"]:focus,
[data-parent]:focus,
.accordion-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Titlepage-Wrapper in FAQs aufräumen */
.panel .titlepage,
.panel .div.titlepage,
.section.accordion .titlepage {
    margin: 0 !important;
    padding: 0 !important;
}

.panel h4.title,
.panel .panel-heading h4.title,
.section.accordion h3.title,
.section.accordion h4.title {
    margin: 0 !important;
    padding: 0 !important;
}
/* ======================================================
   FAQ – SCHRIFTGRÖSSE FIX (basierend auf Paligo-Struktur)
   ====================================================== */

/* Überthemen (h3) – gleiche Größe wie Seitenüberschrift */
.section.accordion > .panel > .panel-heading h3.title,
.section.accordion > .panel > .panel-heading .title h3.title,
.section.accordion .panel-heading .titlepage h3.title,
.section.accordion .panel-heading .titlepage .title h3.title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Unterfragen (h4) – etwas kleiner als Überthemen */
.section.accordion .section.accordion .panel-heading h4.title,
.section.accordion .section.accordion .panel-heading .title h4.title,
.section.accordion .panel-body .section.accordion h4.title,
.section.accordion .panel-body .panel-heading h4.title,
.section.accordion .panel-body .panel-heading .titlepage h4.title,
.section.accordion .panel-body .panel-heading .titlepage .title h4.title {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: underline !important;
}

/* Alle Links innerhalb der Titel */
.section.accordion .panel-heading .titlepage a,
.section.accordion .panel-heading .title a,
.section.accordion .panel-heading h3.title a,
.section.accordion .panel-heading h4.title a {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: #111827 !important;
    text-decoration: none !important;
}

/* Panel-Body Inhalt (Antworten) */
.section.accordion .panel-body,
.section.accordion .panel-body p,
.section.accordion .panel-body span,
.section.accordion .panel-body .panel-inner,
.section.accordion .panel-body .panel-inner p,
.section.accordion .panel-body .panel-inner span {
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
}

/* Tipp-Boxen innerhalb FAQ */
.section.accordion .panel-body .tip,
.section.accordion .panel-body .tip p,
.section.accordion .panel-body .tip h3.title {
    font-size: 1rem !important;
}
/* ======================================================
   FAQ – ABSTAND ZWISCHEN ÜBERTHEMA UND ERSTER FRAGE
   ====================================================== */
/* Panel-Body direkt nach Überthema – kein oberer Abstand */
.section.accordion > .panel > .panel-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* Leere Absätze am Anfang des Panel-Body entfernen */
.section.accordion > .panel > .panel-body > p:first-child:empty,
.section.accordion .panel-body > p:first-child:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
}
/* Erste verschachtelte Section (erste Unterfrage) */
.section.accordion > .panel > .panel-body > .section.accordion:first-of-type,
.section.accordion .panel-body > a:first-of-type + .section.accordion,
.section.accordion .panel-body > .section.accordion:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Anker-Links vor Unterfragen */
.section.accordion .panel-body > a[id]:first-of-type {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
}
/* Panel der ersten Unterfrage */
.section.accordion .panel-body .section.accordion:first-of-type > .panel {
    margin-top: 0 !important;
}
/* ======================================================
   FAQ – LINK-ICON NEBEN TITEL (nicht darunter)
   ====================================================== */

/* Titel und Icon in einer Zeile */
.section.accordion .panel-heading .title h3.title,
.section.accordion .panel-heading .title h4.title {
    display: inline !important;
}

/* Header-Link Icon inline neben Titel */
.section.accordion .panel-heading .title h3.title a.header-link,
.section.accordion .panel-heading .title h4.title a.header-link,
.section.accordion h3.title a.header-link,
.section.accordion h4.title a.header-link {
    display: inline !important;
    margin-left: 0.4rem !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

/* Icon selbst */
.section.accordion .title a.header-link i,
.section.accordion .title a.header-link .fa {
    font-size: 0.75rem !important;
    vertical-align: middle !important;
}

/* Wrapper-Divs nicht als Block */
.section.accordion .panel-heading .titlepage > a > div,
.section.accordion .panel-heading .titlepage > a > div > div.title {
    display: inline !important;
}
/* ======================================================
   Dexios-Pfad-Banner
   ====================================================== */
.dexios-path-banner {
    background-color: #eef3df;
    border-left: 4px solid #9cbf2b;
    color: #2f3b1a;
    padding: 0.75rem 1.2rem;
    margin: 1rem 0 1.5rem 0;
    font-size: inherit;  /* Übernimmt Schriftgröße der Seite */
    line-height: 1.5;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.dexios-path-banner .dexios-banner-label {
    color: #1a2e00;
    font-weight: 600;
}
/* Falls inherit nicht greift, explizit auf Fließtext-Größe setzen */
#topic-content .dexios-path-banner,
.portal-body .dexios-path-banner {
    font-size: 1em;
}