/* ============================
   GLOBAL LAYOUT
============================ */
body {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    font-family: Arial, sans-serif;
}

main {
    max-width: 1200px;
    margin: 5px auto;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* ============================
   WRAPPER & INFO-BEREICHE
============================ */
.page-wrapper,
.product-wrapper {
    max-width: 1300px;
    margin: 20px auto;
    padding: 10px;
}

.info-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.center-title {
    text-align: center;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-value {
    font-weight: bold;
}

.restzeit {
    color: #880000;
}

/* User Info Box */
.user-info-box {
width: 60%;
background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    margin: 0 auto;

}

/* kompakte Tabelle */
.user-info-3col {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 14px; /* kompakter */
}

.user-info-3col th {
    background: #003366;
    padding: 8px 10px; /* kompakter */
    text-align: left;
    font-weight: 600;
color: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.user-info-3col td {
    background: #ffffff;
    padding: 6px 10px; /* kompakter */
    vertical-align: top;
    
}

/* Spaltenbreiten */
.user-info-3col th:nth-child(1),
.user-info-3col td:nth-child(1) {
    width: 15%;
}

.user-info-3col th:nth-child(2),
.user-info-3col td:nth-child(2) {
    width: 25%;
}

.user-info-3col th:nth-child(3),
.user-info-3col td:nth-child(3) {
    width: 60%;
}


/* ============================
   RESPONSIVE
============================ */
@media (max-width: 600px) {
    .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .zeiten-table {
        font-size: 18px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 16px;
    }
}

/* ============================
   FORMULARE
============================ */
.container,
.product-form,
.registration-form,
.zeit-form {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    margin: 0 auto;
}

.container {
    max-width: 800px;
}

.product-form,
.zeit-form {
    width: 600px;
}

.registration-form {
    width: 350px;
}

form input,
form select,
form textarea {
    width: 100%;
    margin-bottom: 1em;
    padding: 0.5em;
}

button {
    background: #003366;
    color: white;
    padding: 0.7em 1.5em;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

/* ============================
   PRODUKT-GRID (STABIL!)
============================ */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
   
}


/* ============================
   PRODUKT-KARTEN
============================ */
.product-card {
    width: 260px;
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    height: 330px;
    position: relative;
    overflow: hidden;
}



.product-card img {
    width: 60%;
    height: 70px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 6px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
}

.product-description {
    color: #555;
    font-size: 14px;
    height: 45px;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #2a7;
}

.product-category {
    font-size: 14px;
    color: #888;
}
.product-id-badge {
    background: #003366;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 5px 5px;
    border-radius: 8px;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* ============================
   ACTIONS
============================ */
.card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
align-items: center; /* WICHTIG: vertikal zentrieren */
    margin-top: auto;
}

.action-icon-cards {
    width: 25px !important;
    height: 25px !important;
}

.disabled-icon {
    cursor: not-allowed;
    opacity: 0.5;
}
.cart-btn-inline {
width:90%;
    background: #006600;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    white-space: nowrap;
    transition: 0.2s;
}
.cart-btn-inline:hover {
    background: #009900;
}
.cart-btn-disabled {
    width: 90%;
    height: 40px;
    background: #999;
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}


/* ============================
   SOLD BADGES
============================ */
.sold-card {
    opacity: 0.5;
    pointer-events: none;
}

.sold-badge {
    position: absolute;
    top: 10px;
    right: -10px;
    background: #ff0000;
    color: #fff;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 900;
    transform: rotate(15deg);
    border-radius: 4px;
    z-index: 20;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ============================
   BUTTONS & UI ELEMENTE
============================ */
.pill-btn,
.pill-btn-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pill-btn-big {
    width: 250px;
    height: 50px;
    font-size: 12px;
    font-weight: 600;
}

.pill-btn {
    width: 150px;
    height: 50px;
    font-size: 12px;
    font-weight: 600;
}

.add-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 260px;
    height: 52px;
    padding: 0 22px;

    background-color: #003366;
    color: #fff;

    font-size: 15px;
    font-weight: 600;

    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
 margin-bottom: 20px;
     box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}


/* ============================
   FILTER-BAR
============================ */
.filter-bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #eef5ff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.filter-bar input {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.filter-btn {
    background: #003366;
    color: white;
}

.reset-btn {
    background: #880000;
    color: white;
}
.button-row {
    display: flex;
    flex-direction: row;
    align-items: center;   /* gleiche Höhe */
    gap: 20px;             /* Abstand zwischen Buttons */
    margin-bottom: 20px;
}


/* ============================
   TOGGLE SWITCH
============================ */
.toggle-switch {
    position: relative;
    width: 55px;
    height: 28px;
    display: inline-block;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    transition: .3s;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #2e7d32;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Footer */
.footer-nav {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sticky Footer – ohne Breitenprobleme */
html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    width: 100%;
}
