/* KCD Portal 1.6.8 – definitive corrections */

/* Dark boxes: stronger than 1.6.6. The black layer is 92–95%, not 25%. */
.welcome-panel,
.dashboard-grid > .panel,
.news-card,
.main-content > .panel,
.right-sidebar .widget.panel,
.content-panel,
.news-panel,
.news-box,
.article-content,
.archive-header,
.compact-card,
.gallery-tile,
.download-box {
    background-color: #080807 !important;
    background-image:
        linear-gradient(rgba(0, 0, 0, .92), rgba(0, 0, 0, .95)),
        url("../images/dark-stone-texture.png") !important;
    background-repeat: repeat, repeat !important;
    background-position: center top, center top !important;
    background-size: auto, 512px 512px !important;
}

/* Tahoma for all regular interface/body text. */
body,
p,
li,
label,
input,
select,
textarea,
button,
.panel-body,
.widget,
.right-sidebar,
.news-content,
.news-excerpt,
.news-meta,
.side-nav-list a {
    font-family: Tahoma, Verdana, Arial, sans-serif !important;
}

/* Uncial Antiqua for every requested heading/navigation surface. */
h1, h2, h3, h4, h5, h6,
.panel-title,
.widget-title,
.sidebar-title,
.section-heading,
.welcome-panel h1,
.news-card .news-content h3,
.news-card .news-content h3 a,
.right-sidebar .widget .panel-title,
.top-nav-list a {
    font-family: "Uncial Antiqua", Georgia, serif !important;
    font-weight: 400 !important;
}

/* Right widget headings: override old Georgia shorthand rule. */
.right-sidebar .widget .panel-title {
    font-family: "Uncial Antiqua", Georgia, serif !important;
    font-weight: 400 !important;
}

/* Top horizontal menu. */
.top-nav-list a {
    font-family: "Uncial Antiqua", Georgia, serif !important;
}

/* Left navigation: every item spans the full nav width and is more compact. */
.left-sidebar {
    padding-right: 0 !important;
}

.left-sidebar .side-nav,
.left-sidebar .side-nav-list,
.left-sidebar .side-nav-list > li {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.left-sidebar .side-nav-list > li > a {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 6px !important;
    width: 100% !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 2px 6px 2px 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
}

.left-sidebar .side-nav-list .kcd-nav-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 30px !important;
    min-width: 38px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.left-sidebar .side-nav-list .kcd-nav-icon img {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
}

.left-sidebar .side-nav-list .kcd-nav-label {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}

/* News Headlines: one anchor owns the complete row. */
.headline-list {
    display: block !important;
    width: 100% !important;
}

.headline-list > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #38342d !important;
}

.headline-list .headline-row {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    box-sizing: border-box !important;
    color: inherit !important;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
}

.headline-list .headline-thumb {
    display: block !important;
    width: 54px !important;
    height: 44px !important;
    overflow: hidden !important;
}

.headline-list .headline-thumb img,
.headline-list .headline-thumb-placeholder {
    display: block !important;
    width: 54px !important;
    height: 44px !important;
    object-fit: cover !important;
}

.headline-list .headline-title {
    min-width: 0 !important;
    color: inherit !important;
}

