/* KCD Portal 1.5.8 – finale, konfliktfreie Korrekturen */

/* Navigation: echte HTML-Icons, keine Pseudoelemente */
.left-sidebar .side-nav-list > li > a::before,
.left-sidebar .side-nav-list > li > a::after { content: none !important; display: none !important; }
.left-sidebar .side-nav-list,
.left-sidebar .side-nav-list > li { display:block !important; width:100% !important; margin:0 !important; padding:0 !important; }
.left-sidebar .side-nav-list > li > a {
  display:flex !important; align-items:center !important; justify-content:flex-start !important;
  gap:7px !important; width:100% !important; min-height:36px !important;
  margin:0 !important; padding:7px 5px 7px 0 !important; box-sizing:border-box !important;
  transform:none !important; text-align:left !important;
}
.left-sidebar .side-nav-list > li > a:hover,
.left-sidebar .side-nav-list > li.current-menu-item > a,
.left-sidebar .side-nav-list > li.current-menu-ancestor > a { transform:none !important; }
.left-sidebar .kcd-nav-icon {
  position:static !important; display:inline-flex !important; align-items:center !important; justify-content:flex-start !important;
  flex:0 0 24px !important; width:24px !important; min-width:24px !important; max-width:24px !important;
  height:24px !important; margin:0 !important; padding:0 !important; line-height:1 !important;
  color:#8e897f !important; font-size:1.1rem !important; transform:none !important;
}
.left-sidebar .kcd-nav-label { display:block !important; flex:1 1 auto !important; min-width:0 !important; margin:0 !important; padding:0 !important; }
.left-sidebar a:hover .kcd-nav-icon,
.left-sidebar .current-menu-item > a .kcd-nav-icon,
.left-sidebar .current-menu-ancestor > a .kcd-nav-icon { color:var(--gold2) !important; }

