/* UI/CRO V4 - Kategorieseiten (de/_category_hero_v4.php) - 2026-09-29
   Nur geladen, wenn der Bereich "Kategorieseiten" im Admin (/admin/ui_v4.php) aktiv ist
   (body.ui-v4-category). Hero randlos wie auf der Startseite, Breadcrumb/H1/Einleitung im Bild. */

body.ui-v4-category { --v4-cat-width: 1440px; }
/* .container-content hat overflow:auto (schneidet den randlosen Hero ab) - flow-root haelt Floats
   weiterhin eingeschlossen, ohne abzuschneiden. */
body.ui-v4-category .container-content { overflow: visible; display: flow-root; }

/* ── Mit Banner: randlos ueber die volle Breite ── */
.v4-cat-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 28vw, 440px);
  width: calc(100vw - var(--v4-sbw, 0px));
  /* -15px: buendig an die Navigation (Abstand .container-header -> .container-content) */
  margin: -15px 0 20px calc(50% - (100vw - var(--v4-sbw, 0px)) / 2);
  overflow: hidden;
  background: var(--navy, #062640);
  color: #fff;
}
.v4-cat-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.v4-cat-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 38, 64, .82) 0%, rgba(6, 38, 64, .5) 42%, rgba(6, 38, 64, .05) 75%),
    linear-gradient(0deg, rgba(6, 38, 64, .45) 0%, rgba(6, 38, 64, 0) 45%);
}
.v4-cat-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--v4-cat-width), calc(100% - 48px));
  margin-inline: auto;
  padding: 44px 0 40px;
}
.v4-cat-hero h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: .98;
  letter-spacing: -.02em;
  color: #fff;
}
.v4-cat-hero-intro { max-width: 640px; margin: 0; font-size: 16px; line-height: 1.55; color: #e4edf4; }

/* Breadcrumb (breadcrumbs.php) im Hero: klein, hell */
body.ui-v4-category .v4-cat-hero .v4-cat-hero-crumbs .ma-container { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.v4-cat-hero-crumbs .breadcrumbs { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
.v4-cat-hero-crumbs .breadcrumbs ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0; }
.v4-cat-hero-crumbs .breadcrumbs li,
.v4-cat-hero-crumbs .breadcrumbs li a { font-size: 13px; color: rgba(255, 255, 255, .8); text-decoration: none; }
.v4-cat-hero-crumbs .breadcrumbs li:last-child { color: #fff; font-weight: 600; }
.v4-cat-hero-crumbs .breadcrumbs li a:hover { color: #fff; text-decoration: underline; }
.v4-cat-hero-crumbs .breadcrumbs ul > span { filter: brightness(0) invert(1); opacity: .6; }

/* ── Ohne Banner: gleiche randlose Flaeche in Navy, nur niedriger (gleiche Typo/Farben wie mit Bild) ── */
.v4-cat-hero--plain { min-height: clamp(220px, 18vw, 280px); }
.v4-cat-hero--plain::after { display: none; }

/* ── Produktliste einer Kategorie (de/product_list.php): Kategorietext unter den Produkten, volle Breite ── */
body.ui-v4-category .category-intro-text.v4-cat-list-intro {
  max-width: none;
  margin: 0;
  padding: 8px 4px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink, #142437);
}

@media (max-width: 680px) {
  .v4-cat-hero { min-height: 280px; }
  .v4-cat-hero::after { background: linear-gradient(0deg, rgba(6, 38, 64, .88) 0%, rgba(6, 38, 64, .45) 60%, rgba(6, 38, 64, .15) 100%); }
  .v4-cat-hero-inner { width: min(100% - 24px, var(--v4-cat-width)); padding: 28px 0 24px; }
  .v4-cat-hero h1 { font-size: 36px; }
  .v4-cat-hero-intro { font-size: 15px; }
  .v4-cat-hero--plain { min-height: 200px; }
}
