body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 20px;
    color: #333;
}

h1 {
    color: #444;
    text-align: center;
}


h2 {
    text-align: center;
}


a {
    text-decoration: none;
    color: red;
}

form {
    max-width: 800px;
    margin: 0 auto;
}

table {
    width: 100%; /* Tabelle füllt den gesamten verfügbaren Platz */
    border-collapse: collapse; /* Doppelte Rahmen entfernen */
    margin-top: 10px;
    table-layout: fixed; /* Feste Spaltenbreiten */
}

table th, table td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    vertical-align: middle;
    line-height: 1.4;
}

table td form {
    display: block;
}

table td form input[type="text"] {
    width: 100%; /* Eingabefeld füllt die Zelle */
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

table td form button {
    width: 95%; /* Button passt sich der Zellbreite an */
    padding: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

table td form button:hover {
    background-color: #0056b3;
}


table th {
    background-color: #f4f4f4;
}

th:nth-child(1), td:nth-child(1) { width: 8%; } /* Datum */
th:nth-child(2), td:nth-child(2) { width: 10%; } /* Uhrzeit */
th:nth-child(3), td:nth-child(3) { width: 20%; } /* Bezeichnung */
th:nth-child(4), td:nth-child(4) { width: 15%; } /* Ort */
th:nth-child(5), td:nth-child(5) { width: 20%; } /* Bemerkungen */
th:nth-child(6), td:nth-child(6) { width: 20%; } /* Name */
th:nth-child(7), td:nth-child(7) { width: 7%; } /* Aktionen */


input[type="text"], input[type="date"] {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="text"] {
    width: 300px;
}

button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}


.container {
    max-width: 1300px; /* Maximale Breite des Inhalts */
    margin: 0 auto; /* Zentriert den Container */
    padding: 20px; /* Abstand innen für zusätzlichen Puffer */
    background-color: #ffffff; /* Optional: Hintergrundfarbe */
    border-radius: 8px; /* Optional: Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Schatten für besseren Kontrast */
}


/* Fußzeile */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 10px 0;
    z-index: 1000; /* Damit die Fußzeile immer sichtbar bleibt */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.logout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.logout-button {
    background-color: #d9534f;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.logout-button:hover {
    background-color: #c9302c;
}





.guest-link-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.guest-link-box h3 {
    margin-bottom: 10px;
    color: #444;
}

.guest-link-box .guest-link input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
}

.guest-link-box .guest-link input:hover {
    background-color: #f1f1f1;
}


/* Gastlink-Bereich */
.guest-link {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.guest-link input {
    width: calc(100% - 100px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
}

.guest-link button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.guest-link button:hover {
    background-color: #0056b3;
}


.qr-code {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code img {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 5px;
    background-color: #fff;
    max-width: 150px;
    height: auto;
}

.add-appointment {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 70%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Zentriert den Container */
    box-sizing: border-box; /* Verhindert, dass die Padding das Layout beeinflusst */
}

/* Benutzerverwaltungstabelle */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-table th, .user-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.user-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.user-table td input {
    width: 90%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.user-table td input[readonly] {
    background-color: #f9f9f9;
    color: #555;
    cursor: default;
}
