/**
 * Public / Shop / Account – gemeinsame Styles
 * Footer, Basis-Variablen und Komponenten für Public-Bereich
 */

/* CSS Variables (Public) – gleiche Basis wie Admin für Konsistenz */
:root {
    --color-primary: #008060;
    --color-primary-hover: #006e52;
    --color-secondary: #6c757d;
    --bg-body: #f7f2ea;
    --bg-white: #ffffff;
    --text-primary: #202223;
    --text-secondary: #6d7175;
    --text-muted: #8c9196;
    --border-color: #e1e3e5;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Public Footer – nur Struktur (Farben im THEME-Block) */
footer,
.public-footer {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl) var(--spacing-xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col { }
.footer-heading {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}
.footer-nav a {
    text-decoration: none;
    font-size: var(--font-size-sm);
}
.footer-social {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-icon svg {
    display: block;
}
.footer-muted {
    font-size: var(--font-size-sm);
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; gap: var(--spacing-lg); }
    .public-footer { padding: var(--spacing-lg); }
}

/* Footer: Spalte 4 = Social (nur Überschrift + Icons) */
.footer-col-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-col-social .footer-social {
    gap: var(--spacing-sm);
}

/* Footer: Spalte 5 = Logo (eigenständig, rechtsbündig, gleiche Höhe wie Social) */
.footer-col-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}

.footer-col-logo .footer-logo {
    display: inline-block;
    max-width: 100px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.footer-col-logo .footer-logo:hover {
    opacity: 1;
}

.footer-col-logo .footer-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.footer-col-logo .footer-logo-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

@media (min-width: 521px) {
    .footer-col-logo .footer-logo {
        max-width: 110px;
    }
}

@media (max-width: 520px) {
    .footer-col-social,
    .footer-col-logo {
        align-items: center;
    }
    .footer-col-logo .footer-logo {
        max-width: 90px;
    }
}

/* Checkout layout */
@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
}

/* Account layout – Sidebar + Content (Buybox-Style) */
.account-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl) var(--spacing-2xl);
}
.account-sidebar-wrap {
    position: sticky;
    top: var(--spacing-md);
    align-self: start;
}
.account-sidebar-wrap.buybox-card .account-sidebar,
.account-sidebar-wrap.buybox-card .account-nav {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}
.account-nav-card-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.account-nav-title {
    margin-top: 0;
}
.account-nav-logout {
    margin-top: var(--spacing-sm);
}
.account-delete-btn {
    color: var(--color-warning, #b45309);
}
.account-content-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}
.account-section-card,
.account-form-card {
    max-width: 520px;
}
.address-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.address-item-card {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white, #fff);
}
.address-item--default {
    border-left: 3px solid var(--color-success, #22c55e);
}
.address-item-body {
    margin-bottom: var(--spacing-sm);
}
.address-item-name {
    margin: 0 0 var(--spacing-xs);
    font-weight: 600;
}
.address-item-text,
.address-item-phone {
    margin: 0;
    color: var(--text-muted);
}
.address-item-phone {
    font-size: 0.9em;
    margin-top: var(--spacing-xs);
}
/* Address actions: niemals full width + gleiche Höhe für <a> und <button> */
.address-actions {
    justify-content: flex-end;
    margin-top: 12px;
    gap: var(--spacing-sm, 10px);
}
.address-actions .btn,
.address-actions button.btn {
    width: auto !important;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 36px;
}
.address-actions .btn.btn-sm,
.address-actions button.btn.btn-sm {
    padding: 8px 14px;
    min-height: 34px;
}
.address-actions button.btn {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}
.address-actions .btn.btn-block,
.address-actions button.btn.btn-block {
    width: auto !important;
}
.address-action-form {
    display: inline-flex;
}
.input-readonly {
    background: var(--bg-table-header, #f5f5f5);
    cursor: not-allowed;
}
.account-sidebar,
.account-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}
.account-sidebar a,
.account-nav a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
}
.account-sidebar a:hover,
.account-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-body);
}
.account-sidebar a.active,
.account-nav a.active {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    background: var(--bg-body);
    border-left: 3px solid var(--color-primary);
    margin-left: -3px;
    padding-left: calc(var(--spacing-md) + 3px);
}
.account-main {
    min-width: 0;
}
.account-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
.account-page-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}
.account-content {
    padding: 0;
}
@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
        padding: 0 var(--spacing-md);
    }
    .account-sidebar-wrap {
        position: static;
    }
    .account-sidebar,
    .account-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .account-sidebar a.active,
    .account-nav a.active {
        margin-left: 0;
        padding-left: var(--spacing-md);
        border-left: none;
        border-bottom: 2px solid var(--color-primary);
    }
}

/* Produktkarte ausgegraut bei Ausverkauft */
.product-card-sold-out {
    opacity: 0.75;
}
.product-card-sold-out:hover {
    opacity: 0.85;
}

/* ===== THEME: dunkles Foliencenter-Grau (Header/Nav/Footer), Content hell ===== */
:root {
    --shell: #595959;
    --shell-border: #707070;
    --shell-ink: #ffffff;
    --shell-muted: #d0d0d0;
    --accent: #b38b3e;
}

.site-header {
    background: transparent;
}

.header-top {
    background: #f6f3ee;
    color: #222;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-top .header-link {
    color: #222;
}

.header-top .header-link:hover {
    color: var(--accent);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.header-brand:hover {
    color: var(--accent);
}

/* Logo in der Top-Bar schwarz (nur diese Zeile, Navbar unverändert) */
.header-top .header-brand,
.header-top .header-brand *,
.topbar .site-logo,
.topbar .site-logo a,
.topbar .site-logo * {
    color: #000;
}
.header-top .header-brand:hover,
.topbar .site-logo a:hover {
    color: var(--accent);
}

.header-actions,
.top-actions {
    margin-left: auto;
    display: flex;
    gap: 16px;
    align-items: center;
}
.top-actions {
    margin-right: 8px;
}
.top-actions a,
.header-actions a {
    position: relative;
}

.header-nav {
    position: relative;
    z-index: 10;
    overflow: visible;
    color: #fff;
    padding: 6px 0;
}

.header-nav a {
    color: var(--shell-ink);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
}

.header-nav-inner {
    overflow: visible;
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Nav item (wrapper for link + optional dropdown) */
.header-nav .nav-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.header-nav .nav-item .nav-link {
    display: inline-block;
}
.header-nav .nav-item--dropdown {
    position: relative;
}

/* Dropdown panel */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin-top: 2px;
    padding: var(--spacing-sm) 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 50;
}
.nav-dropdown-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    text-decoration: none;
}
.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    background: var(--bg-body);
    color: var(--color-primary);
}
.nav-dropdown-toggle {
    display: none;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
}
.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop: hover opens dropdown */
@media (min-width: 769px) {
    .nav-item--dropdown:hover .nav-dropdown {
        display: block;
    }
}

/* Mobile: dropdown stacked, toggle opens */
@media (max-width: 768px) {
    .nav-item--dropdown {
        flex-wrap: wrap;
    }
    .nav-dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .nav-item--dropdown.is-open .nav-dropdown {
        display: block;
        position: static;
        margin-top: var(--spacing-xs);
        margin-left: 0;
        width: 100%;
        min-width: 0;
    }
}

