/* QUAMARO Kategorien – 12.08.2026 */
.category-page-shell,
.categories-page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.categories-hero,
.category-hero {
  padding: clamp(42px, 7vw, 82px) 0 26px;
}
.categories-hero__grid,
.category-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.categories-hero h1,
.category-hero h1 {
  max-width: 820px;
  margin: .35rem 0 .9rem;
}
.categories-hero__lead,
.category-hero__lead {
  max-width: 760px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.7;
}
.category-hero__image,
.categories-hero__image {
  overflow: hidden;
  min-height: 300px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(24, 66, 42, .12);
  background: #edf4ea;
}
.category-hero__image img,
.categories-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.category-overview-section,
.category-content-section {
  padding: 34px 0 64px;
}
.category-overview-grid,
.popular-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.popular-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.category-overview-card,
.popular-category-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28, 76, 47, .14);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(24, 66, 42, .08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.category-overview-card:hover,
.category-overview-card:focus-visible,
.popular-category-card:hover,
.popular-category-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(28, 76, 47, .32);
  box-shadow: 0 20px 46px rgba(24, 66, 42, .14);
}
.category-overview-card:focus-visible,
.popular-category-card:focus-visible {
  outline: 3px solid rgba(41, 122, 72, .28);
  outline-offset: 3px;
}
.category-overview-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #f7faf8;
}
.popular-category-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #f7faf8 0%, #eef4ef 100%);
}
.category-overview-card__body,
.popular-category-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}
.category-overview-card__body h2,
.popular-category-card__body h3 {
  margin: .1rem 0 .55rem;
}
.category-overview-card__body p,
.popular-category-card__body p {
  margin: 0 0 1rem;
}
.category-card-link {
  margin-top: auto;
  font-weight: 800;
  color: #176b44;
}
.category-overview-subareas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  margin: 0 0 1rem;
}
.category-overview-subareas span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .38rem;
  padding: .48rem .62rem;
  border: 1px solid rgba(28, 76, 47, .12);
  border-radius: 12px;
  background: #f4f8f3;
  color: #254b35;
  font-size: .88rem;
  font-weight: 750;
}
.category-overview-subareas b {
  font-size: .95rem;
  line-height: 1;
}
.category-state {
  display: inline-flex;
  width: fit-content;
  margin-bottom: .75rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #e9f5e8;
  color: #176b44;
  font-size: .82rem;
  font-weight: 800;
}
.category-state--soon {
  background: #f2f4f5;
  color: #66716c;
}
.popular-categories-footer,
.category-callout {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(28, 76, 47, .14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(235,245,226,.94), rgba(239,248,248,.96));
}
.popular-categories-footer p,
.category-callout p {
  margin: .25rem 0 0;
}
.category-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.category-choice {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid rgba(28, 76, 47, .14);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(24, 66, 42, .06);
}
.category-choice:hover,
.category-choice:focus-visible {
  border-color: rgba(28, 76, 47, .32);
  transform: translateY(-2px);
}
.category-choice__icon {
  font-size: 1.5rem;
  margin-bottom: .7rem;
}
.category-choice h3 {
  margin: 0 0 .45rem;
}
.category-choice p {
  margin: 0 0 .8rem;
}
.category-choice .category-card-link {
  margin-top: auto;
}
.category-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.category-topic {
  padding: 1.25rem;
  border: 1px solid rgba(28, 76, 47, .12);
  border-radius: 18px;
  background: #fff;
}
.category-topic h3 {
  margin: 0 0 .45rem;
}
.category-topic p {
  margin: 0;
}
.category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .9rem;
  color: #68766f;
  font-size: .92rem;
}
.category-breadcrumb a {
  color: inherit;
}
.category-nav-current {
  font-weight: 800;
}
@media (max-width: 980px) {
  .popular-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .categories-hero__grid,
  .category-hero__grid {
    grid-template-columns: 1fr;
  }
  .category-hero__image,
  .categories-hero__image,
  .category-hero__image img,
  .categories-hero__image img {
    min-height: 220px;
  }
  .category-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .popular-categories-footer,
  .category-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  .category-overview-card__body p {
    display: none;
  }
  .category-overview-card__body {
    padding: .72rem;
  }
  .category-overview-card__body h2 {
    font-size: .96rem;
    line-height: 1.2;
    margin-bottom: .45rem;
  }
  .category-state {
    margin-bottom: .45rem;
  }

  /* Startseite bewusst kompakt: 4 beliebte Kategorien bleiben 2 x 2. */
  .popular-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
  }
  .popular-category-card img {
    min-height: 0;
  }
  .popular-category-card__body {
    padding: .9rem;
  }
  .popular-category-card__body h3 {
    font-size: 1rem;
  }
  .popular-category-card__body p {
    display: none;
  }
  .category-overview-subareas {
    gap: .3rem;
    margin-bottom: .65rem;
  }
  .category-overview-subareas span {
    gap: .22rem;
    padding: .34rem .38rem;
    border-radius: 9px;
    font-size: .72rem;
  }
  .category-overview-subareas b {
    font-size: .78rem;
  }
  .category-card-link {
    font-size: .88rem;
  }
}

