/* ==========================================================================
   Handarbeit.net – Stylesheet
   ========================================================================== */

:root {
    --bg: #fdf8f3;
    --surface: #ffffff;
    --surface-alt: #f7efe7;
    --text: #3d3530;
    --muted: #8a7e74;
    --primary: #e08a72;
    --primary-dark: #cf6e54;
    --accent: #7ba591;
    --accent-dark: #5f8a76;
    --border: #ece2d8;
    --danger: #c0584a;
    --shadow-sm: 0 1px 3px rgba(61, 53, 48, .08);
    --shadow: 0 8px 24px rgba(61, 53, 48, .10);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1180px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden, .skip-link {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
    position: fixed; top: .5rem; left: .5rem; width: auto; height: auto;
    background: var(--primary); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-danger { color: var(--danger); font-weight: 600; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
    background: var(--surface-alt); color: var(--text); font: inherit; font-weight: 600;
    cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
    text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-alt); }
.btn--small { padding: .5rem .9rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* --- Header --------------------------------------------------------------- */
.site-header {
    background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex; align-items: center; gap: 1.25rem;
    padding-top: .75rem; padding-bottom: .75rem;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.6rem; }
.main-nav { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .95rem; padding: .3rem 0; }
.main-nav a:hover { color: var(--primary-dark); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.search-form { display: flex; align-items: center; background: var(--surface-alt); border-radius: 999px; padding: .15rem .15rem .15rem .75rem; }
.search-form input { border: 0; background: transparent; padding: .35rem; font: inherit; width: 130px; outline: none; }
.search-form button { border: 0; background: transparent; cursor: pointer; font-size: 1rem; padding: .35rem .5rem; }
.icon-link, .cart-link { font-size: 1.3rem; position: relative; text-decoration: none; }
.icon-link:hover, .cart-link:hover { text-decoration: none; }
.cart-badge {
    position: absolute; top: -8px; right: -10px; background: var(--primary); color: #fff;
    font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

main { display: block; padding: 2rem 1.25rem 3.5rem; min-height: 60vh; }
.section { margin: 3rem 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section__head h2 { margin: 0; font-size: 1.6rem; }
.section__link { font-weight: 600; white-space: nowrap; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
    background: linear-gradient(135deg, #fbe9df, #f3ede2); border-radius: var(--radius);
    padding: 2.75rem; margin-top: 1rem;
}
.hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--primary-dark); margin: 0 0 .5rem; font-size: .85rem; }
.hero h1 { margin: 0 0 1rem; font-size: 2.5rem; }
.hero__text { font-size: 1.1rem; color: #5d524a; margin: 0 0 1.5rem; max-width: 46ch; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__art { display: flex; justify-content: center; }
.hero__art img { width: 260px; max-width: 100%; filter: drop-shadow(0 12px 20px rgba(61,53,48,.15)); }

/* --- USP ------------------------------------------------------------------ */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.usp__item { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }
.usp__item span { font-size: 1.6rem; }
.usp__item strong { display: block; }
.usp__item p { margin: 0; font-size: .85rem; color: var(--muted); }

/* --- Categories ----------------------------------------------------------- */
.category-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.category-chip {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: .6rem 1.25rem; min-width: 130px;
}
.category-chip:hover { border-color: var(--primary); text-decoration: none; }
.category-chip__name { font-weight: 700; color: var(--text); }
.category-chip__count { font-size: .8rem; color: var(--muted); }

/* --- Product grid & cards ------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.product-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card__media { position: relative; display: block; background: var(--surface-alt); aspect-ratio: 1 / 1; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-card__body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__category { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); font-weight: 700; }
.product-card__title { margin: 0; font-size: 1.1rem; }
.product-card__title a { color: var(--text); }
.product-card__desc { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.price { font-weight: 800; font-size: 1.15rem; }

.badge {
    position: absolute; top: .6rem; left: .6rem; font-size: .72rem; font-weight: 700;
    padding: .25rem .6rem; border-radius: 999px; color: #fff;
}
.badge--featured { background: var(--accent); }
.badge--soldout { background: var(--muted); }

/* --- Breadcrumb ----------------------------------------------------------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-dark); }

/* --- Catalog -------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.catalog__sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 90px; }
.sidebar-title { margin: 0 0 .75rem; font-size: 1.05rem; }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--text); }
.filter-list a:hover { background: var(--surface-alt); text-decoration: none; }
.filter-list a.is-active { background: var(--primary); color: #fff; }
.filter-count { font-size: .8rem; opacity: .7; }
.catalog__head { margin-bottom: 1.5rem; }
.catalog__head h1 { margin: 0 0 .25rem; }
.catalog__hint { margin: .25rem 0; color: var(--muted); }
.catalog__count { color: var(--muted); font-size: .9rem; }

/* --- Product detail ------------------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail__media { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.product-detail__media img { width: 100%; max-height: 460px; object-fit: contain; }

/* Produktgalerie (Detailseite) */
.product-gallery { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.product-gallery__main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.product-gallery__main--empty { cursor: default; }
.product-gallery__zoom { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .6rem; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(61, 53, 48, .72); border-radius: 999px; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.product-gallery__main:hover .product-gallery__zoom,
.product-gallery__main:focus-visible .product-gallery__zoom { opacity: 1; }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: .6rem; }
.product-gallery__thumb { width: 76px; height: 76px; padding: .3rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-alt); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.product-gallery__thumb img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.product-gallery__thumb:hover { border-color: var(--primary); }
.product-gallery__thumb.is-active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

/* Lightbox / Großansicht mit Zoom */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(28, 24, 21, .92); padding: 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox__stage { max-width: 90vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox__img { max-width: 90vw; max-height: 88vh; object-fit: contain; cursor: zoom-in; transform: scale(1); transition: transform .2s ease; }
.lightbox__img.is-zoomed { transform: scale(2.4); cursor: zoom-out; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; border-radius: 999px; line-height: 1; transition: background .15s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .32); }
.lightbox__close { top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; font-size: 1.8rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 2rem; }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.product-detail__info h1 { margin: .25rem 0 .75rem; font-size: 2rem; }
.product-detail__category { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); font-weight: 700; }
.product-detail__price { font-size: 1.8rem; font-weight: 800; margin: .5rem 0; }
.vat-note { font-size: .85rem; font-weight: 500; color: var(--muted); }
.stock { font-weight: 600; margin: .25rem 0 1.25rem; }
.stock--ok { color: var(--accent-dark); }
.stock--out { color: var(--danger); }
.product-detail__desc p { margin: 0 0 1rem; color: #5d524a; }
.add-to-cart { display: flex; align-items: flex-end; gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap; }
.qty-field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.qty-field input { width: 90px; padding: .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.product-detail__meta { list-style: none; padding: 1.25rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .5rem; color: #5d524a; }

/* --- Cart ----------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table th { text-align: left; padding: .9rem 1rem; background: var(--surface-alt); font-size: .85rem; }
.cart-table td { padding: .9rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 1rem; }
.cart-item__img { width: 60px; height: 60px; object-fit: contain; background: var(--surface-alt); border-radius: var(--radius-sm); }
.cart-item__warn { color: var(--danger); font-size: .8rem; margin: .25rem 0 0; }
.qty-input { width: 70px; padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.cart-item__actions { text-align: right; }
.btn-icon { background: var(--surface-alt); border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.btn-icon:hover { background: var(--danger); color: #fff; }
.cart-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }

.cart-summary, .checkout__summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.cart-summary h2, .checkout__summary h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.summary-list { margin: 0 0 .5rem; }
.summary-list > div { display: flex; justify-content: space-between; padding: .35rem 0; }
.summary-list dt, .summary-list dd { margin: 0; }
.summary-hint { font-size: .82rem; color: var(--accent-dark); background: var(--surface-alt); padding: .5rem .75rem; border-radius: var(--radius-sm); margin: .5rem 0; }
.summary-total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .75rem !important; font-weight: 800; font-size: 1.15rem; }
.summary-vat { font-size: .8rem; color: var(--muted); margin: .25rem 0 1rem; }

/* --- Checkout ------------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.checkout-login-hint { background: var(--surface-alt); padding: .9rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.checkout__form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 0 0 1.5rem; }
.checkout__form legend { font-weight: 700; padding: 0 .5rem; }
.summary-items { list-style: none; margin: 0 0 1rem; padding: 0 0 1rem; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: .5rem; }
.summary-items li { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; font-size: .9rem; }
.summary-items__qty { color: var(--muted); }
.checkout__note { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

/* --- Forms ---------------------------------------------------------------- */
.form, .checkout__form fieldset, .admin-form { display: flex; flex-direction: column; gap: 1rem; }
label { font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; gap: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=file], select, textarea {
    padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; background: var(--surface); color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
textarea { resize: vertical; }
.form-row { display: flex; gap: 1rem; }
.form-row__small { width: 130px; }
.form-row__grow { flex: 1; }
.field-error { color: var(--danger); font-weight: 600; font-size: .82rem; }

/* --- Auth ----------------------------------------------------------------- */
.auth-card { max-width: 420px; margin: 1rem auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.auth-card h1 { margin: 0 0 .25rem; }
.auth-card__hint { color: var(--muted); margin: 0 0 1.5rem; }
.auth-card__switch { text-align: center; margin-top: 1.25rem; }
.auth-demo { margin-top: 1.5rem; padding: 1rem; background: var(--surface-alt); border-radius: var(--radius-sm); font-size: .85rem; }
.auth-demo p { margin: .25rem 0 0; color: var(--muted); }

/* --- Order cards & status ------------------------------------------------- */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.order-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.order-card h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
address { font-style: normal; color: #5d524a; }
.order-items { width: 100%; border-collapse: collapse; }
.order-items th, .order-items td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.order-items th:last-child, .order-items td:last-child { text-align: right; }
.order-items tfoot td { border-bottom: 0; padding-top: .6rem; }
.order-items tfoot td:last-child { text-align: right; }
.order-items__total td { font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--border); }
.order-detail-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.status-pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-alt); color: var(--text); }
.status-pill--pending { background: #fdeccd; color: #946200; }
.status-pill--paid { background: #d7eede; color: #2f7d4f; }
.status-pill--shipped { background: #d6e7f7; color: #2f6394; }
.status-pill--completed { background: #dfe7d6; color: #4f7d2f; }
.status-pill--cancelled { background: #f6dcd8; color: #a23a2c; }

/* --- Success -------------------------------------------------------------- */
.success { max-width: 760px; margin: 0 auto; text-align: center; }
.success__icon { font-size: 3rem; }
.success__lead { font-size: 1.1rem; color: #5d524a; }
.success .order-card { text-align: left; }
.success__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Data tables ---------------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table th { text-align: left; padding: .8rem 1rem; background: var(--surface-alt); font-size: .82rem; }
.data-table td { padding: .8rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.thumb { width: 44px; height: 44px; object-fit: contain; background: var(--surface-alt); border-radius: 8px; }
.row-actions { display: flex; gap: 1rem; align-items: center; white-space: nowrap; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; background: var(--accent); color: #fff; padding: .1rem .5rem; border-radius: 999px; margin-left: .4rem; }

/* --- Empty state ---------------------------------------------------------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty p { margin: 0 0 1rem; }

/* --- Flash ---------------------------------------------------------------- */
.flash-stack { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.flash { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; }
.flash--success { background: #d7eede; color: #2f7d4f; }
.flash--error { background: #f6dcd8; color: #a23a2c; }
.flash--info { background: #d6e7f7; color: #2f6394; }
.flash-close { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; line-height: 1; }

/* --- Error page ----------------------------------------------------------- */
.error-page { text-align: center; padding: 3rem 1rem; max-width: 560px; margin: 0 auto; }
.error-page__code { font-size: 4rem; font-weight: 800; color: var(--primary); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.site-footer p { color: var(--muted); margin: .5rem 0; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: var(--text); }
.footer-note { font-size: .82rem; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 1rem; padding-bottom: 1.5rem; }
.footer-legal__nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-legal__nav a { color: var(--muted); font-size: .85rem; }

/* --- Produktsicherheits-Hinweis ------------------------------------------ */
.safety-notice { display: flex; gap: .6rem; align-items: flex-start; background: #fdeccd; color: #7a5200; border: 1px solid #f1d39a; border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 1.25rem 0; font-size: .88rem; line-height: 1.45; }
.safety-notice__icon { font-size: 1.15rem; line-height: 1.2; }
.hero__safety { margin-top: 1rem; font-size: .82rem; color: var(--muted); }

/* --- Kasse: Pflicht-Bestätigung ------------------------------------------ */
.checkout__confirm { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; margin: 0 0 .25rem; cursor: pointer; }
.checkout__confirm input { width: auto; flex: none; margin-top: .2rem; }

/* --- Kasse: Zahlungsart --------------------------------------------------- */
.checkout__payment { gap: .75rem; }
.payment-option { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.payment-option:hover { border-color: var(--accent); }
.payment-option input { width: auto; flex: none; margin-top: .25rem; }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--surface-alt); }
.payment-option--disabled { cursor: not-allowed; opacity: .7; }
.payment-option--disabled:hover { border-color: var(--border); }
.payment-option__body { display: flex; flex-direction: column; gap: .15rem; }
.payment-option__title { font-weight: 700; }
.payment-option__hint { font-size: .82rem; color: var(--muted); }

/* --- PayPal-Bezahlseite --------------------------------------------------- */
.paypal-checkout__lead { color: var(--muted); max-width: 60ch; }
.paypal-checkout__grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.paypal-checkout__pay { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.paypal-total { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.paypal-total strong { font-size: 1.4rem; }
.paypal-checkout__back { margin-top: 1.25rem; font-size: .88rem; }
.paypal-error { background: #f6dcd8; color: #a23a2c; border: 1px solid #eec3bc; border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .9rem; }

/* --- Zahlungshinweis / Bankverbindung ------------------------------------ */
.payment-instructions { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; text-align: left; }
.payment-instructions h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.payment-instructions--paid { background: #eef6f0; border-color: #cfe6d8; }
.bank-details { margin: 1rem 0 0; }
.bank-details > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.bank-details > div:last-child { border-bottom: 0; }
.bank-details dt { margin: 0; color: var(--muted); }
.bank-details dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.status-pill--small { font-size: .72rem; padding: .1rem .5rem; }

/* --- Rechtstext-Seiten ---------------------------------------------------- */
.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h2 { margin-top: 1.8rem; font-size: 1.15rem; }
.legal-placeholder { background: var(--surface-alt); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .88rem; color: var(--muted); }
.legal-placeholder code { background: var(--surface); padding: 0 .25rem; border-radius: 4px; }
/* Noch zu ergaenzende Pflichtangaben deutlich hervorheben. */
.legal-todo { background: #fff3cd; color: #7a5200; padding: 0 .25rem; border-radius: 3px; font-style: italic; }
.product-detail__delivery { margin-top: -.25rem; }
.auth-card__legal { margin: .25rem 0 .5rem; }

/* ==========================================================================
   Adminbereich
   ========================================================================== */
.admin-body { background: var(--surface-alt); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #2f2925; color: #f3ede2; padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.admin-brand { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 1.5rem; display: block; }
.admin-brand span { color: var(--primary); }
.admin-brand:hover { text-decoration: none; }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.admin-nav a { color: #d8cec4; padding: .65rem .85rem; border-radius: var(--radius-sm); font-weight: 600; }
.admin-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.admin-nav a.is-active { background: var(--primary); color: #fff; }
.admin-sidebar__foot { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.admin-sidebar__foot a { color: #d8cec4; }
.linkish { background: none; border: 0; color: #d8cec4; cursor: pointer; font: inherit; padding: 0; text-align: left; }
.linkish:hover { color: #fff; text-decoration: underline; }
.linkish--danger { color: var(--danger); }

.admin-main { display: flex; flex-direction: column; }
.admin-topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { margin: 0; font-size: 1.5rem; }
.admin-user { color: var(--muted); font-size: .9rem; }
.admin-content { padding: 2rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.stat-card__label { display: block; color: var(--muted); font-size: .85rem; }
.stat-card__value { display: block; font-size: 1.8rem; font-weight: 800; margin-top: .25rem; }

.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-panel__head h2 { margin: 0; font-size: 1.2rem; }
.admin-panel h3 { margin: 1.25rem 0 .5rem; font-size: 1rem; }
.admin-panel h3:first-child { margin-top: 0; }

.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 600; }
.admin-form__grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.admin-form__main, .admin-form__side { display: flex; flex-direction: column; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.admin-form__actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.admin-form__row { display: flex; gap: 1rem; }
.admin-form__row > label { flex: 1; }
.switches { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.switch { flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; }
.switch input { width: auto; }
.image-fields { display: flex; flex-direction: column; gap: 1rem; }
.image-fields__hint { margin: -.35rem 0 .1rem; }
.image-fields .image-field { padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-alt); gap: .4rem; }
.image-field { display: flex; flex-direction: column; gap: .5rem; }
.image-field__label { font-weight: 600; font-size: .92rem; }
.image-field__slot { font-size: .82rem; font-weight: 700; color: var(--accent-dark); }
.image-field__preview { width: 100px; height: 100px; object-fit: contain; background: var(--surface-alt); border-radius: var(--radius-sm); padding: .5rem; }
.image-fields .image-field__preview { background: var(--surface); }
.image-field__manual { font-size: .82rem; }

.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-tabs a { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; }
.filter-tabs a:hover { border-color: var(--primary); text-decoration: none; }
.filter-tabs a.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.admin-order-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.status-form { display: flex; gap: .5rem; }
.status-form select { flex: 1; }

/* ==========================================================================
   Verkäufer:innen (Profil, Artikel-Zuordnung)
   ========================================================================== */
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.account-head__actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

.product-card__seller { margin: 0; font-size: .82rem; color: var(--muted); }
.product-card__seller a { color: var(--accent-dark); font-weight: 600; }

.product-detail__seller { margin: 0 0 .75rem; color: var(--muted); }
.product-detail__seller a { color: var(--accent-dark); font-weight: 700; }

.seller-chip {
    display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem;
    padding: .85rem 1rem; background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
}
.seller-chip:hover { border-color: var(--primary); text-decoration: none; }
.seller-chip__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
    color: #fff; font-weight: 800; flex: none;
}
.seller-chip__text { display: flex; flex-direction: column; }

.seller-profile {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: linear-gradient(135deg, #fbe9df, #f3ede2);
    border-radius: var(--radius); padding: 2rem; margin-bottom: 1rem;
}
.seller-profile__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 84px; height: 84px; border-radius: 50%; background: var(--accent);
    color: #fff; font-size: 2.2rem; font-weight: 800; flex: none;
}
.seller-profile__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--primary-dark); margin: 0 0 .25rem; font-size: .8rem; }
.seller-profile__info h1 { margin: 0 0 .25rem; }
.seller-profile__bio { margin-top: .75rem; max-width: 70ch; }
.seller-profile__bio p { margin: 0 0 .75rem; color: #5d524a; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero__art { order: -1; }
    .hero__text { margin-left: auto; margin-right: auto; }
    .usp { grid-template-columns: repeat(2, 1fr); }
    .catalog { grid-template-columns: 1fr; }
    .catalog__sidebar { position: static; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout, .checkout, .paypal-checkout__grid, .admin-form__grid, .admin-order-grid { grid-template-columns: 1fr; }
    .cart-summary, .checkout__summary { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-sidebar__foot { border-top: 0; padding-top: 0; flex-direction: row; margin-left: auto; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; order: 3; }
    .main-nav { display: none; flex-direction: column; width: 100%; order: 4; padding-top: .5rem; }
    .main-nav.is-open { display: flex; }
    .header-inner { flex-wrap: wrap; }
    .header-actions { order: 2; }
    .search-form input { width: 90px; }
    .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { border-top: 1px solid var(--border); padding: .5rem 0; }
    .cart-table td { border: 0; display: flex; justify-content: space-between; align-items: center; }
    .cart-table td[data-label]::before { content: attr(data-label); font-weight: 700; }
    .cart-item { width: 100%; }
    .form-row { flex-direction: column; }
    .form-row__small { width: 100%; }
    .seller-profile { flex-direction: column; align-items: center; text-align: center; }
}

/* Anbieter-Kennzeichnung (privat/gewerblich) & Hinweise */
.provider-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; border: 1px solid transparent; vertical-align: middle; white-space: nowrap; }
.provider-badge--private { background: #fdeede; color: #9a5b1d; border-color: #f0d3ad; }
.provider-badge--commercial { background: var(--surface-alt); color: var(--accent-dark); border-color: var(--border); }
.provider-badge--sm { font-size: .66rem; padding: .05rem .4rem; }
.seller-profile__provider { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .35rem 0; }
.provider-note { background: #fdeede; border: 1px solid #f0d3ad; border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .92rem; color: #6f4a25; margin: 1rem 0; }
.provider-note--sm { font-size: .85rem; padding: .5rem .75rem; }