.header-nav-inner a,
.header-nav a {
    display: inline-block;
    position: relative;
    z-index: 2;
}
.header-nav a {
    font-size: 15px;
    padding: 10px 2px;
    text-decoration: none;
    color: var(--shell-ink);
    opacity: 0.95;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
    opacity: 1;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.9;
    transition: width 0.2s ease;
}

.header-nav a.active::after {
    width: 100%;
    height: 2px;
}

/* Dropdown muss dunklen Text haben (Header-Nav ist hell/weiß) */
.nav-dropdown {
    background: #fff;
    color: #222;
}
.nav-dropdown a,
.nav-dropdown-link {
    color: #222;
    opacity: 1;
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown-link:hover {
    background: #f3f3f3;
    color: #111;
}
.nav-dropdown-link.active {
    font-weight: 600;
}
.header-nav .nav-dropdown a,
.header-nav a.nav-dropdown-link {
    color: #222 !important;
}

.header-link,
.header-cart {
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-link {
    color: var(--shell-ink);
}

.header-link:hover {
    color: var(--accent);
}

.header-link svg {
    fill: currentColor;
}

.cart-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 6px;
}
.top-actions .cart-badge,
.header-actions .cart-badge {
    flex-shrink: 0;
    min-width: 1.25em;
    text-align: center;
}

/* Footer: nur Theme-Variablen, eine Quelle */
.site-footer .footer-heading,
.site-footer h4,
.public-footer .footer-heading,
.public-footer h4 {
    color: var(--shell-ink);
    letter-spacing: 0.04em;
    font-weight: 700;
}

.site-footer,
.public-footer,
footer {
    color: var(--shell-muted);
}

.site-footer a,
.public-footer a,
footer a {
    color: var(--shell-muted);
}

.site-footer a:hover,
.public-footer a:hover,
footer a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* ===== LAYOUT ALIGNMENT (Container-Breiten, Content-Hintergrund) ===== */
/* LAYOUT: sticky footer (no white gap on short pages) */
html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f6f3ee;
}

.admin-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main.shell-container {
    flex: 1 0 auto;
}

.site-footer,
footer.public-footer,
.public-footer {
    margin-top: auto;
}

:root {
    --maxw: 1200px;
}

.shell-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.header-top-inner,
.header-nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-footer .footer-grid,
.public-footer .footer-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 26px 20px;
}

/* ===== STICKY HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Shop: Kategorie-Tabs nur mobil (Desktop: aus, nur Header-Nav) */
.shop-cat-tabs-mobile {
    display: none;
}

@media (max-width: 780px) {
    .shop-cat-tabs-mobile {
        display: flex !important;
    }
}

/* Shop: Beliebte Kategorien (SEO-Links unter Intro) */
.shop-popular-categories .shop-popular-cat-link {
    color: var(--color-link, #2563eb);
    text-decoration: none;
}
.shop-popular-categories .shop-popular-cat-link:hover {
    text-decoration: underline;
}

/* Shop: Intro bei Unterkategorien (einklappbar) */
.shop-intro-details {
    cursor: pointer;
}
.shop-intro-details summary {
    list-style: none;
    font-weight: 500;
}
.shop-intro-details summary::-webkit-details-marker {
    display: none;
}
.shop-intro-details summary::before {
    content: "▸ ";
    font-size: 0.85em;
}
.shop-intro-details[open] summary::before {
    content: "▾ ";
}

/* Footer-Layout: main füllt Platz, footer nie fixed */
main {
    flex: 1;
    padding-bottom: 96px;
}

footer {
    position: relative;
}

/* Account/Kundenbereich: niemals aus dem Flow ziehen */
.account-page,
.account-layout,
.account-wrapper,
.account-container,
.account-content {
    position: relative;
    min-height: 0;
}

.account-page,
.account-layout,
.account-wrapper {
    height: auto;
    min-height: unset;
}

/* Sicherheitsabstand nur im Account-Bereich (Footer-Überlappung vermeiden) */
.account-page {
    padding-bottom: 240px;
}

/* Alerts (Zahlung Banner etc.) */
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0;
}
.alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--text-primary);
}
.alert-warning {
    background: rgba(234, 179, 8, 0.12);
    color: var(--text-primary);
}
.alert-danger,
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--text-primary);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: var(--font-weight-medium);
}
.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
}
.badge-warn,
.badge-warning {
    background: rgba(234, 179, 8, 0.25);
    color: #a16207;
}
.badge-muted,
.badge-secondary {
    background: var(--border-color);
    color: var(--text-secondary);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}
.badge-status-received { background: #e5e7eb; color: #374151; }
.badge-status-in-progress { background: #dbeafe; color: #1e40af; }
.badge-status-ready { background: #fed7aa; color: #9a3412; }
.badge-status-shipped { background: #d1fae5; color: #065f46; }
.badge-status-cancelled { background: #fee2e2; color: #991b1b; }

/* ===== Produktdetail: Beschreibungs-Card (Optik wie obere Preis/Warenkorb-Card, nur Layout hier) ===== */
.product-desc-card {
    margin-top: 20px;
    padding: 0;
}
.product-desc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 -1px 0 var(--border-color);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    font-size: var(--font-size-lg);
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
    color: var(--text-primary);
}
.product-desc-header span:last-child {
    line-height: 1.2;
}
.product-desc-header .icon {
    font-size: 1.1em;
}
.product-desc-body {
    padding: 18px 20px;
    line-height: 1.6;
    white-space: pre-line;
    color: var(--text-primary);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}
.product-desc-body p {
    margin: 0 0 12px;
}
.product-desc-body p:last-child {
    margin-bottom: 0;
}
.product-desc-body ul,
.product-desc-body ol {
    margin: 8px 0 12px;
    padding-left: 20px;
}
.product-desc-body li {
    margin: 6px 0;
}

/* === Product detail (stabilisiertes Layout) === */
.container.product-page {
    width: 100%;
    max-width: var(--maxw, 1200px);
    margin: 0 auto;
    padding: 0;
}
.product-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
    width: 100%;
}
.product-top > * {
    min-width: 0;
}
.product-media {
    min-width: 0;
}
.product-media-main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    background: #f4f2ee;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.product-media-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    display: block;
    cursor: pointer;
    border-radius: 20px;
}
.product-media-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.product-media-thumbs .gallery-thumb {
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    background: var(--bg-white);
}
.product-media-thumbs .gallery-thumb img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: cover;
}
.product-media-thumbs .gallery-thumb.active,
.product-gallery .gallery-thumb.active {
    border-color: rgba(15, 109, 77, 0.55);
    box-shadow: 0 0 0 3px rgba(15, 109, 77, 0.14);
}
.buybox {
    min-width: 0;
}
.buybox .buybox-card {
    width: 100%;
}
.product-description {
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    background: #fff;
    border-radius: 14px;
}
.product-description h2 {
    margin: 0 0 10px 0;
    padding: 0 18px;
    font-size: 1.05rem;
}
.product-description .product-description-body {
    padding: 0 18px 18px;
    max-width: 100%;
}
.buybox-no-personalization {
    margin: 0 0 12px 0;
    font-size: var(--font-size-sm);
}
/* Produktseite: Beschreibung klassisch begrenzt, linksbündig */
.product-page .product-description {
    max-width: 1170px;
    width: 100%;
    margin: 32px 0 0;
    padding: 26px 32px;
}
.product-page .product-description h2,
.product-page .product-description h3 {
    margin-bottom: 12px;
}
.product-page .product-description .product-description-body {
    max-width: 100%;
}
@media (max-width: 768px) {
    .product-page .product-description {
        padding: 18px 20px;
    }
}
@media (max-width: 900px) {
    .product-top {
        grid-template-columns: 1fr;
    }
}
/* Legacy-Klassen falls noch irgendwo referenziert */
.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}
.product-detail-grid > * {
    min-width: 0;
}
.product-detail-right {
    width: 100%;
    justify-self: stretch;
    min-width: 0;
}
.product-detail-right .buybox-card {
    width: 100%;
}
/* Produkttitel in der Buybox (Shopify/Etsy-Style) */
.product-buybox-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.25rem 0;
}
.product-buybox-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}
.product-detail-grid .product-description,
.product-description--full {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 22px;
  padding: 18px !important;
}
/* Section-Wrapper begrenzen (Admin-Card-Feel), nicht nur innerer body */
.product-description.product-description--full {
  max-width: 860px;
  margin: 0 auto;
}
/* description: span grid but keep readable width */
.product-detail-grid .product-description--full {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  justify-self: center;
  margin-top: 22px;
}
.product-description--full h2 {
  margin: 0 0 10px 0;
}
.product-description--full .product-description-body {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.65;
  white-space: pre-line;
}
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

