/* Allgemeine Stile */
html, body {
   height: 100%;
   margin: 0;
   padding: 0;
   font-family: 'Roboto', sans-serif;
   background-color: #f0f2f5;
}

body {
   display: flex;
   flex-direction: column;
}

/* Header */
.header {
   background-color: #0055A4; /* Blau wie bei Polizei BW */
   padding: 20px 0px 0px 0px;
   color: #fff;
   text-align: center;
}

/* Navigation */
.nav {
   background-color: #003366;
   overflow: sticky;
   display: flex;
   align-items: center;
   position: sticky;
}
.nav a {
   color: #fff;
   text-align: center;
   padding: 14px 16px;
   text-decoration: none;
}
.nav a:hover {
   background-color: #002244;
}
.nav .logout-button {
   margin-left: auto;
}

/* Hauptinhalt */
.main {
   flex: 1;
   padding: 20px;
}

/* Footer */
.footer {
   background-color: #0055A4;
   color: #fff;
   text-align: center;
   padding: 10px;
}

/* Meldungen */
.error-message {
   color: #000000;
   background-color: #FF6666;
   padding: 10px;
   border-radius: 5px;
   text-align: center;
   margin-bottom: 20px;
}

.success-message {
   color: #000000;
   background-color: #66FF66;
   padding: 10px;
   border-radius: 5px;
   text-align: center;
   margin-bottom: 2 px;
}
.password-reset-box {
            max-width: 400px;
            margin: 50px auto;
            padding: 20px;
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .password-reset-box h2 {
            margin-bottom: 20px;
            font-size: 1.5em;
            color: #333333;
        }

        .input-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .input-group label {
            font-weight: bold;
            font-size: 0.9em;
        }

        .input-group input[type="password"] {
            width: 100%;
            padding: 10px;
            font-size: 1em;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 10px;
        }

        .input-group input[type="checkbox"] {
            display: inline-block;
            margin-left: 10px;
        }

        .input-group button {
            width: 100%;
            padding: 10px;
            font-size: 1em;
            background-color: #003366;
            color: #ffffff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .input-group button:hover {
            background-color: #0056b3;
        }

        .success-message {
            color: #000000;
			background-color: #66FF66;
            font-weight: bold;
            margin-bottom: 2px;
        }

        .error-message {
            color: #000000;
			background-color: #FF6666;
            font-weight: bold;
            margin-bottom: 15px;
        }
/* Formularfelder */
input[type="text"],
input[type="password"],
input[type="email"],
select {
   width: 100%;
   padding: 15px;
   margin-bottom: 10px;
   border: 1px solid #ccc;
   border-radius: 5px;
   box-sizing: border-box;
   font-size: 16px;
}

input[type="submit"] {
   width: 100%;
   padding: 15px;
   background-color: #003366;
   color: #fff;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   font-size: 16px;
}

input[type="submit"]:hover {
   background-color: #002244;
}

input[disabled],
select[disabled] {
   background-color: #e9ecef;
   cursor: not-allowed;
}

/* Buttons */
button {
   padding: 10px 20px;
   background-color: #003366;
   color: #fff;
   border: none;
   border-radius: 5px;
   cursor: pointer;
}

button:hover {
   background-color: #002244;
}

.submit-button {
   margin-top: 15px;
   padding: 8px 20px;
   background-color: #003366;
   color: white;
   border: none;
   border-radius: 4px;
   cursor: pointer;
}

.submit-button:hover {
   background-color: #002244;
}

/* Navigations-Styles */
.nav a.active {
   background-color: #0055A4;
}

/* Login Box Anpassungen */
.login-box {
    width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #0055A4;  /* Gleiche Farbe wie Header */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
}

.login-box h2 {
    margin: 0 0 20px 0;
    text-align: center;
    color: white;
}

.login-box label {
    color: white;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-box .submit-button {
    width: 100%;
    padding: 12px;
    background-color: #003366;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-box .submit-button:hover {
    background-color: #002244;
}

/* Tagesnavigation */
.day-navigation {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 20px;
   padding: 10px;
}

.day-navigation h3 {
   margin: 0;
   font-size: 1.4em;
}

.day-navigation a {
   text-decoration: none;
   color: #003366;
   padding: 5px 10px;
   font-size: 1.2em;
}

/* Calendar Container */
.calendar-container {
   max-width: 800px;
   margin: 0 auto;
   padding: 20px;
   background-color: #ffffff;
   border: 1px solid #ddd;
   border-radius: 10px;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Kalender */
.calendar {
   width: 100%;
   border-collapse: collapse;
   margin: 20px 0;
  }

.calendar th {
   background-color: #003366;
   color: white;
   padding: 4px;
   text-align: center;
   font-size: 0.9em;
   
}

.calendar td {
   border: 1px solid #ddd;
   padding: 2px;
   text-align: center;
   vertical-align: middle;
   height: 20px;
   position: relative;
   font-size: 0.8em;
}

.calendar td.other-month {
   color: #999;
   background-color: #f9f9f9;
}

.calendar td.selected {
   background-color: #e6f3ff;
}

.calendar td.today {
   font-weight: bold;
   color: #003366;
}

.calendar td:not(.past):hover {
   background-color: #f0f0f0;
   cursor: pointer;
}

/* Status-Anzeigen */
.status-bars {
   display: flex;
   justify-content: center;
   gap: 3px;
   margin-top: 2px;
   height: 5px;
}

.status-bar {
   width: 5px;
   height: 100%;
   background-color: #ddd;
}

.has-green .status-bar:nth-child(1) { background-color: #90EE90; }
.has-yellow .status-bar:nth-child(2) { background-color: #FFD700; }
.has-red .status-bar:nth-child(3) { background-color: #FF6B6B; }

/* Matrix */
.matrix-block {
   margin: 20px auto;
   padding: 20px;
   background-color: #ffffff;
   border: 1px solid #ddd;
   border-radius: 10px;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   width: fit-content;
   text-align: center;
}

.matrix {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 10px;
   margin: 0 auto;
}

.cell {
   width: 76px;
   height: 47px;
   text-align: center;
   line-height: 47px;
   border: 1px solid #ddd;
   border-radius: 5px;
   cursor: pointer;
   font-size: 14px;
}

.status-01 { background-color: #90EE90; }
.status-10 { background-color: #FFD700; }
.status-11 { background-color: #FF6B6B; }

.cell.past {
   background-color: #e9ecef;
   color: #6c757d;
   cursor: not-allowed;
}

/* Copy Options */
.copy-options {
   margin: 20px auto;
   max-width: 600px;
   padding: 20px;
   background: #fff;
   border-radius: 8px;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   text-align: center;
}

.copy-options select {
   width: 200px;
   padding: 8px;
   margin: 10px 0;
}

.hint-text {
   color: #666;
   font-size: 0.9em;
   margin: 10px 0;
   text-align: center;
}

/* Responsive Design */
@media (max-width: 1170px) {
   .calendar-container,
   .matrix-block,
   .copy-options {
       width: 100%;
       max-width: none;
       padding: 10px;
       box-sizing: border-box;
   }

   .matrix {
       gap: 5px;
   }

   .cell {
       width: auto;
       min-height: 47px;
   }

   .month-navigation a {
       min-width: 80px;
       font-size: 0.9em;
   }

   .month-navigation h3 {
       font-size: 1.2em;
   }
   .month-arrows {
   display: flex;
   justify-content: space-between;
   width: 100%;
   max-width: 10px;  /* Begrenzt die Breite des Pfeil-Containers */
   margin: 0 auto;    /* Zentriert den Container */
}
   @media screen and (max-width: 768px) {
       .calendar-container,
       .matrix-block,
       .copy-options {
           width: calc(76px * 4 + 50px);
           margin-left: auto;
           margin-right: auto;
           overflow-x: auto;
       }
   }
}

@media (max-width: 600px) {
   .nav {
       flex-direction: column;
   }
   .nav a {
       text-align: left;
       padding: 10px 16px;
   }
   .nav .logout-button {
       margin-left: 0;
   }
   .login-box {
       width: 90%;
       margin: 50px auto;
   }
}
/* Monatsnavigation */
.month-navigation {
   display: flex;
   flex-direction: column;
   align-items: center;
   margin: 20px 0;
}

.month-arrows {
   display: flex;
   justify-content: space-between;
   width: 100%;
   max-width: 120px;  /* Begrenzt die Breite des Pfeil-Containers */
   margin: 0 auto;    /* Zentriert den Container */
}

.month-navigation h3 {
   margin: 0 0 10px 0;
   font-size: 1.6em;
}

.month-arrows a {
   text-decoration: none;
   color: #003366;
   padding: 5px 10px;
   font-size: 1.2em;
}
/* Formular-Stile */
.selection-form {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.selection-form select {
    width: 300px;
    margin: 10px auto;
}

.radio-group {
    margin: 20px 0;
}

.radio-group label {
    margin: 0 20px;
}

/* Matrix-Stile */
.schedule-matrix {
    overflow-x: auto;
    margin: 20px 0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-size: 0.9em;
}

.schedule-table th {
    background-color: #003366;
    color: white;
}

.schedule-table td.status-01 { background-color: #90EE90; }
.schedule-table td.status-10 { background-color: #FFD700; }
.schedule-table td.status-11 { background-color: #FF6B6B; }

/* Export-Formular */
.export-form {
    text-align: center;
    margin: 20px 0;
}
/* Zusätzliche Styles für die Auswertungsseite */
.schedule-matrix-container {
    width: 95%;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-matrix {
    overflow-x: auto;
    margin: 20px 0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-size: 0.9em;
}

.schedule-table th {
    background-color: #003366;
    color: white;
    white-space: nowrap;
}

.selection-form button {
    margin: 0 10px;
    min-width: 120px;
}

.month-navigation {
    text-align: center;
    margin: 20px 0;
}
.selection-form .submit-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.selection-form .submit-button:hover {
    background-color: #002244;
}
 .doctor-count {
        position: absolute;
        bottom: 1px;
        right: 1px;
        font-size: 10px;
        padding: 1px 2px;
        border-radius: 2px;
 }
 .status-cell.current-hour {
    border-left: 2px solid #000000; 
	border-right: 2px solid #000000;
    left-shadow: 0 0 5px rgba(0, 0, 0, 1); /* Subtiler Schattierungseffekt */
	right-shadow: 0 0 5px rgba(0, 0, 0, 1); /* Subtiler Schattierungseffekt */
}
/* Auftragsplanung Styles */
.calendar-container_flz {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.calendar-container_flz h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #003366;
}