/* --- NAVBAR FIX: Sticky oben, kein Überlappen --- */
#stickyTopMainMenu {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #fff;
    min-height: 60px; /* Höhe deiner Navbar – ggf. anpassen */
}

/* Abstand zum ersten Folgeteil (Carousel) sicherstellen */
#stickyTopMainMenu + * {
    margin-top: 0;
}

/* Navbar mit Flexbox - Brand reserviert immer Platz */
#stickyTopMainMenu.navbar {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Brand - nur anzeigen wenn nicht leer */
.navbar-brand {
  flex: 0 0 350px;
  display: none;
  order: 1;
}

.navbar-brand:not(:empty) {
  display: flex;
}

.navbar .list-unstyled{
    padding-left: 0.5rem !important;
}

/* Container-fluid nimmt den Rest ein */
#stickyTopMainMenu .container-fluid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  order: 2;
  padding: 0;
}


#stickyTopMainMenu .navbar-toggler {
  margin-left: auto;
}

/* brandOverlayContainer als Carousel-Overlay */
#carouselWrapper {
    position: relative;
    overflow: hidden;
}

#videoWrapper .mod-video-wrapper {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

/* Video-Player Layout wird im Modul-CSS geregelt */
#brandOverlayContainer {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1200;
    width: clamp(180px, 18vw, 460px);
    height: calc(100% - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7); /* milchiger Transparenzeffekt */
    backdrop-filter: blur(4px); /* leichte Unschärfe hinter dem Overlay */
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 0;
    box-sizing: border-box;
    align-items: flex-start;
}

#brandOverlayContainer img,
#brandOverlayContainer svg,
#brandOverlayContainer > * {
    width: 100%;
    height: auto;
}

#brandOverlay > img {
    margin: auto;
    margin-top: 2.5vh;
    margin-bottom: 2.5vh;
    max-height: 75svh;
}

.navbar-brand {
    display: flex !important;
    align-items: flex-start !important;
    align-self: start;
}

.navbar-brand > img {
    min-height: 33px;
    height: auto;
    padding-left: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    align-self: flex-start;
}

/* Carousel nicht im weißen Balken verstecken */
#carousel,
.carousel,
.carousel-container,
.module-carousel {
    margin-top: 0;
    padding-top: 0;
}


/* Nichts darf das Dropdown abschneiden */
#stickyTopMainMenu,
#stickyTopMainMenu .navbar,
#stickyTopMainMenu .container-fluid {
    overflow: visible;
}

#mainContainer {
  margin-top: 20px;
  width: 100%;
  max-width: 150ch;
  margin:0 auto;
  padding: 1rem;
}

.tab{
  display: inline-block;
  padding-left: 2em; /* Adjust to control tab size */
}

.com-content-article .page-header {
  margin-bottom: 1rem;
  text-align: center;
}

.footerMenu {
    text-align: center;
    margin-bottom: 0.5em;
    justify-content: center;
}

/* --- gastro --- */
/* Container für die Gastronomie-Liste */
.gastro-container, .lodging-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem 0;
    padding: 1rem 0;
}

/* Einzelne Restaurant-Card */
.gastro-card, .lodging-card{
    background: var(--cassiopeia-color-white, #fff);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    min-height: 605px;
    max-width: 350px;
}

.lodging-card {
    min-height: 675px !important;
}

.gastro-card:hover, .lodging-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Bildbereich */
.gastro-image, .lodging-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.lodging-additional-image{
    max-width: 300px !important;
}

/* Inhaltsbereich */
.gastro-content, .lodging-content, .weingut-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.gastro-title, .lodging-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.gastro-info, .lodging-info   {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
    hyphens: auto;
}

.lodging-price{
    font-size: 1rem;
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 1rem;
}
.lodging-tag{
    margin: 1.0rem 0.25rem;
}

/* JEvents year navigation */
#jevents_body.je-nav #jev_year_header.jev_header2 {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) auto minmax(9rem, 1fr);
    align-items: center;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto 1.5rem;
    text-align: center;
}

#jevents_body.je-nav .previousyear {
    justify-self: end;
    padding-right: 3rem;
}

#jevents_body.je-nav .nextyear {
    justify-self: start;
    padding-left: 3rem;
}

