/* RieglerProduction's design (2026, "Galerie"): html.riegler (_Host.cshtml), loaded after Bootstrap/Darkly and site.css.
   Black, the logo's heavy white and grey capitals, the pictures of the plays; the menu in small spaced capitals, the
   titles of the plays on their pictures. The handwriting (Riegler) stays on the start page only. Fonts are served from
   here (wwwroot/fonts), not from Google. */

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo Black';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/archivo-black-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Archivo Black';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/archivo-black-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

html.riegler {
    --rp-bg: #000;
    --rp-surface: #121212;
    --rp-surface-2: #1b1b1b;
    --rp-line: rgba(255, 255, 255, .12);
    --rp-text: #ededed;
    --rp-soft: #c9c9c9;
    --rp-muted: #8b8b8b;
    --rp-accent: #fff;
    --rp-accent-ink: #000;
    --rp-link: #fff;
    --rp-radius: 6px;
    --rp-radius-img: 6px;
    --rp-sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --rp-display: 'Archivo Black', 'Arial Black', Inter, sans-serif;
    --rp-max: 1240px;
    --rp-gutter: clamp(16px, 4vw, 40px);
}

/* ---------- base ---------- */

html.riegler body {
    background: var(--rp-bg);
    color: var(--rp-text);
    font-family: var(--rp-sans);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

html.riegler a {
    color: var(--rp-link);
    text-decoration: none;
}

html.riegler a:hover,
html.riegler a:focus {
    color: var(--rp-text);
    text-decoration: none;
}

html.riegler :focus-visible {
    outline: 2px solid var(--rp-accent);
    outline-offset: 3px;
}

html.riegler h1,
html.riegler h2,
html.riegler h3,
html.riegler h4 {
    color: var(--rp-text);
    font-family: var(--rp-sans);
    font-weight: 800;
    letter-spacing: -.02em;
}

html.riegler h1 a,
html.riegler h1 a:hover {
    color: inherit;
}

/* page titles */
html.riegler .content > h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 0 0 .45em;
}

/* the PageView's <br /> after the title */
html.riegler .content > h1 + br {
    display: none;
}

/* the text below a title: a readable measure */
html.riegler .content > h1 ~ div:not(.row) {
    max-width: 72ch;
    color: var(--rp-soft);
    font-size: 1.08rem;
}

html.riegler hr {
    border-color: var(--rp-line);
    opacity: 1;
    margin: 2.5rem 0;
}

html.riegler .text-muted {
    color: var(--rp-muted) !important;
}

/* ---------- page frame ---------- */

.rp-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rp-main {
    flex: 1;
    width: 100%;
    max-width: var(--rp-max);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 72px) var(--rp-gutter) 80px;
}

html.riegler .content {
    padding-top: 0;
}

/* ---------- header ---------- */

.rp-header {
    position: relative;
    z-index: 50;
}

.rp-header-inner {
    position: relative;
    max-width: var(--rp-max);
    margin: 0 auto;
    padding: 22px var(--rp-gutter);
    display: flex;
    align-items: center;
    gap: 32px;
}

.rp-brand {
    flex: none;
    display: block;
    line-height: 0;
}

.rp-brand img {
    height: 50px;
    width: auto;
}

.rp-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.rp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 4px 30px;
}

.rp-nav-list > li {
    position: relative;
}

html.riegler .rp-nav-list a {
    font-family: var(--rp-sans);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    line-height: 2.2;
    color: var(--rp-soft);
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color .15s ease;
}

html.riegler .rp-nav-list a:hover,
html.riegler .rp-nav-list a.active {
    color: var(--rp-text);
}

.rp-nav-list > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: .16em;
    bottom: 2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.rp-nav-list > li > a:hover::after,
.rp-nav-list > li > a.active::after {
    transform: scaleX(1);
}