.product-description {
  margin-top: 18px;
  padding: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  max-width: 760px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  background: #fff;
  border-radius: 14px;
}
.product-description h2 {
  font-size: 1.05rem;
  margin: 0 0 8px 0;
}
/* Lesebreite für Beschreibung (Admin-Card-Feel); Section kann breiter sein */
.product-description-body {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: 0.1px;
  font-variant-ligatures: none;
  /* Für spätere echte <ul><li>-Listen nutzbar */
  --bullet-gap: 0.25em;
  color: rgba(0,0,0,0.78);
  font-size: 0.98rem;
  word-break: break-word;
  white-space: pre-line;
}
.product-description-body br + br {
  margin-top: 10px;
}
.product-description-body strong {
  font-weight: 700;
}
.product-description-body em {
  font-style: italic;
}
.product-description-body br {
  display: block;
  content: "";
  margin-top: 6px;
}
.product-lead {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(0,0,0,0.72);
  max-width: 42em;
}

/* legacy thumb fallbacks (safe) */
.product-gallery .gallery-thumb,
.product-thumbs img,
.product-gallery-thumbs img,
.thumb img {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
}
.product-gallery .gallery-thumb img {
  border-radius: 8px;
}
.product-gallery .gallery-thumb.active,
.product-thumbs a.active img,
.product-gallery-thumbs a.active img {
  border-color: rgba(15,109,77,0.55);
  box-shadow: 0 0 0 3px rgba(15,109,77,0.14);
}

/* lightbox modal */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.img-modal.is-open {
  display: block;
}
.img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
.img-modal-img {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  background: #fff;
}
.img-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10000;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}
.img-modal-close:hover {
  background: rgba(255,255,255,0.22);
}

/* === Buybox === */
.buybox-card {
  display: block;
  width: 100%;
  justify-self: stretch;
  box-sizing: border-box;
  min-width: 0;
  align-self: stretch;
  flex: 1 1 auto;
  background: var(--bg-white, #ffffff);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--border-radius-lg, 14px);
  padding: var(--spacing-lg, 20px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.buybox-card > * {
  width: 100%;
}
.buybox-card,
.buybox-card * {
  box-sizing: border-box;
}
.buybox-card input,
.buybox-card select,
.buybox-card textarea {
  max-width: 100%;
}
.buybox-divider {
  margin: 16px 0;
  height: 1px;
  background: var(--border-color);
}
.buybox-details {
  margin-top: 0;
  padding-bottom: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.buybox-details-header {
  display: block;
  width: 100%;
  position: relative;
  padding-right: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  list-style: none;
}
.buybox-details-header::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 0;
}
.buybox-details:not([open]) .buybox-details-header::after {
  content: "▸";
}
.buybox-details-header::-webkit-details-marker {
  display: none;
}
.buybox-details-header::marker {
  content: none;
}
.buybox-details-body {
  max-width: 100%;
  overflow: hidden;
  white-space: pre-wrap;
  tab-size: 4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.55;
  color: inherit;
  margin: 0;
  padding: 6px 0 0 0;
}
.buybox-details-body p,
.buybox-details-body ul,
.buybox-details-body ol,
.buybox-details-body li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.buybox-details[open] .buybox-details-body {
  margin-top: 10px;
}
.buybox-desc-line {
  margin: 0 0 8px;
}
.buybox-desc-spacer {
  height: 24px;
}

.buybox-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(0,0,0,0.70);
  margin: 10px 0 4px;
}
.buybox-card input,
.buybox-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.02);
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.buybox-card input:focus,
.buybox-card select:focus {
  outline: none;
  background: #fff;
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 0 0 3px rgba(140,122,91,0.18);
}

.buybox-section {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.buybox-section + .buybox-section {
  margin-top: 12px;
}
.buybox-section-options {
  background: rgba(0,0,0,0.015);
}
.buybox-section-options ul {
  margin: 8px 0 10px 18px;
}
.buybox-section-options li {
  margin: 4px 0;
}
.buybox-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(0,0,0,0.70);
  margin-bottom: 10px;
}

.buybox-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.buybox-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.buybox-section-purchase {
  background: #fff;
}
.buybox-section-purchase .buybox-price-row {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.buybox-section-purchase .buybox-price {
  font-size: 1.35rem;
}

.buybox-card button,
.buybox-card .btn,
.buybox-card input[type="submit"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 700;
  border: 0;
  box-shadow: none;
  background: #0f6d4d;
  color: #fff;
}
.buybox-card button:hover,
.buybox-card .btn:hover,
.buybox-card input[type="submit"]:hover {
  background: #0d5f43;
}
.buybox-card .qty-row,
.buybox-card .quantity-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.buybox-card .qty-row input,
.buybox-card .quantity-row input {
  max-width: 110px;
}

.price-note {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.60);
  margin-top: 6px;
  margin-bottom: 10px;
}

.product-info-list.product-info-bottom {
  margin-top: 12px;
  margin-bottom: 0;
  padding-left: 20px;
  list-style: disc;
  font-size: 0.9rem;
  color: #555;
}

.product-faq-link {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #555;
}
.product-faq-link a {
  text-decoration: underline;
}
.product-faq-link p {
  margin: 0 0 4px 0;
}
.product-faq-link p:last-child {
  margin-bottom: 0;
}

.stock-row-between {
  margin: 10px 0;
}

/* === Utility / Fixes === */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
.buybox-taxhint {
  display: none !important;
}

/* Buttons dürfen niemals unterstrichen sein */
.btn,
.btn:hover,
.btn:focus,
.btn:active {
  text-decoration: none;
}

/* Keine Unterstreichung für Action-Links im Account */
.account-page a {
  text-decoration: none;
}
.account-page a:hover {
  text-decoration: underline;
}
.account-page a.btn:hover {
  text-decoration: none;
}

/* === Header / Nav (modern) === */
.site-header,
.public-header,
header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.site-header .container,
.public-header .container,
header .container {
  padding-top: 14px;
  padding-bottom: 14px;
}
header nav a,
.site-header nav a,
.public-header nav a,
.nav a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(0,0,0,0.78);
  text-decoration: none;
  font-weight: 600;
}
header nav a:hover,
.site-header nav a:hover,
.public-header nav a:hover,
.nav a:hover {
  background: rgba(0,0,0,0.04);
}
header nav a.active,
.site-header nav a.active,
.public-header nav a.active,
.nav a.active {
  background: rgba(15,109,77,0.10);
  color: rgba(0,0,0,0.86);
}
header nav,
.site-header nav,
.public-header nav {
  gap: 6px;
}

