.familycash-app{

    max-width:900px;
    margin:0 auto;
    padding:16px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;

}



.familycash-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;

}



.familycash-header h2{

    margin:0;
    font-size:28px;

}



.familycash-month{

    font-size:14px;
    color:#777;

}




/* ===========================
   PERSONENKACHELN
=========================== */


.familycash-cards{

    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:25px;

}



.fc-card{

    background:#fff;
    border-radius:18px;
    padding:16px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    transition:.2s;

}



.fc-card:hover{

    transform:translateY(-2px);

}



.fc-card-header{

    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:18px;

}



.fc-card-header h3{

    margin:0;
    font-size:20px;
    font-weight:700;

}





/* ===========================
   BUTTONS
=========================== */


.fc-card-actions{

    display:flex;
    justify-content:center;
    gap:10px;

}



.fc-btn{

    width:48px;
    height:48px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    font-size:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;

}



.fc-btn:hover{

    transform:scale(1.08);

}



.fc-btn-income{

    background:#dff7e6;

}



.fc-btn-expense{

    background:#fde3e3;

}



.fc-btn-transactions{

    background:#ececec;

}





/* ===========================
   BUCHUNGSFORMULAR
=========================== */


.familycash-form-wrapper{

    margin-bottom:25px;

}



.fc-transaction-form{

    background:#fff;
    padding:18px;
    border-radius:18px;
    box-shadow:0 8px 24px rgba(0,0,0,.06);

}



.fc-form-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;

}



.fc-form-header h3{

    margin:0;

}



.fc-close-form{

    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#eee;
    cursor:pointer;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;

}



.fc-close-form:hover{

    transform:scale(1.1);
    background:#ddd;

}





.fc-row{

    margin-bottom:14px;

}



.fc-row label{

    display:block;
    margin-bottom:6px;
    font-size:13px;
    font-weight:600;

}



.fc-row input,
.fc-row textarea{

    width:100%;
    padding:12px;
    border:1px solid:#ddd;
    border-radius:12px;
    box-sizing:border-box;
    font-size:15px;

}



.fc-person-select{

    display:flex;
    flex-wrap:wrap;
    gap:8px;

}



.fc-person-btn{

    padding:10px 14px;
    border-radius:10px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;

}



.fc-person-btn.active{

    background:#111;
    color:#fff;

}



.fc-submit{

    width:100%;
    padding:14px;
    border:none;
    border-radius:14px;
    background:#111;
    color:#fff;
    font-size:16px;
    cursor:pointer;

}





/* ===========================
   PERSÖNLICHE UMSÄTZE
=========================== */


.fc-person-transactions{

    display:none;
    margin-top:15px;
    padding-top:12px;
    border-top:1px solid #eee;

}



.fc-person-transaction{

    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #f4f4f4;

}



.fc-income{

    color:#118a43;
    font-weight:bold;

}



.fc-expense{

    color:#d32222;
    font-weight:bold;

}



.fc-delete-transaction{

    margin-left:10px;
    border:none;
    background:#fde3e3;
    border-radius:8px;
    padding:5px 8px;
    cursor:pointer;

}



.fc-empty{

    color:#888;

}





/* ===========================
   MOBILE
=========================== */


@media(max-width:600px){


    .familycash-app{

        padding:10px;

    }



    .familycash-cards{

        grid-template-columns:1fr;

    }



    .fc-btn{

        width:44px;
        height:44px;
        font-size:20px;

    }


}