/* Allgemeine Seitendefinitionen */
body {
    font-family: Verdana, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #f4f4f4;
    color: #333;
    font-size: 16px;
}

/* Header-Stil */
.header {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    margin-top: 20px;
}

/* Tabelle-Stil */
.zaehler-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead th {
    background-color: #f4f4f4;
    color: #333;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Responsives Tabellen-Design für kleine Bildschirme */
@media screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        border: 1px solid #ccc;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
    }
}

/* Button-Stile */
.reset-button, .delete-button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    width: calc(50% - 10px);
    box-sizing: border-box;
}

.reset-button {
    background-color: #4CAF50;
    color: white;
}

.reset-button:hover {
    background-color: #45a049;
}

.delete-button {
    background-color: #f44336;
    color: white;
}

.delete-button:hover {
    background-color: #d32f2f;
}

/* Nachrichten-Stile */
.success-message, .error-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 16px;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Registrierungsformular-Stil */
.registration-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.registration-form h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.registration-form input[type='text'],
.registration-form input[type='password'],
.registration-form input[type='submit'] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.registration-form input[type='submit'] {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    border: none;
}

.registration-form input[type='submit']:hover {
    background-color: #45a049;
}

/* Footer-Stil */
.footer {
    margin-top: 40px;
    font-size: 16px;
    text-align: center;
}

/* Admin-Login-Formular-Stil */
.admin-login-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
}

.admin-login-form h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.admin-login-form .form-group {
    margin-bottom: 15px;
}

.admin-login-form label {
    display: block;
    margin-bottom: 5px;
}

.admin-login-form input[type='password'],
.admin-login-form input[type='submit'] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.admin-login-form input[type='submit'] {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    border: none;
}

.admin-login-form input[type='submit']:hover {
    background-color: #45a049;
}

/* Zählerinfo-Stil */
.zaehler-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
}

.zaehler-info h2 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.zaehler-info .info {
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
}

.zaehler-info strong {
    color: #4CAF50;
    text-align: center;
}
