:root{
    --background-color-header: #AACB9B;
}

@font-face {
    font-family: "Open Sans, Arial, sans-serif";
    src: url("fonts/OpenSans-VariableFont_wdth\,wght.ttf");
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

@media only screen and (max-width: 768px){
    
    #html-tablet, #rechtliches{
        display: none;
        font-family: "Open Sans, Arial, sans-serif";
    }

    main{
        margin-top: 0px;
        position: relative;
        min-height: 80vh;
    }

    .head{
        background: var(--background-color-header);
        padding: 2% 0%;
        
    }
        .bar1, .bar2, .bar3 {
            width: 22px; 
            height: 2px; 
            background-color: #000000; 
            margin: 2.5px 0; 
            transition: 0.4s;
            display: block;
        }
    
        .toogle_button {
            display: flex;
            justify-content: center;
            flex-direction: column;
            position: absolute;
            right: 3%;
            top: 22%;
            cursor: pointer; 
        }
    
        #bereich-nav {
            display: flex;
            width: 80%;
            height: auto;
            padding: 2%;
            margin: 2% 10%;
            border-radius: 10px;
            background-color: rgba(0, 0, 0, 0.05);
            color: #000000;
            cursor: pointer;
            position: relative;
        }
    
        #bereich-nav p {
            justify-content: flex-start;
            font-size: 14px;
            font-weight: 600;
            font-family: "Open Sans, Arial, sans-serif";
        }

        #mySidenav{
            display: none;
            justify-content: center;
            flex-direction: column;
            width: 80%;
            font-size: 14px;
            font-weight: 500;
            background: var(--background-color-header);
            position: absolute;
            top: 0%;
            left: 10%;
            padding: 0% 1% ;
            opacity: 3;
            box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.05);
            z-index: 99;
            border-top: 2px solid black;
        }

        #mySidenav ul li{
            color: black;
            font-weight: 700;
            
        }

        #mySidenav ul li a{
            color: black;
            text-decoration: none;
            border-bottom: 1px solid rgba(0, 0, 0, .03);
            padding: 10px 5%;
            display: block;
            font-weight: 500;
        }

        #mySidenav ul li .menu{
            font-weight: 700;
            background-color: rgba(0, 0, 0, .03);
            color: #000000;
        }

        #mySidenav ul li ul li .big-menu{
            font-weight: 700;
            color: black;
        }

        #mySidenav ul li ul{
            padding: 0px 5%;
        }

        #mySidenav a:hover{
            background-color: rgba(0, 0, 0, .03);
            opacity: .7;
        }

        #mySidenav ul{
            padding: 5%;
            list-style: none;
            margin: 0;
        }

        .logo{
            display: flex;
            flex-direction: row;
            justify-content: center;
            padding: 10px 0;
        }
        .logo img{
            max-height: 60px;
        }

        #rechtliches{
            display: none;
        }
        
        #main-footer{
            background: #000000;
        }
        
        #footer-bottom{
            padding: 15px 0 5px;
         
        }
        
        .container{
            text-align: left;
            position: relative;
            margin: auto;
            width: 80%;
        }
        
        #footer-info{
            float: none;
            text-align: center;
            color: #ffffff;
            padding-bottom: 10px;
        }

        /*Kalender*/

#calendar {
    width: 95%;
    margin: 20px auto;
    height: auto;
    max-width: 95%;
}

.calendar-header, .liste-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-header button, .liste-header button {
    padding: 5px 10px;
    font-size: 16px;
    color: #000000;
}

.liste-header-mobile h2{
    text-align: center;
}

.dayHeader{
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
}

.days {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
}

.weekdays{
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day {
    padding: 10px;
    font-weight: 600;
    background: white;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    height: 100%;
    max-width: calc(100vw / 7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #141827;
}

.Menu-Veranstaltungskalender{
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 10px;
    gap: 2px;
}

.search-container, .month-year-picker-container{
    width: 50%;
}

#search{
    width: 100%;
    height: 100%;
    padding: 5px;
    background: transparent;
    border: 1px solid #ccc;
}

#Menu-Liste, #Menu-Kalender, #Menu-Admin{
    display: none;
}

.desktop {
    display: none;
}

.addTermin {
    display: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--background-color-header);
    border: none;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
}

#liste-add-termin{
    display: flex;
}

.addTermin i {
    color: white;
    font-size: 15px;
}

#liste-add-termin{
    margin: 40px auto;
}

.addTermin:hover {
   
    transform: scale(1.05);
}

.addTermin:active {
    transform: scale(0.95);
}      

/* .day:hover{
    border-bottom: 3px solid black;
} */

.day.today {
    background: var(--background-color-header);
    color: black;
}

/* .entry-dot {
    width: 10px;
    height: 10px;
    background-color: var(--background-color-header);
    border-radius: 50%;
    margin: 2px auto 0;
    display: block;
}

.day.today .entry-dot {
    background-color: white;
} */

.next-month, .prev-month{
    color: #72747D;
}

