/* Grundfarben */
body {
  background: #e6e6e6 !important;
  font-family: Arial, sans-serif;
}

/* Menü */
.container-header {
  background: #ffffff;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.container-header .container-nav {
  padding-bottom: 0.5rem;
}

/* Menülinks */
.container-header .mod-menu a {
  color: #003399;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 15px;
}

.container-header .mod-menu a:hover {
  background: #f0f0f0;
  text-decoration: underline;
}

/* Banner */
.container-banner {
  background: #ffffff;
  padding: 20px 0;
}

.site-grid {
  background-image: url("../images/bg/la.png");
}

/* Content-Boxen */
.container-component .item-page,
.container-component .blog,
.container-component .blog-featured,
.container-component .gallery,
.container-component .phocagallery,
.container-component .jg_gallery,
.container-component .sig-container,
.container-component .eventgallery,
.container-component .jg_container{
  background: #ffffff;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

.com_joomgallery.view-category main {
  background: #ffffff;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

#jevents{
  background: #ffffff;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

.com-joomgallery-gallery{
  background: #ffffff;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

#search-form{
  background: #ffffff;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

#search-results{
  background: #ffffff;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

.finder{
  padding-right: 25px !important;
}

.awesomplete{
  padding-right: 2px !important;
}

.js-finder-searchform{
  margin: 5px;
}



.iconic_td{
  padding-right: 5px !important;
}

.ev_td_li{
  padding-left: 5px !important;
}

/* ============================================
   Moderner JEvents Mini-Kalender (Joomla 5)
   ============================================ */

/* Monatskopf + Navigation */
.mod_events_monthyear {
  width: 100% !important;
  margin-bottom: 10px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  border-width: 0 !important;
  border-bottom-width: 3px !important;
}

.mod_events_monthyear td {

}

.mod_events_link {
  cursor: pointer;
  border-radius: 6px;
  background: #f5f5f5;
  color: #333;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
}

.mod_events_link:hover {
  background: #e0e7ff;
  transform: scale(1.05);
}

/* Monatsname */
.mod_events_monthyear a.mod_events_link {
  background: transparent;
  font-size: 1.2em;
  padding: 4px 8px;
  color: #222;
}

.mod_events_monthyear a.mod_events_link:hover {
  background: #e0e7ff;
}

/* Tabellenlayout */
.mod_events_table {
  width: 100% !important;
  border-width: 0 !important;
  border-collapse: separate;
  border-spacing: 4px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

/* Wochentage */
.mod_events_td_dayname {
  background: #f7f7f7;
  color: #555;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  border: none;
}

/* Standard-Tage */
.mod_events_td_daynoevents,
.mod_events_td_daywithevents,
.mod_events_td_todaynoevents,
.mod_events_td_dayoutofmonth {
  text-align: center;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Hover */
.mod_events_td_daynoevents:hover,
.mod_events_td_daywithevents:hover {
  background: #f0f4ff;
  transform: scale(1.05);
}

/* Heute */
.mod_events_td_todaynoevents {
  background: #dbe7ff !important;
  border: 2px solid #6a9cff !important;
  font-weight: 700;
  color: #1a3f8b;
}

/* Tage mit Events */
.mod_events_td_daywithevents {
  background: #eef6ff;
  border-color: #bcd4ff;
  font-weight: 600;
}

.mod_events_td_daywithevents:hover {
  background: #dce9ff;
}

/* Tage außerhalb des Monats */
.mod_events_td_dayoutofmonth {
  background: #fafafa;
  color: #bbb;
  border: 1px solid #eee;
  opacity: 0.7;
}

/* Links in Tagen */
.mod_events_daylink {
  color: inherit;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
  .mod_events_td_dayname,
  .mod_events_td_daynoevents,
  .mod_events_td_daywithevents,
  .mod_events_td_todaynoevents,
  .mod_events_td_dayoutofmonth {
    font-size: 0.85em;
  }
}

/* Menüs */
.header .mod-menu a {
  color: #000 !important;
}

/* Aktiver Menüpunkt */
.header .mod-menu .current a,
.header .mod-menu .active a {
  color: #666 !important;        /* Textfarbe grau */
  font-weight: 600;              /* leicht hervorgehoben */
}

/* --- Grundlayout: horizontales Menü --- */
.header .mod-menu {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* --- Links im Menü --- */
.header .mod-menu a {
  display: flex;
  align-items: center;
  gap: 3px;                 /* Abstand zwischen Icon und Text */
  color: #000;              /* Textfarbe */
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px; /* oben/unten von 6px → 4px */
  border-radius: 4px;
}

/* --- Hover-Effekt --- */
.header .mod-menu a:hover {
  background-color: #e6e6e6;
}

/* --- Aktiver Menüpunkt (wie gewünscht grau) --- */
.header .mod-menu .current a,
.header .mod-menu .active a {
  background-color: #dcdcdc;
  color: #000;
  border-radius: 4px;
}


.header .mod-menu .nav-item > a {
  position: relative;
  padding-right: 10px; /* Platz für die Figur */
}

.header .mod-menu .nav-item > a::after {
  content: "";
  position: absolute;
  right: 4px;
  transform: translateX(200%);
  width: 14px;
  height: 14px;

  /* WICHTIG: eigener weißer Hintergrund */
  background-color: #fff;

  /* Figur */
  background-image: url("../images/chess/pawn.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  pointer-events: none;
}

.header .mod-menu .nav-item:last-child > a::after {
  content: none;
}

/* Checkbox verstecken */
.header .mobile-menu-toggle {
  display: none;
}

/* --- Mobile Menü Button --- */
.header .mobile-menu-button {
  display: none;
  background: var(--cassiopeia-color-primary);
  color: #fff;
  padding: 12px 18px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.header .mobile-menu-button::before {
  content: "☰";
  margin-right: 10px;
}

/* --- Mobile Menü Container (ANIMATION) --- */
.header .mobile-menu {
  width: 100%;
  background: #fff;
  border-radius: 6px;
  padding: 0; /* wird beim Öffnen sichtbar */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);

  /* Animation */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin-top: 0 !important;
}

.header .mobile-menu .mod-menu > li {
  display: block;
  width: 100%;
  text-align: center;
}

.header .mobile-menu .mod-menu > li:hover {
  background: #f0f0f0;
}

/* --- Mobile Menü Einträge --- */
.header .mobile-menu .mod-menu > li > a {
  display: block;
  padding: 12px 18px;
  font-size: 17px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.header .mobile-menu .mod-menu > li:last-child > a {
  border-bottom: none;
}

/* --- Checkbox aktiviert → Menü fährt aus --- */
@media (max-width: 992px) {

  .header .desktop-menu {
    display: none !important;
  }

  .header .mobile-menu-button {
    display: block;
  }

  #mobile-menu-toggle:checked ~ .mobile-menu {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
  }

  .header .mod-menu .nav-item > a::after {
    display: none !important;
  }

  .header .mod-menu {
    gap: 0 !important;
  }
}

/* ============================================
   Footer-Container im Stil deiner Website
   ============================================ */

.container-footer {
  background: #ffffff;                 /* heller Hintergrund wie oben */
  border-top: 1px solid #ddd;          /* dezente Linie wie im Header */
  box-shadow: 0 -2px 6px rgba(0,0,0,0.08);
  padding: 20px 0;                     /* kompakt, nicht zu groß */
  margin-top: 0px !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

/* Innenbereich */
.container-footer .grid-child {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Footer-Menü (Joomla 5 mod_menu) */
.container-footer .mod-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;                       /* horizontale Links */
  flex-wrap: wrap;
  gap: 6px 12px;                       /* kompakte Abstände */
}

/* Footer-Menüeinträge */
.container-footer .mod-menu > li > a {
  display: inline-block;
  padding: 4px 8px;                    /* kompakt wie dein Menü */
  color: #003399;                      /* gleiche Linkfarbe wie oben */
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

/* Hover */
.container-footer .mod-menu > li > a:hover {
  background: #f0f0f0;     /* dein heller Hover */
  color: #000000;          /* gut sichtbare Schrift */
}

/* Aktiver Link */
.container-footer .mod-menu > li.current > a {
  background: #e8eefc;
  font-weight: 600;
}

/* Copyright */
.container-footer small {
  display: block;
  margin-top: 15px;
  color: #666;
  font-size: 0.9em;
  text-align: center;
}