#jevents_body.je-nav .previousyear a,
#jevents_body.je-nav .nextyear a {
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
}

#jevents_body.je-nav .currentyear h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
}


#jevents_body .month_date { 
    text-align: center;
}

.jev_toprow div.previousmonth, .jev_toprow div.nextmonth , .jev_toprow div.currentmonth {
    line-height: normal !important;
}

.jev_toprow div.previousmonth, .jev_toprow div.nextmonth {
    background-color: #95c11f !important;   /* Helleres Grün */
    border: 1px solid #95c11f !important;   /* Helleres Grün */
}

.jev_toprow div.previousmonth a, .jev_toprow div.nextmonth a {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.25rem !important;
    padding-bottom: 4px !important;
}

.jev_toprow div.previousmonth a{
    padding-left: 1rem !important;
}

.jev_toprow div.nextmonth a{
    padding-right: 1rem !important;
}


.jev_toprow div.currentmonth {
    border: 1px solid #95c11f !important;   /* Helleres Grün */
    font-size: 1.25rem !important;
    width: 50% !important;
}

#jevents_body a.cal_titlelink:link, #jevents_body a.cal_titlelink:visited, #jevents_body a.cal_titlelink:hover {
    font-size: 0.95rem !important;
}

#jevents #jevents_body {
  font-size: inherit;
}

@media (max-width: 600px) {
    #jevents_body.je-nav .jev_header2 {
        grid-template-columns: minmax(7rem, 1fr) auto minmax(7rem, 1fr);
    }

    #jevents_body.je-nav .previousyear {
        padding-right: 1rem;
    }

    #jevents_body.je-nav .nextyear {
        padding-left: 1rem;
    }
}


