:root {
    --main: #6699cc;
    --main-dark: #336699;
    --main-light: #99cccc;
    --accent: #ffcc66;
}

/* Grundlayout */
body {
    font-family: Arial, sans-serif;
    margin: 10px;
    background: #f7f9fc;
}

/* Überschriften */
h1 {
    color: var(--main-dark);
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--main);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    border: 1px solid var(--main-dark);
}

.btn:hover {
    background: var(--main-dark);
}

.btn-accent {
    background: var(--accent);
    color: black;
    border-color: #d4a843;
}

.btn-accent:hover {
    background: #e6b85c;
}

/* Mobile */
@media (max-width: 800px) {
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 6px;
        background: white;
    }

    td {
        border: none;
        padding: 6px 0;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--main-dark);
        display: block;
    }
}

/* --- Layout-Container --- */
.edit-container {
    background: white;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px #ccd;
    max-width: 650px;
    margin: 0 auto;
}

h1 {
    color: var(--main-dark);
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    font-weight: bold;
    color: var(--main-dark);
}

.form-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--main-dark);
    border-radius: 4px;
    margin-top: 4px;
}

/* --- Anzahl-Bücher-Feld kompakt und disabled --- */
.form-group input.anzahl-field {
    width: 20ch;
    min-width: 20ch;
    background: #eef2f7;
    color: var(--main-dark);
    border: 1px solid var(--main-dark);
    border-radius: 4px;
}

/* --- Buttonbereich --- */
.button-row {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.button-row .btn {
    flex: 1;
    text-align: center;
}

/* Delete Button inline */
.delete-inline-btn {
    background: red;
    color: white;
    border: 1px solid darkred;
}

.delete-inline-btn:hover {
    background: darkred;
}

/* --- Modal Overlay --- */
#confirmModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
}

/* --- Modal Box --- */
#confirmBox {
    background: white;
    width: 420px;
    margin: 12% auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px #333;
    font-family: Arial, sans-serif;
}

#confirmBox h2 {
    margin-top: 0;
    color: var(--main-dark);
}

#confirmButtons {
    text-align: right;
    margin-top: 25px;
}

#confirmButtons button {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--main-dark);
}

#confirmButtons .cancel-btn {
    background: var(--main-light);
}

#confirmButtons .delete-confirm-btn {
    background: red;
    color: white;
    border-color: darkred;
}
