@font-face {
    font-family: FluxischElseBold;
    src: url(../../assets/files/fonts/FluxischElse-Bold.woff);
  }

  @font-face {
    font-family: FluxischElseLight;
    src: url(../../assets/files/fonts/FluxischElse-Light.woff);
  }

  @font-face {
    font-family: FluxischElseRegular;
    src: url(../../assets/files/fonts/FluxischElse-Regular.woff);
  }

  @font-face {
    font-family: GaramondtItalic;
    src: url(../../assets/files/fonts/Garamondt-Italic.woff);
  }

  @font-face {
    font-family: GaramondtRegular;
    src: url(../../assets/files/fonts/Garamondt-Regular.woff);
  }

  @font-face {
    font-family: PubliFluorNormale;
    src: url(../../assets/files/fonts/PubliFluorNormale.woff);
  }

  

html {
    font-size: 10px;

}

html, body {
    margin: 0;
    overflow: hidden;
    background-color: white;
}

body {
    font-size: 1.8rem;
    line-height: 2.3rem;
    hyphens: auto;
}

.minor, .minor p {
    font-size: 1.3rem;
    line-height: 1.6rem;
    letter-spacing: 0.7px;
}

h1 {
    font-size: 3.4rem;
    line-height: 3.7rem;
    text-align: center;
    text-transform: uppercase;
    font-family: "FluxischElseLight";
    font-weight: lighter;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

h2 {
    font-size: 2.1rem;
    line-height: 2.4rem;
    margin-top: 0;
}

h3 {
    font-size: 2.1rem;
    line-height: 2.4rem;
    margin-top: 0;
    text-transform: uppercase;
    text-align: center;
}

p {
    margin-top: 0;
    margin-bottom: 2rem;
}



#content {
    font-size: 2.7rem;
    line-height: 2.9rem;
    letter-spacing: 0.7px;
}



.image-alt {
    font-size: 1.3rem;
    line-height: 2rem;
    text-align: center;
}

#sidebarleft input, .menu-item {
    font-size: 5.9rem;
    line-height: 6.5rem;
    letter-spacing: 7px;
}

code {
    font-size: 0.9em;
    line-height: 1rem;
}

#telegram {
    font-size: 2.1rem;
    line-height: 2.4rem;
}

/* PADDDDING  */

#logo, #sidebarright, #content, #sidebarleft .box {
    padding: 2.5rem;
}

div#content:has(div#mapPage) {
    padding: 0rem !important;  
}

.events {
    gap: 2rem;
}

a {
    color: black !important;
}

/* Mobile Menu Styles */
#mobile-menu-toggle {
    display: none;
    /*! position: fixed; */
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
    border: 0px;
    border-right: 2px solid black;
    /*! border-radius: 5px; */
    padding: 1rem;
    font-size: 2rem;
    cursor: pointer;
    width: 5rem;
    height: 5rem;
    justify-content: center;
    align-items: center;
    font-family: 'FluxischElseLight';
    color: black !important;
    height: 100%;
    background: white;
    font-size: 5rem;
    margin-right: 1rem;
    padding-right: 5rem;
    padding-left: 5rem;
}

#mobile-menu-toggle:hover {
    background: #f0f0f0;
}

#mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 2px solid black;
}

#mobile-menu.active {
    left: 0;
}

#mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1002;
    font-family: 'FluxischElseLight';
}

#mobile-menu-content {
    padding: 5rem 2rem 2rem 2rem;
}

.mobile-menu-item {
    display: block;
    padding: 1.5rem 0;
    font-size: 3rem;
    line-height: 3.5rem;
    color: black !important;
    text-decoration: none !important;
    font-family: 'GaramondtItalic';
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover, .mobile-menu-item.selected {
    background-color: #f5f5f5;
    padding-left: 1rem;
}

.mobile-menu-item.selected::before {
    content: "› ";
}

/* Für ALLE Elemente, inkl. verschachtelter divs */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE & Edge */
  }
  
/* Für Webkit-basierte Browser (Chrome, Safari) */
*::-webkit-scrollbar {
display: none;
}




.grid-container#main {
    grid-template-areas:
    'logo logo sidebarright'
    'sidebarleft content sidebarright'
    'telegram content sidebarright';
    left: 0px;
    top: 0px;
    grid-template-rows: 12vh 83vh 5vh;    
    grid-template-columns: 25vw 50vw 25vw;
    display: grid;
    position: absolute;
    height: 100vh;
}


#shortinfo { 
    grid-area: shortinfo; 
    font-family: 'GaramondtItalic';
    text-align: center;
}

#shortinfo p {
    margin: 0;
    font-size: 1.7rem;
  line-height: 1.9rem;
  letter-spacing: 0.7px;
}

#logo {
    grid-area: logo;
    border-right: 1.3pt solid black;
    height: 10vh;
    text-align: center; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    
    box-sizing: border-box;
}



#menu { 
    grid-area: menu; 
    font-family: 'PubliFluorNormale';
   

}

