/* Narrenzunft Mühlheim – Farbwelt des alten Artisteer-Templates (nz2014v60a43) auf Cassiopeia */
:root {
  --nz-bg: #f5e8db;
  --nz-sheet: rgba(244, 109, 31, 0.21);
  --nz-card: rgba(255, 255, 255, 0.6);
  --nz-text: #1d0c01;
  --nz-heading: #973c07;
  --nz-link: #b84c0c;
  --nz-link-hover: #7a2f04;
  --nz-menu-bg: #e0e0e0;
  --nz-menu-head: #c7c7c7;
  --nz-menu-head-text: #4f1c20;

  --cassiopeia-color-primary: #973c07;
  --cassiopeia-color-link: var(--nz-link);
  --cassiopeia-color-hover: var(--nz-link-hover);
  --link-color: var(--nz-link);
  --link-color-rgb: 184, 76, 12;
  --link-hover-color: var(--nz-link-hover);
  --body-color: var(--nz-text);
  --body-bg: var(--nz-bg);
}

body.site {
  color: var(--nz-text);
  background: var(--nz-bg) url("../images/page.png") fixed;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
}

/* Header: helles Band mit Logo statt blauem Verlauf */
.container-header {
  background: rgba(255, 255, 255, 0.55);
  background-image: none;
  box-shadow: 0 2px 6px rgba(79, 28, 32, 0.15);
}
.container-header .navbar-brand { padding: .5rem 0; }
.container-header .navbar-brand img { max-height: 120px; width: auto; }
.container-header .site-description { color: var(--nz-heading); }

/* Horizontales Hauptmenü im Header */
.container-header .container-nav { padding-bottom: .25rem; }
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .metismenu > li > a,
.container-header .metismenu > li > button {
  color: var(--nz-menu-head-text);
  font-weight: bold;
}
.container-header .mod-menu > li.active > a,
.container-header .metismenu > li.active > a,
.container-header .mod-menu > li > a:hover,
.container-header .metismenu > li > a:hover { color: var(--nz-link); }
.container-header .navbar-toggler { color: var(--nz-menu-head-text); border-color: var(--nz-menu-head-text); }

/* Seitenfläche wie früher: zartes Orange-Overlay */
.site-grid {
  background: var(--nz-sheet);
  border-radius: 10px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 1rem;
}

/* Inhaltsbereich: halbtransparente weiße Karte */
.site-grid > .grid-child.container-component > main,
.site-grid .container-component > main {
  background: var(--nz-card);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

h1, h2, h3, h4, .page-header h1, .page-header h2, .item-title {
  color: var(--nz-heading);
  font-weight: normal;
}
a { color: var(--nz-link); }
a:hover, a:focus { color: var(--nz-link-hover); }

/* Seitenleisten-Menüs wie die grauen Kästen von früher */
.container-sidebar-left .card,
.container-sidebar-right .card {
  background: var(--nz-menu-bg);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  margin-bottom: 1rem;
}
.container-sidebar-left .card-header,
.container-sidebar-right .card-header {
  background: var(--nz-menu-head);
  color: var(--nz-menu-head-text);
  font-weight: bold;
  font-size: 1rem;
  border-radius: 3px;
  margin: .3rem;
  padding: .3rem .6rem;
  border: 0;
}
.container-sidebar-left .card-body { padding: .25rem .75rem .6rem; }
.container-sidebar-left .mod-menu { padding-left: 0; }
.container-sidebar-left .mod-menu li { list-style: none; }
.container-sidebar-left .mod-menu > li > a {
  display: block;
  font-weight: bold;
  padding: .25rem .25rem;
  color: var(--nz-link);
  text-decoration: none;
}
.container-sidebar-left .mod-menu > li.current > a,
.container-sidebar-left .mod-menu > li > a:hover { color: var(--nz-menu-head-text); }
.container-sidebar-left .mod-menu ul { padding-left: .75rem; }
.container-sidebar-left .mod-menu ul a { font-size: .85rem; color: var(--nz-link); text-decoration: none; }

/* Slideshow (ersetzt JE Camera) */
.nz-slideshow {
  position: relative;
  aspect-ratio: 1024 / 932;
  max-width: 880px;
  margin: 0 auto 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
}
.nz-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.nz-slideshow img.is-active { opacity: 1; }
.nz-slideshow img:first-child { opacity: 1; }
.nz-slideshow.is-running img:first-child:not(.is-active) { opacity: 0; }
.nz-slideshow-dots {
  position: absolute; left: 0; right: 0; bottom: .6rem;
  display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap;
}
.nz-slideshow-dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.nz-slideshow-dots button[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .nz-slideshow img { transition: none; }
}

/* Footer */
.container-footer {
  background: rgba(79, 28, 32, 0.85);
  background-image: none;
}
.container-footer, .container-footer a { color: #fde2d3; }

@media (max-width: 991.98px) {
  .site-grid { border-radius: 0; margin-top: 0; }
  .site-grid .container-component > main { padding: 1rem; }
}

/* Untermenüs in der Seitenleiste immer offen zeigen (wie früher) */
.container-sidebar-left .mod-menu__toggle-sub { display: none; }
.container-sidebar-left .mod-menu__sub { display: block !important; }

/* Verlinkte Überschriften ohne Unterstreichung */
h1 a, h2 a, h3 a { text-decoration: none; color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--nz-link); }
main h1 a, main h2 a, main h3 a { text-decoration: none !important; color: inherit; }

/* Cookie-Hinweis */
.nz-cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1050;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1rem;
  background: rgba(79, 28, 32, 0.95); color: #fde2d3;
  border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font-size: .95rem;
}
.nz-cookie p { margin: 0; flex: 1 1 260px; }
.nz-cookie a { color: #fff; text-decoration: underline; }
.nz-cookie .btn { background: #f67d37; color: #1d0c01; border: 0; font-weight: bold; padding: .35rem 1.4rem; }
.nz-cookie .btn:hover { background: #fde2d3; }
