* {
    box-sizing: border-box;
}

.text-color-muted { color: #667085; }
.text-color-red { color: #b42318; }
.text-color-green { color: #177245; }
.text-color-blue { color: #175cd3; }

:root {
    --background: #f7f5f1;
    --surface: #ffffff;
    --surface-muted: #f0ede7;
    --text: #292722;
    --text-muted: #6c685f;
    --border: #ded9d0;
    --accent: #486251;
    --accent-dark: #33483a;
    --link-color: #486251;
    --link-hover-color: #33483a;
    --product-card-details-link-color: #486251;
    --product-card-details-link-hover-color: #33483a;
    --button-color: #486251;
    --button-hover-color: #33483a;
    --button-text-color: #ffffff;
    --card-background: #ffffff;
    --card-border: #ded9d0;
    --base-font-size: 16px;
    --container-width: 1180px;
    --button-radius: 999px;
    --button-padding: 10px 20px;
    --button-font-size: 1rem;
    --homepage-inner-spacing: 48px;
    --homepage-outer-spacing: 12px;
    --homepage-background: transparent;
    --header-search-button-bg: #486251;
    --header-background: rgba(255, 255, 255, 0.95);
    --header-padding-y: 12px;
    --header-search-button-hover: #33483a;
    --header-search-button-text: #ffffff;
    --header-search-button-radius: 10px;
    --header-link-color: #6c685f;
    --header-link-hover: #292722;
    --header-action-icon-size: 23px;
    --header-cart-badge-bg: #486251;
    --header-cart-badge-text: #ffffff;
    --header-cart-badge-size: 22px;
    --header-search-border: #ded9d0;
    --header-search-background: #ffffff;
    --header-search-text: #292722;
    --header-navigation-background: rgba(255, 255, 255, 0.95);
    --header-navigation-text: #6c685f;
    --header-navigation-hover: #292722;
    --header-search-width: 700px;
    --product-title-size: clamp(1.5rem, 4.5vw, 1.875rem);
    --product-title-color: #292722;
    --product-title-weight: 700;
    --product-title-line-height: 1.04;
    --product-price-size: 2rem;
    --product-price-color: #292722;
    --product-price-weight: 700;
    --product-description-size: 1.08rem;
    --product-description-color: #6c685f;
    --product-description-line-height: 1.6;
    --product-image-radius: 16px;
    --product-image-border-width: 1px;
    --product-image-border-color: #ded9d0;
    --product-image-shadow: 0 22px 55px rgba(43, 38, 29, .24), 0 6px 18px rgba(43, 38, 29, .12);
    --product-thumbnail-size: 82px;
    --product-layout-gap: clamp(36px, 7vw, 84px);
    --product-title-price-gap: 30px;
    --product-price-description-gap: 22px;
    --product-cart-bg: var(--button-color);
    --product-cart-hover: var(--button-hover-color);
    --product-cart-text: var(--button-text-color);
    --product-cart-radius: 999px;
    --product-cart-font-size: 1rem;
    --danger-bg: #fee2e2;
    --danger-border: #fca5a5;
    --danger-text: #991b1b;
    --radius: 16px;
    --shadow: 0 12px 35px rgba(43, 38, 29, 0.08);
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: var(--base-font-size);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover-color);
}

.offline-page {
    min-height: 100vh;
}

.offline-page__main {
    min-height: 100vh;
    padding: 40px 20px;
    display: grid;
    place-items: center;
}

.offline-page__card {
    width: min(760px, 100%);
    padding: clamp(28px, 6vw, 64px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.offline-page__brand {
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: bold;
}

.offline-page__content > :first-child {
    margin-top: 0;
}

.offline-page__content > :last-child {
    margin-bottom: 0;
}

.offline-page__content h2,
.offline-page__content h3 {
    line-height: 1.25;
}

.offline-page__content h2 {
    margin: 1.5em 0 0.55em;
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.offline-page__content h3 {
    margin: 1.35em 0 0.5em;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.offline-page__content p,
.offline-page__content ul,
.offline-page__content ol {
    margin: 0 0 1em;
}

.offline-page__content ul,
.offline-page__content ol {
    padding-left: 1.5rem;
}

.offline-page__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.offline-page__content a:hover {
    color: var(--accent-dark);
}

.offline-page__content a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--header-shadow, none);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    min-height: 108px;
    padding-top: var(--header-padding-y, 12px);
    padding-bottom: 8px;
    display: grid;
    grid-template-columns: auto minmax(300px, var(--header-search-width, 700px)) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 24px;
    row-gap: 24px;
}

.site-header__inner--without-primary-navigation {
    grid-template-rows: auto;
    row-gap: 0;
}

.site-header__inner::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: stretch;
    margin-top: calc(-1 * var(--header-padding-y, 12px));
    margin-bottom: -12px;
    background: var(--header-background, rgba(255, 255, 255, 0.95));
    box-shadow: 0 0 0 100vmax var(--header-background, rgba(255, 255, 255, 0.95));
    clip-path: inset(0 -100vmax);
    pointer-events: none;
    z-index: 0;
}

.site-logo {
    grid-column: 1;
    grid-row: 1;
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    align-self: center;
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.header-search-row,
.header-search,
.header-category-menu,
.header-actions,
.main-nav__primary,
.mobile-menu-toggle {
    position: relative;
}

.header-search-row {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 30;
}

.header-category-menu {
    display: var(--header-category-menu-display, none);
    min-width: 0;
    flex: 0 0 auto;
    z-index: 1;
}

.header-search {
    min-width: 0;
    flex: 1 1 auto;
}

.header-actions {
    grid-column: 3;
    grid-row: 1;
    z-index: 10;
}

.main-nav__primary,
.mobile-menu-toggle {
    z-index: 10;
}

.header-category-menu__toggle {
    min-height: 44px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--header-category-menu-button-background, #fff);
    color: var(--header-category-menu-button-text, var(--text));
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
}

.header-category-menu__toggle:hover,
.header-category-menu__toggle[aria-expanded="true"] {
    background: var(--header-category-menu-button-hover, var(--surface-muted));
    color: var(--header-category-menu-button-text-hover, var(--header-category-menu-button-text, var(--text)));
}

.header-category-menu__toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
    outline-offset: 2px;
}

.header-category-menu__panel {
    position: absolute;
    z-index: 300;
    top: calc(100% + 8px);
    left: 0;
    width: clamp(280px, 28vw, 360px);
    max-height: min(520px, 60vh);
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--header-category-menu-panel-background, var(--surface));
    box-shadow: var(--shadow);
    transition: width 0.15s ease;
}

.header-category-menu__panel--with-subcategories {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.header-category-menu__panel--with-subcategories.has-open-submenu {
    width: clamp(520px, 62vw, 700px);
    grid-template-columns: minmax(220px, 42%) minmax(260px, 58%);
}

.header-category-menu__roots,
.header-category-menu__subcategories,
.header-category-menu__submenu {
    min-width: 0;
}

.header-category-menu__panel--with-subcategories.has-open-submenu .header-category-menu__roots {
    padding-right: 8px;
    border-right: 1px solid var(--border);
}

.header-category-menu__subcategories {
    display: none;
    padding-left: 8px;
}

.header-category-menu__panel.has-open-submenu .header-category-menu__subcategories {
    display: block;
}

.header-category-menu__root {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 8px;
}

.header-category-menu__root.is-submenu-active {
    background: var(--header-category-menu-panel-hover, var(--surface-muted));
}

.header-category-menu__root > button {
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--header-category-menu-panel-text, var(--text));
    cursor: pointer;
    font: inherit;
    font-size: 1.3rem;
}

.header-category-menu__child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 8px;
}

.header-category-menu__child > button,
.header-category-menu__back {
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--header-category-menu-panel-text, var(--text));
    cursor: pointer;
    font: inherit;
}

.header-category-menu__child > button {
    font-size: 1.3rem;
}

.header-category-menu__back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.header-category-menu__child > button:hover,
.header-category-menu__child > button:focus-visible,
.header-category-menu__back:hover,
.header-category-menu__back:focus-visible {
    background: var(--header-category-menu-panel-hover, var(--surface-muted));
}

.header-category-menu__path {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 10px 8px;
    color: var(--header-category-menu-panel-text, var(--text));
    font-size: 0.875rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.header-category-menu__submenu {
    display: grid;
    align-content: start;
}

.header-category-menu__submenu[hidden] { display: none; }

.header-category-menu__submenu strong,
.header-category-menu__empty {
    padding: 10px;
    color: var(--header-category-menu-panel-text, var(--text));
}

.header-category-menu__empty { color: var(--text-muted); }

.header-category-menu__show-all { font-weight: 700; }

.header-category-menu__panel[hidden] { display: none; }

.header-category-menu__panel a {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    color: var(--header-category-menu-panel-text, var(--text));
    text-decoration: none;
    overflow-wrap: anywhere;
}

.header-category-menu__panel a:hover,
.header-category-menu__panel a:focus-visible,
.header-category-menu__panel a.is-active {
    background: var(--header-category-menu-panel-hover, var(--surface-muted));
}

.header-category-menu__panel a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.main-nav {
    display: contents;
}

.main-nav__primary,
.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-actions {
    gap: 10px;
}

.header-actions .header-action-link {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
}

.header-actions .header-action-link--counted {
    width: 48px;
    min-width: 48px;
    padding-right: 13px;
}

.header-action-link__icon {
    width: var(--header-action-icon-size, 23px);
    height: var(--header-action-icon-size, 23px);
    flex: 0 0 auto;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-actions .header-action-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.header-action-link .cart-count,
.header-action-link .wishlist-count {
    position: absolute;
    top: -1px;
    right: -3px;
    margin: 0;
}

@media (min-width: 761px) {
    .main-nav__primary {
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: var(--header-navigation-align, flex-start);
    }

    .main-nav__primary > a,
    .main-nav__primary > .main-nav__more {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

.main-nav a {
    min-height: 0;
    padding-block: var(--header-category-nav-padding-y, 10px);
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--header-navigation-text, var(--text-muted));
    font-size: var(--header-navigation-font-size, 1rem);
}

.main-nav a:hover {
    color: var(--header-navigation-hover, var(--text));
}

.main-nav a.is-active {
    padding-inline: var(--header-navigation-active-padding-x, 0);
    border-radius: 6px;
    background: var(--header-navigation-active-background, transparent);
    color: var(--header-navigation-active-text, var(--header-navigation-text, var(--text-muted)));
    font-weight: 700;
}

.main-nav a.is-active:hover {
    background: var(--header-navigation-active-background, transparent);
    color: var(--header-navigation-active-text, var(--header-navigation-text, var(--text-muted)));
}

.main-nav__more {
    position: relative;
}

.main-nav__more summary {
    display: inline-flex;
    min-height: 0;
    padding-block: var(--header-category-nav-padding-y, 10px);
    line-height: 24px;
    align-items: center;
    color: var(--header-navigation-text, var(--text-muted));
    cursor: pointer;
    font: inherit;
    font-size: var(--header-navigation-font-size, 1rem);
    list-style: none;
}

.main-nav__more summary::-webkit-details-marker {
    display: none;
}

.main-nav__more summary::after {
    margin-left: 6px;
    content: "⌄";
}

.main-nav__more[open] summary,
.main-nav__more summary:hover {
    color: var(--header-navigation-hover, var(--text));
}

.main-nav__more-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: max-content;
    min-width: 210px;
    max-width: min(320px, 80vw);
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.main-nav__more-menu a {
    width: 100%;
    min-height: 40px;
    padding: 7px 10px;
    border-radius: 8px;
}

.main-nav__more-menu a:hover,
.main-nav__more-menu a.is-active {
    background: var(--surface-muted);
}

.main-nav__more-menu a.is-active,
.main-nav__more-menu a.is-active:hover {
    background: var(--header-navigation-active-background, transparent);
    color: var(--header-navigation-active-text, var(--header-navigation-text, var(--text-muted)));
}

.header-cart {
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

.hero {
    padding: 100px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(72, 98, 81, 0.18),
            transparent 38%
        ),
        var(--surface-muted);
}

.hero__inner {
    max-width: 760px;
}

.hero h1,
.section-heading h1,
.section-heading h2,
.not-found h1 {
    margin: 0;
    line-height: 1.15;
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(2.5rem, 7vw, 5rem);
}

.hero__text {
    max-width: 620px;
    margin: 24px 0 32px;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: var(--button-padding);
    border-radius: var(--button-radius);
    background: var(--button-color);
    color: var(--button-text-color);
    font-size: var(--button-font-size);
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    background: var(--button-hover-color);
    color: var(--button-text-color);
}

.section {
    padding: 76px 0;
}

.section--muted {
    background: var(--surface-muted);
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.category-grid,
.product-grid {
    display: grid;
    gap: 24px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-card,
.product-card {
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.category-card {
    min-height: 160px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.category-card__name {
    font-size: 1.25rem;
    font-weight: 700;
}

.category-card__link {
    color: var(--accent);
    font-weight: 700;
}

.product-card {
    position: relative;
    overflow: hidden;
}

.wishlist-card-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    margin: 0;
}

.wishlist-card-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(43, 38, 29, .12);
    color: var(--accent-dark);
    cursor: pointer;
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
}

.wishlist-card-button:hover,
.wishlist-card-button:focus-visible,
.wishlist-card-button.is-active {
    border-color: var(--accent);
    color: var(--accent);
}

.wishlist-card-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.product-card__image {
    min-height: 220px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(72, 98, 81, 0.17),
            rgba(255, 255, 255, 0.65)
        );
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-card__content {
    padding: 24px;
}

.product-card h2,
.product-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.product-card p {
    margin: 0 0 20px;
    color: var(--text-muted);
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.product-card__footer a {
    font-weight: 700;
    text-decoration: none;
}

.homepage-product-display__grid .product-card__footer a,
.category-products .product-card__footer a,
.home-product-grid .product-card__footer a {
    color: var(--product-card-details-link-color);
}

.homepage-product-display__grid .product-card__footer a:hover,
.category-products .product-card__footer a:hover,
.home-product-grid .product-card__footer a:hover {
    color: var(--product-card-details-link-hover-color);
}

.price {
    font-size: 1.15rem;
}

.alert,
.empty-state,
.not-found {
    padding: 24px;
    border-radius: var(--radius);
}

.alert {
    margin-top: 30px;
}

.alert--error {
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger-text);
}

.product-preselection-notice {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.empty-state,
.not-found {
    border: 1px dashed var(--border);
    background: var(--surface);
}

.not-found {
    max-width: 700px;
}

.not-found p:not(.eyebrow) {
    color: var(--text-muted);
}

.breadcrumb {
    margin-bottom: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.category-page-section {
    padding-top: var(--category-page-top-spacing, 76px);
}

.category-page-section .breadcrumb {
    margin-bottom: var(--category-breadcrumb-bottom-spacing, 38px);
}

main.section:has(> .container > .product-detail) {
    padding-top: var(--product-page-top-spacing, 76px);
}

main.section:has(> .container > .product-detail) > .container > .breadcrumb {
    margin-bottom: var(--product-breadcrumb-bottom-spacing, 38px);
}

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
}

/* Startseite */

.home-hero {
    padding: clamp(64px, 9vw, 112px) 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(72, 98, 81, 0.18),
            transparent 32%
        ),
        var(--surface-muted);
}

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: clamp(42px, 8vw, 96px);
}

.home-hero__content h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.home-hero__text {
    max-width: 640px;
    margin: 26px 0 32px;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button--outline {
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-dark);
}

.button--outline:hover {
    background: var(--surface);
}

.home-hero__visual {
    min-height: 460px;
    position: relative;
    display: grid;
    place-items: center;
}

.home-hero__visual::before {
    content: '';
    width: 78%;
    aspect-ratio: 1;
    position: absolute;
    border-radius: 50%;
    background: rgba(72, 98, 81, 0.12);
}

.home-hero__visual-card {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(72, 98, 81, 0.2);
    border-radius: 28px;
    background:
        linear-gradient(145deg, #ffffff, #e8eee9);
    box-shadow: var(--shadow);
    color: var(--accent-dark);
    font-weight: 700;
}

.home-hero__visual-card--large {
    width: min(78%, 360px);
    aspect-ratio: 4 / 5;
    right: 8%;
    top: 0;
}

.home-hero__visual-card--small {
    width: min(50%, 225px);
    aspect-ratio: 1;
    left: 0;
    bottom: 0;
    background: linear-gradient(145deg, #f4ede2, #ffffff);
}

.home-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.home-section__heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--text-muted);
}

.home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-category-card {
    min-height: 0;
    padding: 0;
    overflow: hidden;
    transition: none;
}

.home-category-card:hover {
    transform: none;
}

.home-category-card__image {
    min-height: 180px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(72, 98, 81, 0.18), #f5f2ec);
}

.home-category-card__image img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.home-category-card__content {
    min-height: 205px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.home-category-card__description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-category-card .category-card__link {
    margin-top: auto;
}

.home-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-product-card {
    min-width: 0;
}

.home-product-card .product-card__image {
    aspect-ratio: 4 / 3;
    min-height: 0;
    overflow: hidden;
    text-decoration: none;
}

.home-product-card .product-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-card__placeholder {
    padding: 20px;
    text-align: center;
}

.home-product-card .product-card__content {
    padding: 20px;
}

.home-product-card h3 a {
    text-decoration: none;
}

.home-benefits {
    background: var(--accent-dark);
    color: #ffffff;
}

.home-benefits .eyebrow {
    color: #cdd9d0;
}

.home-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-benefit-card {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.home-benefit-card__number {
    color: #cdd9d0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.home-benefit-card h3 {
    margin: 28px 0 8px;
    font-size: 1.15rem;
}

.home-benefit-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.home-personalization-note {
    padding-top: 56px;
    padding-bottom: 56px;
}

.home-personalization-note__inner {
    padding: clamp(26px, 5vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.home-personalization-note__inner h2 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.home-personalization-note__inner p:last-child {
    margin: 0;
    color: var(--text-muted);
}

.home-personalization-note__inner .button {
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .home-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
        gap: 40px;
    }

    .home-hero__visual {
        min-height: 390px;
    }

    .home-category-grid,
    .home-product-grid,
    .home-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        min-height: 350px;
    }

    .home-hero__visual-card--large {
        right: 5%;
    }

    .home-section__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .home-personalization-note__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .home-hero__content h1 {
        font-size: clamp(2.35rem, 13vw, 3.5rem);
    }

    .home-hero__actions .button {
        width: 100%;
    }

    .home-hero__visual {
        min-height: 310px;
    }

    .home-category-grid,
    .home-product-grid,
    .home-benefits__grid {
        grid-template-columns: 1fr;
    }
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-footer__inner p {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

.site-footer__legal a {
    color: inherit;
}

.legal-page {
    max-width: 900px;
}

.legal-page__content {
    line-height: 1.65;
}

.legal-warranty-label {
    margin-top: 28px;
}

.legal-warranty-label img {
    display: block;
    max-width: 100%;
    height: auto;
}

.legal-withdrawal-action {
    margin-top: 36px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.legal-withdrawal-action h2 {
    margin-top: 0;
}

.site-footer__withdrawal-link {
    font-weight: 700;
}

.withdrawal-page {
    max-width: 920px;
}

.withdrawal-heading {
    margin-bottom: 28px;
}

.withdrawal-heading h1,
.withdrawal-success h1 {
    margin-top: 0;
}

.withdrawal-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.withdrawal-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.withdrawal-form input,
.withdrawal-form textarea {
    width: 100%;
}

.withdrawal-form textarea {
    resize: vertical;
}

.withdrawal-form small,
.withdrawal-privacy {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.withdrawal-form__full {
    grid-column: 1 / -1;
}

.withdrawal-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.withdrawal-review-list {
    display: grid;
    gap: 0;
    margin: 22px 0;
}

.withdrawal-review-list > div {
    display: grid;
    grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.withdrawal-review-list dt {
    color: var(--text-muted);
    font-weight: 700;
}

.withdrawal-review-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.withdrawal-preserve-lines {
    white-space: pre-wrap;
}

.withdrawal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 620px) {
    .withdrawal-form {
        grid-template-columns: 1fr;
    }

    .withdrawal-form__full {
        grid-column: auto;
    }

    .withdrawal-review-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        position: relative;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-rows: auto auto auto;
        gap: 10px 14px;
    }

    .site-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 12px;
    }

    .header-actions a {
        min-height: 44px;
    }

    .header-search {
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .site-header__inner--without-primary-navigation {
        grid-template-rows: auto auto;
        row-gap: 24px;
    }

    .header-category-menu__panel--with-subcategories.has-open-submenu {
        width: min(700px, calc(100vw - 32px));
        grid-template-columns: minmax(190px, 42%) minmax(220px, 58%);
    }

    .header-category-menu {
        grid-column: 1;
        grid-row: 2;
        margin-right: 12px;
    }

    .mobile-menu-toggle {
        grid-column: 3;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: contents;
    }

    .js .main-nav__primary {
        display: none;
    }

    .js .main-nav.is-open .main-nav__primary {
        display: flex;
    }

    .main-nav__primary {
        grid-column: 1 / -1;
        grid-row: 3;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 0 0 4px;
    }

    .main-nav__primary a {
        width: 100%;
        padding: max(10px, var(--header-category-nav-padding-y, 6px)) 4px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__legal {
        justify-content: flex-start;
    }

    .hero {
        padding: 72px 0;
    }

    .section {
        padding: 56px 0;
    }

    .category-page-section {
        padding-top: min(var(--category-page-top-spacing, 76px), 56px);
    }

    .category-page-section .breadcrumb {
        margin-bottom: min(
            var(--category-breadcrumb-bottom-spacing, 38px),
            38px
        );
    }

    main.section:has(> .container > .product-detail) {
        padding-top: min(var(--product-page-top-spacing, 76px), 56px);
    }

    main.section:has(> .container > .product-detail) > .container > .breadcrumb {
        margin-bottom: min(
            var(--product-breadcrumb-bottom-spacing, 38px),
            38px
        );
    }

    .site-header__inner {
        min-height: 64px;
    }

    .product-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Produktdetailseite */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(36px, 7vw, 84px);
    align-items: start;
}

.product-gallery {
    min-width: 0;
    max-width: 100%;
}

.product-gallery__main {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-height: 620px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.product-gallery__placeholder {
    min-height: 560px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at top right,
            rgba(72, 98, 81, 0.22),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            var(--surface-muted),
            var(--surface)
        );
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-gallery__main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 620px;
    aspect-ratio: 1 / 1;
    padding: clamp(24px, 5vw, 54px);
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery__main-button[hidden],
.product-gallery__main-video[hidden],
.product-gallery__placeholder[hidden],
.product-gallery__arrow[hidden],
.product-lightbox__arrow[hidden] {
    display: none;
}

.product-gallery__main-button:focus-visible,
.product-gallery__thumbnail:focus-visible,
.product-gallery__arrow:focus-visible,
.product-lightbox button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.product-gallery__main-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.product-gallery__main-video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 620px;
    background: #111;
    object-fit: contain;
}

.product-gallery__zoom-hint {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 160ms ease;
}

.product-gallery__main-button:hover .product-gallery__zoom-hint,
.product-gallery__main-button:focus-visible .product-gallery__zoom-hint {
    opacity: 1;
}

.product-gallery__thumbnail-carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.product-gallery__thumbnails {
    display: flex;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    touch-action: pan-x;
}

.product-gallery__thumbnail {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    padding: 5px;
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.product-gallery__thumbnail:hover {
    border-color: var(--accent);
}

.product-gallery__thumbnail.is-active {
    border: 3px solid var(--accent-dark);
    padding: 3px;
}

.product-gallery__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery__thumbnail--video {
    position: relative;
}

.product-gallery__thumbnail--video video,
.product-gallery__video-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: #252525;
    object-fit: cover;
}

.product-gallery__video-fallback[hidden] {
    display: none;
}

.product-gallery__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1b1b1b;
    font-size: 15px;
    line-height: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.product-gallery__arrow,
.product-lightbox__arrow,
.product-lightbox__close {
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent-dark);
    cursor: pointer;
}

.product-gallery__arrow {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
}

.product-gallery__arrow:disabled {
    opacity: 0.38;
    cursor: default;
}

.product-lightbox {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    grid-template-columns: minmax(48px, 96px) minmax(0, 1fr)
        minmax(48px, 96px);
    align-items: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(15, 18, 16, 0.9);
}

.product-lightbox.is-open {
    display: grid;
}

.product-lightbox__figure {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.product-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    margin: auto;
    object-fit: contain;
}

.product-lightbox__counter {
    margin-top: 12px;
    color: #fff;
    font-size: 0.9rem;
}

.product-lightbox__arrow {
    width: 50px;
    height: 50px;
    margin: auto;
    font-size: 2rem;
}

.product-lightbox__close {
    position: absolute;
    top: max(16px, 3vw);
    right: max(16px, 3vw);
    width: 46px;
    height: 46px;
    font-size: 2rem;
}

.product-lightbox__arrow--previous {
    grid-column: 1;
}

.product-lightbox__figure {
    grid-column: 2;
}

.product-lightbox__arrow--next {
    grid-column: 3;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(43, 38, 29, 0.1);
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-summary {
    position: sticky;
    top: 110px;
}

.product-summary h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.8vw, 3.05rem);
    line-height: 1.04;
}

.product-number,
.price-note,
.stock-note {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.product-number {
    margin: 0 0 10px;
    color: #7c766c;
    font-size: 0.82rem;
}

.product-lead {
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.product-price {
    margin-top: 30px;
    font-size: 2rem;
    font-weight: 700;
}

.product-tier-prices {
    max-width: 440px;
    margin: 14px 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.product-tier-prices h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.product-tier-prices ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-tier-prices li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.product-tier-prices strong {
    color: var(--text);
}

.price-note {
    margin: 2px 0 22px;
}

.price-note__shipping-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 0.16em;
}

.price-note__shipping-link:hover {
    color: var(--accent-dark);
}

.price-note__shipping-link:focus-visible {
    border-radius: 3px;
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.product-warranty-label {
    margin: 36px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.product-warranty-label h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.product-warranty-label__image-link {
    display: inline-block;
    max-width: 100%;
    border-radius: 6px;
    line-height: 0;
}

.product-warranty-label__image {
    display: block;
    max-width: 100%;
    height: auto;
}

.product-warranty-label__image-link:hover {
    box-shadow: 0 8px 22px rgba(25, 31, 35, 0.12);
}

.product-warranty-label__image-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.shipping-information-modal[hidden] {
    display: none;
}

.shipping-information-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(30, 36, 40, 0.58);
}

.shipping-information-modal__dialog {
    display: flex;
    width: min(760px, 100%);
    max-height: min(82vh, 820px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(25, 31, 35, 0.3);
}

.shipping-information-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.shipping-information-modal__header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.shipping-information-modal__close {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 1.65rem;
    line-height: 1;
}

.shipping-information-modal__close:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.shipping-information-modal__close:focus-visible,
.shipping-information-modal__full-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.shipping-information-modal__content {
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.shipping-information-modal__content > :first-child {
    margin-top: 0;
}

.shipping-information-modal__content > :last-child {
    margin-bottom: 0;
}

.shipping-information-modal__content img {
    max-width: 100%;
    height: auto;
}

.warranty-label-modal__content img {
    display: block;
    margin: 0 auto;
}

.shipping-information-modal__full-link {
    align-self: flex-start;
    margin: 0 24px 24px;
    color: var(--accent-dark);
    font-weight: 700;
}

@media (max-width: 520px) {
    .shipping-information-modal {
        padding: 12px;
    }

    .shipping-information-modal__dialog {
        max-height: 90vh;
    }

    .shipping-information-modal__header,
    .shipping-information-modal__content {
        padding: 18px;
    }

    .shipping-information-modal__full-link {
        margin: 0 18px 18px;
    }
}

.availability {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 700;
}

.availability--available {
    background: #dcfce7;
    color: #166534;
}

.availability--unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.stock-note {
    margin-top: -10px;
}

.button--wide {
    width: 100%;
    margin-top: 6px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.tag:hover {
    border-color: var(--accent);
}

.product-description,
.related-products {
    margin-top: 90px;
}

.product-tabs {
    min-width: 0;
    margin-top: 45px;
}

.product-tabs__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.product-tabs__tab {
    position: relative;
    flex: 0 0 auto;
    padding: 15px 20px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
}

.product-tabs__tab::after {
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: transparent;
    content: "";
}

.product-tabs__tab:hover {
    color: var(--accent-dark);
}

.product-tabs__tab.is-active {
    color: var(--accent-dark);
}

.product-tabs__tab.is-active::after {
    background: var(--accent);
}

.product-tabs__tab:focus-visible {
    z-index: 1;
    outline: 3px solid var(--accent);
    outline-offset: -3px;
    border-radius: 8px 8px 0 0;
}

.product-tabs__panel {
    min-height: 150px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 1.02rem;
}

.product-tabs__panel[hidden] {
    display: none;
}

.product-tabs__panel > :first-child {
    margin-top: 0;
}

.product-tabs__panel > :last-child {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .site-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .mobile-menu-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .main-nav__primary {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}

.main-nav__primary {
    grid-column: 1 / -1;
    grid-row: 2;
}

.main-nav__primary::before {
    position: absolute;
    z-index: -1;
    inset: -12px 0 -8px;
    background: var(--header-navigation-background, rgba(255, 255, 255, 0.95));
    box-shadow: 0 0 0 100vmax var(--header-navigation-background, rgba(255, 255, 255, 0.95));
    clip-path: inset(0 -100vmax);
    content: "";
    pointer-events: none;
}

.header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
    white-space: nowrap;
}

.header-search {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto;
}

.header-search__panel {
    position: absolute;
    z-index: 400;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    min-width: 0;
    max-height: min(68vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--header-search-border, var(--border));
    border-radius: var(--radius);
    background: var(--card-background, var(--surface));
    box-shadow: var(--shadow);
}

.header-search__results { display: grid; }

.header-search__result {
    display: grid;
    min-width: 0;
    padding: 10px 12px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.header-search__result + .header-search__result {
    border-top: 1px solid var(--header-search-border, var(--border));
}

.header-search__result:hover,
.header-search__result.is-active { background: var(--surface-muted); }

.header-search__image,
.header-search__image-placeholder {
    display: grid;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--surface-muted);
    object-fit: contain;
    place-items: center;
}

.header-search__image-placeholder {
    padding: 5px;
    color: var(--text-muted);
    font-size: .65rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: center;
}

.header-search__result-content {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.header-search__result-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search__result-price { color: var(--text); font-size: .88rem; }
.header-search__result-type { color: var(--text-muted); font-size: .76rem; }
.header-search__status,
.header-search__all { margin: 0; padding: 12px; }
.header-search__status { color: var(--text-muted); font-size: .88rem; }

.header-search__all {
    display: block;
    border-top: 1px solid var(--header-search-border, var(--border));
    color: var(--link-color, var(--accent));
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.header-search__all:hover {
    background: var(--surface-muted);
    color: var(--link-hover-color, var(--accent-dark));
}

.header-search__panel[hidden],
.header-search__status[hidden],
.header-search__all[hidden] { display: none; }

.header-search input {
    min-width: 0;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.header-search button {
    min-height: 44px;
    padding: 9px 17px;
    border: 1px solid var(--accent);
    border-radius: 0 10px 10px 0;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.header-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.header-search__submit-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.header-search__submit--icon {
    min-width: 46px;
    padding-right: 12px;
    padding-left: 12px;
}

.search-results-page__heading {
    margin-bottom: var(--search-results-spacing);
    color: var(--search-results-title-color);
    text-align: var(--search-results-title-align);
}

.search-results-page__heading > div {
    width: 100%;
}

.search-results-page__heading h1 {
    color: inherit;
    font-size: var(--search-results-title-size);
    overflow-wrap: anywhere;
}

.search-results-page__message {
    margin-bottom: var(--search-results-spacing);
    color: var(--search-results-text-color);
    font-size: var(--search-results-text-size);
    text-align: var(--search-results-text-align);
    overflow-wrap: anywhere;
}

.search-results-page .product-grid {
    margin-top: 0;
}

@media (max-width: 640px) {
    .header-search__submit--icon {
        min-width: 42px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .header-search__submit-icon {
        width: 18px;
        height: 18px;
    }
}

.header-search input:focus,
.header-search button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
    outline-offset: 1px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.product-tabs__custom-content {
    overflow-wrap: anywhere;
}

.product-tabs__custom-content > :first-child {
    margin-top: 0;
}

.product-tabs__custom-content > :last-child {
    margin-bottom: 0;
}

.product-tabs__custom-content img,
.product-tabs__custom-content svg {
    max-width: 100%;
    height: auto;
}

.product-tabs__information {
    max-width: 850px;
}

.product-tabs__information h2 {
    margin: 0 0 18px;
    color: var(--accent-dark);
    font-size: 1.25rem;
}

.product-tabs__information h2:not(:first-child) {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.product-tabs__information address {
    color: var(--text);
    font-style: normal;
    line-height: 1.75;
}

.product-tabs__contact,
.product-tabs__facts {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
}

.product-tabs__contact > div,
.product-tabs__facts > div {
    display: grid;
    grid-template-columns: minmax(100px, 150px) minmax(0, 1fr);
    gap: 16px;
}

.product-tabs__contact dt,
.product-tabs__facts dt {
    color: var(--text-muted);
    font-weight: 700;
}

.product-tabs__contact dd,
.product-tabs__facts dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.product-tabs__text-section {
    margin-top: 28px;
}

.product-tabs__text-section h3 {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 1.05rem;
}

.product-tabs__text-section p {
    margin: 0;
}

.product-tabs__license-summary {
    color: var(--text-muted);
    font-weight: 700;
}

.product-tabs__license-content {
    margin-top: 24px;
    line-height: 1.75;
}

.product-safety-information {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.product-safety-information h2 {
    margin: 0 0 14px;
    padding: 0 !important;
    border: 0 !important;
}

.product-safety-information__content {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.product-safety-information__content > :first-child { margin-top: 0; }
.product-safety-information__content > :last-child { margin-bottom: 0; }

.product-safety-information__content img {
    max-width: 100%;
    height: auto;
}

.product-safety-notice-list {
    display: grid;
    gap: 14px;
}

.product-safety-notice {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: clamp(16px, 3vw, 22px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
}

.product-safety-notice--without-icon {
    grid-template-columns: 1fr;
}

.product-safety-notice > img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.product-safety-notice h3 {
    margin: 0 0 7px;
    color: var(--accent-dark);
    font-size: 1rem;
}

@media (max-width: 480px) {
    .product-safety-notice {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .product-safety-notice > img {
        width: 48px;
        height: 48px;
    }
}

.content-text {
    max-width: 850px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 1.02rem;
}

@media (max-width: 820px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-summary {
        position: static;
    }

    .product-gallery__main,
    .product-gallery__placeholder,
    .product-gallery__main-button {
        min-height: 420px;
    }

    .product-description,
    .related-products {
        margin-top: 64px;
    }

    .product-tabs {
        margin-top: 36px;
    }
}

@media (max-width: 520px) {
    .product-gallery__main,
    .product-gallery__placeholder,
    .product-gallery__main-button {
        min-height: 320px;
    }

    .product-gallery__main-button {
        padding: 24px;
    }

    .product-gallery__thumbnail {
        flex-basis: 70px;
        width: 70px;
        height: 70px;
    }

    .product-gallery__arrow {
        width: 40px;
        height: 40px;
    }

    .product-lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding: 12px;
    }

    .product-lightbox__arrow {
        width: 42px;
        height: 42px;
    }

    .content-text {
        padding: 22px;
    }

    .product-tabs__tab {
        padding: 13px 15px;
    }

    .product-tabs__panel {
        min-height: 120px;
        padding: 22px;
    }

    .product-tabs__contact > div,
    .product-tabs__facts > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Warenkorb */

.cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.alert--success {
    border: 1px solid #86efac;
    background: #dcfce7;
    color: #166534;
}

.add-to-cart-form {
    margin-top: 6px;
}

.personalization-fields {
    min-width: 0;
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.personalization-fields legend {
    padding: 0 7px;
    color: var(--text);
    font-weight: 700;
}

.personalization-fields--personalization {
    padding-top: 14px;
    padding-bottom: 14px;
}

.personalization-fields--personalization .personalization-field {
    gap: 4px;
}

.personalization-fields--personalization .personalization-field + .personalization-field {
    margin-top: 7px;
}

.personalization-note {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.personalization-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.personalization-field + .personalization-field {
    margin-top: 12px;
}

.personalization-field__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.personalization-field label {
    display: block;
    margin: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.35;
}

.personalization-field input,
.personalization-field textarea,
.personalization-field select {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.personalization-field textarea {
    min-height: 120px;
    resize: vertical;
}

.personalization-field input:focus,
.personalization-field textarea:focus,
.personalization-field select:focus {
    border-color: var(--accent);
    outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
    outline-offset: 1px;
}

.personalization-field small {
    display: block;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.property-select-field {
    gap: 0;
    padding: 8px 12px 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.16s ease;
}

.property-select-field:focus-within {
    border-color: var(--accent);
    outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
    outline-offset: 1px;
}

.property-select-field .personalization-field__heading {
    min-height: 20px;
}

.property-select-field .personalization-field__heading label {
    font-size: 0.84rem;
    line-height: 1.25;
}

.property-select-field .property-selection-help-link {
    font-size: 0.84rem;
    line-height: 1.25;
}

.personalization-field.property-select-field select {
    min-height: 38px;
    padding: 4px 28px 4px 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .property-select-field:not(:focus-within):has(select:hover) {
        border-color: color-mix(
            in srgb,
            var(--accent) 45%,
            var(--border)
        );
    }
}

.personalization-field.property-select-field select:focus {
    border-color: transparent;
    outline: 0;
}

.property-radio-group {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.personalization-field .property-radio-option {
    display: inline-flex;
    max-width: 100%;
    align-items: flex-start;
    gap: 7px;
    font-weight: 400;
    cursor: pointer;
}

.personalization-field .property-radio-option input[type="radio"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--accent);
}

.property-radio-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.property-selection-help-link {
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    cursor: pointer;
}

@media (max-width: 480px) {
    .personalization-field__heading {
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

.property-selection-help-link:hover {
    color: var(--accent);
}

.property-selection-help-link:focus-visible,
.property-selection-help-dialog__close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.property-selection-help-dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: min(86vh, 860px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(25, 31, 35, 0.3);
}

.property-selection-help-dialog::backdrop {
    background: rgba(30, 36, 40, 0.58);
}

.property-selection-help-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.property-selection-help-dialog__header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.property-selection-help-dialog__close {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.property-selection-help-dialog__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(86vh - 80px);
    margin: 0 auto;
    padding: 20px;
    object-fit: contain;
}

.property-selection-help-dialog__image[hidden],
.property-selection-help-dialog__options[hidden] {
    display: none;
}

.property-selection-help-dialog__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
    overflow-y: auto;
}

.property-selection-help-option {
    min-width: 0;
    padding: 10px;
    display: grid;
    gap: 9px;
    align-content: start;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.property-selection-help-option:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.property-selection-help-option[aria-pressed="true"] {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

.property-selection-help-option:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
    outline-offset: 2px;
}

.property-selection-help-option__image,
.property-selection-help-option__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 7px;
}

.property-selection-help-option__image {
    object-fit: contain;
}

.property-selection-help-option__placeholder {
    background: var(--surface-muted);
}

.property-selection-help-option__name {
    overflow-wrap: anywhere;
    font-weight: 700;
}

@media (max-width: 600px) {
    .property-selection-help-dialog__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .property-selection-help-dialog__options {
        grid-template-columns: minmax(0, 1fr);
    }
}

.add-to-cart-form__row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.quantity-field label,
.quantity-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.quantity-field input,
.quantity-form input {
    width: 100%;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
    gap: 32px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cart-item__image {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            rgba(72, 98, 81, 0.18),
            rgba(255, 255, 255, 0.65)
        );
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.product-badge--shipping {
    background: #e8f1f8;
    color: #315b78;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cart-item__placeholder {
    padding: 12px;
    text-align: center;
}

.cart-item__details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.cart-item__details h2 {
    margin: 0;
    font-size: 1.18rem;
}

.cart-item__details h2 a {
    text-decoration: none;
}

.cart-item__type {
    width: fit-content;
    margin: 0 0 7px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cart-item__provision-note {
    margin: 9px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.cart-item__personalized-badge {
    width: fit-content;
    margin: 10px 0 0;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
}

.cart-item__personalization {
    margin: 9px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.cart-item__personalization div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.cart-item__personalization div + div {
    margin-top: 4px;
}

.cart-item__personalization dt {
    font-weight: 700;
}

.cart-item__personalization dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.cart-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: end;
}

.quantity-form {
    display: grid;
    grid-template-columns: 80px auto;
    gap: 8px;
    align-items: end;
}

.quantity-form label {
    grid-column: 1 / -1;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.text-button--danger {
    color: #b42318;
}

.cart-item__price {
    min-width: 110px;
    text-align: right;
}

.cart-item__price strong,
.cart-item__price small {
    display: block;
}

.cart-item__price strong {
    font-size: 1.15rem;
}

.cart-item__price small {
    margin-top: 4px;
    color: var(--text-muted);
}

.clear-cart-form {
    display: flex;
    justify-content: flex-end;
}

.cart-summary {
    position: sticky;
    top: 110px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cart-summary h2 {
    margin: 0 0 22px;
}

.summary-row {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.summary-row strong {
    font-size: 1.22rem;
}

.cart-tax-summary {
    margin: 12px 0 20px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.cart-tax-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
}

.cart-tax-summary__row strong {
    flex: 0 0 auto;
    color: var(--text);
    font-size: inherit;
}

.cart-tax-summary p {
    margin: 7px 0 0;
}

.summary-note {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.continue-link {
    margin-top: 18px;
    display: block;
    color: var(--accent);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.empty-cart {
    max-width: 720px;
    padding: 38px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.empty-cart h2 {
    margin-top: 0;
}

.empty-cart p {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 680px) {
    .cart-item {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .cart-item__image {
        width: 90px;
        height: 90px;
    }

    .cart-item__price {
        grid-column: 1 / -1;
        text-align: left;
    }

    .add-to-cart-form__row {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item__image {
        width: 120px;
        height: 120px;
    }

    .cart-tax-summary__row {
        align-items: flex-start;
    }

    .quantity-form {
        grid-template-columns: 80px 1fr;
    }

    .add-to-cart-form__row {
        grid-template-columns: 1fr;
    }
}

/* Verwaltbare Warenkorb-Designwerte */
.cart-page {
    padding-top: var(--cart-page-top-spacing, var(--cart-outer-spacing, 76px));
    padding-bottom: var(--cart-outer-spacing, 76px);
}

.cart-page > .container > .breadcrumb {
    margin-bottom: var(--cart-breadcrumb-bottom-spacing, 38px);
}

.cart-page .section-heading h1 {
    margin-bottom: var(--cart-title-margin, 32px);
    color: var(--cart-title-color, var(--text));
    font-size: var(--cart-title-size, clamp(2rem, 5vw, 3.25rem));
    font-weight: var(--cart-title-weight, 700);
}

.cart-page .cart-layout {
    gap: var(--cart-layout-gap, 32px);
}

.cart-page .cart-items {
    gap: var(--cart-row-gap, 16px);
}

.cart-page .cart-item {
    grid-template-columns: var(--cart-image-size, 120px) minmax(0, 1fr) auto;
    padding: var(--cart-card-padding, 20px);
    border-width: var(--cart-card-border-width, 1px);
    border-color: var(--cart-card-border-color, var(--border));
    border-radius: var(--cart-card-radius, var(--radius));
    background: var(--cart-card-background, var(--surface));
    box-shadow: var(--cart-card-shadow, var(--shadow));
}

.cart-page .cart-item__details h2 {
    display: var(--cart-product-name-display, block);
    overflow: hidden;
    color: var(--cart-product-name-color, var(--text));
    font-size: var(--cart-product-name-size, 1.18rem);
    font-weight: var(--cart-product-name-weight, 700);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--cart-product-name-lines, unset);
}

.cart-page .cart-item__details h2 a {
    color: inherit;
}

.cart-page .cart-item__price strong {
    color: var(--cart-price-color, var(--text));
    font-size: var(--cart-price-size, 1.15rem);
    font-weight: var(--cart-price-weight, 700);
}

.cart-page .product-number {
    color: var(--cart-product-number-color, #7c766c);
    font-size: var(--cart-product-number-size, .82rem);
    line-height: var(--cart-product-number-line-height, 1.6);
}

.cart-page .cart-item__type {
    color: var(--cart-secondary-color, var(--accent));
    font-size: var(--cart-product-type-size, .78rem);
    line-height: var(--cart-product-type-line-height, 1.6);
}

.cart-page .cart-item__provision-note {
    color: var(--cart-secondary-color, var(--text-muted));
    font-size: var(--cart-provision-size, .86rem);
    line-height: var(--cart-provision-line-height, 1.45);
}

.cart-page .cart-item__personalization {
    color: var(--cart-secondary-color, var(--text-muted));
    font-size: var(--cart-personalization-size, .84rem);
    line-height: var(--cart-personalization-line-height, 1.6);
}

.cart-page .quantity-form label {
    color: var(--cart-quantity-label-color, var(--text));
    font-size: var(--cart-quantity-label-size, 1rem);
    line-height: var(--cart-quantity-label-line-height, 1.6);
}

.cart-page .text-button {
    color: var(--cart-action-color, var(--accent));
    font-size: var(--cart-action-size, 1rem);
}

.cart-page .text-button:hover {
    color: var(--cart-action-hover-color, var(--accent));
}

.cart-page .quantity-form input {
    min-height: var(--cart-quantity-height, 42px);
    border-color: var(--cart-quantity-border-color, var(--border));
    border-radius: var(--cart-quantity-radius, 10px);
    background: var(--cart-quantity-background, var(--surface));
    color: var(--cart-quantity-text-color, var(--text));
}

.cart-page .cart-item__image {
    width: var(--cart-image-size, 120px);
    height: var(--cart-image-size, 120px);
    border-width: var(--cart-image-border-width, 1px);
    border-color: var(--cart-image-border-color, var(--border));
    border-radius: var(--cart-image-radius, 12px);
}

.cart-page .cart-summary {
    padding: var(--cart-summary-padding, 26px);
    border-color: var(--cart-summary-border-color, var(--border));
    border-radius: var(--cart-summary-radius, var(--radius));
    background: var(--cart-summary-background, var(--surface));
    box-shadow: var(--cart-summary-shadow, var(--shadow));
}

.cart-page .cart-summary h2 {
    color: var(--cart-summary-title-color, var(--text));
    font-size: var(--cart-summary-title-size, 1.5rem);
    font-weight: var(--cart-summary-title-weight, 700);
}

.cart-page .summary-row {
    border-color: var(--cart-summary-divider-color, var(--border));
    color: var(--cart-summary-text-color, var(--text));
    font-size: var(--cart-summary-row-size, 1rem);
}

.cart-page .summary-row strong {
    color: var(--cart-summary-value-color, var(--text));
    font-size: var(--cart-summary-value-size, 1.22rem);
}

.cart-page .summary-row > span {
    min-width: 0;
}

.cart-page .summary-row > strong {
    flex: 0 0 auto;
    text-align: right;
}

.cart-page .summary-row--total,
.cart-page .summary-row--total strong {
    font-weight: var(--cart-summary-total-weight, 700);
}

.cart-page .summary-row--total {
    font-size: var(--cart-summary-total-size, 1.08rem);
}

.cart-page .summary-row--total strong {
    font-size: var(--cart-summary-total-value-size, 1.3rem);
}

.cart-page .cart-tax-summary {
    color: var(--cart-summary-tax-color, var(--text-muted));
    font-size: var(--cart-summary-tax-size, .82rem);
}

.cart-page .cart-tax-summary__row strong {
    color: var(--cart-summary-value-color, var(--text));
}

.cart-page .cart-summary > .button.button--wide {
    padding: var(--cart-checkout-padding, var(--button-padding));
    border-radius: var(--cart-checkout-radius, var(--button-radius));
    background: var(--cart-checkout-background, var(--button-color));
    color: var(--cart-checkout-text, var(--button-text-color));
    font-size: var(--cart-checkout-size, var(--button-font-size));
    font-weight: var(--cart-checkout-weight, 700);
}

.cart-page .cart-summary > .button.button--wide:hover {
    background: var(--cart-checkout-hover, var(--button-hover-color));
    color: var(--cart-checkout-text, var(--button-text-color));
}

.cart-page .continue-link {
    color: var(--cart-continue-color, var(--accent));
    font-size: var(--cart-continue-size, 1rem);
    font-weight: var(--cart-continue-weight, 700);
}

.cart-page .continue-link:hover {
    color: var(--cart-continue-hover-color, var(--accent-dark));
}

.cart-page .alert--success {
    border-color: var(--cart-success-border-color, #86efac);
    border-radius: var(--cart-success-radius, var(--radius));
    background: var(--cart-success-background, #dcfce7);
    color: var(--cart-success-text-color, #166534);
    font-size: var(--cart-success-size, 1rem);
}

@media (max-width: 900px) {
    .cart-page .cart-item__image {
        width: var(--cart-image-tablet-size, 90px);
        height: var(--cart-image-tablet-size, 90px);
    }

}

@media (max-width: 640px) {
    .cart-page {
        padding-top: min(var(--cart-page-top-spacing, 76px), 56px);
    }

    .cart-page > .container > .breadcrumb {
        margin-bottom: min(
            var(--cart-breadcrumb-bottom-spacing, 38px),
            38px
        );
    }
}

@media (max-width: 680px) {
    .cart-page .cart-item {
        grid-template-columns: var(--cart-image-tablet-size, 90px) minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .cart-page .cart-item {
        grid-template-columns: 1fr;
    }
    .cart-page .cart-item__image {
        width: var(--cart-image-size, 120px);
        height: var(--cart-image-size, 120px);
    }
}

/* Checkout */

.checkout-page {
    padding-top: var(--checkout-page-top-spacing, 76px);
}

.checkout-page > .container {
    max-width: min(
        var(--container-width, 1180px),
        var(--checkout-content-max-width, 100%)
    );
}

.checkout-page > .container > .breadcrumb {
    margin-bottom: var(--checkout-breadcrumb-bottom-spacing, 38px);
}

.checkout-page > .container > .section-heading h1 {
    font-size: var(--checkout-title-size, clamp(2rem, 5vw, 3.25rem));
    font-weight: var(--checkout-title-weight, 700);
    text-align: var(--checkout-title-align, left);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: calc(var(--checkout-section-gap, 20px) + 12px);
    align-items: start;
}

.checkout-fields {
    display: grid;
    gap: var(--checkout-section-gap, 20px);
}

.checkout-card,
.checkout-summary {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.checkout-card h2,
.checkout-summary h2 {
    margin: 0 0 22px;
    font-size: var(--checkout-section-title-size, 1.5rem);
    text-align: var(--checkout-section-title-align, left);
}

.checkout-grid {
    display: grid;
    gap: 16px;
}

.checkout-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-grid--postal {
    grid-template-columns: 140px minmax(0, 1fr);
}

.form-field {
    margin-bottom: 18px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 44px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23486251' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.form-select:hover {
    border-color: var(--accent);
    background-color: var(--surface-muted);
}

.form-select:focus-visible {
    border-color: var(--accent);
    outline: 3px solid rgba(72, 98, 81, 0.22);
    outline-offset: 1px;
}

.checkout-summary {
    position: sticky;
    top: 110px;
}

.checkout-product-list {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    max-height: 420px;
    padding-right: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.checkout-product {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.checkout-product__details {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-product__image {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.checkout-product__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.checkout-product__personalization {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.checkout-product__personalization div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.checkout-product__personalization dt {
    font-weight: 700;
}

.checkout-product__personalization dd {
    margin: 0;
}

.checkout-product small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
}

.terms-option {
    margin: 22px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.92rem;
}

.terms-option input {
    margin-top: 4px;
}

.checkout-tax-note,
.checkout-shipping-note {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.checkout-shipping-note {
    margin-top: 3px;
}

.checkout-consents {
    margin-top: 22px;
    padding-top: 2px;
    border-top: 1px solid var(--border);
}

.checkout-consents .terms-option {
    margin-bottom: 0;
}

.checkout-consents a {
    color: var(--accent);
    font-weight: 700;
}

.checkout-warranty-label {
    margin: 18px 0;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.checkout-warranty-label__link {
    display: inline-block;
    max-width: 100%;
}

.checkout-warranty-label__image {
    display: block;
    width: min(var(--checkout-warranty-label-width, 240px), 320px, 100%);
    max-width: 100%;
    height: auto;
}

.checkout-address-preview {
    margin-top: 12px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.checkout-address-preview > strong {
    display: block;
    margin-bottom: 7px;
    font-size: 0.88rem;
}

.checkout-address-preview p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkout-address-preview p span {
    display: block;
}

.checkout-address-policy-note {
    margin: 0 0 18px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.checkout-address-policy-note strong {
    display: block;
    margin-bottom: 5px;
}

.checkout-address-policy-note p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.digital-consent-scope {
    margin: 10px 0 0 28px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.digital-consent-group {
    margin-top: 22px;
}

.digital-consent-group .terms-option {
    margin-top: 0;
}

.digital-consent-scope__heading {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--text);
    line-height: 1.4;
}

.digital-consent-scope__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: var(--surface);
    color: var(--accent);
}

.digital-consent-scope__icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.digital-consent-scope ul {
    margin: 9px 0 0 30px;
    padding-left: 18px;
}

.digital-consent-scope li + li {
    margin-top: 5px;
}

.field-error {
    margin: 8px 0 0;
    color: var(--danger-text);
    font-size: 0.86rem;
    font-weight: 700;
}

.order-success {
    max-width: 760px;
    margin: 40px auto;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.order-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-size: 2rem;
    font-weight: 700;
}

.order-success h1 {
    margin-top: 0;
}

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

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .checkout-page {
        padding-top: min(var(--checkout-page-top-spacing, 76px), 56px);
    }

    .checkout-page > .container > .breadcrumb {
        margin-bottom: min(
            var(--checkout-breadcrumb-bottom-spacing, 38px),
            38px
        );
    }
}

@media (max-width: 600px) {
    .checkout-grid--two,
    .checkout-grid--postal {
        grid-template-columns: 1fr;
    }

    .checkout-card,
    .checkout-summary,
    .order-success {
        padding: 22px;
    }

    .checkout-product {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-product-list {
        max-height: 390px;
        padding-right: 4px;
    }

    .checkout-product > strong {
        align-self: flex-end;
    }
}
.account-shell {
    max-width: 900px;
}

.account-shell > * + * {
    margin-top: 1.25rem;
}

.account-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
}

.account-nav form {
    margin: 0;
}

.account-nav a,
.account-nav .link-button {
    color: var(--text);
    font-weight: 700;
}

.account-nav a[aria-current="page"] {
    color: var(--accent-dark);
}

.account-nav__logout {
    margin-left: auto !important;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.account-heading,
.account-order-detail__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.account-heading h1,
.account-order-detail__heading h1 {
    margin: 0;
}

.customer-number-badge {
    display: grid;
    gap: 3px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
}

.customer-number-badge span {
    color: var(--text-muted);
    font-size: .75rem;
}

.account-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.account-form label {
    display: grid;
    gap: .4rem;
    min-width: 0;
    font-weight: 700;
}

.account-form input,
.account-form .form-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 400;
}

.account-form .form-select {
    padding-right: 44px;
}

.account-form input:focus-visible {
    border-color: var(--accent);
    outline: 3px solid rgba(72, 98, 81, 0.22);
    outline-offset: 1px;
}

.account-form__actions {
    grid-column: 1 / -1;
}

.account-form .button {
    align-self: end;
}

.link-button {
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.account-orders__head,
.account-order-row {
    display: grid;
    grid-template-columns: minmax(130px, 1.2fr) 100px minmax(125px, 1fr) minmax(105px, .8fr) 105px 90px;
    gap: 14px;
    align-items: center;
}

.account-orders__head {
    padding: 0 12px 10px;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.account-order-row {
    padding: 14px 12px;
    border-top: 1px solid var(--border);
}

.account-status {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 700;
}

.account-status--new { background: #eef2f6; color: #475467; }
.account-status--processing { background: #fff7df; color: #8a5a00; }
.account-status--shipped { background: #e8f1ff; color: #175cd3; }
.account-status--completed { background: #e8f7ee; color: #177245; }
.account-status--cancelled { background: #fff0ef; color: #b42318; }

.account-payment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payment-dot {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    display: inline-block;
    border-radius: 50%;
}

.payment-dot--paid {
    border: 1px solid #137a3f;
    background: #16a34a;
}

.payment-dot--open {
    border: 1px solid #667085;
    background: #d0d5dd;
}

.account-password-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-order-detail {
    max-width: 1080px;
}

.account-order-facts,
.account-order-detail__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.account-order-facts > div {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.account-order-facts > div > span {
    color: var(--text-muted);
    font-size: .78rem;
}

.account-order-detail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-order-address {
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.65;
}

.account-order-item {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.account-order-item:first-child { border-top: 0; padding-top: 0; }
.account-order-item:last-child { padding-bottom: 0; }
.account-order-item small { display: block; color: var(--text-muted); }
.account-order-item dl { margin: 12px 0 0; }
.account-order-item dl div { display: flex; gap: 6px; }
.account-order-item dt { font-weight: 700; }
.account-order-item dd { margin: 0; }
.account-order-item__numbers { display: grid; gap: 5px; text-align: right; white-space: nowrap; }
.account-order-downloads { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--surface-muted); }
.account-order-downloads ul { margin-bottom: 0; }

.account-order-totals dl { margin: 0; }
.account-order-totals dl div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; }
.account-order-totals dd { margin: 0; }
.account-order-totals__total { margin-top: 8px; padding-top: 15px !important; border-top: 1px solid var(--border); font-weight: 800; }

.checkout-entry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--checkout-section-gap, 20px) + 4px);
    align-items: stretch;
}

.checkout-entry__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-entry__card form {
    margin-top: auto;
}

.account-form--single {
    grid-template-columns: 1fr;
}

.address-book-section,
.address-book-archive,
.address-book-form-card {
    margin-top: 32px;
}

.address-book-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.address-country-information {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-top: 26px;
    padding: 14px 16px;
    border: 1px solid rgba(72, 98, 81, 0.22);
    border-radius: var(--radius);
    background: rgba(239, 246, 241, 0.72);
    color: var(--text);
}

.address-country-information__icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
}

.address-country-information h2 {
    margin: 1px 0 4px;
    font-size: 1rem;
}

.address-country-information p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.address-book-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.address-book-card--archived {
    box-shadow: none;
    opacity: 0.84;
}

.address-book-card__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.address-book-card h2 {
    margin: 0;
    font-size: 1.1rem;
}

.address-book-card__badges,
.address-book-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.address-book-card__badges {
    justify-content: flex-end;
}

.address-badge {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.address-badge--default {
    border-color: rgba(72, 98, 81, 0.35);
    color: var(--accent-dark);
}

.address-book-card__address {
    margin-top: 16px;
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.address-book-card__usage-note {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.address-book-card__policy-note {
    width: fit-content;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 5px 9px;
    border: 1px solid rgba(154, 111, 24, 0.25);
    border-radius: 999px;
    background: rgba(255, 247, 224, 0.7);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.address-book-card__actions {
    margin-top: 20px;
}

.address-book-card__actions form {
    margin: 0;
}

.button--compact {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.84rem;
}

.button--secondary {
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text);
}

.button--danger {
    background: #b42318;
    color: #ffffff;
}

.address-book-archive {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.address-book-archive summary {
    cursor: pointer;
    font-weight: 700;
}

.address-book-archive[open] summary {
    margin-bottom: 18px;
}

.address-book-form-card {
    padding: 26px;
}

.address-book-form input,
.address-book-form .form-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--surface);
    color: var(--text);
    font: inherit;
}

.address-book-form .form-select {
    padding-right: 44px;
}

.address-option-panel {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.address-option-panel legend {
    padding: 0 7px;
    color: var(--text);
    font-weight: 700;
}

.address-option-panel .form-hint {
    margin: 0 0 3px;
}

.address-option-panel label {
    display: flex;
    grid-template-columns: none;
    flex-direction: row;
    align-items: center;
    gap: 9px;
}

.address-option-panel input {
    width: auto;
    min-height: 0;
}

.address-option-label--disabled {
    color: var(--text-muted);
    opacity: 0.65;
}

.address-country-hint {
    display: block;
    margin-top: 8px;
    line-height: 1.5;
}

.address-country-feedback {
    grid-column: 1 / -1;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid rgba(154, 111, 24, 0.28);
    border-radius: 10px;
    background: rgba(255, 247, 224, 0.7);
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.5;
}

.address-policy-hint {
    grid-column: 1 / -1;
    margin: -3px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.address-book-form__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 760px) {
    .address-book-grid,
    .address-book-form {
        grid-template-columns: 1fr;
    }

    .address-book-card__header {
        flex-direction: column;
    }

    .address-book-card__badges {
        justify-content: flex-start;
    }

    .address-book-card__actions > * {
        flex: 1 1 auto;
    }

    .address-book-card__actions .button {
        width: 100%;
        text-align: center;
    }

    .address-country-information {
        grid-template-columns: 1fr;
    }
}

.checkout-account-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0 0 12px;
    cursor: pointer;
    white-space: nowrap;
}

.checkout-account-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}

.checkout-account-option span {
    margin: 0;
}

/* Gemeinsame Designwerte für Login und Kundenkonto. */
.customer-area-page main.section {
    padding-top: var(--customer-page-top-spacing, 76px);
}

.customer-area-page .account-shell {
    max-width: var(--customer-content-max-width, 900px);
}

.customer-area-page .account-shell > * + * {
    margin-top: var(--customer-content-spacing, 20px);
}

.customer-area-page .account-shell > .account-orders-card {
    margin-top: calc(var(--customer-content-spacing, 20px) + 4px);
}

.customer-area-page .account-shell > .breadcrumb {
    margin-bottom: var(--customer-breadcrumb-bottom-spacing, 38px);
}

.customer-area-page :where(
    .account-shell > h1,
    .section-heading h1,
    .account-heading h1,
    .account-order-detail__heading h1,
    .checkout-card > h1
) {
    font-size: var(--customer-title-size, 2em);
    font-weight: var(--customer-title-weight, 700);
    text-align: var(--customer-title-align, left);
    overflow-wrap: anywhere;
}

.customer-area-page :where(
    .checkout-card > h2,
    .account-wishlist-card h2,
    .address-country-information h2
) {
    font-size: var(--customer-section-title-size, 1.5em);
    text-align: var(--customer-section-title-align, left);
    overflow-wrap: anywhere;
}

.customer-area-page
.account-overview-accordion
.faq-accordion__button > span:first-child {
    min-width: 0;
    flex: 1 1 auto;
    font-size: var(--customer-accordion-title-size, 1em);
    text-align: var(--customer-section-title-align, left);
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .customer-area-page main.section {
        padding-top: min(var(--customer-page-top-spacing, 76px), 56px);
    }

    .customer-area-page .account-shell > .breadcrumb {
        margin-bottom: min(
            var(--customer-breadcrumb-bottom-spacing, 38px),
            38px
        );
    }
}

.account-password-fields {
    display: grid;
    gap: 14px;
}

.account-create-option:has(#create_account:not(:checked))
.account-password-fields {
    display: none;
}

@media (max-width: 640px) {
    .account-form,
    .account-password-form,
    .checkout-entry {
        grid-template-columns: 1fr;
    }

    .account-heading,
    .account-order-detail__heading,
    .account-order-item {
        align-items: stretch;
        flex-direction: column;
    }

    .account-nav__logout {
        width: 100%;
        margin-left: 0 !important;
        padding: 10px 0 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .account-orders__head { display: none; }

    .account-order-row {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 18px 0;
    }

    .account-order-row > * {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        align-items: center;
    }

    .account-order-row > *::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: .76rem;
        font-weight: 700;
    }

    .account-order-facts,
    .account-order-detail__grid {
        grid-template-columns: 1fr;
    }

    .account-order-item__numbers { text-align: left; }
}

/* Kategorienavigation und Kategorieübersicht */
.category-sidebar-toggle {
    display: none;
}

.category-page-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 42px;
}

.category-sidebar {
    position: sticky;
    top: 96px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.category-sidebar__heading {
    margin-bottom: 14px;
    font-size: 1.05rem;
    font-weight: 700;
}

.category-tree__level {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-tree__level .category-tree__level {
    padding-left: min(var(--category-tree-step-indent, 11px), 11px);
    border-left: 0;
}

.category-tree__item + .category-tree__item {
    margin-top: 2px;
}

.category-tree__row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
}

.category-tree__link {
    min-width: 0;
    flex: 1 1 auto;
    padding: 8px 9px;
    border-radius: 8px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.category-tree__link:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.category-tree__link.is-current {
    background: rgba(72, 98, 81, 0.13);
    color: var(--accent-dark);
    font-weight: 700;
}

.category-tree__toggle {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
}

.category-tree__toggle:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.category-tree__toggle:focus-visible,
.category-sidebar-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.category-tree__toggle span {
    transition: transform 0.18s ease;
}

.category-tree__toggle[aria-expanded="true"] span {
    transform: rotate(180deg);
}

.category-page-content {
    min-width: 0;
}

.category-page-heading {
    max-width: 820px;
}

.category-page-description {
    margin: 7px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.category-overview > h2,
.category-products > h2 {
    margin: 0 0 22px;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.subcategory-card {
    display: flex;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.subcategory-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(43, 38, 29, 0.13);
    transform: translateY(-3px);
}

.subcategory-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.subcategory-card__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-muted);
    color: var(--accent-dark);
    font-size: 1.15rem;
}

.subcategory-card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.subcategory-card__content {
    display: flex;
    width: 100%;
    min-height: 245px;
    padding: 26px;
    flex-direction: column;
}

.subcategory-card__content > strong {
    font-size: 1.3rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.subcategory-card__description {
    display: -webkit-box;
    margin-top: 9px;
    overflow: hidden;
    color: var(--text-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.subcategory-card__count {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.subcategory-card__link {
    margin-top: auto;
    padding-top: 22px;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.category-navigation-card--text {
    align-self: start;
    width: 100%;
    max-width: 360px;
    min-height: 0;
    background: #fbfcfb;
    box-shadow: 0 5px 16px rgba(43, 38, 29, 0.07);
}

.category-navigation-card--text .home-category-card__content,
.category-navigation-card--text .subcategory-card__content {
    min-height: 0;
    padding: 22px;
}

.category-navigation-card--text .category-card__link,
.category-navigation-card--text .subcategory-card__link {
    margin-top: 14px;
    padding-top: 0;
}

.home-category-card.category-navigation-card--text:hover,
.subcategory-card.category-navigation-card--text:hover {
    border-color: var(--accent);
    box-shadow: 0 9px 22px rgba(43, 38, 29, 0.12);
    transform: translateY(-2px);
}

.category-navigation-card--text:focus-visible {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.category-products {
    margin-top: 30px;
}

.category-products .product-card__image img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.category-products .product-card h2 a {
    color: inherit;
    text-decoration: none;
}

.category-products .product-card h2 a:hover {
    color: var(--accent-dark);
}

@media (max-width: 900px) {
    .category-sidebar-toggle {
        width: 100%;
        min-height: 46px;
        margin-bottom: 18px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface);
        color: var(--text);
        cursor: pointer;
        font: inherit;
        font-weight: 700;
    }

    .js .category-sidebar-toggle {
        display: block;
    }

    .category-page-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .category-sidebar {
        position: static;
    }

    .js .category-sidebar {
        display: none;
    }

    .js .category-sidebar.is-open {
        display: block;
    }

    .subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .main-nav__more summary {
        width: 100%;
        padding: max(10px, var(--header-category-nav-padding-y, 6px)) 4px;
    }

    .main-nav__more-menu {
        position: static;
        width: 100%;
        max-width: none;
        padding: 0 0 6px 14px;
        border: 0;
        box-shadow: none;
    }
}

@media (max-width: 520px) {
    .subcategory-grid {
        grid-template-columns: 1fr;
    }

    .subcategory-card__content {
        min-height: 220px;
    }

    .category-navigation-card--text {
        max-width: none;
    }

    .category-navigation-card--text .subcategory-card__content {
        min-height: 0;
    }
}
/* PayPal Sandbox Checkout */
.paypal-checkout-card { max-width: 760px; margin: 2rem auto; }
.paypal-sandbox-notice { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid #d6a800; border-radius: .65rem; background: #fff8d6; color: #624d00; }
.paypal-payment-message { margin: 1rem 0; min-height: 1.5rem; }
#paypal-button-container { max-width: 520px; }

/* Einheitliche Navigation im Kundenbereich */
.account-back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}
.account-back-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}
.account-nav a[aria-current="page"] {
    color: var(--accent-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
@media (max-width: 640px) {
    .account-nav { gap: 10px 16px; }
}

/* FAQ-Accordion: Antworten werden ausschließlich nach JS-Initialisierung verborgen. */
.faq-accordion.is-enhanced {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}
.faq-accordion__item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-background);
}
.faq-accordion__heading {
    margin: 0;
}
.faq-accordion__button {
    display: flex;
    width: 100%;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border: 0;
    background: var(--surface-muted);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 750;
    text-align: left;
}
.faq-accordion__button:hover,
.faq-accordion__button[aria-expanded="true"] {
    color: var(--accent-dark);
}
.faq-accordion__button:focus-visible {
    outline: 3px solid rgba(72, 98, 81, .28);
    outline-offset: -3px;
}
.faq-accordion__icon {
    flex: 0 0 auto;
    font-size: 1.35rem;
    line-height: 1;
}
.faq-accordion__panel {
    padding: 18px 20px 20px;
}
.faq-accordion__panel > :first-child {
    margin-top: 0;
}
.faq-accordion__panel > :last-child {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .faq-accordion__button,
    .faq-accordion__panel {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Kontaktseite */
.contact-page { max-width: 920px; }
.contact-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.contact-card__intro { max-width: 680px; margin-bottom: 30px; }
.contact-card__intro h1 { margin: 3px 0 12px; }
.contact-card__intro p:last-child { margin-bottom: 0; color: var(--text-muted); }
.contact-card__eyebrow { margin: 0; color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-product-context { display: grid; gap: 5px; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); }
.contact-product-context span { font-weight: 700; }
.contact-product-context small { color: var(--text-muted); }
.contact-product-context a { width: fit-content; color: var(--accent-dark); font-weight: 700; }
.contact-form { position: relative; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form .form-field { display: grid; gap: 7px; }
.contact-form .form-field label { font-weight: 700; }
.contact-form .form-field label span { color: var(--text-muted); font-size: .85em; font-weight: 400; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 3px solid rgba(72, 98, 81, .14); }
.contact-form__wide { grid-column: 1 / -1; }
.contact-form__privacy { display: flex; gap: 11px; align-items: flex-start; margin: 24px 0; color: var(--text-muted); font-size: .92rem; }
.contact-form__privacy input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--accent); }
.contact-form__privacy a { color: var(--accent-dark); font-weight: 700; }
.contact-form__required { display: inline-block; margin: 0 0 0 12px; color: var(--text-muted); font-size: .8rem; }
.contact-form__trap { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-notice { margin-bottom: 26px; padding: 16px 18px; border: 1px solid; border-radius: 12px; }
.contact-notice p, .contact-notice ul { margin: 6px 0 0; }
.contact-notice--success { border-color: rgba(23, 114, 69, .3); background: #e8f7ee; color: #135c38; }
.contact-notice--error { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-text); }

/* Dezent hervorgehobener Footer-Service */
.site-footer__inner { flex-wrap: wrap; }
.site-footer__service { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: center; width: 100%; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--border); }
.site-footer__service span { opacity: .85; font-size: .9rem; }

.technical-cookie-notice {
    position: fixed;
    z-index: 80;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 22px;
    align-items: center;
    width: min(760px, calc(100% - 32px));
    margin-inline: auto;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--text);
}
.technical-cookie-notice__content { flex: 1 1 auto; min-width: 0; }
.technical-cookie-notice__content strong { display: block; margin-bottom: 4px; }
.technical-cookie-notice__content p { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.technical-cookie-notice__button { min-width: 72px; }
.technical-cookie-notice__button:focus-visible { outline: 3px solid var(--link-color); outline-offset: 3px; }
@media (max-width: 620px) {
    .technical-cookie-notice { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
    .technical-cookie-notice__button { width: 100%; }
}
.site-footer__withdrawal-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid currentColor; border-radius: 999px; font-weight: 700; text-decoration: none; }
.site-footer__withdrawal-link:hover { background: var(--surface-muted); }

.back-to-top-button {
    --back-to-top-bottom-offset: 24px;
    position: fixed;
    z-index: 70;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: calc(
        var(--back-to-top-bottom-offset)
        + env(safe-area-inset-bottom, 0px)
    );
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 6px 20px rgba(43, 38, 29, .16);
    color: var(--accent-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease,
        visibility .2s ease, background-color .2s ease;
}

.back-to-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top-button:hover {
    background: var(--surface-muted);
}

.back-to-top-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.back-to-top-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top-button {
        transition: none;
    }
}

@media (max-width: 640px) {
    .contact-form__grid { grid-template-columns: 1fr; }
    .contact-form__wide { grid-column: auto; }
    .contact-form .button { width: 100%; }
    .contact-form__required { display: block; margin: 10px 0 0; text-align: center; }
    .site-footer__service { flex-direction: column; text-align: center; }
    .back-to-top-button {
        --back-to-top-bottom-offset: 18px;
        right: max(18px, env(safe-area-inset-right, 0px));
        width: 42px;
        height: 42px;
    }
}

.account-nav__close {
    color: var(--text-muted) !important;
    font-weight: 600 !important;
}

.account-close-card,
.account-closed-card {
    max-width: 760px;
}

.account-close-card__order-note {
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    background: var(--surface-muted);
}

.account-close-form {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.account-close-form > label:first-of-type {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.account-close-form input[type="password"] {
    width: 100%;
    max-width: 480px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.account-close-form__confirm {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.account-close-form__confirm input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent);
}

.account-close-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button--account-close {
    border: 1px solid #8a4b46;
    background: #8a4b46;
    color: #fff;
}

.button--account-close:hover {
    background: #713d39;
}

/* Verwaltetes Headerlogo und dynamische Startseitenbereiche */
.site-logo img {
    display: block;
    width: auto;
    max-width: min(240px, 28vw);
    height: auto;
    max-height: 72px;
    object-fit: contain;
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
    visibility: visible;
}

.category-page-layout--without-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.managed-homepage__section {
    margin-block: var(--homepage-outer-spacing);
    padding: var(--homepage-inner-spacing) 0;
    background: var(--homepage-background);
}

.managed-homepage__content > :first-child {
    margin-top: 0;
}

.managed-homepage__content > :last-child {
    margin-bottom: 0;
}

.homepage-product-display { margin-top: 32px; }
.homepage-product-display > h2 { margin: 0 0 20px; }
.homepage-product-display__grid { grid-template-columns: repeat(var(--homepage-product-columns-desktop, 4), minmax(0, 1fr)); gap: var(--homepage-product-gap, 24px); }
.homepage-product-display__link { margin: 24px 0 0; }
.homepage-product-display__grid { justify-items: center; }
.homepage-product-display__grid .product-card { display: flex; flex-direction: column; width: min(100%, 340px); min-width: 0; }
.homepage-product-display__grid .product-card { border-color: var(--homepage-product-card-border-color, var(--card-border)); background: var(--homepage-product-card-bg, var(--surface)); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.homepage-product-display__grid .product-card__image { aspect-ratio: 1 / 1; min-height: 0; width: 100%; padding: var(--homepage-product-image-padding, 0); overflow: hidden; box-sizing: border-box; text-decoration: none; }
.homepage-product-display__grid .product-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.homepage-product-display__grid .product-card__content { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.homepage-product-display__grid .product-card__content > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.homepage-product-display__grid .product-card__footer { margin-top: auto; }
@media (hover: hover) {
    .homepage-product-display__grid .product-card:hover {
        border-color: var(--homepage-product-card-hover-border-color, var(--accent));
        box-shadow: var(--homepage-product-card-hover-shadow, none), var(--homepage-product-card-glow-prefix, 0 0 0) var(--homepage-product-card-glow-color, var(--accent));
        transform: var(--homepage-product-card-hover-transform, none);
    }
    .homepage-product-display__grid .product-card:hover .product-card__image img {
        transform: scale(var(--homepage-product-card-hover-image-scale, 1));
    }
}

@media (max-width: 900px) { .homepage-product-display__grid { grid-template-columns: repeat(var(--homepage-product-columns-tablet, 2), minmax(0, 1fr)); } }
@media (max-width: 560px) { .homepage-product-display__grid { grid-template-columns: repeat(var(--homepage-product-columns-mobile, 1), minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .homepage-product-display__grid .product-card, .homepage-product-display__grid .product-card__image img { transition: none; } .homepage-product-display__grid .product-card:hover, .homepage-product-display__grid .product-card:hover .product-card__image img { transform: none; } }

@media (max-width: 760px) {
    .site-logo img {
        max-width: min(180px, 52vw);
        max-height: 54px;
    }
}

/* Zentrale Designwerte für wiederkehrende Karten und Buttons. */
.category-card,
.checkout-card,
.account-card,
.contact-card,
.legal-withdrawal-action,
.category-sidebar,
.subcategory-card {
    border-color: var(--card-border);
    background-color: var(--card-background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.button:not(.button--secondary):not(.button--danger):not(.button--outline):not(.button--account-close) {
    background: var(--button-color);
    color: var(--button-text-color);
}

.button:not(.button--secondary):not(.button--danger):not(.button--outline):not(.button--account-close):hover {
    background: var(--button-hover-color);
    color: var(--button-text-color);
}

/* Verwaltbare Header- und Produktdetailwerte */
.header-actions a { color: var(--header-link-color); }
.header-actions a:hover,
.header-actions a.is-active { color: var(--header-link-hover); }
.header-search input { border-color: var(--header-search-border); background: var(--header-search-background); color: var(--header-search-text); }
.header-search button { border-color: var(--header-search-button-bg); border-radius: 0 var(--header-search-button-radius) var(--header-search-button-radius) 0; background: var(--header-search-button-bg); color: var(--header-search-button-text); }
.header-search button:hover { background: var(--header-search-button-hover); }
.cart-count { min-width: var(--header-cart-badge-size); height: var(--header-cart-badge-size); border-radius: 999px; background: var(--header-cart-badge-bg); color: var(--header-cart-badge-text); }
.product-detail { gap: var(--product-layout-gap); }
.product-gallery__main { border-width: var(--product-image-border-width); border-color: var(--product-image-border-color); border-radius: var(--product-image-radius); box-shadow: var(--product-image-shadow); }
.product-gallery__thumbnail { flex-basis: var(--product-thumbnail-size); width: var(--product-thumbnail-size); height: var(--product-thumbnail-size); }
.product-gallery__main,
.product-summary { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) {
    .product-gallery__main:hover {
        box-shadow: var(--product-image-hover-shadow), var(--product-image-glow-prefix) var(--product-image-glow-color);
        transform: var(--product-image-hover-transform);
    }
    .product-summary:hover {
        box-shadow: var(--product-info-hover-shadow);
        transform: var(--product-info-hover-transform);
    }
}
@media (prefers-reduced-motion: reduce) {
    .product-gallery__main,
    .product-summary {
        transition: none !important;
    }
    .product-gallery__main:hover,
    .product-summary:hover {
        transform: none;
    }
}
.product-summary h1 { color: var(--product-title-color); font-size: var(--product-title-size); font-weight: var(--product-title-weight); line-height: var(--product-title-line-height); }
.product-price { margin-top: var(--product-title-price-gap); color: var(--product-price-color); font-size: var(--product-price-size); font-weight: var(--product-price-weight); }
.product-lead { margin-top: var(--product-price-description-gap); color: var(--product-description-color); font-size: var(--product-description-size); line-height: var(--product-description-line-height); }
.product-add-to-cart-button { border-radius: var(--product-cart-radius) !important; background: var(--product-cart-bg) !important; color: var(--product-cart-text) !important; font-size: var(--product-cart-font-size); }
.product-add-to-cart-button:hover { background: var(--product-cart-hover) !important; }

/* Verwaltbare Darstellung von Kategorie- und Unterkategorieseiten */
.category-page-content--root {
    --category-current-heading-size: var(--category-heading-size, clamp(1.75rem,5vw,2.25rem)); --category-current-heading-color: var(--category-heading-color, var(--text)); --category-current-heading-weight: var(--category-heading-weight,700); --category-current-heading-align: var(--category-heading-align,left); --category-current-heading-margin: var(--category-heading-margin,24px);
    --category-current-description-size: var(--category-description-size,1rem); --category-current-description-color: var(--category-description-color,var(--text-muted)); --category-current-description-line-height: var(--category-description-line-height,1.65); --category-current-description-width: var(--category-description-width,820px); --category-current-description-display: var(--category-description-display,block); --category-current-description-margin-inline: var(--category-description-margin-inline,0);
    --category-current-grid-desktop: var(--category-grid-desktop,3); --category-current-grid-tablet: var(--category-grid-tablet,2); --category-current-grid-mobile: var(--category-grid-mobile,1); --category-current-grid-gap: var(--category-grid-gap,20px); --category-current-grid-margin: var(--category-grid-margin,36px);
    --category-current-card-bg: var(--category-card-bg,var(--surface)); --category-current-card-text-color: var(--category-card-text-color,var(--text)); --category-current-card-border-color: var(--category-card-border-color,var(--border)); --category-current-card-border-width: var(--category-card-border-width,1px); --category-current-card-radius: var(--category-card-radius,var(--radius)); --category-current-card-shadow: var(--category-card-shadow,var(--shadow)); --category-current-card-padding: var(--category-card-padding,26px);
    --category-current-name-size: var(--category-name-size,1.3rem); --category-current-name-color: var(--category-name-color,var(--text)); --category-current-name-weight: var(--category-name-weight,700); --category-current-name-align: var(--category-name-align,left); --category-current-name-image-gap: var(--category-name-image-gap,22px);
    --category-current-card-description-display: var(--category-card-description-display,block); --category-current-card-description-size: var(--category-card-description-size,1rem); --category-current-card-description-color: var(--category-card-description-color,var(--text-muted)); --category-current-card-description-lines: var(--category-card-description-lines,2);
    --category-current-image-height: var(--category-image-height,42px); --category-current-image-aspect: var(--category-image-aspect,1 / 1); --category-current-image-fit: var(--category-image-fit,contain); --category-current-image-radius: var(--category-image-radius,11px); --category-current-image-border-width: var(--category-image-border-width,1px); --category-current-image-border-color: var(--category-image-border-color,var(--border)); --category-current-image-shadow: var(--category-image-shadow,none);
    --category-current-hover-shadow: var(--category-hover-shadow,0 12px 28px rgba(43,38,29,.13)); --category-current-hover-transform: var(--category-hover-transform,translateY(-3px)); --category-current-hover-image-scale: var(--category-hover-image-scale,1); --category-current-hover-border-color: var(--category-hover-border-color,var(--accent)); --category-current-hover-background-color: var(--category-hover-background-color,var(--category-current-card-bg)); --category-current-image-padding: var(--category-image-padding,0); --category-current-glow-prefix: var(--category-glow-prefix,0 0 0); --category-current-glow-color: var(--category-glow-color,var(--accent));
}
.category-page-content--nested {
    --category-current-heading-size: var(--subcategory-heading-size, clamp(1.75rem,5vw,2.25rem)); --category-current-heading-color: var(--subcategory-heading-color,var(--text)); --category-current-heading-weight: var(--subcategory-heading-weight,700); --category-current-heading-align: var(--subcategory-heading-align,left); --category-current-heading-margin: var(--subcategory-heading-margin,24px);
    --category-current-description-size: var(--subcategory-description-size,1rem); --category-current-description-color: var(--subcategory-description-color,var(--text-muted)); --category-current-description-line-height: var(--subcategory-description-line-height,1.65); --category-current-description-width: var(--subcategory-description-width,820px); --category-current-description-display: var(--subcategory-description-display,block); --category-current-description-margin-inline: var(--subcategory-description-margin-inline,0);
    --category-current-grid-desktop: var(--subcategory-grid-desktop,3); --category-current-grid-tablet: var(--subcategory-grid-tablet,2); --category-current-grid-mobile: var(--subcategory-grid-mobile,1); --category-current-grid-gap: var(--subcategory-grid-gap,20px); --category-current-grid-margin: var(--subcategory-grid-margin,36px);
    --category-current-card-bg: var(--subcategory-card-bg,var(--surface)); --category-current-card-text-color: var(--subcategory-card-text-color,var(--text)); --category-current-card-border-color: var(--subcategory-card-border-color,var(--border)); --category-current-card-border-width: var(--subcategory-card-border-width,1px); --category-current-card-radius: var(--subcategory-card-radius,var(--radius)); --category-current-card-shadow: var(--subcategory-card-shadow,var(--shadow)); --category-current-card-padding: var(--subcategory-card-padding,26px);
    --category-current-name-size: var(--subcategory-name-size,1.3rem); --category-current-name-color: var(--subcategory-name-color,var(--text)); --category-current-name-weight: var(--subcategory-name-weight,700); --category-current-name-align: var(--subcategory-name-align,left); --category-current-name-image-gap: var(--subcategory-name-image-gap,22px);
    --category-current-card-description-display: var(--subcategory-card-description-display,block); --category-current-card-description-size: var(--subcategory-card-description-size,1rem); --category-current-card-description-color: var(--subcategory-card-description-color,var(--text-muted)); --category-current-card-description-lines: var(--subcategory-card-description-lines,2);
    --category-current-image-height: var(--subcategory-image-height,42px); --category-current-image-aspect: var(--subcategory-image-aspect,1 / 1); --category-current-image-fit: var(--subcategory-image-fit,contain); --category-current-image-radius: var(--subcategory-image-radius,11px); --category-current-image-border-width: var(--subcategory-image-border-width,1px); --category-current-image-border-color: var(--subcategory-image-border-color,var(--border)); --category-current-image-shadow: var(--subcategory-image-shadow,none);
    --category-current-hover-shadow: var(--subcategory-hover-shadow,0 12px 28px rgba(43,38,29,.13)); --category-current-hover-transform: var(--subcategory-hover-transform,translateY(-3px)); --category-current-hover-image-scale: var(--subcategory-hover-image-scale,1); --category-current-hover-border-color: var(--subcategory-hover-border-color,var(--accent)); --category-current-hover-background-color: var(--subcategory-hover-background-color,var(--category-current-card-bg)); --category-current-image-padding: var(--subcategory-image-padding,0); --category-current-glow-prefix: var(--subcategory-glow-prefix,0 0 0); --category-current-glow-color: var(--subcategory-glow-color,var(--accent));
}
.category-page-content .category-page-heading { max-width:none; margin-bottom:var(--category-current-heading-margin); text-align:var(--category-current-heading-align); }
.category-page-content .category-page-heading h1 { color:var(--category-current-heading-color); font-size:var(--category-current-heading-size); font-weight:var(--category-current-heading-weight); }
.category-page-content .category-page-description { display:var(--category-current-description-display); max-width:var(--category-current-description-width); margin-inline:var(--category-current-description-margin-inline); color:var(--category-current-description-color); font-size:var(--category-current-description-size); line-height:var(--category-current-description-line-height); }
.category-page-content .category-products>h2 { max-width:100%; margin:var(--category-products-heading-margin-top,0) 0 var(--category-products-heading-margin-bottom,22px); overflow-wrap:anywhere; font-size:var(--category-products-heading-size,clamp(1.45rem,3vw,2rem)); text-align:var(--category-products-heading-align,left); }
.category-page-content .category-overview>h2 { max-width:100%; margin:var(--category-subcategories-heading-margin-top,0) 0 var(--category-subcategories-heading-margin-bottom,36px); overflow-wrap:anywhere; font-size:var(--category-subcategories-heading-size,clamp(1.45rem,3vw,2rem)); text-align:var(--category-subcategories-heading-align,left); }
.category-page-content .category-overview:has(>h2) .subcategory-grid { margin-top:0; }
.category-page-content .subcategory-grid { grid-template-columns:repeat(var(--category-current-grid-desktop),minmax(0,1fr)); gap:var(--category-current-grid-gap); margin-block:var(--category-current-grid-margin); }
.category-page-content .subcategory-card { border-width:var(--category-current-card-border-width); border-color:var(--category-current-card-border-color); border-radius:var(--category-current-card-radius); background:var(--category-current-card-bg); box-shadow:var(--category-current-card-shadow); color:var(--category-current-card-text-color); transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease; }
.category-page-content .subcategory-card__content { min-height:245px; padding:var(--category-current-card-padding); text-align:var(--category-current-name-align); }
.category-page-content .subcategory-card__icon { display:flex; width:100%; min-width:0; max-width:100%; height:var(--subcategory-card-image-height,80px); margin-bottom:0; padding:var(--category-current-image-padding); align-items:center; justify-content:center; aspect-ratio:auto; border-width:var(--category-current-image-border-width); border-color:var(--category-current-image-border-color); border-radius:var(--category-current-image-radius); background:var(--subcategory-card-image-background,transparent); box-shadow:var(--category-current-image-shadow); overflow:hidden; box-sizing:border-box; }
.category-page-content .subcategory-card__icon img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:var(--subcategory-card-image-fit,contain); object-position:center; transition:transform .2s ease; }
.category-page-content .subcategory-card__icon+strong { margin-top:var(--subcategory-card-title-spacing,24px); }
.category-page-content .subcategory-card__content>strong { max-width:100%; overflow-wrap:anywhere; color:var(--category-current-name-color); font-size:var(--subcategory-card-title-size,1.3rem); font-weight:var(--category-current-name-weight); text-align:var(--subcategory-card-title-align,left); }
.category-page-content .subcategory-card__description { display:var(--category-current-card-description-display); color:var(--category-current-card-description-color); font-size:var(--category-current-card-description-size); -webkit-line-clamp:var(--category-current-card-description-lines); }
@media (hover:hover) and (pointer:fine) { .category-page-content .subcategory-card:hover { border-color:var(--category-current-hover-border-color); background:var(--category-current-hover-background-color); box-shadow:var(--category-current-hover-shadow),var(--category-current-glow-prefix) var(--category-current-glow-color); transform:var(--category-current-hover-transform); } .category-page-content .subcategory-card:hover .subcategory-card__icon img { transform:scale(var(--category-current-hover-image-scale)); } }
@media(max-width:900px){.category-page-content .subcategory-grid{grid-template-columns:repeat(var(--category-current-grid-tablet),minmax(0,1fr));}}
@media(max-width:560px){.category-page-content .subcategory-grid{grid-template-columns:repeat(var(--category-current-grid-mobile),minmax(0,1fr));}.category-page-content .subcategory-card{min-width:0;}}
@media(prefers-reduced-motion:reduce){.category-page-content .subcategory-card,.category-page-content .subcategory-card__icon img{transition:none!important}.category-page-content .subcategory-card:hover{transform:none}}

/* Reihenfolge und getrenntes Produktraster innerhalb der Kategorieansicht */
.category-page-content { display:flex; flex-direction:column; }
.category-page-heading { order:1; }
.category-overview { order:2; }
.category-products,
.category-products-empty { order:3; }
.subcategory-position--below .category-overview { order:4; }
.category-page-content .category-products .product-grid {
    grid-template-columns:repeat(var(--category-product-grid-desktop,3),minmax(0,1fr));
    gap:var(--category-product-grid-gap,24px);
}
.category-page-content .subcategory-card__content { min-height:0; }
.category-page-content .subcategory-card:not(:has(.subcategory-card__icon)) .subcategory-card__link { margin-top:14px; padding-top:0; }
@media(max-width:900px){.category-page-content .category-products .product-grid{grid-template-columns:repeat(var(--category-product-grid-tablet,2),minmax(0,1fr));}}
@media(max-width:560px){.category-page-content .category-products .product-grid{grid-template-columns:repeat(var(--category-product-grid-mobile,1),minmax(0,1fr));}.category-page-content .category-products .product-card{min-width:0;}}

.category-product-toolbar {
    display: flex;
    margin-bottom: 24px;
    padding: 14px;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
}

.category-view-switch {
    display: inline-flex;
    padding: 3px;
    gap: 3px;
    border: 1px solid var(--category-view-switch-border, var(--border));
    border-radius: 10px;
    background: var(--category-view-switch-bg, var(--surface));
}

.category-view-switch__button {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 7px;
    background: var(--category-view-switch-bg, var(--surface));
    color: var(--category-view-switch-text, var(--text-muted));
    font-weight: 700;
    text-decoration: none;
}

.category-view-switch__button.is-active {
    background: var(--category-view-switch-active-bg, var(--accent-dark));
    color: var(--category-view-switch-active-text, #fff);
}

.category-product-count {
    margin: auto auto 9px 0;
    color: var(--text-muted);
    font-size: .9rem;
    white-space: nowrap;
}

.category-product-control {
    display: grid;
    min-width: 170px;
    gap: 5px;
}

.category-product-control label {
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
}

.category-product-control select {
    min-height: 42px;
    padding: 8px 34px 8px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
}

.category-page-content .category-products .product-grid--list {
    grid-template-columns: 1fr;
}

.category-products .product-grid--list .product-card {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}

.category-products .product-grid--list .product-card__image {
    min-height: 190px;
}

.category-products .product-grid--list .product-card__image img {
    height: 100%;
    min-height: 190px;
}

.category-products .product-grid--list .product-card__content {
    display: flex;
    padding: 28px;
    flex-direction: column;
}

.category-products .product-grid--list .product-card__footer {
    margin-top: auto;
}

.category-products .product-card {
    border-color: var(--category-product-card-border-color, var(--border));
    background: var(--category-product-card-bg, var(--surface));
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-products .product-card__image {
    padding: var(--category-product-image-padding, 0);
    overflow: hidden;
    box-sizing: border-box;
}

.category-products .product-card__image img {
    transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .category-products .product-card:hover {
        border-color: var(--category-product-card-hover-border-color, var(--accent));
        box-shadow: var(--category-product-card-hover-shadow, var(--shadow)), var(--category-product-card-glow-prefix, 0 0 0) var(--category-product-card-glow-color, var(--accent));
        transform: var(--category-product-card-hover-transform, none);
    }
    .category-products .product-card:hover .product-card__image img {
        transform: scale(var(--category-product-card-hover-image-scale, 1));
    }
}

.category-pagination {
    display: flex;
    margin-top: 34px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.category-pagination__page,
.category-pagination__direction {
    display: inline-grid;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 11px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.category-pagination__page.is-current {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.category-pagination__ellipsis {
    padding: 0 3px;
    color: var(--text-muted);
}

@media(max-width:700px) {
    .category-product-toolbar { align-items: stretch; }
    .category-view-switch { width: 100%; }
    .category-view-switch__button { flex: 1; text-align: center; }
    .category-product-count { width: 100%; margin: 0; }
    .category-product-control { min-width: min(100%, 210px); flex: 1; }
    .category-products .product-grid--list .product-card { grid-template-columns: 1fr; }
    .category-products .product-grid--list .product-card__image { min-height: 210px; }
    .category-products .product-grid--list .product-card__image img { height: 210px; min-height: 0; }
    .category-pagination { gap: 8px; }
    .category-pagination__direction { flex: 1; }
    .category-pagination__pages { width: 100%; order: -1; }
}

@media(prefers-reduced-motion: reduce) {
    .category-page-content .subcategory-card,
    .category-products .product-card,
    .category-products .product-card__image img,
    .category-page-content .subcategory-card__icon img {
        transition: none !important;
    }
    .category-page-content .subcategory-card:hover,
    .category-products .product-card:hover,
    .category-products .product-card:hover .product-card__image img {
        transform: none;
    }
}

/* Merkzettel */
.wishlist-count { display:inline-grid; min-width:var(--header-cart-badge-size); height:var(--header-cart-badge-size); margin-left:5px; padding-inline:5px; place-items:center; border-radius:999px; background:var(--header-cart-badge-bg); color:var(--header-cart-badge-text); font-size:.78rem; font-weight:700; }
.wishlist-flash { margin-top:18px; }
.wishlist-flash .alert { margin:0; }
.product-secondary-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.product-secondary-actions .product-wishlist-form { margin:0; }
.product-secondary-actions .button { width:100%; min-height:46px; box-sizing:border-box; }
.product-wishlist-button { width:100%; gap:8px; }
.product-wishlist-button span { color:var(--accent); font-size:1.25rem; }
.product-question-button { gap:8px; text-align:center; text-decoration:none; }
.product-question-button span { color:var(--accent); font-size:1.15rem; }
@media(max-width:640px) { .product-secondary-actions { grid-template-columns:1fr; } }
.account-wishlist-card { display:flex; margin-bottom:24px; padding:22px 24px; align-items:center; justify-content:space-between; color:var(--text); text-decoration:none; }
.account-wishlist-card h2,.account-wishlist-card p { margin:0; }
.account-wishlist-card p { margin-top:5px; color:var(--text-muted); }
.account-wishlist-card>span { color:var(--accent); font-size:1.8rem; }
.wishlist-login-note { display:flex; margin-bottom:24px; padding:18px 20px; align-items:center; justify-content:space-between; gap:18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface-muted); }
.wishlist-login-note p { margin:0; }
.wishlist-list { display:grid; gap:16px; }
.wishlist-item { display:grid; grid-template-columns:112px minmax(0,1fr) auto; gap:20px; padding:18px; align-items:center; border:1px solid var(--card-border); border-radius:var(--radius); background:var(--card-background); box-shadow:var(--shadow); }
.wishlist-item__image { display:grid; width:112px; height:112px; place-items:center; overflow:hidden; border-radius:calc(var(--radius) * .7); background:var(--surface-muted); color:var(--text-muted); text-decoration:none; }
.wishlist-item__image img { width:100%; height:100%; object-fit:contain; }
.wishlist-item__content h2 { margin:0 0 8px; font-size:1.2rem; }
.wishlist-item__unavailable { margin:8px 0 0; color:var(--text-muted); }
.wishlist-item__actions { display:grid; gap:8px; justify-items:stretch; }
.wishlist-item__actions form { margin:0; }
.wishlist-item__actions .button { width:100%; text-align:center; }
@media(max-width:700px) { .wishlist-login-note{align-items:stretch;flex-direction:column}.wishlist-item{grid-template-columns:82px minmax(0,1fr);gap:14px}.wishlist-item__image{width:82px;height:82px}.wishlist-item__actions{grid-column:1/-1} }

/* Login-Felder trotz Zusatzlink im Passwort-Label exakt ausrichten. */
.account-form:has(input[name="password"][autocomplete="current-password"]) > label {
    align-self: start;
}

.account-form:has(input[name="password"][autocomplete="current-password"]) > label > input {
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
}

.account-form:has(input[name="password"][autocomplete="current-password"]) > .button {
    margin-top: -10px;
}

/* Mobile-Header: nach den allgemeinen Desktop-Zuordnungen korrigieren. */
@media (max-width: 760px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-rows: auto auto auto;
    }

    .site-header__inner::before {
        grid-row: 1 / 3;
        margin-bottom: -5px;
    }

    .site-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .header-search-row {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .mobile-menu-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .main-nav__primary {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .main-nav__primary::before {
        inset: -5px 0 -8px;
    }
}

@media (max-width: 560px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto auto;
    }

    .site-header__inner--without-primary-navigation {
        grid-template-rows: auto auto auto;
        row-gap: 24px;
    }

    .site-header__inner::before {
        grid-row: 1 / 4;
    }

    .header-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .header-search-row {
        grid-column: 1 / -1;
        grid-row: 3;
        align-items: stretch;
        flex-direction: column;
    }

    .header-category-menu {
        margin-right: 0;
    }

    .header-category-menu__toggle,
    .header-category-menu__panel {
        width: 100%;
    }

    .header-category-menu__panel--with-subcategories {
        display: block;
    }

    .header-category-menu__panel--with-subcategories.has-open-submenu .header-category-menu__roots {
        padding-right: 0;
        border-right: 0;
    }

    .header-category-menu__subcategories {
        padding: 0;
        border-top: 0;
    }

    .header-category-menu__panel.has-open-submenu .header-category-menu__subcategories {
        padding: 8px 0 0;
        border-top: 1px solid var(--border);
    }

    .main-nav__primary {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}

/* Vereinfachte Header-Bedienung ausschliesslich auf Mobilgeraeten. */
.mobile-header-search-toggle {
    display: none;
}

@media (max-width: 760px) {
    .mobile-menu-toggle {
        display: none;
    }

    .js .main-nav__primary,
    .main-nav__primary {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 2px 4px;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav__primary::-webkit-scrollbar {
        display: none;
    }

    .main-nav__primary > a {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .mobile-header-search-toggle {
        position: relative;
        z-index: 10;
        grid-column: 3;
        grid-row: 1;
        display: inline-flex;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        align-items: center;
        justify-content: center;
        justify-self: end;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface);
        color: var(--header-link-color, var(--text));
        cursor: pointer;
    }

    .mobile-header-search-toggle:hover,
    .mobile-header-search-toggle[aria-expanded="true"] {
        color: var(--header-link-hover, var(--text));
        background: var(--surface-muted);
    }

    .mobile-header-search-toggle:focus-visible {
        outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
        outline-offset: 2px;
    }

    .mobile-header-search-toggle svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 2;
    }

    .header-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .header-search-row .header-search {
        display: none;
        width: 100%;
        order: 1;
    }

    .header-search-row.is-mobile-search-open .header-search {
        display: grid;
    }

    .header-category-menu {
        width: 100%;
        margin-right: 0;
        order: 2;
    }

    .header-category-menu__toggle,
    .header-category-menu__panel {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .mobile-header-search-toggle {
        grid-column: 2;
    }
}

/* Kompakte Smartphone-Kopfzeile: Logo, Kategorien, Aktionen und Suche bleiben
   in einer Zeile; die frei verwaltete Linkleiste bleibt auf dem Desktop. */
@media (max-width: 600px) {
    .site-header__inner,
    .site-header__inner--without-primary-navigation {
        min-height: 0;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-rows: auto;
        gap: 4px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .site-logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        max-width: 64px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .site-logo img {
        max-width: 64px;
        max-height: 42px;
    }

    .header-search-row {
        display: contents;
    }

    .header-category-menu {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        margin: 0;
    }

    .header-category-menu__toggle {
        width: 100%;
        min-height: 44px;
        padding: 6px 7px;
        gap: 4px;
        justify-content: center;
        font-size: .82rem;
    }

    .header-search-row .header-search {
        display: none;
    }

    .main-nav {
        display: contents;
    }

    .main-nav__primary {
        display: none !important;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 2px;
        min-width: 0;
    }

    .header-actions .header-action-link,
    .header-actions .header-action-link--counted {
        width: 38px;
        min-width: 38px;
        height: 44px;
        padding: 0;
    }

    .header-actions .header-action-link--counted {
        width: 42px;
        min-width: 42px;
        padding-right: 6px;
    }

    .mobile-header-search-toggle {
        grid-column: 4;
        grid-row: 1;
        width: 40px;
        min-width: 40px;
        height: 44px;
        justify-self: end;
        border: 0;
        background: transparent;
    }
}

/* Kategorien-Megamenü: Desktop zeigt direkte Unterkategorien als Kacheln,
   die vorhandene stufenweise Touch-Navigation bleibt mobil erhalten. */
@media (min-width: 761px) {
    .site-header__inner {
        position: relative;
    }

    .header-category-menu {
        position: static;
    }

    .header-category-menu__panel {
        left: calc(560px - 50vw);
    }

    .header-category-menu__panel--with-subcategories.has-open-submenu {
        width: min(960px, calc(100vw - 32px));
        height: min(680px, 70vh);
        max-height: none;
        grid-template-columns: 220px minmax(0, 1fr);
        overflow: hidden;
    }

    .header-category-menu__panel--with-subcategories.has-open-submenu .header-category-menu__roots {
        min-height: 0;
        padding-right: 8px;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .header-category-menu__subcategories {
        min-height: 0;
        padding-left: 16px;
    }

    .header-category-menu__submenu {
        height: 100%;
        min-height: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: min-content;
        align-content: start;
        gap: 14px;
        padding-right: 4px;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .header-category-menu__back,
    .header-category-menu__path,
    .header-category-menu__parent-link,
    .header-category-menu__show-all,
    .header-category-menu__empty {
        grid-column: 1 / -1;
    }

    .header-category-menu__back {
        display: none;
    }

    .header-category-menu__path {
        padding: 2px 0 0;
        font-size: .95rem;
    }

    .header-category-menu__panel .header-category-menu__parent-link {
        width: fit-content;
        min-height: auto;
        padding: 0;
        color: var(--header-category-menu-panel-text, var(--text));
        font-size: 1.05rem;
        font-weight: 700;
    }

    .header-category-menu__show-all {
        display: none;
    }

    .header-category-menu__tile,
    .header-category-menu__child.header-category-menu__tile {
        min-width: 0;
        display: block;
        border-radius: 8px;
    }

    .header-category-menu__tile > a,
    .header-category-menu__tile:not(.header-category-menu__child) {
        min-height: 0;
        padding: 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 8px;
        color: var(--header-category-menu-panel-text, var(--text));
        text-align: center;
    }

    .header-category-menu__tile-image {
        width: 100%;
        aspect-ratio: 1;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface-muted);
    }

    .header-category-menu__tile-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .header-category-menu__tile > button {
        display: none;
    }

    .header-category-menu__tile > a:hover,
    .header-category-menu__tile > a:focus-visible,
    .header-category-menu__tile:not(.header-category-menu__child):hover,
    .header-category-menu__tile:not(.header-category-menu__child):focus-visible {
        background: transparent;
        color: var(--header-category-menu-panel-text, var(--text));
    }

    .header-category-menu__tile > a:hover .header-category-menu__tile-image,
    .header-category-menu__tile > a:focus-visible .header-category-menu__tile-image,
    .header-category-menu__tile:not(.header-category-menu__child):hover .header-category-menu__tile-image,
    .header-category-menu__tile:not(.header-category-menu__child):focus-visible .header-category-menu__tile-image {
        border-color: var(--header-category-menu-panel-hover, var(--accent));
        box-shadow: 0 5px 14px rgba(25, 31, 35, .1);
    }
}

@media (min-width: 761px) and (max-width: 1220px) {
    .header-category-menu__panel {
        left: -180px;
    }
}

@media (max-width: 760px) {
    .header-category-menu__panel {
        left: 50%;
        width: min(680px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
        transform: translateX(-50%);
    }

    .header-category-menu__tile-image {
        display: none;
    }

    .header-category-menu__tile > a,
    .header-category-menu__tile:not(.header-category-menu__child) {
        text-align: left;
    }

    .header-category-menu__panel.has-open-submenu .header-category-menu__roots {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-category-menu {
        position: static;
    }
}

/* Kompakte Produktkarten ausschließlich im Bereich "Ähnliche Produkte". */
.related-products .section-heading {
    margin-bottom: var(--related-title-margin, 24px);
}

.related-products .section-heading .eyebrow {
    display: var(--related-eyebrow-display, block);
    color: var(--related-eyebrow-color, #486251);
    font-size: var(--related-eyebrow-size, .9rem);
    font-weight: var(--related-eyebrow-weight, 700);
}

.related-products .section-heading h2 {
    color: var(--related-title-color, #292722);
    font-size: var(--related-title-size, 2.125rem);
    font-weight: var(--related-title-weight, 700);
}

.related-products .product-grid {
    grid-template-columns: repeat(var(--related-grid-desktop, 4), minmax(0, 270px));
    gap: var(--related-card-gap, 24px);
    justify-content: start;
}

.related-products .product-card {
    width: 100%;
    background: var(--related-card-bg, #fff);
    border-color: var(--related-card-border-color, #ded9d0);
    border-width: var(--related-card-border-width, 1px);
    border-radius: var(--related-card-radius, 16px);
    box-shadow: var(--related-card-shadow, var(--shadow));
    transition: transform .2s ease, box-shadow .2s ease;
}

.related-products .product-card__image {
    height: var(--related-image-height, 240px);
    min-height: 0;
    padding: var(--related-image-padding, 0);
    border-radius: var(--related-image-radius, 0);
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
}

.related-products .product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--related-image-fit, contain);
    transition: transform .25s ease;
}

.related-products .product-card__content {
    padding: 18px;
}

.related-products .product-card h2 {
    display: -webkit-box;
    overflow: hidden;
    color: var(--related-product-title-color, #292722);
    font-size: var(--related-product-title-size, 1rem);
    font-weight: var(--related-product-title-weight, 700);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--related-product-title-lines, 3);
}

.related-products .product-card h2 a {
    color: inherit;
}

.related-products .product-card__content > p {
    display: var(--related-description-display, -webkit-box);
    overflow: hidden;
    color: var(--related-description-color, #6c685f);
    font-size: var(--related-description-size, 1rem);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--related-description-lines, 2);
}

.related-products .price {
    color: var(--related-price-color, #292722);
    font-size: var(--related-price-size, 1rem);
    font-weight: var(--related-price-weight, 700);
}

.related-products .product-card__footer a {
    color: var(--related-link-color, #486251);
    font-size: var(--related-link-size, 1rem);
}

.related-products .product-card__footer a:hover {
    color: var(--related-link-hover-color, #33483a);
}

@media (hover: hover) and (pointer: fine) {
    .related-products .product-card:hover {
        transform: var(--related-hover-transform, none);
        box-shadow: var(--related-hover-shadow, 0 0 0 transparent), var(--related-glow-prefix, 0 0 0 0) var(--related-glow-color, #486251);
    }

    .related-products .product-card:hover .product-card__image img {
        transform: scale(var(--related-image-hover-scale, 1));
    }
}

@media (max-width: 900px) {
    .related-products .product-grid {
        grid-template-columns: repeat(var(--related-grid-tablet, 2), minmax(0, 270px));
    }

    .related-products .product-card__image {
        height: min(var(--related-image-height, 240px), 220px);
    }
}

@media (max-width: 560px) {
    .related-products .product-grid {
        grid-template-columns: repeat(var(--related-grid-mobile, 1), minmax(0, 1fr));
    }

    .related-products .product-card__image {
        height: min(var(--related-image-height, 240px), 190px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-products .product-card {
        transition: none;
    }

    .related-products .product-card__image img {
        transition: none;
    }

    .related-products .product-card:hover {
        transform: none;
    }

    .related-products .product-card:hover .product-card__image img {
        transform: none;
    }
}
@media (min-width: 1221px) {
    .header-category-menu {
        transform: translateX(-120px);
    }
}