.events{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.event{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event .Time{
    font-size: 11px;
    color: #5d5d5d;
}

.event .Title{
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event .Title a{
    font-size: 12px;
    color: #141827;
    text-decoration: none;
}

.event .Title a:hover{
    text-decoration: underline;
}

.day:has(.feiertag) {
    background-color: #e8e8e8;
}

.feiertag .Title{
    font-size: 12px;
    color: #141827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*Liste*/
#Liste{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 10px 1%;
}

.Liste-Event_no_data{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
}

.Liste-Event_no_data h2{
    text-align: center;
    font-size: 16px;
}

.Liste-Event{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 0;
}

.Liste-Event .Liste-date{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 20%;
}

.liste-header{
    display: none;
}

.Liste-Event .Liste-date .Datum-Tag{
    font-weight: 700;
    font-size: 20px;
}

.Liste-Event .Liste-data{
    display: block;
    width: 80%;
}

.Liste-Event .Liste-data h2{
    cursor: pointer;
}

.Liste-Event .Liste-data h2 a{
    color: #000000;
    text-decoration: none;
    font-size: 14px;
}

.Liste-Event .Liste-data h2 a:hover{
    text-decoration: underline;
}

.Liste-data .Datum{
    font-size: 12px;
    color: #5d5d5d;
}

.Liste-data .Ort{
    font-size: 12px;
    color: #5d5d5d;
}

.Liste-data .Ort b{
    font-weight: 700;
}

/*Event*/
.container-event{
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.back-button a{
    color: #141827;
    font-weight: 700;
    text-decoration: none;
}

.back-button:hover a{
    text-decoration: underline;
}

.event-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
}

.event-header-info{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-header-button{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.modern-button {
    background: var(--background-color-header);
    color: black;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modern-button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.modern-button i {
    font-size: 18px;
}

.event-data{
    border-top: 1px solid #e4e4e4;
    padding-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.event-veranstalter-tablet{
    display: none;
}

.event-details, .event-veranstalter-mobile{
    width: 50%;
    padding: 20px 0;
}

.event-details h4, .event-veranstalter-mobile h4, .event-ort h4{
    text-transform: uppercase;
    color: #141827;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.event-details h5, .event-veranstalter-mobile h5, .event-ort h5{
    font-weight: 700;
    padding: 5px 0;
    font-size: 14px;
}

.event-details p, .event-veranstalter-mobile p, .event-ort .Ort-Details p{
    padding: 5px 0;
    font-size: 14px;
} 

.event-details .date p{
    text-decoration: underline dotted;
}

.event-ort{
    width: 100%;
    padding: 20px 0;
}

/* Buttons Nav Elements */
#nav-elements{
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.nav-element {
    width: 150px;
    height: 150px;
    background: #f8f9fa; 
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-element:hover {
    background: var(--background-color-header);
    color: white;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.nav-element h3 {
    font-size: 18px;
    margin: 10px 0 5px 0;
    color: #343a40;
    transition: color 0.3s ease; 
    text-overflow: ellipsis;
    max-width: 130px;
    word-break: break-word;
}

.nav-element:hover h3 {
    color: white;
}

.nav-element i {
    font-size: 50px;
    color: var(--background-color-header);
    transition: color 0.3s ease;
}

.nav-element:hover i {
    color: white;
}


#LoginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#LoginForm form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px;
    border: 1px solid #e0e0e0;
}

#LoginForm label {
    display: block;
    color: #333333;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

#LoginForm input[type="email"],
#LoginForm input[type="password"],
#LoginForm input[type="text"], #LoginForm select {
    width: 100%;
    padding: 8px;
    margin-bottom: 20px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    appearance: none;
}

#LoginForm input[type="email"]:focus,
#LoginForm input[type="password"]:focus,
#LoginForm input[type="text"]:focus, #LoginForm select:focus {
    background: #ffffff;
    border-color: #004d2c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 77, 44, 0.1);
}

#LoginForm input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--background-color-header);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



#EventForm button[type="submit"]{
    width: 70%;
    padding: 10px;
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
    color: #cc0033;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    margin-bottom: 20px;
}

#EventForm button[type="submit"]:hover {
    transform: translateY(-1px);
}

#LoginForm #pw-label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

#LoginForm #pw-label a {
    font-size: 13px;
    color: #0969DA;
    text-decoration: none;
    transition: color 0.2s ease;
}

#LoginForm #pw-label a:hover {
    text-decoration: underline;
}

#LoginForm #pw-label label {
    margin: 0;
    width: 50%;
    display: flex;
    align-items: center;
}

#LoginForm p{
    font-weight: 600;
    padding: 10px 0;
    font-size: 14px;
}

/* Passwort vergessen */

.success-message {
    background: var(--background-color-header);
    padding: 40px;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    line-height: 1.5;
}

 /*Zurück-Button*/
 .back-button-container {
    display: flex;
    justify-content: flex-start; 
    padding: 20px 10px;
}


.back-button {
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background-color: var(--background-color-header);
    color: white;
    font-size: 12px; 
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover, .back-button:active {
    background-color: var(--background-color-header);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}


.back-button i {
    font-size: 14px;
}

/* Create Termin */
.form-create-termin{
    width: 90%;
    padding: 5%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
  }

  .Termin-Titel > *, .Termin-Zeit > *{
    width: 100%;
  }

  .Termin-Titel input{
    padding: 15px 10px;
    font-size: 20px;
  }

  .Termin-Beschreibung{
    width: 100%;
  }

  .Termin-Beschreibung textarea{
    resize: vertical;
    min-height: 100px;
    width: 100%;
    padding: 15px 10px;
    font-size: 20px;
  }

  .Termin-Zeit{
        display: flex;
        flex-direction: column;
        gap: 10px;
  }

  .Termin-Zeit .ganztaegig{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
  } 

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: var(--background-color-header);
  }
  
  input:checked + .slider:before {
    transform: translateX(21px);
  }
  
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  .Termin-Zeit .Termin-beginn, .Termin-Zeit .Termin-ende {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.Termin-Zeit .Termin-beginn p, .Termin-Zeit .Termin-ende p {
    width: 80px;
    margin: 0;
}

.Termin-Zeit .Termin-beginn input, .Termin-Zeit .Termin-ende input {
    padding: 2px;
    color: #000000;
}

#checkbox-save-veranstalter:checked{
    background: var(--background-color-header);
  }