/* header spacing (site-header specific) */
.site-header .header-top-inner,
.site-header .header-nav-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* header nav links - admin feel (less pill, more tab) */
.site-header nav a {
  border-radius: 8px;
}
.site-header nav a.active {
  background: rgba(15,109,77,0.08);
}

/* === Header & Footer unified (dark admin style) === */
.site-header,
.site-footer,
footer {
  color: #ffffff;
}
.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Topbar full-width: Container-Bremse aus, damit Konto/Warenkorb ganz rechts anliegen */
.site-header .header-top,
.site-header .header-top-inner,
.top-actions,
.header-actions {
  overflow: visible;
}
.site-header .header-top-inner {
  max-width: none;
  width: 100%;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 24px;
  padding-right: 72px;
}
.site-header .header-nav-inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-footer,
footer {
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header a,
.site-footer a,
footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.site-header a:hover,
.site-footer a:hover,
footer a:hover {
  color: #ffffff;
}

.site-header nav a,
.site-header nav.header-nav a.nav-link {
  position: relative;
  padding: 6px 12px;
  line-height: 1.1;
  font-weight: 600;
  border-radius: 6px;
  color: #fff;
}
.site-header nav a.active,
.site-header nav.header-nav a.nav-link.active {
  color: #c9a24d;
  background: transparent;
}
.site-header nav a.active::after,
.site-header nav.header-nav a.nav-link.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  background: #c9a24d;
  border-radius: 2px;
}

/* === Shop-Liste: Header + Sort === */
.shop-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}
.shop-list-header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--spacing-sm);
}
.shop-list-title {
  margin: 0;
  font-size: var(--font-size-xl);
}
.shop-list-count {
  font-size: var(--font-size-sm);
}
.shop-list-sort-form {
  flex-shrink: 0;
}
.shop-sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #fff;
  font-size: var(--font-size-sm);
}
@media (max-width: 640px) {
  .shop-list-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.shop-empty {
  text-align: left;
}
.shop-empty-hint {
  margin-top: 6px;
}

/* === Product list: sauberes Grid (4/2/1), keine Masonry-Effekte === */
.product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
  grid-auto-rows: auto;
  margin-bottom: 32px;
}
@media (max-width: 1100px) {
  .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .product-list {
    grid-template-columns: 1fr;
  }
}
.product-list a.product-card,
.product-list .stat-card.product-card {
  display: flex;
  flex-direction: column;
  height: auto;
  margin: 0;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
.product-list a.product-card:visited {
  color: inherit;
  text-decoration: none;
}
.product-list a.product-card * {
  color: inherit;
  text-decoration: none;
}
.product-list a.product-card:hover .product-card-title {
  text-decoration: none;
  color: var(--accent);
}
.product-card-title {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--spacing-xs);
}
.product-card-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}
.product-card-availability .product-card-lead {
  font-size: 11px;
}
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.9rem;
}
.product-card-price {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
}
.product-card-cta-disabled {
  opacity: 0.8;
  pointer-events: none;
}
.product-list .product-card-footer {
  margin-top: auto;
}
.product-list a.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
/* Bild-Wrapper: keine Luft, overflow für Border-Radius */
.product-card-image,
.card-img {
  padding: 0;
  margin: 0;
  overflow: hidden;
}
/* Image andocken: block entfernt Inline-Spacing, kein Padding/Margin */
.product-card-image img,
.card-img img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
}
/* Kartenbilder: Produktliste mit fester Höhe, Standard contain (Varianten/card-preview nutzen cover) */
.product-list .product-card-image {
  height: 240px;
  flex-shrink: 0;
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius);
  background: #f4f2ee;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.product-list .product-card-image img,
.product-list .product-card-img {
  object-fit: contain;
  background: transparent;
}
/* Motiv-Varianten: cover damit object-position wirkt; Fokus für L / flache Motive */
.product-card-image.variant-wide img,
.product-card-image.variant-wide .product-card-img {
  object-fit: cover;
  object-position: center 60%;
}
.product-card-image.variant-wide-high img,
.product-card-image.variant-wide-high .product-card-img {
  object-fit: cover;
  object-position: center 70%;
}
/* Karten-Preview (eigenes quadratisches Bild): immer cover fürs Grid */
.product-card-image.has-card-preview img,
.product-card-image.has-card-preview .product-card-img {
  object-fit: cover;
}
.card-img.has-card-preview img {
  object-fit: cover;
}
.product-list .product-card-title,
.product-list a.product-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
}
.product-grid,
.products-grid,
.grid.grid-4 {
  gap: 24px;
}
.grid.grid-4 .product-card,
.product-list .product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.grid.grid-4 .product-card .card-body,
.grid.grid-4 .product-card .product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-sm);
}
.grid.grid-4 .product-card .product-card-price {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
}
.grid.grid-4 .product-card .product-card-cta {
  margin-top: auto;
}

