/* ------------------- */
/*  BASIS-STYLING      */
/* ------------------- */

/* Globale Einstellungen */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: rgba(87, 77, 42, 0.14);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Zentrierte Seite */
.page-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

/* ------------------- */
/*  LOGO               */
/* ------------------- */

.logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo img {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ------------------- */
/*  HAUPT-CONTAINER    */
/* ------------------- */

.container {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.container_admin {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container h2 {
    text-align: center;
    color: #c20079;
    margin-bottom: 10px;
    font-size: 1.5em;
}

/* ------------------- */
/*  FORMULARFELDER     */
/* ------------------- */

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #c20079;
    font-size: 14px;
}

.form-group input,
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #fff);
    border-radius: 8px;
    background: rgba(87, 77, 42, 0.05);
    
}

/* ------------------- */
/*  BUTTONS            */
/* ------------------- */

button {
    background-color: rgba(158, 122, 98, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 8px;
    margin-top: 20px;
    width: auto;
    min-width: 130px;
    display: block;
    margin-top: 10px;
}

button:hover {
    background-color: #c20079;
}

/* ------------------- */
/*  ZENTRIERTE BUTTONS */
/* ------------------- */

.button-container {
    text-align: center;
    margin-top: 10px;
}
.button-container1 {
    text-align: center;
    color: #999;
    margin-top: 30px;
}
.button-container2 {
    text-align: center;
    color: #999;
    margin-bottom: 20px;
}

/* ------------------- */
/*  ALERT-NACHRICHTEN  */
/* ------------------- */

.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
}

.alert.error {
    background-color: #d9534f;
}

.alert.success {
    background-color: #c20079;
}

/* ------------------- */
/*  LINKS              */
/* ------------------- */

a {
    display: inline-block;
    margin: 12px 8px;
    font-size: 14px;
    color: #777;
    text-decoration: none;
}

a:hover {
    color: #c20079;
}

/* ------------------- */
/*  PASSWORT-ANZEIGE   */
/* ------------------- */

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #888;
    user-select: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #c20079;
}

/* ------------------- */
/*  CHECKBOX & LINK    */
/* ------------------- */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.checkbox-label input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

.modal-link {
    color: rgba(158, 122, 98, 0.8);
    text-decoration: underline;
    cursor: pointer;
    
}

.modal-link:hover {
    color: #c20079;
}

/* ------------------- */
/*  MODAL-BOX          */
/* ------------------- */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    width: 90%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    background-color: rgba(158, 122, 98, 0.5);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.modal-header h3 {
    margin: 0;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 1;
    text-align: center;
    opacity: 0.9;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
    color: #444;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-footer .modal-close {
    background-color: #c20079;
    color: white;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
}

.modal-footer .modal-close:hover {
    background-color: #c20079;
}

/* ------------------- */
/*  MOBILE OPTIMIERUNG  */
/* ------------------- */

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

    h2 {
        font-size: 1.4em;
        text-align: center;
    }

    .form-group input {
        padding: 12px;
        font-size: 16px;
    }

    button {
        padding: 14px 32px;
        font-size: 17px;
    }

    .alert {
        font-size: 14px;
        padding: 10px;
    }

    a {
        font-size: 14px;
        margin: 10px 5px;
    }

    .logo img {
        max-width: 100px;
        height: auto;
    }
}

/* Tablet-Ansicht */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        width: 90%;
        padding: 30px;
    }

    .logo img {
        max-width: 100px;
    }
}

/* ------------------- */
/*  Kontoauszug  */
/* ------------------- */
        .kontoauszug {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            font-size: 14px;
        }

        .kontoauszug th {
            text-align: left;
            padding: 8px;
            background-color: rgba(158, 122, 98, 0.2);
            border-bottom: 2px solid #ddd;
        }

        .kontoauszug td {
            padding: 10px 8px;
            border-bottom: 1px solid #eee;
        }

        .kontoauszug tr:hover {
            background-color: rgba(158, 122, 98, 0.05);
        }

        .betrag {
            text-align: right;
            font-weight: bold;
        }

        .positiv {
            color: #5cb85c;
        }

        .negativ {
            color: #d9534f;
        }

        .leer {
            text-align: center;
            color: #777;
            font-style: italic;
            padding: 20px 0;
        }
        
        .konto-header {
            text-align: center;
            margin-bottom: 10px;
        }

        .konto-subheader {
            text-align: center;
            font-size: 16px;
            color: #c20079;
            margin-bottom: 20px;
        }