/* Aktuelle News: exakt derselbe Link und Hover wie in News Headlines */
.news-area .all-news-row { display:block !important; margin:0 !important; padding:0 !important; text-align:left !important; }
.news-area .all-news-row .panel-more-link {
  display:block !important; margin-top:12px !important; padding-top:10px !important;
  border:0 !important; border-top:1px solid #40392e !important; background:none !important;
  box-shadow:none !important; color:var(--gold2) !important; font-size:.83rem !important;
  font-weight:700 !important; letter-spacing:.055em !important; text-align:left !important; text-transform:uppercase !important;
}
.news-area .all-news-row .panel-more-link:hover,
.news-area .all-news-row .panel-more-link:focus { color:#f0cf83 !important; background:none !important; text-decoration:none !important; }

/* Alle Bilder: exakt Weiterlesen-Button, nur mittig platziert */
.right-sidebar .kcd-potm-all-images { display:flex !important; justify-content:center !important; margin:12px 0 0 !important; padding:0 !important; }
.right-sidebar .kcd-potm-all-images .read-more.button {
  display:inline-flex !important; min-width:128px !important; align-items:center !important; justify-content:space-between !important;
  gap:14px !important; margin:0 !important; padding:7px 12px !important;
  border:1px solid #a67a32 !important; background:transparent !important; color:var(--gold2) !important;
  font-size:.78rem !important; font-weight:700 !important; letter-spacing:.08em !important; text-transform:uppercase !important;
}
.right-sidebar .kcd-potm-all-images .read-more.button::after { content:none !important; }
.right-sidebar .kcd-potm-all-images .read-more.button:hover,
.right-sidebar .kcd-potm-all-images .read-more.button:focus { background:var(--gold2) !important; border-color:var(--gold2) !important; color:#16130e !important; text-decoration:none !important; }
.right-sidebar .kcd-potm-all-images .read-more.button:hover *,
.right-sidebar .kcd-potm-all-images .read-more.button:focus * { color:#16130e !important; }

/* Vote: dieselben Maße/Farben/Hoverzustände wie Weiterlesen */
.right-sidebar .kcd-poll-widget input[type="submit"],
.right-sidebar .kcd-poll-widget input[type="button"],
.right-sidebar .kcd-poll-widget button,
.right-sidebar .kcd-poll-widget [class*="vote-button"],
.right-sidebar .kcd-poll-widget [class*="vote_button"] {
  display:inline-flex !important; width:auto !important; min-width:128px !important;
  align-items:center !important; justify-content:center !important; gap:14px !important;
  margin:8px 0 0 !important; padding:7px 12px !important;
  border:1px solid #a67a32 !important; border-radius:0 !important; background:transparent !important;
  color:var(--gold2) !important; box-shadow:none !important; font-family:inherit !important;
  font-size:.78rem !important; font-weight:700 !important; letter-spacing:.08em !important; line-height:1.2 !important;
  text-transform:uppercase !important; cursor:pointer !important;
}
.right-sidebar .kcd-poll-widget input[type="submit"]:hover,
.right-sidebar .kcd-poll-widget input[type="submit"]:focus,
.right-sidebar .kcd-poll-widget input[type="button"]:hover,
.right-sidebar .kcd-poll-widget input[type="button"]:focus,
.right-sidebar .kcd-poll-widget button:hover,
.right-sidebar .kcd-poll-widget button:focus,
.right-sidebar .kcd-poll-widget [class*="vote-button"]:hover,
.right-sidebar .kcd-poll-widget [class*="vote-button"]:focus,
.right-sidebar .kcd-poll-widget [class*="vote_button"]:hover,
.right-sidebar .kcd-poll-widget [class*="vote_button"]:focus { background:var(--gold2) !important; border-color:var(--gold2) !important; color:#16130e !important; }

/* Umfrage direkt unter der Überschrift */
.right-sidebar .widget_kcd_poll_widget > .panel-title { margin-bottom:0 !important; }
.right-sidebar .widget_kcd_poll_widget > .panel-body { padding-top:0 !important; }
.right-sidebar .widget_kcd_poll_widget .kcd-poll-widget,
.right-sidebar .widget_kcd_poll_widget .kcd-poll-widget > :first-child,
.right-sidebar .widget_kcd_poll_widget .kcd-poll-widget form,
.right-sidebar .widget_kcd_poll_widget [class*="yop-poll"],
.right-sidebar .widget_kcd_poll_widget [id*="yop-poll"] { margin-top:0 !important; padding-top:0 !important; }


/* KCD Portal 1.6.0 – große echte Menüicons */
.left-sidebar .side-nav-list > li > a {
  display:grid !important;
  grid-template-columns:46px minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:8px !important;
  min-height:50px !important;
  padding:3px 4px 3px 0 !important;
}
.left-sidebar .side-nav-list .kcd-nav-icon {
  position:static !important;
  display:flex !important;
  grid-column:1 !important;
  align-items:center !important;
  justify-content:center !important;
  width:46px !important;
  min-width:46px !important;
  max-width:46px !important;
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  margin:0 !important;
  padding:0 !important;
  font-size:34px !important;
  line-height:46px !important;
  transform:none !important;
  overflow:visible !important;
}
.left-sidebar .side-nav-list .kcd-nav-icon img {
  display:block !important;
  width:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  height:42px !important;
  min-height:42px !important;
  max-height:42px !important;
  object-fit:contain !important;
}
.left-sidebar .side-nav-list .kcd-nav-label {
  display:block !important;
  grid-column:2 !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.2 !important;
  text-align:left !important;
}

/* KCD Portal 1.6.1 global icons */
.download-document-icon-image{display:block;width:26px;height:26px;object-fit:contain}.download-action-icon-image{display:block;width:24px;height:24px;object-fit:contain}.download-action-icon:has(.download-action-icon-image)::before,.download-action-icon:has(.download-action-icon-image)::after{content:none!important}.kcd-site-icon{display:inline-block;max-width:100%;height:auto;vertical-align:middle}


/* =========================================================
   KCD Portal 1.6.3 – echte Dark-Stone-Textur erzwingen
   ========================================================= */
body {
  background-color:#11110f !important;
  background-image:
    linear-gradient(rgba(10,10,9,.72),rgba(10,10,9,.88)),
    url("../images/dark-stone-texture.png") !important;
  background-repeat:repeat,repeat !important;
  background-position:center top,center top !important;
  background-attachment:fixed,fixed !important;
}

.site-shell,
.top-nav,
.portal-layout,
.left-sidebar,
.right-sidebar,
.site-footer {
  background-color:#171612 !important;
  background-image:
    linear-gradient(rgba(18,17,14,.80),rgba(18,17,14,.90)),
    url("../images/dark-stone-texture.png") !important;
  background-repeat:repeat,repeat !important;
  background-position:center top,center top !important;
}

/* Inhaltsboxen behalten ihre Pergamenttextur */
.panel {
  background-color:#1c1b17 !important;
  background-image:
    linear-gradient(145deg,rgba(34,32,27,.88),rgba(19,18,15,.94)),
    url("../images/parchment-texture.png") !important;
  background-repeat:repeat,repeat !important;
}


/* =========================================================
   KCD Portal 1.6.5 – globale Textur, Tahoma, Blocksatz
   ========================================================= */
html,
body {
    min-height: 100%;
    background-color: #181713 !important;
    background-image: url("../images/dark-stone-texture.png") !important;
    background-repeat: repeat !important;
    background-position: top left !important;
    background-size: 512px 512px !important;
    background-attachment: fixed !important;
}

.site,
.site-wrapper,
.portal-shell,
.page-shell,
.layout-wrapper,
.main-wrapper,
.site-content,
.content-wrapper,
.portal-layout,
.main-layout,
.header-wrap,
.site-header,
.top-navigation,
.footer-wrap,
.site-footer,
.left-sidebar,
.right-sidebar {
    background-color: transparent !important;
    background-image: none !important;
}

.panel,
.content-panel,
.news-panel,
.welcome-box,
.downloads-box,
.news-headlines-box,
.news-box,
.widget.panel,
.main-content .panel {
    background-color: #d7c9aa !important;
    background-image: url("../images/parchment-texture.png") !important;
    background-repeat: repeat !important;
    background-position: top left !important;
}

html,
body,
button,
input,
select,
textarea,
.site,
.site-wrapper,
.portal-shell,
.panel,
.widget,
.menu,
.navigation,
.entry-content,
.entry-summary,
h1, h2, h3, h4, h5, h6,
.panel-title,
.widget-title,
.site-title,
.entry-title {
    font-family: Tahoma, Verdana, Arial, sans-serif !important;
}

.entry-content,
.entry-summary,
.page-content,
.post-content,
.welcome-content,
.welcome-box .panel-body,
.news-content,
.panel-body p {
    text-align: justify;
    text-justify: inter-word;
}

.welcome-box .panel-body,
.welcome-content {
    white-space: normal !important;
}

.welcome-box .panel-body p,
.welcome-content p {
    margin: 0 0 0.9em !important;
}

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


/* =========================================================
   KCD Portal 1.6.6 – dunkle Steinboxen und Uncial Antiqua
   ========================================================= */

/* Alle bisherigen Pergamentbereiche verwenden nun die Steintextur,
   zusätzlich mit einer dunklen halbtransparenten Ebene darüber. */
.panel,
.content-panel,
.news-panel,
.welcome-box,
.welcome-panel,
.downloads-box,
.news-headlines-box,
.news-box,
.widget.panel,
.main-content .panel,
.news-card,
.article-content,
.archive-header,
.compact-card,
.gallery-tile,
.download-box {
    background-color: #11110f !important;
    background-image:
        linear-gradient(rgba(7, 7, 6, .72), rgba(7, 7, 6, .84)),
        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;
}

/* Etwas stärkere Abdunklung für zentrale Inhaltsboxen */
.welcome-panel,
.dashboard-grid > .panel,
.news-card,
.main-content > .panel {
    background-image:
        linear-gradient(rgba(5, 5, 5, .78), rgba(8, 8, 7, .88)),
        url("../images/dark-stone-texture.png") !important;
}

/* Fließtext bleibt Tahoma */
body,
p,
li,
a,
button,
input,
select,
textarea,
.entry-content,
.entry-summary,
.panel-body,
.widget,
.navigation,
.menu {
    font-family: Tahoma, Verdana, Arial, sans-serif !important;
}

/* Überschriften im mittelalterlichen Google Font */
h1, h2, h3, h4, h5, h6,
.panel-title,
.widget-title,
.site-title,
.entry-title,
.sidebar-title,
.section-heading,
.welcome-panel h1,
.news-content h3,
.compact-card h2,
.compact-card h3,
.article-content h1,
.archive-header h1 {
    font-family: "Uncial Antiqua", Georgia, serif !important;
    font-weight: 400 !important;
    letter-spacing: .02em;
}


/* =========================================================
   KCD Portal 1.6.7
   ========================================================= */

/* Boxen nochmals ca. 25 % dunkler */
.panel,
.content-panel,
.news-panel,
.welcome-box,
.downloads-box,
.news-headlines-box,
.news-box,
.widget.panel,
.main-content .panel,
.right-sidebar .widget,
.left-sidebar .widget {
    position: relative;
    background-image:
        linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
        url("../images/dark-stone-texture.png") !important;
    background-repeat: repeat !important;
    background-position: top left !important;
}

/* Tahoma für normalen Text, auch in Widgets */
.right-sidebar,
.right-sidebar .widget,
.right-sidebar .widget p,
.right-sidebar .widget li,
.right-sidebar .widget label,
.right-sidebar .widget input,
.right-sidebar .widget button,
.news-box,
.news-box p,
.news-card,
.news-card p {
    font-family: Tahoma, Verdana, Arial, sans-serif !important;
}

/* Uncial Antiqua für relevante Überschriften */
.right-sidebar .widget-title,
.right-sidebar .panel-title,
.news-box .entry-title,
.news-card .entry-title,
.news-card h2,
.news-card h3,
.news-headlines-box .panel-title,
.top-navigation a,
.top-navigation .menu a,
.site-header .top-navigation a,
.horizontal-navigation a {
    font-family: "Uncial Antiqua", Georgia, serif !important;
}

/* Linke Navigation kompakter und über volle Breite */
.left-sidebar .side-nav-list,
.left-sidebar .side-nav-list > li {
    width: 100% !important;
}

.left-sidebar .side-nav-list > li > a {
    width: 100% !important;
    min-height: 38px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    box-sizing: border-box !important;
}

/* News Headlines: ganze Zeile klickbar, voller Hover/Selected-State */
.news-headlines-box li,
.news-headlines li {
    margin: 0 !important;
    padding: 0 !important;
}

.news-headlines-box a[href^="#news-"],
.news-headlines a[href^="#news-"],
.news-headline-row {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
}

.news-headlines-box a[href^="#news-"]:hover,
.news-headlines a[href^="#news-"]:hover,
.news-headline-row:hover,
.news-headlines-box a.is-selected,
.news-headlines a.is-selected,
.news-headline-row.is-selected {
    background: rgba(196, 155, 77, .22) !important;
    color: var(--gold2) !important;
    text-decoration: none !important;
}

/* Zielbeitrag sichtbar markieren */
.news-card {
    scroll-margin-top: 24px;
}

.news-card.is-targeted {
    outline: 1px solid rgba(196, 155, 77, .6);
    box-shadow: 0 0 0 3px rgba(196, 155, 77, .08);
}