.Termin-Zeit-Input {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.Termin-Wiederholung{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

#weekly-options, #monthly-options, #repeat-end{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

#repeat-end label input[type="number"]{
    width: 30px;
    text-align: center;
} 

.Termin-Veranstalter, .Termin-Location, .Termin-Kategorie{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
}

.Termin-Veranstalter input, .Termin-Location input, .Termin-Kategorie input{
    width: 100%;
    padding: 10px;
}

#repeat-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#repeat-container select{
    padding: 10px;
    color: #000000;
    appearance: none;
}

#form-create-Termin .submit-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0 0 20px 0;
}

#form-create-Termin input[type="submit"]{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background-color: var(--background-color-header);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.section-header {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.section-header hr {
    margin: 0;
    border: none;
    border-top: 1px solid #ccc;
}

.section-header h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0 10px;
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.data-save{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}

.checkbox-save{
    width: 16px !important;
}

.errorMsg {
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
    color: #cc0033;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 5px;
    display: inline-block;
    position: relative;
  }
  
  .errorMsg::before {
    content: '!';
    color: #fff;
    background-color: #cc0033;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    font-weight: bold;
  }
  
  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
  }
  
  .popup.active {
    display: block !important;
  }
  
  .popup-content {
    background-color: #fff;
    margin: 50% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
  }
  
  .popup-content a {
    display: inline-block;
    margin: 5px;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
  }

  .event-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 2rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

#event-gruppe-header-update{
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#event-gruppe-header-update a i{
    font-size: 20px;
}

.event-header-group{
    text-align: center;
    margin-bottom: 2rem;
}

.event-type {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title {
    font-size: 25px;
    font-weight: 700;
    color: #212529;
    margin: 0.5rem 0 1.5rem 0;
}

.event-beschreibung{
    margin: 0.5rem 0 1.5rem 0;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 12px;
    color: #495057;
}

.event-series-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.repetition-type, .end-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #495057;
    font-size: 12px;
}

.weekdays {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.weekday-badge {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.details-column, .location-column, .organizer-column {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #212529;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-content h4 {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.info-content p {
    margin: 0.25rem 0;
    color: #495057;
    font-size: 12px;
}

.location-column p {
    margin: 0.25rem 0;
    font-size: 12px;
    color: #495057;
}

.organizer-column p{
    margin: 0.25rem 0;
    font-size: 12px;
    color: #495057;
}

.created-info {
    text-align: right;
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.event-container i {
    color: #AACB9B;
    font-size: 16px;
}

#event-header-update{
    display: flex;
    justify-content: center;
    align-items: center;
}

#event-header-update i{
    color: #AACB9B;
    font-size: 20px;
}

.event-details-grid {
    grid-template-columns: 1fr;
}

.event-container {
    padding: 1rem;
    margin: 10px;
    font-size: 16px;
    position: relative;
}

.weekdays {
    flex-direction: column;
}

.day .events .event .entry-dot {
    width: 8px;
    height: 8px;
    background-color: var(--background-color-header);
    border-radius: 50%;
    margin: 2px auto 0;
    display: block;
}

.today .events .event .entry-dot {
    background-color: white;
}

.Menu-Veranstaltungskalender div{
    padding: 20px 0;
}

input[type="month"] {
    appearance: none;
    font-size: 1rem;
    padding: 0.5rem;
    color: black;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    background: transparent;
  }
  
  input[type="month"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  }

  input:-webkit-autofill {
    font-family: 'Arial', sans-serif;
    -webkit-text-fill-color: black; /* Textfarbe */
  }

  .h2 {
    background: var(--background-color-header);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .h2 h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
  }

  .newPassword form{
    width: 90%;
    margin: 0 auto;
  }

  #password-hint{
    padding: 10px 20px;
  }


}

@media only screen and (min-width: 769px){

 /* #html-mobile, #mySidenav{
    display: none !important;
} */

main{
    margin-top: 0px;
    position: relative;
    min-height: 80vh;
}

.head{
    background: var(--background-color-header);
    padding: 2% 0%;
    
}
    .bar1, .bar2, .bar3 {
        width: 22px; 
        height: 2px; 
        background-color: #000000; 
        margin: 2.5px 0; 
        transition: 0.4s;
        display: block;
    }

    .toogle_button {
        display: flex;
        justify-content: center;
        flex-direction: column;
        position: absolute;
        right: 3%;
        top: 30%;
        cursor: pointer; 
    }

    #bereich-nav {
        display: flex;
        width: 80%;
        height: auto;
        padding: 15px;
        margin: 2% 10%;
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.05);
        color: #000000;
        cursor: pointer;
        position: relative;
    }

    #bereich-nav p {
        justify-content: flex-start;
        font-size: 14px;
        font-weight: 600;
        font-family: "Open Sans, Arial, sans-serif";
    }

    #mySidenav{
        display: none;
        justify-content: center;
        flex-direction: column;
        width: 80%;
        font-size: 14px;
        font-weight: 500;
        background: var(--background-color-header);
        position: absolute;
        top: 0%;
        left: 10%;
        padding: 0% 1% ;
        opacity: 3;
        box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.05);
        z-index: 99;
        border-top: 2px solid black;
    }

    #mySidenav ul li{
        color: black;
        font-weight: 700;
        
    }

    #mySidenav ul li a{
        color: black;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, .03);
        padding: 10px 5%;
        display: block;
        font-weight: 500;
    }

    #mySidenav ul li .menu{
        font-weight: 700;
        background-color: rgba(0, 0, 0, .03);
        color: #000000;
    }

    #mySidenav ul li ul li .big-menu{
        font-weight: 700;
        color: black;
    }

    #mySidenav ul li ul{
        padding: 0px 5%;
    }

    #mySidenav a:hover{
        background-color: rgba(0, 0, 0, .03);
        opacity: .7;
    }

    #mySidenav ul{
        padding: 5%;
        list-style: none;
        margin: 0;
    }