.rp-sub {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    left: -16px;
    top: 100%;
    min-width: 200px;
    background: var(--rp-surface-2);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

html.riegler .rp-sub a {
    font-size: .92rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    padding: 6px 16px;
    display: block;
}

.rp-nav-list > li.has-sub:hover > .rp-sub,
.rp-nav-list > li.has-sub:focus-within > .rp-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.rp-search {
    margin-left: auto;
    width: 200px;
    flex: none;
}

.rp-search .d-flex {
    position: relative;
}

.rp-search .dropdown {
    width: 100%;
}

html.riegler .rp-search .form-control {
    width: 100%;
    margin: 0 !important;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--rp-line);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%23999' stroke-width='2'/%3E%3Cpath d='m16 16 4.5 4.5' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center / 15px;
    padding-left: 38px;
    color: var(--rp-text);
    font-size: .9rem;
    min-height: 0;
    border-color: rgba(255, 255, 255, .24);
}

html.riegler .rp-search .form-control::placeholder {
    color: var(--rp-muted);
}

html.riegler .rp-search .form-control:focus {
    border-color: var(--rp-accent);
    box-shadow: none;
}

/* searching happens while typing */
.rp-search #search-button {
    display: none;
}

.rp-search .dropdown-menu {
    min-width: 300px;
    left: auto;
    right: 0;
    padding: 6px 0;
    background: var(--rp-surface-2);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    width: 100%;
}

.rp-search .dropdown-item {
    color: var(--rp-text);
    white-space: normal;
}

html.riegler .rp-cart {
    flex: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--rp-line);
    color: var(--rp-text);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
}

.rp-cart:hover {
    border-color: var(--rp-accent);
    color: var(--rp-text);
}

.rp-cart svg {
    width: 20px;
    height: 20px;
}

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

.rp-menu-toggle {
    display: none;
}

/* a hairline below the header */
html.riegler .rp-header {
    border-bottom: 1px solid var(--rp-line);
}

/* ---------- footer ---------- */

.rp-footer {
    border-top: 1px solid var(--rp-line);
}

