/* Bild-Breitenbegrenzung, wichtig, damit einige Bilder nicht zu groß dargestellt werden */
.img--full {
    width: 100%;
    height: auto;
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

.img--1000 {
    max-width: 1000px;
    display: block;
    margin: 0 auto;
    /* zentriert es horizontal */
    width: 100%;
    height: auto;
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

.img--800 {
    max-width: 800px;
    display: block;
    margin: 0 auto;
    /* zentriert es horizontal */
    width: 100%;
    height: auto;
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

.img--500 {
    max-width: 500px;
    display: block;
    margin: 0 auto;
    /* zentriert es horizontal */
    width: 100%;
    height: auto;
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

.img--300 {
    max-width: 300px;
    display: block;
    margin: 0 auto;
    /* zentriert es horizontal */
    width: 100%;
    height: auto;
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

/* für Bildunterschriften */
.image-wrapper {
    display: block;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.image-wrapper img {
    display: block;
    margin: 0 auto;
}

.image-wrapper::after {
    content: attr(data-caption);
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5em;
}

/* so wird Text in Listen genauso groß angezeigt wie normaler Text */
ul,
ol {
    font-size: 1.1em;
    line-height: 1.5;
    margin-block-end: 0.5em !important;
    /* 0.5 Zeile Abstand unterhalb */
}

/* Abstand vor allen h2-Überschriften (0.5 Zeilen vorne, 0 .5 hinten) */
h2 {
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

/* und alle anderen Überschriften auf einmal: */
h3,
h4,
h5,
h6 {
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

/* Abstand vor und nach Figures inkl. Caption */
figure {
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

/* Bullet-/Ziffern-Offset und Text-Einzug */
ul,
ol {
    list-style-position: outside;
    /* Bullets/Ziffern 0.5em rechts vom normalen Textstart */
    margin-inline-start: 0.5em !important;
    /* Listentext 1.5em rechts vom normalen Textstart */
    padding-inline-start: 1.5em !important;
}

/* Blog Meta-Informationen (Datum/Tags) */
.blog-meta {
    margin: 5px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9em;
    color: #6c757d;
}

.blog-meta span {
    margin-right: 15px;
    font-weight: 500;
}

.blog-tags {
    display: inline-block;
}

.blog-tags p {
    margin: 0;
    display: inline;
}

.blog-tags a {
    color: #007bff;
    text-decoration: none;
    margin-right: 3px;
}

.blog-tags a:hover {
    text-decoration: underline;
}

/* Serie-Information Styling */
.series-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 3px solid #6c757d;
    border-right: 3px solid #9db4cc;
    font-size: 0.95em;
}

.series-title {
    margin: 0 0 10px 0;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1em;
}

.series-overview-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.75em;
    font-weight: normal;
}

.series-overview-link:hover {
    text-decoration: underline;
}

.series-description {
    margin: 0 0 15px 0;
    font-style: italic;
    color: #6c757d;
}

.series-nav-title {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 0.95em;
}

.series-list {
    margin: 0;
    padding-left: 20px;
}

.series-item {
    margin-bottom: 6px;
}

.series-current {
    color: #B8860B;
}

.series-marker {
    color: #B8860B;
    font-size: 0.9em;
    font-weight: normal;
}

.series-link {
    color: #007bff;
    text-decoration: none;
}

.series-link:hover {
    text-decoration: underline;
}

/* Epigraph-Styling für Zitate am Artikel-Anfang */
.epigraph {
    font-style: italic;
    text-align: right;
    margin: 2em auto;
    max-width: 400px;
    border: none;
    position: relative;
    padding-top: 1em;
    padding-bottom: 1em;
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

.epigraph::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

.epigraph::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

.epigraph cite {
    font-size: 0.9em;
    font-weight: normal;
    display: block;
    margin-top: 0.5em;
}

.epigraph--simple {
    font-style: italic;
    text-align: right;
    margin: 2em auto;
    max-width: 400px;
    border: none;
    margin-block-start: 0.5em !important;
    margin-block-end: 0.5em !important;
}

.epigraph--simple cite {
    font-size: 0.9em;
    font-weight: normal;
    display: block;
    margin-top: 0.5em;
}


/*
 * ===================================================================
 * Finaler CSS-Fix, um Bootstrap-Konflikte mit Prism.js zu beheben (HELLE VERSION)
 * ===================================================================
 */

/* Zwingt den Code-Block, die störenden Stile von Bootstrap zu ignorieren. */
pre[class*="language-"] {
    font-size: 14px !important;
    /* Korrigiert die riesige Schriftgröße */
    background: #f5f5f5 !important;
    /* Setzt einen neutralen, hellen Hintergrund */
    border: 1px solid #ddd !important;
    /* Setzt einen sauberen, dezenten Rahmen */
    color: #333 !important;
    /* Setzt eine lesbare Standard-Textfarbe */
}

/* Stellt sicher, dass der Code *innerhalb* des Blocks die Stile vom
   Prism-Theme erben kann und nicht von Bootstrap gestört wird. */
pre[class*="language-"] code {
    font-size: 1em !important;
    /* Schriftgröße vom <pre>-Block erben */
    background: none !important;
    /* Wichtig: Entfernt den inneren rosa Hintergrund von Bootstrap */
    color: inherit !important;
    /* Textfarbe vom Prism-Theme erben */
}

/* Custom styles for two-column partners section */
.company-partners-tabs .resp-tabs-list {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
}

.company-partners-tabs .resp-tabs-list li {
    width: 50%; /* Make each tab item occupy half the width for two columns */
}

.company-partners-tabs .resp-tabs-container .partners-content {
    width: 100%; /* Each content section should take full width in its row */
}