#html-tablet {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 32px;
    padding-left: 30px;
    background: var(--background-color-header);
    text-align: center;
}

.logo {
    height: auto;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.logo a{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.logo a img{
    max-height: 270px;
    max-width: 100%;
}

#html-tablet ul{
    display: none;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 22px;
    font-size: 17px;
    padding: 10px 5%
}

#html-tablet ul li a{
    font-weight: normal;
    font-style: normal;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 54px;
    color: black;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

#html-tablet ul li a i{
    font-size: 22px;
    line-height: 100%;
    align-items: center;
    color: black;
}

#html-tablet ul li a:hover, #html-tablet ul li a:hover i{
    color: #606060;
}

#html-tablet ul li a:hover ul, #tml-tablet ul li a:active ul{
    display: block;
}

#html-tablet ul li ul, #html-tablet ul li ul li ul{
    display: none;
    position: absolute;
    padding: 20px 0px;
    z-index: 9999;
    width: 240px;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    -webkit-transform: translateZ(0);
    text-align: left;
    background-color: var(--background-color-header);
}

#html-tablet ul li ul li ul{
    left: -239px;
    top: 50%;
}

#html-tablet ul li ul li{
    padding: 10px 0;
}

#html-tablet ul li ul li a{
    padding: 6px 20px;
}

#html-tablet ul li:hover > ul, #html-tablet ul li:active > ul {
    display: block;
}

#html-tablet ul li ul li:hover > ul, #html-tablet ul li ul li:active > ul {
    display: block;
}


#aktiv{
    color: #606060 !important;
}

#rechtliches{
    background: white;
}

#main-footer{
    background: #000000;
}

#footer-bottom{
    padding: 15px 0 5px;
}

.container{
    text-align: left;
    position: relative;
    margin: auto;
    width: 80%;
}

#footer-info{
    float: none;
    text-align: center;
    color: #ffffff;
    padding-bottom: 10px;
}

#rechtliches{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px;
    padding: .75em 30px 0 30px;
}

#rechtliches a{
    text-decoration: none;
    padding-bottom: .75em;
    text-transform: uppercase;
    color: black;
    font-size: 15px;
    font-family: "Open Sans, Arial, sans-serif";
}

/*Kalender*/

.Menu-Veranstaltungskalender{
    display: flex;
    flex-direction: row;
    width: 95%;
    margin: 0 auto;
    padding: 30px 0;
    gap: 2px;
}

.search-container, .month-year-picker-container{
    width: 50%;
}

#search{
    width: 100%;
    height: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#calendar {
    width: 90%;
    margin: 50px auto;
    height: auto;
    max-width: 1024px;
}

#Liste{
    display: none;
}

.calendar-header, .liste-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.liste-header-mobile{
    display: block;
}

.calendar-header button, .liste-header button {
    padding: 5px 10px;
    font-size: 16px;
    color: #000000;
}

.dayHeader{
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
}


.days {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(auto, max-content);
    max-width: 1024px;
}

.weekdays{
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(auto, max-content);
}