.rp-footer .site-footer {
    max-width: var(--rp-max);
    margin: 0 auto !important;
    padding: 30px var(--rp-gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    font-size: .85rem;
    color: var(--rp-muted);
}

.rp-footer .site-footer > span {
    float: none !important;
}

/* Bootstrap's clearfix would be a third item of the line */
.rp-footer .site-footer::after {
    display: none;
}

html.riegler .rp-footer .site-footer a {
    color: var(--rp-soft);
}

.rp-footer .site-footer a:hover {
    color: var(--rp-accent);
}

/* ---------- cards: plays, shop categories, products ---------- */

html.riegler .card {
    background: transparent;
    border: 0;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}

/* the picture first, the title below */
html.riegler .category-card .card-body,
html.riegler .product-card .card-body {
    order: -1;
    padding: 0;
}

html.riegler .card-header {
    background: transparent;
    border: 0;
    padding: 12px 0 0;
    white-space: normal !important;
    overflow: visible;
    text-overflow: clip;
}

html.riegler .card-header a {
    color: var(--rp-text);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    -webkit-hyphens: auto;
    hyphens: auto;
}

html.riegler .card-footer {
    background: transparent;
    border: 0;
    padding: 6px 0 0;
    color: var(--rp-soft);
    font-weight: 600;
    font-size: .92rem;
}

html.riegler .product-image-loader,
html.riegler .card-img-top {
    border-radius: var(--rp-radius-img);
    overflow: hidden;
}

html.riegler .card .product-image-loader__img {
    transition: transform .4s ease;
}

html.riegler .card:hover .product-image-loader__img {
    transform: scale(1.04);
}

/* a product is a tile: picture, title, price and cart button clearly together. The title right under the picture,
   price and button at the foot - level along a row, however long the titles */
html.riegler .product-card {
    padding-bottom: 24px;
}

html.riegler .product-card .card {
    background: var(--rp-surface);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 10px 10px 12px;
    transition: border-color .2s ease, background-color .2s ease;
}

html.riegler .product-card .card:hover {
    border-color: rgba(255, 255, 255, .28);
    background: #161616;
}

html.riegler .product-card .card-body {
    flex: none;
}

html.riegler .product-card .card-header {
    flex: 1 0 auto;
    padding: 12px 4px 0;
}

html.riegler .product-card .card-footer {
    margin-top: auto;
    padding: 10px 4px 0;
}

@media (max-width: 767.98px) {
    html.riegler .product-card {
        padding-bottom: 12px;
    }

    html.riegler .product-card .card {
        padding: 8px 8px 10px;
    }
}

/* the play button on a tile's picture (preview-player.js): see-through until the pointer is on it or it plays,
   then white - a ring around it shows how far the listen is */
html.riegler .product-card .card-body {
    position: relative;
}

html.riegler .rp-play {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .6);
    background: rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

html.riegler .rp-play:focus-visible,
html.riegler .rp-play.is-playing {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* only with a mouse - on a phone the hover would stick after a tap and the paused button would stay white */
@media (hover: hover) {
    html.riegler .rp-play:hover {
        background: #fff;
        border-color: #fff;
        color: #000;
        transform: scale(1.07);
    }
}

html.riegler .rp-play > svg {
    grid-area: 1 / 1;
}

html.riegler .rp-play-icon,
html.riegler .rp-pause-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

html.riegler .rp-pause-icon,
html.riegler .rp-play.is-playing .rp-play-icon {
    display: none;
}

html.riegler .rp-play.is-playing .rp-pause-icon {
    display: block;
}

html.riegler .rp-play-ring {
    position: absolute;
    inset: -7px;
    width: calc(100% + 14px);
    height: calc(100% + 14px);
    transform: rotate(-90deg);
    fill: none;
    stroke-width: 3.5;
    opacity: 0;
    transition: opacity .2s ease;
}

/* a dark track, so the white bar shows on light pictures too */
html.riegler .rp-play-track {
    stroke: rgba(0, 0, 0, .45);
}

html.riegler .rp-play-bar {
    stroke: #fff;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--rp-progress, 0));
    transition: stroke-dashoffset .25s linear;
}

html.riegler .rp-play.is-playing .rp-play-ring {
    opacity: 1;
}

html.riegler .rp-play.is-loading {
    animation: rp-play-wait 1s ease-in-out infinite;
}

@keyframes rp-play-wait {
    50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
}

@media (prefers-reduced-motion: reduce) {
    html.riegler .rp-play.is-loading {
        animation: none;
    }
}

/* the cart button of a product: small and round */
html.riegler .product-card .card-footer .btn.btn-primary {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
}

html.riegler .row > .col-md-2 {
    margin-bottom: 1.75rem !important;
}

@media (max-width: 767.98px) {
    html.riegler .row > .col-md-2,
    html.riegler .row > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* the titles of the plays and categories on their pictures */
html.riegler .col-md-2 > .card,
html.riegler .category-card > .card {
    position: relative;
}

html.riegler .col-md-2 > .card .card-header,
html.riegler .category-card .card-header {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 14px 12px;
    border-radius: 0 0 var(--rp-radius-img) var(--rp-radius-img);
    background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
}

html.riegler .col-md-2 > .card .card-header a,
html.riegler .category-card .card-header a {
    pointer-events: auto;
    font-size: .9rem;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

html.riegler .category-card .card-header a {
    font-size: 1.15rem;
}

/* ---------- buttons, forms, alerts ---------- */

/* the main buttons: white pills that lift a little under the pointer */
html.riegler .btn-primary {
    background: var(--rp-accent);
    border: 1px solid var(--rp-accent);
    color: var(--rp-accent-ink);
    border-radius: 999px;
    font-weight: 650;
    letter-spacing: .005em;
    padding: .6em 1.5em;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px rgba(0, 0, 0, .35);
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

html.riegler .btn-primary.btn-lg {
    padding: .75em 1.8em;
    font-size: 1.05rem;
}

html.riegler .btn-primary.btn-sm {
    padding: .35em 1em;
}

html.riegler .btn-primary:hover,
html.riegler .btn-primary:focus-visible {
    background: #e9e9e9;
    border-color: #e9e9e9;
    color: var(--rp-accent-ink);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 4px rgba(255, 255, 255, .08);
}

html.riegler .btn-primary:active {
    transform: none;
    background: #d6d6d6;
    border-color: #d6d6d6;
    color: var(--rp-accent-ink);
}

html.riegler .btn-primary:disabled,
html.riegler .btn-primary.disabled {
    background: #3a3a3a;
    border-color: #3a3a3a;
    color: #9a9a9a;
    box-shadow: none;
    transform: none;
}

html.riegler .btn-secondary {
    background: transparent;
    border: 1px solid var(--rp-line);
    color: var(--rp-text);
    border-radius: 999px;
}

html.riegler .btn-secondary:hover {
    border-color: var(--rp-accent);
    color: var(--rp-text);
}

/* fields stand out from the black: a lighter surface and a visible edge */
html.riegler .form-control,
html.riegler .form-select {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, .32);
    color: var(--rp-text);
    border-radius: 10px;
    min-height: 46px;
}

html.riegler .form-control::placeholder {
    color: #7d7d7d;
}

html.riegler .form-control:hover,
html.riegler .form-select:hover {
    border-color: rgba(255, 255, 255, .55);
}

html.riegler .form-control:focus,
html.riegler .form-select:focus {
    background-color: #202020;
    color: var(--rp-text);
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}

html.riegler .form-control.is-invalid,
html.riegler .form-select.is-invalid {
    border-color: #e5534b;
}

html.riegler .form-label,
html.riegler label {
    color: var(--rp-text);
}

html.riegler .alert-info {
    background: var(--rp-surface-2);
    border: 0;
    border-left: 3px solid var(--rp-accent);
    color: var(--rp-soft);
    border-radius: 8px;
    font-size: .95rem;
}

html.riegler .alert-info strong {
    color: var(--rp-text);
}

html.riegler .badge.bg-secondary {
    background: var(--rp-surface-2) !important;
    border: 1px solid var(--rp-line);
    font-weight: 500;
}

html.riegler .badge a {
    color: var(--rp-text);
}

/* links inside running text and labels are underlined - white alone doesn't tell them apart */
html.riegler .content p a:not(.btn),
html.riegler .content li a:not(.btn),
html.riegler .content td a:not(.btn),
html.riegler .form-check-label a,
html.riegler .alert a,
html.riegler .btn-link {
    color: var(--rp-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html.riegler .content p a:not(.btn):hover,
html.riegler .form-check-label a:hover,
html.riegler .btn-link:hover {
    color: var(--rp-muted);
}

/* ...but not the start page's menu and the breadcrumbs */
html.riegler #start-menu a,
html.riegler .content .breadcrumb a {
    text-decoration: none;
}

/* ...nor the names in the cart beside the shop - only under the pointer */
html.riegler .rp-shop-cart li a.cart-item-name {
    text-decoration: none;
}

html.riegler .rp-shop-cart li a.cart-item-name:hover {
    text-decoration: underline;
}

/* checkboxes: a clear white edge, white with a black tick when checked */
html.riegler .form-check-input {
    width: 1.3em;
    height: 1.3em;
    margin-top: .1em;
    background-color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, .7);
    cursor: pointer;
}

html.riegler .form-check-input[type=checkbox] {
    border-radius: 5px;
}

html.riegler .form-check-input:hover {
    border-color: #fff;
}

html.riegler .form-check-input.is-invalid {
    border-color: #e5534b;
}

html.riegler .form-check-label {
    cursor: pointer;
    padding-left: .35em;
}

html.riegler .form-check-input:checked {
    background-color: var(--rp-accent);
    border-color: var(--rp-accent);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

html.riegler .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
    border-color: #fff;
}

/* a product without picture */
html.riegler .product-image-loader__no-image {
    background: var(--rp-surface-2);
    color: var(--rp-muted);
    font-size: .75rem;
    text-align: center;
}

/* ---------- shop ---------- */

.rp-shop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
}

.rp-shop-cart {
    position: sticky;
    top: 24px;
}

html.riegler .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.75rem;
    font-size: .85rem;
    font-weight: 500;
}

html.riegler .breadcrumb-item,
html.riegler .breadcrumb-item.active {
    color: var(--rp-muted);
}

html.riegler .breadcrumb-item a {
    color: var(--rp-soft);
}

html.riegler .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--rp-muted);
}

/* "Shop" alone as breadcrumb on the start page of the shop: a title instead */
html.riegler .rp-shop-body > .breadcrumb:has(> .breadcrumb-item.active:only-child) {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    margin-bottom: 2rem;
}

html.riegler .rp-shop-body > .breadcrumb:has(> .breadcrumb-item.active:only-child) .breadcrumb-item {
    color: var(--rp-text);
}

/* the cart beside the shop */
html.riegler .rp-shop-cart .card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    padding: 4px;
    height: auto;
}