.headline-list .headline-meta {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.headline-list .headline-row:hover,
.headline-list .headline-row:focus,
.headline-list .headline-row.is-selected {
    background-color: rgba(181, 138, 58, .22) !important;
    color: var(--gold2) !important;
    text-decoration: none !important;
}

/* The selected headline only jumps to the card; only Weiterlesen opens the post. */
.news-card {
    scroll-margin-top: 20px !important;
}

.news-card.is-targeted {
    outline: 1px solid rgba(212, 176, 100, .78) !important;
    box-shadow:
        0 0 0 3px rgba(181, 138, 58, .12),
        inset 0 0 30px rgba(181, 138, 58, .06) !important;
}

@media (max-width: 620px) {
    .headline-list .headline-row {
        grid-template-columns: 48px minmax(0, 1fr) !important;
    }

    .headline-list .headline-meta {
        grid-column: 2 !important;
    }
}


/* =========================================================
   KCD Portal 1.6.9
   ========================================================= */

/* News Headlines: gleicher Verlauf wie linke Navigation */
.headline-list .headline-row {
    background:
        linear-gradient(
            to right,
            rgba(181, 138, 58, 0) 0%,
            rgba(181, 138, 58, 0) 100%
        ) !important;
}

.headline-list .headline-row:hover,
.headline-list .headline-row:focus {
    background:
        linear-gradient(
            to right,
            rgba(181, 138, 58, .34) 0%,
            rgba(181, 138, 58, .18) 48%,
            rgba(181, 138, 58, 0) 100%
        ) !important;
    color: var(--gold2) !important;
    text-decoration: none !important;
}

/* Nach Klick kein dauerhaft aktiver Headline-Zustand */
.headline-list .headline-row.is-selected {
    background: transparent !important;
    color: inherit !important;
}

/* Newsboxen definitiv abdunkeln */
.news-card,
.news-card.panel,
.news-stream .news-card,
.news-area .news-card,
.news-box,
.news-panel,
article.news-card {
    background-color: #050504 !important;
    background-image:
        linear-gradient(rgba(0, 0, 0, .94), rgba(0, 0, 0, .96)),
        url("../images/dark-stone-texture.png") !important;
    background-repeat: repeat, repeat !important;
    background-position: center top, center top !important;
    background-size: auto, 512px 512px !important;
}

/* Linke Navigation wirklich von ganz links bis ganz rechts */
.left-sidebar,
.left-sidebar .panel-body,
.left-sidebar .side-nav,
.left-sidebar .side-nav-list {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.left-sidebar .side-nav-list > li,
.left-sidebar .side-nav-list > li > a {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.left-sidebar .side-nav-list > li > a {
    grid-template-columns: 36px minmax(0, 1fr) !important;
}

/* Obere horizontale Leiste schmaler */
.top-navigation,
.site-header .top-navigation,
.top-nav-list,
.top-nav-list > li,
.top-nav-list > li > a {
    min-height: 0 !important;
}

.top-navigation,
.site-header .top-navigation {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.top-nav-list > li > a {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    line-height: 1.1 !important;
}

/* Headerbild höher */
.site-header,
.header-wrap,
.header-image,
.header-visual,
.hero-header,
.hero-image {
    min-height: 240px !important;
}

.site-header img,
.header-wrap img,
.header-image img,
.header-visual img,
.hero-header img,
.hero-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
}


/* =========================================================
   KCD Portal 1.7.0
   ========================================================= */

/* Linke Navigation: volle Breite ab dem äußersten Sidebar-Rand */
.left-sidebar {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.left-sidebar .sidebar-title,
.left-sidebar .sidebar-ornament {
    margin-left: 12px !important;
    margin-right: 12px !important;
}

.left-sidebar .side-nav,
.left-sidebar .side-nav-list,
.left-sidebar .side-nav-list > li {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.left-sidebar .side-nav-list > li > a {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 2px 6px 2px 0 !important;
    box-sizing: border-box !important;
}

/* News-Metazeile: rechtsbündig, fein golden unterstrichen */
.news-card .news-content {
    width: 100% !important;
}

.news-card .news-meta-top {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 0 7px !important;
    border-bottom: 1px solid rgba(205, 165, 81, .72) !important;
    box-sizing: border-box !important;
    text-align: right !important;
    color: #cfc4ad !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.news-card .news-content h3 {
    margin-top: 0 !important;
}

/* Nützliche Links kompakter */
.right-sidebar .widget_kcd_links_widget li,
.right-sidebar .widget_kcd_links_widget a,
.right-sidebar .kcd-links-widget li,
.right-sidebar .kcd-links-widget a {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

/* Allgemeiner Fließtext kleiner, Überschriften unberührt */
.entry-content,
.entry-summary,
.news-excerpt,
.page-content,
.post-content,
.main-content p,
.main-content li,
.panel-body p,
.panel-body li,
.right-sidebar .widget p,
.right-sidebar .widget li {
    font-size: 13px !important;
    line-height: 1.52 !important;
}


/* =========================================================
   KCD Portal 1.7.1
   ========================================================= */

/* Linke Navigation wie das Widget "Nützliche Links" */
.left-sidebar .side-nav-list {
    padding: 0 12px !important;
    box-sizing: border-box !important;
}

.left-sidebar .side-nav-list > li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(201, 163, 82, .22) !important;
}

.left-sidebar .side-nav-list > li:last-child {
    border-bottom: 0 !important;
}

.left-sidebar .side-nav-list > li > a {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 4px 2px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
}

.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus {
    background:
        linear-gradient(
            to right,
            rgba(181, 138, 58, .28) 0%,
            rgba(181, 138, 58, .12) 55%,
            rgba(181, 138, 58, 0) 100%
        ) !important;
    color: var(--gold2) !important;
}

.left-sidebar .side-nav-list .kcd-nav-icon {
    width: 30px !important;
    height: 26px !important;
    min-width: 30px !important;
    min-height: 26px !important;
}

.left-sidebar .side-nav-list .kcd-nav-icon img {
    width: 24px !important;
    height: 24px !important;
}

.left-sidebar .side-nav-list .kcd-nav-label {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* Ornament unter "Seitennavigation" wieder zentriert und breiter */
.left-sidebar .sidebar-ornament {
    display: block !important;
    width: 82% !important;
    max-width: none !important;
    margin: 8px auto 12px !important;
    text-align: center !important;
}

/* Ornament in der Willkommen-Box deutlich breiter */
.welcome-panel .panel-ornament,
.welcome-panel .welcome-ornament,
.welcome-panel .ornament,
.welcome-panel hr {
    display: block !important;
    width: 88% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* News-Metazeile und Goldlinie über die volle Newsbox-Breite */
.news-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
}

.news-card .news-content {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
}

.news-card .news-meta-top {
    display: block !important;
    width: calc(100% + 36px) !important;
    max-width: none !important;
    margin-left: -18px !important;
    margin-right: -18px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
    text-align: right !important;
    border-bottom: 1px solid rgba(205, 165, 81, .72) !important;
}


/* =========================================================
   KCD Portal 1.7.2
   ========================================================= */

/* Linke Navigation exakt im Stil "Nützliche Links": keine Icons, nur Marker */
.left-sidebar .side-nav-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.left-sidebar .side-nav-list > li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(201, 163, 82, .18) !important;
}

.left-sidebar .side-nav-list > li:last-child {
    border-bottom: 0 !important;
}

.left-sidebar .side-nav-list > li > a {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7px 10px 7px 22px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    text-decoration: none !important;
}

.left-sidebar .side-nav-list > li > a::before {
    content: "›" !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--gold2) !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.left-sidebar .side-nav-list .kcd-nav-icon {
    display: none !important;
}

.left-sidebar .side-nav-list .kcd-nav-label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current_page_item > a {
    background:
        linear-gradient(
            to right,
            rgba(181, 138, 58, .22) 0%,
            rgba(181, 138, 58, .10) 52%,
            rgba(181, 138, 58, 0) 100%
        ) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Menüpunkte am linken Rand der Navigationsleiste */
.left-sidebar .side-nav {
    margin: 0 !important;
    padding: 0 !important;
}

.left-sidebar .side-nav-list {
    width: 100% !important;
    max-width: none !important;
}

/* Newsbox zurück zu stabilem Bild/Text-Layout */
.news-card {
    display: block !important;
}

.news-card .news-card-media {
    display: grid !important;
    grid-template-columns: minmax(180px, 34%) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.news-card .news-thumb {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    overflow: hidden !important;
}

.news-card .news-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    max-height: 320px !important;
    object-fit: cover !important;
}

.news-card .news-content {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

.news-card .news-content h3 {
    margin-top: 0 !important;
}

.news-card .news-excerpt {
    flex: 1 1 auto !important;
}

/* Footer: Meta rechtsbündig auf Höhe des Weiterlesen-Buttons */
.news-card .news-card-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: 14px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(205, 165, 81, .72) !important;
    box-sizing: border-box !important;
}

.news-card .news-meta-footer {
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: right !important;
    white-space: normal !important;
    color: #cfc4ad !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.news-card .news-card-footer .read-more {
    justify-self: end !important;
    margin: 0 !important;
}

@media (max-width: 760px) {
    .news-card .news-card-media {
        grid-template-columns: 1fr !important;
    }

    .news-card .news-thumb {
        min-height: 180px !important;
    }

    .news-card .news-thumb img {
        min-height: 180px !important;
        max-height: 240px !important;
    }

    .news-card .news-card-footer {
        grid-template-columns: 1fr !important;
    }

    .news-card .news-meta-footer,
    .news-card .news-card-footer .read-more {
        justify-self: end !important;
    }
}


/* =========================================================
   KCD Portal 1.7.3
   ========================================================= */

/* Linke Navigation: echte Marker, weiter links, Hover-Einrückung */
.left-sidebar {
    border-right: 1px solid rgba(205, 165, 81, .65) !important;
}

.left-sidebar .side-nav,
.left-sidebar .side-nav-list {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

.left-sidebar .side-nav-list > li {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(201, 163, 82, .16) !important;
}

.left-sidebar .side-nav-list > li > a {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 7px 8px 7px 16px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-align: left !important;
    text-decoration: none !important;
}

.left-sidebar .side-nav-list > li > a::before {
    content: "•" !important;
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--gold2) !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

.left-sidebar .side-nav-list .kcd-nav-label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(0) !important;
    transition: transform .16s ease !important;
    text-align: left !important;
}

.left-sidebar .side-nav-list > li > a:hover .kcd-nav-label,
.left-sidebar .side-nav-list > li > a:focus .kcd-nav-label,
.left-sidebar .side-nav-list > li.current-menu-item > a .kcd-nav-label,
.left-sidebar .side-nav-list > li.current_page_item > a .kcd-nav-label {
    transform: translateX(5px) !important;
}

.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current_page_item > a {
    background:
        linear-gradient(
            to right,
            rgba(181, 138, 58, .20) 0%,
            rgba(181, 138, 58, .08) 50%,
            rgba(181, 138, 58, 0) 100%
        ) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Newsbox: kleines Bild, Meta oben rechts, Linie volle Breite */
.news-card {
    display: block !important;
}

.news-card .news-card-layout {
    display: grid !important;
    grid-template-columns: 140px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

.news-card .news-thumb {
    display: block !important;
    width: 140px !important;
    height: 140px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    align-self: start !important;
}

.news-card .news-thumb img {
    display: block !important;
    width: 140px !important;
    height: 140px !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
}

.news-card .news-card-main {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.news-card .news-meta-top {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 0 7px !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(205, 165, 81, .72) !important;
    text-align: right !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.news-card .news-card-main h3 {
    margin: 0 0 10px !important;
}

.news-card .news-body-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 18px !important;
    align-items: center !important;
}

.news-card .news-excerpt {
    min-width: 0 !important;
}

.news-card .news-body-row .read-more {
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 760px) {
    .news-card .news-card-layout {
        grid-template-columns: 110px minmax(0, 1fr) !important;
    }

    .news-card .news-thumb,
    .news-card .news-thumb img {
        width: 110px !important;
        height: 110px !important;
    }

    .news-card .news-body-row {
        grid-template-columns: 1fr !important;
    }

    .news-card .news-body-row .read-more {
        justify-self: end !important;
    }
}


/* =========================================================
   KCD Portal 1.7.4
   ========================================================= */

/* Linke Navigation: echte Rauten als Aufzählungszeichen */
.left-sidebar .side-nav-list > li > a::before {
    content: "◆" !important;
    left: 5px !important;
    font-size: 8px !important;
    color: var(--gold2) !important;
}

.left-sidebar .side-nav-list > li > a {
    padding-left: 19px !important;
}

/* Newsbilder etwas breiter, Höhe kontrolliert */
.news-card .news-card-layout {
    grid-template-columns: 175px minmax(0, 1fr) !important;
    gap: 18px !important;
}

.news-card .news-thumb,
.news-card .news-thumb img {
    width: 175px !important;
    height: 140px !important;
}

.news-card .news-thumb img {
    object-fit: cover !important;
}

/* Sichere Innenabstände gegen Überlappung mit Boxrand */
.news-card .news-card-main {
    padding: 14px 16px 14px 0 !important;
    box-sizing: border-box !important;
}

.news-card .news-meta-top {
    padding-right: 2px !important;
    overflow-wrap: anywhere !important;
}

.news-card .news-meta-top a {
    color: var(--gold2) !important;
    text-decoration: none !important;
}

.news-card .news-meta-top a:hover,
.news-card .news-meta-top a:focus {
    text-decoration: underline !important;
}

.news-card .news-body-row {
    padding-right: 2px !important;
    box-sizing: border-box !important;
}

.news-card .news-body-row .read-more {
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* Newsüberschriften wieder Uncial Antiqua und Gold */
.news-card .news-card-main h3,
.news-card .news-card-main h3 a {
    font-family: "Uncial Antiqua", Georgia, serif !important;
    font-weight: 400 !important;
    color: var(--gold2) !important;
    text-decoration: none !important;
}

.news-card .news-card-main h3 a:hover,
.news-card .news-card-main h3 a:focus {
    color: #ead9a6 !important;
}

/* Trenndiamanten in der oberen Navigation kleiner */
.top-nav-list > li::after,
.top-nav-list > li + li::before,
.top-navigation .menu > li::after,
.top-navigation .menu > li + li::before {
    font-size: 7px !important;
    transform: scale(.78) !important;
    transform-origin: center !important;
}

@media (max-width: 760px) {
    .news-card .news-card-layout {
        grid-template-columns: 135px minmax(0, 1fr) !important;
    }

    .news-card .news-thumb,
    .news-card .news-thumb img {
        width: 135px !important;
        height: 115px !important;
    }

    .news-card .news-card-main {
        padding-right: 10px !important;
    }
}


/* =========================================================
   KCD Portal 1.7.5
   ========================================================= */

/* Obere Navigation: kleine, auf die Spitze gestellte, vertikal zentrierte Rauten */
.top-nav-list > li:not(:last-child)::after {
    width: 6px !important;
    height: 6px !important;
    right: -4px !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translateY(-50%) rotate(45deg) !important;
    transform-origin: center center !important;
}

/* Linke Navigation exakt nach dem Muster von "Nützliche Links" */
.left-sidebar .side-nav {
    margin: 0 !important;
    padding: 0 !important;
}

.left-sidebar .side-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.left-sidebar .side-nav-list > li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(212, 176, 100, .16) !important;
}

.left-sidebar .side-nav-list > li:last-child {
    border-bottom: 0 !important;
}

.left-sidebar .side-nav-list > li > a {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 8px 8px 20px !important;
    box-sizing: border-box !important;
    color: var(--text) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    transition:
        color .18s ease,
        background .18s ease,
        padding-left .18s ease !important;
}

.left-sidebar .side-nav-list > li > a::before {
    content: "◆" !important;
    position: absolute !important;
    left: 3px !important;
    top: 50% !important;
    color: #77736b !important;
    font-size: .65rem !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
}

.left-sidebar .side-nav-list .kcd-nav-icon {
    display: none !important;
}

.left-sidebar .side-nav-list .kcd-nav-label {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current_page_item > a {
    padding-left: 24px !important;
    color: var(--gold2) !important;
    background: linear-gradient(90deg, rgba(181,138,58,.11), transparent) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.left-sidebar .side-nav-list > li > a:hover::before,
.left-sidebar .side-nav-list > li > a:focus::before,
.left-sidebar .side-nav-list > li.current-menu-item > a::before,
.left-sidebar .side-nav-list > li.current_page_item > a::before {
    color: var(--gold2) !important;
}

/* News-Vorschautext niemals auf zwei Zeilen begrenzen */
.news-card .news-excerpt,
.news-card .news-excerpt p {
    display: block !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

/* Etwas breitere, aber weiterhin kompakte Newsbilder */
.news-card .news-card-layout {
    grid-template-columns: 190px minmax(0, 1fr) !important;
}

.news-card .news-thumb,
.news-card .news-thumb img {
    width: 190px !important;
    height: 145px !important;
}

@media (max-width: 760px) {
    .news-card .news-card-layout {
        grid-template-columns: 140px minmax(0, 1fr) !important;
    }

    .news-card .news-thumb,
    .news-card .news-thumb img {
        width: 140px !important;
        height: 120px !important;
    }
}


/* =========================================================
   KCD Portal 1.7.6
   ========================================================= */

/* Willkommen-Überschrift normal schreiben */
.welcome-panel h1,
.welcome-panel h2,
.welcome-panel .panel-title,
.welcome-panel .welcome-title {
    text-transform: none !important;
}

/* Zeilenumbrüche im Willkommenstext übernehmen */
.welcome-panel .panel-body,
.welcome-panel .welcome-text,
.welcome-panel .panel-body p {
    white-space: pre-line !important;
}

/* Linke Navigation 1:1 im Stil von "Nützliche Links" */
.left-sidebar .side-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.left-sidebar .side-nav-list > li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 0 0 14px !important;
    border: 0 !important;
}

.left-sidebar .side-nav-list > li::before {
    content: "◆" !important;
    position: absolute !important;
    left: 0 !important;
    top: .72em !important;
    color: var(--gold2) !important;
    font-size: 7px !important;
    line-height: 1 !important;
}

.left-sidebar .side-nav-list > li > a {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    text-decoration: none !important;
    transition: transform .16s ease, color .16s ease !important;
}

.left-sidebar .side-nav-list > li > a::before {
    content: none !important;
}

.left-sidebar .side-nav-list .kcd-nav-label {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current_page_item > a {
    color: var(--gold2) !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: translateX(4px) !important;
}

/* Newsbilder nach unten transparent ausfaden */
.news-card .news-thumb {
    position: relative !important;
    overflow: hidden !important;
    background: #080807 !important;
}

.news-card .news-thumb::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 45% !important;
    pointer-events: none !important;
    background: linear-gradient(
        to bottom,
        rgba(8, 8, 7, 0) 0%,
        rgba(8, 8, 7, .5) 52%,
        rgba(8, 8, 7, 1) 100%
    ) !important;
}


/* =========================================================
   KCD Portal 1.7.7
   ========================================================= */

/* Linke Navigation: echte Rauten, Trennlinien, kleiner Text */
.left-sidebar .side-nav-list > li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(180, 180, 180, .16) !important;
}

.left-sidebar .side-nav-list > li:last-child {
    border-bottom: 0 !important;
}

.left-sidebar .side-nav-list > li::before {
    content: "" !important;
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    width: 6px !important;
    height: 6px !important;
    background: #77736b !important;
    transform: translateY(-50%) rotate(45deg) !important;
    transform-origin: center center !important;
    transition: background-color .16s ease !important;
    z-index: 2 !important;
}

.left-sidebar .side-nav-list > li > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 8px 6px 18px !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: inherit !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition:
        padding-left .16s ease,
        color .16s ease,
        background .16s ease !important;
}

.left-sidebar .side-nav-list .kcd-nav-label {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current_page_item > a {
    padding-left: 23px !important;
    color: var(--gold2) !important;
    background:
        linear-gradient(
            90deg,
            rgba(181, 138, 58, .25) 0%,
            rgba(181, 138, 58, .10) 52%,
            rgba(181, 138, 58, 0) 100%
        ) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.left-sidebar .side-nav-list > li:hover::before,
.left-sidebar .side-nav-list > li:focus-within::before,
.left-sidebar .side-nav-list > li.current-menu-item::before,
.left-sidebar .side-nav-list > li.current_page_item::before {
    background: var(--gold2) !important;
}

/* Newsbild sichtbar nach unten ausfaden */
.news-card .news-thumb {
    position: relative !important;
    overflow: hidden !important;
    background: #080807 !important;
    isolation: isolate !important;
}

.news-card .news-thumb img {
    position: relative !important;
    z-index: 1 !important;
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 58%,
        rgba(0,0,0,.78) 74%,
        rgba(0,0,0,.34) 88%,
        transparent 100%
    ) !important;
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 58%,
        rgba(0,0,0,.78) 74%,
        rgba(0,0,0,.34) 88%,
        transparent 100%
    ) !important;
}

.news-card .news-thumb::after {
    content: "" !important;
    position: absolute !important;
    inset: auto 0 0 0 !important;
    height: 46% !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: linear-gradient(
        to bottom,
        rgba(8,8,7,0) 0%,
        rgba(8,8,7,.30) 45%,
        rgba(8,8,7,.82) 78%,
        rgba(8,8,7,1) 100%
    ) !important;
}

/* News-Vorschautext im Blocksatz */
.news-card .news-excerpt,
.news-card .news-excerpt p {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
}


/* =========================================================
   KCD Portal 1.7.8
   ========================================================= */

/* Linke Navigation: gleiche Schriftgröße wie "Nützliche Links",
   weiter links und dezenter Hover-Versatz */
.left-sidebar .side-nav-list > li::before {
    left: 1px !important;
}

.left-sidebar .side-nav-list > li > a {
    padding-left: 14px !important;
    font-size: 12px !important;
}

.left-sidebar .side-nav-list .kcd-nav-label {
    font-size: 12px !important;
}

.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current_page_item > a {
    padding-left: 16px !important;
}

/* Newsbild-Fade robust per Overlay direkt auf dem Bildcontainer */
.news-card .news-thumb {
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
}

.news-card .news-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.news-card .news-thumb::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 58% !important;
    z-index: 5 !important;
    pointer-events: none !important;
    background:
        linear-gradient(
            to bottom,
            rgba(8, 8, 7, 0) 0%,
            rgba(8, 8, 7, .10) 24%,
            rgba(8, 8, 7, .42) 55%,
            rgba(8, 8, 7, .82) 82%,
            rgba(8, 8, 7, 1) 100%
        ) !important;
}

/* Headerbild sicher sichtbar */
.site-header-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* =========================================================
   KCD Portal 1.7.9
   ========================================================= */

/* Linke Navigation: Hover nur noch minimal einrücken */
.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current_page_item > a {
    padding-left: 15px !important;
}

/* WordPress-Custom-Header zuverlässig anzeigen */
.site-header-image-wrap {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    line-height: 0 !important;
}

.site-header-image-wrap .site-header-image {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: cover !important;
}

/* Kategorie vor dem Newstitel */
.news-card .news-card-main h3 {
    display: block !important;
}

.news-card .news-category,
.news-card .news-category a {
    color: var(--gold2) !important;
    font-family: "Uncial Antiqua", Georgia, serif !important;
    font-size: .82em !important;
    text-decoration: none !important;
}

.news-card .news-category {
    margin-right: .28em !important;
}

.news-card .news-category a:hover,
.news-card .news-category a:focus {
    color: #ead9a6 !important;
    text-decoration: underline !important;
}


/* =========================================================
   KCD Portal 1.8.0
   ========================================================= */

/* Hover-Verlauf über die gesamte Breite */
.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li > a:focus,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current_page_item > a {
    width: 100% !important;
    background:
        linear-gradient(
            90deg,
            rgba(181, 138, 58, .28) 0%,
            rgba(181, 138, 58, .16) 55%,
            rgba(181, 138, 58, .06) 82%,
            rgba(181, 138, 58, 0) 100%
        ) !important;
}

/* Kategorie genauso groß wie der Newstitel */
.news-card .news-category,
.news-card .news-category a {
    font-size: 1em !important;
}

/* WordPress-Dashicons in der Downloadbox */
.latest-downloads .dashicons,
.download-list .dashicons,
.widget-downloads .dashicons {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    line-height: 18px !important;
    vertical-align: middle !important;
    color: var(--gold2) !important;
}

/* Headerbild sichtbar und oberhalb anderer Ebenen */
.site-header-image-wrap {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    min-height: 1px !important;
    overflow: hidden !important;
}

.site-header-image-wrap .site-header-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* HTML und Zeilenumbrüche in der Willkommen-Box */
.welcome-panel .welcome-text,
.welcome-panel .panel-body {
    white-space: normal !important;
}

.welcome-panel .welcome-text p,
.welcome-panel .panel-body p {
    margin: 0 0 1em !important;
}

.welcome-panel .welcome-text br,
.welcome-panel .panel-body br {
    display: initial !important;
}
