/* =========================================================
   SALAMANDRA – Cassiopeia Custom CSS
   =========================================================

   Inhalt:
   1.  Variablen
   2.  Header, Logo, Hauptnavigation
   3.  Seitenbreiten (Raster, Breadcrumbs)
   4.  Buttons
   5.  Home: Journal Profile, DGHT
   6.  Latest Issue
   7.  Volume-Seiten, Issue-Seiten (Header + Artikelliste)
   8.  Einzelartikel
   9.  Redaktionelle Einzelseiten (About, Contact, ...)

   Voraussetzung: Template-Stil, Reiter "Erweitert", Layout = Fluid

   Breakpoints: 900px (Tablet), 767.98px (Bootstrap md), 600px (Smartphone)

   Schrift: Source Sans 3 (Variable Font), lokal eingebunden aus
   media/templates/site/cassiopeia_salamandra/fonts/
   Lizenz: SIL Open Font License 1.1 (Lizenztext OFL.txt im Ordner fonts)
   ========================================================= */


/* =========================================================
   1. VARIABLEN
   ========================================================= */

:root {
    --salamandra-max-width: 1600px;
    --salamandra-gutter: clamp(1rem, 3vw, 3rem);
    --salamandra-text-width: 1100px;

    --salamandra-blue: #315f78;
    --salamandra-green: #176b4d;
    --salamandra-green-deep: #0a3a2a;
    --salamandra-line: #d8e0e4;

    --salamandra-font-sans: "Source Sans 3", Arial, sans-serif;
}

/* Source Sans 3, Variable Font (Gewichte 200–900), lokal gehostet */
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/SourceSans3VF-Upright.ttf.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/SourceSans3VF-Italic.ttf.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}


/* =========================================================
   2. HEADER, LOGO, HAUPTNAVIGATION
   ========================================================= */

/* ---------- HEADER ---------- */

.container-header {
    background: #dbeaf2;
    background-image: none;
    color: #1f1f1f;
    border-bottom: 3px solid #9bbdce;
}

/* ---------- LOGO ---------- */

.container-header .navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.9rem 1rem 0.4rem;
}

.container-header .navbar-brand img {
    display: block;
    height: 95px;
    width: auto;
    max-width: 100%;
}

/* ---------- HAUPTNAVIGATION ---------- */

.container-header .container-nav {
    display: flex;
    justify-content: center;
    padding: 0.3rem 1rem 0.9rem;
}

.container-header .mod-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 2rem;
    width: 100%;
    margin: 0;
}

.container-header .mod-menu > li {
    padding: 0;
}

.container-header .mod-menu > li > a {
    display: block;
    padding: 0.45rem 0;
    color: #1f1f1f;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.15s ease;
}

/* ---------- HOVER / AKTIVE SEITE ---------- */

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
    color: #315f78;
}

/* Aktiver Menüpunkt – deutlich sichtbar */
.container-header .metismenu.mod-menu .metismenu-item.active > a {
    color: #005b85 !important;
    font-weight: 700;
    border-bottom: 4px solid #005b85;
    padding-bottom: 8px;
}

/* ---------- TABLET ---------- */

@media (max-width: 900px) {

    .container-header .navbar-brand img {
        height: 85px;
    }

    .container-header .mod-menu {
        gap: 0 1.2rem;
    }

    .container-header .mod-menu > li > a {
        font-size: 0.95rem;
    }
}

/* ---------- SMARTPHONE ---------- */

@media (max-width: 600px) {

    .container-header .navbar-brand {
        padding: 0.7rem 1rem 0.3rem;
    }

    .container-header .navbar-brand img {
        height: auto;
        width: auto;
        max-width: min(90vw, 430px);
    }

    .container-header .container-nav {
        padding: 0.35rem 1rem 0.65rem;
    }

    .container-header .mod-menu {
        gap: 0 1rem;
    }

    .container-header .mod-menu > li > a {
        color: #1f1f1f !important;
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }

    .container-header .metismenu.mod-menu {
        color: #1f1f1f;
    }

    .container-header .navbar-toggler {
        color: #1f1f1f;
        border-color: #315f78;
    }
}


/* =========================================================
   3. SEITENBREITEN
   =========================================================
   Gemeinsames Raster für Header, Inhalt und Footer:
   links/rechts gleich große, mitwachsende Ränder, Mitte max. 1600 px.
   Die Hintergründe (z. B. der blaue Header) laufen über die volle Breite.
   Kein 100vw, damit die vertikale Scrollbar keinen Überlauf erzeugt. */