.product-item,
.product-card,
.stat-card.product-card,
a.product-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-item:hover,
.product-card:hover,
.stat-card.product-card:hover,
a.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.product-item img,
.product-card img,
.stat-card.product-card img {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.product-card .card-img img {
  border-radius: 10px;
  height: 100%;
  margin: 0;
}
.product-card .card-img {
  margin-bottom: 10px;
  border-radius: 10px;
  aspect-ratio: 1;
}
.product-item h3,
.product-card h3,
.product-card .card-name,
.product-card .card-body {
  font-size: 1rem;
  margin: 6px 0 4px;
}
.product-card .card-price,
.product-item .price,
.product-card .price {
  font-weight: 700;
  margin-top: 6px;
}

/* === Ähnliche Produkte (Produktdetail) – kompakte Variante === */
.similar-products {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}
.similar-products-title {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--spacing-md);
}
.similar-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}
@media (min-width: 600px) {
  .similar-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .similar-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .similar-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Compact: kleinere Karten, Bild ~160px, weniger Padding */
.similar-products a.product-card {
  color: inherit;
  text-decoration: none;
}
.similar-products a.product-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}
.similar-products--compact .similar-products-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}
.similar-products--compact .similar-products-grid {
  gap: var(--spacing-sm);
}
.similar-products--compact .product-card {
  padding: 10px;
  border-radius: 10px;
}
.similar-products--compact .product-card .card-img,
.similar-products--compact .product-card .product-card-image {
  height: 160px;
  min-height: 160px;
  margin-bottom: 6px;
  overflow: hidden;
  background: var(--muted-bg, #f5f5f5);
}
.similar-products--compact .product-card .card-img img,
.similar-products--compact .product-card .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.similar-products--compact .product-card .card-name,
.similar-products--compact .product-card .product-card-title {
  font-size: 0.875rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.similar-products--compact .product-card .card-price,
.similar-products--compact .product-card .product-card-price {
  font-size: 0.875rem;
  font-weight: 600;
}
.similar-products--compact .product-card .card-body,
.similar-products--compact .product-card .product-card-body {
  padding-top: 4px;
}

/* === Breadcrumb (Produktseite) === */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted, #555);
  margin-bottom: var(--spacing-md);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em 0.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.5em;
  color: var(--muted, #888);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb li[aria-current="page"] {
  color: var(--ink, #1a1a1a);
  font-weight: 500;
}

/* === Produkt-FAQ (Accordion) === */
.product-faq {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  max-width: 640px;
}
.product-faq-title {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--spacing-md);
}
.product-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.product-faq-item {
  border-bottom: 1px solid var(--border-color);
}
.product-faq-item:last-child {
  border-bottom: none;
}
.product-faq-question {
  padding: var(--spacing-md) 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.product-faq-question::-webkit-details-marker {
  display: none;
}
.product-faq-question::before {
  content: "›";
  font-size: 1.2em;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.product-faq-item[open] .product-faq-question::before {
  transform: rotate(90deg);
}
.product-faq-question:hover {
  color: var(--ink, #1a1a1a);
}
.product-faq-answer {
  padding: 0 0 var(--spacing-md) var(--spacing-lg);
}
.product-faq-answer p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--muted, #555);
}

/* === Zentrale FAQ-Seite (/pages/faq) === */
.faq-intro {
  margin: var(--spacing-sm) 0 0 0;
  font-size: var(--font-size-base);
  color: var(--text-secondary, #6d7175);
}

/* Filter-Buttons (Tabs) – sticky beim Scrollen */
.faq-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 30px 0;
  position: sticky;
  top: 12px;
  z-index: 10;
  background: var(--bg-body, #f7f2ea);
  padding: 10px 0;
}
.faq-filter button {
  border: 1px solid var(--border-color, #ddd);
  background: #fff;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.faq-filter button:hover {
  background: #f3f3f3;
}
.faq-filter button:active {
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .faq-filter button:active {
    transform: none;
  }
}
.faq-filter button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* FAQ-Sektionen mit Smooth-Transition */
.faq-section {
  margin-bottom: 35px;
  transition: opacity 160ms ease, transform 160ms ease, max-height 200ms ease, margin 200ms ease, padding 200ms ease, border 200ms ease;
  opacity: 1;
  transform: translateY(0);
  max-height: 5000px;
}
.faq-section.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .faq-section {
    transition: none;
  }
}
.faq-section h2 {
  font-size: var(--font-size-lg);
  margin: var(--spacing-xl) 0 var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}
.faq-section:first-child h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.faq-details {
  border-bottom: 1px solid var(--border-color, #eee);
  padding: 10px 0;
}
.faq-details summary {
  padding: var(--spacing-md) 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-details summary::-webkit-details-marker {
  display: none;
}
.faq-details .faq-question {
  flex: 1;
}
.faq-details .faq-chevron {
  margin-left: auto;
  font-size: 1.2em;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-details[open] .faq-chevron {
  transform: rotate(90deg);
}
.faq-details[open] summary {
  color: var(--ink, #000);
}
.faq-details summary:hover {
  color: var(--ink, #1a1a1a);
}
.faq-details p {
  margin: 0 0 var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--muted, #555);
}
.faq-details:last-of-type p {
  margin-bottom: var(--spacing-md);
}

/* === Page spacing (air between header/content/footer) === */
.site-header + main,
.site-header + .page-content,
.site-header + .content,
.site-header + .container,
.site-header + .shell-container {
  margin-top: 32px;
}
main > :first-child,
.page-content > :first-child {
  margin-top: 32px;
}
.site-header + main > :first-child {
  margin-top: 0;
}
.site-footer,
.public-footer,
footer {
  margin-top: 48px;
}

/* === Product list vertical spacing === */
.product-list,
.products-grid,
.grid.grid-4 {
  padding-top: 24px;
  padding-bottom: 24px;
}
.product-card,
.stat-card.product-card {
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .buybox-price-row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
}

/* === Cart / Checkout (admin-like cards) === */
.cart-page, .checkout-page, .login-page, .cart, .checkout {
  padding-top: 16px;
  padding-bottom: 16px;
}
.login-page {
  padding-bottom: calc(var(--spacing-xl) * 2);
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(260px, 360px);
  gap: var(--spacing-xl);
  align-items: start;
}
.buybox-card .form-actions,
.checkout-page .form-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
}
.form-actions .btn-block {
  width: 100%;
}
@media (max-width: 768px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
}
.login-page .login-alert {
  margin-bottom: var(--spacing-lg);
}
.login-page .login-footer-links {
  margin-top: var(--spacing-md);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}
.login-page .login-card-intro {
  font-size: var(--font-size-sm);
  margin: 0 0 var(--spacing-md);
}
.register-address-fields {
  margin-left: var(--spacing-md);
  padding-left: var(--spacing-md);
  border-left: 2px solid var(--border-color);
}
.register-address-fields--hidden {
  display: none;
}
.register-field-hint {
  font-size: var(--font-size-sm);
  margin-top: 4px;
}
.forgot-card-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.cart table,
.checkout table,
.cart-summary,
.checkout-summary,
.cart-totals,
.checkout-totals,
.cart-box,
.checkout-box,
.order-summary,
.summary-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.cart table,
.checkout table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.cart table th,
.checkout table th {
  text-align: left;
  font-weight: 700;
  color: rgba(0,0,0,0.75);
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 12px 14px;
}

.cart table td,
.checkout table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
}

.cart table tr:last-child td,
.checkout table tr:last-child td {
  border-bottom: 0;
}

.cart input, .cart select, .cart textarea,
.checkout input, .checkout select, .checkout textarea {
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.cart button, .cart .btn, .cart input[type="submit"],
.checkout button, .checkout .btn, .checkout input[type="submit"] {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
  background: #0f6d4d;
  color: #fff;
  text-decoration: none;
}
.cart button:hover, .cart .btn:hover, .cart input[type="submit"]:hover,
.checkout button:hover, .checkout .btn:hover, .checkout input[type="submit"]:hover {
  background: #0d5f43;
}

.cart a, .checkout a {
  color: inherit;
}

/* === Cart page layout (Produktseiten-Style: Grid, Cards) === */
/* Extra Luft zum Footer auf Cart-Seite */
.cart-page {
  padding-bottom: calc(var(--spacing-xl) * 2);
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

/* === Checkout: 2 Spalten, Cards, Summary rechts === */
.checkout-page {
  padding-bottom: calc(var(--spacing-xl) * 2);
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--spacing-xl);
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}
.checkout-card + .checkout-card {
  margin-top: var(--spacing-lg);
}
.checkout-page input[type="text"],
.checkout-page input[type="email"],
.checkout-page input[type="tel"],
.checkout-page select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
}
.checkout-page label {
  display: inline-block;
}
.checkout-page .checkout-field {
  margin-bottom: var(--spacing-md);
}
.checkout-page .checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}
@media (max-width: 700px) {
  .checkout-page .checkout-row {
    grid-template-columns: 1fr;
  }
}
.checkout-summary-rows {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.checkout-summary-row--total {
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}
.checkout-summary-total {
  font-weight: 700;
  font-size: 1.15rem;
}
.checkout-page .checkout-field label {
  display: block;
  margin-bottom: 6px;
}
.checkout-page .checkout-field label.checkbox {
  display: inline-block;
  margin-bottom: 0;
}
.checkout-section {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}
/* Screen-reader only (z. B. PayPal-Option ohne sichtbaren Text) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.checkout-pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}
.checkout-pay-option * {
  cursor: pointer;
}
.checkout-pay-option + .checkout-pay-option {
  margin-top: var(--spacing-sm);
}
.checkout-pay-option input[type="radio"] {
  margin: 0;
}
.checkout-pay-text {
  flex: 1;
}
.checkout-pay-logos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.checkout-pay-logos img {
  height: 18px;
  width: auto;
  display: block;
  opacity: 0.9;
}
.checkout-pay-option:hover {
  background: rgba(0,0,0,0.02);
}
.checkout-pay-option:has(input:checked) {
  border-color: var(--accent, #0d5f43);
}
.checkout-aside .checkout-section + .btn {
  margin-top: var(--spacing-md);
}
.checkout-aside .buybox-card {
  padding: var(--spacing-lg);
}
.checkout-aside .btn-block + .btn-block {
  margin-top: var(--spacing-sm);
}
.btn-block {
  width: 100%;
  box-sizing: border-box;
}

/* === Kundenkonto: Bestellliste als Card + Rows === */
.orders-hint {
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
}
.orders-card.buybox-card {
  padding: var(--spacing-md);
}
.orders-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm) var(--spacing-lg);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
}
.order-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.order-row:first-child {
  padding-top: 0;
}
.order-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--spacing-xs);
  min-width: 220px;
}
.order-row-id {
  font-weight: 600;
}
.order-row-date {
  font-size: var(--font-size-sm);
}
.order-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}
.order-row-total {
  margin-left: auto;
  min-width: 110px;
  text-align: right;
  font-size: var(--font-size-base);
}
.order-row-total-label {
  margin-right: var(--spacing-xs);
  font-size: var(--font-size-sm);
}
.order-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .order-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  .order-row-total {
    margin-left: 0;
  }
}
.empty-orders-card {
  padding: var(--spacing-xl);
  text-align: center;
}

/* === Order-Detailseite (Buybox-Optik) === */
.order-detail-header {
  margin-bottom: var(--spacing-md);
}
.order-detail-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
}
.order-detail-header-top h1 {
  margin: 0;
}
.order-detail-date {
  margin: var(--spacing-xs) 0 0;
  font-size: var(--font-size-sm);
}
.order-detail-layout {
  margin-top: var(--spacing-md);
}
.order-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.order-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: var(--spacing-md) var(--spacing-lg);
  align-items: baseline;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
}
.order-item-row:last-child {
  border-bottom: none;
}
.order-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.order-item-name {
  font-weight: var(--font-weight-semibold);
}
.order-item-variant {
  font-size: var(--font-size-xs);
}
.order-item-qty,
.order-item-unit,
.order-item-total {
  text-align: right;
  white-space: nowrap;
}
.order-item-total {
  font-weight: var(--font-weight-semibold);
  min-width: 70px;
}
.order-summary {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--spacing-md);
}
.order-summary-row span:last-child,
.order-summary-row strong {
  text-align: right;
}
.order-summary-total {
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
  font-size: var(--font-size-lg);
}
.order-payment-info {
  margin-top: var(--spacing-md);
  font-size: var(--font-size-sm);
}
.order-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border-color);
  padding-left: var(--spacing-lg);
}
.order-timeline-list li {
  position: relative;
  padding-bottom: var(--spacing-sm);
}
.order-timeline-list li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--spacing-lg) - 5px);
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary, #0f6d4d);
}
.order-timeline-list li:last-child {
  padding-bottom: 0;
}
@media (max-width: 640px) {
  .order-item-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }
  .order-item-qty,
  .order-item-unit,
  .order-item-total {
    text-align: left;
    padding-left: var(--spacing-sm);
  }
}