html.riegler .rp-shop-cart .card {
    background: transparent;
}

html.riegler .rp-shop-cart .card-title {
    flex-wrap: wrap;
    gap: 4px 12px;
}

html.riegler .rp-shop-cart .card-title > div {
    white-space: nowrap;
}

html.riegler .rp-shop-cart .card-title h4 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

html.riegler .rp-shop-cart .card-title h4 a {
    color: var(--rp-text);
}


/* product page */
html.riegler #product-header h3 {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

html.riegler #product-header > div:has(> .text-muted:only-child) {
    display: none;
}

html.riegler #product-header hr {
    display: none;
}

html.riegler #product-body {
    margin-top: 1.75rem;
}

html.riegler #product-price > div:first-child span:first-child {
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 2.3rem !important;
}

/* on a phone the button stands beside the price, as tall as it - its text may wrap */
@media (max-width: 767.98px) {
    html.riegler #product-price {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 16px;
        margin: 0;
    }

    html.riegler #product-price > div {
        width: auto;
        padding: 0;
    }

    html.riegler #product-price > div:first-child {
        flex: 1 1 auto;
    }

    /* price and its tax note close together - the button beside takes their height */
    html.riegler #product-price > div:first-child span:first-child {
        display: block;
        line-height: 1;
    }

    html.riegler #product-price > div:first-child .small {
        display: block;
        margin-top: .3rem;
    }

    html.riegler #product-price > div:last-child {
        flex: 0 1 11rem;
        display: flex;
    }

    /* the cart beside the text, which wraps on its own */
    html.riegler #product-price .btn {
        float: none !important;
        width: 100%;
        white-space: normal;
        line-height: 1.15;
        font-size: 1rem;
        padding: .15rem 1.1rem .15rem 1.3rem;
    }

    html.riegler #product-price .rp-add > span {
        width: 100%;
        gap: .5rem;
    }

    html.riegler #product-price .rp-add .oi,
    html.riegler #product-price .rp-add-done svg {
        flex-shrink: 0;
        font-size: 1.3em;
    }

    /* the text centred in the room beside the icon */
    html.riegler #product-price .rp-add .oi + span,
    html.riegler #product-price .rp-add-done svg ~ span {
        flex: 1;
        text-align: center;
    }
}

