/* InnoEvents Verkauf – Shop-Layout. Basis, Buttons, Chips, Formularfelder, Karten, Tabs, Badges, Dialoge: verkauf_design.css */
@import url("verkauf_design.css?v=20261204n");

.intro-photo {
    margin: 0;
    background: var(--media);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.intro-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop { background: var(--canvas); color: var(--ink); overflow-x: hidden; }
.shop .intro { padding: 12px 0 4px; }
.shop .intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr);
    gap: 22px;
    align-items: center;
}
.shop h1 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.shop .intro p { margin: 0 0 14px; color: var(--muted); max-width: 62ch; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-actions .btn { min-height: 44px; }
.scope-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.scope-switch button, .download-kinds .chip { min-height: 44px; }
.scope-switch button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.scope-switch button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #202020; }
.download-kinds { margin-bottom: 10px; }
fieldset[hidden], .download-kinds[hidden] { display: none; }
.shop .intro-photo { height: 148px; }
.shop .intro-photo img { object-fit: cover; object-position: center 46%; }
.catalog { padding: 8px 0 48px; }
.filter-bar {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 14px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row + .filter-row { margin-top: 8px; }
.search-field { flex: 1 1 280px; min-width: 0; }
.sort-views { display: flex; flex: 1 1 280px; align-items: center; gap: 8px; min-width: 0; }
.sort-field { flex: 0 0 190px; }
.view-switch { display: inline-flex; gap: 2px; }
.view-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
}
.view-btn svg { width: 16px; height: 16px; fill: currentColor; }
.view-btn[aria-pressed="true"] { color: var(--ink); border-color: var(--line); background: var(--paper); }
.product-card { position: relative; }
.merk-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
}
.product-card > .merk-btn { position: absolute; top: 6px; right: 6px; z-index: 2; background: rgba(255, 255, 255, 0.9); }
.merk-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.merk-btn[aria-pressed="true"] { color: var(--orange); }
.merk-btn[aria-pressed="true"] svg { fill: var(--orange); stroke: var(--orange); }
.catalog-list { display: flex; flex-direction: column; gap: 8px; }
.list-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.list-media { width: 84px; height: 64px; aspect-ratio: auto; border-radius: 8px; }
.list-copy { min-width: 0; }
.list-copy .product-title, .list-copy .card-title { margin: 0; text-align: left; }
.list-meta { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }
.list-end { display: flex; align-items: center; gap: 8px; }
.list-end .price-row { margin: 0; }
.saved-list { display: flex; flex-direction: column; gap: 8px; }
.saved-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.saved-main { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.saved-main img, .saved-placeholder { width: 64px; height: 48px; object-fit: contain; background: var(--media); border-radius: 6px; flex: 0 0 auto; }
.saved-main span { min-width: 0; }
.saved-main small { display: block; color: var(--muted); }
@media (max-width: 520px) {
    .list-row, .saved-row { grid-template-columns: 64px minmax(0, 1fr); }
    .list-media { width: 64px; }
    .list-end, .saved-price, .saved-row .btn { grid-column: 2; }
    .list-end { justify-content: space-between; }
}
.sort-field select {
    width: 100%;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    border: 1px solid #cfcfcf;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.filter-group { margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.filter-pair { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 28px; }
.filter-pair > .filter-group { flex: 0 1 auto; min-width: min(100%, 11rem); }
.filter-group legend { margin-bottom: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    margin-left: 6px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--orange);
    color: #202020;
    font-size: 0.75rem;
    font-weight: 600;
}
.filter-count[hidden] { display: none; }
.filter-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.filter-status:not(:has(:not([hidden]))) { display: none; }
.filter-status .active-filter-summary { margin-top: 0; flex: 1 1 auto; }
.filter-status .btn { min-height: 40px; }
.search-field input {
    width: 100%;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    border: 1px solid #cfcfcf;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.result-count { margin: 0 0 12px; color: var(--muted); }
.products-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    align-items: stretch;
}
.category-section { min-width: 0; margin: 0 0 28px; }
.category-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--line);
}
.category-head .category-icon { flex: 0 0 auto; font-size: 1.6rem; line-height: 1; }
.category-head h2 { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.category-head p { margin: 2px 0 0; color: var(--muted); }
.promo-banner { margin: 0 0 16px; min-width: 0; }
.promo-banner strong { display: block; font-size: 1.25rem; }
.promo-banner p { margin: 4px 0 0; color: var(--muted); }
.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}
.product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--media);
    overflow: hidden;
}
.product-image-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--media); }
.list-row .list-media { aspect-ratio: auto; width: 84px; height: 64px; }
@media (max-width: 520px) {
    .list-row .list-media { width: 64px; height: 48px; }
}
.product-media img, .product-image, .media-open img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: var(--media);
}
.media-open, .card-title {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.media-open {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.media-open:focus-visible { outline-offset: -4px; }
.card-title {
    display: -webkit-box;
    width: 100%;
    font-weight: 600;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.preview-sheet {
    display: flex;
    flex-direction: column;
    width: min(960px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: 16px auto;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font);
}
.preview-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.preview-head h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.preview-head .modal-close {
    flex: 0 0 auto;
    min-height: 40px;
    margin: 0;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.preview-head .modal-close:hover,
.preview-head .modal-close:focus-visible {
    border-color: var(--orange);
    color: var(--orange);
}
.preview-body {
    min-height: 0;
    overflow: auto;
    padding: 12px;
}
.preview-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 160px;
    max-height: min(58dvh, 640px);
    background: var(--media);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.preview-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(58dvh, 640px);
    object-fit: contain;
}
.preview-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.preview-nav button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
}
.preview-nav button:hover,
.preview-nav button:focus-visible,
.preview-thumbs button.is-active {
    border-color: var(--orange);
    color: var(--orange);
}
.preview-count { min-width: 4.5ch; color: var(--muted); font-weight: 600; text-align: center; }
.preview-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.preview-thumbs button {
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--media);
    cursor: pointer;
}
.preview-thumbs img {
    display: block;
    width: 72px;
    height: 54px;
    object-fit: cover;
}
.preview-sheet .model-stage { width: 100%; }
@media (max-width: 720px) {
    .preview-sheet {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        height: 100svh;
        max-height: 100dvh;
        max-height: 100svh;
        margin: 0;
        border: 0;
        border-radius: 0;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .preview-head { padding-top: max(10px, env(safe-area-inset-top)); }
    .preview-stage,
    .preview-stage img { max-height: min(46svh, 480px); }
    .preview-thumbs { padding-bottom: 4px; }
}
.media-nav {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
}
.media-nav:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.media-nav button, .gallery-nav button, button.chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.media-nav .chev { position: absolute; top: 50%; pointer-events: auto; transform: translateY(-50%); background: rgba(32, 32, 32, 0.86); color: #fff; border-color: transparent; }
.media-nav .chev.prev { left: 8px; }
.media-nav .chev.next { right: 8px; }
.media-nav .chev:hover, .media-nav .chev:focus-visible { background: #202020; color: #fff; border-color: var(--orange); }
button.chev { font-size: 0; }
button.chev::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}
button.chev.prev::before { transform: rotate(135deg); }
.media-nav button:hover, .media-nav button:focus-visible,
.gallery-nav button:hover, .gallery-nav button:focus-visible,
button.chev:hover, button.chev:focus-visible { border-color: var(--orange); color: var(--orange); }
.media-count {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    background: #202020;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
}
.product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding: 12px 12px 14px;
}
.product-title {
    margin: 0;
    min-height: 2.6em;
    max-height: 2.6em;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
}
.card-meta {
    margin: 0;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sheet-title {
    margin: 0 0 8px;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.25;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 1.6em; }
.price { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.price-compare { color: #8a8a8a; font-size: 0.82rem; font-weight: 400; text-decoration: line-through; }
.vat-note {
    margin: 2px 0 0;
    max-width: 100%;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.message-compose { display: grid; gap: 8px; margin-top: 12px; min-width: 0; max-width: 100%; }
.message-compose[hidden] { display: none; }
.message-compose textarea { width: 100%; max-width: 100%; }
.message-recipient { overflow-wrap: anywhere; }
#messagesSection .message-layout { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 16px; align-items: stretch; min-width: 0; }
#messagesSection .message-list { display: grid; gap: 8px; align-content: start; min-width: 0; }
#messagesSection .message-row { display: flex; gap: 10px; width: 100%; min-width: 0; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
#messagesSection .message-row.is-active { border-color: var(--ink); }
#messagesSection .message-row.is-unread { box-shadow: inset 3px 0 0 var(--orange); }
#messagesSection .user-chat-thumb { width: 56px; height: 56px; max-width: 56px; max-height: 56px; object-fit: cover; border-radius: 8px; background: var(--canvas); flex: 0 0 56px; }
#messagesSection .user-chat-thumb.is-empty { display: block; border: 1px solid var(--line); }
#messagesSection .message-row-copy { display: grid; min-width: 0; }
#messagesSection .message-preview, #messagesSection .message-meta, #messagesSection .user-chat-state { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
#messagesSection .message-thread { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 420px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); }
#messagesSection .message-head { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 8px; border-radius: 12px; background: var(--paper); }
#messagesSection .message-head-copy { min-width: 0; }
#messagesSection .message-title { margin: 0; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#messagesSection .message-log { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 180px; max-height: min(52vh, 480px); overflow: auto; padding: 4px; }
#messagesSection .user-chat-day { align-self: center; margin: 4px 0; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 0.78rem; }
#messagesSection .message-bubble { max-width: min(78%, 460px); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--paper); }
#messagesSection .message-bubble.is-mine { align-self: flex-end; background: #fff7f0; }
#messagesSection .message-bubble.is-theirs { align-self: flex-start; }
#messagesSection .message-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
#messagesSection .message-reply { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--paper); }
#messagesSection .message-reply textarea { width: 100%; max-width: 100%; min-height: 88px; }
#messagesSection .message-back { display: none; align-self: flex-start; }
#messagesSection :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 720px) {
    #messagesSection .message-layout { grid-template-columns: 1fr; }
    #messagesSection .message-back { display: inline-flex; }
    #messagesSection .message-layout.is-open .message-list { display: none; }
    #messagesSection .message-layout:not(.is-open) .message-thread { display: none; }
    #messagesSection .message-bubble { max-width: 88%; }
}
.facts { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.88rem; }
.facts li { margin: 0; }
.details-btn { margin-top: auto; align-self: flex-start; }
.details-btn .arrow { display: inline-block; }
.product-dialog {
    width: min(1080px, calc(100% - 32px));
    margin: 24px auto;
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    gap: 18px 28px;
    padding: 16px 18px 22px;
    max-height: calc(100vh - 48px);
    overflow: auto;
}
.product-dialog-bar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--paper);
}
.dialog-product-title {
    margin: 0;
    min-width: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dialog-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}
.dialog-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dialog-icon-btn.is-copy { width: auto; padding: 0 12px; }
.dialog-icon-btn:focus-visible,
.model-ar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.product-dialog-bar .merk-btn,
.product-dialog-bar .merk-btn.dialog-icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    color: var(--ink);
}
.product-dialog-bar .merk-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.product-dialog-bar .merk-btn[aria-pressed="true"] { color: var(--orange); }
.product-dialog-bar .merk-btn[aria-pressed="true"] svg { fill: var(--orange); stroke: var(--orange); }
.product-dialog-bar .modal-close { position: static; grid-column: auto; justify-self: center; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; text-decoration: none; }
.product-dialog-bar .share-note { grid-column: 1 / -1; margin: 0; }
.detail-meta { margin: 0; color: var(--muted); font-size: 0.92rem; }
.share-note {
    margin: 0 auto 0 0;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
}
.share-note[hidden] { display: none; }
.share-note.is-error { color: #8a1f1f; }
.modal-close {
    justify-self: end;
    grid-column: 1 / -1;
    background: none;
    border: 0;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.product-dialog .modal-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product-dialog .sheet-title,
.product-dialog .product-manufacturer,
.product-dialog .sheet-block,
.product-dialog .fold,
.product-dialog .offer-facts,
.product-dialog .dialog-actions { margin: 0; }
.product-dialog .product-manufacturer { color: var(--muted); }
.detail-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 16px;
    margin: 0;
}
.detail-facts div { display: contents; }
.detail-facts dt { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.detail-facts dd { margin: 0; color: var(--ink); font-size: 0.95rem; }
.product-dialog .detail-price {
    display: grid;
    gap: 4px;
    margin: 2px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.product-dialog .sheet-title { font-size: 1.7rem; }
.product-dialog .price { font-size: 1.5rem; line-height: 1.1; }
.product-dialog .price-compare { font-size: 1rem; }
.product-dialog .dialog-actions { display: grid; gap: 8px; }
.product-dialog .dialog-actions .btn { width: 100%; min-height: 44px; }
.product-dialog .dialog-actions .btn-secondary {
    background: var(--paper);
    border-color: var(--ink);
    color: var(--ink);
}
.product-dialog .detail-quiet {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.product-dialog .detail-quiet span { color: var(--muted); font-size: 0.82rem; font-weight: 400; text-decoration: none; }
.sheet-block { margin: 0 0 16px; }
.sheet-block h3 { margin: 0 0 6px; font-size: 1rem; }
.sheet-block p { margin: 0; white-space: pre-line; }
.muted { color: var(--muted); margin: 0 0 8px; }
#contactActions { display: contents; }
.dialog-actions .guest-message { flex-direction: column; align-items: flex-start; gap: 2px; height: auto; text-align: left; }
.dialog-actions .guest-message-note { font-size: 0.75rem; font-weight: 400; color: var(--muted); line-height: 1.3; }
.gallery-frame { position: relative; }
.gallery-open {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.gallery-open:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.gallery-main {
    display: block;
    width: 100%;
    max-height: min(52dvh, 520px);
    object-fit: contain;
    background: var(--media);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: zoom-in;
}
.zoom-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(32, 32, 32, 0.72);
    color: #fff;
    pointer-events: none;
}
.zoom-mark svg { width: 18px; height: 18px; }
.preview-head .lightbox-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 1.7rem;
    line-height: 1;
    text-decoration: none;
}
.model-badge {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(32, 32, 32, 0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    pointer-events: none;
}
.gallery-nav { margin-top: 10px; }
.detail-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 6px 6px 0;
    padding: 2px 10px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
}
.chip-note {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.85rem;
    font-weight: 600;
}
.chip-note.is-direct { background: #fff6ec; border-color: #f0d3b0; }
.detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 0 0 16px; }
.fold {
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.fold summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
.fold[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.fold summary:hover, .fold summary:focus-visible { color: var(--orange); }
.rich-copy { max-width: 68ch; padding: 0 12px 14px; line-height: 1.6; overflow-wrap: anywhere; }
.rich-copy h3 { margin: 0 0 0.45em; font-size: 1rem; }
.rich-copy p, .rich-copy ul, .rich-copy ol { margin: 0 0 0.8em; }
.rich-copy ul, .rich-copy ol { padding-left: 1.2em; }
.rich-copy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ship-list { display: grid; gap: 8px; }
.ship-row { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.ship-row strong { display: block; }
.ship-row span { color: var(--muted); font-size: 0.9rem; }
.ship-row.is-off { color: var(--muted); }
.offer-facts { margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.offer-facts h3 { margin: 0 0 8px; font-size: 1rem; }
.offer-facts p { margin: 4px 0; }
.ask-product { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; padding: 10px; background: var(--media); border-radius: var(--radius); }
.ask-product img, .ask-product .ask-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: #fff; flex: 0 0 auto; }
.ask-product h3 { margin: 0 0 4px; font-size: 1rem; }
.ask-product p { margin: 0; font-weight: 600; }
.empty-catalog { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty-catalog h3 { margin: 0 0 8px; color: var(--ink); }
.no-products { padding: 48px 16px; text-align: center; }
.no-products h3 { margin: 0 0 8px; }
#modalImages { align-self: start; min-width: 0; }
@media (min-width: 861px) {
    .product-dialog #modalImages { position: sticky; top: 0; }
}
.model-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    align-self: start;
    background: #f4f4f2;
    border-radius: var(--radius);
    overflow: hidden;
}
.model-stage .model-poster,
.model-stage .product-image-placeholder,
.model-stage .model-host,
.model-stage model-viewer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.model-stage .model-poster { object-fit: contain; background: #f4f4f2; }
.model-stage .model-host { z-index: 2; }
.model-status { margin: 8px 0 0; color: var(--muted); }
.model-status[hidden] { display: none; }
.model-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.model-gallery button {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--media);
    cursor: pointer;
}
.model-gallery img { width: 100%; height: 72px; object-fit: cover; display: block; }
.inquiry-sheet, .legal-sheet {
    width: min(640px, calc(100% - 32px));
    margin: 32px auto;
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 22px;
}
.checkbox-group { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.checkbox-group input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }
.inquiry-sheet .modal-close { display: block; margin-left: auto; }
.form-status { display: none; margin: 0 0 12px; padding: 12px; border-radius: var(--radius); }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--media); border: 1px solid var(--line); color: var(--ink); }
.form-status.is-saved { background: #fff6ec; border: 1px solid #f0d3b0; color: var(--ink); }
.form-status.is-error { background: #f8f1f1; border: 1px solid #e4cccc; color: #8a1f1f; }
.field-error { margin: 6px 0 0; color: #8a1f1f; font-size: 0.88rem; line-height: 1.35; }
.form-group input[aria-invalid="true"], .form-group textarea[aria-invalid="true"] { border-color: #8a1f1f; }
.inquiry-sheet h2, .legal-sheet h2 { margin: 0 0 14px; font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 28px; color: var(--muted); }
.site-footer p { margin: 0 0 8px; }
.site-footer button, .site-footer a {
    color: var(--ink); font-weight: 600; background: none; border: 0; padding: 0;
    cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit;
}
#sidebar, #neuSliderSection, #registrierungsCTA { display: none !important; }
.auth-page { background: var(--canvas); }
.auth-main { padding: 20px 0 48px; }
.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.72fr);
    gap: 28px;
    align-items: start;
}
.auth-panel {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 24px 28px;
}
.auth-back { display: inline-block; margin-bottom: 16px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-page h1 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 600; line-height: 1.25; }
.auth-lead { margin: 0 0 16px; color: var(--muted); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs .tab {
    flex: 1;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.auth-tabs .tab.is-active,
html[data-auth-tab="register"] #tab-register,
html[data-auth-tab="login"] #tab-login { background: var(--orange); border-color: var(--orange); color: #202020; }
html[data-auth-tab="register"] #tab-login,
html[data-auth-tab="login"] #tab-register { background: var(--paper); border-color: var(--line); color: var(--ink); }
.auth-page .tab-content { display: none; }
.auth-page .tab-content.active { display: block; }
html[data-auth-tab="register"] #loginTab { display: none; }
html[data-auth-tab="register"] #registerTab { display: block; }
html[data-auth-tab="login"] #registerTab { display: none; }
html[data-auth-tab="login"] #loginTab { display: block; }
.auth-switch { margin: 0 0 16px; }
.auth-switch button, .auth-inline {
    background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.auth-address { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.auth-page .checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.auth-page .checkbox-group input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); flex: 0 0 auto; }
.auth-page .message { display: none; margin-bottom: 16px; padding: 12px; border-radius: var(--radius); line-height: 1.45; overflow-wrap: anywhere; scroll-margin-top: 80px; }
.auth-page .message.show { display: block; }
.auth-page .message p { margin: 0 0 12px; }
body.legal-page .legal-main { padding: 20px 0 48px; }
body.legal-page .legal-doc {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 28px 36px;
}
body.legal-page h1 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 600; line-height: 1.25; }
body.legal-page h2 { margin: 28px 0 8px; font-size: 1.15rem; font-weight: 600; }
body.legal-page h3 { margin: 16px 0 6px; font-size: 1rem; font-weight: 600; }
body.legal-page p, body.legal-page li { margin: 0 0 12px; line-height: 1.6; }
body.legal-page ul, body.legal-page ol { margin: 0 0 12px 1.2em; padding: 0; }
body.legal-page .last-update { color: var(--muted); margin-bottom: 20px; }
body.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
body.legal-page .highlight-box, body.legal-page .contact-section {
    margin: 20px 0;
    padding: 14px 16px;
    background: var(--media);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
body.legal-page .contact-info { display: grid; gap: 8px; }
body.legal-page .auth-back { display: inline-block; margin-bottom: 16px; }
.auth-page #passwordResetNotice .btn { margin-top: 4px; }
.auth-page .message.success { color: var(--ink); background: var(--media); border: 1px solid var(--line); }
.auth-page .message.error { color: #8a1f1f; background: #f8f1f1; border: 1px solid #e4cccc; }
.auth-page .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-page .forgot-password { margin: -4px 0 16px; text-align: right; }
.auth-page .password-strength { height: 4px; margin-top: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.auth-page .password-strength-bar { height: 100%; width: 0; }
.auth-page .strength-weak { background: #8a1f1f; width: 33%; }
.auth-page .strength-medium { background: var(--orange); width: 66%; }
.auth-page .strength-strong { background: var(--ink); width: 100%; }
.auth-page .password-requirements { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.auth-page .password-requirements ul { margin: 0; padding: 0; list-style: none; }
.auth-page .password-requirements li { padding: 2px 0 2px 1.2em; position: relative; }
.auth-page .password-requirements li::before { content: "–"; position: absolute; left: 0; }
.auth-page .password-requirements li.valid { color: var(--ink); }
.auth-page .password-requirements li.valid::before { content: "✓"; }
.auth-page .kontotyp-group { display: flex; gap: 10px; }
.auth-page .kontotyp-option {
    flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer;
}
.auth-page .kontotyp-option:has(input:checked) { border-color: var(--orange); background: #fff6ec; }
.auth-page .kontotyp-option input { width: 18px; height: 18px; accent-color: var(--orange); }
.auth-page .resend-note { margin: 16px 0 0; color: var(--muted); }
.auth-page #registerForm[hidden], .auth-page .register-result[hidden] { display: none; }
.auth-page .register-result { padding: 20px; border: 2px solid var(--orange); border-radius: var(--radius); background: #fff6eb; scroll-margin-top: 80px; }
.auth-page .register-result:focus { outline: none; }
.auth-page .register-result h2 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.3; }
.auth-page .register-result p { margin: 0 0 12px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-page .register-result ol { margin: 0 0 12px; padding-left: 1.3em; line-height: 1.5; }
.auth-page .register-result li { margin-bottom: 4px; }
.auth-page .register-result-hint { color: var(--muted); font-size: 0.92rem; }
.auth-page .register-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.auth-page .register-result-actions .btn { flex: 1 1 200px; min-height: 44px; }
.auth-page .register-result-actions .btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
@media (max-width: 480px) {
    .auth-page .register-result { padding: 16px; }
}
.auth-photo { height: 320px; position: sticky; top: 76px; }
.auth-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
    .product-card { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(32, 32, 32, 0.08);
        border-color: #c8c8c8;
    }
    .details-btn .arrow { transition: transform 180ms ease; }
    .details-btn:hover .arrow { transform: translateX(3px); }
    .btn-primary:hover { background: #e67600; }
    .chip:hover { border-color: #bdbdbd; }
    .text-link:hover, .auth-back:hover, .auth-switch button:hover { text-decoration: underline; }
}
.modal.show .modal-content { animation: sheet-in 180ms ease; }
@keyframes sheet-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
    .shop .intro-grid, .product-dialog, .auth-grid { grid-template-columns: 1fr; }
    .shop .intro-photo, .auth-photo { display: none; }
    .shop h1, .auth-page h1 { font-size: 1.35rem; }
    .auth-panel { padding: 18px 14px 22px; }
    .auth-address, .auth-page .kontotyp-group { display: flex; flex-direction: column; }
}
.filter-toggle { display: none; }
.filter-primary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.category-scroll { margin-top: 8px; }
.summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #fff6ec;
    border: 1px solid var(--orange);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
}
.active-filter-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.active-filter-summary[hidden] { display: none; }
.model-stage model-viewer { width: 100%; height: 100%; touch-action: pan-y; }
.model-stage model-viewer::part(default-ar-button) { display: none; }
.model-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.model-ar, .model-enlarge { width: auto; min-height: 44px; margin-top: 0; align-self: flex-start; }
.model-hint {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 16px);
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(32, 32, 32, 0.72);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.2;
    transform: translateX(-50%);
    pointer-events: none;
}
.model-hint[hidden] { display: none; }
.model-hint svg { width: 16px; height: 16px; flex: 0 0 auto; }
.model-hint.is-used .model-hint-text { display: none; }
.preview-stage { touch-action: pan-y; }
.model-measure { margin: 8px 0 0; color: var(--ink); font-size: 0.95rem; line-height: 1.35; font-weight: 600; }
@media (max-width: 720px) {
    .model-measure { font-size: 0.92rem; line-height: 1.3; }
}
.new-offers { padding: 8px 0 4px; }
.new-offers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.new-offers-head h2 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.new-offers-head .text-link { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.new-offers-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.new-offer { flex: 0 0 180px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.new-offer-media, .new-offer-media img, .new-offer-placeholder { width: 100%; height: 96px; object-fit: contain; background: var(--media); border-radius: 8px; }
.new-offer-placeholder { display: block; }
.new-offer-title { font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.new-offer-kind { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.catalog-layout { min-width: 0; }
.catalog-layout.has-rail { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: start; }
.sponsor-rail, .sponsor-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 12px; min-width: 0; max-width: 100%; box-sizing: border-box; }
.sponsor-rail h2 { margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; }
.sponsor-kicker { margin: 0 0 6px; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.sponsor-frame { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sponsor-item { display: block; min-width: 0; color: inherit; text-decoration: none; }
.sponsor-logo { display: block; width: 100%; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; }
.sponsor-logo[hidden] { display: none; }
.sponsor-name { display: none; }
.sponsor-rail .sponsor-item.is-text .sponsor-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
}
.sponsor-controls { display: flex; gap: 6px; margin-top: 8px; }
.sponsor-controls .btn { flex: 1 1 0; min-height: 44px; padding-inline: 0.4rem; }
.sponsor-rail[hidden], .sponsor-block[hidden] { display: none; }
.sponsor-block { margin: 0 0 12px; padding: 8px 10px; overflow: hidden; }
.sponsor-block[hidden] { margin: 0; }
.sponsor-block .sponsor-frame {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    touch-action: pan-y;
}
.sponsor-banner { display: block; width: 100%; color: inherit; text-decoration: none; }
.sponsor-banner-img { display: block; width: 100%; height: auto; object-fit: contain; background: #fff; -webkit-user-drag: none; user-select: none; }
.sponsor-block.is-slideshow .sponsor-frame { display: flex; align-items: center; justify-content: center; }
.sponsor-block.is-slideshow .sponsor-banner { width: 100%; }
.sponsor-block.is-slideshow .sponsor-banner-img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.sponsor-block .sponsor-controls { margin-top: 8px; }
.sponsor-block .sponsor-controls .btn { min-height: 44px; }
.sponsor-block .sponsor-banner.is-text {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.sponsor-block .sponsor-banner.is-text .sponsor-name {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
}
@media (max-width: 1099px) {
    .sponsor-block {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
}
.new-offer-price .price { font-size: 0.95rem; }
.model-ar[hidden], .model-enlarge[hidden] { display: none; }
@media (max-width: 720px) {
    .wrap { width: min(var(--wrap), calc(100% - 24px)); }
    .site-header { padding-top: env(safe-area-inset-top); }
    .header-bar { min-height: 56px; flex-direction: row; align-items: center; padding: 8px 0; }
    .brand img { height: 28px; }
    .header-nav { flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
    .header-nav .nav-extra { display: none; }
    .header-nav .btn { padding: 0.4rem 0.7rem; }
    .shop .intro { padding-top: 8px; }
    .shop .intro .intro-actions { display: flex; }
    .shop .intro .intro-actions .btn { display: inline-flex; flex: 1 1 150px; justify-content: center; min-height: 44px; }
    .filter-toggle { display: inline-flex; flex: 0 0 auto; min-height: 44px; }
    #filterPanel { display: none; }
    .filter-bar.is-open #filterPanel { display: block; margin-top: 8px; }
    .filter-primary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
    .filter-primary .search-field { grid-column: 1 / -1; width: 100%; }
    .filter-primary .sort-views { width: 100%; min-width: 0; }
    .filter-primary .sort-field { width: auto; flex: 1 1 auto; min-width: 0; }
    .category-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-padding-inline: 4px;
    }
    .category-scroll .chip { flex: 0 0 auto; min-height: 44px; }
    .dialog-actions .btn { flex: 1 1 100%; min-height: 44px; }
    .shop .modal { padding: 0; overflow: hidden; }
    .shop .product-dialog, .shop .inquiry-sheet, .shop .legal-sheet {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        height: 100svh;
        max-height: 100dvh;
        max-height: 100svh;
        margin: 0;
        border-radius: 0;
        overflow: auto;
        padding-top: env(safe-area-inset-top);
        padding-bottom: max(18px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .shop .product-dialog .gallery-main,
    .shop .product-dialog .model-stage {
        aspect-ratio: auto;
        height: min(36svh, 240px);
        max-height: min(36svh, 240px);
    }
    .shop .product-dialog-bar {
        position: sticky;
        top: 0;
        z-index: 3;
        background: var(--paper);
        padding-bottom: 8px;
    }
    .shop .product-dialog .modal-close { position: static; }
    .rich-copy a { overflow-wrap: anywhere; word-break: break-word; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .shop .intro { display: none; }
    .shop .product-dialog .gallery-main,
    .shop .product-dialog .model-stage,
    .preview-stage,
    .preview-stage img { max-height: min(28svh, 160px); height: auto; }
    .shop .product-dialog .gallery-main,
    .shop .product-dialog .model-stage { height: min(28svh, 160px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .product-card:hover, .details-btn:hover .arrow { transform: none; }
}
/* Verkäuferbereich */
body.seller { background: var(--canvas); color: var(--ink); overflow-x: hidden; }
body.seller .seller-main { padding: 18px 0 48px; }
body.seller h1 { margin: 0 0 14px; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
body.seller .user-name { color: #fff; font-weight: 600; }
body.seller .stats-section { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
body.seller .stat-icon { display: none; }
body.seller .dashboard-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
body.seller .tab-content { display: none; }
body.seller .tab-content.active { display: block; }
body.seller .products-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
body.seller .product-card { min-width: 0; }
body.seller .product-image, body.seller .product-placeholder {
    width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--media); height: auto; display: block;
}
body.seller .product-placeholder { display: grid; place-items: center; color: var(--muted); }
body.seller .product-content { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
body.seller .product-title { display: block; min-height: 0; overflow: visible; -webkit-line-clamp: unset; }
body.seller .product-price { font-weight: 600; }
body.seller .product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.seller .empty-icon { display: none; }
body.seller .form-group small, body.seller .hint { color: var(--muted); display: block; margin-top: 6px; }
body.seller .profile-danger-zone { margin-top: 28px; padding: 16px; border: 1px solid #e4cccc; border-radius: var(--radius); background: #f8f1f1; }
body.seller .profile-danger-zone h3 { margin: 0 0 8px; color: #8a1f1f; }
body.seller .profile-danger-zone p { margin: 0 0 14px; }
body.seller .modal-content {
    width: min(760px, calc(100% - 32px)); margin: 24px auto; background: #fff; color: var(--ink);
    border-radius: var(--radius); padding: 18px 18px 22px;
}
body.seller .modal-close { display: inline-flex; margin: 0 0 8px auto; min-height: 36px; }
.offer-label { margin: 0; color: var(--orange); font-weight: 600; font-size: 0.88rem; line-height: 1.35; white-space: normal; }
.product-manufacturer { margin: 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 900px) {
    body.seller .stats-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.seller .inquiry-facts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    body.seller .dashboard-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    body.seller .nav-tab { flex: 0 0 auto; }
    body.seller .section-header .btn, body.seller .inquiry-actions .btn, body.seller .inquiry-actions .status-select, body.seller .product-actions .btn { width: 100%; }
    #messagesSection .message-layout.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        z-index: 30;
        left: 0;
        right: 0;
        top: calc(64px + env(safe-area-inset-top));
        bottom: 0;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 12px;
        background: var(--canvas);
    }
    #messagesSection .message-thread {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        flex: 1 1 auto;
        height: 100%;
    }
    #messagesSection .message-log {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow: auto;
    }
    #messagesSection .message-reply {
        position: static;
        flex: 0 0 auto;
        scroll-margin-bottom: max(16px, env(safe-area-inset-bottom));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    #messagesSection .message-reply textarea { font-size: 16px; }
    #messagesSection .message-reply .btn, #messagesSection .message-back, #messagesSection .message-row { }
}

.sell-banner { padding: 8px 0 28px; }
.sell-banner[hidden] { display: none !important; }
.sell-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.sell-copy, .sell-steps, .sell-frame { min-width: 0; }
.sell-copy h2 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.25; }
.sell-copy p { margin: 0 0 14px; max-width: 46ch; color: var(--muted); }
.sell-banner .btn { min-height: 44px; }
.sell-steps { display: grid; gap: 10px; outline: none; }
.sell-steps:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sell-frame {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--canvas);
    border-radius: var(--radius);
    touch-action: pan-y;
}
.sell-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sell-kicker, .sell-title, .sell-text { margin: 0; }
.sell-kicker { color: var(--orange); font-size: 0.82rem; font-weight: 700; }
.sell-title { font-weight: 700; }
.sell-text { color: var(--muted); }
.sell-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sell-nav, .sell-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}
.sell-nav svg { width: 22px; height: 22px; }
.sell-dots { display: flex; gap: 4px; }
.sell-dot { border-radius: 999px; }
.sell-dot[aria-selected="true"] { background: var(--orange); border-color: var(--orange); }
.sell-video { display: block; width: 100%; max-height: 240px; background: #111; border-radius: var(--radius); }
@media (max-width: 720px) {
    .sell-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
    .sell-copy h2 { font-size: 1.2rem; }
    .sell-banner .btn { width: 100%; }
}
.product-dialog .model-stage { cursor: zoom-in; }
.model-viewer-dialog {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    background: rgba(32, 32, 32, 0.45);
}
.model-viewer-dialog .viewer-sheet {
    display: flex;
    flex-direction: column;
    width: min(1080px, 100%);
    height: min(860px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    margin: 0;
    overflow: hidden;
    background: #f4f4f2;
}
.model-viewer-dialog .preview-head { background: #fff; }
.model-viewer-dialog .preview-head h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.model-viewer-dialog .preview-head .viewer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
}
.model-viewer-dialog .viewer-stage {
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    background: #f4f4f2;
}
.model-viewer-dialog .viewer-stage .model-status {
    position: absolute;
    z-index: 3;
    left: 12px;
    right: 12px;
    bottom: 56px;
    margin: 0;
}
.model-viewer-dialog .viewer-reset {
    position: absolute;
    z-index: 4;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    max-width: calc(100% - 16px);
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.model-viewer-dialog .viewer-reset[hidden] { display: none; }
.model-viewer-dialog .viewer-reset svg { width: 18px; height: 18px; flex: 0 0 auto; }
.model-viewer-dialog .viewer-ar {
    flex: 0 0 auto;
    align-self: flex-end;
    min-height: 44px;
    margin: 8px;
    background: #ff8200;
    border-color: #ff8200;
    color: #202020;
}
.model-viewer-dialog .viewer-ar[hidden] { display: none; }
@media (max-width: 860px) {
    .model-viewer-dialog { padding: 0; }
    .model-viewer-dialog .viewer-sheet {
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
        padding: 0;
    }
    .model-viewer-dialog .preview-head {
        padding-top: max(8px, env(safe-area-inset-top));
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    .model-viewer-dialog .viewer-ar {
        width: auto;
        align-self: stretch;
        margin: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    }
}
@media (max-height: 500px) and (orientation: landscape) {
    .model-viewer-dialog .viewer-stage {
        height: auto;
        max-height: none;
        aspect-ratio: auto;
    }
}
.experience-host { display: grid; gap: 10px; padding: 0 12px 14px; }
.experience-item, .experience-replies { display: grid; gap: 8px; min-width: 0; }
.experience-replies { margin-left: 12px; }
.experience-meta { margin: 0; color: var(--muted); font-size: 0.85rem; }
.experience-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.experience-badge { font-weight: 600; }
.experience-form textarea, .experience-reply textarea, .experience-edit textarea { width: 100%; min-height: 88px; padding: 8px 10px; border: 1px solid var(--field-line); border-radius: var(--radius); font: inherit; }
.experience-host .btn { min-height: 44px; }
.experience-message { margin: 0; }

.gallery-views { display: grid; gap: 10px; min-width: 0; }
.gallery-tabs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-tab { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; white-space: nowrap; }
.gallery-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-panel[hidden] { display: none; }
.drawing-stage { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 180px; display: grid; place-items: center; padding: 8px; }
.drawing-open { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.drawing-open svg { display: block; width: 100%; height: auto; max-width: 100%; background: #fff; }
.drawing-note { margin: 0; color: var(--muted); font-size: 0.85rem; }
.drawing-status, .drawing-error { margin: 0; padding: 16px; text-align: center; }
.drawing-zoom { overflow: hidden; touch-action: none; background: #fff; min-height: 60vh; display: grid; place-items: center; }
.drawing-zoom-layer { transform-origin: center center; width: min(100%, 1100px); }
.drawing-zoom-layer svg { display: block; width: 100%; height: auto; background: #fff; }

@media (min-width: 1500px) {
    .shop { --wrap: 1360px; }
}
.sell-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.sell-line p { margin: 0; font-weight: 600; flex: 1 1 16rem; }
.sell-banner { padding-bottom: 12px; }
.sell-line .btn { min-height: 44px; }
.sell-how { margin-top: 10px; }
.sell-how[hidden] { display: none; }
.sell-how .sell-steps {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.new-offers-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
}
.new-offer { flex: none; min-width: 0; }
.new-offer-media,
.new-offer-placeholder {
    display: block;
    width: 100%;
    height: 112px;
    aspect-ratio: auto;
}
.new-offer-media img { width: 100%; height: 100%; object-fit: contain; }
.new-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
@media (min-width: 721px) {
    .filter-bar { padding: 8px 12px; margin-bottom: 8px; }
    .filter-primary { flex-wrap: nowrap; }
    .filter-primary .search-field { flex: 1 1 auto; min-width: 0; }
    .filter-primary .sort-views { flex: 0 0 auto; margin-left: auto; justify-content: flex-end; }
    #filterPanel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; }
    #filterPanel .filter-pair { display: flex; flex-flow: row nowrap; align-items: center; gap: 8px 16px; width: auto; margin: 0; }
    #filterPanel .filter-group { display: block; width: auto; min-width: 0; margin: 0; }
    #filterPanel legend { float: left; width: auto; margin: 0 8px 0 0; line-height: 36px; }
    #filterPanel .filter-row { display: inline-flex; margin: 0; }
    #kategorieButtons { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
    #categoryFilters { flex: 1 1 100%; min-width: 0; }
    .result-count { margin-bottom: 8px; }
}
.catalog-layout.has-rail {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: start;
}
.sponsor-rail .sponsor-banner-img,
.sponsor-block .sponsor-banner-img { width: 100%; height: auto; object-fit: contain; }
.sponsor-rail .sponsor-frame { background: #fff; }
@media (min-width: 900px) and (max-width: 1279px) {
    .sponsor-block .sponsor-frame,
    .sponsor-block.is-slideshow .sponsor-frame { display: flex; justify-content: center; aspect-ratio: auto !important; background: #fff; }
    .sponsor-block .sponsor-banner-img,
    .sponsor-block.is-slideshow .sponsor-banner-img { width: auto; max-width: 100%; max-height: 96px; height: auto; }
}
.list-row { grid-template-columns: 84px minmax(0, 1fr) max-content; }
.list-end { justify-content: flex-end; white-space: nowrap; }
@media (min-width: 861px) {
    .dialog-product-title { font-size: 1.75rem; font-weight: 700; }
    .product-dialog .price { font-size: 1.2rem; }
    .product-dialog { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr); }
}
@media (max-width: 800px) {
    .new-offers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sell-how .sell-steps { grid-template-columns: 1fr; }
}
