.dip-shop {
    --dip-shop-ink: #182e32;
    --dip-shop-paper: #fcfaf4;
    --dip-shop-border: #d5d9d1;
    --dip-shop-tint: #f2eedf;
    --dip-shop-green: #c9dbb0;
    --dip-shop-gold: #f2c679;
    --dip-shop-blue: #bfdbdf;
    color: var(--dip-shop-ink);
}

.dip-shop [hidden] { display: none !important; }

.dip-shop-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(14rem, .9fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4.5rem);
    min-height: 21rem;
    padding: clamp(1.3rem, 4vw, 3.5rem);
    border: 1px solid var(--dip-shop-border);
    border-radius: 1.5rem;
    background: radial-gradient(ellipse at 80% 90%, #e5ebd5, transparent 52%), var(--dip-shop-paper);
    overflow: hidden;
    isolation: isolate;
}

.dip-shop-intro h2 {
    max-width: 13ch;
    margin: .35rem 0 .8rem;
    font-size: clamp(2rem, 4.8vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.dip-shop-intro p { max-width: 56ch; }
.dip-shop-kicker { margin: 0; color: #3a5759; font-size: .74rem; font-weight: 800; letter-spacing: .095em; text-transform: uppercase; }
.dip-shop-introlink { display: inline-flex; gap: .6rem; align-items: center; margin-top: .55rem; padding: .5rem 0; color: inherit; font-weight: 750; text-decoration-thickness: .12em; text-underline-offset: .32em; }

.dip-shop-art {
    position: relative;
    justify-self: center;
    width: min(100%, 23rem);
    height: clamp(12rem, 24vw, 18rem);
}
.dip-shop-art-book {
    position: absolute;
    bottom: .45rem;
    left: 50%;
    width: 48%;
    height: 88%;
    border: 1px solid #416066;
    border-radius: .45rem .7rem .7rem .4rem;
    box-shadow: inset .42rem 0 #223f472f, inset -.3rem -.3rem #ffffff5a, .3rem .65rem 1rem #1c352c26;
    transform-origin: 50% 94%;
}
.dip-shop-art-book-back { background: var(--dip-shop-green); transform: translateX(-50%) rotate(-17deg) translateX(-33%); }
.dip-shop-art-book-middle { background: var(--dip-shop-gold); transform: translateX(-50%) rotate(18deg) translateX(36%); }
.dip-shop-art-book-front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .3rem;
    padding: clamp(.6rem, 2.5vw, 1.25rem);
    color: #f8f5e8;
    background: #294d52;
    transform: translateX(-50%) rotate(-4deg);
}
.dip-shop-art-book-front span:first-child { color: #ffe0a6; font-size: clamp(.85rem, 2.1vw, 1.55rem); font-weight: 850; line-height: .99; }
.dip-shop-art-book-front span:nth-child(2) { font-size: clamp(.6rem, 1.1vw, .98rem); line-height: 1.15; overflow-wrap: anywhere; }
.dip-shop-art-book-front span:last-child { font-size: .65rem; }
.dip-shop-art-book-original {
    display: block;
    width: auto;
    aspect-ratio: 314 / 500;
    padding: 0;
    border: 0;
    border-radius: .2rem .4rem .4rem .2rem;
    overflow: hidden;
}
.dip-shop-art-book-original img { display: block; width: 100%; height: 100%; object-fit: contain; }

.dip-shop-stock { padding: clamp(2.2rem, 7vw, 5rem) 0 1rem; scroll-margin-top: 5rem; }
.dip-shop-stock h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.dip-shop-stock > p { max-width: 65ch; }
.dip-shop-tools { margin: 1.5rem 0 .95rem; }
.dip-shop-tools label { display: block; margin-bottom: .35rem; font-weight: 730; }
.dip-shop-tools input { width: min(100%, 32rem); min-height: 2.8rem; padding: .55rem .75rem; border: 1px solid #a2aca6; border-radius: .5rem; background: #fff; color: var(--dip-shop-ink); font: inherit; }
.dip-shop-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.dip-shop-filters button { min-height: 2.6rem; padding: .35rem .75rem; border: 1px solid var(--dip-shop-border); border-radius: 2rem; color: var(--dip-shop-ink); background: #fff; font: inherit; cursor: pointer; }
.dip-shop-filters button:hover,
.dip-shop-filters button[aria-pressed="true"] { color: #fff; background: #294d52; border-color: #294d52; }
.dip-shop-result { min-height: 1.35em; margin: .55rem 0 0; color: #3a5759; font-size: .9rem; }
.dip-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dip-shop-book {
    --dip-shop-cover: #d9e4cb;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    align-content: start;
    gap: .7rem;
    min-width: 0;
    scroll-margin-top: 5.4rem;
    padding: clamp(1rem, 2.4vw, 1.4rem);
    border: 1px solid var(--dip-shop-border);
    border-radius: .9rem;
    background: #fffdfa;
}
.dip-shop-book:target { outline: 2px solid #2b555a; outline-offset: .16rem; }
.dip-shop-book[data-dip-shop-book="grundlagen"] { --dip-shop-cover: #ead7ae; }
.dip-shop-book[data-dip-shop-book="demokratie"] { --dip-shop-cover: #cfe2e6; }
.dip-shop-book[data-dip-shop-book="wirtschaft"] { --dip-shop-cover: #e8d2bf; }
.dip-shop-book[data-dip-shop-book="gesellschaft"] { --dip-shop-cover: #dfd9ec; }
.dip-shop-book[data-dip-shop-book="roman"] { --dip-shop-cover: #f4cfb5; }
.dip-shop-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(13.75rem, 26vw, 17.5rem);
    min-width: 0;
    padding: 1rem .5rem;
    border-radius: .58rem;
    background: radial-gradient(ellipse at 50% 38%, #fffaf0, var(--dip-shop-cover));
}
.dip-shop-cover img {
    display: block;
    width: auto;
    max-width: 92%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
    border-radius: .1rem .2rem .2rem .1rem;
    box-shadow: .2rem .5rem 1rem #1b353340;
}
.dip-shop-book-header { min-width: 0; }
.dip-shop-mini-cover { display: grid; place-items: center; width: 6.5rem; height: 9.6rem; border: 1px solid #294d5288; border-radius: .14rem .27rem .27rem .14rem; box-shadow: inset .36rem 0 #294d5238, inset -.12rem -.16rem #fff9; background: var(--dip-shop-cover); color: #28474a; font-size: 1.9rem; font-weight: 850; transform: rotate(-4deg); }
.dip-shop-book h3 { margin: .2rem 0 0; line-height: 1.16; font-size: clamp(1.04rem, 1.7vw, 1.34rem); overflow-wrap: anywhere; }
.dip-shop-description { margin: 0; font-size: .91rem; line-height: 1.5; }
.dip-shop-editions { grid-row: 4; display: flex; flex-wrap: wrap; align-items: center; gap: .38rem; }
.dip-shop-edition { display: inline-flex; gap: .4rem; align-items: center; min-height: 2.45rem; padding: .35rem .58rem; border: 1px solid #2a5154; border-radius: .4rem; color: #fff; background: #294d52; font-size: .84rem; font-weight: 750; text-decoration: none; }
.dip-shop-edition-ebook { color: #234346; background: #fff; }
.dip-shop-edition:hover { color: #172f32; background: #f4d79a; border-color: #294d52; }
.dip-shop-reading { grid-row: 5; justify-self: start; padding: .3rem 0; color: #254a50; font-size: .88rem; font-weight: 700; text-underline-offset: .2rem; }
.dip-shop :is(a, button, input):focus-visible { outline: 2px solid #294d52; outline-offset: 3px; }

@media (max-width: 64rem) {
    .dip-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 41rem) {
    .dip-shop-intro { grid-template-columns: 1fr; text-align: left; }
    .dip-shop-art { width: min(100%, 16rem); height: 12.3rem; }
    .dip-shop-grid { grid-template-columns: 1fr; }
}
