/* =========================================================
   VORMELO – LAGERVERWALTUNG
   Ergänzung zu product-pos.css
========================================================= */

.inventory-visual-block {
  display: grid;
  min-width: 0;
  gap: 18px;
}

/* Bild ohne zusätzlichen Innenrahmen */
.inventory-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255,255,255,.96), transparent 56%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  box-shadow: 0 22px 55px rgba(37,99,235,.10);
  isolation: isolate;
}

.inventory-visual img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: inherit;
  object-fit: contain;
}

/* Alte POS-Rahmenregeln sicher überschreiben */
.pos-multi .inventory-visual,
.pos-offline .inventory-visual {
  padding: 0;
  border: 0;
  background-color: transparent;
}

.inventory-image-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 2px;
}

.inventory-image-features.inventory-image-features-four {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.inventory-image-feature {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
  transition: transform 180ms ease,
              border-color 180ms ease,
              box-shadow 180ms ease;
}

.inventory-image-feature:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 34px rgba(37,99,235,.10);
}

.inventory-image-feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.inventory-image-feature-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inventory-image-feature strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.3;
}

.inventory-image-feature span {
  display: block;
  color: var(--text-muted);
  font-size: .76rem;
  line-height: 1.45;
}

.pos-multi .pos-split,
.pos-offline .pos-split {
  align-items: center;
}

.pos-multi .inventory-visual-block,
.pos-offline .inventory-visual-block {
  width: 100%;
}

/* Tablet */
@media (max-width: 1100px) {
  .pos-multi .pos-split,
  .pos-offline .pos-split,
  .pos-offline .pos-split.pos-split-reverse {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .pos-offline .pos-split-reverse .inventory-visual-block {
    order: 1;
  }

  .pos-offline .pos-split-reverse .pos-split-copy {
    order: 2;
  }

  .inventory-image-features,
  .inventory-image-features.inventory-image-features-four {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* Smartphone */
@media (max-width: 700px) {
  .inventory-visual-block {
    gap: 14px;
  }

  .inventory-visual {
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(37,99,235,.09);
  }

  .inventory-visual img {
    width: 100%;
    height: auto;
    border-radius: inherit;
    object-fit: contain;
  }

  .inventory-image-features,
  .inventory-image-features.inventory-image-features-four {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .inventory-image-feature {
    grid-template-columns: 38px minmax(0,1fr);
    padding: 14px;
    border-radius: 14px;
  }

  .inventory-image-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .inventory-image-feature-icon svg {
    width: 21px;
    height: 21px;
  }

  .inventory-image-feature strong {
    font-size: .9rem;
  }

  .inventory-image-feature span {
    font-size: .8rem;
  }
}

@media (max-width: 420px) {
  .inventory-visual {
    border-radius: 16px;
  }

  .inventory-image-feature {
    padding: 12px;
  }
}


/* =========================================================
   PREMIUM HERO – LAGERVERWALTUNG
========================================================= */

.inventory-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(96, 165, 250, .20), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #e7f0ff 100%);
}

.inventory-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(37, 99, 235, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.inventory-hero > .container {
  position: relative;
  z-index: 1;
}

.inventory-hero .pos-breadcrumb {
  margin-bottom: 26px;
}

.inventory-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(560px, 1.42fr);
  gap: 28px;
  align-items: stretch;
  min-height: 610px;
}

.inventory-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 36px 0 54px;
}

.inventory-hero-copy h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 4.8vw, 4.7rem);
}

.inventory-hero-copy .pos-hero-lead {
  max-width: 610px;
}

.inventory-hero-copy .pos-hero-actions {
  margin-top: 28px;
}

.inventory-hero-copy .pos-hero-points {
  max-width: 650px;
  margin-top: 28px;
}

/*
  Das Bild liegt ohne zusätzlichen Kartenrahmen direkt im Hero.
  Der weisse Bildverlauf verschmilzt mit dem Hero-Hintergrund.
*/
.inventory-hero-visual {
  position: absolute;
  top: 0;
  right: calc((100vw - min(var(--container), calc(100vw - 48px))) / -2);
  bottom: 0;
  width: min(72vw, 1120px);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.inventory-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      #f2f7ff 0%,
      rgba(242, 247, 255, .96) 7%,
      rgba(242, 247, 255, .58) 18%,
      rgba(242, 247, 255, 0) 34%);
}

.inventory-hero-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
}

/* Überschreibt einen möglichen alten Rahmen aus product-pos.css */
.inventory-hero .pos-hero-visual {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* =========================================================
   PREMIUM HERO – TABLET
========================================================= */

@media (max-width: 1180px) {
  .inventory-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
    min-height: 570px;
  }

  .inventory-hero-visual {
    right: -24px;
    width: 62%;
  }

  .inventory-hero-copy h1 {
    font-size: clamp(2.55rem, 5vw, 4rem);
  }
}

