/* =========================================================
   BASIS
========================================================= */

body {
  font-family: 'Inter','Lato',sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding-top: 10px;
  color: #2E2E2E;
  background: #F6F7F5;
}

p {
  margin-bottom: 1rem;
  color: #9ca2ad;
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.container-header {
  display: flex;
  align-items: center;
}

.container-header .mod-menu {
  display: flex;
  margin-left: auto;
  padding-right: 30px;
  gap: 10px;
}

.container-header .mod-menu a {
  background: #b30000;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.container-header .mod-menu a:hover,
.container-header .mod-menu .current > a {
  background: #7a0000;
  transform: translateY(-2px);
}

/* =========================================================
   HERO – Titel & Slogan GELB + ZENTRIERT (KORREKT FÜR .hero-modern)
   ========================================================= */

/* Haupttitel */
.hero-modern h1,
.hero-inner h1 {
    color: #FFD500 !important;   /* Tirol-Gelb */
    text-align: center !important;
}

/* Slogan */
.hero-modern .slogan,
.hero-modern .hero-slogan,
.hero-inner p {
    color: #FFD500 !important;
    text-align: center !important;
    font-weight: 600;
    font-size: 1.4rem;
}

/* Buttons zentrieren */
.hero-nav {
    justify-content: center !important;
    text-align: center !important;
}

.hero-nav button {
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-modern {
  position: relative;
  width: 100%;
  min-height: 350px;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;   /* MITTIG */
  text-align: center;        /* MITTIG */
  background-image: url("/images/banners/hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
}

.hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #fff;
  padding-top: 120px;
  margin: 0 auto;            /* MITTIG */
  text-align: center;        /* MITTIG */
}

.hero-modern h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  text-align: center;        /* MITTIG */
}

.hero-nav {
  display: flex;
  gap: 1rem;
  justify-content: flex-start; /* LINKS */
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-nav button {
  background: #C5CA2A !important;
  color: #2E2E2E !important;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: 0.25s ease;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.hero-nav button:hover {
  background: #b0b623 !important;
  transform: translateY(-2px);
}
.hero-modern {
    min-height: 500px !important;
}

@media (max-width: 768px) {

    /* Slogan zentrieren */
    .hero-slogan {
        text-align: center !important;
    }

    /* Buttons zentrieren */
    .hero-nav {
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-nav button {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================================
   HERO-MODULE (Mitglied werden, Aufgabe, Mitglieder, Geschichte)
========================================================= */

#main-top {
  min-height: 600px;
  position: relative;
}

.hero-box {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto 2rem auto;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: left; /* STANDARD LINKS */
}

.hero-box.active {
  display: block;
  opacity: 1;
}

/* Überschriften */
.hero-box h1,
.hero-box h2,
.hero-box h3 {
  margin-top: 0 !important;
  margin-bottom: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: #C5CA2A;
  text-align: left !important;
}

/* Listen */
.hero-box ul,
.hero-box ol {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

.hero-box li {
  margin-bottom: 0.4rem;
}

/* Buttons */
.hero-box .btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.25s ease;
}

.hero-box .btn-primary {
  background: #C5CA2A;
  color: #2E2E2E;
}

.hero-box .btn-primary:hover {
  background: #b0b623;
}

.hero-box .btn-secondary {
  background: #2E2E2E;
  color: #ffffff;
}

.hero-box .btn-secondary:hover {
  background: #444;
}

/* =========================================================
   NEWSFLASH / WOCHENBILD
========================================================= */

.moduletable.newsflash-aktuell {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
}

.wochenbild-wrapper {
  background: #fff;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
}

.wochenbild-frame {
  display: inline-block;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  border-radius: 10px;
}

.wochenbild-img {
  width: 80%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

/* =========================================================
   MOBILE FIXES
========================================================= */
/* =========================================================
   MOBILE: Hero-Buttons untereinander
   ========================================================= */
/* =========================================================
   MOBILE: Hero-Buttons untereinander + kleiner
   ========================================================= */

@media (max-width: 768px) {

    /* Buttons untereinander */
    .hero-nav {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem !important;
    }

    /* Einzelne Buttons kleiner */
    .hero-nav button {
        width: 100% !important;          /* volle Breite */
        max-width: 220px !important;     /* etwas kleiner */
        padding: 0.65rem 1.2rem !important;
        font-size: 0.9rem !important;    /* kleinere Schrift */
        border-radius: 6px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
}

/* =========================================================
   LINKBLOCKS / FULLWIDTH
========================================================= */

.inhalt-fullwidth {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

.linkblock-center ul,
.linkblock-center ol {
    text-align: left;
    list-style-position: inside;
    padding-left: 0;
}

.linkblock-center ul li,
.linkblock-center ol li {
    margin: 6px 0;
}
/* =========================================================
   TIMELINE – Geschichte
========================================================= */

.timeline-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    background: #ffffff;
    border-left: 6px solid #C5CA2A;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    line-height: 1.55;
}

.timeline-year {
    font-weight: 800;
    font-size: 1.0rem;
    color: #7a0000;
    text-align: left;
}

.timeline-text {
    color: #2E2E2E;
    font-size: 1rem;
    text-align: left;
}

/* Hover-Effekt */
.timeline-row:hover {
    background: #f9f9f9;
    transform: translateX(4px);
    transition: 0.25s ease;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .timeline-row {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .timeline-year {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
}
/* Fix: Menü klickbar machen bei JEM Event-Detail */
header, nav, .container-header, .mod-menu {
    position: relative;
    z-index: 9999;
}

.com_jem, .jem, .jem_event {
    position: relative;
    z-index: 1;
}
#jevents_body .jevpopup {
    z-index: 99999 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
