/* Orchester Klaus Ammann – statischer Nachbau des Minamaze-Layouts */
:root {
  --red: #F33F3F;
  --text: #888;
  --heading: #202020;
  --bar: #1C1C1C;
}

/* ---------- Reset & Grundtypografie ---------- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, strong, b, i, u,
ol, ul, li, figure, figcaption, table, tbody, tr, td, th, form, label {
  margin: 0; padding: 0; border: 0; vertical-align: baseline;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: #000;
  color: var(--text);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  word-wrap: break-word;
  min-width: 320px;
}
#body-core { max-width: 1170px; margin: 0 auto; background: #fff; }
a { color: var(--red); text-decoration: none; transition: color .3s ease; }
a:hover { color: inherit; }
img { max-width: 100%; height: auto; border: 0; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
h1, h2, h3, h4, h5, h6 {
  color: var(--heading); clear: both; margin: 0 0 .8em; line-height: 1.5; font-weight: 400;
}
h1 { font-size: 28px; } h2 { font-size: 24px; } h3 { font-size: 20px; }
h4 { font-size: 16px; } h5 { font-size: 14px; } h6 { font-size: 12px; }
p { margin-bottom: 20px; }
ul, ol { margin: 0 0 20px 20px; }
hr { background: #E6E6E6; border: 0; height: 1px; margin: 6px 0 18px; }
blockquote {
  display: block; font-size: larger; font-style: italic; margin: 0 1.5em;
  padding: 10px 0 10px 20px; border-left: 2px solid var(--red);
}
table {
  text-align: center; margin: 0 0 25px; width: 100%;
  border-left: 1px solid #ddd; border-right: 1px solid #ddd; border-collapse: collapse;
}
th, td { padding: 4px 2%; border: 1px solid #ddd; border-left: none; }
td { border-top: none; }
th { font-size: .9em; font-weight: bold; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 100000; top: 5px; left: 5px;
  background: #fff; color: #000; padding: 10px 15px;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Kopfbereich ---------- */
.custom-header img { display: block; margin: 0 auto; }

#pre-header { background: var(--bar); }
#pre-header-core { max-width: 1140px; margin: 0 auto; }
#pre-header ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; }
#pre-header li a { display: block; color: #CCC; font-size: 12px; padding: 9px 15px 7px; }
#pre-header li a:hover, #pre-header li.current-menu-item > a { color: #fff; }

#header { background: #fff; border-bottom: 1px solid #E0E0E0; position: relative; z-index: 50; }
.home #header { border-bottom: none; }
#header-core { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
#logo { margin: 10px 0 0; flex: 0 1 auto; max-width: 100%; }
#header-links { margin-left: auto; max-width: 100%; }
#logo a { display: inline-block; }
#logo .site-title { display: block; color: var(--heading); font-size: 22px; font-weight: bold; line-height: 1.5; margin-top: 5px; }
#logo .site-description { display: block; color: #777; font-size: 13px; line-height: 13px; }

#header-links ul { list-style: none; margin: 0; }
#header-links .menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
#header-links .menu > li { position: relative; }
#header-links .menu > li > a { display: block; color: #777; padding: 25px 20px; }
#header-links .menu > li:hover > a,
#header-links .menu > li.current-menu-item > a,
#header-links .menu > li.current-menu-ancestor > a,
#header-links .menu > li > a:focus { color: var(--red); }
#header-links .menu > li.menu-parent > a::after {
  content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 0 3px 8px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
}
#header-links .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 9999;
  border: 1px solid #303030; background: var(--bar); min-width: 100%;
}
#header-links li:hover > .sub-menu,
#header-links li:focus-within > .sub-menu { display: block; }
#header-links .sub-menu li { padding: 2px 10px; }
#header-links .sub-menu a {
  display: block; color: #fff; font-size: 12px; line-height: 32px; white-space: nowrap;
  padding: 0 20px 0 10px; border-bottom: 1px solid #303030; transition: all .3s ease;
}
#header-links .sub-menu li:last-child > a { border-bottom: 0; }
#header-links .sub-menu a:hover { padding-left: 20px; padding-right: 10px; color: #fff; }

