/* ===================================================
   STADTGEMEINDE GÜSSING – Cassiopeia user.css FINAL v6
   =================================================== */

/* Google Font: Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --guessing-gruen:        #8dc63f;
  --guessing-gruen-aktiv:  #829E25;
  --guessing-gruen-dark:   #6ab023;
  --guessing-anthrazit:    #434953;
  --guessing-weiss:        #ffffff;
  --guessing-grau:         #333333;
  --cassiopeia-color-primary: #8dc63f;
  --cassiopeia-color-link:    #829E25;
  --cassiopeia-color-hover:   #6ab023;
  --cassiopeia-navbar-bg:     #ffffff;
  --cassiopeia-navbar-color:  #333333;
}

/* ===== GLOBALE SCHRIFTART ===== */
body,
.navbar,
.mod-menu,
.moduletable,
.item-page,
.blog,
article,
footer,
input,
button,
select,
textarea {
  font-family: 'Roboto', Arial, sans-serif !important;
}

/* ===== GLOBALE LINKFARBE ===== */
a {
  color: #829E25;
  text-decoration: none;
}
a:hover {
  color: #6ab023;
  text-decoration: underline;
}

/* ===== TOPBAR ===== */
.container-topbar {
  background-color: #434953 !important;
  color: #ffffff;
  font-size: 0.82rem;
  padding: 7px 0;
  line-height: 1.4;
  font-family: 'Roboto', Arial, sans-serif;
}
.container-topbar a {
  color: #ffffff;
  text-decoration: none;
}
.container-topbar a:hover { opacity: 0.75; text-decoration: none; }