.cart-items-section {
  min-width: 0;
}
/* Gleiche Padding-Werte wie .buybox-card */
.cart-items-card.buybox-card,
.cart-aside .buybox-card {
  padding: var(--spacing-lg);
}
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cart-item {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}
.cart-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.cart-item-left {
  display: flex;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.cart-thumb-wrap {
  flex-shrink: 0;
  display: block;
}
.cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  display: block;
}
.cart-thumb--placeholder {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.cart-thumb--placeholder span {
  text-align: center;
  padding: 4px;
}
.cart-main {
  min-width: 0;
}
.cart-title {
  font-weight: 700;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
  display: block;
  margin-bottom: 2px;
}
.cart-title:hover {
  text-decoration: underline;
}
.cart-muted {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
  max-width: 100%;
}
.cart-item-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cart-qty-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-input {
  width: 60px;
  text-align: right;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
}
.cart-line-sum {
  font-weight: 700;
  min-width: 4rem;
  text-align: right;
}
.cart-remove-form {
  display: inline;
}
.cart-remove-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
}
.cart-remove-btn:hover {
  color: var(--error, #c00);
  text-decoration: underline;
}
@media (max-width: 700px) {
  .cart-item {
    flex-direction: column;
  }
  .cart-item-right {
    width: 100%;
    justify-content: flex-start;
  }
  .cart-qty-form {
    flex: 1;
    min-width: 0;
  }
  .cart-line-sum {
    margin-left: auto;
  }
}

.cart-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
}
.cart-summary-row--total {
  padding-top: var(--spacing-sm);
  margin-top: var(--spacing-xs);
  border-top: 1px solid var(--border-color);
  font-size: 1.1rem;
}
.cart-summary-total {
  font-weight: 700;
  font-size: 1.25rem;
}
.cart-note {
  margin-top: var(--spacing-md);
  font-size: 0.95rem;
}
.cart-cta-btn,
.cart-checkout-btn {
  width: 100%;
  margin-top: var(--spacing-md);
  display: block;
  text-align: center;
  box-sizing: border-box;
}
.cart-checkout-card {
  margin-top: var(--spacing-lg);
}
.cart-checkout-options .btn {
  margin-bottom: var(--spacing-sm);
}
.cart-checkout-options .btn:last-of-type {
  margin-bottom: 0;
}
/* Button-Hierarchie: Primary nur 1×; Einloggen = Outline/Secondary */
.cart .btn-secondary,
.cart .btn-outline {
  background: transparent;
  color: var(--text-secondary, #6d7175);
  border: 1px solid rgba(0,0,0,0.2);
}
.cart .btn-secondary:hover,
.cart .btn-outline:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.28);
  color: var(--text-primary, #202223);
}
.cart-empty-card {
  max-width: 420px;
  padding: var(--spacing-lg);
}
.cart-empty-btn {
  margin-top: var(--spacing-md);
  padding: 11px 14px;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  color: var(--text-secondary, #6d7175);
}
.cart-empty-btn:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.28);
  color: var(--text-primary, #202223);
}

/* === Lightbox (force) === */
#img-modal {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
}
#img-modal.is-open {
  display: block !important;
}
#img-modal .img-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.75) !important;
}
#img-modal .img-modal-img {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: min(92vw, 1100px) !important;
  max-height: 90vh !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45) !important;
  background: #fff !important;
}
#img-modal .img-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 18px !important;
  z-index: 10000 !important;
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 40px !important;
  cursor: pointer !important;
}

/* force description card look */
.product-description {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06) !important;
  padding: 14px !important;
}