.day {
    padding: 25px;
    font-weight: 600;
    background: white;
    border: 1px solid #ddd;
    text-align: left;
    cursor: pointer;
    font-size: 25px;
    box-sizing: border-box;
    /* aspect-ratio: 1 / 1.5; */
    max-width: calc(90vw / 7);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* .day:hover{
    border-bottom: 3px solid black;
} */

.day.today {
    background: var(--background-color-header);
    color: black;
}

.entry-dot {
    width: 6px;
    height: 6px;
    background-color: #013E36;
    border-radius: 50%;
    margin: 2px auto 0;
    display: block;
}

.day.today .entry-dot {
    background-color: white;
}

.next-month, .prev-month{
    color: #72747D;
}

.events{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.event{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event .Time{
    font-size: 11px;
    color: #5d5d5d;
}

.Mehrtaegig{
    background: var(--background-color-header);
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    padding: 10px 15px;
    height: 40px;
    margin-top: -10px;
}

.event .Title{
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.day:has(.feiertag) {
    background-color: #e8e8e8;
}

.addTermin {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--background-color-header);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;

}

.addTermin i {
    color: white;
    font-size: 20px;
}

#liste-add-termin{
    margin: 40px auto;
}


.addTermin:hover {
   
    transform: scale(1.05);
}

.addTermin:active {
    transform: scale(0.95);
}

.desktop {
    display: flex;
}

.mobile{
    display: none;
}

.feiertag .Title{
    font-size: 12px;
    color: #141827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event .Title a{
    font-size: 12px;
    color: #141827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event .Title a:hover{
    text-decoration: underline;
}

main{
    max-width: 90%;
    min-height: 60vh;
    margin: 0 auto;
}



/*Event*/
.container-event{
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1048px;
    margin: 0 auto;
}

.back-button a{
    color: #141827;
    font-weight: 700;
    text-decoration: none;
}

.back-button:hover a{
    text-decoration: underline;
}

.event-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
}

.event-header-info{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.event-header-button{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.modern-button {
    background: var(--background-color-header);
    color: black;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modern-button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.modern-button i {
    font-size: 18px;
}

.event-data{
    border-top: 1px solid #e4e4e4;
    padding-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
}

.event-veranstalter-mobile{
    display: none;
}

.event-veranstalter-tablet{
    display: block;
}

.event-details, .event-veranstalter-tablet{
    width: auto;
    padding: 20px 0;
}

.event-details h4, .event-veranstalter-tablet h4, .event-ort h4{
    text-transform: uppercase;
    color: #141827;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.event-details h5, .event-veranstalter-tablet h5, .event-ort h5{
    font-weight: 700;
    padding: 5px 0;
    font-size: 14px;
}

.event-details p, .event-veranstalter-tablet p, .event-ort .Ort-Details p{
    padding: 5px 0;
    font-size: 14px;
} 

.event-details .date p{
    text-decoration: underline dotted;
}

.event-ort{
    width: auto;
    padding: 20px 0;
}

#aktiv{
    color: #606060 !important;
 }
/*.Menu-Veranstaltungskalender {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px;
    padding: 0 10px;
    width: 80%;
    margin: 10px auto;
    height: 50px;
    border: 1px solid #efefef;
}

.Menu-Veranstaltungskalender p {
    color: #141827;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding-bottom: 3px;
}

.Menu-Veranstaltungskalender p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: black;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.Menu-Veranstaltungskalender p:hover::after,
.Menu-Veranstaltungskalender p.active::after {
    transform: scaleX(1);
} */


/*Liste*/
#Liste{
    display: none;
    padding: 10px 1%;
    width: 80%;
    margin: 50px auto;
    height: auto;
    max-width: 1024px;
}

.Liste-Event_no_data{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 15px;
}

.Liste-Event_no_data h2{
    text-align: center;
    font-size: 18px;
}

.Liste-Event{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 0;
}

.Liste-Event .Liste-date{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 20%;
}

.Liste-Event .Liste-date .Wochentag{
    font-size: 16px;
    color: #5d5d5d;
}

.Liste-Event .Liste-date .Datum-Tag{
    font-weight: 700;
    font-size: 25px;
}

.Liste-Event .Liste-data{
    display: block;
    width: 80%;
}

.Liste-Event .Liste-data .Datum{
    font-size: 12px;
    color: #5d5d5d;
}

.Liste-Event .Liste-data h2{
    cursor: pointer;
}

.Liste-Event .Liste-data h2 a{
    color: #000000;
    text-decoration: none;
    font-size: 20px;
}

.Liste-Event .Liste-data h2 a:hover{
    text-decoration: underline;
}


.Liste-Event .Liste-data .Ort{
    font-size: 12px;
    color: #5d5d5d;
}

/* Buttons Nav Elements */
#nav-elements{
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: left;
    padding: 20px calc(10% + 20px);
}

.nav-element {
    width: 150px;
    height: 150px;
    background: #f8f9fa; 
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-element:hover {
    background: var(--background-color-header);
    color: white;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.nav-element h3 {
    font-size: 18px;
    margin: 10px 0 5px 0;
    color: #343a40;
    transition: color 0.3s ease; 
    text-overflow: ellipsis;
    max-width: 130px;
    word-break: break-word;
}

.nav-element:hover h3 {
    color: white;
}

.nav-element i {
    font-size: 50px;
    color: var(--background-color-header);
    transition: color 0.3s ease;
}

.nav-element:hover i {
    color: white;
}


#LoginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#LoginForm form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px;
    border: 1px solid #e0e0e0;
}

#LoginForm label {
    display: block;
    color: #333333;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

#LoginForm input[type="email"],
#LoginForm input[type="password"],
#LoginForm input[type="text"], #LoginForm select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#LoginForm input[type="email"]:focus,
#LoginForm input[type="password"]:focus,
#LoginForm input[type="text"]:focus, #LoginForm select:focus {
    background: #ffffff;
    border-color: #004d2c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 77, 44, 0.1);
}

#LoginForm input[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--background-color-header);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#EventForm button[type="submit"]{
    width: 100%;
    padding: 16px;
    /* background: var(--background-color-header);
    color: #141827;
    border: none; */
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
    color: #cc0033;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

#EventForm button[type="submit"]:hover {
    transform: translateY(-1px);
}

#LoginForm #pw-label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

#LoginForm #pw-label a {
    font-size: 13px;
    color: #0969DA;
    text-decoration: none;
    transition: color 0.2s ease;
}

#LoginForm #pw-label a:hover {
    text-decoration: underline;
}

#LoginForm #pw-label label {
    margin: 0;
    width: 50%;
    display: flex;
    align-items: center;
}

#LoginForm p{
    font-weight: 600;
    padding: 10px 0;
    font-size: 14px;
}

/* Passwort vergessen */

.success-message {
    background: var(--background-color-header);
    padding: 40px;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    line-height: 1.5;
}

 /*Zurück-Button*/
 .back-button-container {
    display: flex;
    justify-content: flex-start; 
    padding: 20px 10px;
}