html.riegler #product-description h4 {
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--rp-muted);
}

/* ---------- start page (IndexLayout): the handwriting stays here ---------- */

html.riegler body:has(#startpage) {
    background: #000;
}

html.riegler #startpage {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* the picture used to push the page wider than a phone */
html.riegler #startpage img {
    max-width: 100%;
    height: auto;
}

html.riegler #startpage #start-menu > li > a:hover {
    color: var(--rp-accent);
}

@media (max-width: 767.98px) {
    html.riegler #startpage #start-menu {
        margin-top: 1.5em;
        padding-left: 4px;
    }

    html.riegler #startpage #start-menu > li {
        font-size: 2.6em;
        line-height: 1.25;
    }
}

/* ---------- smaller screens ---------- */

@media (max-width: 991.98px) {
    .rp-shop-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* the cart button in the header (with its count) is enough on small screens */
    .rp-shop-cart {
        display: none;
    }
}

@media (max-width: 900px) {
    .rp-header-inner,
    html.riegler .rp-header-inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 10px;
    }

    .rp-brand img,
    html.riegler .rp-brand img {
        height: 38px;
    }

    .rp-cart {
        margin-left: auto;
        padding: 0 12px;
        order: 2;
    }

    .rp-cart-label {
        display: none;
    }

    .rp-menu-toggle {
        order: 3;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid var(--rp-line);
        background: transparent;
        color: var(--rp-text);
        font-family: var(--rp-sans);
        font-size: .78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .14em;
    }

    .rp-burger,
    .rp-burger span,
    .rp-burger::before,
    .rp-burger::after {
        display: block;
        width: 16px;
        height: 2px;
        background: currentColor;
        position: relative;
        border-radius: 2px;
    }

    .rp-burger {
        background: none;
    }

    .rp-burger::before,
    .rp-burger::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .rp-burger::before { top: -5px; }
    .rp-burger::after { top: 5px; }

    .rp-nav,
    html.riegler .rp-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 12px var(--rp-gutter) 26px;
        background: var(--rp-bg);
        border-top: 1px solid var(--rp-line);
        border-bottom: 1px solid var(--rp-line);
        box-shadow: 0 24px 40px rgba(0, 0, 0, .7);
    }

    .rp-nav.open,
    html.riegler .rp-nav.open {
        display: flex;
    }

    .rp-nav-list,
    html.riegler .rp-nav-list {
        flex-direction: column;
        gap: 0;
    }

    .rp-nav-list > li {
        border-bottom: 1px solid var(--rp-line);
    }

    .rp-nav-list > li > a,
    html.riegler .rp-nav-list > li > a {
        font-size: 1.25rem;
        font-weight: 700;
        text-transform: none;
        letter-spacing: -.01em;
        line-height: 1;
        padding: 16px 0;
        display: block;
        color: var(--rp-text);
        background: none;
        border-radius: 0;
    }

    .rp-nav-list > li > a::after {
        display: none;
    }

    .rp-nav-list > li > a.active,
    html.riegler .rp-nav-list > li > a.active {
        color: var(--rp-accent);
        background: none;
    }

    .rp-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 14px;
        margin-top: -6px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 18px;
    }

    .rp-sub a,
    html.riegler .rp-sub a {
        padding: 2px 0;
        color: var(--rp-muted);
    }

    .rp-search{
        width: 100%;
        margin-left: 0;
    }

    html.riegler body {
        font-size: 16px;
    }
}