/* === HARD FORCE: header-nav + footer identical === */
:root { --darkbar: #595959; } /* match the lighter footer tone */

.header-nav,
footer.site-footer,
footer.public-footer,
footer.site-footer.public-footer{
  background: var(--darkbar) !important;
  background-color: var(--darkbar) !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* HARD FIX: Topbar – Konto/Warenkorb nach links, unabhängig vom Container */
.top-actions {
  margin-right: 24px !important;
}

/* Checkout – Bestätigung: Label = Flex, Input+Span im selben Flow (überschreibt .buybox-card label/input) */
.buybox-card label.checkout-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 0;
  font-weight: normal;
}
.buybox-card .checkout-confirm input {
  width: auto;
  margin-top: 2px;
  flex: 0 0 auto;
}
.checkout-confirm span {
  flex: 1;
  line-height: 1.35;
}

/* FIX: verhindert horizontales Verschieben der Seite */
html, body {
  overflow-x: hidden;
}

/* SAFETY: sauberes Box-Modell */
* {
  box-sizing: border-box;
}

/* SAFETY: Bilder & SVGs dürfen nicht überstehen */
img, svg {
  max-width: 100%;
  height: auto;
}

/* =========================
   Mobile overrides (safe)
   Desktop bleibt unverändert
   ========================= */
@media (max-width: 768px) {
  /* generelle Lesbarkeit & Zoom-Verhalten */
  html { font-size: 16px; }
  body { -webkit-text-size-adjust: 100%; }

  /* Standard-Abstände etwas kompakter */
  .container,
  .page-container,
  .site-container,
  .content,
  main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Buttons & Inputs: mobile-friendly */
  button, .btn, input, select, textarea {
    max-width: 100%;
  }

  /* Lange Wörter/URLs sollen nicht Layout sprengen */
  p, a, li, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Tabellen: kein Seitwärts-Scroll-Desaster */
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  /* Tap targets */
  .btn, button, input[type="submit"], input[type="button"] {
    min-height: 44px;
    padding: 12px 14px;
  }

  input, select, textarea {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px; /* verhindert iOS Zoom bei Fokus */
  }

  /* Karten/Boxen etwas kompakter */
  .card, .panel, .box, .buybox-card {
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  /* =========================
     Header (Mobile)
     ========================= */

  .site-header .header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap; /* falls es eng wird */
  }

  .site-header .header-brand {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    line-height: 1.2;
  }

  /* Konto/Warenkorb kompakt nebeneinander, nicht quetschen */
  .site-header .top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .site-header .header-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    white-space: nowrap;
  }

  /* Labels auf sehr kleinen Geräten ausblenden (Icons bleiben) */
  .site-header .header-link .label {
    display: none;
  }

  .site-header .cart-badge {
    margin-left: 6px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
  }

  /* Nav: als vertikale Liste */
  .site-header .header-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .site-header .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 12px;
  }

  /* Dropdown-Items: Toggle rechts, Link links */
  .site-header .nav-item--dropdown {
    display: block;
  }

  .site-header .nav-item--dropdown > .nav-link {
    width: 100%;
  }

  .site-header .nav-dropdown-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    margin-left: 8px;
  }

  /* Dropdown: standardmäßig zu, nur via JS-Klasse öffnen */
  .site-header .nav-dropdown {
    display: none;
    padding: 6px 0 0 0;
  }
  .site-header .nav-item--dropdown.is-open > .nav-dropdown {
    display: block;
  }

  .site-header .nav-dropdown-link {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    margin-top: 6px;
  }

  /* =========================
     Produktseite: Bild + Buybox stapeln
     ========================= */
  .container.product-page .product-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .container.product-page .product-media,
  .container.product-page .buybox {
    width: 100%;
  }

  /* Thumbs: horizontal scroll statt gequetscht */
  .product-media-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .product-media-thumbs .gallery-thumb {
    flex: 0 0 auto;
  }

  /* Buybox CTA: volle Breite */
  .buybox-section-purchase .btn,
  .product-form .btn,
  .cart-checkout-card .btn,
  .checkout-card .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* =========================
     Mobile polish
     ========================= */

  /* Labels nur auf sehr kleinen Phones ausblenden.
     Ab ~420px wieder anzeigen (wirkt hochwertiger). */
  @media (min-width: 420px) {
    .site-header .header-link .label {
      display: inline;
    }
  }

  /* Header: verhindert, dass Actions umbrechen, wenn Platz da ist */
  .site-header .top-actions {
    flex-wrap: nowrap;
  }

  /* Nav: Links nicht zu hoch, aber fingerfreundlich */
  .site-header .nav-link,
  .site-header .nav-dropdown-link {
    line-height: 1.2;
  }

  /* Dropdown Toggle optisch „Button-like“, ohne Layout zu sprengen */
  .site-header .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Badge: minimale Typo-Fix */
  .site-header .cart-badge {
    font-size: 12px;
    line-height: 1;
    padding: 0 6px;
  }

  /* Produkt: Buybox Titel/Preis etwas kompakter auf Mobile */
  .product-buybox-title {
    font-size: 22px;
    line-height: 1.2;
  }
  .buybox-price {
    font-size: 20px;
    line-height: 1.1;
  }
}

@media (max-width: 768px) {
  /* Optional: Header bleibt sichtbar beim Scrollen (Hintergrund bleibt dark/var(--darkbar)) */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  }
}

@media (max-width: 768px) {
  /* Smooth slide-down statt hartem Ein/Ausblenden */
  .site-header .header-nav {
    display: block;          /* wichtig für Animation */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease;
  }

  .site-header.nav-open .header-nav {
    max-height: 70vh;        /* genug für dein Menü */
    opacity: 1;
    pointer-events: auto;
  }

  /* Toggle Button Styling (passt zu deinem Darkbar) */
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .mobile-nav-toggle__label {
    display: none;
  }

  @media (min-width: 420px) {
    .mobile-nav-toggle__label {
      display: inline;
    }
  }
}

/* Desktop: Mobile-Menü-Button aus */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  /* Mobile: Menü-Button an */
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  /* Sticky Checkout unten (nur Mobile) */
  .cart-checkout-card {
    position: sticky;
    bottom: 12px;
    z-index: 900;
  }

  .cart-checkout-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  }

  /* Button immer Full-Width (du hattest es teils schon) */
  .cart-checkout-card .btn,
  .checkout-card .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Buybox Sections: klare Abstände */
  .buybox-card {
    padding: 16px;
  }

  .buybox-section {
    margin-top: 14px;
  }

  .buybox-section-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Inputs/Selects: sauber */
  .buybox-card input,
  .buybox-card select,
  .buybox-card textarea {
    width: 100%;
  }

  /* Preiszeile: nicht gequetscht */
  .buybox-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  /* Überschriften etwas kompakter */
  h1 { font-size: 26px; line-height: 1.15; }
  h2 { font-size: 22px; line-height: 1.2; }
  h3 { font-size: 18px; line-height: 1.25; }

  /* Card-Abstände harmonisieren */
  .card, .panel, .box, .buybox-card, .cart-items-card, .checkout-card, .cart-checkout-card {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  /* Sticky Checkout: optisch kompakter */
  .cart-checkout-card {
    border-radius: 16px;
    padding: 12px;
  }

  /* Wenn da viel Text drin ist, etwas enger */
  .cart-checkout-card p,
  .cart-checkout-card .muted,
  .cart-checkout-card .hint {
    margin: 6px 0;
  }
}

