/* ============================================================
   Shop-Startseite (shop/templates/shop_index.html), Aufbau 2026-10-20
   ------------------------------------------------------------
   Nur die Bereiche, die es ausschliesslich auf der Startseite gibt:
   Bewertung im Hero, Sportart-Kacheln, Schritte,
   Bewertungsauswahl. Plankarten-Reihen (.shop-sport-row), Paketkarten
   (shop_bundles.css) und Gratis-Karten kommen aus den vorhandenen Dateien.
   Farben/Radien ueber die Variablen von .shop-app (shop_storefront.css).
   ============================================================ */

/* ---------- Hero: Bewertungsschnitt unter den Buttons ---------- */
.shop-app .shop-hero__rating {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; margin-top: 1.25rem;
    color: rgba(255, 255, 255, .86); font-size: .92rem; text-decoration: none;
}
.shop-app .shop-hero__rating:hover { color: #fff; }
.shop-app .shop-hero__rating strong { color: #fff; }
.shop-hero__rating .shop-stars__star { color: rgba(255, 255, 255, .28); }
.shop-hero__rating .shop-stars__fill { color: #f4b63a; }

/* ---------- Sportart-Kacheln ----------
   Foto oben (ohne Foto dunkle Flaeche), darunter der Name.
   Ganze Kachel klickbar (gestreckter Titel-Link). */
.shop-sporttiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .shop-sporttiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.shop-sporttile {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--shop-line); border-radius: var(--shop-radius);
    box-shadow: 0 1px 2px rgba(21, 25, 31, .05), 0 4px 12px rgba(21, 25, 31, .05);
    transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.shop-sporttile:hover { transform: translateY(-2px); border-color: var(--shop-line-strong); box-shadow: var(--shop-shadow-hover); }
.shop-sporttile:has(.shop-stretched:focus-visible) { outline: 3px solid rgba(40, 81, 128, .45); outline-offset: 2px; }
.shop-app .shop-sporttile .shop-stretched:focus-visible { outline: none; }
.shop-sporttile__media {
    position: relative; aspect-ratio: 16 / 7; overflow: hidden;
    background: linear-gradient(160deg, var(--shop-ink) 0%, #0d1014 100%);
}
@media (min-width: 760px) { .shop-sporttile__media { aspect-ratio: 3 / 2; } }
.shop-sporttile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.shop-sporttile:hover .shop-sporttile__media img { transform: scale(1.04); }
.shop-sporttile__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13, 16, 20, 0) 45%, rgba(13, 16, 20, .55) 100%);
}

/* Ohne Foto: dunkle Flaeche (wie die Bildflaeche der Plankarten) */
.shop-sporttile:not(.has-photo) .shop-sporttile__media {
    background: radial-gradient(90% 90% at 85% 0%, rgba(40, 81, 128, .45), transparent 60%), linear-gradient(160deg, var(--shop-ink) 0%, #0d1014 100%);
}
.shop-sporttile__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem 1.15rem; flex: 1 1 auto; }
.shop-app .shop-sporttile__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.shop-app .shop-sporttile__title a { color: var(--shop-ink); text-decoration: none; }
.shop-app .shop-sporttile__title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.shop-sporttile__arrow { font-size: .9rem; color: var(--shop-muted); transition: transform .2s ease-out, color .2s; }
.shop-sporttile:hover .shop-sporttile__arrow { transform: translateX(3px); color: var(--shop-ink); }

/* ---------- Beliebte Trainingspläne ----------
   .shop-sport-rows kommt aus shop_storefront.css; auf der Startseite naeher am Kopf. */
.shop-home-rows { margin-top: .5rem; }
.shop-section__head--row > div { min-width: 0; }

/* ---------- Bundles: Hinweis-Streifen (shop_bundles.css), auf der Startseite ohne Aussenabstand ---------- */
#bundles .shop-bundle-teaser { margin: 0; }

/* ---------- So funktioniert's ---------- */
.shop-app .shop-homesteps { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 760px) { .shop-app .shop-homesteps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.shop-homestep { position: relative; padding: 1.35rem 1.35rem 1.25rem; background: #fff; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); }
.shop-homestep__num {
    display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; margin-bottom: .85rem;
    border-radius: 50%; background: var(--shop-ink); color: #fff; font-weight: 800; font-size: .95rem;
}
.shop-app .shop-homestep__title { font-size: 1.08rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; margin-bottom: .4rem; }
.shop-homestep p { color: var(--shop-ink-2); font-size: .93rem; margin: 0; }
.shop-homesteps__more { margin: 1.5rem 0 0; }

/* Persoenliche Plananpassung unter den drei Schritten: Text + weisse Karte mit versetztem Schatten
   (gleiche Bildsprache wie die Karten auf aspect-sports.com) */
.shop-home-pc { display: grid; gap: 1.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--shop-line); align-items: center; }
@media (min-width: 860px) { .shop-home-pc { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: 3rem; } }
.shop-home-pc__text .shop-eyebrow { margin-bottom: .5rem; }
.shop-app .shop-home-pc__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 .7rem; }
.shop-home-pc__text p { color: var(--shop-ink-2); max-width: 58ch; margin: 0; }
.shop-home-pc__text p + p { margin-top: .6rem; }
.shop-app .shop-home-pc__muted { color: var(--shop-muted); font-size: .93rem; }
.shop-home-pc__card {
    margin-right: .5rem; padding: 1.15rem 1.2rem 1.2rem; background: #fff; border: 1px solid var(--shop-line);
    border-radius: 1rem; box-shadow: .45rem .45rem 0 var(--shop-ink);
}
.shop-home-pc__card p { margin: 0; }
.shop-home-pc__card-head { display: flex; align-items: center; gap: .65rem; padding-bottom: .9rem; margin-bottom: .9rem !important; border-bottom: 1px solid var(--shop-line); }
.shop-home-pc__card-head b { display: block; font-size: .95rem; font-weight: 800; line-height: 1.15; }
.shop-home-pc__card-head small { display: block; color: var(--shop-muted); font-size: .78rem; font-weight: 600; }
.shop-home-pc__card-head b + small { margin-top: .15rem; color: var(--shop-ink-2); }
.shop-home-pc__avatar {
    flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover;
    background: var(--shop-bg-soft); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--shop-line);
}
.shop-home-pc__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; max-width: 58ch; }
.shop-home-pc__list li { display: flex; gap: .55rem; color: var(--shop-ink-2); font-size: .95rem; line-height: 1.45; }
.shop-home-pc__list i { flex: 0 0 auto; margin-top: .28rem; color: var(--shop-ink); font-size: .8rem; }
.shop-app .shop-home-pc__more { margin-top: 1.1rem; }
.shop-home-pc__price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.shop-home-pc__price small { margin-left: .3rem; color: var(--shop-muted); font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.shop-app .shop-home-pc__note { margin-top: .45rem !important; color: var(--shop-muted); font-size: .82rem; line-height: 1.45; }

/* ---------- Bewertungen ---------- */
.shop-app .shop-home-reviews__sum { margin: 0; color: var(--shop-ink-2); }
.shop-home-reviews { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 760px) { .shop-home-reviews { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; } }
.shop-home-reviews .shop-review { display: flex; flex-direction: column; padding: 1.2rem 1.25rem; border-radius: var(--shop-radius); }
.shop-home-reviews .shop-review__body {
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-app .shop-home-reviews__plan { margin: auto 0 0; padding-top: .75rem; font-size: .86rem; font-weight: 600; }
.shop-app .shop-home-reviews__plan a { text-decoration: none; }
.shop-app .shop-home-reviews__plan a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .shop-sporttile, .shop-sporttile__media img, .shop-sporttile__arrow { transition: none; }
    .shop-sporttile:hover .shop-sporttile__media img { transform: none; }
}