/* the listen into a product, under its picture - without a box, so the player gets the picture's full width */
html.riegler .product-preview {
    margin: 1rem 0 1.5rem;
}

html.riegler .product-preview-label {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rp-muted);
    margin-bottom: .4rem;
}

html.riegler .product-preview audio {
    display: block;
    width: 100%;
    color-scheme: dark;
}

/* The cart button (AddToCartButton, cart-fx.js): once the product is in, the label rolls over to a drawn tick, the
   button turns dark with a ring going out - the picture flying to the cart is done in the script */
html.riegler .btn.rp-add {
    position: relative;
    display: inline-grid;
    align-items: center;
    justify-items: center;
    overflow: hidden;
}

html.riegler .rp-add > .rp-add-idle,
html.riegler .rp-add > .rp-add-done {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .25s ease;
}

html.riegler .rp-add > .rp-add-done {
    transform: translateY(130%);
    opacity: 0;
}

html.riegler .rp-add.is-added > .rp-add-idle,
html.riegler .rp-add.is-full > .rp-add-idle {
    transform: translateY(-130%);
    opacity: 0;
}

html.riegler .rp-add.is-added > .rp-add-done,
html.riegler .rp-add.is-full > .rp-add-done {
    transform: none;
    opacity: 1;
}

html.riegler .rp-add-done svg {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
}

