/* ==========================================================================
   1. SCHRIFTARTEN & DESIGN-TOKENS / RESET
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. GLOBALES LAYOUT & BASIS-TYPOGRAFIE
   ========================================================================== */
body {
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    color: #003366;
    background: #f0f4f8;
   
   /* background: radial-gradient(circle at top, #ffffff 0%, #f7f9fc 40%, #f4f4f4 100%); */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > * {
    width: 100%;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 5px auto;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

.h2-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.h3-title {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 12px;
}

.center-title {
    text-align: center;
    margin-bottom: 20px;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon svg {
    display: block;
}

.euro {
    margin-right: 4px;
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
}

/* ==========================================================================
   3. STRUKTUR, CONTAINER & WRAPPER
   ========================================================================== */
.container {
    max-width: 800px;
}

.page-wrapper,
.product-wrapper {
    max-width: 1300px;
    margin: 20px auto;
    padding: 10px;
}

.login-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrapper-middle {
    text-align: center;
    display: flex;
    align-items: center;
}

.product-container,
.admin-section {
    max-width: 1160px;
    width: 100%;
    margin: 30px auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.admin-section {
    max-width: 1200px;
}


.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-value {
    font-weight: bold;
}

.restzeit {
    color: #880000;
}

/* ==========================================================================
   4. FORMULARE & SPEZIAL-INPUTS
   ========================================================================== */
form input,
form select,
form textarea {
    width: 100%;
    padding: 0.5em;
}

.registration-form {
    width: 350px;
    align-items: center;
    text-align: center;
}

.user_form {
    width: 80%;
    margin: auto;
}

/* PIN / Code-Boxen */
.code-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.code-box {
    width: 45px;
    height: 55px;
    font-size: 25px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.code-box:focus {
    border-color: #003366;
    outline: none;
}

/* Passwort mit Toggle */
.pw-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pw-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.pw-toggle {
    position: absolute;
    right: 3px;
    top: 40%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: #444;
}

.pw-toggle:hover {
    color: #003366;
}

/* Datei-Upload */
.upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 20px 0;
}

.upload-label {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    user-select: none;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.25);
    transition: all 0.3s ease;
}

.upload-label:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5a657d, #374151);
    box-shadow: 0 6px 18px rgba(45, 55, 72, 0.35);
}

.upload-label:active {
    transform: translateY(0px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.file-name {
    font-size: 14px;
    color: #444;
    margin-left: 10px;
}

input[type="file"]#image,
#image {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

#preview {
    display: none;
    object-fit: cover;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fafafa;
}

/* ==========================================================================
   5. TABELLEN (Zeiten- & User-Info-Tabellen)
   ========================================================================== */
.zeiten-table {
    border-collapse: collapse;
}

.zeiten-table td {
    padding: 3px 12px;
}

.user-info-box {
    width: 100%;
    background: #fff;
    padding: 5px 15px 15px 15px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.user-info-3col,
.user-products-4col {
    margin-top: -15px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-size: 12px;
}

.user-info-3col th,
.user-products-4col th {
    background: #4a5568;
    padding: 3px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid #e6e6e6;
}

/* Desktop Spaltenbreiten & Tabellenabrundungen */
@media (min-width: 768px) {
    .user-info-3col th:nth-child(1),
    .user-info-3col td:nth-child(1) { width: 20%; padding-left: 20px; }
    .user-info-3col th:nth-child(2),
    .user-info-3col td:nth-child(2) { width: 35%; }
    .user-info-3col th:nth-child(3),
    .user-info-3col td:nth-child(3) { width: 45%; }

    .user-info-3col thead th:first-child { border-top-left-radius: 8px; }
    .user-info-3col thead th:last-child { border-top-right-radius: 8px; }
    .user-info-3col td { border-bottom: 2px solid #e6e6e6; }
    .user-info-3col td:first-child {
        border-bottom-left-radius: 8px;
        border-left: 2px solid #e6e6e6;
    }
    .user-info-3col td:last-child {
        border-bottom-right-radius: 8px;
        border-right: 2px solid #e6e6e6;
    }

    .user-products-4col th:nth-child(1),
    .user-products-4col td:nth-child(1) { width: 10%; }
    .user-products-4col th:nth-child(2),
    .user-products-4col td:nth-child(2) { width: 10%; padding-left: 10px; }
    .user-products-4col th:nth-child(3),
    .user-products-4col td:nth-child(3) { width: 35%; }
    .user-products-4col th:nth-child(4),
    .user-products-4col td:nth-child(4) {
        width: 20%;
        text-align: right;
        font-variant-numeric: tabular-nums;
        font-feature-settings: "tnum", "lnum";
    }
    .user-products-4col th:nth-child(5),
    .user-products-4col td:nth-child(5) {
        width: 25%;
        text-align: right;
        font-variant-numeric: tabular-nums;
        font-feature-settings: "tnum", "lnum";
        padding-right: 15px;
    }

    .user-products-4col th:first-child { border-top-left-radius: 8px; }
    .user-products-4col th:last-child { border-top-right-radius: 8px; }
    .user-products-4col tbody tr:last-child td:first-child { border-bottom-left-radius: 8px; }
    .user-products-4col tbody tr:last-child td:last-child { border-bottom-right-radius: 8px; }
    .user-products-4col td { border-bottom: 2px solid #e6e6e6; }
    .user-products-4col td:first-child { border-left: 2px solid #e6e6e6; }
    .user-products-4col td:last-child { border-right: 2px solid #e6e6e6; }
}

/* ==========================================================================
   6. PRODUKT-KARTEN & GRID
   ========================================================================== */
.product-grid {
    display: grid;
    justify-items: center;
    gap: 24px;
    padding: 10px;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.product-id-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #003366;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.print-status{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);

    width:28px;
    height:28px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
    background:rgba(255,255,255,.15);
}
.print-status-icon{
    width:14px;
    height:14px;
    fill:#fff;
}
.tooltip{
    position:absolute;
    top:120%;
    right:0;

    padding:6px 10px;
    border-radius:6px;

    background:#2d3748;
    color:#fff;

    font-size:12px;
    white-space:nowrap;

    opacity:0;
    visibility:hidden;
    transition:.2s;
}

.print-status:hover .tooltip{
    opacity:1;
    visibility:visible;
}

.product-title {
    overflow: hidden;
}

.product-description {
    color: #555;
    overflow: hidden;
}

.product-price {
    font-weight: bold;
    color: #2a7;
}

.product-minprice,
.product-minprice2 {
    color: #2a7;
}

.product-category,
.product-user {
    color: #555;
}

/* Desktop Produktkarte */
@media (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .product-card {
        gap: 5px;
        max-width: 280px;
        padding: 22px;
    }

    .product-card img {
        display: flex;
        align-items: center;
        width: 60%;
        height: 50px;
        object-fit: contain;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 5px;
    }

    .product-title {
        font-size: 0.9em;
        font-weight: bold;
    }

    .product-description {
        font-size: 0.7em;
        min-height: 30px;
        max-height: 55px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-minprice {
        font-size: 12px;
        margin-left: 5px;
    }

    .product-minprice2 {
        font-size: 12px;
    }

    .product-category {
        font-size: 0.8em;
    }

    .product-user {
        font-size: 0.7em;
        margin-bottom: 10px;
    }
}

/* 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);
}

/* ==========================================================================
   7. BUTTONS, ACTIONS & INTERAKTIVE ELEMENTE
   ========================================================================== */
button {
    padding: 0.7em 1.5em;
    border: none;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

button:hover {
    color: #000;
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff, #eaeaea);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.std-btn {
    background: linear-gradient(135deg, #f7f7f7, #e5e5e5);
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.small-btn {
    gap: 3px;
    display: inline-flex;
    margin: 2px;
    white-space: normal;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.x-small-btn {
    gap: 2px;
    display: inline-flex;
    margin: 2px auto;
    white-space: nowrap;
    padding: 2px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11px;
}

.all-print-btn {
    display: flex;
    gap: 5px;
    margin-right: 5px;
    text-align: right;
    margin-top: 15px;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.back-btn,
.print-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #5dd65d;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.save-btn {
    background: #003366;
    color: white;
}

.cancel-btn {
    background: white;
}

/* Pill Buttons */
.pill-btn,
.pill-btn-mid,
.pill-btn-big {
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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 {
    width: 80px;
    height: 30px;
    font-size: 9px;
    font-weight: 400;
    gap: 5px;
}

.pill-btn-mid {
    width: 150px;
    height: 50px;
    font-size: 10px;
    font-weight: 600;
}

.pill-btn-big {
    width: 260px;
    height: 52px;
    font-size: 12px;
    font-weight: 600;
    gap: 12px;
}

.add-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 240px;
    height: 50px;
    padding: 0 20px;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.25);
    transition: all 0.3s ease;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.add-user-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5a657d, #374151);
    box-shadow: 0 6px 18px rgba(45, 55, 72, 0.35);
}

.add-user-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* Button Container & Reihen */
.button-row,
.button-row-cart {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 0.6em;
}

.button-row-cart {
    justify-self: start;
}

.button-row-inline {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    margin-top: 15px;
}

.button-row-products {
    display: inline-flex;
    gap: 40px;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}

.card-actions_admin {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.card-actions_admin a,
.card-actions_admin .cart-btn-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    text-decoration: none;
    font-family: system-ui, -apple-system;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(200, 200, 200, 0.4);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-around;
}

.card-actions_admin .cart-btn-inline {
    width: 80%;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.25);
    color: #fff;
    height: 40px;
    white-space: nowrap;
}

.card-actions_admin a:hover,
.card-actions_admin .cart-btn-inline:hover {
    border-color: rgba(180, 180, 180, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.cart-btn-disabled {
    width: 90%;
    height: 40px;
    background: linear-gradient(135deg, #5dd65d, #3cb43c);
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.5;
    cursor: not-allowed;
}

.action-icon-cards {
    width: 25px !important;
    height: 25px !important;
}

.disabled-icon {
    cursor: not-allowed;
    opacity: 0.5;
}

.glass-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-family: system-ui, -apple-system;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(200, 200, 200, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.glass-btn.compact {
    height: 34px;
    justify-content: center;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(180, 180, 180, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   8. 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: -10px;
    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: #4a5568;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.footer-nav {
    background-color: #333;
    font-size: 14px;
    color: white;
    padding: 15px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-right {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & kleinere Desktops (<= 1024px) */
@media (max-width: 1024px) {
    header,
    .header-wrapper,
    .top-banner,
    .banner-container {
        width: 100% !important;
        max-width: 100% !important;
        /*overflow-x: hidden !important; */
        padding: 0 !important;
        margin: 0 !important;
    }

/*
    header img,
    .banner-container img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
    }

    .header-right,
    .user-info,
    .restzeit-box {
        max-width: 100% !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        text-align: center !important;
    }
 */

    main,
    .product-wrapper {
        max-width: 98% !important;
        width: 98% !important;
        /* margin: 0 !important; */
        margin-top: 20px !important;
        padding: 16px 8px !important;
    }

    .login-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container,
    .product-form,
    .registration-form,
    .zeit-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px 8px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .user-info-box {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .product-form input,
    .product-form textarea,
    .product-form select,
    .registration-form input,
    .registration-form textarea,
    .registration-form select {
        width: 100% !important;
        font-size: 18px !important;
        border-radius: 12px !important;
    }

    select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        font-size: 15px !important;
        line-height: 1.3 !important;
        display: block !important;
        -webkit-appearance: menulist-button !important;
        appearance: menulist-button !important;
        border-radius: 6px !important;
        background-color: #fff !important;
    }

    .cont-table {
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px !important;
        margin: 20px auto !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        border-radius: 12px !important;
    }

    table {
        width: 100%;
        border-spacing: 0 12px;
    }

    td, th {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }

    .button-row-inline,
    .button-row-products,
    .button-row-cart,
    .button-row {
        display: flex;
        gap: 16px;
        margin-top: 30px;
    }

    .button-row-cart {
        justify-self: auto;
    }

    .pill-btn-mid,
    .pill-btn {
        text-align: center !important;
        width: 80% !important;
        padding: 18px !important;
        font-size: 10px !important;
        border-radius: 14px !important;
    }

    .pill-btn-big,
    .add-user-btn {
        padding: 18px !important;
        font-size: 14px !important;
        border-radius: 14px !important;
    }
}

/* Mobile Geräte (<= 768px) */
@media (max-width: 768px) {
    .user-info-box {
        width: 100% !important;
        padding: 15px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    .user_form {
        width: 100% !important;
    }

    /* Tabelle in Card-Ansicht umwandeln */
    .user-info-3col,
    .user-info-3col tbody,
    .user-info-3col tr,
    .user-info-3col th,
    .user-info-3col td {
        display: block;
        width: 100%;
    }

    .user-info-3col thead {
        display: none;
    }

    .user-info-3col tr {
        background: rgba(60, 180, 60, 0.35);
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .user-info-3col td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #003366;
        display: block;
        margin-bottom: 4px;
        white-space: nowrap;
    }

    .user-info-3col td {
        padding: 3px !important;
        border-bottom: none;
    }

    /* Produktkarten mobil: 2-Spalten Grid */
    .product-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .product-id-badge {
        grid-column: 1 / 3;
    }

    .product-card img {
        grid-column: 1;
        grid-row: 2 / span 4;
        align-self: center;
        width: 90px;
        height: 90px;
        object-fit: contain;
    }

    .product-title {
        grid-column: 2;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .product-description {
        grid-column: 2;
        font-size: 12px;
    }

    .product-description:empty {
        display: none;
    }

    .product-price {
        grid-column: 2;
        font-size: 13px;
        margin-top: 4px;
    }

    .product-minprice {
        grid-column: 2;
        font-size: 10px;
        margin-left: 5px;
        margin-top: 4px;
    }

    .product-minprice2 {
        grid-column: 2;
        font-size: 10px;
        margin-top: -8px;
    }

    .product-category,
    .product-user {
        grid-column: 2;
        font-size: 11px;
    }

    .card-actions_admin,
    .card-actions {
        grid-column: span 2;
        margin-top: 8px;
        display: flex;
        gap: 10px;
    }

    .action-icon-cards {
        width: 20px;
        height: 20px;
    }

    .pill-btn-big,
    .add-user-btn {
        width: 100% !important;
    }

    .button-row-inline,
    .button-row-products,
    .button-row-cart,
    .button-row {
        flex-direction: column;
    }
}

/* Smartphone Portrait / schmal (<= 600px) */
@media (max-width: 600px) {
    .footer-content {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-right {
        flex-direction: column;
        gap: 15px;
    }
}

/* Sehr kleine Displays (<= 480px) */
@media (max-width: 480px) {
    td, th {
        padding: 1px !important;
        font-size: 10px !important;
    }
}


/* =========================================================
   GEMEINSAMES MODAL-SYSTEM (Löschen & Profilvervollständigung)
========================================================= */

/* Hintergrund-Overlay (Backdrop) */
.modal-overlay,
.modal-backdrop {
  display: flex;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Beide Klassen (.is-active und .active) aktivieren das Modal */
.modal-overlay.is-active,
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal-Körper / Karte */
.modal-card {
  background: #ffffff;
  color: #1e293b;
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modal-overlay.is-active .modal-card,
.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

/* Header & Titel */
.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.modal-subtitle,
.modal-desc {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0 0 16px 0;
}

.item-highlight {
  font-weight: 600;
  color: #0f172a;
}

/* Icon (z. B. Warn-Icon im Lösch-Modal) */
.icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.icon-wrapper svg {
  width: 24px;
  height: 24px;
}

/* Formular-Elemente (speziell für Profilvervollständigung) */
.modal-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-full-width {
  grid-column: 1 / -1;
}

.modal-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.modal-group input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.modal-group input:focus {
  outline: none;
  border-color: #2563eb;
}

/* Button-Leiste */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Basis-Styling für alle Modal-Buttons & Links */
.modal-actions button,
.modal-actions a,
.btn-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

/* 1. Abbrechen-Button (neutral) */
.btn-cancel,
.btn-modal-cancel {
  background: #ffffff;
  color: #374151;
  border-color: #e5e7eb;
}

.btn-cancel:hover,
.btn-modal-cancel:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* 2. Speichern / Primär-Button (Dunkelgrau / Akzent) */
.btn-primary,
.btn-modal-save {
  background: #1e293b;
  color: #ffffff;
}

.btn-primary:hover,
.btn-modal-save:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

/* 3. Löschen-Button (Gefahr / Rot) */
.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}