@media (max-width: 960px) {
  .inventory-hero {
    padding-top: 26px;
  }

  .inventory-hero-grid {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 24px;
  }

  .inventory-hero-copy {
    order: 1;
    padding: 18px 0 0;
  }

  .inventory-hero-visual {
    position: relative;
    inset: auto;
    order: 2;
    width: calc(100% + 48px);
    height: auto;
    margin-left: -24px;
    aspect-ratio: 3 / 2;
    border-radius: 26px 26px 0 0;
  }

  .inventory-hero-visual::before {
    background:
      linear-gradient(180deg,
        #eef5ff 0%,
        rgba(238, 245, 255, .50) 10%,
        transparent 25%);
  }

  .inventory-hero-visual img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .inventory-hero-copy h1,
  .inventory-hero-copy .pos-hero-lead {
    max-width: 760px;
  }
}

/* =========================================================
   PREMIUM HERO – SMARTPHONE
========================================================= */

@media (max-width: 700px) {
  .inventory-hero {
    padding-top: 20px;
  }

  .inventory-hero .pos-breadcrumb {
    margin-bottom: 16px;
    font-size: .78rem;
  }

  .inventory-hero-copy {
    padding-top: 8px;
  }

  .inventory-hero-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .inventory-hero-copy .pos-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .inventory-hero-copy .pos-hero-actions .button {
    justify-content: center;
    width: 100%;
  }

  .inventory-hero-copy .pos-hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .inventory-hero-visual {
    width: calc(100% + 32px);
    margin-left: -16px;
    aspect-ratio: 4 / 3;
    border-radius: 20px 20px 0 0;
  }

  .inventory-hero-visual img {
    object-position: 58% center;
  }
}

@media (max-width: 420px) {
  .inventory-hero-visual {
    aspect-ratio: 1 / 1;
  }

  .inventory-hero-visual img {
    object-position: 62% center;
  }
}


/* =========================================================
   PREMIUM HERO V2 – FEINABSTIMMUNG
   Kompakter, ausgewogener und näher am Kassensystem-Muster
========================================================= */

.inventory-hero {
  padding-top: 28px;
}

.inventory-hero .pos-breadcrumb {
  margin-bottom: 20px;
}

.inventory-hero-grid {
  grid-template-columns: minmax(0, .94fr) minmax(520px, 1.18fr);
  gap: 42px;
  min-height: 520px;
  align-items: center;
}

.inventory-hero-copy {
  padding: 22px 0 38px;
}

.inventory-hero-copy h1 {
  max-width: 610px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem, 3.65vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.inventory-hero-copy .pos-hero-lead {
  max-width: 590px;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.7;
}

.inventory-hero-copy .pos-hero-actions {
  margin-top: 24px;
}

.inventory-hero-copy .pos-hero-points {
  max-width: 610px;
  margin-top: 24px;
}

/*
  Bild deutlich weiter nach links holen und etwas verkleinern.
  Dadurch entsteht keine grosse Lücke zwischen Text und Bild.
*/
.inventory-hero-visual {
  top: 20px;
  right: -34px;
  bottom: 20px;
  width: min(57vw, 920px);
  max-width: 920px;
  border-radius: 26px 0 0 26px;
}

.inventory-hero-visual::before {
  background:
    linear-gradient(
      90deg,
      #f1f6ff 0%,
      rgba(241, 246, 255, .90) 4%,
      rgba(241, 246, 255, .42) 11%,
      rgba(241, 246, 255, 0) 23%
    );
}

.inventory-hero-visual img {
  object-position: 52% center;
  border-radius: inherit;
}

/* =========================================================
   PREMIUM HERO V2 – GROSSE NOTEBOOKS
========================================================= */

@media (max-width: 1280px) {
  .inventory-hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr);
    gap: 34px;
    min-height: 500px;
  }

  .inventory-hero-copy h1 {
    font-size: clamp(2.5rem, 3.5vw, 3.8rem);
  }

  .inventory-hero-visual {
    right: -24px;
    width: min(55vw, 840px);
  }
}

/* =========================================================
   PREMIUM HERO V2 – TABLET
========================================================= */

@media (max-width: 1050px) {
  .inventory-hero-grid {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 26px;
  }

  .inventory-hero-copy {
    order: 1;
    width: 100%;
    padding: 14px 0 0;
  }

  .inventory-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.45rem, 6vw, 3.75rem);
  }

  .inventory-hero-copy .pos-hero-lead {
    max-width: 720px;
  }

  .inventory-hero-visual {
    position: relative;
    inset: auto;
    order: 2;
    width: calc(100% + 48px);
    max-width: none;
    height: auto;
    margin-left: -24px;
    aspect-ratio: 16 / 10;
    border-radius: 24px 24px 0 0;
  }

  .inventory-hero-visual::before {
    background:
      linear-gradient(
        180deg,
        #eef5ff 0%,
        rgba(238, 245, 255, .35) 8%,
        transparent 19%
      );
  }

  .inventory-hero-visual img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* =========================================================
   PREMIUM HERO V2 – SMARTPHONE
========================================================= */

