/* E30-Talk Shop – Layout im Stil von Shopware 6 */

:root {
    --primary: #0042a0;
    --primary-dark: #00337c;
    --text: #2b3136;
    --muted: #6c757d;
    --border: #dadae5;
    --bg-soft: #f9f9f9;
    --success: #3cc261;
    --danger: #c2002f;
    --discount: #e52427;
    --radius: 3px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .08);
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
/* Header wie im Forum (e30-talk.com): Hintergrundbild mit E30-Front, Logo links */
.site-header { background: #55728b url(../img/header-bg.jpg) center / cover no-repeat; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 150px; }
.logo { display: flex; align-items: flex-end; gap: 4px; color: #fff; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo img { height: 150px; width: auto; max-width: 100%; }
/* Mitte des Schilds auf Höhe der Stoßstange im Logo (ca. 68 % der Logohöhe ≈ 48 px über Unterkante) */
.logo-shop {
    margin: 0 0 36px 14px; padding: 2px 10px; border-radius: var(--radius); line-height: 20px;
    background: rgba(255, 255, 255, .92); color: #2f4558; font-weight: 800; font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px;
}
.header-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.header-link, .header-account { color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.header-link:hover, .header-account:hover { color: #fff; }
.cart-button {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .25);
    border: 2px solid #fff;
}
.cart-button:hover { background: rgba(0, 0, 0, .45); text-decoration: none; }
.cart-badge {
    position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: #fff; color: #2f4558; font-size: 11px; font-weight: 700;
    line-height: 18px; text-align: center;
    box-shadow: 0 0 0 2px #2b3e50; /* dunkler Rand, damit sich die Plakette vom weißen Ring abhebt */
}

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 32px 0; margin-top: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.footer-links a { color: var(--text); }
.footer-note, .footer-copy { color: var(--muted); font-size: 13px; margin: 4px 0; }

/* Buttons & Formulare */
.btn {
    display: inline-block; border: 1px solid transparent; border-radius: var(--radius);
    padding: 0 20px; line-height: 40px; font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; text-align: center; transition: background .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-disabled { background: #e9ecef; color: var(--muted); cursor: not-allowed; }
.btn-block { display: block; width: 100%; }
.link-button {
    background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer;
    font: inherit; font-size: 13px; text-align: left;
}
.link-button:hover { text-decoration: underline; }

select, input[type=text], input[type=email], input[type=number], input[type=password], input[type=search], textarea {
    font: inherit; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 8px 12px; background: #fff; min-height: 40px;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 66, 160, .15); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.field span { font-weight: 600; font-size: 13px; }

/* Hinweise */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: #ebf9ef; border-color: var(--success); }
.alert-info { background: #e8f0fb; border-color: var(--primary); }
.alert-error { background: #fbe9ed; border-color: var(--danger); }

.page-title { font-size: 28px; margin: 0 0 24px; }
.empty-state { text-align: center; padding: 48px 0; }
.empty-state p { color: var(--muted); font-size: 16px; }

.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }

/* Badges & Preise */
.badge {
    display: inline-block; padding: 2px 10px; border-radius: var(--radius);
    font-size: 12px; font-weight: 700; color: #fff; background: var(--primary);
}
.badge-discount { background: var(--discount); }
.gallery-main .badge, .product-card-image .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.badge-inline { margin-right: 6px; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price-current { font-size: 18px; font-weight: 700; }
.price-large .price-current { font-size: 28px; }
.price-discount { color: var(--discount); }
.price-old { color: var(--muted); font-size: 14px; }
.price-large .price-old { font-size: 18px; }
.price-hint { margin: 6px 0 0; font-size: 13px; }
.tax-note { color: var(--muted); font-size: 13px; margin: 4px 0 20px; }
.tax-note a { color: var(--muted); text-decoration: underline; }

.delivery { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 20px; }
.delivery .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.delivery-ok .dot { background: var(--success); }
.delivery-none { color: var(--danger); }
.delivery-none .dot { background: var(--danger); }

/* Produktseite */
.product-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.gallery-main { position: relative; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.gallery-zoom { display: block; width: 100%; padding: 16px; border: 0; background: none; cursor: zoom-in; }
.gallery-zoom img { margin: 0 auto; max-height: 560px; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumb {
    width: 80px; height: 80px; padding: 4px; background: #fff; cursor: pointer;
    border: 1px solid var(--border); border-radius: var(--radius);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--primary); }

.buybox-manufacturer { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.buybox-title { font-size: 28px; margin: 4px 0 12px; }
.buybox-short { margin: 0 0 20px; }
.buy-form { display: flex; gap: 10px; margin-bottom: 20px; }
.qty-select { width: 80px; }
.btn-buy { flex: 1; }
.buybox-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; font-size: 13px; color: var(--muted); margin: 0; }
.buybox-meta dd { margin: 0; }

.variant-select { margin-bottom: 20px; }
.variant-label { display: block; font-weight: 600; margin-bottom: 6px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 16px; color: var(--text); }
.variant-option:hover { border-color: var(--primary); text-decoration: none; }
.variant-option.is-active { border: 2px solid var(--primary); padding: 5px 15px; font-weight: 600; }
.variant-option.is-soldout { color: var(--muted); text-decoration: line-through; }

/* Tabs */
.product-info { margin-top: 48px; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab {
    background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 20px;
    font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; margin-bottom: -1px;
}
.tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { padding: 24px 0; max-width: 900px; }
.tab-heading { font-size: 20px; margin: 0 0 16px; }
.rich-text p:first-child { margin-top: 0; }
.props-table { border-collapse: collapse; width: 100%; max-width: 600px; }
.props-table th, .props-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.props-table th { width: 40%; font-weight: 600; background: var(--bg-soft); }

/* Artikelübersicht */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
    display: flex; flex-direction: column; color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .15s;
}
.product-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.product-card-image { position: relative; padding: 16px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.product-card-image img { max-height: 100%; object-fit: contain; }
.product-card-body { padding: 0 16px 16px; }
.product-card-title { font-size: 16px; margin: 0 0 6px; }
.product-card-short { color: var(--muted); margin: 0 0 10px; }

/* Warenkorb */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-head, .cart-item {
    display: grid; grid-template-columns: 100px minmax(0, 1fr) 100px 120px 120px; gap: 16px; align-items: center;
}
.cart-head { grid-template-columns: minmax(0, 1fr) 100px 120px 120px; font-weight: 600; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cart-head span:not(:first-child), .cart-item-unit, .cart-item-total { text-align: right; }
.cart-head span:nth-child(2) { text-align: left; }
.cart-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-image { border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; }
.cart-item-name { font-weight: 600; color: var(--text); }
.cart-item-sku, .cart-item-delivery { font-size: 13px; color: var(--muted); }
.cart-item-unit .price-old { display: block; font-size: 12px; }
.cart-item-total { font-weight: 700; }

.cart-summary { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 16px; }
.cart-summary h2 { font-size: 18px; margin: 0 0 16px; }
.summary-list { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0 0 20px; }
.summary-list dd { margin: 0; padding-left: 12px; text-align: right; }
.summary-list small { color: var(--muted); font-weight: 400; }
.summary-total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); padding-top: 10px; }
.summary-tax { color: var(--muted); font-size: 13px; }
.continue-link { display: block; text-align: center; margin-top: 12px; }

/* Inhaltsseiten */
.content-page { max-width: 900px; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .88);
    display: flex; align-items: center; justify-content: center; padding: 40px 60px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 10px; }
.lightbox-close { top: 10px; right: 16px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Responsiv */
@media (max-width: 1199px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-layout .cart-summary { position: static; max-width: 480px; margin-left: auto; width: 100%; }
}
@media (max-width: 991px) {
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .cart-summary { position: static; }
}
@media (max-width: 640px) {
    .container { padding: 0 14px; }
    .header-inner { height: 90px; gap: 8px; }
    .logo img { height: 80px; }
    .logo-shop { display: none; }
    .header-actions { gap: 10px; }
    .header-link { display: none; }
    .page-title, .buybox-title { font-size: 22px; }
    .cart-head { display: none; }
    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        grid-template-areas: "img info info" "img qty total";
        row-gap: 8px;
    }
    .cart-item-image { grid-area: img; }
    .cart-item-info { grid-area: info; }
    .cart-item-qty { grid-area: qty; }
    .cart-item-unit { display: none; }
    .cart-item-total { grid-area: total; }
    .lightbox { padding: 40px 10px; }
}

/* Konto & Admin */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.account-head .page-title { margin-bottom: 4px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table th { font-size: 13px; background: var(--bg-soft); }
.data-table .num { text-align: right; white-space: nowrap; }
.status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-offen { background: #fff4d6; color: #8a5a00; }
.status-bezahlt { background: #e8f0fb; color: var(--primary); }
.status-bestellt { background: #f1ebfb; color: #5b3a9e; }
/* Admin: Blättern zwischen Bestellungen */
.order-nav-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.order-nav-bar .breadcrumb { margin-bottom: 0; }
.order-pager { display: flex; gap: 8px; flex-shrink: 0; }
.order-pager .btn { padding: 6px 12px; font-size: 13px; min-height: 0; }
.order-pager .is-disabled { opacity: .4; pointer-events: none; }
.status-versendet { background: #ebf9ef; color: #1e7a3a; }
.status-storniert { background: #f1f1f4; color: var(--muted); }
.text-danger { color: var(--danger); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-label { color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 16px; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.admin-nav a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a:hover { color: var(--text); text-decoration: none; }
.admin-nav a.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-thumb { width: 64px; }
.admin-thumb img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; }
.admin-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.admin-sidebar .field { margin-bottom: 12px; }
.admin-form textarea { width: 100%; resize: vertical; }
.admin-form input[type=text], .admin-form input[type=number], .admin-form input[type=email],
.admin-form input[type=password], .admin-form select { width: 100%; }
.form-grid .field.field-sku { grid-column: span 2; }
.form-grid .field.field-label { grid-column: span 4; }
.form-grid .field.field-third { grid-column: span 2; }
.discount-box { background: var(--bg-soft); border-radius: var(--radius); padding: 12px 14px 0; }
.variant-flags { flex-direction: row; flex-wrap: wrap; gap: 4px 24px; }
.variant-title { font-size: 15px; margin: 0 0 8px; }
.variant-sep { border: 0; border-top: 1px dashed var(--border); margin: 16px 0; }
.variant-add { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.variant-add summary { cursor: pointer; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.checkbox-danger span { color: var(--danger); }

.editor { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.editor-toolbar[hidden] { display: none; }
.editor-toolbar button { font: inherit; font-size: 13px; min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--radius); background: none; cursor: pointer; }
.editor-toolbar button:hover { background: #fff; border-color: var(--border); }
.editor-toolbar button:disabled { opacity: .4; cursor: default; }
.editor-toolbar .editor-source { margin-left: auto; }
.editor-toolbar .is-active { background: var(--primary); color: #fff; }
.editor-area { min-height: 220px; padding: 12px 14px; outline: none; }
.editor-area[hidden] { display: none; }
.editor-textarea { border: 0 !important; border-radius: 0 0 var(--radius) var(--radius) !important; font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 220px; }
.editor-textarea[hidden] { display: none; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 16px; }
.image-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.image-item .field { margin-bottom: 8px; }
.image-item .checkbox { margin: 6px 0; }
.image-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--bg-soft); margin-bottom: 6px; }
.image-preview img { max-height: 100%; object-fit: contain; }
.upload-field input[type=file] { padding: 10px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.upload-count { color: var(--primary); }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); font-size: 13px; }
.filter-tabs a:hover { border-color: var(--primary); text-decoration: none; }
.filter-tabs a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-tabs span { opacity: .7; margin-left: 2px; }
.filter-search { display: flex; gap: 8px; }
.filter-search input { width: 260px; }
.pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 8px; }
.pagination a { min-width: 34px; padding: 4px 10px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); }
.pagination a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.admin-sidebar { display: flex; flex-direction: column; gap: 20px; }
.admin-sidebar-sticky { position: sticky; top: 16px; }
/* Admin: Versandkosten */
.shipping-rates { width: 100%; border-collapse: collapse; margin: 4px 0 6px; }
.shipping-rates th { font-size: 13px; text-align: left; background: var(--bg-soft); padding: 8px; }
.shipping-rates td { padding: 4px 8px 4px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.shipping-rates td:nth-child(-n+2) { width: 34%; }
.admin-form .shipping-rates input { width: 100%; margin: 0; }
.shipping-rates.has-error { outline: 1px solid var(--danger); }
.rate-label { font-size: 13px; color: #495057; padding-left: 8px; }
.zone-new summary { cursor: pointer; color: var(--primary); margin: 0; }
.zone-new[open] summary { margin-bottom: 12px; }
.zone-country-list { font-size: 14px; margin: 12px 0 4px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
.action-card form { margin-bottom: 12px; }
.action-card .page-title { display: flex; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; word-break: break-all; }
.nowrap { white-space: nowrap; }
.quick-action { margin: 0; }
.btn-quick {
    font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer;
    padding: 3px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; color: #495057;
}
.btn-quick:hover { border-color: var(--primary); color: var(--primary); }
.delete-form { margin-top: 24px; }
.field-hint { font-size: 12px; color: #495057; }
.checkbox-small { margin: 2px 0 0; font-size: 12px; font-weight: 400; }
.checkbox-small input { width: 14px; height: 14px; margin-top: 2px; }
.mt-8 { margin-top: 8px; }

/* Versand & Zahlung */
.shipping-page { max-width: 1100px; }
.info-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 32px; }
.info-chips li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; background: #e8f0fb; color: var(--primary); font-weight: 600; }
.section-heading { font-size: 22px; margin: 32px 0 6px; }
.section-intro { margin: 0 0 16px; color: #495057; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.zone-card { border: 1px solid var(--border); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; background: #fff; }
.zone-head h3 { font-size: 18px; margin: 0; }
.zone-countries { font-size: 13px; color: #495057; margin: 4px 0 0; }
.zone-countries summary { cursor: pointer; color: var(--primary); }
.zone-countries p { margin: 6px 0 0; }
.zone-highlight { margin: 16px 0; padding: 14px 16px; border-radius: 6px; background: var(--bg-soft); border-left: 4px solid var(--primary); }
.zone-price { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.zone-caption { font-size: 13px; color: #495057; }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.rate-table td small { display: block; color: #495057; font-size: 12px; }
.rate-table .num { text-align: right; font-weight: 700; white-space: nowrap; }
.zone-tax { margin: 12px 0 0; font-size: 12px; color: #495057; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pay-card { border: 1px solid var(--border); border-radius: 6px; padding: 20px; }
.pay-card h3 { font-size: 18px; margin: 0 0 8px; }
.pay-card p { margin: 0 0 8px; }
.pay-benefit { font-weight: 600; color: #1e7a3a; }
.good-to-know { padding-left: 20px; }
.good-to-know li { margin-bottom: 6px; }

/* Widerrufsfunktion */
/* Widerrufsfunktion: dezent, aber als eigenes Element abgesetzt (§ 356a BGB: hervorgehoben, leicht zugänglich) */
.footer-links a.footer-withdraw {
    display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
    padding: 1px 10px; border: 1px solid #b8bec6; border-radius: var(--radius);
    color: var(--text); font-weight: 600; background: #fff;
}
.footer-links a.footer-withdraw:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.withdrawal-page { display: flex; flex-direction: column; gap: 16px; }
.withdrawal-page .page-title { margin-bottom: 0; }
.withdrawal-form { max-width: 720px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.data-table tr.is-handled td { opacity: .55; }
.data-table tr.is-abroad td { font-weight: 700; }
.data-table td .status { margin-left: 8px; }

/* PayPal-Zahlseite */
.pay-box { max-width: 480px; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.pay-amount strong { font-size: 24px; }
.paypal-buttons { min-height: 50px; }
.pay-alt { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; color: var(--muted); }
.pay-alt .link-button { font-size: 14px; }
.page-title .status { vertical-align: middle; font-size: 13px; margin-left: 8px; }

@media (max-width: 991px) {
    .admin-grid, .admin-form-layout { grid-template-columns: 1fr; }
    .admin-sidebar-sticky { position: static; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .account-head { flex-direction: column; }
    .data-table thead { display: none; }
    .data-table tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
    .data-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
    .data-table td[data-label]::before { content: attr(data-label); font-weight: 600; text-align: left; }
}

/* Kasse */
.checkout-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.checkout-steps li {
    flex: 1; display: flex; align-items: center; gap: 10px; padding-bottom: 10px;
    border-bottom: 3px solid var(--border); color: var(--muted); font-weight: 600;
}
.checkout-steps li.is-current { border-color: var(--primary); color: var(--text); }
.checkout-steps li.is-done { border-color: var(--success); }
.step-number {
    display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
    border-radius: 50%; background: var(--border); color: #fff; font-size: 13px; flex: none;
}
.is-current .step-number { background: var(--primary); }
.is-done .step-number { background: var(--success); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 20px; }
.section-title { font-size: 18px; margin: 4px 0 0; }
.form-section { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.form-section legend { font-size: 18px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.form-section[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .field { grid-column: span 3; }
.form-grid .field-full { grid-column: span 6; }
.form-grid .field-zip { grid-column: span 2; }
.form-grid .field-city { grid-column: span 4; }
.field small { font-weight: 400; color: var(--muted); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12px; }
.form-hint { color: var(--muted); font-size: 13px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin: 4px 0 12px; }
.checkbox input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.checkbox-terms { margin-top: 8px; }
.btn-large { line-height: 48px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.info-box { background: #e8f0fb; border-radius: var(--radius); padding: 16px 20px; }
.info-box-login { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.info-box-login .btn { flex: none; }

.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: #fff; }
.card-title { font-size: 16px; margin: 0 0 12px; }
.card-meta { color: var(--muted); margin: 8px 0; }
.address { font-style: normal; }
.address-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.address-cards h3 { font-size: 14px; margin: 16px 0 6px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.payment-option input { margin-top: 4px; }
.payment-option small { display: block; color: var(--muted); }

.confirm-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.confirm-item img { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; }
.confirm-item-info { display: flex; flex-direction: column; }
.confirm-item-qty { color: var(--muted); white-space: nowrap; }
.confirm-item + a { display: inline-block; margin-top: 10px; }

.mini-items { list-style: none; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.mini-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-bottom: 12px; }
.mini-items img { border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; background: #fff; }
.mini-price { font-weight: 600; }

.finish { max-width: 820px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.finish .card { width: 100%; }
.finish .page-title { margin-bottom: 0; }
.bank-box { border-color: var(--primary); }
.bank-details { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; margin: 0 0 12px; }
.bank-details dt { color: #495057; }
.finish .form-hint, .withdrawal-page .form-hint { color: #495057; }
.bank-details dd { margin: 0; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.order-table td:first-child { width: 40px; white-space: nowrap; }
.order-table .num { text-align: right; white-space: nowrap; }
.order-total td { font-weight: 700; }

@media (max-width: 991px) {
    .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .checkout-steps li { font-size: 0; justify-content: center; }
    .checkout-steps .step-number { font-size: 13px; }
    .form-grid .field, .form-grid .field-zip, .form-grid .field-city,
    .form-grid .field.field-sku, .form-grid .field.field-label, .form-grid .field.field-third { grid-column: span 6; }
    .address-cards { grid-template-columns: 1fr; }
    .info-box-login { flex-direction: column; align-items: flex-start; }
    .confirm-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .confirm-item-qty { grid-column: 2; }
    .bank-details { grid-template-columns: 1fr; gap: 0; }
    .bank-details dd { margin-bottom: 8px; }
    .footer-links { column-gap: 16px; }
    .shipping-rates th:nth-child(3), .shipping-rates td:nth-child(3) { display: none; }
    .shipping-rates td:nth-child(-n+2) { width: 50%; }
    .footer-links a.footer-withdraw svg { display: none; }
}
