/* CSS für Sticky-Header */
.sticky-header {
    position: -webkit-sticky; /* For Safari */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* Ensure padding is included in the total width */
    overflow: hidden; /* Prevent content overflow */
}

.sticky-header img {
    height: 40px; /* Passen Sie die Höhe des Logos nach Bedarf an */
}

.sticky-header .header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: flex-end;
    width: auto; /* Ensure buttons are right-aligned */
}

.header-buttons span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-buttons button {
    background: none;
    border: none;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.header-buttons button i {
    margin-right: 5px;
}

/* Spezifische Stile für Logout- und Admin-Button */
.logout-button {
    color: #E91E63; /* Farbe für Abmelden */
}

.admin-button {
    color: #4CAF50; /* Farbe für Admin */
}

input, select{
	display: block;
  width: 100%;
  height: 100%;
  border: none;
  font-size: 17px;
  border-bottom: 2px solid rgba(0,0,0, 0.12);	
	
}

input:focus {
	display: block;
    width: 100%;
    height: 100%;
    border: none;
    font-size: 17px;
    border-bottom: 2px solid #607d8b;
	outline: none;
}

body{
    font-family: calibri, arial;
}


table{
    text-align: center;
    width: 100%;
}

#title{
    background: white;
}

.form, .form2{
    display:none;
    background: #ffffff;
    text-align: center;
    position: fixed;
    top: 140px;
    transform: translateX(-50%);
    left: 50%;
    padding: 20px;
    border: 1px solid black;
    border-radius: 5px;
	box-shadow: 5px 5px 1px gray;
	
}

#main{
    background: #607D8B;
    text-align: center;
    position: absolute;
    top: 25px;
    transform: translateX(-50%);
    left: 50%;
    padding: 20px;
    border-radius: 4px;
}

table{
    border-collapse: collapse;
	background:white;
}

tr{

}

td{
    border: 1px solid black;
    min-width: 100px;
}

th{
    border: 1px solid black;
}

.greenbutton {
    box-shadow:inset 0px 1px 0px 0px #9acc85;
    background:linear-gradient(to bottom, #74ad5a 5%, #68a54b 100%);
    background-color:#74ad5a;
    border:1px solid #3b6e22;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Arial;
    font-size:13px;
    font-weight:bold;
    padding:6px 12px;
    text-decoration:none;
	margin: 6px;
}
.greenbutton:hover {
    background:linear-gradient(to bottom, #68a54b 5%, #74ad5a 100%);
    background-color:#68a54b;
}
.greenbutton:active {
    position:relative;
    top:1px;
}

.redbutton {
        box-shadow: inset 0px 1px 0px 0px #E91E63;
    background: linear-gradient(to bottom, #e91e1e 5%, #b02727 100%);
    background-color: #e91e1e;
    border: 1px solid #cc0a0a;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Arial;
    font-size:13px;
    font-weight:bold;
    padding:6px 12px;
    text-decoration:none;
}
.redbutton:hover {
    background:linear-gradient(to bottom, #b02727 5%, #e91e1e 100%);
    background-color:#68a54b;
}
.redbutton:active {
    position:relative;
    top:1px;
}

.redbuttonwohover {
        box-shadow: inset 0px 1px 0px 0px #E91E63;
    background: linear-gradient(to bottom, #e91e1e 5%, #b02727 100%);
    background-color: #e91e1e;
    border: 1px solid #cc0a0a;
    display:inline-block;
    color:#ffffff;
    font-family:Arial;
    font-size:13px;
    font-weight:bold;
    padding:6px 12px;
    text-decoration:none;
}

.graybuttonwohover {
    box-shadow: inset 0px 1px 0px 0px #000000;
    background: linear-gradient(to bottom, #b9b9b9 5%, #5f5f5f 100%);
    background-color: #000000;
    border: 1px solid #000000;
    display: inline-block;
    color: #ffffff;
    font-family: Arial;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 12px;
    text-decoration: none;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #22a6b3;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .sticky-header {
        flex-direction: column;
    }

    .header-buttons {
        justify-content: flex-start;
        width: 100%;
    }

    .header-buttons span {
        white-space: normal; /* Allow text to wrap */
        margin-bottom: 10px;
    }
	
	.spacer {
    height: 50px; /* Höhe des Spacers, um das Scrollen zu ermöglichen */
}
}

/* Media Query für Mobilgeräte */
@media screen and (max-width: 768px) {
    #main {
        width: 98%;
        top: 10px;
        padding: 10px;
    }

    #form {
        width: 80%;
    }

    td, th {
        min-width: 60px;
        padding: 3px;
    }

    button {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* Anpassung der Checkbox-Größe und des Labels für Mobilgeräte */
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    label[for="consentCheckbox"] {
        font-size: 14px;
        display: inline-block;
        vertical-align: middle;
        margin-left: 5px;
    }

    /* Zentrieren der Checkbox und des Labels */
	.form2{
	display: flex;
	flex-direction: column;
	align-items: center;	
    background: #ffffff;
    text-align: center;
    position: fixed;
    top: 140px;
    transform: translateX(-50%);
    left: 50%;
    padding: 20px;
    border: 1px solid black;
    border-radius: 5px;
	box-shadow: 5px 5px 1px gray;
	max-height: calc(100vh - 200px); /* Adjust this value based on the desired padding from top */
    overflow-y: auto;
    }

	
	.form{
	max-height: calc(100vh - 200px); /* Adjust this value based on the desired padding from top */
    overflow-y: auto;	
	}
	
    .checkbox-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Zusätzlicher Abstand zwischen den Buttons */
    .delete-button, .calendar-button {
        margin: 10px 0; /* Vertikaler Abstand zwischen den Buttons */
    }

    .button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

