.shop-site {
    --shop-brand: #990000;
    --shop-brand-hover: #730000;
    --shop-text: #333;
    --shop-muted: #777;
    --shop-border: #eaeaea;
    --shop-content-width: 1140px;
    --shop-field-gap: .5rem;
    margin: 0;
    background: #fff;
    color: var(--shop-text);
    font: 400 18px/1.4 "Helvetica Neue", Helvetica, Verdana, sans-serif;
}

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

.shop-required {
    color: var(--shop-brand);
}

.shop-site h1,
.shop-site h2,
.shop-site h3 {
    font-family: inherit;
    line-height: 1.2;
}

.shop-site a:where(:not(.btn):not(.shop-button)) {
    color: var(--shop-brand);
    text-decoration: none;
}

.shop-site a:where(:not(.btn):not(.shop-button)):hover {
    color: var(--shop-brand-hover);
    text-decoration: underline;
}

.shop-site :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Text fields also match :focus-visible on click. Keep the theme's normal focus styling. */
.shop-site :is(input, select, textarea):focus {
    --bs-input-focus-ring-contrast-color: transparent;
    --bs-input-focus-ring-color: transparent;
    outline: 0;
    border-color: var(--shop-brand);
}

.shop-site button:not(.btn),
.shop-site input:not(.btn),
.shop-site select,
.shop-site textarea {
    font: inherit;
}

.shop-site .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.shop-site svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.shop-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.shop-shell > main {
    flex: 1;
}

.shop-container {
    width: calc(100% - 40px);
    max-width: var(--shop-content-width);
    margin-inline: auto;
}

.shop-body-content .frame-container-default {
    max-width: none;
    padding-inline: 0;
}

.shop-skip-link {
    position: fixed;
    top: 0;
    left: 20px;
    z-index: 110;
    padding: 12px 20px;
    background: #fff;
    transform: translateY(-150%);
}

.shop-skip-link:focus {
    transform: none;
}

.shop-site .shop-button {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid var(--shop-brand);
    background: var(--shop-brand);
    color: #fff;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}

.shop-site .shop-button:hover {
    background: var(--shop-brand-hover);
    color: #fff;
}

/* Several buttons in one paragraph wrap onto new lines; keep a gap between the lines. */
.shop-site :is(p, li) > :is(.btn, .shop-button) {
    margin-block: 4px;
}

@media (max-width: 767px) {
    .shop-container {
        width: calc(100% - 30px);
    }
}

/* Elements inside other elements (shared blocks, columns, service panels, the product description): the outer frame
   spaces the section from its neighbours. Inner frames without a background of their own start and end flush instead
   of adding their spacing on top; between each other they keep the usual spacing. */
.shop-site main .frame .frame-background-none:first-of-type { padding-top: 0; }
.shop-site main .frame .frame-background-none:last-of-type { padding-bottom: 0; }

/* Sections with a background (grey sections, the red contact banner) span the full width, as in the old shop; their
   content stays in line with the page. In columns the background belongs to the column. */
.shop-site main .frame:not(.frame-background-none, .contentcontainer-column .frame) {
    box-shadow: 0 0 0 100vmax var(--frame-background);
    clip-path: inset(0 -100vmax);
}
.shop-site main .shop-description-banner:not(.contentcontainer-column .shop-description-banner) {
    padding-inline: 0;
    box-shadow: 0 0 0 100vmax var(--shop-brand);
    clip-path: inset(0 -100vmax);
}

/* As in the old shop, images show at their own size (at most the column's width), centered, instead of being stretched. */
.shop-site .gallery-item :is(picture, img) { width: auto; max-width: 100%; }
.shop-site .gallery-item picture { display: block; text-align: center; }

/* Tables in texts, in product descriptions and on category pages alike (e.g. the fee table "Beispielangebot"). */
.shop-site :is(.shop-product-description, .frame-type-text, .frame-type-textmedia) table { width: 100%; max-width: 100%; border-collapse: collapse; }
.shop-site :is(.shop-product-description, .frame-type-text, .frame-type-textmedia) :is(td, th) { padding: 11px 10px; border: 1px solid var(--shop-border); vertical-align: top; }
.shop-site :is(.shop-product-description, .frame-type-text, .frame-type-textmedia) :is(td, th) > :first-child { margin-top: 0; }
.shop-site :is(.shop-product-description, .frame-type-text, .frame-type-textmedia) :is(td, th) > :last-child { margin-bottom: 0; }
.shop-site :is(.frame-type-text, .frame-type-textmedia) td h3 { font-size: 1.3em; }
.shop-site :is(.frame-type-text, .frame-type-textmedia) td h4 { font-size: 1.1em; }
/* Imported fee tables span two service columns and one centered price column. */
.shop-site :is(.shop-product-description, .frame-type-text, .frame-type-textmedia) td[colspan="2"] + td { width: calc(100% / 3); text-align: center; }
