/* cassiopeia_jg65 - user.css - nueziger65er
   Punkt fuer Punkt, nur Core-Klassen. Gruen aus dem Logo, Gelb aus der Gemeinde-Sonne. */

/* 1. ALLGEMEIN (Schrift, Farben, Links) */
@font-face {
  font-family: "Dancing Script";
  src: url("../fonts/DancingScript-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  --cassiopeia-color-primary: #485838;
  --cassiopeia-color-link: #4f6b2c;
  --cassiopeia-color-hover: #2f3f1f;
}
body {
  background: #eef2e8;
  color: #2f3528;
}
.site-grid a {
  color: #4f7f15;
  font-weight: 600;
  text-decoration: none;
}
.hinweis {
  color: #4f7f15;
  font-weight: 600;
}
.site-grid a:hover {
  color: #384828;
  background: #f2c230;
  text-decoration: none;
}
.container-component {
  font-size: 90%;
  line-height: 1.4;
}
.container-component p {
  margin-bottom: .6em;
}
h1, h2, h3,
.item-title {
  font-family: "Dancing Script", cursive;
  font-weight: 600;
  color: #485838;
}

/* 2. KOPF (Header, Logo, Seitentitel) */
.container-header {
  color: #485838;
  background: #fff;
  background-image: linear-gradient(#fff 60%, #e3ebd8);
  box-shadow: 0 4px 16px rgba(56,72,40,.18);
  border-bottom: 5px solid #f2c230;
  padding: .5rem 0;
}
.container-header .mod-custom {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.container-header .mod-custom img {
  max-width: 100%;
  height: auto;
}
.container-header .mod-custom a[href*="nueziders"] {
  align-self: flex-start;
  margin: .6rem 0 0 1.5rem;
}
.container-header .mod-custom img[src*="gemeinde"] {
  width: 200px;
}
.container-header .mod-custom img[src*="logo-"] {
  height: 160px;
  width: auto;
}
.container-header .mod-custom img[src*="willkommen"] {
  width: 380px;
  margin-right: 4.5rem;
}
@keyframes jg-aufbau {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.container-header .mod-custom img[src*="willkommen"] {
  transform-origin: center;
}
@keyframes jg-welle {
  0%, 100% { transform: skewY(0); }
  25% { transform: skewY(-4deg); }
  75% { transform: skewY(4deg); }
}
.container-header .mod-custom img[src*="willkommen"] {
  animation: jg-aufbau 2.4s steps(22) both, jg-welle 1.4s ease-in-out 2.5s 2;
}
@media (prefers-reduced-motion: reduce) {
  .container-header .mod-custom img[src*="willkommen"] {
    animation: none;
  }
}
/* Kopf beim Scrollen verkleinert (Klasse kopf-klein setzt user.js) */
.container-header .mod-custom img[src*="logo-"] {
  transition: height .3s;
}
.kopf-klein .container-header {
  padding: .3rem 0;
}
.kopf-klein .container-header .mod-custom {
  justify-content: center;
}
.kopf-klein .container-header .mod-custom img[src*="willkommen"],
.kopf-klein .container-header .mod-custom a[href*="nueziders"] {
  display: none;
}
.kopf-klein .container-header .mod-custom img[src*="logo-"] {
  height: 60px;
}

/* 3. MENUE (Hamburger auf allen Groessen, Untermenues offen, Suche unten) */
.container-header {
  position: relative;
}
.container-header .container-nav {
  position: absolute;
  z-index: 1000;
  left: 0;
  right: 0;
  top: calc(100% - 52px - 1.3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.container-header .container-nav > * {
  pointer-events: auto;
}
.container-header .container-nav > nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.container-header .navbar-toggler {
  display: block;
  background: #485838;
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(56,72,40,.35);
}
.container-header .navbar-toggler:hover {
  background: #f2c230;
  color: #384828;
}
.container-header .navbar-collapse:not(.show) {
  display: none !important;
}
.container-header .navbar-collapse {
  flex-basis: auto;
  width: 290px;
  margin-top: 1.3rem;
  background: #fff;
  border-top: 5px solid #f2c230;
  box-shadow: 0 10px 28px rgba(56,72,40,.3);
  padding: .6rem .8rem;
}
.container-header .navbar-collapse .mod-menu {
  display: block;
}
.container-header .metismenu.mod-menu .metismenu-item {
  display: block;
  padding: 0;
}
.container-header .metismenu.mod-menu > li > a,
.container-header .mod-menu a {
  display: block;
  color: #485838;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.25;
  padding: .2rem .6rem;
  border-radius: 6px;
}
.container-header .metismenu.mod-menu > li > a:hover,
.container-header .mod-menu a:hover {
  background: #eef2e8;
  color: #2f3f1f;
}
.container-header .metismenu.mod-menu > li.active > a,
.container-header .mod-menu .active > a {
  background: #fbefc4;
  color: #2f3f1f;
}
.container-header .mm-toggler {
  display: none;
}
.container-header .metismenu.mod-menu .metismenu-item > ul {
  display: block;
  position: static;
  box-shadow: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0 0 .1rem 1rem;
}
.container-header .mod-menu ul a {
  font-weight: 400;
}

/* 4. SUCHFELD (unten im aufgeklappten Menue) */
.container-header .container-nav > search {
  display: none;
  width: 290px;
  background: #eef2e8;
  border-top: 1px solid #e3ebd8;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 28px rgba(56,72,40,.3);
  padding: .9rem 1rem;
}
.container-header .container-nav:has(.navbar-collapse.show) > search {
  display: block;
}
.container-header .mod-finder,
.container-header .mod-finder .awesomplete {
  display: block;
  width: 100%;
}
.container-header .mod-finder input {
  display: block;
  width: 100%;
  background: #fff;
  border: 2px solid #c9d6b8;
  border-radius: 25px;
  padding: .35rem 1rem;
}
.container-header .mod-finder input:focus {
  border-color: #485838;
  box-shadow: 0 0 0 3px rgba(242,194,48,.5);
}

/* 5. INHALT (Beitraege, Ueberschriften, Bilder) */
.item-page,
.blog-items .blog-item,
.com-content-category,
.com-finder {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(56,72,40,.15);
  padding: 1.5rem;
  margin-bottom: 1.8rem;
}
.blog-items .blog-item .item-title {
  font-size: 1.5rem;
}
.blog-item:hover {
  box-shadow: 0 10px 26px rgba(56,72,40,.25);
}
.item-page .page-header h1,
.item-page .page-header h2,
.blog-item .item-title,
.com-content-category h1 {
  font-size: 1.45rem;
  line-height: 1.2;
  border-bottom: 4px dotted #f2c230;
  padding-bottom: .3rem;
  margin-bottom: 1rem;
}
.item-page img,
.blog-item img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.item-page table {
  max-width: 100%;
}
.item-page td {
  padding: .4rem .7rem;
}
.com-content-category__table,
.com-content-category__table th {
  border: 0;
}
.com-content-category__table tr {
  border-bottom: 1px solid #e3ebd8;
}
.com-content-category__table tr:hover th {
  background: #eef2e8;
}
.category-desc {
  margin-bottom: 1rem;
}
.com-content-category-blog > button {
  display: block;
  margin: 0 auto 2rem;
  padding: .5rem 2rem;
  border: 0;
  border-radius: 25px;
  background: #485838;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(56,72,40,.3);
}
.com-content-category-blog > button:hover {
  background: #f2c230;
  color: #384828;
}

/* 6. STARTSEITE (RI13 / RI14 Startbild-Karussell) */



/* 7. MODULE (Seitenleiste, Module allgemein) */
.main-top.card {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(56,72,40,.15);
  margin-bottom: 1.2rem;
}
.main-top .mod-custom {
  font-size: .9rem;
}
.main-top .mod-custom a {
  display: inline-block;
  margin: .6rem .4rem 0 0;
  padding: .3rem 1rem;
  border-radius: 20px;
  background: #eef2e8;
  color: #485838;
}
.itemid-439 .main-top a[href$="unsere-treffen-bilder"],
.itemid-441 .main-top a[href$="einladungen-archiv"],
.itemid-440 .main-top a[href$="news-archiv"] {
  background: #fbefc4;
}



/* 8. KONTAKT (Reiter, Formular) */



/* 9. FUSS (Footer) */
.container-footer {
  background: #485838;
  background-image: linear-gradient(#586848, #384828);
  border-top: 5px solid #f2c230;
  color: #fff;
  text-align: center;
  font-size: .75rem;
}
.container-footer .mod-custom {
  padding: .8rem 0;
}
.container-footer a {
  color: #e3ebd8;
  text-decoration: none;
  padding: 0 .8rem;
}
.container-footer a:hover {
  color: #f2c230;
}

/* 10. COOKIE-POPUP (RI10) */



/* 11. HANDY UND TABLET */
@media (max-width: 991.98px) {
  .container-header.position-sticky {
    position: sticky !important;
    top: 0;
    z-index: 1020;
  }
}

@media (max-width: 767px) {
  .container-header .mod-custom img[src*="logo-"] {
    height: 75px;
  }
  .kopf-klein .container-header .mod-custom {
    justify-content: space-between;
  }
  .kopf-klein .container-header .mod-custom img[src*="logo-"] {
    height: 50px;
  }
  .container-header .mod-custom img[src*="willkommen"],
  .container-header .mod-custom a[href*="nueziders"] {
    display: none;
  }
  .item-page,
  .blog-item,
  .com-content-category {
    padding: 1rem;
  }
  .item-page .page-header h1,
  .item-page .page-header h2,
  .blog-item .item-title {
    font-size: 1.5rem;
  }
  .site-grid {
    padding: 0 .75rem;
  }
  .main-top .mod-custom a {
    display: block;
    margin: .5rem 0 0;
    text-align: center;
  }
}


/* 12. STRICHMANN (Beitrag Homepage) */
div:has(> img[src*="strichmann"]) {
  overflow: hidden;
  line-height: 0;
}
img[src*="strichmann"] {
  max-width: 100%;
  height: auto;
  transition: transform 1.2s ease-out;
}
img[src*="strichmann"].jg-unten {
  transform: translateY(100%);
}
/* Strichmann steht unten auf der Kante der Karte (auch bei gleich hohen Karten) */
.blog-item:has(img[src*="strichmann"]) {
  padding-bottom: 0;
}
.blog-item:has(img[src*="strichmann"]) .item-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
div:has(> img[src*="strichmann"]) {
  margin-top: auto;
}


/* 13. KOPF AUF TABLET: alles einzeilig und kleiner (ausser Hamburger) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .container-header .mod-custom {
    flex-wrap: nowrap;
  }
  .container-header .mod-custom img[src*="gemeinde"] {
    width: 140px;
  }
  .container-header .mod-custom img[src*="logo-"] {
    height: 110px;
  }
  .container-header .mod-custom img[src*="willkommen"] {
    width: 260px;
  }
}


/* 14. STARTSEITE: Treffen-Karussell, Text unten mit dezentem Verlauf */
.ri14 .carousel-item > a {
  position: relative;
  display: block;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.ri14 .carousel-item > a::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: inherit;
  filter: blur(18px) brightness(.8);
}
.ri14 .carousel-item > a > img {
  position: relative;
  object-fit: contain;
}
.ri14 .carousel-item > a > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.5rem .9rem;
  background: linear-gradient(transparent, rgba(56,72,40,.75));
  color: #fff;
  font-family: "Dancing Script", cursive;
  font-size: 1.9rem;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.ri14 .carousel-item > a:hover > span {
  color: #f2c230;
}
@media (max-width: 767px) {
  .ri14 .carousel-item > a > span {
    padding: 1.5rem 1rem .5rem;
    font-size: 1.3rem;
  }
}


/* 16. BUTTONS in Beitraegen (Joomla-Standard .btn) */
.item-content a.btn,
.item-page a.btn {
  background: linear-gradient(#6b8f3a, #3f5226);
  border: 0;
  border-radius: 20px;
  color: #fff;
  padding: .4rem 1.2rem;
  box-shadow: 0 4px 14px rgba(56,72,40,.4);
  transition: background .2s, box-shadow .2s;
}
.item-content a.btn:hover,
.item-page a.btn:hover {
  background: linear-gradient(#f7d55a, #e0ad16);
  color: #384828;
  box-shadow: 0 4px 18px rgba(56,72,40,.5);
}


/* 17. RI14-KARUSSELL: altes Bild blendet ohne Zusatzpause aus (sonst 0,6 s Sperre nach jeder Ueberblendung) */
.ri14.carousel-fade .active.carousel-item-start,
.ri14.carousel-fade .active.carousel-item-end {
  transition: opacity 0s var(--ri14-fade, 1s);
}


/* 18. KOPF: Gemeinde - Willkommen - Logo - Hamburger mit gleichen Abstaenden */
.container-header .mod-custom img[src*="willkommen"] {
  order: 1;
  margin-right: 0;
}
.container-header .mod-custom a:has(> img[src*="logo-"]) {
  order: 2;
  margin-right: 4.5rem;
}
.kopf-klein .container-header .mod-custom a:has(> img[src*="logo-"]) {
  margin-right: 0;
}
/* Willkommen-Schleife ist ein Link zur Startseite (im Modul): Link wie das Bild behandeln */
.container-header .mod-custom a:has(> img[src*="willkommen"]) {
  order: 1;
}
.kopf-klein .container-header .mod-custom a:has(> img[src*="willkommen"]) {
  display: none;
}
@media (max-width: 767px) {
  .container-header .mod-custom a:has(> img[src*="willkommen"]) {
    display: none;
  }
}
@media (min-width: 768px) {
  /* Platzhalter rechts in Hamburger-Breite, damit alle vier gleich verteilt sind */
  .container-header .mod-custom::after {
    content: "";
    order: 3;
    width: 52px;
  }
  .container-header .mod-custom a:has(> img[src*="logo-"]) {
    margin-right: 0;
  }
  .kopf-klein .container-header .mod-custom::after {
    display: none;
  }
}


/* 19. HAMBURGER + MENUE: Menue klappt bei jeder Breite genau auf der gelben Linie auf */
.container-header .container-nav {
  top: 0;
  bottom: 0;
  padding: 0 8px;
  display: grid;
  grid-template-rows: 100% auto auto;
  justify-content: end;
  justify-items: end;
  align-items: start;
}
.container-header .container-nav > nav {
  display: contents;
}
.container-header .navbar-toggler {
  grid-row: 1;
  align-self: center;
}
.container-header .navbar-collapse {
  grid-row: 2;
  margin-top: 0;
}
.container-header .container-nav > search {
  grid-row: 3;
}
/* Knopf-Hoehe: Handy mittig, Tablet und Desktop etwas tiefer */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .container-header .navbar-toggler {
    transform: translateY(16px);
  }
}
@media (min-width: 1200px) {
  .container-header .navbar-toggler {
    transform: translateY(35px);
  }
}
.kopf-klein .container-header .navbar-toggler {
  transform: none;
}


/* 20. ZWISCHENTITEL in Beitraegen (Editor-Stil "zwischentitel", unsere Schrift, etwas kleiner als Titel) */
.zwischentitel {
  display: inline-block;
  font-family: "Dancing Script", cursive;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #485838;
  margin: .4rem 0 .2rem;
}