.lodging-contact-data {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.lodging-contact-data .row {
    display: grid;
    grid-template-columns: 140px auto;
    gap: 0.5rem;
    align-items: start;
}

.lodging-contact-data .label {
    font-weight: 600;
}

.lodging-contact-data .value {
    overflow-wrap: anywhere;
}

.lodging-contact-data a {
    text-decoration: none;
}

.lodging-contact-data a:hover {
    text-decoration: underline;
}

.article-content{
    margin-top: 2rem;
}

/* "Jetzt geöffnet" Badge */
.status-open {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Button-Leiste */
.gastro-actions, .lodging-actions, .trail-card-actions, .club-card-actions, .weingut-card-actions {
    display: flex;
    border-top: 1px solid #eee;
}

.gastro-link, .lodging-link, .trail-card-link, .club-card-link, .weingut-card-link{
    flex: 1;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.gastro-link:first-child, .lodging-link:first-child , .trail-card-link:first-child, .club-card-link:first-child, .weingut-card-link:first-child {
    border-right: 1px solid #eee;
}

.gastro-link:hover, .lodging-link:hover , .trail-card-link:hover, .club-card-link:hover, .weingut-card-link:hover {
    background: #f8f9fa;
    text-decoration: underline;
    color: var(--brand-third); /* Weisenheim Blau-Ton */
}

figcaption {
    text-align: left;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.2rem;
}

/* --- Positionierung ---*/
.float-left {
    float: left;
    margin: 0 20px 10px 0;
    max-width: 40%;
}

.float-right {
    float: right;
    margin: 0 0 10px 20px;
    max-width: 40%;
}

.responsive-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

/* -- Gemeinderatsmitglieder -- */
/* Parteifarben */
.party-cdu { background: #1a2c63; }
.party-spd { background: #d00000; }
.party-fwg { background: #2e7d32; }
.party-fdp { background: #ffcc00; color: #333; }

.council-page .section-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.sub-title {
    font-size: 1.6rem;
    font-weight: 600;
}

.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.council-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: .25s ease;
}

.council-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.council-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e5e5e5;
    margin-bottom: 1rem;
}

.name {
    font-size: 1.25rem;
    font-weight: 700;
}

.role {
    font-size: 0.95rem;
    color: #666;
}

.party-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-top: .5rem;
}

/* -- Schulen --*/
/* Farb-Akzente */
.accent-kita1 .edu-card-top { background: #F7C948; }
.accent-kita2 .edu-card-top { background: #4A90E2; }
.accent-kita3 .edu-card-top { background: #6BBF59; }
.accent-school .edu-card-top { background: #2C3E50; }
.accent-kita1:hover { border-color: #F7C948; }
.accent-kita2:hover { border-color: #4A90E2; }
.accent-kita3:hover { border-color: #6BBF59; }
.accent-school:hover { border-color: #2C3E50; }

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.edu-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: .25s ease;
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.edu-card-top {
    height: 8px;
    width: 100%;
    border-radius: 14px 14px 0 0;
    margin: -1.8rem -1.8rem 1.2rem -1.8rem;
}

.edu-logo {
    width: 150px;
    height: 90px;
    border-radius: 12px;
    background: rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.edu-card h3, .weingut-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

/* -- Wanderwege -- */
/* Farb-Akzente */
.accent-rueben, .trail-card-top { background: #8BC34A; }
.accent-sand3, .trail-card-top { background: #36610f; }
.accent-sand1, .trail-card-top { background: #f9eb39; }
.accent-sand2, .trail-card-top { background: #0f139b; }
.accent-guide1, .trail-card-top { background: #9C27B0; }
.accent-guide2 .trail-card-top { background: #E91E63; }

.hero-trails {
    background: url('/images/trails.jpg') center/cover no-repeat;
    padding: 4rem 2rem 3rem 2rem;
    border-radius: 16px;
    color: #fff;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-trails::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1); /* stärkerer Overlay */
    border-radius: 16px;
}

.hero-trails h1,
.hero-trails p {
    position: relative;
    z-index: 2;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5); /* bessere Lesbarkeit */
}

.hero-trails h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color:white;
}

.trail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.trail-grid-komoot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.trail-card{
    background: #fff;
    border-radius: 14px;
    border-top: 8px solid;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: .25s ease;
    position: relative;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.trail-card:hover, .club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.trail-card-top {
    display: none;
}

.trail-card-content, .club-card-content, .weingut-card-content {
    flex: 1;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;

    hyphens: auto;
}

.trail-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

.trail-card-actions {
    margin-top: auto;
    border-top: 1px solid #eee;
}

/* Accent-Farben für den oberen Border */
.accent-rueben { border-top-color: #8BC34A; }
.accent-sand1 { border-top-color: #f9eb39; }
.accent-sand2 { border-top-color: #0f139b; }
.accent-sand3 { border-top-color: #36610f; }
.accent-guide1 { border-top-color: #9C27B0; }
.accent-guide2 { border-top-color: #E91E63; }

.trail-icon {
    width: 70px;
    height: 70px;
    
    border-radius: 12px;
    margin-bottom: 1rem;
}

.btn {
    margin-top: 0.5rem;
}

/* Container, der den Platz auf der Seite kontrolliert */
.komoot-embed {
    width: 100%;
    overflow: hidden;
    height: 300px;
}

/* Das Iframe wird künstlich groß geladen und per Zoom herunterskaliert */
.komoot-embed iframe {
    width: 150% !important; /* Lädt die Desktop-Ansicht groß */
    height: 400px !important;
    transform: scale(0.66); /* Skaliert alles inklusive Text herunter */
    transform-origin: top left;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}



/* -- Vereine -- */
/* Farb-Akzente */
.accent-1 .club-card-top { background: #4CAF50; }
.accent-2 .club-card-top { background: #03A9F4; }
.accent-3 .club-card-top { background: #FFC107; }
.accent-4 .club-card-top { background: #8BC34A; }
.accent-5 .club-card-top { background: #9C27B0; }
.accent-6 .club-card-top { background: #FF5722; }
.accent-7 .club-card-top { background: #3F51B5; }
.accent-8 .club-card-top { background: #009688; }
.accent-9 .club-card-top { background: #E91E63; }

.club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

/* Gewerbe-Liste im Vereinskarten-Layout */
.business-directory {
    align-items: stretch;
}

.business-directory > .row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 1.8rem;
    background: #fff;
    border-top: 8px solid #95c11f;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: .25s ease;
    overflow: hidden;
}

.business-directory > .row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.business-directory > .row > h4 {
    order: 1;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.business-directory > .row > .col-sm {
    order: 3;
    min-width: 0;
    width: 100%;
}

.business-directory > .row > .col-sm:first-of-type {
    order: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.business-directory > .row > .col-sm:last-child {
    order: 4;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.business-directory > .row img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
}

.business-directory > .row p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .business-directory > .row {
        gap: 1rem;
        padding: 1.4rem;
    }

    .business-directory > .row > .col-sm:first-of-type {
        justify-content: flex-start;
    }
}

.club-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: .25s ease;
    position: relative;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.club-card  joomla-hidden-mail {
    display: content;
}

.club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.club-card-top {
    height: 8px;
    width: calc(100% + 3.6rem);
    margin: -1.8rem -1.8rem 1.2rem -1.8rem;
    border-radius: 14px 14px 0 0;
}

.club-icon {
    min-width: 70px;
    height: 70px;
    
    border-radius: 12px;
    margin-bottom: 1rem;
}

.club-actions .btn {
    margin-right: .5rem;
    margin-top: .5rem;
}

.club-grid-title, .club-grid-title-first {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.5rem 0;
    padding-left: 0.75rem;
    padding-top: 1rem;
}

.club-grid-title-first {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.accent-med3 { border-top: 0.4rem solid var(--med-color-3); }
.accent-med2 { border-top: 0.4rem solid var(--med-color-2); }
.accent-med1 { border-top: 0.4rem solid var(--med-color-1); }
.accent-med4 { border-top: 0.4rem solid var(--med-color-4); }
.accent-med5 { border-top: 0.4rem solid var(--med-color-5); }
.group-med1{ color: var(--med-color-1); }
.group-med2{ color: var(--med-color-2); }
.group-med3{ color: var(--med-color-3); }
.group-med4{ color: var(--med-color-4); }
.group-med5{ color: var(--med-color-5); }

/* JEvents */
/* JEvents Kategorien-Farben */
.je-card-category-Feste { --cat-color: var(--cat-color-Feste); }
.je-card-category-Freizeit { --cat-color: var(--cat-color-Freizeit); }
.je-card-category-Musik { --cat-color: var(--cat-color-Musik); }
.je-card-category-Essen { --cat-color: var(--cat-color-Essen); }
.je-card-category-Sport { --cat-color: var(--cat-color-Sport); }
.je-card-category-Theater { --cat-color: var(--cat-color-Theater); }    

/* Navigation */
.je-nav {
    margin-bottom: 0.5rem;
}

.je-nav .currentmonth{
    text-align: center;
}

.new-navigation{
    margin-bottom: 3rem !important;
}

/*new */
#jevents_body{
    border:none !important;
    background: none !important;
}

/* Grundfarbe der Navigation */
#jevents_body .new-navigation {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    gap: 2rem;
}
#jevents_body .new-navigation .nav-items div, .nav-items > div:first-child ,.nav-items > div:last-child {
    border: none !important;
}

/* Hover */
#jevents_body .nav-items > div a:hover{
    all: unset;
}

#jevents_body .nav-items > div a:hover, #jevents_body .nav-items > div.active a:hover  {
    background-color: #95c11f !important;   /* Helleres Grün */
    color: #fff !important;
    font-weight: 600;
    border: none !important;
}

/* Unterstreichung / Akzent */
#jevents_body .nav-items > div a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: #2E7D32 !important;         /* Akzentgrün */
    opacity: 0;
    transform: translateY(4px);
    transition: all .25s ease;
}

#jevents_body .nav-items > div a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Aktiver Menüpunkt */
#jevents_body .nav-items div.active a, .jev_header2 .nav-items div.active a {
    background: #2E7D32 !important;
    color: #fff !important;
    font-weight: 600;
}

#jevents_body .new-navigation .nav-items a.active::after {
    opacity: 1;
    transform: translateY(0);
}

/*new */




/* GRID – mit !important, damit JEvents es nicht überschreibt */
.jevents-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
    gap: 2rem !important;
    width: 100% !important;
}

/* Card */
.je-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: .25s ease;
    position: relative;
    overflow: visible !important;
    border-top: 2px solid var(--cat-color, #95c11f) !important;
    border-bottom: 2px solid var(--cat-color, #95c11f) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.je-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Bild */
.je-image img {
    width: auto;
    height: 225px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.je-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0.7rem 1.8rem;
    gap: 0.75rem;
}

.je-card:hover .je-cat-icon {
    opacity: 1;
}

.je-card-actions {
    margin-top: auto;
    display: flex;
    border-top: 1px solid var(--cat-color, #95c11f);
}

.je-card-link {
    flex: 1;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--cat-color, #95c11f);
    font-weight: 600;
    transition: background 0.2s;
    border-radius: 0 0 14px 14px;
}

.je-card-link:hover {
    background: var(--cat-color, #95c11f);
    color: #fff;
    border-radius: 0 0 14px 14px;
}

/* Datum */
.je-date-badge {
    background: var(--cat-color, #95c11f);
    color: #fff;
    padding: 1.2rem 1rem 0.6rem 1rem;
    border-radius: 8px 8px 0 0;
    display: inline-block;
    font-size: 1.1rem;
    width: 100%;
}
.je-date-badge_date {
    font-weight: bold;
    float:left;
}

.je-date-badge_time {
    font-size: 0.9rem;
    font-weight: bold;
    float:right;
}

.je-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

/* Button */
.je-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .6rem 1.2rem;
    background: var(--brand-secondary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

.je-cat-badge {
    position: absolute;
    top: -19px; /* schneidet in die Border ein */
    background: var(--cat-color, #005bbb);
    color: #fff;
    padding: .45rem .9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
}

.je-cat-badge img {
    width: 20px;
    height: 20px;
    display: block;
}


.je-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.je-detail-badge {
    background: var(--cat-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

.je-detail-badge img {
    width: 22px;
    height: 22px;
}

.je-detail-image img {
    max-height: fit-content;
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.je-detail-title {
    margin: 0 0 .5rem;
    font-size: 2rem;
    font-weight: 700;
}

.je-detail-titleline {
    width: 0;
    height: 4px;
    background: var(--cat-color);
    border-radius: 4px;
    margin: .5rem 0 1.5rem;
    animation: titleline 0.8s ease-out forwards;
}

@keyframes titleline {
    from { width: 0; }
    to { width: 60px; }
}


.je-detail-meta {
    color: #555;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.je-detail-location {
    margin-bottom: 1.5rem;
}

.je-detail-desc {
    line-height: 1.6;
    margin-bottom: 2rem;
}

.je-detail-buttons {
    display: flex;
    gap: 1rem;
}

.je-btn,
.je-btn-outline {
    padding: .6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.council-video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

/* Card */
.council-video-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.council-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

/* Video */
.council-video-area{
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.council-video-area video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* oder: contain */
    display: block;
}

/* Text */
.council-video-card h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.1rem, 1.5vw, 1.7rem);
    font-weight: bold;
}

.council-video-card .council-video-speaker {
    font-weight: 600;
    margin-bottom: .5rem;
}

.council-video-card .council-video-topics {
    color: #555;
    margin-bottom: 0.5rem;
    margin-top: auto;
}


/* Öffentliche Einrichtungen */
/* Grid */
.oe-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    margin-top: 2rem;
}

/* Card */
.oe-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    position: relative;
}

/* Titel */
.oe-card h3 {
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

/* Beschreibung */
.oe-desc {
    margin-bottom: 1rem;
    color: #444;
}

/* Icon-Badge */
.oe-icon {
    position: absolute;
    top: -27px;
    left: 16px;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Farbakzente explizit setzen */
.accent-red    { border-top: 6px solid #D9534F; }
.accent-red .oe-icon { border: 3px solid #D9534F; color: #D9534F; }

.accent-blue   { border-top: 6px solid #4A90E2; }
.accent-blue .oe-icon { border: 3px solid #4A90E2; color: #4A90E2; }

.accent-green  { border-top: 6px solid #3C7A3C; }
.accent-green .oe-icon { border: 3px solid #3C7A3C; color: #3C7A3C; }

.accent-purple { border-top: 6px solid #7A4FA3; }
.accent-purple .oe-icon { border: 3px solid #7A4FA3; color: #7A4FA3; }
.weingueter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.weingut-icon {
    min-width: 70px;
    max-height: 120px;
    
    border-radius: 12px;
    margin-bottom: 1rem;
}

.weingut-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.weingut-content{
    padding: 1rem 2rem;
}

.weingut-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.weingut-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.weingut-card .meta {
    font-size: 0.95rem;
    color: #555;
}

/* Video oben in der Card */
.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    margin: 1rem 0;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Mobile Optimierung */
@media (min-width: 600px) {
    /* Ab 600px nebeneinander, je 50% Breite */
    .responsive-gallery {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }
    .responsive-gallery img {
        flex: 1;
        width: auto; /* Verhältnis bleibt erhalten */
    }
}


@media (max-width: 600px) {
    .gastro-container {
        grid-template-columns: 1fr;
    }  
}

@media (max-width: 768px) {
  .mod-video-wrapper {
    height: calc(100vh - var(--header-height));
    overflow: hidden;
  }

  .mod-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #brandOverlayContainer{
    max-height: 250px;
  }
}

/* ==================================================
   Mobile Optimierung
   Smartphones & kleine Tablets
   ================================================== */

@media (max-width: 768px) {

    /* Allgemeine Abstände */
    #mainContainer {
        padding: 0.75rem;
    }

    /* Navbar */
    .navbar-brand {
        flex: 0 0 auto;
        max-width: 180px;
        margin-right: auto !important;
        position: fixed;
    top: 0;
    left: 20px;
    z-index: 1000;
    pointer-events: auto;
    }

    .navbar-brand > img {
        max-width: 260px;
        padding-left: 0.1rem;
        margin-top:0.5rem;
    }

    /* Overlay auf dem Carousel */
    #brandOverlayContainer {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        width: 40vw;
        min-width: 120px;
        max-width: 180px;
        height: auto;
        max-height: 140px;
        padding: 0.5rem;
    }

    #brandOverlay > img {
        max-height: 120px;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Bilder nicht mehr floaten */
    .float-left,
    .float-right {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 1rem auto;
    }

    /* Gastro & Unterkünfte */
    .gastro-container,
    .lodging-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gastro-card,
    .lodging-card {
        max-width: 100%;
        min-height: auto;
    }

    /* Vereine */
    .club-grid {
        grid-template-columns: 1fr;
    }

    /* Wanderwege */
    .trail-grid,
    .trail-grid-komoot {
        grid-template-columns: 1fr;
    }

    /* Schulen */
    .edu-grid {
        grid-template-columns: 1fr;
    }

    /* Gemeinderat */
    .council-grid {
        grid-template-columns: 1fr;
    }

    /* Öffentliche Einrichtungen */
    .oe-grid {
        grid-template-columns: 1fr;
    }

    /* JEvents */
    .jevents-cards {
        grid-template-columns: 1fr !important;
    }

    .je-image img {
        width: 100%;
        height: auto;
    }

    /* Video Cards */
    .council-video-container {
        grid-template-columns: 1fr;
    }

    /* Kontaktdaten Unterkunft */
    .lodging-contact-data .row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    /* Buttons untereinander */
    .gastro-actions,
    .lodging-actions,
    .trail-card-actions,
    .club-card-actions,
    .je-card-actions {
        flex-direction: column;
    }

    .gastro-link:first-child,
    .lodging-link:first-child,
    .trail-card-link:first-child,
    .club-card-link:first-child {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    /* Überschriften etwas kleiner */
    .club-grid-title,
    .club-grid-title-first,
    .council-page .section-title {
        font-size: 1.7rem;
    }

    .sub-title {
        font-size: 1.3rem;
    }

    /* Hero-Bereich Wanderwege */
    .hero-trails {
        min-height: 220px;
        padding: 2rem 1rem;
    }

    .hero-trails h1 {
        font-size: 1.8rem;
    }

    .navbar-collapse{
        padding-left: 1.2rem !important;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 480px) {



    .je-date-badge_date,
    .je-date-badge_time {
        float: none;
        display: block;
        text-align: center;
    }

    .trail-card-content,
    .club-card-content,
    .gastro-content,
    .lodging-content {
        padding: 1rem;
    }

    .je-card-content {
        padding: 1rem;
    }
}