.back-button {
display: inline-flex;
align-items: center; 
justify-content: center;
gap: 8px;
text-decoration: none;
background-color: var(--background-color-header);
color: white;
font-size: 14px; 
font-weight: bold;
padding: 10px 20px;
border-radius: 5px; 
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover, .back-button:active {
background-color: var(--background-color-header);
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}


.back-button i {
font-size: 14px;
}

  /* Create Termin */
.form-create-termin{
    width: 70%;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
  }

  .Termin-Titel > *, .Termin-Zeit > *{
    width: 100%;
  }

  .Termin-Titel input{
    padding: 15px 10px;
    font-size: 20px;
  }

  .Termin-Beschreibung{
    width: 100%;
  }

  .Termin-Beschreibung textarea{
    resize: vertical;
    min-height: 100px;
    width: 100%;
    padding: 15px 10px;
    font-size: 20px;
  }

  .Termin-Zeit{
        display: flex;
        flex-direction: column;
        gap: 10px;
  }

  .Termin-Zeit .ganztaegig{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
  } 

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
  }
  
  input:checked + .slider {
    background: var(--background-color-header);
  }

  input:checked{
    background: var(--background-color-header);
  }
  
  input:checked + .slider:before {
    transform: translateX(21px);
  }
  
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  .Termin-Zeit .Termin-beginn, .Termin-Zeit .Termin-ende {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.Termin-Zeit .Termin-beginn p, .Termin-Zeit .Termin-ende p {
    width: 80px;
    margin: 0;
}

.Termin-Zeit .Termin-beginn input, .Termin-Zeit .Termin-ende input {
    padding: 2px;
    color: #000000;
}

.Termin-Zeit-Input {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.Termin-Wiederholung{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

#weekly-options, #monthly-options, #repeat-end{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

#repeat-end label input[type="number"]{
    width: 30px;
    text-align: center;
} 

.Termin-Veranstalter, .Termin-Location, .Termin-Kategorie{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
}

.Termin-Veranstalter input, .Termin-Location input, .Termin-Kategorie input{
    width: 100%;
    padding: 10px;
}

#repeat-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#repeat-container select{
    padding: 10px;
    color: #000000;
    appearance: none;
}

#form-create-Termin .submit-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0 0 20px 0;
}

#form-create-Termin input[type="submit"]{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background-color: var(--background-color-header);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.section-header {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.section-header hr {
    margin: 0;
    border: none;
    border-top: 1px solid #ccc;
}

.section-header h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0 10px;
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.data-save{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    color: #333;
}

.checkbox-save{
    width: 18px !important;
    accent-color: var(--background-color-header);
    color: white;
}

.errorMsg {
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
    color: #cc0033;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0;
    display: inline-block;
    position: relative;
  }
  
  .errorMsg::before {
    content: '!';
    color: #fff;
    background-color: #cc0033;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    font-weight: bold;
  }

  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
  }
  
  .popup.active {
    display: block !important;
  }
  
  .popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
  }
  
  .popup-content a {
    display: inline-block;
    margin: 5px;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
  }

  .event-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 2rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

#event-gruppe-header-update{
    position: absolute;
    top: 2rem;
    right: 2rem;
}

#event-gruppe-header-update a i{
    font-size: 25px;
}

#event-header-update{
    display: flex;
    justify-content: center;
    align-items: center;
}

#event-header-update i{
    color: #AACB9B;
    font-size: 25px;
}

.event-header-group{
    text-align: center;
    margin-bottom: 2rem;
}

.event-type {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0.5rem 0 1.5rem 0;
}

.event-beschreibung{
    margin: 0.5rem 0 1.5rem 0;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    color: #495057;
}

.event-series-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.repetition-type, .end-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