@media (max-width: 768px) {
  /* Produktliste: Mobile Grid */
  .product-list {
    display: grid;
    grid-template-columns: 1fr; /* sehr kleine Geräte */
    gap: 12px;
  }

  /* Ab ~420px: 2 Spalten */
  @media (min-width: 420px) {
    .product-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Karten: gleichmäßiger Look */
  .product-list .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .product-list .product-card-image {
    width: 100%;
  }

  .product-list .product-card-img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Titel nicht ausufern lassen */
  .product-list .product-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Footer immer nach unten (Preis/CTA stabil) */
  .product-list .product-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* CTA: auf Mobile etwas kompakter, aber tap-friendly bleibt durch 44px-Regeln */
  .product-list .product-card-cta .btn,
  .product-list .product-card-cta a.btn {
    width: auto;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 768px) {
  /* Mobile Grid: einheitliche Bildhöhe (4:3) */
  .product-list .product-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px; /* falls Bildcontainer nicht eh rund ist */
  }

  .product-list .product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 768px) {
  /* FIX: Produktgrid darf nicht über den Viewport laufen */
  .product-list {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;              /* wichtig: Grid selbst ohne Padding */
    box-sizing: border-box;
  }

  /* Karten dürfen nicht über ihre Grid-Zelle hinaus */
  .product-list .product-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .product-list {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .product-list .product-card {
    border-radius: 18px;
  }

  .product-list .product-card-title {
    font-size: 16px;
    line-height: 1.2;
  }

  .product-list .product-card-footer {
    gap: 8px;
  }
}

/* ===== iPhone Fix: 1 Spalte + Bilder nicht croppen ===== */
@media (max-width: 480px) {
  /* 1 Spalte auf iPhones/kleinen Phones */
  .product-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  /* Undo vom 4:3 Crop: Bild komplett zeigen */
  .product-list .product-card-image {
    aspect-ratio: auto !important;
    overflow: visible !important;
  }

  .product-list .product-card-img {
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    background: rgba(0,0,0,0.03); /* optional: sieht sauber aus, wenn Bilder "frei" stehen */
  }
}

@media (max-width: 768px) {
  /* FIX: Produktkarten-Text darf nicht ins Bild überlagern */
  .product-list .product-card-title,
  .product-list .product-card-footer,
  .product-list .product-card-price,
  .product-list .product-card-cta {
    position: static !important;
    inset: auto !important;
    transform: none !important;
  }

  /* Bildblock sauber oben, Content darunter */
  .product-list .product-card-image {
    margin: 0;
  }

  /* Content-Bereich unter dem Bild */
  .product-list .product-card-title {
    margin: 12px 14px 6px 14px;
  }

  .product-list .product-card-footer {
    margin: 0 14px 14px 14px;
  }
}

@media (max-width: 768px) {
  .product-list .product-card-body {
    padding: 12px 14px 14px 14px;
  }

  .product-list .product-card-title {
    margin: 0 0 6px 0;
  }

  .product-list .product-card-footer {
    margin: 0;
  }
}

@media (max-width: 768px) {
  /* FINAL FIX: nie wieder Text im Bild bei Produktkarten */
  .product-list .product-card {
    display: flex;
    flex-direction: column;
  }

  .product-list .product-card-image {
    position: relative !important;
    z-index: 1 !important;
  }

  .product-list .product-card-body {
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* falls alte Preview/Overlay Regeln existieren */
  .product-list .product-card-title,
  .product-list .product-card-availability,
  .product-list .product-card-footer,
  .product-list .product-card-price,
  .product-list .product-card-cta {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  /* HARD OVERRIDE (specific): wenn alte Regeln über-spezifisch sind */
  .product-list a.stat-card.product-card .product-card-title,
  .product-list a.stat-card.product-card .product-card-availability,
  .product-list a.stat-card.product-card .product-card-footer,
  .product-list a.stat-card.product-card .product-card-price,
  .product-list a.stat-card.product-card .product-card-cta {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .product-list a.stat-card.product-card .product-card-body {
    position: relative !important;
    margin: 0 !important;
    transform: none !important;
  }
}

/* ===== Support/Kontakt UX ===== */
.form-textarea,
textarea.form-control,
textarea {
  min-height: 140px;
  resize: vertical;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  line-height: 1.5;
}

.form-textarea:focus,
textarea.form-control:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.chat-thread {
  max-width: 760px;
  margin: 0 auto;
}

.chat-bubble {
  padding: 14px 16px;
  border-radius: 16px;
  margin: 10px 0;
  line-height: 1.55;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}

.chat-bubble.is-customer {
  margin-right: auto;
  border-top-left-radius: 6px;
}

.chat-bubble.is-admin {
  margin-left: auto;
  border-top-right-radius: 6px;
  background: rgba(0,0,0,0.04);
}

.reply-sticky {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.reply-sticky .reply-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.reply-sticky .reply-actions textarea {
  flex: 1 1 auto;
}

/* ====== UX polish: forms + spacing + footer gap ====== */
main,
main.shell-container,
.shell-container,
.main, .page, .page-content, .content {
  padding-bottom: 64px;
}

footer,
footer.site-footer,
footer.public-footer,
.footer {
  margin-top: 48px;
}

/* Form card */
.contact-form, .support-reply, .reply-sticky, .form-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 22px;
}

/* Inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.support-reply textarea,
.reply-sticky textarea,
textarea.js-autoresize {
  width: 100%;
  max-width: 760px;
  display: block;
  border: 2px solid rgba(0,0,0,.15);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.35;
}

textarea.js-autoresize {
  min-height: 140px;
  resize: vertical;
}

.contact-form textarea:focus,
.support-reply textarea:focus,
.reply-sticky textarea:focus,
.contact-form input:focus {
  outline: none;
  border-color: rgba(0,0,0,.35);
}

/* Reply actions layout: textarea + button aligned */
.reply-actions {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  max-width: 760px;
}

.reply-actions textarea {
  flex: 1 1 auto;
}

.reply-actions button,
.contact-form button,
button.btn-primary {
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .reply-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .reply-actions button {
    width: 100%;
  }
}

/* =========================
   Support Thread – Chat UI v2
   ========================= */

.support-thread {
  max-width: 820px;
  margin: 0 auto;
}

.support-thread .chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 120px;
}

.chat-bubble {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  line-height: 1.35;
}

.chat-bubble .meta {
  font-size: 12px;
  opacity: 0.65;
  margin-bottom: 6px;
}

.chat-bubble.is-customer {
  align-self: flex-start;
  background: #ffffff;
}

.chat-bubble.is-admin {
  align-self: flex-end;
  background: #0b7a5a;
  color: #fff;
  border-color: rgba(0,0,0,0.0);
}

.chat-bubble.is-admin .meta {
  opacity: 0.85;
}

.support-reply {
  position: sticky;
  bottom: 18px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
}

.support-reply .reply-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.support-reply .reply-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.support-reply textarea {
  width: 100%;
  min-height: 56px;
  max-height: 220px;
  resize: none;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.support-reply textarea:focus {
  outline: none;
  border-color: rgba(11, 122, 90, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 122, 90, 0.12);
}

.support-reply .btn-send {
  white-space: nowrap;
  padding: 14px 18px;
  border-radius: 14px;
  min-height: 56px;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.support-reply .btn-send:hover {
  transform: translateY(-1px);
}

.support-reply .btn-send:active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .chat-bubble { max-width: 92%; }
  .support-reply { bottom: 12px; padding: 14px; }
  .support-reply .reply-row { flex-direction: column; align-items: stretch; }
  .support-reply .btn-send { width: 100%; }
}
