*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.status-offen { color: #ffffff; }
.status-entwurf, .status-storniert { color: grey; }
.status-teilweise_bezahlt { color: #f1c40f; }
.status-bezahlt { color: green; }
.status-ueberfaellig { color: red; }
.status-fehlerhaft { color: #f39c12; }

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.logo {
    display: block;
    max-width: 200px;
    margin: 0 auto 30px;
}

h1, h2, h3, h4 {
    color: #ff0033;
    text-align: center;
    margin-bottom: 20px;
}

.button, button, input[type="submit"] {
    display: inline-block;
    background-color: #ff0033;
    color: white;
    padding: 12px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.button:hover, button:hover, input[type="submit"]:hover {
    background-color: #cc002a;
}

.logout {
    background-color: #990000;
}

.logout:hover {
    background-color: #cc0000;
}

.button.disabled {
    background-color: #555555;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
    user-select: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 14px 12px;
    border-bottom: 1px solid #333;
    text-align: left;
}

th {
    background-color: #222;
    color: #ff0033;
}

label {
    display: block;
    margin-top: 15px;
    color: #ff0033;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: none;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: white;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.flex-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.text-center {
    text-align: center;
}

.login-box {
    width: 100%;
    max-width: 380px;
    background-color: #121212;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 0, 51, 0.3);
    text-align: center;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1f1f1f;
    color: #eee;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    outline: none;
    border-color: #ff0033;
    box-shadow: 0 0 8px #ff0033;
}

.login-box button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.password-reset {
    margin-top: 20px;
    font-size: 0.9rem;
}

.password-reset a {
    color: #ff0033;
    text-decoration: none;
    transition: color 0.3s ease;
}

.password-reset a:hover,
.password-reset a:focus {
    color: #cc002a;
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mt-sm { margin-top: 10px; }
.mb-sm { margin-bottom: 10px; }
.text-sm { font-size: 0.9rem; }

.packliste-card {
    background-color: #121212;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.15);
    margin-top: 25px;
}

.packliste-row-ok td {
    color: #1aff1a;
    font-weight: bold;
}

.packliste-row-open td {
    color: #ff0033;
    font-weight: bold;
}

.abgehakt-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #1a1a1a;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

.qr-box {
    background: #121212;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 12px rgba(255, 0, 51, 0.2);
    margin-bottom: 25px;
}

.qr-box img {
    max-width: 180px;
    margin-top: 15px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .flex-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .button, button, input[type="submit"] {
        width: 100%;
        text-align: center;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #444;
    }

    td {
        padding-left: 50%;
        position: relative;
        text-align: left;
        white-space: pre-wrap;
    }

    td::before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        color: #aaa;
        font-weight: bold;
        content: attr(data-label);
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
        margin: 20px auto;
    }

    .login-box {
        margin: 40px 20px;
        padding: 30px 20px;
    }

    input, select, textarea {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 375px) {
    body {
        font-size: 0.95rem;
    }

    h1, h2, h3 {
        font-size: 1.2rem;
    }

    .login-box {
        padding: 25px 15px;
    }
}