.weekdays {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.weekday-badge {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.details-column, .location-column, .organizer-column {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #212529;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-content h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.info-content p {
    margin: 0.25rem 0;
    color: #212529;
}

.location-info p {
    margin: 0.25rem 0;
}

.created-info {
    text-align: right;
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.event-container i {
    color: #AACB9B;
}

.today .addTermin{
    background: white !important;
}

.today .addTermin i{
    color: var(--background-color-header) !important;
}

.entry-dot {
    width: 12px;
    height: 12px;
    background-color: var(--background-color-header);
    border-radius: 50%;
    margin: 2px auto 0;
    display: block;
}

.day.today .entry-dot {
    background-color: white;
}

input[type="month"] {
    appearance: none;
    font-size: 1rem;
    padding: 15px;
    color: black;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    margin: 0px auto;
    box-sizing: border-box;
  }
  
  input[type="month"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  }

  #calendar {
    width: 95%;
    margin: 20px auto;
    height: auto;
    max-width: 95%;
}

.calendar-header, .liste-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-header button, .liste-header button {
    padding: 5px 10px;
    font-size: 16px;
    color: #000000;
}

.liste-header-mobile h2{
    text-align: center;
}

.dayHeader{
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
}

.days {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 100px;
}

.weekdays{
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day {
    padding: 10px;
    font-weight: 600;
    background: white;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    height: 100%;
    max-width: calc(100vw / 7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#Menu-Liste, #Menu-Kalender, #Menu-Admin{
    display: none;
}

.desktop {
    display: none;
}

.addTermin {
    display: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--background-color-header);
    border: none;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
}

#liste-add-termin{
    display: flex;
}

.addTermin i {
    color: white;
    font-size: 15px;
}

#liste-add-termin{
    margin: 40px auto;
}

.addTermin:hover {
   
    transform: scale(1.05);
}

.addTermin:active {
    transform: scale(0.95);
}

/* .day:hover{
    border-bottom: 3px solid black;
} */

.day.today {
    background: var(--background-color-header);
    color: black;
}

/* .entry-dot {
    width: 10px;
    height: 10px;
    background-color: var(--background-color-header);
    border-radius: 50%;
    margin: 2px auto 0;
    display: block;
}

.day.today .entry-dot {
    background-color: white;
} */

.next-month, .prev-month{
    color: #72747D;
}

.events{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.event{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event .Time{
    font-size: 11px;
    color: #5d5d5d;
}

.event .Title{
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event .Title a{
    font-size: 12px;
    color: #141827;
    text-decoration: none;
}

.event .Title a:hover{
    text-decoration: underline;
}

.day:has(.feiertag) {
    background-color: #e8e8e8;
}

.feiertag .Title{
    font-size: 12px;
    color: #141827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*Liste*/
#Liste{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 10px 1%;
    width: 100%;
}

.Liste-Event{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 0;
}

.Liste-Event .Liste-date{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 20%;
}

.liste-header{
    display: none;
}

.Liste-Event .Liste-date .Datum-Tag{
    font-weight: 700;
    font-size: 20px;
}

.Liste-Event .Liste-data{
    display: block;
    width: 80%;
}

.Liste-Event .Liste-data h2{
    cursor: pointer;
}

.Liste-Event .Liste-data h2 a{
    color: #000000;
    text-decoration: none;
    font-size: 14px;
}

.Liste-Event .Liste-data h2 a:hover{
    text-decoration: underline;
}

.h2 {
    background: var(--background-color-header);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .h2 h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
  }

  #password-hint{
    padding: 10px 20px 20px 20px;
  }

}

@media only screen and (min-width: 980px){
.head{
    display: none;
}

    #html-tablet {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-right: 32px;
        padding-left: 30px;
        background: var(--background-color-header);
        text-align: center;
    }

    #html-tablet ul{
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        list-style: none;
        gap: 22px;
        font-size: 17px;
        padding: 10px 5%
    }
    
    #html-tablet ul li a{
        font-weight: normal;
        font-style: normal;
        text-transform: uppercase;
        text-decoration: none;
        padding-bottom: 54px;
        color: black;
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    #html-tablet ul li a i{
        font-size: 22px;
        line-height: 100%;
        align-items: center;
        color: black;
    }
    
    #html-tablet ul li a:hover, #html-tablet ul li a:hover i{
        color: #606060;
    }
    
    #html-tablet ul li a:hover ul, #tml-tablet ul li a:active ul{
        display: block;
    }
    
    #html-tablet ul li ul, #html-tablet ul li ul li ul{
        display: none;
        position: absolute;
        padding: 20px 0px;
        z-index: 9999;
        width: 240px;
        -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
        -webkit-transform: translateZ(0);
        text-align: left;
        background-color: var(--background-color-header);
    }
    
    #html-tablet ul li ul li ul{
        left: -239px;
        top: 50%;
    }
    
    #html-tablet ul li ul li{
        padding: 10px 0;
    }
    
    #html-tablet ul li ul li a{
        padding: 6px 20px;
    }
    
    #html-tablet ul li:hover > ul, #html-tablet ul li:active > ul {
        display: block;
    }
    
    #html-tablet ul li ul li:hover > ul, #html-tablet ul li ul li:active > ul {
        display: block;
    }
    
    
    #aktiv{
        color: #606060 !important;
    }

        /*Kalender*/

#calendar {
    width: 90%;
    margin: 50px auto;
    height: auto;
}

#Liste{
    display: none;
}

.calendar-header, .liste-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.liste-header-mobile{
    display: none;
}

.calendar-header button, .liste-header button {
    padding: 5px 10px;
    font-size: 16px;
    color: #000000;
}

.dayHeader{
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
}


.days {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(auto, max-content);
    max-width: 100%;
}

.weekdays{
    width: 100%;
    margin: 0px auto 10px auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(auto, max-content);
}

