/* Kategorie- und Produktart-Kacheln der Startseite: das Bild führt, der Text steht darunter. */
#main .home .shop-category:is(.app-groups,.app-types){margin-block:4px 40px}
#main .home .shop-category:is(.app-groups,.app-types) .cards.app{display:grid!important;gap:20px;max-width:none!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important}
#main .home .shop-category.app-groups .cards.app{grid-template-columns:minmax(0,1fr)!important}
@media(min-width:560px){#main .home .shop-category.app-groups .cards.app{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:1100px){#main .home .shop-category.app-groups .cards.app{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

#main .home .shop-category:is(.app-groups,.app-types) .card{display:flex!important;flex-direction:column;align-items:stretch;gap:0;min-height:0;padding:0!important;overflow:hidden;border:1px solid var(--shop-line);border-radius:14px;background:var(--shop-surface);box-shadow:none;transition:border-color 160ms var(--shop-ease),box-shadow 220ms var(--shop-ease),transform 220ms var(--shop-ease)}
#main .home .shop-category:is(.app-groups,.app-types) .card-visual,
#main .home .shop-category:is(.app-groups,.app-types) .card-visual.photo{display:flex;align-items:center;justify-content:center;width:100%!important;height:auto!important;aspect-ratio:4/3!important;border-radius:0!important;background:#eef2f0;overflow:hidden}
#main .home .shop-category:is(.app-groups,.app-types) .card-visual img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;transition:transform 520ms var(--shop-ease)}
#main .home .shop-category:is(.app-groups,.app-types) .card-visual svg{width:42%;height:auto;max-height:70%}
#main .home .shop-category:is(.app-groups,.app-types) .card-body{align-self:stretch;width:auto;min-width:0;text-align:left;display:flex;flex-direction:column;gap:4px;padding:16px 18px 0!important}
#main .home .shop-category:is(.app-groups,.app-types) .card-title{font-size:21px;line-height:1.2;font-weight:800;letter-spacing:-.02em;color:var(--shop-ink)}
#main .home .shop-category:is(.app-groups,.app-types) .card-sub{font-size:14px;line-height:1.4;color:var(--shop-muted)}
#main .home .shop-category:is(.app-groups,.app-types) .card .card-cta{align-self:flex-start;margin:14px 18px 18px;padding:0;min-height:0;background:none;color:var(--shop-accent);font-size:15px;font-weight:800}

@media(hover:hover) and (pointer:fine){
  #main .home .shop-category:is(.app-groups,.app-types) .card:hover{transform:translateY(-3px);border-color:#b9ccc4;box-shadow:0 14px 28px -14px #16354b40}
  #main .home .shop-category:is(.app-groups,.app-types) .card:hover .card-visual img{transform:scale(1.04)}
}
#main .home .shop-category:is(.app-groups,.app-types) .card:active{transform:scale(.985);transition-duration:90ms}
#main .home .shop-category:is(.app-groups,.app-types) .card:focus-visible{outline:3px solid var(--shop-accent);outline-offset:3px}
@media(prefers-reduced-motion:reduce){
  #main .home .shop-category:is(.app-groups,.app-types) .card,#main .home .shop-category:is(.app-groups,.app-types) .card-visual img{transition:none}
  #main .home .shop-category:is(.app-groups,.app-types) .card:hover,#main .home .shop-category:is(.app-groups,.app-types) .card:active{transform:none}
  #main .home .shop-category:is(.app-groups,.app-types) .card:hover .card-visual img{transform:none}
}

/* Rückweg zur Kategorieübersicht: ruhiger Textlink über der Überschrift. */
#main .home>.app-type-head{display:flex;flex-direction:column;align-items:flex-start}
#main .home>.app-type-head .picker-navigation{order:-1;margin:0 0 14px}
#main .home .app-type-nav{margin:0 0 14px}
#main .home :is(.app-type-head,.app-type-nav) [data-fb-group-back]{min-height:44px;padding:0 14px 0 10px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--shop-line);border-radius:9px;background:var(--shop-surface);color:var(--shop-ink);font-weight:700}
#main .home :is(.app-type-head,.app-type-nav) [data-fb-group-back]:before{content:"";width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(1px,-1px)}
#main .home :is(.app-type-head,.app-type-nav) [data-fb-group-back]:hover{background:var(--shop-tint);border-color:#b9ccc4}
#main .home :is(.app-type-head,.app-type-nav) [data-fb-group-back]:focus-visible{outline:3px solid var(--shop-accent);outline-offset:3px}
@media(max-width:559px){#main .home .shop-category:is(.app-groups,.app-types) .card-visual,#main .home .shop-category:is(.app-groups,.app-types) .card-visual.photo{aspect-ratio:16/10!important}}

/* Haustüren: fünf Türarten als 3 + 2 statt 4 + 1 (keine einzelne Karte in der zweiten Zeile). */
@media (min-width:900px){
  #main .home .shop-category.app-types .cards.app:has(> :nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}
  #main .home .shop-category.app-types .cards.app:has(> :nth-child(5):last-child)>*{grid-column:span 2}
  #main .home .shop-category.app-types .cards.app:has(> :nth-child(5):last-child)>:nth-child(4){grid-column:2/span 2}
  #main .home .shop-category.app-types .cards.app:has(> :nth-child(5):last-child)>:nth-child(5){grid-column:4/span 2}
}
#main .home .shop-category.app-types .category-photo-note{margin:18px 0 0;color:var(--shop-muted);font-size:12px;line-height:1.6}

#main .home .app-types[data-category-group="haustueren"] .card .card-body{background:#f6eee5!important}
#main .home .app-types[data-category-group="haustueren"] .card:hover .card-body{background:#eee2d4!important}
