/* Grundlayout */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f2f2f2, #e0e0e0);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Überschrift */
.boxtxt {
    color: #333;
    margin-bottom: 10px;
}

/* Login-Box */
.box {
    background: #fff;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-align: left;
    min-width: 300px;
}

/* Tabelle */
table {
    width: 100%;
}

td {
    padding: 8px 4px 8px 4px;
}


/* Eingabefelder */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Button */
.btns {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

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

/* Flash-Messages */
.mail-body {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    background-color: #fafafa;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.4;
}

/* Für HTML-Mails – weißer Hintergrund, zentriert, etwas edler */
.mail-html {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Für Text-Mails – grauer Hintergrund, Monospace-Schrift */
.mail-plain pre {
    background-color: #f5f5f5;
    color: #333;
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-radius: 6px;
    padding: 10px;
}

ul {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
    color: #d8000c;
    background-color: #ffbaba;
    border: 1px solid #d8000c;
    border-radius: 5px;
    display: inline-block;
    padding: 10px 20px;
}

.mail-content {
    font-family: sans-serif;
    line-height: 1.5;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.mail-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.mail-header {
            background: linear-gradient(to right, #eef2f3, #dfe6e9);
            border: 1px solid #ccc;
            border-radius: 10px;
            padding: 15px 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            text-align: center;
        }

        .mail-header h2 {
            margin: 0 0 10px 0;
            font-size: 1.4em;
            color: #333;
        }

        .mail-meta {
            font-size: 0.95em;
            color: #555;
            line-height: 1.6;
        }

        .mail-meta b {
            color: #333;
        }

        .mail-content {
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 15px;
            background-color: #fafafa;
            font-size: 15px;
            line-height: 1.5;
            max-height: 70vh;
            overflow-y: auto;
        }

        pre.mail-content {
            white-space: pre-wrap;
            word-wrap: break-word;
            font-family: "Courier New", monospace;
            background-color: #f5f5f5;
        }

        .back-btn {
            display: inline-block;
            margin-bottom: 15px;
            padding: 8px 14px;
            background-color: #4CAF50;
            color: white;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            transition: background 0.3s;
        }

        .back-btn:hover {
            background-color: #45a049;
        }

.form-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-container label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.form-container input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.save-btn {
    display: block;
    width: 100%;
    background: #3b7a57;
    color: #fff;
    border: none;
    padding: 10px;
    margin-top: 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.save-btn:hover {
    background: #2e6145;
}

/* Flash-Container */
.flash-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Flash-Box  */
.flash-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 14px;
    border-color: #2196f3;
    background-color: #e3f2fd;
    color: #0d47a1;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

/* Kategorien (optional) */
.flash-box.success {
    border-color: #4caf50;
    background-color: #e8f5e9;
    color: #256029;
}

.flash-box.error {
    border-color: #f44336;
    background-color: #ffebee;
    color: #b71c1c;
}

.flash-box.info {
    border-color: #2196f3;
    background-color: #e3f2fd;
    color: #0d47a1;
}

/* Dezente Einblendanimation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