html.riegler .rp-add.is-added .rp-add-done svg {
    animation: rp-tick .4s .18s ease-out forwards;
}

html.riegler .rp-add.is-full .rp-add-done svg {
    stroke-dashoffset: 0;
}

html.riegler .rp-add-full-text,
html.riegler .rp-add.is-full .rp-add-done-text {
    display: none;
}

html.riegler .rp-add.is-full .rp-add-full-text {
    display: inline;
}

html.riegler .btn.rp-add.is-added,
html.riegler .btn.rp-add.is-added:hover,
html.riegler .btn.rp-add.is-full,
html.riegler .btn.rp-add.is-full:hover {
    background: #111;
    border-color: #fff;
    color: #fff;
    transform: none;
}

html.riegler .btn.rp-add.is-added {
    animation: rp-pop .45s cubic-bezier(.3, 1.6, .5, 1), rp-ring .8s ease-out;
}

html.riegler .btn.rp-add.is-full {
    animation: rp-shake .42s ease-in-out;
}

@keyframes rp-tick {
    to { stroke-dashoffset: 0; }
}

@keyframes rp-pop {
    0% { scale: .92; }
    60% { scale: 1.06; }
    100% { scale: 1; }
}

@keyframes rp-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
    100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

@keyframes rp-shake {
    0%, 100% { translate: 0; }
    20%, 60% { translate: -5px; }
    40%, 80% { translate: 5px; }
}

/* the sparks around the button and the picture on its way to the cart */
.rp-spark {
    position: fixed;
    z-index: 2000;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, .8);
    pointer-events: none;
}

.rp-flyer {
    position: fixed;
    z-index: 2000;
    border-radius: 12px;
    background: center / cover no-repeat;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 255, 255, .85);
    pointer-events: none;
    will-change: transform;
}

.rp-flyer-plain {
    background: #fff;
}

/* the way to the checkout when the header's cart is scrolled away */
.rp-cart-bar {
    position: fixed;
    z-index: 1990;
    left: 0;
    right: 0;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .85);
    background: #111;
    color: #fff;
    font: 600 .95rem var(--rp-sans, Inter, system-ui, sans-serif);
    text-decoration: none !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .7);
    translate: 0 calc(100% + 40px);
    opacity: 0;
    pointer-events: none;
    transition: translate .45s cubic-bezier(.3, 1.4, .5, 1), opacity .25s ease;
}

.rp-cart-bar.is-shown {
    translate: 0 0;
    opacity: 1;
    pointer-events: auto;
}

.rp-cart-bar:hover {
    color: #fff;
}

.rp-cart-bar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rp-cart-bar-go {
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    color: #000;
}

@media (prefers-reduced-motion: reduce) {
    .rp-cart-bar {
        transition: opacity .2s ease;
    }

    html.riegler .rp-add > .rp-add-idle,
    html.riegler .rp-add > .rp-add-done {
        transition: opacity .2s ease;
        transform: none !important;
    }

    html.riegler .btn.rp-add.is-added,
    html.riegler .btn.rp-add.is-full,
    html.riegler .rp-add.is-added .rp-add-done svg {
        animation: none;
        stroke-dashoffset: 0;
    }
}