#header-responsive { display: none; }

/* ---------- Slider ---------- */
#slider .rslides-container { padding: 0 0 20px; }
#slider .rslides-inner { position: relative; width: 100%; overflow: hidden; }
#slider .rslides {
  position: relative; list-style: none; margin: 0; overflow: hidden;
  width: 100%; aspect-ratio: 1170 / 359; max-height: 359px;
}
#slider .rslides li {
  position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity .5s ease-in-out;
}
#slider .rslides li.is-on { opacity: 1; z-index: 2; }
#slider .slide-img { width: 100%; height: 100%; background: no-repeat center / cover; }
#slider .rslides_nav {
  position: absolute; top: 50%; z-index: 5; width: 60px; height: 60px; margin-top: -30px;
  border: 0; padding: 0; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .5);
  transition: all .3s ease; font-size: 0;
}
#slider .rslides_nav::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  border-left: 3px solid currentColor; border-bottom: 3px solid currentColor;
}
#slider .rslides_nav.prev { left: -60px; }
#slider .rslides_nav.prev::before { transform: translateX(3px) rotate(45deg); }
#slider .rslides_nav.next { right: -60px; }
#slider .rslides_nav.next::before { transform: translateX(-3px) rotate(-135deg); }
#slider .rslides-inner:hover .rslides_nav.prev, #slider .rslides_nav.prev:focus-visible { left: 0; }
#slider .rslides-inner:hover .rslides_nav.next, #slider .rslides_nav.next:focus-visible { right: 0; }
#slider .rslides_nav:hover { color: #333; background: #fff; }
#slider .rslides_tabs { position: absolute; z-index: 6; bottom: 10px; width: 100%; text-align: center; margin: 0; list-style: none; }
#slider .rslides_tabs li { display: inline-block; margin: 0 6px; }
#slider .rslides_tabs button {
  display: block; width: 11px; height: 11px; padding: 0; border: 0; cursor: pointer; border-radius: 20px;
  background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 3px rgba(0, 0, 0, .3);
}
#slider .rslides_tabs button:hover, #slider .rslides_tabs .is-on button { background: rgba(0, 0, 0, .7); }

