/* ============================= */
/* Allgemeine Body-Styles        */
/* ============================= */
body {
    background-color: #080f13;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: white;
}

a {
    color: rgb(0, 89, 255);
    text-decoration: none;
}

/* ============================= */
/* Layout & Container            */
/* ============================= */
.container {
    padding: 50px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.textBlocks {
    padding-left: 25%;
}

.examplePlan {
    text-align: center;
}

.two-box {
    display: flex;
    gap: 20px;
}

/* ============================= */
/* Buttons                        */
/* ============================= */
button {
    text-align: center;
    color: black;
    background-color: white;
    border-radius: 5px;
    width: auto;
    flex-wrap: wrap;
    padding: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #f0f0f0;
}

.filterbuttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.plus-button, .delete-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.plus-button {
    background-color: #28a745;
    color: white;
}

.plus-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.delete-button {
    background-color: red;
    color: white;
}

.delete-button:hover {
    background-color: rgb(163, 0, 0);
    transform: scale(1.05);
}

/* ============================= */
/* Box-Komponenten               */
/* ============================= */
.box {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 60px;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.box-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.box-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
}

.box-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

.box-content p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ============================= */
/* Upload-Formular               */
/* ============================= */
form {
    background-color: #1b242b;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

form input[type="text"],
form input[type="file"],
form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: none;
    background-color: #2c3a44;
    color: white;
    font-size: 1em;
}

form textarea {
    resize: vertical;
}

/* Materialliste im Upload-Formular */
.material-row {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.material-row input {
    flex: 1;
    padding: 5px 8px;
    border-radius: 5px;
    border: none;
    background-color: #2c3a44;
    color: white;
}

.material-row button.set-quantity {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 8px;
    cursor: pointer;
}

.material-row button.set-quantity:hover {
    background-color: #218838;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control input.quantity-input {
    width: 60px;
    text-align: center;
    border-radius: 5px;
    border: none;
    background-color: #2c3a44;
    color: white;
    padding: 5px 0;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.quantity-control button:hover {
    background-color: #218838;
}

/* Feedback-Messages */
.errors, .success {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 10px;
}

.errors {
    background-color: #b30000;
    color: white;
}

.success {
    background-color: #28a745;
    color: white;
}

/* ============================= */
/* Element-Detailseite           */
/* ============================= */
.container h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #2c3a44;
}

.container h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3a44;
}

.container p, .container div {
    font-size: 0.95em;
    line-height: 1.5em;
    color: #333;
}

.container img {
    display: block;
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Zusätzliche Bilder */
.additional-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.additional-images img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: transform 0.2s;
    cursor: pointer;
}

.additional-images img:hover {
    transform: scale(1.05);
}

/* Materialliste anzeigen */
.material-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.material-list li {
    margin-bottom: 5px;
}

/* ============================= */
/* Lightbox für zusätzliche Bilder */
/* ============================= */
#lightbox {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.8);
    justify-content:center;
    align-items:center;
    z-index:1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius:5px;
}

/* ============================= */
/* Responsive Anpassungen        */
/* ============================= */
@media (max-width: 992px) {
    .container {
        gap: 25px;
    }
    .box {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .box {
        width: 90%;
        max-width: 350px;
    }

    .additional-images img {
        width: 100px;
        height: 100px;
    }
}