#menu form {
    width: min-content;
    margin: auto;
}

#news { 
    grid-area: news; 
    font-family: 'FluxischElseLight';
    text-align: center;
    border-bottom: 0px !important;
    text-align: left;
}

#news h1 {
    margin-top: 0;
    padding-top: 0;
    word-break: break-word;
    padding-bottom: 0px !important;
    font-size: 2.1rem;
    line-height: 2.4rem;
}

#telegram { 
    grid-area: telegram;
    font-family: 'FluxischElseLight';
    text-align: center;
    border-bottom: 0px !important;
    border-top: 1.3pt solid black !important;
    border-right: 1.3pt solid black !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#telegram p {
    padding: 0;
    margin: 0;
}

#telegram a {
    text-decoration: none;
    color: black;
}

#news a {
    line-break: anywhere;
}



#horoscope { 
    grid-area: horoscope; 
    font-family: 'GaramondtRegular';

}

#content { 
    grid-area: content; 
    overflow: scroll;
    overflow-x: hidden;
    font-family: 'FluxischElseLight';
    border-bottom: 5px solid rgb(0, 0, 0);
    border-right: 5px solid black;
    border-bottom: 0px !important;
    border-right: 1.3pt solid black;
    border-top: 1.3pt solid black;
    position: relative;
    box-sizing: border-box;
}

#content img {
    max-width: 100%;
}

#loadedPage {
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

#editNcLink {
    margin-top: 20vh;
}

#sidebarright { 
    grid-area: sidebarright; 
    font-family: 'FluxischElseLight';
}

#sidebarright .header {
    margin-bottom: 5rem;
}

#sidebarleft .box {
    overflow: visible;
    border-bottom: 1.3pt solid black;
    border-left: 0px;
}


#sidebarleft input, .menu-item {
    margin: 1rem;
    background-color: transparent;
    border: 0px;
    font-family: 'GaramondtItalic';
    color: white !important;
    text-shadow: -0.8px -0.8px 0 #000, 0.8px -0.8px 0 #000, -0.8px 0.8px 0 #000, 0.8px 0.8px 0 #000;
    margin: auto;
    display: block;
    text-decoration: none !important;
    width: fit-content;
    text-align: center;
}

.menu-item:hover::before, .menu-item.selected::before {
    content: "(";
  }
.menu-item:hover::after, .menu-item.selected::after {
  content: ")";
}




.grid-container#sidebarleft { 
    border-right: 1px solid grey;
    display: grid;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
  'shortinfo' 
  'menu     ' 
  'news     '
  'telegram';
    overflow: scroll;
    border-right: 1.3pt solid black;
    border-top: 1.3pt solid black;
}

#sidebarright {
    height: 100vh;
    overflow: scroll;
    box-sizing: border-box;
}

#sidebarright h1 {
    margin-top: 0;
}

#sidebarright h2 {
    margin-bottom: 0;
}



#sidebarright .sidebarevent {
    text-align: center;
}


.leaflet-popup-content img {
    width: 300px;
}

#sidebarright img {
    width: 100%;
}

#sidebarright ul {
    list-style-type: none;
    padding: 0;
}

ul {
    list-style-type: "– ";
    /* list-style-position: inside; */
}

ul#weekEvents {
    margin-top: 1rem;
    border-bottom: 1px solid black;
}

#sidebarright ul#weekEvents li {
    margin-bottom: 1rem;
  }

.weekDayTitle {
    text-align: center;
     width: 100%;
     display: block;
     text-transform: uppercase;
}

#content li {
    margin-bottom: 2rem;
}

#content li.unfinished {
    color: grey;
}

#sidebarright ul li {
    margin-bottom: 3rem;
}

#sidebarright .placeListItem {
    margin-top: -17px;
    padding: 8px;
    text-align: center;
    border-radius: 10px;
}

.placeListItem p {
    margin: 0;
}

#sidebarright p {
    margin-top: 0px;
    padding: 0px;
}

.highlight {
    background-color: rgb(235, 235, 235);
    transition: background-color 0.3s ease;
}

#content #showMapLink {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 0.4rem;
    background-color: #e8e8e8;
    border-radius: 10px;
}

.highlightBanner {
    background:#eee;
    padding:1em;
    margin-bottom:1em;
    border:1px solid #ccc;
}

code {
  background-color: #e6e6e6;
  border-radius: 10px;
  color: #555;
}

.leaflet-popup-content {
    margin: 13px 24px 13px 20px;
    line-height: 2rem !important;
    font-size: 1.8rem !important;
    min-height: 1px;
    font-family: "FluxischElseLight";
    text-align: center;
  }


#mapPage {
    grid-template-areas:
    'map'
    'legende';
    left: 0px;
    top: 0px;
    grid-template-rows: auto min-content;    
    display: grid;
    height: 100%;
}



#map {
    grid-area: map;
    border-bottom: 1.3pt black solid;
}

#legende {
    grid-area: legende;
    overflow: hidden;
    padding: 2rem;
    height: fit-content;
}