/* ---------- Inhalt ---------- */
#content { clear: both; padding: 30px 10px; }
#content-core { max-width: 1140px; margin: 0 auto; }
#main-core::after, #content-core::after { content: ""; display: table; clear: both; }
#intro.option1 { margin-bottom: 25px; }
#intro.option1 #intro-core { position: relative; padding-bottom: 20px; }
#intro.option1 .page-title { line-height: 1; text-transform: uppercase; margin: 0; }
#intro.option1 #intro-core::before {
  content: ""; position: absolute; bottom: 0; width: 100%; border-bottom: 1px solid #EEE;
}
#intro.option1 #intro-core::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 25px; border-bottom: 3px solid var(--red);
}
.entry::after { content: ""; display: table; clear: both; }
.entry-content img, .entry-content iframe { display: block; }
.alignleft { display: inline; float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { display: inline; float: right; margin-left: 20px; margin-bottom: 10px; }
.aligncenter { clear: both; display: block; margin: 20px auto; }
.divider { margin: 0 0 15px; padding: 15px 0 0; }
.entry-meta { font-size: 90%; margin-bottom: 20px; }
.entry-meta .date::before {
  content: ""; display: inline-block; width: 9px; height: 8px; margin-right: 8px;
  border: 1px solid currentColor; border-top-width: 3px; vertical-align: -1px;
}

/* WordPress-Blöcke */
.wp-block-image { margin: 0 0 1em; }
.wp-block-image img { vertical-align: bottom; }
.wp-block-image.aligncenter, .wp-block-image .aligncenter { text-align: center; }
.wp-block-gallery.has-nested-images {
  display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 1em; align-items: normal;
}
.wp-block-gallery.has-nested-images figure.wp-block-image {
  margin: 0; flex-grow: 1; width: calc(33.333% - 11px); position: relative;
  display: flex; flex-direction: column; justify-content: center;
}
.wp-block-gallery.has-nested-images figure.wp-block-image:first-child:nth-last-child(2),
.wp-block-gallery.has-nested-images figure.wp-block-image:first-child:nth-last-child(2) ~ figure { width: calc(50% - 8px); }
.wp-block-gallery.has-nested-images figure.wp-block-image:only-child { width: 100%; }
.wp-block-gallery.is-cropped figure.wp-block-image img { width: 100%; height: 100%; flex: 1 0 0%; object-fit: cover; }
.has-text-color.has-black-color, .has-black-color { color: #000; }
.has-white-color { color: #fff; }
.has-small-font-size { font-size: 13px; }
.has-medium-font-size { font-size: 20px; }
.has-large-font-size { font-size: 36px; }
.has-x-large-font-size { font-size: 42px; }
.wp-block-heading { margin-bottom: .8em; }
.align-justify { text-align: inherit; }
mark { background: #ffe066; color: #000; padding: 0 3px; }

/* Beitragsnavigation */
#nav-below { margin-top: 20px; }
#nav-below::after { content: ""; display: table; clear: both; }
.nav-previous a, .nav-next a {
  color: #fff !important; background: var(--red); padding: 5px 10px; display: inline-flex; gap: 8px; max-width: 48%;
}
.nav-previous a { float: left; }
.nav-next a { float: right; }
.nav-previous a:hover, .nav-next a:hover { background: #333; }

/* Archiv */
.archive-list { list-style: none; margin: 0 0 25px; }
.archive-list li { padding: 4px 0; border-bottom: 1px solid #EEE; }
.archive-list time { display: inline-block; min-width: 80px; color: #888; }

/* ---------- MP3-Player (angelehnt an mp3-jplayer „silver“) ---------- */
.mjp {
  text-align: left; color: #525252; font-family: Verdana, Geneva, sans-serif;
  border: 1px solid #d6d6d6; background: linear-gradient(#fff, #f1f1f1); margin: 0 0 20px;
}
.mjp-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 62px; box-sizing: border-box; }
.mjp-play {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #c9c9c9; cursor: pointer;
  background: linear-gradient(#fafafa, #e3e3e3); display: grid; place-items: center; padding: 0;
}
.mjp-play:hover { border-color: #47ACDE; }
.mjp-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #525252; margin-left: 3px; }
.mjp.is-playing .mjp-icon { width: 12px; height: 14px; border: 0; margin: 0; border-left: 4px solid #525252; border-right: 4px solid #525252; box-sizing: border-box; }
.mjp-info { flex: 1 1 auto; min-width: 0; }
.mjp-title { font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.mjp-bar { position: relative; height: 8px; background: rgba(167, 167, 167, .35); cursor: pointer; }
.mjp-load { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(52, 162, 217, .25); }
.mjp-pos { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(92, 201, 255, .8); }
.mjp-time { font-size: 10px; color: #768D99; margin-top: 3px; }
.mjp-list { list-style: none; margin: 0; max-height: 260px; overflow-y: auto; border-top: 1px solid #ddd; background: rgba(0, 0, 0, .03); counter-reset: none; }
.mjp-list li { border-bottom: 1px solid #e8e8e8; }
.mjp-list li:last-child { border-bottom: 0; }
.mjp-list a { display: block; color: #525252; font-size: 12px; padding: 5px 14px; }
.mjp-list a:hover { color: #47ACDE; background: #fff; }
.mjp-list li.is-current a { color: #47ACDE; font-weight: bold; background: #fff; }
td:has(> .mjp), td:has(> h3 + .mjp) { vertical-align: top; text-align: left; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .85); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb-frame { position: relative; background: #fff; padding: 10px 10px 42px; max-width: 92vw; box-sizing: border-box; }
.lb-frame img { display: block; max-width: calc(92vw - 20px); max-height: calc(88vh - 52px); width: auto; height: auto; }
.lb-bar { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 8px; color: #555; font-size: 12px; }
.lb-count { flex: 1; }
.lb button { border: 0; background: #eee; color: #333; cursor: pointer; height: 26px; min-width: 30px; font-size: 16px; line-height: 1; padding: 0 8px; }
.lb button:hover { background: var(--red); color: #fff; }

/* ---------- Fußbereich ---------- */
#sub-footer { background: #222; border-top: 1px solid #444; padding: 15px 0; }
#sub-footer-core { max-width: 1140px; margin: 0 auto; padding: 0 10px; color: #AAA; text-align: center; font-size: 11px; }
#sub-footer-core a { color: #EEE; font-size: 11px; }
#sub-footer-core a:hover { color: var(--red); }
#footer-menu { margin-bottom: 6px; }
#footer-menu ul { list-style: none; margin: 0; }
#footer-menu li { display: inline-block; }
#footer-menu li::after { content: "|"; color: #666; }
#footer-menu li:last-child::after { content: none; }
#footer-menu a { padding: 0 8px; }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 768px) {
  #header { padding: 10px 10px 20px; }
  #header-core { display: block; }
  #logo { text-align: center; margin: 0 10px 10px; }
  #header-links { display: none; }
  #header-responsive { display: block; width: 100%; }
  .btn-navbar { display: block; width: 100%; box-sizing: border-box; padding: 10px; background: #333; border: 1px solid #222; cursor: pointer; }
  .btn-navbar .icon-bar { display: block; width: 20px; height: 3px; margin: 0 auto; background: #fff; }
  .btn-navbar .icon-bar + .icon-bar { margin-top: 3px; }
  .nav-collapse { display: none; background: #fff; border: 1px solid #F0F0F0; border-top: 0; }
  .nav-collapse.in { display: block; }
  #header-responsive ul { list-style: none; margin: 0; }
  #header-responsive li { position: relative; }
  #header-responsive li a {
    color: #888; display: block; padding: 0 50px 0 25px; height: 50px; line-height: 50px;
    border-bottom: 1px solid #F0F0F0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  #header-responsive li a:hover, #header-responsive li.current-menu-item > a { color: var(--red); }
  #header-responsive .sub-menu { display: none; }
  #header-responsive .sub-menu-show > .sub-menu { display: block; }
  #header-responsive .sub-menu a { padding-left: 45px; }
  #header-responsive .sub-menu-show > a { color: var(--red); }
  .sub-menu-toggle {
    position: absolute; right: 0; top: 0; width: 50px; height: 50px; z-index: 3;
    border: 0; background: transparent; cursor: pointer; color: #888;
  }
  .sub-menu-toggle::before, .sub-menu-toggle::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: currentColor;
  }
  .sub-menu-toggle::after { transform: rotate(90deg); transition: transform .2s; }
  .sub-menu-show > .sub-menu-toggle::after { transform: rotate(0); }
  #slider { padding: 0 10px; }
  #slider .rslides-container { padding: 0; }
  #slider .rslides_nav { display: none; }
  .wp-block-gallery.has-nested-images figure.wp-block-image { width: calc(50% - 8px); }
}
@media only screen and (max-width: 685px) {
  #pre-header { display: none; }
  .alignright, .alignleft { float: none; display: block; margin: 0 0 15px; }
  td:has(.mjp) { display: block; width: auto; padding: 4px 0; border: 0; }
  tr:has(.mjp) { display: block; }
  .nav-previous a, .nav-next a { max-width: 100%; float: none; margin-bottom: 8px; display: flex; }
}