body.site .site-grid,
body.site .container-header,
body.site .container-footer {
    display: grid;
    column-gap: 0;
    grid-template-columns:
        [full-start] minmax(var(--salamandra-gutter), 1fr)
        [main-start] minmax(0, var(--salamandra-max-width))
        [main-end] minmax(var(--salamandra-gutter), 1fr)
        [full-end];
}

/* Cassiopeia platziert Bereiche über benannte grid-areas (".  main  ."),
   die zu den eigenen Spalten nicht passen. Daher: Areas abschalten und
   alle Kinder explizit in die Mittelspalte setzen (Reihenfolge = DOM-Reihenfolge). */
body.site .site-grid {
    grid-template-areas: none;
}

body.site .site-grid > :not(.full-width) {
    grid-area: auto;
    grid-column: main-start / main-end;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-inline: 0;
}

/* Vollbreite Positionen (Header, Footer, Banner) */
body.site .site-grid > .full-width {
    grid-area: auto;
    grid-column: full-start / full-end;
}

body.site .container-header > .grid-child,
body.site .container-footer > .grid-child {
    grid-column: main-start / main-end;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-inline: 0;
    padding-inline: 0;
}

/* Innere Joomla-Container dürfen die Breite nicht erneut begrenzen */
body .container-component > main,
body .container-component .item-page,
body .container-component .com-content-article,
body .container-component .com-content-category-blog,
body .container-component .com-content-category-list,
body .container-component .blog,
body .container-component .category-list {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

/* Breadcrumbs: Breite kommt jetzt aus dem Raster */
body.site .container-breadcrumbs,
body.site .container-breadcrumbs .breadcrumb {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
}

/* Sicherheitsnetz gegen horizontales Scrollen */
body.site {
    overflow-x: clip;
}

/* Lange Autorenzeilen, Titel und Affiliations umbrechen statt überlaufen */
.salamandra-article__title,
.salamandra-article__authors,
.salamandra-article__affiliations {
    overflow-wrap: break-word;
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.salamandra-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border: 2px solid var(--salamandra-green);
    border-radius: 0.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.salamandra-button--primary {
    background: var(--salamandra-green);
    color: #fff;
}

.salamandra-button--primary:hover,
.salamandra-button--primary:focus {
    background: #0f5138;
    border-color: #0f5138;
    color: #fff;
    text-decoration: none;
}


/* =========================================================
   5. HOME
   ========================================================= */

/* ---------- Journal Profile ---------- */

.journal-frequency {
    color: var(--salamandra-green-deep);
    font-family: var(--salamandra-font-sans);
    font-size: 1rem;
    font-weight: 600;
}

.journal-profile {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
}

.profile-block + .profile-block {
    border-left: 1px solid var(--salamandra-line);
    padding-left: 2.5rem;
}

.index-list {
    columns: 2;
    column-gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--salamandra-font-sans);
}

.index-list li {
    break-inside: avoid;
    border-bottom: 1px solid var(--salamandra-line);
    padding: 0.45rem 0;
}

.metrics-list {
    margin: 0;
}

.metrics-list div {
    align-items: baseline;
    border-bottom: 1px solid var(--salamandra-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.7rem 0;
}

.metrics-list span,
.metrics-list strong {
    margin: 0;
}

.metrics-list span {
    font-family: var(--salamandra-font-sans);
    font-size: 0.92rem;
}

.metrics-list strong {
    color: var(--salamandra-green-deep);
    font-family: var(--salamandra-font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
}

.issn {
    color: #1f1f1f;
    font-family: var(--salamandra-font-sans);
    font-size: 0.95rem;
    margin-top: 1.2rem;
}

@media (max-width: 767.98px) {
    .journal-profile {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-block + .profile-block {
        border-left: 0;
        border-top: 1px solid var(--salamandra-line);
        padding-left: 0;
        padding-top: 1.5rem;
    }
}

@media (max-width: 600px) {
    .index-list {
        columns: 1;
    }

    .metrics-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ---------- DGHT ---------- */

.membership-link {
    background: var(--salamandra-green-deep);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-family: var(--salamandra-font-sans);
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
}

.membership-link:hover {
    background: #1b6f52;
    color: #fff;
    text-decoration: none;
}


/* =========================================================
   6. LATEST ISSUE
   ========================================================= */

.salamandra-latest-issue,
.latest-issue {
    width: 100%;
    margin-top: 1.5rem;
}

.salamandra-latest-issue .latest-issue {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
    margin-top: 0; /* Abstand liegt bereits am äußeren Container */
}

/* Cover */
.latest-issue-cover img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d5dde1;
    box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
}

/* Ausgabeüberschrift */
.latest-issue-meta {
    margin: 0 0 1.25rem;
    color: #20242b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Artikelliste */
.latest-issue-list {
    width: 100%;
}

.latest-article {
    margin: 0;
    padding: 0.9rem 0 1rem;
    border-bottom: 1px solid var(--salamandra-line);
}

.latest-article:first-child {
    padding-top: 0;
}

.latest-article h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    line-height: 1.35;
}

.latest-article h3 a,
.latest-article h3 a:visited {
    color: var(--salamandra-green);
    text-decoration: none;
}

.latest-article h3 a:hover,
.latest-article h3 a:focus {
    color: #0e4834;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.latest-article .authors {
    margin: 0 0 0.3rem;
    color: #30363b;
    font-size: 0.94rem;
    line-height: 1.45;
}

.latest-article .article-meta {
    margin: 0;
    color: #64717b;
    font-size: 0.88rem;
}

/* Autoren in Kapitälchen */
.salamandra-latest-issue__authors {
    font-variant-caps: small-caps;
    letter-spacing: 0.025em;
}

@media (max-width: 767.98px) {
    .salamandra-latest-issue .latest-issue {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .latest-issue-cover {
        max-width: 220px;
    }
}


/* =========================================================
   7. VOLUME-SEITEN, ISSUE-SEITEN
   ========================================================= */

/* Großes Cover auf Volume-Seiten */
.salamandra-volume-cover {
    display: block;
    width: min(100%, 520px);
    height: auto;
    margin: 1.5rem 0 2.5rem;
    border: 1px solid #d5dde1;
    box-shadow: 0 6px 22px rgb(0 0 0 / 14%);
}

/* ---------- Issue-Header: Cover + Ressourcen (siehe blog.php) ---------- */

.com-content-category-blog .salamandra-issue-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem 2.5rem;
    margin: 1.5rem 0 2.5rem;
}

.com-content-category-blog .salamandra-issue-header__cover {
    flex: 0 0 auto;
    margin: 0;
}

.com-content-category-blog .salamandra-issue-header__cover img {
    display: block;
    width: auto;
    max-width: 280px;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    border: 1px solid #d5dde1;
    box-shadow: 0 6px 22px rgb(0 0 0 / 14%);
}

.com-content-category-blog .salamandra-issue-header__resources {
    flex: 1 1 16rem;
    min-width: 0;
}

.com-content-category-blog .salamandra-issue-header__resources h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

@media (max-width: 767.98px) {
    .com-content-category-blog .salamandra-issue-header {
        flex-direction: column;
        gap: 1.25rem;
    }

    .com-content-category-blog .salamandra-issue-header__cover img {
        max-width: min(240px, 100%);
        max-height: none;
    }
}

/* ---------- Issue-Seitenüberschrift ---------- */

.com-content-category-blog > h1,
.com-content-category-blog > h2,
.com-content-category-blog .page-header h1 {
    margin: 0 0 1.5rem;
    color: #1f292e;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ---------- Artikelliste (kompakt) ---------- */

.com-content-category-blog .com-content-category-blog__item {
    max-width: none;
    margin: 0;
    padding: 1rem 0 1.15rem;
    border-bottom: 1px solid var(--salamandra-line);
}

.com-content-category-blog .com-content-category-blog__item:first-child {
    padding-top: 0;
}

.com-content-category-blog .com-content-category-blog__item:last-child {
    border-bottom: 0;
}

/* Joomla-Titelcontainer */
.com-content-category-blog .com-content-category-blog__item .page-header {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Artikeltitel */
.com-content-category-blog .com-content-category-blog__item h2 {
    margin: 0;
    font-size: clamp(1.08rem, 1.45vw, 1.3rem);
    font-weight: 650;
    line-height: 1.38;
    letter-spacing: -0.01em;
}

/* Artikellinks */
.com-content-category-blog .com-content-category-blog__item h2 a,
.com-content-category-blog .com-content-category-blog__item h2 a:visited {
    color: var(--salamandra-blue);
    text-decoration: none;
}

/* Maus und Tastaturfokus: nur Unterstreichung, kein Fettdruck (verhindert Zeilenumbruch-Sprünge) */
.com-content-category-blog .com-content-category-blog__item h2 a:hover,
.com-content-category-blog .com-content-category-blog__item h2 a:focus {
    color: var(--salamandra-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

@media (max-width: 600px) {
    .com-content-category-blog > h1,
    .com-content-category-blog > h2,
    .com-content-category-blog .page-header h1 {
        margin-bottom: 1.2rem;
    }

    .com-content-category-blog .com-content-category-blog__item {
        padding: 0.85rem 0 1rem;
    }

    .com-content-category-blog .com-content-category-blog__item h2 {
        font-size: 1.05rem;
        line-height: 1.42;
    }
}


/* =========================================================
   8. EINZELARTIKEL
   ========================================================= */

.salamandra-article {
    width: 100%;
}

.salamandra-article__type {
    margin: 0 0 0.65rem;
    color: #51636c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.salamandra-article__title {
    margin: 0 0 1rem;
    color: #1f292e;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.salamandra-article__authors {
    margin: 0 0 0.9rem;
    font-size: 1.08rem;
    line-height: 1.65;
}

.salamandra-article__authors .salamandra-author {
    font-variant-caps: small-caps;
    letter-spacing: 0.025em;
}

.salamandra-article__authors sup {
    margin-left: 0.12rem;
    font-size: 0.68em;
}

.salamandra-article__corresponding {
    color: var(--salamandra-green);
}

.salamandra-article__orcid {
    font-size: 0.78em;
    font-weight: 700;
    text-decoration: none;
}

.salamandra-article__affiliations {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
    color: #53616a;
    font-size: 0.92rem;
    line-height: 1.55;
}

.salamandra-article__correspondence {
    margin: 0 0 1.5rem;
    font-size: 0.92rem;
}

.salamandra-article__bibliography {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    border-left: 4px solid var(--salamandra-green);
    background: #f2f6f5;
}

.salamandra-article__bibliography div {
    min-width: 0;
}

.salamandra-article__bibliography dt {
    color: #617078;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.salamandra-article__bibliography dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.salamandra-article__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.4rem 0 2.25rem;
}

.salamandra-article__section,
.salamandra-article__fulltext {
    margin-block: 2.25rem;
}

.salamandra-article__section h2,
.salamandra-article__fulltext > h2 {
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #d5dde1;
    font-size: 1.35rem;
}

.salamandra-article__section p,
.salamandra-article__fulltext p {
    line-height: 1.75;
}

.salamandra-article__keywords {
    color: #40515a;
}

.salamandra-article__citation,
.salamandra-article__notice {
    padding: 1.15rem 1.25rem;
    background: #f4f6f7;
}

.salamandra-article__citation h2,
.salamandra-article__notice h2 {
    margin-top: 0;
}

.salamandra-article__citation p,
.salamandra-article__notice p {
    margin-bottom: 0;
}

.salamandra-article__fulltext figure {
    margin: 2rem 0;
}

.salamandra-article__fulltext img {
    max-width: 100%;
    height: auto;
}

.salamandra-article__fulltext figcaption {
    margin-top: 0.6rem;
    color: #53616a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.salamandra-article__fulltext .table-responsive {
    overflow-x: auto;
}

@media (max-width: 600px) {
    .salamandra-article__bibliography {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .salamandra-article__actions .btn {
        width: 100%;
    }
}


/* =========================================================
   9. REDAKTIONELLE EINZELSEITEN
   Gilt für: About, Contact, Instructions for Authors,
   Editorial Board, Impressum
   (Menüpunkt-Seitenklasse: salamandra-static-page)
   ========================================================= */

/* Lesespalte, mittig im Raster (Breite: --salamandra-text-width).
   Selektor bewusst so spezifisch, dass er die allgemeine Breitenregel
   aus Abschnitt 3 überstimmt. */
body.salamandra-static-page .container-component .com-content-article {
    max-width: var(--salamandra-text-width);
    margin-inline: auto;
}

.salamandra-static-page .com-content-article__body {
    color: #222;
    font-size: 1rem;
    line-height: 1.65;
}

.salamandra-static-page .com-content-article__body p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.salamandra-static-page .com-content-article__body h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    font-size: 1.4rem;
    line-height: 1.25;
}

.salamandra-static-page .com-content-article__body h3 {
    margin-top: 2rem;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.salamandra-static-page .com-content-article__body h2:first-child,
.salamandra-static-page .com-content-article__body h3:first-child {
    margin-top: 0;
}

.salamandra-static-page .com-content-article__body ul,
.salamandra-static-page .com-content-article__body ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 1.4rem;
}

.salamandra-static-page .com-content-article__body li + li {
    margin-top: 0.35rem;
}

.salamandra-static-page .com-content-article__body address {
    margin-bottom: 1.5rem;
    font-style: normal;
    line-height: inherit;
}

.salamandra-static-page .com-content-article__body a {
    color: var(--salamandra-blue);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 0.15em;
}

.salamandra-static-page .com-content-article__body a:hover,
.salamandra-static-page .com-content-article__body a:focus-visible {
    color: var(--salamandra-blue);
    text-decoration: underline;
}

.salamandra-static-page .com-content-article__body img {
    max-width: 100%;
    height: auto;
}

.salamandra-static-page .com-content-article__body table {
    width: 100%;
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    body.salamandra-static-page .container-component .com-content-article {
        max-width: none;
    }

    .salamandra-static-page .com-content-article__body {
        font-size: 0.975rem;
        line-height: 1.6;
    }

    .salamandra-static-page .com-content-article__body h2 {
        margin-top: 2rem;
        font-size: 1.3rem;
    }
}

/* Kapitaelchen: Autoren in der Zitierzeile */
.salamandra-article__citation-authors {
    font-variant-caps: small-caps;
}


/* =========================================================
   10. HOME: Blockgliederung (16.10.2026)
   Neutrale Flaechen, farbunabhaengig (Farbentscheidung offen).
   Betrifft nur die Startseite (Klassen journal-*, dght-overview).
   ========================================================= */

/* Abstand zwischen Einleitung und erstem Block */
.journal-frequency {
    margin-bottom: 1.75rem;
}

/* Variante "secondary" nur auf der Startseite (Artikelseiten bleiben unveraendert) */
.journal-more .salamandra-button--secondary {
    background: #fff;
    color: var(--salamandra-green);
}

.journal-more .salamandra-button--secondary:hover,
.journal-more .salamandra-button--secondary:focus {
    background: var(--salamandra-green);
    color: #fff;
    text-decoration: none;
}

/* Bloecke */
section.journal-latest,
section.journal-authors,
section.journal-archive,
section.journal-profile {
    margin: 0 0 1.5rem;
    padding: 1.5rem 1.75rem;
    background: #f4f6f7;
    border: 1px solid var(--salamandra-line);
    border-radius: 6px;
}

section.journal-latest {
    background: #fff;
    box-shadow: 0 2px 10px rgb(0 0 0 / 6%);
}

section.journal-latest h2,
section.journal-authors h2,
section.journal-archive h2,
section.journal-profile h2,
section.dght-overview h2 {
    margin: 0 0 0.75rem;
    color: #1f292e;
    font-size: 1.35rem;
    line-height: 1.25;
}

/* Latest Issue innerhalb des Blocks */
section.journal-latest .salamandra-latest-issue {
    margin-top: 0;
}

section.journal-latest .salamandra-latest-issue__title {
    margin: 0 0 1rem;
    color: #1f292e;
    font-size: 1.05rem;
    font-weight: 600;
}

section.journal-latest .salamandra-latest-issue__grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

section.journal-latest .salamandra-latest-issue__cover img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    border: 1px solid #d5dde1;
    box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
}

p.journal-more {
    margin: 1.25rem 0 0;
}

/* Autoren- und Archivblock nebeneinander (Wrapper .journal-cards im Beitrag) */
.journal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    margin: 0 0 1.5rem;
}

.journal-cards section {
    margin: 0;
}

section.journal-authors a,
section.journal-archive a {
    color: var(--salamandra-blue);
    font-weight: 600;
    text-decoration: none;
}

section.journal-authors a:hover,
section.journal-authors a:focus,
section.journal-archive a:hover,
section.journal-archive a:focus {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* DGHT: ruhiger, ohne Karte */
section.dght-overview {
    margin-top: 2rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--salamandra-line);
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    section.journal-latest,
    section.journal-authors,
    section.journal-archive,
    section.journal-profile {
        padding: 1.15rem 1.15rem;
    }

    section.journal-latest .salamandra-latest-issue__grid {
        grid-template-columns: 1fr;
    }
}
/* Startseite: Feinschliff */
section.journal-latest .salamandra-latest-issue__article-title:visited {
    color: var(--salamandra-green);
}

section.journal-latest > :last-child,
section.journal-authors > :last-child,
section.journal-archive > :last-child,
section.journal-profile .profile-block > :last-child {
    margin-bottom: 0;
}
/* Kopfmenü: Menü-Titel ohne Link (For Authors) wie die übrigen Einträge */
.container-header .mod-menu > li > .mod-menu__heading,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > span {
    color: #1f1f1f;
    font: inherit;
    background: none;
    border: 0;
    padding: 0.45rem 0;
    cursor: pointer;
}

.container-header .mod-menu > li > .mod-menu__heading:hover,
.container-header .mod-menu > li > .mod-menu__heading:focus,
.container-header .mod-menu > li > button:hover,
.container-header .mod-menu > li > button:focus {
    color: #315f78;
}
/* Kopfmenü: Menü-Titel mit gleicher Schrift wie die Links */
.container-header .mod-menu > li > .mod-menu__heading,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > span {
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Suchfeld im Kopfbereich */
.container-header .container-search label,
.container-header .container-search .visually-hidden-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container-header .container-search {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0 1rem 0.9rem;
}

.container-header .container-search input[type="search"],
.container-header .container-search input[type="text"] {
    width: min(22rem, 90vw);
}

/* =========================================================
   8. VOLUMES-SEITE: BIS ZU 4 SPALTEN (2026-11-02)
   Die Anzahl der Spalten richtet sich nach der verfügbaren Breite:
   Mindestbreite je Spalte 15rem, höchstens 4 Spalten.
   ========================================================= */
.com-content-category-blog__children.cat-children,
.com-content-category .cat-children {
    --salamandra-vol-gap: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(15rem, calc((100% - 3 * var(--salamandra-vol-gap)) / 4)), 1fr));
    gap: 0.5rem var(--salamandra-vol-gap);
    align-items: start;
}

.com-content-category-blog__children.cat-children > h3,
.com-content-category .cat-children > h3 {
    grid-column: 1 / -1;
}

.com-content-category-blog__children.cat-children .com-content-category-blog__child,
.com-content-category .cat-children .com-content-category__children {
    min-width: 0;
}

/* Heft-Cover unter dem Heft-Titel auf den Volume-Seiten (blog_children.php) */
.com-content-category-blog__child .salamandra-child-cover {
    display: block;
    width: min(100%, 220px);
    margin: 0.5rem 0 1.5rem;
}

.com-content-category-blog__child .salamandra-child-cover img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d5dde1;
    box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
}


/* ===== Heftansicht: Autoren und Seitenzahlen (03.11.2026) ===== */
.salamandra-issue-item__meta {
    margin: 0.15rem 0 0.9rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #3a4a52;
}
.salamandra-issue-item__meta .salamandra-author {
    font-variant-caps: small-caps;
    letter-spacing: 0.025em;
}
.salamandra-issue-item__pages {
    margin-left: 0.6rem;
    white-space: nowrap;
    color: #5a6a72;
}


/* =========================================================
   FARBVARIANTE ERDE: Dunkelbraun, Sand und Orange (10.11.2026, von den Testern gewaehlt)
   Rueckgaengig: user.css.bak_vor_farbe_Erde_2026-11-10 einspielen (enthaelt Variante B).
   ========================================================= */

:root {
    --salamandra-blue: #9a4a10;          /* Links, Zwischenueberschriften */
    --salamandra-green: #3a2a1d;         /* Buttons, Akzentflaechen (jetzt Dunkelbraun) */
    --salamandra-green-deep: #2b1f15;    /* dunkle Flaechen und Ueberschriften */
    --salamandra-accent: #e8792b;        /* Orange */
    --salamandra-line: #e3d6c3;
    --salamandra-tint: #f1e6d3;
}

body.site {
    background: #faf5ec;
}

.container-header {
    background: #fff;
    background-image: none;
    color: #3a2a1d;
    border-bottom: 4px solid #e8792b;
}

.container-header .container-nav {
    background: #3a2a1d;
    padding: 0 1rem;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu__heading,
.container-header .mod-menu > li > .mod-menu__heading,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > span {
    color: #fff;
    padding: 0.85rem 0;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu__heading:hover {
    color: #f6c89f;
}

.container-header .metismenu.mod-menu .metismenu-item.active > a {
    color: #fff !important;
    border-bottom: 4px solid #e8792b;
}

.container-header .navbar-toggler {
    color: #fff;
    border-color: #fff;
}

.salamandra-button--primary:hover,
.salamandra-button--primary:focus {
    background: #1f150d;
    border-color: #1f150d;
}

.membership-link:hover {
    background: #9a4a10;
}

/* Startseite: Bloecke in warmen Tönen */
section.journal-authors,
section.journal-archive,
section.journal-profile {
    background: #f1e6d3;
    border-color: #e3d6c3;
}

section.journal-latest {
    background: #fff;
    border-color: #e3d6c3;
    border-top: 4px solid #e8792b;
}

section.journal-latest h2,
section.journal-authors h2,
section.journal-archive h2,
section.journal-profile h2,
section.dght-overview h2 {
    color: #3a2a1d;
}

/* Artikellinks Startseite: besuchte und unbesuchte Links gleich, Hover orange unterstrichen */
section.journal-latest a.salamandra-latest-issue__article-title,
section.journal-latest a.salamandra-latest-issue__article-title:visited,
.salamandra-latest-issue a.salamandra-latest-issue__article-title,
.salamandra-latest-issue a.salamandra-latest-issue__article-title:visited {
    color: #9a4a10 !important;
}
section.journal-latest a.salamandra-latest-issue__article-title:hover,
.salamandra-latest-issue a.salamandra-latest-issue__article-title:hover {
    color: #2b1f15 !important;
    text-decoration-color: #e8792b;
}

/* Erde: Menueleiste ueber die volle Breite, Standard-Linkfarbe des Templates braun */
.container-header {
    overflow-x: clip;
}
.container-header .container-nav {
    position: relative;
    isolation: isolate;
}
.container-header .container-nav::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100vmax;
    right: -100vmax;
    background: #3a2a1d;
    z-index: -1;
}

:root {
    --link-color: #9a4a10;
    --link-hover-color: #2b1f15;
}

/* Erde: Einzelartikel - Kaesten "Cite this article", "HTML full text", Bibliografie in warmen Toenen */
.salamandra-article__citation,
.salamandra-article__notice {
    background: #f1e6d3;
    border-left: 4px solid #e8792b;
}

.salamandra-article__citation h2,
.salamandra-article__notice h2 {
    color: #3a2a1d;
    border-bottom-color: #dccbb0;
}

.salamandra-article__bibliography {
    background: #f1e6d3;
    border-left-color: #e8792b;
}

/* Breadcrumbs: Trennstrich hinter den vorigen Eintrag statt vor den naechsten,
   damit bei Zeilenumbruch kein "/" am Zeilenanfang steht */
ol.breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0 !important;
}

ol.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: none !important;
    display: none !important;
}

ol.breadcrumb .breadcrumb-item:not(:last-child)::after {
    content: "/";
    padding: 0 0.5rem;
    color: #8a7560;
}

/* Breadcrumb-Leiste in warmem Ton */
ol.breadcrumb {
    background: #f1e6d3;
}

/* Erde: aktiver Punkt im aufklappenden Untermenue lesbar (dunkel auf weiss) */
.container-header .metismenu.mod-menu ul .metismenu-item.active > a,
.container-header .metismenu.mod-menu ul .metismenu-item.active > a:hover,
.container-header .metismenu.mod-menu ul .metismenu-item.active > a:focus {
    color: #9a4a10 !important;
    font-weight: 700;
    border-bottom: 0 !important;
}

/* Suchfeld mittig unter dem Menü, im dunklen Balken (17.11.2026) */
@media (min-width: 992px) {
    .container-header .container-nav { flex-wrap: wrap; }
    .container-header .container-nav > nav { flex: 0 0 100%; justify-content: center; }
    .container-header .container-search { flex: 0 0 100%; justify-content: center; margin: 0; padding: 0.2rem 1rem 0.9rem; }
}