.day {
    padding: 15px;
    font-weight: 600;
    background: white;
    border: 1px solid #ddd;
    text-align: left;
    cursor: pointer;
    font-size: 25px;
    box-sizing: border-box;
    /* aspect-ratio: 1 / 1.5; */
    max-width: calc(90vw / 7);
    justify-content: flex-start;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

/* .day:hover{
    border-bottom: 3px solid black;
} */

.day.today {
    background: var(--background-color-header);
    color: black;
}

.entry-dot {
    width: 6px;
    height: 6px;
    background-color: #013E36;
    border-radius: 50%;
    margin: 2px auto 0;
    display: block;
}

.day.today .entry-dot {
    background-color: white;
}

.next-month, .prev-month{
    color: #72747D;
}

.events{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.event{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event .Time{
    font-size: 11px;
    color: #5d5d5d;
}

.event .Title{
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.day:has(.feiertag) {
    background-color: #e8e8e8;
}

.addTermin {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--background-color-header);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;

}

.addTermin i {
    color: white;
    font-size: 20px;
}

#liste-add-termin{
    margin: 40px auto;
}


.addTermin:hover {
   
    transform: scale(1.05);
}

.addTermin:active {
    transform: scale(0.95);
}

.desktop {
    display: flex;
}

.mobile{
    display: none;
}

.feiertag .Title{
    font-size: 12px;
    color: #141827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event .Title a{
    font-size: 12px;
    color: #5d5d5d;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event .Title a:hover{
    text-decoration: underline;
}

main {
    max-width: 100%;
    margin: 20px auto;
}

.Menu-Veranstaltungskalender {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px;
    padding: 0px 10px 0px 0px;
    width: 90%;
    margin: 10px auto;
    height: 50px;
    border: 1px solid #efefef;
}

.Menu-Veranstaltungskalender p {
    color: #141827;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding-bottom: 3px;
}

.Menu-Veranstaltungskalender p a{
    text-decoration: none;
    color: #141827;
}

.Menu-Veranstaltungskalender p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: black;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.Menu-Veranstaltungskalender p:hover::after,
.Menu-Veranstaltungskalender p.active::after {
    transform: scaleX(1);
}

#Menu-Liste, #Menu-Kalender, #Menu-Admin {
    display: flex;
}

input[type="month"] {
    appearance: none;
    font-size: 1rem;
    padding: 0.5rem;
    color: black;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  
  input[type="month"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  }

  #Liste {
    display: none;
    flex-direction: column;
    width: 90%;
    margin: 50px auto;
    padding: 0;
    max-width: 90%;
}

  .h2 {
    background: var(--background-color-header);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .h2 h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
  }

  .Liste-Event_no_data{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.Liste-Event_no_data h2{
    text-align: center;
    font-size: 18px;
}

.Liste-Event .Liste-date .Wochentag {
    font-size: 18px;
    color: #5d5d5d;
}

.Liste-Event .Liste-date .Datum-Tag {
    font-weight: 700;
    font-size: 22px;
}

.Liste-Event .Liste-data .Datum {
    font-size: 14px;
    color: #5d5d5d;
}

.Liste-Event .Liste-data h2 a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
}

.Liste-Event .Liste-data .Ort {
    font-size: 14px;
    color: #5d5d5d;
}

}
  

@media only screen and (min-width: 1280px){
    .day{
        max-width: calc(1024px / 7);
        height: 100%;

    }

    /* Buttons Nav Elements */
#nav-elements{
    display: flex;
    flex-direction: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: left;
    padding: 20px calc(10% + 20px);
}

.nav-element {
    width: 150px;
    height: 150px;
    background: #f8f9fa; 
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-element:hover {
    background: var(--background-color-header);
    color: white;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.nav-element h3 {
    font-size: 18px;
    margin: 10px 0 5px 0;
    color: #343a40;
    transition: color 0.3s ease; 
    text-overflow: ellipsis;
    max-width: 130px;
    word-break: break-word;
}

.nav-element:hover h3 {
    color: white;
}

.nav-element i {
    font-size: 50px;
    color: var(--background-color-header);
    transition: color 0.3s ease;
}

.nav-element:hover i {
    color: white;
}

#LoginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

#LoginForm form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px;
    border: 1px solid #e0e0e0;
}

#LoginForm label {
    display: block;
    color: #333333;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

#LoginForm input[type="email"],
#LoginForm input[type="password"],
#LoginForm input[type="text"], #LoginForm select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#LoginForm input[type="email"]:focus,
#LoginForm input[type="password"]:focus,
#LoginForm input[type="text"]:focus, #LoginForm select:focus {
    background: #ffffff;
    border-color: #004d2c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 77, 44, 0.1);
}

#LoginForm input[type="submit"]{
    width: 100%;
    padding: 16px;
    background: var(--background-color-header);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


#EventForm button[type="submit"]{
    width: 80%;
    padding: 16px;
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
    color: #cc0033;
    padding: 10px 15px;
    /* background: var(--background-color-header); */
    /* color: #141827; */
    /* border: none; */
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

#EventForm button[type="submit"]:hover {
    transform: translateY(-1px);
}

#LoginForm #pw-label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

#LoginForm #pw-label a {
    font-size: 13px;
    color: #0969DA;
    text-decoration: none;
    transition: color 0.2s ease;
}

#LoginForm #pw-label a:hover {
    text-decoration: underline;
}

#LoginForm #pw-label label {
    margin: 0;
    width: 50%;
    display: flex;
    align-items: center;
}

#LoginForm p{
    font-weight: 600;
    padding: 10px 0;
    font-size: 14px;
}

/* Passwort vergessen */

.success-message {
    background: var(--background-color-header);
    padding: 40px;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    line-height: 1.5;
}

 /*Zurück-Button*/
 .back-button-container {
    display: flex;
    justify-content: flex-start; 
    padding: 20px 70px;
}


.back-button {
display: inline-flex;
align-items: center; 
justify-content: center;
gap: 8px;
text-decoration: none;
background-color: var(--background-color-header);
color: white;
font-size: 14px; 
font-weight: bold;
padding: 10px 20px;
border-radius: 5px; 
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover, .back-button:active {
background-color: var(--background-color-header);
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}


.back-button i {
font-size: 14px;
}

.entry-dot {
    width: 6px;
    height: 6px;
    background-color: #013E36;
    border-radius: 50%;
    margin: 10px auto 0;
    display: block;
}

.day.today .entry-dot {
    background-color: white;
}

.Liste-Event_no_data{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.Liste-Event_no_data h2{
    text-align: center;
    font-size: 22px;
}

.days {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(auto, max-content);
    max-width: 100%;
}

.day{
    max-width: calc(100vw / 7);
    min-height: 200px;
}

main{
    max-width: 1400px;
}




}