/* ===== TOPBAR MODUL ===== */
.guessing-topbar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 34px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-kontakt {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.topbar-kontakt > span,
.topbar-kontakt > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-kontakt svg { flex-shrink: 0; }
.topbar-suche { display: flex; align-items: center; }
.topbar-search-input {
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 3px 0 0 3px;
  width: 150px;
  font-size: 0.8rem;
  height: 26px;
  padding: 2px 8px;
  font-family: 'Roboto', Arial, sans-serif;
}
.topbar-search-input::placeholder { color: rgba(255,255,255,0.6); }
.topbar-search-input:focus {
  background-color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  box-shadow: none;
  outline: none;
}
.topbar-search-btn {
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-left: none;
  color: #fff;
  border-radius: 0 3px 3px 0;
  height: 26px;
  padding: 0 8px;
  cursor: pointer;
}
.topbar-search-btn:hover { background-color: rgba(255,255,255,0.3); }
.topbar-lang {
  color: #fff !important;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-lang:hover { opacity: 0.8; text-decoration: none; }
.topbar-rechts {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-social {
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.40);
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background 0.2s;
  line-height: 1;
}
.topbar-social-link:hover { background-color: rgba(255,255,255,0.38); }
.topbar-social-link svg { display: block; width: 14px; height: 14px; }
.topbar-social-link .fa,
.topbar-social-link .fab {
  color: #ffffff !important;
  font-size: 13px;
}

/* ===== HEADER ===== */
.header,
.container-header,
div.header,
.site-grid > .header,
.header.container-header {
  background-color: #ffffff !important;
  background: #ffffff !important;
  padding: 0.6rem 0 !important;
}

/* ===== SITE-NAME ===== */
.site-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8dc63f;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Roboto', Arial, sans-serif;
}
.site-name:hover { color: #829E25; text-decoration: none; }

/* ===== HAUPTNAVIGATION ===== */
#main-navigation,
nav.navbar,
.navbar,
.container-nav,
.grid-child.container-nav,
.mod-menu__sub {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}
.container-nav,
.grid-child.container-nav {
  border-bottom: 1px solid #e8e8e8 !important;
}
.mod-menu > li > a,
.navbar-nav > .nav-item > .nav-link,
ul.mod-menu .nav-link {
  color: #333333 !important;
  background-color: transparent !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.7px;
  padding: 0.65rem 0.5rem !important;
  transition: color 0.2s;
  border: none !important;
  border-bottom: none !important;
  text-decoration: none !important;
  font-family: 'Roboto', Arial, sans-serif !important;
}
.mod-menu > li > a:hover,
.navbar-nav > .nav-item > .nav-link:hover,
ul.mod-menu .nav-link:hover {
  color: #829E25 !important;
  background-color: transparent !important;
  border: none !important;
  text-decoration: none !important;
}
.mod-menu > li.active > a,
.navbar-nav > .nav-item.active > .nav-link,
.navbar-nav > .nav-item.current > .nav-link,
.nav-item.active .nav-link,
.nav-item.current .nav-link {
  color: #829E25 !important;
  background-color: transparent !important;
  border: none !important;
  text-decoration: none !important;
}
.nav-link.dropdown-toggle::after { border-top-color: #333333 !important; }
.nav-link.dropdown-toggle:hover::after { border-top-color: #829E25 !important; }
.navbar-nav .dropdown-menu,
.mod-menu .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid #e8e8e8 !important;
  border-top: 2px solid #829E25 !important;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.navbar-nav .dropdown-item,
.mod-menu .dropdown-item {
  color: #333333 !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  background-color: #ffffff !important;
  padding: 0.5rem 1.2rem;
  border: none !important;
  font-family: 'Roboto', Arial, sans-serif !important;
}
.navbar-nav .dropdown-item:hover,
.mod-menu .dropdown-item:hover {
  color: #829E25 !important;
  background-color: #f8f8f8 !important;
  border: none !important;
}
.navbar-nav .dropdown-item.active,
.mod-menu .dropdown-item.active {
  color: #829E25 !important;
  background-color: #f4f8ec !important;
}

/* ===== LINKES SEITENMENÜ ===== */
.sidebar-left .moduletable h3,
.sidebar-left .module-title,
.sidebar-left .mod-menu h3.module-title {
  color: #829E25 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px;
  border: none !important;
  border-bottom: 2px solid #829E25 !important;
  padding-bottom: 0.35rem;
  margin-bottom: 0.2rem;
  font-family: 'Roboto', Arial, sans-serif !important;
}
.sidebar-left .mod-list a,
.sidebar-left nav.mod-menu a,
.sidebar-left .nav-item a {
  color: #333333 !important;
  text-transform: uppercase !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  display: block;
  padding: 0.08rem 0 !important;
  border: none !important;
  line-height: 1.55;
  transition: color 0.15s;
  font-family: 'Roboto', Arial, sans-serif !important;
}
.sidebar-left .mod-list a:hover,
.sidebar-left nav.mod-menu a:hover,
.sidebar-left .nav-item.active a,
.sidebar-left .nav-item a.active {
  color: #829E25 !important;
  border: none !important;
  text-decoration: none !important;
}
.sidebar-left .moduletable { padding: 0.4rem 0; }

/* ===== ÜBERSCHRIFTEN ===== */
.item-page h1,
.item-page h2,
.blog h1,
.blog h2,
article h1,
article h2,
.article-header h1,
h2.article-title,
h2.article-title a,
.item-title,
.item-title a {
  text-transform: uppercase !important;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.5px;
  font-family: 'Roboto', Arial, sans-serif !important;
}
h2.article-title a:hover,
.item-title a:hover {
  color: #829E25;
  text-decoration: none;
}
.item-page h3,
.blog h3,
article h3 {
  text-transform: uppercase !important;
  font-weight: 700;
  color: #829E25 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.5px;
  font-family: 'Roboto', Arial, sans-serif !important;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}
.item-page h4,
.blog h4,
article h4 {
  text-transform: uppercase !important;
  font-weight: 600;
  color: #333333;
  font-family: 'Roboto', Arial, sans-serif !important;
}

/* ===== TEXT-LINKS im Inhalt ===== */
.item-page a,
.blog a,
article a {
  color: #829E25 !important;
  text-decoration: none;
}
.item-page a:hover,
.blog a:hover,
article a:hover {
  color: #6ab023 !important;
  text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background-color: #8dc63f;
  border-color: #8dc63f;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #829E25 !important;
  border-color: #829E25 !important;
  color: #ffffff !important;
}
.readmore a,
.btn.btn-secondary {
  color: #829E25 !important;
  border-color: #829E25 !important;
  background-color: transparent !important;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif !important;
}
.readmore a:hover,
.btn.btn-secondary:hover {
  background-color: #829E25 !important;
  border-color: #829E25 !important;
  color: #ffffff !important;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-item a { color: #829E25; }
.breadcrumb-item.active { color: #333333; }

/* ===== ARTIKEL EINLEITUNGSBILDER ===== */
.blog .item-image img,
.blog .article-image img,
.blog figure img,
article.item .item-image img {
  width: 600px !important;
  height: 320px !important;
  max-width: 100%;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}
@media (max-width: 640px) {
  .blog .item-image img,
  .blog .article-image img,
  article.item .item-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
  }
}

/* ===== FOOTER – DUNKELGRAU wie Original ===== */
footer.footer,
.footer,
.container-footer {
  background-color: #434953 !important;
  background: #434953 !important;
  color: #ffffff !important;
  padding: 2.5rem 0 !important;
  font-size: 0.88rem;
  border-top: none !important;   /* kein grüner Streifen */
  font-family: 'Roboto', Arial, sans-serif;
}

/* Footer Links – weiß */
footer.footer a,
.footer a,
.container-footer a {
  color: #ffffff !important;
  text-decoration: none;
}
footer.footer a:hover,
.footer a:hover,
.container-footer a:hover {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none;
}

/* Footer Modulüberschriften – weiß, fett */
footer.footer .moduletable h3,
footer.footer .module-title,
.footer .moduletable h3,
.footer .module-title {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  border: none !important;
  border-bottom: none !important;
  padding-bottom: 0.3rem;
  margin-bottom: 0.6rem;
}

/* Footer Menülinks – weiß, keine Großbuchstaben (wie Original) */
footer.footer .mod-list a,
footer.footer nav.mod-menu a,
.footer .mod-list a,
.footer nav.mod-menu a {
  color: #ffffff !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  display: block;
  padding: 0.15rem 0 !important;
  border: none !important;
  line-height: 1.7;
  transition: opacity 0.15s;
}
footer.footer .mod-list a:hover,
.footer .mod-list a:hover {
  opacity: 0.75;
  text-decoration: none !important;
  color: #ffffff !important;
}

/* Footer Fließtext */
footer.footer p,
.footer p {
  color: #ffffff !important;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}
footer.footer strong,
.footer strong {
  color: #ffffff !important;
  font-weight: 700;
}

/* ===== SCROLL-TO-TOP BUTTON ===== */
#scroll-to-top,
.scroll-to-top,
a.back-to-top,
button.back-to-top {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background-color: #829E25 !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.2s !important;
  z-index: 9999 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
#scroll-to-top.visible,
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#scroll-to-top:hover,
.scroll-to-top:hover {
  background-color: #6ab023 !important;
}

/* ===== MOBIL ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #434953;
    padding: 1rem;
  }
  .navbar-collapse .nav-link {
    color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    padding: 0.65rem 0 !important;
  }
  .navbar-collapse .nav-link:hover { color: #829E25 !important; }
  .navbar-toggler { border-color: rgba(255,255,255,0.3); }
  .topbar-kontakt { display: none !important; }
  .topbar-suche { display: none !important; }
}