@media (max-width: 700px) {
  .inventory-hero {
    padding-top: 18px;
  }

  .inventory-hero .pos-breadcrumb {
    margin-bottom: 14px;
  }

  .inventory-hero-copy {
    padding-top: 4px;
  }

  .inventory-hero-copy h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(2.15rem, 10.2vw, 3rem);
    line-height: 1.08;
  }

  .inventory-hero-copy .pos-hero-lead {
    font-size: .98rem;
    line-height: 1.65;
  }

  .inventory-hero-copy .pos-hero-actions {
    margin-top: 20px;
  }

  .inventory-hero-copy .pos-hero-points {
    margin-top: 20px;
  }

  .inventory-hero-visual {
    width: calc(100% + 32px);
    margin-left: -16px;
    aspect-ratio: 4 / 3;
    border-radius: 18px 18px 0 0;
  }

  .inventory-hero-visual img {
    object-position: 56% center;
  }
}

/* =========================================================
   PREMIUM HERO V2 – SEHR KLEINE SMARTPHONES
========================================================= */

@media (max-width: 420px) {
  .inventory-hero-copy h1 {
    font-size: clamp(2rem, 10.5vw, 2.6rem);
  }

  .inventory-hero-visual {
    aspect-ratio: 1 / 1;
  }

  .inventory-hero-visual img {
    object-position: 61% center;
  }
}


/* =========================================================
   PREMIUM HERO V3 – ÜBERLAPPUNG BEHEBEN
========================================================= */

/*
  Der Text liegt sicher über dem Bild.
  Dadurch können Monitor, Scanner oder andere dunkle Bildteile
  nicht mehr über einzelne Buchstaben ragen.
*/
.inventory-hero-copy {
  position: relative;
  z-index: 5;
}

.inventory-hero-visual {
  z-index: 1;
}

/*
  Das Bild beginnt etwas weiter rechts.
  Gleichzeitig wird der linke Übergang stärker ausgeblendet.
*/
.inventory-hero-visual {
  right: -10px;
  width: min(54vw, 870px);
}

.inventory-hero-visual::before {
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      #f1f6ff 0%,
      rgba(241, 246, 255, 1) 7%,
      rgba(241, 246, 255, .94) 14%,
      rgba(241, 246, 255, .68) 22%,
      rgba(241, 246, 255, .20) 31%,
      rgba(241, 246, 255, 0) 40%
    );
}

/*
  Zusätzliche ruhige Fläche hinter der Überschrift.
  Sie verhindert optische Störungen durch das Bild.
*/
.inventory-hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -50px;
  bottom: -18px;
  left: -28px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(241, 246, 255, 1) 0%,
      rgba(241, 246, 255, .97) 72%,
      rgba(241, 246, 255, 0) 100%
    );
}

/* Notebook */
@media (max-width: 1280px) {
  .inventory-hero-visual {
    right: 0;
    width: min(52vw, 800px);
  }

  .inventory-hero-copy::after {
    right: -34px;
  }
}

/* Tablet und Mobile: kein Overlay erforderlich */
@media (max-width: 1050px) {
  .inventory-hero-copy::after {
    display: none;
  }

  .inventory-hero-visual {
    z-index: auto;
    width: calc(100% + 48px);
  }
}

@media (max-width: 700px) {
  .inventory-hero-visual {
    width: calc(100% + 32px);
  }
}


/* =========================================================
   ABSCHNITTSÜBERSCHRIFTEN ZENTRIEREN
========================================================= */

/*
  Nur die Überschriftengruppen werden zentriert.
  Karteninhalte, Listen und Funktionsbeschreibungen bleiben linksbündig,
  da sie so deutlich besser lesbar sind.
*/
.inventory-centered-section .section-heading {
  width: min(860px, 100%);
  margin-right: auto;
  margin-bottom: 42px;
  margin-left: auto;
  text-align: center;
}

.inventory-centered-section .section-heading .eyebrow {
  display: inline-flex;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.inventory-centered-section .section-heading h2 {
  max-width: 980px;
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
  text-align: center;
}

.inventory-centered-section .section-heading .section-description,
.inventory-centered-section .section-heading > p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* Karten und deren Inhalte bewusst linksbündig lassen */
.inventory-centered-section .pos-benefit-card,
.inventory-centered-section .pos-feature-grid article {
  text-align: left;
}

/* Branchenkarten selbst bleiben kompakt und zentriert */
.inventory-centered-section .pos-industry-grid a {
  text-align: center;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .inventory-centered-section .section-heading {
    width: min(720px, 100%);
    margin-bottom: 34px;
  }

  .inventory-centered-section .section-heading h2 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 700px) {
  .inventory-centered-section .section-heading {
    width: 100%;
    margin-bottom: 28px;
    text-align: center;
  }

  .inventory-centered-section .section-heading h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
    line-height: 1.1;
  }

  .inventory-centered-section .section-heading .section-description,
  .inventory-centered-section .section-heading > p {
    font-size: .98rem;
    line-height: 1.65;
  }
}
