body {
    background-color: #3a3a3a;
    color: #dcdcb0;
    font-family: "Courier New", Courier, monospace;
    padding: 20px;
}

.header-image {
    background-image: url("/static/headhintergrund.jpg");
    background-position: center;
    background-size: 100% 100%;
    height: 160px;
    width: 100%;
    border-bottom: 3px solid #6e6e50;
    margin-bottom: 10px;
}

header {
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #6e6e50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 10px 15px;
}

h1 {
    margin: 0;
    font-size: 1.8em;
    color: #c0c060;
    text-shadow: 1px 1px #5a5a00;
}

nav a {
    color: #d4c45c;
    margin-right: 10px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #fffca8;
    text-decoration: underline;
}

nav a.active {
    background-color: #6e6e50;
    padding: 3px 8px;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border: 1px solid #666;
}

th, td {
    border: 1px solid #888;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #444;
    color: #fff680;
}

td {
    background-color: #2e2e2e;
}

tr:hover td {
    background-color: #3b3b3b;
}

button {
    background-color: #804000;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
    background-color: #a0522d;
    transform: scale(1.03);
}

input[type="text"], input[type="password"] {
    background-color: #222;
    color: #e2e2c0;
    border: 1px solid #555;
    padding: 5px;
    width: 150px;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #d4c45c;
    background-color: #2c2c2c;
}

.flash {
    background-color: #4c1f1f;
    border: 1px solid #aa5050;
    color: #ffb0b0;
    padding: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    border-radius: 4px;
    list-style: none;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav a {
        display: block;
        margin: 5px 0;
    }

    table, th, td {
        font-size: 14px;
    }

    button {
        width: 100%;
        margin-top: 5px;
    }

    input[type="text"], input[type="password"] {
        width: 100%;
    }
}

/* Chat reverse flow */
.chat-reverse ul {
    display: flex;
    flex-direction: column-reverse;
}