#legende h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3.4rem;
    line-height: 3.7rem;
    text-transform: uppercase;
}

.flexRow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 8rem;
  }

.icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.info-group {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

#cloudIcon {
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    position: fixed;
    opacity: 0.2;
    z-index: 20;
    display: none;
}

#cloudIcon:hover {
    opacity: 0.6;
}

#cloudIcon img {
    z-index: 20000;
  position: fixed;
  width: 30px;
  height: 30px;
}


#editPage, .editBtn {
    background-color: lightgrey;
    border-radius: 5px;
    width: fit-content;
    padding: 3px;
    border: 1px solid black;
    margin-bottom: 2rem !important;
    text-align: center;
    margin-right: 0;
    margin-left: auto;
    text-decoration: none !important;
    line-height: 4rem;
}

.editBtn {
    color: transparent;
    position: relative;
}

.editBtn.add::before {
    content: "➕";
}

.editBtn.edit::before {
    content: "📝";
}

.editBtn.delete::before {
    content: "🗑️";
}

.editBtn.cancel::before {
    content: "❌";
}

.editBtn.show::before {
    content: "👁️";
}

.editBtn.logout::before {
    content: "👋 Logout";
}

.editBtn.reset::before {
    content: "🔄 Reset Password";
}

.editBtn.success::before {
    content: "✅";
}

#editPage:hover, .editBtn:hover {
    background-color: rgb(151, 151, 151);
}

.subInfo {
    font-size: 1.8rem !important;
    line-height: 2rem;
}



/* PROCESSWIRE  */

#login-form-seca-fieldwrapper, .pwtoggleLabel, #forgotlogindata-form-seca-fieldwrapper, #register-form-seca-fieldwrapper, #profile-form-seca-fieldwrapper {
    display: none;
}

#profile-form-pass-desc, .requiredHint, .legend,#register-form-pass-desc, #register-form-privacy-text, #profile-form-deleteAccount, .description, p.error {
    font-size: 1.5rem;
    line-height: 2rem;
}

p.error {
    width: fit-content;
}

#profile-form-submit {
    font-size: 2rem;
}

.alert-success {
    background-color: lightgreen;
    padding: 1rem;
}

.alert-danger, p.error, .alert {
    background-color: rgb(255, 166, 166);
}

.asterisk {
    color: red;
}

.fieldwrapper {
    margin-bottom: 2rem;
}

#profile-form-email {
    width: 80%;
}

#register-form-submit, #login-form-submit, #forgotlogindata-form-submit {
    font-size: 1.8rem;
  margin-bottom: 2rem;
}

div:has(#login-form-passwordforgottenLink), div:has(#login-form-registerLink), div:has(#forgotlogindata-form) {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    line-height: 2rem;
}

#login-form-passwordforgottenLink::before {
    content: "❓";
}

#login-form-registerLink::before {
    content: "👤";

}

/* MOBILE RESPONSIVE */
@media only screen and (max-width: 768px) {
    html, body {
        overflow: auto !important;
    }

    #mobile-menu-toggle {
        display: flex;
    }

    .grid-container#main {
        display: block !important;
        position: static !important;
        height: auto !important;
    }

    #sidebarleft, #sidebarright, #telegram {
        display: none !important;
    }

    #logo {
        position:  fixed !important;
        width: 100% !important;
        height: 12vh !important;
        border-right: none !important;
        border-bottom: 2px solid black !important;
        padding: 1rem !important;
        background-color: white;
        z-index: 1;
        display: flex;
        padding: 0px !important;
    }

    #logo img {
        max-height: 100%;
        max-width: calc(100% - 12rem);
        object-fit: contain;
    }

    #content {
        position: relative !important;
        height: auto !important;
        min-height: 88vh !important;
        width: 100% !important;
        border: none !important;
        overflow: visible !important;
        padding: 1.5rem !important;
        font-size: 2.4rem !important;
        line-height: 2.8rem !important;
        padding-top: 13.5vh !important;
    }

    #content h1 {
        font-size: 2.8rem !important;
        line-height: 3.2rem !important;
        padding: 1rem 0 !important;
    }

    #content h2 {
        font-size: 2.4rem !important;
        line-height: 2.8rem !important;
    }

    .subInfo {
        font-size: 2rem !important;
        line-height: 2.4rem !important;
    }

    /* Form adjustments for mobile */
    .fieldwrapper {
        margin-bottom: 2.5rem;
    }

    input, textarea, select {
        font-size: 2rem !important;
        padding: 1rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #profile-form-email {
        width: 100% !important;
    }

    ul {
        list-style-position: outside;
    }

    .events {
        display: block !important;
    }

    #agenda .event { 
        margin-bottom: 2rem !important;
        border-bottom: 2px dotted black !important;
        padding-bottom: 2rem !important;
    }

    #mapPage {
        grid-template-rows: 4fr 1fr !important;
        height: 88vh;
    }

    div#content:has(div#mapPage) {
        padding-top: 12vh !important;
    }

    .flexRow {
        display: block !important;
    }
}
