/* Shop öffentlicher Bereich */
:root {
    --color-primary: #1a5f4a;
    --color-primary-hover: #0f3d30;
    --color-border: #ddd;
    --color-bg: #f8f9fa;
    --color-error: #c00;
    --color-success: #0a6;
}

* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: var(--color-bg); color: #222; line-height: 1.5; }
.container { max-width: 960px; margin: 0 auto; padding: 1rem; }

.shop-header {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.shop-header a { color: #fff; text-decoration: none; }
.shop-header a:hover { text-decoration: underline; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}
.product-card a { text-decoration: none; color: inherit; display: block; padding: 1rem; }
.product-card .product-actions { padding: 0 1rem 1rem; }
.product-card .product-actions .add-to-cart { margin-top: 0; }
.product-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-no-image { width: 100%; height: 180px; background: #eee; display: flex; align-items: center; justify-content: center; color: #666; }
.product-card h2 { font-size: 1.1rem; margin: 0.5rem 0; }
.product-card .price { font-weight: 600; color: var(--color-primary); }
.product-card .out-of-stock { color: var(--color-error); font-size: 0.9rem; }

.product-detail .product-image { max-width: 100%; max-height: 400px; border-radius: 8px; }
.product-detail .price { font-size: 1.25rem; font-weight: 600; }
.product-detail .description { margin: 1rem 0; }
.add-to-cart { margin-top: 1rem; }
.add-to-cart label { margin-right: 0.5rem; }
.add-to-cart input[type="number"] { width: 4rem; }
.btn, .add-to-cart button, form button[type="submit"] {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}
.btn:hover, .add-to-cart button:hover, form button[type="submit"]:hover {
    background: var(--color-primary-hover);
}
.error { color: var(--color-error); }
.success { color: var(--color-success); }
.out-of-stock { color: var(--color-error); }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.cart-table th { background: #eee; }
.cart-qty-form { display: inline-flex; gap: 0.25rem; align-items: center; }
.cart-qty-form input[type="number"] { width: 4rem; }
.cart-total { font-size: 1.1rem; margin: 1rem 0; }
.cart-total + .btn { margin-top: 0.5rem; }

.checkout-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; margin-top: 1rem; }
@media (max-width: 700px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form input, .checkout-form textarea { width: 100%; max-width: 400px; }
.checkout-summary { background: #fff; padding: 1rem; border: 1px solid var(--color-border); border-radius: 8px; height: fit-content; }
.checkout-summary ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkout-summary li { padding: 0.25rem 0; border-bottom: 1px solid #eee; }
.checkout-summary .total { margin-top: 0.5rem; font-size: 1.1rem; }
.payment-note { font-size: 0.9rem; color: #666; margin-top: 1rem; }

.order-confirmation { text-align: center; padding: 2rem; }
.order-confirmation .btn { margin-top: 1rem; }

.install-page .container { max-width: 760px; margin: 2rem auto; padding: 2rem; background: #fff; border-radius: 8px; border: 1px solid var(--color-border); }
.install-page .error { color: var(--color-error); }
.install-page input { width: 100%; padding: 0.5rem; }
.install-page button { margin-top: 1rem; padding: 0.5rem 1rem; }
.install-page .setup-actions {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fafafa;
}
.install-page .setup-run-form { margin: 0 0 0.6rem; }
.install-page .table-wrap { overflow-x: auto; }
.install-page .data-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.install-page .data-table th,
.install-page .data-table td { padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--color-border); text-align: left; }

.err { color: var(--color-error); font-size: 0.9rem; }