@media (max-width: 380px) {
  .category-overview-grid,
  .category-choice-grid,
  .category-topic-grid {
    gap: .55rem;
  }
}


/* Finaler Kategorien-Polish – 13.08.2026 */
.category-overview-card--soon,
.popular-category-card--soon {
  cursor: default;
  box-shadow: 0 10px 26px rgba(24,66,42,.055);
}
.category-overview-card--soon:hover,
.popular-category-card--soon:hover {
  transform: none;
  border-color: rgba(28,76,47,.14);
  box-shadow: 0 10px 26px rgba(24,66,42,.055);
}
.category-overview-card--soon .category-card-link,
.popular-category-card--soon .category-card-link {
  color: #68766f;
}

/* Kategorienkarten wie Startseite: Headerfoto, Icon-Badge, Cover-Crop */
.category-overview-grid{
  align-items:start;
}
.category-overview-card.category-overview-card--photo{
  padding:0;
  overflow:hidden;
  border-color:rgba(16,42,71,.10);
  box-shadow:0 10px 30px rgba(16,42,71,.07);
  color:inherit;
}
.category-overview-card--photo:hover,
.category-overview-card--photo:focus-visible{
  border-color:rgba(10,140,153,.3);
}
.category-overview-card__media{
  position:relative;
  overflow:hidden;
  min-width:0;
  aspect-ratio:16/9;
  background:#e8eef5;
  border-radius:20px 20px 0 0;
}
.category-overview-card__media img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  padding:0;
  aspect-ratio:auto;
  object-fit:cover;
  background:transparent;
}
.category-overview-card__icon{
  position:absolute;
  top:.7rem;
  left:.7rem;
  z-index:2;
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  border-radius:11px;
  background:#fff;
  box-shadow:0 6px 16px rgba(16,42,71,.18);
  font-size:1.05rem;
}
.category-overview-card[data-q-theme-card="garden"] .category-overview-card__icon{background:#edf7f1}
.category-overview-card[data-q-theme-card="technik"] .category-overview-card__icon{background:#e8f1f6}
.category-overview-card[data-q-theme-card="haushalt"] .category-overview-card__icon{background:#fff4e8}
.category-overview-card[data-q-theme-card="familie"] .category-overview-card__icon{background:#f7eef4}
.category-overview-card[data-q-theme-card="wohnen"] .category-overview-card__icon{background:#e7f5fb}
.category-overview-card[data-q-theme-card="outdoor"] .category-overview-card__icon{background:#e8f4f1}
.category-overview-card[data-q-theme-card="garden"] .category-overview-card__media img{object-position:center 38%}
.category-overview-card[data-q-theme-card="technik"] .category-overview-card__media img{object-position:78% 46%}
.category-overview-card[data-q-theme-card="haushalt"] .category-overview-card__media img,
.category-overview-card[data-q-theme-card="familie"] .category-overview-card__media img,
.category-overview-card[data-q-theme-card="wohnen"] .category-overview-card__media img,
.category-overview-card[data-q-theme-card="outdoor"] .category-overview-card__media img{object-position:center 30%}
.category-overview-card--photo .category-overview-card__body{
  gap:.28rem;
  padding:.85rem .95rem 1rem;
}
.category-overview-card--photo .category-state{
  margin-bottom:0;
  padding:.3rem .52rem;
  background:#fff;
  color:#08747f;
  box-shadow:0 5px 14px rgba(0,0,0,.08);
  font-size:.58rem;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.category-overview-card--photo .category-state--soon{
  background:#dceaf1;
  color:#173653;
  box-shadow:none;
}
.category-overview-card--photo .category-overview-card__body h2{
  margin:.08rem 0 0;
  color:#102a47;
}
.category-overview-card--photo .category-overview-card__body p{
  margin:.15rem 0 0;
  color:#667783;
}
.category-overview-card--photo .category-card-link{
  margin-top:.2rem;
  color:#08747f;
}
.category-overview-card--soon.category-overview-card--photo .category-overview-card__body p,
.category-overview-card--soon.category-overview-card--photo .category-card-link{
  display:none;
}
@media (max-width:820px){
  .category-overview-card--live{grid-column:1/-1}
  .category-overview-card--live .category-overview-card__media{aspect-ratio:16/6.5}
}


/* 17.08.2026 – Startseite: Gartenbild exakt in das Bildformat der übrigen Karten setzen */
.popular-category-card__media--garden {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(180deg, #f7faf8 0%, #eef4ef 100%);
}
body.home-page .popular-category-card__media--garden > img {
  display: block;
  height: 100% !important;
  width: auto !important;
  aspect-ratio: 463 / 512 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 12px;
  background: transparent;
}
@media (max-width: 700px) {
  .popular-category-card__media--garden {
    height: 118px;
    aspect-ratio: auto;
  }
  body.home-page .popular-category-card__media--garden > img {
    height: 100% !important;
    width: auto !important;
  }
}

/* QA 2026-08-18: Garten & Außenbereich – große Beratungsblöcke auf Handy/Tablet nicht in zwei Spalten quetschen */
@media (max-width: 980px) {
  body.category-page .category-topic-grid {
    grid-template-columns: 1fr !important;
  }
}
